Skip to content

Commit

Permalink
feat: update durable transactions API
Browse files Browse the repository at this point in the history
  • Loading branch information
ookami-kb committed Jun 9, 2024
1 parent 52ef928 commit b02b493
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 237 deletions.
17 changes: 3 additions & 14 deletions packages/espressocash_api/lib/src/dto/durable_transactions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,11 @@ class SubmitDurableTxResponseDto with _$SubmitDurableTxResponseDto {
@freezed
class GetDurableFeesResponseDto with _$GetDurableFeesResponseDto {
const factory GetDurableFeesResponseDto({
required int lamportPrice,
required MaxPriorityFee maxPriorityFee,
}) = _GetDurableFeesResponseDto;

factory GetDurableFeesResponseDto.fromJson(Map<String, dynamic> json) =>
_$GetDurableFeesResponseDtoFromJson(json);
}

@freezed
class MaxPriorityFee with _$MaxPriorityFee {
const factory MaxPriorityFee({
required int outgoingLink,
required int incomingLink,
required int cancelLink,
}) = _MaxPriorityFee;
}) = _GetDurableFeesResponseDto;

factory MaxPriorityFee.fromJson(Map<String, dynamic> json) =>
_$MaxPriorityFeeFromJson(json);
factory GetDurableFeesResponseDto.fromJson(Map<String, dynamic> json) =>
_$GetDurableFeesResponseDtoFromJson(json);
}
242 changes: 35 additions & 207 deletions packages/espressocash_api/lib/src/dto/durable_transactions.freezed.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 2 additions & 16 deletions packages/espressocash_api/lib/src/dto/durable_transactions.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b02b493

Please sign in to comment.