mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-19 05:58:50 +02:00
20 lines
518 B
Dart
20 lines
518 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:cake_wallet/exchange/trade.dart';
|
|
|
|
abstract class ExchangeTradeState {}
|
|
|
|
class ExchangeTradeStateInitial extends ExchangeTradeState {}
|
|
|
|
class TradeIsCreating extends ExchangeTradeState {}
|
|
|
|
class TradeIsCreatedSuccessfully extends ExchangeTradeState {
|
|
TradeIsCreatedSuccessfully({@required this.trade});
|
|
|
|
final Trade trade;
|
|
}
|
|
|
|
class TradeIsCreatedFailure extends ExchangeTradeState {
|
|
TradeIsCreatedFailure({@required this.error});
|
|
|
|
final String error;
|
|
} |