mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
Merge branch 'new-world' of github.com:cake-tech/cake_wallet_private into rework-restore-wallet
This commit is contained in:
@@ -93,6 +93,7 @@ abstract class ExchangeViewModelBase with Store {
|
||||
@observable
|
||||
bool isReceiveAddressEnabled;
|
||||
|
||||
@observable
|
||||
bool isReceiveAmountEntered;
|
||||
|
||||
Limits limits;
|
||||
@@ -256,6 +257,7 @@ abstract class ExchangeViewModelBase with Store {
|
||||
|
||||
@action
|
||||
void reset() {
|
||||
isReceiveAmountEntered = false;
|
||||
depositAmount = '';
|
||||
receiveAmount = '';
|
||||
depositCurrency = CryptoCurrency.xmr;
|
||||
|
||||
@@ -67,6 +67,8 @@ abstract class SendViewModelBase with Store {
|
||||
|
||||
Validator get amountValidator => AmountValidator(type: _wallet.type);
|
||||
|
||||
Validator get allAmountValidator => AllAmountValidator();
|
||||
|
||||
Validator get addressValidator => AddressValidator(type: _wallet.currency);
|
||||
|
||||
Validator get templateValidator => TemplateValidator();
|
||||
|
||||
@@ -24,6 +24,8 @@ abstract class WalletKeysViewModelBase with Store {
|
||||
title: S.current.view_key_public, value: keys.publicViewKey),
|
||||
StandartListItem(
|
||||
title: S.current.view_key_private, value: keys.privateViewKey),
|
||||
StandartListItem(
|
||||
title: S.current.wallet_seed, value: wallet.seed),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -32,8 +34,9 @@ abstract class WalletKeysViewModelBase with Store {
|
||||
|
||||
items.addAll([
|
||||
StandartListItem(title: 'WIF', value: keys.wif),
|
||||
StandartListItem(title: 'Public key', value: keys.publicKey),
|
||||
StandartListItem(title: 'Private key', value: keys.privateKey)
|
||||
StandartListItem(title: S.current.public_key, value: keys.publicKey),
|
||||
StandartListItem(title: S.current.private_key, value: keys.privateKey),
|
||||
StandartListItem(title: S.current.wallet_seed, value: wallet.seed)
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user