mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-05 20:07:44 +00:00
290adfec21
lots of extra code, lots of commented sections, the models are wrong, the pages just load on desktop and mobile. need to complete the form and ... well, there's a lot, really
44 lines
1.1 KiB
Dart
44 lines
1.1 KiB
Dart
abstract class Buy {
|
|
String get name;
|
|
|
|
// Future<BuyResponse<List<Currency>>> getAllCurrencies(bool fixedRate);
|
|
//
|
|
// Future<BuyResponse<List<Pair>>> getPairsFor(
|
|
// String currency,
|
|
// bool fixedRate,
|
|
// );
|
|
//
|
|
// Future<BuyResponse<List<Pair>>> getAllPairs(bool fixedRate);
|
|
//
|
|
// Future<BuyResponse<Trade>> getTrade(String tradeId);
|
|
// Future<BuyResponse<Trade>> updateTrade(Trade trade);
|
|
//
|
|
// Future<BuyResponse<List<Trade>>> getTrades();
|
|
//
|
|
// Future<BuyResponse<Range>> getRange(
|
|
// String from,
|
|
// String to,
|
|
// bool fixedRate,
|
|
// );
|
|
//
|
|
// Future<BuyResponse<Estimate>> getEstimate(
|
|
// String from,
|
|
// String to,
|
|
// Decimal amount,
|
|
// bool fixedRate,
|
|
// bool reversed,
|
|
// );
|
|
//
|
|
// Future<BuyResponse<Trade>> createTrade({
|
|
// required String from,
|
|
// required String to,
|
|
// required bool fixedRate,
|
|
// required Decimal amount,
|
|
// required String addressTo,
|
|
// String? extraId,
|
|
// required String addressRefund,
|
|
// required String refundExtraId,
|
|
// String? rateId,
|
|
// required bool reversed,
|
|
// });
|
|
}
|