mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 02:07:43 +00:00
25 lines
649 B
Dart
25 lines
649 B
Dart
import 'package:stackwallet/utilities/constants.dart';
|
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
|
|
|
enum CryptoCurrencyNetwork {
|
|
main,
|
|
test,
|
|
stage;
|
|
}
|
|
|
|
abstract class CryptoCurrency {
|
|
@Deprecated("[prio=low] Should eventually move away from Coin enum")
|
|
late final Coin coin;
|
|
|
|
final CryptoCurrencyNetwork network;
|
|
|
|
CryptoCurrency(this.network);
|
|
|
|
// TODO: [prio=low] require these be overridden in concrete implementations to remove reliance on [coin]
|
|
int get fractionDigits => coin.decimals;
|
|
BigInt get satsPerCoin => Constants.satsPerCoin(coin);
|
|
|
|
int get minConfirms;
|
|
|
|
bool validateAddress(String address);
|
|
}
|