From 8c6b99da4284b25fbdad2ac5ddc293c251db9472 Mon Sep 17 00:00:00 2001 From: M Date: Mon, 25 May 2020 16:06:40 +0300 Subject: [PATCH] Core stuff --- lib/core/app_store.dart | 12 ++++++++++++ lib/core/monero_wallet_store.dart | 20 ++++++++++++++++++++ lib/core/sign_up_store.dart | 12 ++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 lib/core/app_store.dart create mode 100644 lib/core/monero_wallet_store.dart create mode 100644 lib/core/sign_up_store.dart diff --git a/lib/core/app_store.dart b/lib/core/app_store.dart new file mode 100644 index 00000000..ac1730a6 --- /dev/null +++ b/lib/core/app_store.dart @@ -0,0 +1,12 @@ +import 'package:mobx/mobx.dart'; + +part 'app_store.g.dart'; + +class AppStore = AppStoreBase with _$AppStore; + +abstract class AppStoreBase with Store { + // Sign Up + // Auth + // Wallet + // Settings +} \ No newline at end of file diff --git a/lib/core/monero_wallet_store.dart b/lib/core/monero_wallet_store.dart new file mode 100644 index 00000000..b0527d65 --- /dev/null +++ b/lib/core/monero_wallet_store.dart @@ -0,0 +1,20 @@ +import 'dart:async'; +import 'package:cake_wallet/src/domain/common/node.dart'; +import 'package:cake_wallet/src/domain/common/wallet_type.dart'; +import 'package:mobx/mobx.dart'; +import 'package:cake_wallet/src/domain/common/wallet.dart'; +import 'package:cake_wallet/src/domain/monero/account.dart'; +import 'package:cake_wallet/src/domain/monero/monero_wallet.dart'; +import 'package:cake_wallet/src/domain/monero/subaddress.dart'; +import 'package:cake_wallet/src/domain/services/wallet_service.dart'; +import 'package:cake_wallet/src/domain/common/crypto_currency.dart'; +import 'package:cake_wallet/src/stores/settings/settings_store.dart'; +import 'package:cake_wallet/generated/i18n.dart'; + +part 'monero_wallet_store.g.dart'; + +class MoneroWalletStore = MoneroWalletStoreBase with _$MoneroWalletStore; + +abstract class MoneroWalletStoreBase with Store { + +} \ No newline at end of file diff --git a/lib/core/sign_up_store.dart b/lib/core/sign_up_store.dart new file mode 100644 index 00000000..3040efc1 --- /dev/null +++ b/lib/core/sign_up_store.dart @@ -0,0 +1,12 @@ +import 'package:flutter/foundation.dart'; +import 'package:mobx/mobx.dart'; +import 'package:cake_wallet/src/domain/common/wallet_type.dart'; + +part 'sign_up_store.g.dart'; + +class SignUpStore = SignUpStoreBase with _$SignUpStore; + + +abstract class SignUpStoreBase with Store { + +} \ No newline at end of file