Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: replacing txs with durable nonce #1521

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/espressocash_api/lib/src/dto/scalex.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class OrderStatusScalexResponseDto with _$OrderStatusScalexResponseDto {
@JsonKey(unknownEnumValue: ScalexOrderStatus.unknown)
required ScalexOrderStatus status,
OnRampScalexDetails? onRampDetails,
OffRampScalexDetails? offRampDetails,
}) = _OrderStatusScalexResponseDto;

factory OrderStatusScalexResponseDto.fromJson(Map<String, dynamic> json) =>
Expand Down Expand Up @@ -89,6 +90,17 @@ class OnRampScalexDetails with _$OnRampScalexDetails {
_$OnRampScalexDetailsFromJson(json);
}

@freezed
class OffRampScalexDetails with _$OffRampScalexDetails {
const factory OffRampScalexDetails({
required String depositAddress,
required int amount,
}) = _OffRampScalexDetails;

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

@freezed
class ScalexRateFeeResponseDto with _$ScalexRateFeeResponseDto {
const factory ScalexRateFeeResponseDto({
Expand Down
211 changes: 204 additions & 7 deletions packages/espressocash_api/lib/src/dto/scalex.freezed.dart

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

19 changes: 19 additions & 0 deletions packages/espressocash_api/lib/src/dto/scalex.g.dart

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

Loading
Loading