Skip to content

Commit

Permalink
feat: add moneygram integration endpoints (#1499)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinenerio authored Jun 17, 2024
1 parent dc0b187 commit 7448e3a
Show file tree
Hide file tree
Showing 6 changed files with 1,725 additions and 28 deletions.
1 change: 1 addition & 0 deletions packages/espressocash_api/lib/espressocash_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export 'src/dto/durable_transactions.dart';
export 'src/dto/gas.dart';
export 'src/dto/get_fees.dart';
export 'src/dto/get_rates.dart';
export 'src/dto/moneygram.dart';
export 'src/dto/priority_fees.dart';
export 'src/dto/scalex.dart';
export 'src/dto/shorten_link.dart';
Expand Down
25 changes: 25 additions & 0 deletions packages/espressocash_api/lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,29 @@ abstract class EspressoCashClient {
Future<PriorityFeesResponseDto> getPriorityFeeEstimate(
@Body() PriorityFeesRequestDto request,
);

@POST('/moneygram/sign')
Future<MoneygramChallengeSignResponseDto> signChallenge(
@Body() MoneygramChallengeSignRequestDto request,
);

@POST('/moneygram/swapToSolana')
Future<MoneygramSwapResponseDto> swapToSolana(
@Body() SwapToSolanaRequestDto request,
);

@POST('/moneygram/swapToStellar')
Future<MoneygramSwapResponseDto> swapToStellar(
@Body() SwapToStellarRequestDto request,
);

@POST('/moneygram/calculateFee')
Future<MoneygramFeeResponseDto> calculateMoneygramFee(
@Body() MoneygramFeeRequestDto request,
);

@POST('/moneygram/fund')
Future<void> fundXlmRequest(
@Body() FundXlmRequestDto request,
);
}
Loading

0 comments on commit 7448e3a

Please sign in to comment.