Skip to content

Commit

Permalink
feat: fetch usd rate from backend (#1465)
Browse files Browse the repository at this point in the history
Co-authored-by: Kirill Bubochkin <[email protected]>
  • Loading branch information
justinenerio and ookami-kb authored Jun 1, 2024
1 parent 1fcba88 commit 93709a1
Show file tree
Hide file tree
Showing 25 changed files with 299 additions and 205 deletions.
4 changes: 4 additions & 0 deletions packages/espressocash_api/lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:convert';

import 'package:dio/dio.dart';
import 'package:espressocash_api/espressocash_api.dart';
import 'package:espressocash_api/src/dto/get_rates.dart';
import 'package:retrofit/retrofit.dart';

part 'client.g.dart';
Expand Down Expand Up @@ -129,4 +130,7 @@ abstract class EspressoCashClient {
Future<GasFeeResponseDto> getGasFees(
@Body() GasFeeRequestDto request,
);

@POST('/rates')
Future<GetRatesResponseDto> getRates();
}
73 changes: 50 additions & 23 deletions packages/espressocash_api/lib/src/client.g.dart

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

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

6 changes: 3 additions & 3 deletions packages/espressocash_api/lib/src/dto/create_payment.g.dart

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

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

20 changes: 10 additions & 10 deletions packages/espressocash_api/lib/src/dto/dln_payment.g.dart

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

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

2 changes: 1 addition & 1 deletion packages/espressocash_api/lib/src/dto/gas.freezed.dart

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

4 changes: 2 additions & 2 deletions packages/espressocash_api/lib/src/dto/gas.g.dart

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

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

Loading

0 comments on commit 93709a1

Please sign in to comment.