Merge branch 'new-world' of github.com:cake-tech/cake_wallet_private into rework-restore-wallet

This commit is contained in:
M
2020-10-24 15:55:31 +03:00
25 changed files with 245 additions and 93 deletions
@@ -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;
+2
View File
@@ -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();
+5 -2
View File
@@ -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)
]);
}
}