mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-25 12:59:24 +00:00
22 lines
523 B
Dart
22 lines
523 B
Dart
|
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",
|
||
|
);
|
||
|
}
|