mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
CAKE-360 | merged all yat branches into current; saving information about yat to connected wallet; fixed qr widget; applied yat, unstoppable domains and open alias to contact book
This commit is contained in:
@@ -12,6 +12,7 @@ import 'package:cake_wallet/entities/transaction_info.dart';
|
||||
import 'package:cake_wallet/exchange/exchange_provider_description.dart';
|
||||
import 'package:cake_wallet/store/settings_store.dart';
|
||||
import 'package:cake_wallet/store/dashboard/orders_store.dart';
|
||||
import 'package:cake_wallet/store/yat/yat_store.dart';
|
||||
import 'package:cake_wallet/utils/mobx.dart';
|
||||
import 'package:cake_wallet/view_model/dashboard/balance_view_model.dart';
|
||||
import 'package:cake_wallet/view_model/dashboard/filter_item.dart';
|
||||
@@ -46,6 +47,7 @@ abstract class DashboardViewModelBase with Store {
|
||||
this.tradeFilterStore,
|
||||
this.transactionFilterStore,
|
||||
this.settingsStore,
|
||||
this.yatStore,
|
||||
this.ordersStore}) {
|
||||
filterItems = {
|
||||
S.current.transactions: [
|
||||
@@ -86,6 +88,9 @@ abstract class DashboardViewModelBase with Store {
|
||||
type = wallet.type;
|
||||
isOutdatedElectrumWallet =
|
||||
wallet.type == WalletType.bitcoin && wallet.seed.split(' ').length < 24;
|
||||
isShowFirstYatIntroduction = false;
|
||||
isShowSecondYatIntroduction = false;
|
||||
isShowThirdYatIntroduction = false;
|
||||
final _wallet = wallet;
|
||||
|
||||
if (_wallet is MoneroWallet) {
|
||||
@@ -147,6 +152,15 @@ abstract class DashboardViewModelBase with Store {
|
||||
@observable
|
||||
String subname;
|
||||
|
||||
@observable
|
||||
bool isShowFirstYatIntroduction;
|
||||
|
||||
@observable
|
||||
bool isShowSecondYatIntroduction;
|
||||
|
||||
@observable
|
||||
bool isShowThirdYatIntroduction;
|
||||
|
||||
@computed
|
||||
String get address => wallet.walletAddresses.address;
|
||||
|
||||
@@ -208,6 +222,8 @@ abstract class DashboardViewModelBase with Store {
|
||||
|
||||
SettingsStore settingsStore;
|
||||
|
||||
YatStore yatStore;
|
||||
|
||||
TradesStore tradesStore;
|
||||
|
||||
OrdersStore ordersStore;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:cake_wallet/src/screens/yat/yat_alert.dart';
|
||||
import 'package:cake_wallet/store/yat/yat_store.dart';
|
||||
import 'package:cake_wallet/utils/show_pop_up.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:mobx/mobx.dart';
|
||||
@@ -50,6 +51,7 @@ List<TransactionPriority> priorityForWalletType(WalletType type) {
|
||||
abstract class SettingsViewModelBase with Store {
|
||||
SettingsViewModelBase(
|
||||
this._settingsStore,
|
||||
this._yatStore,
|
||||
WalletBase<Balance, TransactionHistoryBase<TransactionInfo>,
|
||||
TransactionInfo>
|
||||
wallet)
|
||||
@@ -162,7 +164,7 @@ abstract class SettingsViewModelBase with Store {
|
||||
await showPopUp<void>(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return YatAlert(wallet: wallet, isYatDevMode: true);
|
||||
return YatAlert(_yatStore);
|
||||
});
|
||||
},
|
||||
),
|
||||
@@ -213,6 +215,7 @@ abstract class SettingsViewModelBase with Store {
|
||||
final Map<String, String> itemHeaders;
|
||||
List<List<SettingsListItem>> sections;
|
||||
final SettingsStore _settingsStore;
|
||||
final YatStore _yatStore;
|
||||
final WalletType _walletType;
|
||||
final BiometricAuth _biometricAuth;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'package:cake_wallet/store/yat_store.dart';
|
||||
import 'package:cake_wallet/store/yat/yat_store.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:mobx/mobx.dart';
|
||||
import 'package:cake_wallet/bitcoin/bitcoin_wallet.dart';
|
||||
|
||||
Reference in New Issue
Block a user