import 'package:decimal/decimal.dart'; import 'package:stackwallet/models/exchange/response_objects/currency.dart'; import 'package:stackwallet/models/exchange/response_objects/pair.dart'; import 'package:stackwallet/models/exchange/response_objects/range.dart'; import 'package:stackwallet/models/exchange/response_objects/trade.dart'; import 'package:stackwallet/services/exchange/exchange_response.dart'; abstract class Exchange { // Future>> getAllCurrencies(bool fixedRate); Future>> getPairsFor( String currency, bool fixedRate, ); Future>> getAllPairs(bool fixedRate); Future> getTrade(String tradeId); Future> updateTrade(Trade trade); Future>> getTrades(); Future> getRange( String from, String to, bool fixedRate, ); Future> getEstimate( String from, String to, Decimal amount, bool fixedRate, bool reversed, ); Future> createTrade({ required String from, required String to, required bool fixedRate, required Decimal amount, required String addressTo, required String addressRefund, required String refundExtraId, }); }