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