stack_wallet/lib/wallets/crypto_currency/intermediate/nano_currency.dart

22 lines
523 B
Dart
Raw Normal View History

2023-11-15 21:59:01 +00:00
import 'package:nanodart/nanodart.dart';
import 'package:stackwallet/wallets/crypto_currency/intermediate/bip39_currency.dart';
abstract class NanoCurrency extends Bip39Currency {
NanoCurrency(super.network);
String get defaultRepresentative;
int get nanoAccountType;
@override
bool validateAddress(String address) => NanoAccounts.isValid(
nanoAccountType,
address,
);
@override
String get genesisHash => throw UnimplementedError(
"Not used in nano based coins",
);
}