mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
36 lines
791 B
Dart
36 lines
791 B
Dart
import 'package:nanodart/nanodart.dart';
|
|
import 'bip39_currency.dart';
|
|
|
|
abstract class NanoCurrency extends Bip39Currency {
|
|
NanoCurrency(super.network);
|
|
|
|
String get defaultRepresentative;
|
|
|
|
int get nanoAccountType;
|
|
|
|
@override
|
|
bool get hasMnemonicPassphraseSupport => false;
|
|
|
|
@override
|
|
int get targetBlockTimeSeconds => 1; // TODO: Verify this
|
|
|
|
@override
|
|
bool get hasBuySupport => false;
|
|
|
|
@override
|
|
int get defaultSeedPhraseLength => 24;
|
|
|
|
@override
|
|
List<int> get possibleMnemonicLengths => [defaultSeedPhraseLength, 12];
|
|
|
|
@override
|
|
bool validateAddress(String address) => NanoAccounts.isValid(
|
|
nanoAccountType,
|
|
address,
|
|
);
|
|
|
|
@override
|
|
String get genesisHash => throw UnimplementedError(
|
|
"Not used in nano based coins",
|
|
);
|
|
}
|