diff --git a/lib/models/isar/models/transaction_note.g.dart b/lib/models/isar/models/transaction_note.g.dart index 7bfe7d639..152070328 100644 --- a/lib/models/isar/models/transaction_note.g.dart +++ b/lib/models/isar/models/transaction_note.g.dart @@ -56,7 +56,7 @@ const TransactionNoteSchema = CollectionSchema( id: -2771771174176035985, name: r'txid_walletId', unique: true, - replace: false, + replace: true, properties: [ IndexPropertySchema( name: r'txid', diff --git a/test/pages/send_view/send_view_test.mocks.dart b/test/pages/send_view/send_view_test.mocks.dart index dd43e68f8..9b01323ce 100644 --- a/test/pages/send_view/send_view_test.mocks.dart +++ b/test/pages/send_view/send_view_test.mocks.dart @@ -3,51 +3,37 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i24; -import 'dart:typed_data' as _i32; -import 'dart:ui' as _i27; +import 'dart:async' as _i14; +import 'dart:typed_data' as _i22; +import 'dart:ui' as _i17; -import 'package:bip32/bip32.dart' as _i16; -import 'package:bip47/bip47.dart' as _i18; -import 'package:bitcoindart/bitcoindart.dart' as _i12; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; -import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i10; -import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i9; -import 'package:stackwallet/models/balance.dart' as _i11; -import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart' - as _i14; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i17; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i35; -import 'package:stackwallet/models/node_model.dart' as _i28; -import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; -import 'package:stackwallet/models/signing_data.dart' as _i31; -import 'package:stackwallet/networking/http.dart' as _i20; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i29; -import 'package:stackwallet/services/coins/coin_service.dart' as _i39; -import 'package:stackwallet/services/locale_service.dart' as _i33; +import 'package:stackwallet/models/balance.dart' as _i10; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i27; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i21; +import 'package:stackwallet/models/node_model.dart' as _i18; +import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i9; +import 'package:stackwallet/networking/http.dart' as _i7; +import 'package:stackwallet/services/coins/coin_service.dart' as _i26; +import 'package:stackwallet/services/locale_service.dart' as _i19; import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart' - as _i21; + as _i8; import 'package:stackwallet/services/node_service.dart' as _i2; -import 'package:stackwallet/services/transaction_notification_tracker.dart' - as _i7; -import 'package:stackwallet/services/wallets.dart' as _i22; -import 'package:stackwallet/services/wallets_service.dart' as _i26; -import 'package:stackwallet/themes/theme_service.dart' as _i34; -import 'package:stackwallet/utilities/amount/amount.dart' as _i13; -import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i38; -import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i37; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i23; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i30; -import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i36; +import 'package:stackwallet/services/wallets.dart' as _i12; +import 'package:stackwallet/services/wallets_service.dart' as _i16; +import 'package:stackwallet/themes/theme_service.dart' as _i20; +import 'package:stackwallet/utilities/amount/amount.dart' as _i11; +import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i25; +import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i24; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i13; +import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i23; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' as _i6; -import 'package:stackwallet/utilities/prefs.dart' as _i25; +import 'package:stackwallet/utilities/prefs.dart' as _i15; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; -import 'package:stackwallet/wallets/models/tx_data.dart' as _i19; import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; -import 'package:tuple/tuple.dart' as _i15; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -102,9 +88,8 @@ class _FakeSecureStorageInterface_3 extends _i1.SmartFake ); } -class _FakeTransactionNotificationTracker_4 extends _i1.SmartFake - implements _i7.TransactionNotificationTracker { - _FakeTransactionNotificationTracker_4( +class _FakeHTTP_4 extends _i1.SmartFake implements _i7.HTTP { + _FakeHTTP_4( Object parent, Invocation parentInvocation, ) : super( @@ -113,8 +98,8 @@ class _FakeTransactionNotificationTracker_4 extends _i1.SmartFake ); } -class _FakeFeeObject_5 extends _i1.SmartFake implements _i8.FeeObject { - _FakeFeeObject_5( +class _FakeFusionInfo_5 extends _i1.SmartFake implements _i8.FusionInfo { + _FakeFusionInfo_5( Object parent, Invocation parentInvocation, ) : super( @@ -123,8 +108,8 @@ class _FakeFeeObject_5 extends _i1.SmartFake implements _i8.FeeObject { ); } -class _FakeElectrumX_6 extends _i1.SmartFake implements _i9.ElectrumX { - _FakeElectrumX_6( +class _FakeFeeObject_6 extends _i1.SmartFake implements _i9.FeeObject { + _FakeFeeObject_6( Object parent, Invocation parentInvocation, ) : super( @@ -133,9 +118,8 @@ class _FakeElectrumX_6 extends _i1.SmartFake implements _i9.ElectrumX { ); } -class _FakeCachedElectrumX_7 extends _i1.SmartFake - implements _i10.CachedElectrumX { - _FakeCachedElectrumX_7( +class _FakeBalance_7 extends _i1.SmartFake implements _i10.Balance { + _FakeBalance_7( Object parent, Invocation parentInvocation, ) : super( @@ -144,120 +128,8 @@ class _FakeCachedElectrumX_7 extends _i1.SmartFake ); } -class _FakeBalance_8 extends _i1.SmartFake implements _i11.Balance { - _FakeBalance_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeNetworkType_9 extends _i1.SmartFake implements _i12.NetworkType { - _FakeNetworkType_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeElectrumXNode_10 extends _i1.SmartFake implements _i9.ElectrumXNode { - _FakeElectrumXNode_10( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAmount_11 extends _i1.SmartFake implements _i13.Amount { - _FakeAmount_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTransactionV2_12 extends _i1.SmartFake - implements _i14.TransactionV2 { - _FakeTransactionV2_12( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTuple2_13 extends _i1.SmartFake - implements _i15.Tuple2 { - _FakeTuple2_13( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { - _FakeBIP32_14( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAddress_15 extends _i1.SmartFake implements _i17.Address { - _FakeAddress_15( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakePaymentCode_16 extends _i1.SmartFake implements _i18.PaymentCode { - _FakePaymentCode_16( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTxData_17 extends _i1.SmartFake implements _i19.TxData { - _FakeTxData_17( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeHTTP_18 extends _i1.SmartFake implements _i20.HTTP { - _FakeHTTP_18( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeFusionInfo_19 extends _i1.SmartFake implements _i21.FusionInfo { - _FakeFusionInfo_19( +class _FakeAmount_8 extends _i1.SmartFake implements _i11.Amount { + _FakeAmount_8( Object parent, Invocation parentInvocation, ) : super( @@ -269,7 +141,7 @@ class _FakeFusionInfo_19 extends _i1.SmartFake implements _i21.FusionInfo { /// A class which mocks [Wallets]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallets extends _i1.Mock implements _i22.Wallets { +class MockWallets extends _i1.Mock implements _i12.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -317,16 +189,16 @@ class MockWallets extends _i1.Mock implements _i22.Wallets { returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[], ) as List<_i5.Wallet<_i4.CryptoCurrency>>); @override - List<({_i23.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})> + List<({_i13.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})> get walletsByCoin => (super.noSuchMethod( Invocation.getter(#walletsByCoin), returnValue: <({ - _i23.Coin coin, + _i13.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets })>[], ) as List< ({ - _i23.Coin coin, + _i13.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets })>); @override @@ -353,17 +225,24 @@ class MockWallets extends _i1.Mock implements _i22.Wallets { returnValueForMissingStub: null, ); @override - _i24.Future deleteWallet(String? walletId) => (super.noSuchMethod( + _i14.Future deleteWallet( + String? walletId, + _i6.SecureStorageInterface? secureStorage, + ) => + (super.noSuchMethod( Invocation.method( #deleteWallet, - [walletId], + [ + walletId, + secureStorage, + ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future load( - _i25.Prefs? prefs, + _i14.Future load( + _i15.Prefs? prefs, _i3.MainDB? mainDB, ) => (super.noSuchMethod( @@ -374,12 +253,12 @@ class MockWallets extends _i1.Mock implements _i22.Wallets { mainDB, ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future loadAfterStackRestore( - _i25.Prefs? prefs, + _i14.Future loadAfterStackRestore( + _i15.Prefs? prefs, List<_i5.Wallet<_i4.CryptoCurrency>>? wallets, ) => (super.noSuchMethod( @@ -390,33 +269,33 @@ class MockWallets extends _i1.Mock implements _i22.Wallets { wallets, ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); } /// A class which mocks [WalletsService]. /// /// See the documentation for Mockito's code generation for more information. -class MockWalletsService extends _i1.Mock implements _i26.WalletsService { +class MockWalletsService extends _i1.Mock implements _i16.WalletsService { MockWalletsService() { _i1.throwOnMissingStub(this); } @override - _i24.Future> get walletNames => + _i14.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i24.Future>.value( - {}), - ) as _i24.Future>); + returnValue: _i14.Future>.value( + {}), + ) as _i14.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i24.Future renameWallet({ + _i14.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -431,21 +310,21 @@ class MockWalletsService extends _i1.Mock implements _i26.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - Map fetchWalletsData() => (super.noSuchMethod( + Map fetchWalletsData() => (super.noSuchMethod( Invocation.method( #fetchWalletsData, [], ), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override - _i24.Future addExistingStackWallet({ + _i14.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i23.Coin? coin, + required _i13.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -459,13 +338,13 @@ class MockWalletsService extends _i1.Mock implements _i26.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future addNewWallet({ + _i14.Future addNewWallet({ required String? name, - required _i23.Coin? coin, + required _i13.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -478,46 +357,46 @@ class MockWalletsService extends _i1.Mock implements _i26.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i14.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i24.Future>.value([]), - ) as _i24.Future>); + returnValue: _i14.Future>.value([]), + ) as _i14.Future>); @override - _i24.Future saveFavoriteWalletIds(List? walletIds) => + _i14.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i14.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i14.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future moveFavorite({ + _i14.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -530,48 +409,48 @@ class MockWalletsService extends _i1.Mock implements _i26.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i14.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i24.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i14.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future isMnemonicVerified({required String? walletId}) => + _i14.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i24.Future setMnemonicVerified({required String? walletId}) => + _i14.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future deleteWallet( + _i14.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -583,20 +462,20 @@ class MockWalletsService extends _i1.Mock implements _i26.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i24.Future.value(0), - ) as _i24.Future); + returnValue: _i14.Future.value(0), + ) as _i14.Future); @override - _i24.Future refreshWallets(bool? shouldNotifyListeners) => + _i14.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - void addListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -604,7 +483,7 @@ class MockWalletsService extends _i1.Mock implements _i26.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -646,33 +525,33 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ), ) as _i6.SecureStorageInterface); @override - List<_i28.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i18.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i28.NodeModel>[], - ) as List<_i28.NodeModel>); + returnValue: <_i18.NodeModel>[], + ) as List<_i18.NodeModel>); @override - List<_i28.NodeModel> get nodes => (super.noSuchMethod( + List<_i18.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i28.NodeModel>[], - ) as List<_i28.NodeModel>); + returnValue: <_i18.NodeModel>[], + ) as List<_i18.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i24.Future updateDefaults() => (super.noSuchMethod( + _i14.Future updateDefaults() => (super.noSuchMethod( Invocation.method( #updateDefaults, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future setPrimaryNodeFor({ - required _i23.Coin? coin, - required _i28.NodeModel? node, + _i14.Future setPrimaryNodeFor({ + required _i13.Coin? coin, + required _i18.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -685,44 +564,44 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i28.NodeModel? getPrimaryNodeFor({required _i23.Coin? coin}) => + _i18.NodeModel? getPrimaryNodeFor({required _i13.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i28.NodeModel?); + )) as _i18.NodeModel?); @override - List<_i28.NodeModel> getNodesFor(_i23.Coin? coin) => (super.noSuchMethod( + List<_i18.NodeModel> getNodesFor(_i13.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i28.NodeModel>[], - ) as List<_i28.NodeModel>); + returnValue: <_i18.NodeModel>[], + ) as List<_i18.NodeModel>); @override - _i28.NodeModel? getNodeById({required String? id}) => + _i18.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i28.NodeModel?); + )) as _i18.NodeModel?); @override - List<_i28.NodeModel> failoverNodesFor({required _i23.Coin? coin}) => + List<_i18.NodeModel> failoverNodesFor({required _i13.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i28.NodeModel>[], - ) as List<_i28.NodeModel>); + returnValue: <_i18.NodeModel>[], + ) as List<_i18.NodeModel>); @override - _i24.Future add( - _i28.NodeModel? node, + _i14.Future add( + _i18.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -735,11 +614,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future delete( + _i14.Future delete( String? id, bool? shouldNotifyListeners, ) => @@ -751,11 +630,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future setEnabledState( + _i14.Future setEnabledState( String? id, bool? enabled, bool? shouldNotifyListeners, @@ -769,12 +648,12 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future edit( - _i28.NodeModel? editedNode, + _i14.Future edit( + _i18.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -787,20 +666,20 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future updateCommunityNodes() => (super.noSuchMethod( + _i14.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( #updateCommunityNodes, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - void addListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -808,7 +687,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -833,1324 +712,10 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { ); } -/// A class which mocks [BitcoinWallet]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { - MockBitcoinWallet() { - _i1.throwOnMissingStub(this); - } - - @override - set timer(_i24.Timer? _timer) => super.noSuchMethod( - Invocation.setter( - #timer, - _timer, - ), - returnValueForMissingStub: null, - ); - @override - _i7.TransactionNotificationTracker get txTracker => (super.noSuchMethod( - Invocation.getter(#txTracker), - returnValue: _FakeTransactionNotificationTracker_4( - this, - Invocation.getter(#txTracker), - ), - ) as _i7.TransactionNotificationTracker); - @override - set txTracker(_i7.TransactionNotificationTracker? _txTracker) => - super.noSuchMethod( - Invocation.setter( - #txTracker, - _txTracker, - ), - returnValueForMissingStub: null, - ); - @override - bool get longMutex => (super.noSuchMethod( - Invocation.getter(#longMutex), - returnValue: false, - ) as bool); - @override - set longMutex(bool? _longMutex) => super.noSuchMethod( - Invocation.setter( - #longMutex, - _longMutex, - ), - returnValueForMissingStub: null, - ); - @override - bool get refreshMutex => (super.noSuchMethod( - Invocation.getter(#refreshMutex), - returnValue: false, - ) as bool); - @override - set refreshMutex(bool? _refreshMutex) => super.noSuchMethod( - Invocation.setter( - #refreshMutex, - _refreshMutex, - ), - returnValueForMissingStub: null, - ); - @override - bool get isActive => (super.noSuchMethod( - Invocation.getter(#isActive), - returnValue: false, - ) as bool); - @override - set isActive(bool? _isActive) => super.noSuchMethod( - Invocation.setter( - #isActive, - _isActive, - ), - returnValueForMissingStub: null, - ); - @override - set isFavorite(bool? markFavorite) => super.noSuchMethod( - Invocation.setter( - #isFavorite, - markFavorite, - ), - returnValueForMissingStub: null, - ); - @override - bool get isFavorite => (super.noSuchMethod( - Invocation.getter(#isFavorite), - returnValue: false, - ) as bool); - @override - _i23.Coin get coin => (super.noSuchMethod( - Invocation.getter(#coin), - returnValue: _i23.Coin.bitcoin, - ) as _i23.Coin); - @override - _i24.Future> get utxos => (super.noSuchMethod( - Invocation.getter(#utxos), - returnValue: _i24.Future>.value(<_i17.UTXO>[]), - ) as _i24.Future>); - @override - _i24.Future> get transactions => (super.noSuchMethod( - Invocation.getter(#transactions), - returnValue: - _i24.Future>.value(<_i17.Transaction>[]), - ) as _i24.Future>); - @override - _i24.Future get currentReceivingAddress => (super.noSuchMethod( - Invocation.getter(#currentReceivingAddress), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - _i24.Future get currentChangeAddress => (super.noSuchMethod( - Invocation.getter(#currentChangeAddress), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - _i24.Future get currentChangeAddressP2PKH => (super.noSuchMethod( - Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - bool get hasCalledExit => (super.noSuchMethod( - Invocation.getter(#hasCalledExit), - returnValue: false, - ) as bool); - @override - _i24.Future<_i8.FeeObject> get fees => (super.noSuchMethod( - Invocation.getter(#fees), - returnValue: _i24.Future<_i8.FeeObject>.value(_FakeFeeObject_5( - this, - Invocation.getter(#fees), - )), - ) as _i24.Future<_i8.FeeObject>); - @override - _i24.Future get maxFee => (super.noSuchMethod( - Invocation.getter(#maxFee), - returnValue: _i24.Future.value(0), - ) as _i24.Future); - @override - _i24.Future> get mnemonic => (super.noSuchMethod( - Invocation.getter(#mnemonic), - returnValue: _i24.Future>.value([]), - ) as _i24.Future>); - @override - _i24.Future get mnemonicString => (super.noSuchMethod( - Invocation.getter(#mnemonicString), - returnValue: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future get mnemonicPassphrase => (super.noSuchMethod( - Invocation.getter(#mnemonicPassphrase), - returnValue: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future get chainHeight => (super.noSuchMethod( - Invocation.getter(#chainHeight), - returnValue: _i24.Future.value(0), - ) as _i24.Future); - @override - int get storedChainHeight => (super.noSuchMethod( - Invocation.getter(#storedChainHeight), - returnValue: 0, - ) as int); - @override - bool get shouldAutoSync => (super.noSuchMethod( - Invocation.getter(#shouldAutoSync), - returnValue: false, - ) as bool); - @override - set shouldAutoSync(bool? shouldAutoSync) => super.noSuchMethod( - Invocation.setter( - #shouldAutoSync, - shouldAutoSync, - ), - returnValueForMissingStub: null, - ); - @override - bool get isRefreshing => (super.noSuchMethod( - Invocation.getter(#isRefreshing), - returnValue: false, - ) as bool); - @override - bool get isConnected => (super.noSuchMethod( - Invocation.getter(#isConnected), - returnValue: false, - ) as bool); - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - String get walletName => (super.noSuchMethod( - Invocation.getter(#walletName), - returnValue: '', - ) as String); - @override - set walletName(String? newName) => super.noSuchMethod( - Invocation.setter( - #walletName, - newName, - ), - returnValueForMissingStub: null, - ); - @override - _i9.ElectrumX get electrumXClient => (super.noSuchMethod( - Invocation.getter(#electrumXClient), - returnValue: _FakeElectrumX_6( - this, - Invocation.getter(#electrumXClient), - ), - ) as _i9.ElectrumX); - @override - _i10.CachedElectrumX get cachedElectrumXClient => (super.noSuchMethod( - Invocation.getter(#cachedElectrumXClient), - returnValue: _FakeCachedElectrumX_7( - this, - Invocation.getter(#cachedElectrumXClient), - ), - ) as _i10.CachedElectrumX); - @override - _i11.Balance get balance => (super.noSuchMethod( - Invocation.getter(#balance), - returnValue: _FakeBalance_8( - this, - Invocation.getter(#balance), - ), - ) as _i11.Balance); - @override - _i24.Future get xpub => (super.noSuchMethod( - Invocation.getter(#xpub), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => - super.noSuchMethod( - Invocation.setter( - #onIsActiveWalletChanged, - _onIsActiveWalletChanged, - ), - returnValueForMissingStub: null, - ); - @override - _i3.MainDB get db => (super.noSuchMethod( - Invocation.getter(#db), - returnValue: _FakeMainDB_1( - this, - Invocation.getter(#db), - ), - ) as _i3.MainDB); - @override - _i12.NetworkType get networkType => (super.noSuchMethod( - Invocation.getter(#networkType), - returnValue: _FakeNetworkType_9( - this, - Invocation.getter(#networkType), - ), - ) as _i12.NetworkType); - @override - _i24.Future exit() => (super.noSuchMethod( - Invocation.method( - #exit, - [], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i30.DerivePathType addressType({required String? address}) => - (super.noSuchMethod( - Invocation.method( - #addressType, - [], - {#address: address}, - ), - returnValue: _i30.DerivePathType.bip44, - ) as _i30.DerivePathType); - @override - _i24.Future recoverFromMnemonic({ - required String? mnemonic, - String? mnemonicPassphrase, - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - required int? height, - }) => - (super.noSuchMethod( - Invocation.method( - #recoverFromMnemonic, - [], - { - #mnemonic: mnemonic, - #mnemonicPassphrase: mnemonicPassphrase, - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - #height: height, - }, - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future getTransactionCacheEarly(List? allAddresses) => - (super.noSuchMethod( - Invocation.method( - #getTransactionCacheEarly, - [allAddresses], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future refreshIfThereIsNewData() => (super.noSuchMethod( - Invocation.method( - #refreshIfThereIsNewData, - [], - ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); - @override - _i24.Future getAllTxsToWatch() => (super.noSuchMethod( - Invocation.method( - #getAllTxsToWatch, - [], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future refresh() => (super.noSuchMethod( - Invocation.method( - #refresh, - [], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future> prepareSend({ - required String? address, - required _i13.Amount? amount, - Map? args, - }) => - (super.noSuchMethod( - Invocation.method( - #prepareSend, - [], - { - #address: address, - #amount: amount, - #args: args, - }, - ), - returnValue: - _i24.Future>.value({}), - ) as _i24.Future>); - @override - _i24.Future confirmSend({required Map? txData}) => - (super.noSuchMethod( - Invocation.method( - #confirmSend, - [], - {#txData: txData}, - ), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - _i24.Future testNetworkConnection() => (super.noSuchMethod( - Invocation.method( - #testNetworkConnection, - [], - ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); - @override - void startNetworkAlivePinging() => super.noSuchMethod( - Invocation.method( - #startNetworkAlivePinging, - [], - ), - returnValueForMissingStub: null, - ); - @override - void stopNetworkAlivePinging() => super.noSuchMethod( - Invocation.method( - #stopNetworkAlivePinging, - [], - ), - returnValueForMissingStub: null, - ); - @override - _i24.Future initializeNew( - ({String mnemonicPassphrase, int wordCount})? data) => - (super.noSuchMethod( - Invocation.method( - #initializeNew, - [data], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future initializeExisting() => (super.noSuchMethod( - Invocation.method( - #initializeExisting, - [], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future updateSentCachedTxData(Map? txData) => - (super.noSuchMethod( - Invocation.method( - #updateSentCachedTxData, - [txData], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - bool validateAddress(String? address) => (super.noSuchMethod( - Invocation.method( - #validateAddress, - [address], - ), - returnValue: false, - ) as bool); - @override - _i24.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( - Invocation.method( - #updateNode, - [shouldRefresh], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( - Invocation.method( - #getCurrentNode, - [], - ), - returnValue: _i24.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_10( - this, - Invocation.method( - #getCurrentNode, - [], - ), - )), - ) as _i24.Future<_i9.ElectrumXNode>); - @override - _i24.Future>> fastFetch( - List? allTxHashes) => - (super.noSuchMethod( - Invocation.method( - #fastFetch, - [allTxHashes], - ), - returnValue: _i24.Future>>.value( - >[]), - ) as _i24.Future>>); - @override - _i24.Future getTxCount({required String? address}) => - (super.noSuchMethod( - Invocation.method( - #getTxCount, - [], - {#address: address}, - ), - returnValue: _i24.Future.value(0), - ) as _i24.Future); - @override - _i24.Future checkCurrentReceivingAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkCurrentReceivingAddressesForTransactions, - [], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future checkCurrentChangeAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkCurrentChangeAddressesForTransactions, - [], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - int estimateTxFee({ - required int? vSize, - required int? feeRatePerKB, - }) => - (super.noSuchMethod( - Invocation.method( - #estimateTxFee, - [], - { - #vSize: vSize, - #feeRatePerKB: feeRatePerKB, - }, - ), - returnValue: 0, - ) as int); - @override - dynamic coinSelection({ - required int? satoshiAmountToSend, - required int? selectedTxFeeRate, - required String? recipientAddress, - required bool? coinControl, - required bool? isSendAll, - int? satsPerVByte, - int? additionalOutputs = 0, - List<_i17.UTXO>? utxos, - }) => - super.noSuchMethod(Invocation.method( - #coinSelection, - [], - { - #satoshiAmountToSend: satoshiAmountToSend, - #selectedTxFeeRate: selectedTxFeeRate, - #recipientAddress: recipientAddress, - #coinControl: coinControl, - #isSendAll: isSendAll, - #satsPerVByte: satsPerVByte, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - )); - @override - _i24.Future> fetchBuildTxData( - List<_i17.UTXO>? utxosToUse) => - (super.noSuchMethod( - Invocation.method( - #fetchBuildTxData, - [utxosToUse], - ), - returnValue: - _i24.Future>.value(<_i31.SigningData>[]), - ) as _i24.Future>); - @override - _i24.Future> buildTransaction({ - required List<_i31.SigningData>? utxoSigningData, - required List? recipients, - required List? satoshiAmounts, - }) => - (super.noSuchMethod( - Invocation.method( - #buildTransaction, - [], - { - #utxoSigningData: utxoSigningData, - #recipients: recipients, - #satoshiAmounts: satoshiAmounts, - }, - ), - returnValue: - _i24.Future>.value({}), - ) as _i24.Future>); - @override - _i24.Future fullRescan( - int? maxUnusedAddressGap, - int? maxNumberOfIndexesToCheck, - ) => - (super.noSuchMethod( - Invocation.method( - #fullRescan, - [ - maxUnusedAddressGap, - maxNumberOfIndexesToCheck, - ], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future<_i13.Amount> estimateFeeFor( - _i13.Amount? amount, - int? feeRate, - ) => - (super.noSuchMethod( - Invocation.method( - #estimateFeeFor, - [ - amount, - feeRate, - ], - ), - returnValue: _i24.Future<_i13.Amount>.value(_FakeAmount_11( - this, - Invocation.method( - #estimateFeeFor, - [ - amount, - feeRate, - ], - ), - )), - ) as _i24.Future<_i13.Amount>); - @override - _i13.Amount roughFeeEstimate( - int? inputCount, - int? outputCount, - int? feeRatePerKB, - ) => - (super.noSuchMethod( - Invocation.method( - #roughFeeEstimate, - [ - inputCount, - outputCount, - feeRatePerKB, - ], - ), - returnValue: _FakeAmount_11( - this, - Invocation.method( - #roughFeeEstimate, - [ - inputCount, - outputCount, - feeRatePerKB, - ], - ), - ), - ) as _i13.Amount); - @override - _i24.Future<_i13.Amount> sweepAllEstimate(int? feeRate) => - (super.noSuchMethod( - Invocation.method( - #sweepAllEstimate, - [feeRate], - ), - returnValue: _i24.Future<_i13.Amount>.value(_FakeAmount_11( - this, - Invocation.method( - #sweepAllEstimate, - [feeRate], - ), - )), - ) as _i24.Future<_i13.Amount>); - @override - _i24.Future generateNewAddress() => (super.noSuchMethod( - Invocation.method( - #generateNewAddress, - [], - ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); - @override - void initCache( - String? walletId, - _i23.Coin? coin, - ) => - super.noSuchMethod( - Invocation.method( - #initCache, - [ - walletId, - coin, - ], - ), - returnValueForMissingStub: null, - ); - @override - _i24.Future updateCachedId(String? id) => (super.noSuchMethod( - Invocation.method( - #updateCachedId, - [id], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - int getCachedChainHeight() => (super.noSuchMethod( - Invocation.method( - #getCachedChainHeight, - [], - ), - returnValue: 0, - ) as int); - @override - _i24.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( - Invocation.method( - #updateCachedChainHeight, - [height], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - bool getCachedIsFavorite() => (super.noSuchMethod( - Invocation.method( - #getCachedIsFavorite, - [], - ), - returnValue: false, - ) as bool); - @override - _i24.Future updateCachedIsFavorite(bool? isFavorite) => - (super.noSuchMethod( - Invocation.method( - #updateCachedIsFavorite, - [isFavorite], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i11.Balance getCachedBalance() => (super.noSuchMethod( - Invocation.method( - #getCachedBalance, - [], - ), - returnValue: _FakeBalance_8( - this, - Invocation.method( - #getCachedBalance, - [], - ), - ), - ) as _i11.Balance); - @override - _i24.Future updateCachedBalance(_i11.Balance? balance) => - (super.noSuchMethod( - Invocation.method( - #updateCachedBalance, - [balance], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i11.Balance getCachedBalanceSecondary() => (super.noSuchMethod( - Invocation.method( - #getCachedBalanceSecondary, - [], - ), - returnValue: _FakeBalance_8( - this, - Invocation.method( - #getCachedBalanceSecondary, - [], - ), - ), - ) as _i11.Balance); - @override - _i24.Future updateCachedBalanceSecondary(_i11.Balance? balance) => - (super.noSuchMethod( - Invocation.method( - #updateCachedBalanceSecondary, - [balance], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - List getWalletTokenContractAddresses() => (super.noSuchMethod( - Invocation.method( - #getWalletTokenContractAddresses, - [], - ), - returnValue: [], - ) as List); - @override - _i24.Future updateWalletTokenContractAddresses( - List? contractAddresses) => - (super.noSuchMethod( - Invocation.method( - #updateWalletTokenContractAddresses, - [contractAddresses], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - void initWalletDB({_i3.MainDB? mockableOverride}) => super.noSuchMethod( - Invocation.method( - #initWalletDB, - [], - {#mockableOverride: mockableOverride}, - ), - returnValueForMissingStub: null, - ); - @override - _i24.Future<_i14.TransactionV2> getTransaction( - String? txHash, - _i23.Coin? coin, - String? walletId, - _i10.CachedElectrumX? cachedElectrumX, [ - String? debugTitle, - ]) => - (super.noSuchMethod( - Invocation.method( - #getTransaction, - [ - txHash, - coin, - walletId, - cachedElectrumX, - debugTitle, - ], - ), - returnValue: - _i24.Future<_i14.TransactionV2>.value(_FakeTransactionV2_12( - this, - Invocation.method( - #getTransaction, - [ - txHash, - coin, - walletId, - cachedElectrumX, - debugTitle, - ], - ), - )), - ) as _i24.Future<_i14.TransactionV2>); - @override - _i24.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>> parseTransaction( - Map? txData, - dynamic electrumxClient, - List<_i17.Address>? myAddresses, - _i23.Coin? coin, - int? minConfirms, - String? walletId, - ) => - (super.noSuchMethod( - Invocation.method( - #parseTransaction, - [ - txData, - electrumxClient, - myAddresses, - coin, - minConfirms, - walletId, - ], - ), - returnValue: - _i24.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>.value( - _FakeTuple2_13<_i17.Transaction, _i17.Address>( - this, - Invocation.method( - #parseTransaction, - [ - txData, - electrumxClient, - myAddresses, - coin, - minConfirms, - walletId, - ], - ), - )), - ) as _i24.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>); - @override - void initPaynymWalletInterface({ - required String? walletId, - required String? walletName, - required _i12.NetworkType? network, - required _i23.Coin? coin, - required _i3.MainDB? db, - required _i9.ElectrumX? electrumXClient, - required _i6.SecureStorageInterface? secureStorage, - required int? dustLimit, - required int? dustLimitP2PKH, - required int? minConfirms, - required _i24.Future Function()? getMnemonicString, - required _i24.Future Function()? getMnemonicPassphrase, - required _i24.Future Function()? getChainHeight, - required _i24.Future Function()? getCurrentChangeAddress, - required int Function({ - required int feeRatePerKB, - required int vSize, - })? estimateTxFee, - required _i24.Future> Function({ - required String address, - required _i13.Amount amount, - Map? args, - })? prepareSend, - required _i24.Future Function({required String address})? getTxCount, - required _i24.Future> Function(List<_i17.UTXO>)? - fetchBuildTxData, - required _i24.Future Function()? refresh, - required _i24.Future Function()? checkChangeAddressForTransactions, - }) => - super.noSuchMethod( - Invocation.method( - #initPaynymWalletInterface, - [], - { - #walletId: walletId, - #walletName: walletName, - #network: network, - #coin: coin, - #db: db, - #electrumXClient: electrumXClient, - #secureStorage: secureStorage, - #dustLimit: dustLimit, - #dustLimitP2PKH: dustLimitP2PKH, - #minConfirms: minConfirms, - #getMnemonicString: getMnemonicString, - #getMnemonicPassphrase: getMnemonicPassphrase, - #getChainHeight: getChainHeight, - #getCurrentChangeAddress: getCurrentChangeAddress, - #estimateTxFee: estimateTxFee, - #prepareSend: prepareSend, - #getTxCount: getTxCount, - #fetchBuildTxData: fetchBuildTxData, - #refresh: refresh, - #checkChangeAddressForTransactions: - checkChangeAddressForTransactions, - }, - ), - returnValueForMissingStub: null, - ); - @override - _i24.Future<_i16.BIP32> getBip47BaseNode() => (super.noSuchMethod( - Invocation.method( - #getBip47BaseNode, - [], - ), - returnValue: _i24.Future<_i16.BIP32>.value(_FakeBIP32_14( - this, - Invocation.method( - #getBip47BaseNode, - [], - ), - )), - ) as _i24.Future<_i16.BIP32>); - @override - _i24.Future<_i32.Uint8List> getPrivateKeyForPaynymReceivingAddress({ - required String? paymentCodeString, - required int? index, - }) => - (super.noSuchMethod( - Invocation.method( - #getPrivateKeyForPaynymReceivingAddress, - [], - { - #paymentCodeString: paymentCodeString, - #index: index, - }, - ), - returnValue: _i24.Future<_i32.Uint8List>.value(_i32.Uint8List(0)), - ) as _i24.Future<_i32.Uint8List>); - @override - _i24.Future<_i17.Address> currentReceivingPaynymAddress({ - required _i18.PaymentCode? sender, - required bool? isSegwit, - }) => - (super.noSuchMethod( - Invocation.method( - #currentReceivingPaynymAddress, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - returnValue: _i24.Future<_i17.Address>.value(_FakeAddress_15( - this, - Invocation.method( - #currentReceivingPaynymAddress, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - )), - ) as _i24.Future<_i17.Address>); - @override - _i24.Future checkCurrentPaynymReceivingAddressForTransactions({ - required _i18.PaymentCode? sender, - required bool? isSegwit, - }) => - (super.noSuchMethod( - Invocation.method( - #checkCurrentPaynymReceivingAddressForTransactions, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkAllCurrentReceivingPaynymAddressesForTransactions, - [], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future<_i16.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( - Invocation.method( - #deriveNotificationBip32Node, - [], - ), - returnValue: _i24.Future<_i16.BIP32>.value(_FakeBIP32_14( - this, - Invocation.method( - #deriveNotificationBip32Node, - [], - ), - )), - ) as _i24.Future<_i16.BIP32>); - @override - _i24.Future<_i18.PaymentCode> getPaymentCode({required bool? isSegwit}) => - (super.noSuchMethod( - Invocation.method( - #getPaymentCode, - [], - {#isSegwit: isSegwit}, - ), - returnValue: _i24.Future<_i18.PaymentCode>.value(_FakePaymentCode_16( - this, - Invocation.method( - #getPaymentCode, - [], - {#isSegwit: isSegwit}, - ), - )), - ) as _i24.Future<_i18.PaymentCode>); - @override - _i24.Future<_i32.Uint8List> signWithNotificationKey(_i32.Uint8List? data) => - (super.noSuchMethod( - Invocation.method( - #signWithNotificationKey, - [data], - ), - returnValue: _i24.Future<_i32.Uint8List>.value(_i32.Uint8List(0)), - ) as _i24.Future<_i32.Uint8List>); - @override - _i24.Future signStringWithNotificationKey(String? data) => - (super.noSuchMethod( - Invocation.method( - #signStringWithNotificationKey, - [data], - ), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - _i24.Future> preparePaymentCodeSend({ - required _i18.PaymentCode? paymentCode, - required bool? isSegwit, - required _i13.Amount? amount, - Map? args, - }) => - (super.noSuchMethod( - Invocation.method( - #preparePaymentCodeSend, - [], - { - #paymentCode: paymentCode, - #isSegwit: isSegwit, - #amount: amount, - #args: args, - }, - ), - returnValue: - _i24.Future>.value({}), - ) as _i24.Future>); - @override - _i24.Future<_i17.Address> nextUnusedSendAddressFrom({ - required _i18.PaymentCode? pCode, - required bool? isSegwit, - required _i16.BIP32? privateKeyNode, - int? startIndex = 0, - }) => - (super.noSuchMethod( - Invocation.method( - #nextUnusedSendAddressFrom, - [], - { - #pCode: pCode, - #isSegwit: isSegwit, - #privateKeyNode: privateKeyNode, - #startIndex: startIndex, - }, - ), - returnValue: _i24.Future<_i17.Address>.value(_FakeAddress_15( - this, - Invocation.method( - #nextUnusedSendAddressFrom, - [], - { - #pCode: pCode, - #isSegwit: isSegwit, - #privateKeyNode: privateKeyNode, - #startIndex: startIndex, - }, - ), - )), - ) as _i24.Future<_i17.Address>); - @override - _i24.Future<_i19.TxData> prepareNotificationTx({ - required int? selectedTxFeeRate, - required String? targetPaymentCodeString, - int? additionalOutputs = 0, - List<_i17.UTXO>? utxos, - }) => - (super.noSuchMethod( - Invocation.method( - #prepareNotificationTx, - [], - { - #selectedTxFeeRate: selectedTxFeeRate, - #targetPaymentCodeString: targetPaymentCodeString, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - ), - returnValue: _i24.Future<_i19.TxData>.value(_FakeTxData_17( - this, - Invocation.method( - #prepareNotificationTx, - [], - { - #selectedTxFeeRate: selectedTxFeeRate, - #targetPaymentCodeString: targetPaymentCodeString, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - ), - )), - ) as _i24.Future<_i19.TxData>); - @override - _i24.Future broadcastNotificationTx( - {required Map? preparedTx}) => - (super.noSuchMethod( - Invocation.method( - #broadcastNotificationTx, - [], - {#preparedTx: preparedTx}, - ), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - _i24.Future hasConnected(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #hasConnected, - [paymentCodeString], - ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); - @override - _i24.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransaction( - {required _i17.Transaction? transaction}) => - (super.noSuchMethod( - Invocation.method( - #unBlindedPaymentCodeFromTransaction, - [], - {#transaction: transaction}, - ), - returnValue: _i24.Future<_i18.PaymentCode?>.value(), - ) as _i24.Future<_i18.PaymentCode?>); - @override - _i24.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( - {required _i17.Transaction? transaction}) => - (super.noSuchMethod( - Invocation.method( - #unBlindedPaymentCodeFromTransactionBad, - [], - {#transaction: transaction}, - ), - returnValue: _i24.Future<_i18.PaymentCode?>.value(), - ) as _i24.Future<_i18.PaymentCode?>); - @override - _i24.Future> - getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( - Invocation.method( - #getAllPaymentCodesFromNotificationTransactions, - [], - ), - returnValue: - _i24.Future>.value(<_i18.PaymentCode>[]), - ) as _i24.Future>); - @override - _i24.Future checkForNotificationTransactionsTo( - Set? otherCodeStrings) => - (super.noSuchMethod( - Invocation.method( - #checkForNotificationTransactionsTo, - [otherCodeStrings], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future restoreAllHistory({ - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - required Set? paymentCodeStrings, - }) => - (super.noSuchMethod( - Invocation.method( - #restoreAllHistory, - [], - { - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - #paymentCodeStrings: paymentCodeStrings, - }, - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future restoreHistoryWith({ - required _i18.PaymentCode? other, - required bool? checkSegwitAsWell, - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - }) => - (super.noSuchMethod( - Invocation.method( - #restoreHistoryWith, - [], - { - #other: other, - #checkSegwitAsWell: checkSegwitAsWell, - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - }, - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future<_i17.Address> getMyNotificationAddress() => (super.noSuchMethod( - Invocation.method( - #getMyNotificationAddress, - [], - ), - returnValue: _i24.Future<_i17.Address>.value(_FakeAddress_15( - this, - Invocation.method( - #getMyNotificationAddress, - [], - ), - )), - ) as _i24.Future<_i17.Address>); - @override - _i24.Future> lookupKey(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #lookupKey, - [paymentCodeString], - ), - returnValue: _i24.Future>.value([]), - ) as _i24.Future>); - @override - _i24.Future paymentCodeStringByKey(String? key) => - (super.noSuchMethod( - Invocation.method( - #paymentCodeStringByKey, - [key], - ), - returnValue: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future storeCode(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #storeCode, - [paymentCodeString], - ), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - void initCoinControlInterface({ - required String? walletId, - required String? walletName, - required _i23.Coin? coin, - required _i3.MainDB? db, - required _i24.Future Function()? getChainHeight, - required _i24.Future Function(_i11.Balance)? refreshedBalanceCallback, - }) => - super.noSuchMethod( - Invocation.method( - #initCoinControlInterface, - [], - { - #walletId: walletId, - #walletName: walletName, - #coin: coin, - #db: db, - #getChainHeight: getChainHeight, - #refreshedBalanceCallback: refreshedBalanceCallback, - }, - ), - returnValueForMissingStub: null, - ); - @override - _i24.Future refreshBalance({bool? notify = false}) => - (super.noSuchMethod( - Invocation.method( - #refreshBalance, - [], - {#notify: notify}, - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); -} - /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i33.LocaleService { +class MockLocaleService extends _i1.Mock implements _i19.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -2166,17 +731,17 @@ class MockLocaleService extends _i1.Mock implements _i33.LocaleService { returnValue: false, ) as bool); @override - _i24.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( + _i14.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( #loadLocale, [], {#notify: notify}, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - void addListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2184,7 +749,7 @@ class MockLocaleService extends _i1.Mock implements _i33.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2212,21 +777,21 @@ class MockLocaleService extends _i1.Mock implements _i33.LocaleService { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i34.ThemeService { +class MockThemeService extends _i1.Mock implements _i20.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @override - _i20.HTTP get client => (super.noSuchMethod( + _i7.HTTP get client => (super.noSuchMethod( Invocation.getter(#client), - returnValue: _FakeHTTP_18( + returnValue: _FakeHTTP_4( this, Invocation.getter(#client), ), - ) as _i20.HTTP); + ) as _i7.HTTP); @override - set client(_i20.HTTP? _client) => super.noSuchMethod( + set client(_i7.HTTP? _client) => super.noSuchMethod( Invocation.setter( #client, _client, @@ -2242,10 +807,10 @@ class MockThemeService extends _i1.Mock implements _i34.ThemeService { ), ) as _i3.MainDB); @override - List<_i35.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i21.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i35.StackTheme>[], - ) as List<_i35.StackTheme>); + returnValue: <_i21.StackTheme>[], + ) as List<_i21.StackTheme>); @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -2255,79 +820,79 @@ class MockThemeService extends _i1.Mock implements _i34.ThemeService { returnValueForMissingStub: null, ); @override - _i24.Future install({required _i32.Uint8List? themeArchiveData}) => + _i14.Future install({required _i22.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future remove({required String? themeId}) => (super.noSuchMethod( + _i14.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i14.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future verifyInstalled({required String? themeId}) => + _i14.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i24.Future> fetchThemes() => + _i14.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i24.Future>.value( - <_i34.StackThemeMetaData>[]), - ) as _i24.Future>); + returnValue: _i14.Future>.value( + <_i20.StackThemeMetaData>[]), + ) as _i14.Future>); @override - _i24.Future<_i32.Uint8List> fetchTheme( - {required _i34.StackThemeMetaData? themeMetaData}) => + _i14.Future<_i22.Uint8List> fetchTheme( + {required _i20.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i24.Future<_i32.Uint8List>.value(_i32.Uint8List(0)), - ) as _i24.Future<_i32.Uint8List>); + returnValue: _i14.Future<_i22.Uint8List>.value(_i22.Uint8List(0)), + ) as _i14.Future<_i22.Uint8List>); @override - _i35.StackTheme? getTheme({required String? themeId}) => + _i21.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i35.StackTheme?); + )) as _i21.StackTheme?); } /// A class which mocks [Prefs]. /// /// See the documentation for Mockito's code generation for more information. -class MockPrefs extends _i1.Mock implements _i25.Prefs { +class MockPrefs extends _i1.Mock implements _i15.Prefs { MockPrefs() { _i1.throwOnMissingStub(this); } @@ -2383,12 +948,12 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { returnValueForMissingStub: null, ); @override - _i36.SyncingType get syncType => (super.noSuchMethod( + _i23.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), - returnValue: _i36.SyncingType.currentWalletOnly, - ) as _i36.SyncingType); + returnValue: _i23.SyncingType.currentWalletOnly, + ) as _i23.SyncingType); @override - set syncType(_i36.SyncingType? syncType) => super.noSuchMethod( + set syncType(_i23.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( #syncType, syncType, @@ -2547,12 +1112,12 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { returnValueForMissingStub: null, ); @override - _i37.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( + _i24.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), - returnValue: _i37.BackupFrequencyType.everyTenMinutes, - ) as _i37.BackupFrequencyType); + returnValue: _i24.BackupFrequencyType.everyTenMinutes, + ) as _i24.BackupFrequencyType); @override - set backupFrequencyType(_i37.BackupFrequencyType? backupFrequencyType) => + set backupFrequencyType(_i24.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( Invocation.setter( #backupFrequencyType, @@ -2698,15 +1263,15 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { returnValueForMissingStub: null, ); @override - _i21.FusionInfo get fusionServerInfo => (super.noSuchMethod( + _i8.FusionInfo get fusionServerInfo => (super.noSuchMethod( Invocation.getter(#fusionServerInfo), - returnValue: _FakeFusionInfo_19( + returnValue: _FakeFusionInfo_5( this, Invocation.getter(#fusionServerInfo), ), - ) as _i21.FusionInfo); + ) as _i8.FusionInfo); @override - set fusionServerInfo(_i21.FusionInfo? fusionServerInfo) => super.noSuchMethod( + set fusionServerInfo(_i8.FusionInfo? fusionServerInfo) => super.noSuchMethod( Invocation.setter( #fusionServerInfo, fusionServerInfo, @@ -2719,61 +1284,61 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { returnValue: false, ) as bool); @override - _i24.Future init() => (super.noSuchMethod( + _i14.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( + _i14.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( Invocation.method( #incrementCurrentNotificationIndex, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future isExternalCallsSet() => (super.noSuchMethod( + _i14.Future isExternalCallsSet() => (super.noSuchMethod( Invocation.method( #isExternalCallsSet, [], ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i24.Future saveUserID(String? userId) => (super.noSuchMethod( + _i14.Future saveUserID(String? userId) => (super.noSuchMethod( Invocation.method( #saveUserID, [userId], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( + _i14.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( Invocation.method( #saveSignupEpoch, [signupEpoch], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i38.AmountUnit amountUnit(_i23.Coin? coin) => (super.noSuchMethod( + _i25.AmountUnit amountUnit(_i13.Coin? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], ), - returnValue: _i38.AmountUnit.normal, - ) as _i38.AmountUnit); + returnValue: _i25.AmountUnit.normal, + ) as _i25.AmountUnit); @override void updateAmountUnit({ - required _i23.Coin? coin, - required _i38.AmountUnit? amountUnit, + required _i13.Coin? coin, + required _i25.AmountUnit? amountUnit, }) => super.noSuchMethod( Invocation.method( @@ -2787,7 +1352,7 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { returnValueForMissingStub: null, ); @override - int maxDecimals(_i23.Coin? coin) => (super.noSuchMethod( + int maxDecimals(_i13.Coin? coin) => (super.noSuchMethod( Invocation.method( #maxDecimals, [coin], @@ -2796,7 +1361,7 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { ) as int); @override void updateMaxDecimals({ - required _i23.Coin? coin, + required _i13.Coin? coin, required int? maxDecimals, }) => super.noSuchMethod( @@ -2811,7 +1376,7 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { returnValueForMissingStub: null, ); @override - void addListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2819,7 +1384,7 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2847,7 +1412,7 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -2858,10 +1423,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i23.Coin get coin => (super.noSuchMethod( + _i13.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i23.Coin.bitcoin, - ) as _i23.Coin); + returnValue: _i13.Coin.bitcoin, + ) as _i13.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2894,42 +1459,42 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i24.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i14.Future<_i9.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i24.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i14.Future<_i9.FeeObject>.value(_FakeFeeObject_6( this, Invocation.getter(#fees), )), - ) as _i24.Future<_i8.FeeObject>); + ) as _i14.Future<_i9.FeeObject>); @override - _i24.Future get maxFee => (super.noSuchMethod( + _i14.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i24.Future.value(0), - ) as _i24.Future); + returnValue: _i14.Future.value(0), + ) as _i14.Future); @override - _i24.Future get currentReceivingAddress => (super.noSuchMethod( + _i14.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i24.Future.value(''), - ) as _i24.Future); + returnValue: _i14.Future.value(''), + ) as _i14.Future); @override - _i11.Balance get balance => (super.noSuchMethod( + _i10.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), - returnValue: _FakeBalance_8( + returnValue: _FakeBalance_7( this, Invocation.getter(#balance), ), - ) as _i11.Balance); + ) as _i10.Balance); @override - _i24.Future> get transactions => (super.noSuchMethod( + _i14.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i24.Future>.value(<_i17.Transaction>[]), - ) as _i24.Future>); + _i14.Future>.value(<_i27.Transaction>[]), + ) as _i14.Future>); @override - _i24.Future> get utxos => (super.noSuchMethod( + _i14.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i24.Future>.value(<_i17.UTXO>[]), - ) as _i24.Future>); + returnValue: _i14.Future>.value(<_i27.UTXO>[]), + ) as _i14.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2949,20 +1514,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { returnValue: '', ) as String); @override - _i24.Future> get mnemonic => (super.noSuchMethod( + _i14.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i24.Future>.value([]), - ) as _i24.Future>); + returnValue: _i14.Future>.value([]), + ) as _i14.Future>); @override - _i24.Future get mnemonicString => (super.noSuchMethod( + _i14.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future get mnemonicPassphrase => (super.noSuchMethod( + _i14.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + ) as _i14.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -2979,9 +1544,9 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { returnValue: 0, ) as int); @override - _i24.Future> prepareSend({ + _i14.Future> prepareSend({ required String? address, - required _i13.Amount? amount, + required _i11.Amount? amount, Map? args, }) => (super.noSuchMethod( @@ -2995,36 +1560,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { }, ), returnValue: - _i24.Future>.value({}), - ) as _i24.Future>); + _i14.Future>.value({}), + ) as _i14.Future>); @override - _i24.Future confirmSend({required Map? txData}) => + _i14.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i24.Future.value(''), - ) as _i24.Future); + returnValue: _i14.Future.value(''), + ) as _i14.Future); @override - _i24.Future refresh() => (super.noSuchMethod( + _i14.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i14.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -3034,15 +1599,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { returnValue: false, ) as bool); @override - _i24.Future testNetworkConnection() => (super.noSuchMethod( + _i14.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i24.Future recoverFromMnemonic({ + _i14.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -3061,40 +1626,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { #height: height, }, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future initializeNew( + _i14.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future initializeExisting() => (super.noSuchMethod( + _i14.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future exit() => (super.noSuchMethod( + _i14.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future fullRescan( + _i14.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -3106,12 +1671,12 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future<_i13.Amount> estimateFeeFor( - _i13.Amount? amount, + _i14.Future<_i11.Amount> estimateFeeFor( + _i11.Amount? amount, int? feeRate, ) => (super.noSuchMethod( @@ -3122,7 +1687,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { feeRate, ], ), - returnValue: _i24.Future<_i13.Amount>.value(_FakeAmount_11( + returnValue: _i14.Future<_i11.Amount>.value(_FakeAmount_8( this, Invocation.method( #estimateFeeFor, @@ -3132,23 +1697,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { ], ), )), - ) as _i24.Future<_i13.Amount>); + ) as _i14.Future<_i11.Amount>); @override - _i24.Future generateNewAddress() => (super.noSuchMethod( + _i14.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i24.Future updateSentCachedTxData(Map? txData) => + _i14.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); } diff --git a/test/screen_tests/address_book_view/subviews/address_book_entry_details_view_screen_test.mocks.dart b/test/screen_tests/address_book_view/subviews/address_book_entry_details_view_screen_test.mocks.dart index 22b6a1684..b16ab6149 100644 --- a/test/screen_tests/address_book_view/subviews/address_book_entry_details_view_screen_test.mocks.dart +++ b/test/screen_tests/address_book_view/subviews/address_book_entry_details_view_screen_test.mocks.dart @@ -9,8 +9,7 @@ import 'dart:ui' as _i5; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i2; import 'package:stackwallet/services/address_book_service.dart' as _i3; -import 'package:stackwallet/services/locale_service.dart' as _i7; -import 'package:stackwallet/services/notes_service.dart' as _i6; +import 'package:stackwallet/services/locale_service.dart' as _i6; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -147,112 +146,10 @@ class MockAddressBookService extends _i1.Mock ); } -/// A class which mocks [NotesService]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockNotesService extends _i1.Mock implements _i6.NotesService { - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - Map get notesSync => (super.noSuchMethod( - Invocation.getter(#notesSync), - returnValue: {}, - ) as Map); - @override - _i4.Future> get notes => (super.noSuchMethod( - Invocation.getter(#notes), - returnValue: _i4.Future>.value({}), - ) as _i4.Future>); - @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - ) as bool); - @override - _i4.Future> search(String? text) => (super.noSuchMethod( - Invocation.method( - #search, - [text], - ), - returnValue: _i4.Future>.value({}), - ) as _i4.Future>); - @override - _i4.Future getNoteFor({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #getNoteFor, - [], - {#txid: txid}, - ), - returnValue: _i4.Future.value(''), - ) as _i4.Future); - @override - _i4.Future editOrAddNote({ - required String? txid, - required String? note, - }) => - (super.noSuchMethod( - Invocation.method( - #editOrAddNote, - [], - { - #txid: txid, - #note: note, - }, - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - @override - _i4.Future deleteNote({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #deleteNote, - [], - {#txid: txid}, - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - @override - void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); - @override - void notifyListeners() => super.noSuchMethod( - Invocation.method( - #notifyListeners, - [], - ), - returnValueForMissingStub: null, - ); -} - /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i7.LocaleService { +class MockLocaleService extends _i1.Mock implements _i6.LocaleService { @override String get locale => (super.noSuchMethod( Invocation.getter(#locale), diff --git a/test/screen_tests/main_view_tests/main_view_screen_testA_test.mocks.dart b/test/screen_tests/main_view_tests/main_view_screen_testA_test.mocks.dart index a1c469ba7..2a9b531c2 100644 --- a/test/screen_tests/main_view_tests/main_view_screen_testA_test.mocks.dart +++ b/test/screen_tests/main_view_tests/main_view_screen_testA_test.mocks.dart @@ -7,8 +7,7 @@ import 'dart:async' as _i3; import 'dart:ui' as _i5; import 'package:mockito/mockito.dart' as _i1; -import 'package:stackwallet/services/locale_service.dart' as _i7; -import 'package:stackwallet/services/notes_service.dart' as _i6; +import 'package:stackwallet/services/locale_service.dart' as _i6; import 'package:stackwallet/services/wallets_service.dart' as _i2; import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i4; @@ -253,112 +252,10 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ); } -/// A class which mocks [NotesService]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockNotesService extends _i1.Mock implements _i6.NotesService { - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - Map get notesSync => (super.noSuchMethod( - Invocation.getter(#notesSync), - returnValue: {}, - ) as Map); - @override - _i3.Future> get notes => (super.noSuchMethod( - Invocation.getter(#notes), - returnValue: _i3.Future>.value({}), - ) as _i3.Future>); - @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - ) as bool); - @override - _i3.Future> search(String? text) => (super.noSuchMethod( - Invocation.method( - #search, - [text], - ), - returnValue: _i3.Future>.value({}), - ) as _i3.Future>); - @override - _i3.Future getNoteFor({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #getNoteFor, - [], - {#txid: txid}, - ), - returnValue: _i3.Future.value(''), - ) as _i3.Future); - @override - _i3.Future editOrAddNote({ - required String? txid, - required String? note, - }) => - (super.noSuchMethod( - Invocation.method( - #editOrAddNote, - [], - { - #txid: txid, - #note: note, - }, - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - @override - _i3.Future deleteNote({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #deleteNote, - [], - {#txid: txid}, - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - @override - void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); - @override - void notifyListeners() => super.noSuchMethod( - Invocation.method( - #notifyListeners, - [], - ), - returnValueForMissingStub: null, - ); -} - /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i7.LocaleService { +class MockLocaleService extends _i1.Mock implements _i6.LocaleService { @override String get locale => (super.noSuchMethod( Invocation.getter(#locale), diff --git a/test/screen_tests/main_view_tests/main_view_screen_testB_test.mocks.dart b/test/screen_tests/main_view_tests/main_view_screen_testB_test.mocks.dart index aa5fbd8e2..977f1aa81 100644 --- a/test/screen_tests/main_view_tests/main_view_screen_testB_test.mocks.dart +++ b/test/screen_tests/main_view_tests/main_view_screen_testB_test.mocks.dart @@ -7,8 +7,7 @@ import 'dart:async' as _i3; import 'dart:ui' as _i5; import 'package:mockito/mockito.dart' as _i1; -import 'package:stackwallet/services/locale_service.dart' as _i7; -import 'package:stackwallet/services/notes_service.dart' as _i6; +import 'package:stackwallet/services/locale_service.dart' as _i6; import 'package:stackwallet/services/wallets_service.dart' as _i2; import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i4; @@ -253,112 +252,10 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ); } -/// A class which mocks [NotesService]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockNotesService extends _i1.Mock implements _i6.NotesService { - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - Map get notesSync => (super.noSuchMethod( - Invocation.getter(#notesSync), - returnValue: {}, - ) as Map); - @override - _i3.Future> get notes => (super.noSuchMethod( - Invocation.getter(#notes), - returnValue: _i3.Future>.value({}), - ) as _i3.Future>); - @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - ) as bool); - @override - _i3.Future> search(String? text) => (super.noSuchMethod( - Invocation.method( - #search, - [text], - ), - returnValue: _i3.Future>.value({}), - ) as _i3.Future>); - @override - _i3.Future getNoteFor({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #getNoteFor, - [], - {#txid: txid}, - ), - returnValue: _i3.Future.value(''), - ) as _i3.Future); - @override - _i3.Future editOrAddNote({ - required String? txid, - required String? note, - }) => - (super.noSuchMethod( - Invocation.method( - #editOrAddNote, - [], - { - #txid: txid, - #note: note, - }, - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - @override - _i3.Future deleteNote({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #deleteNote, - [], - {#txid: txid}, - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - @override - void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); - @override - void notifyListeners() => super.noSuchMethod( - Invocation.method( - #notifyListeners, - [], - ), - returnValueForMissingStub: null, - ); -} - /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i7.LocaleService { +class MockLocaleService extends _i1.Mock implements _i6.LocaleService { @override String get locale => (super.noSuchMethod( Invocation.getter(#locale), diff --git a/test/screen_tests/main_view_tests/main_view_screen_testC_test.mocks.dart b/test/screen_tests/main_view_tests/main_view_screen_testC_test.mocks.dart index 3897782c4..e4fe905d5 100644 --- a/test/screen_tests/main_view_tests/main_view_screen_testC_test.mocks.dart +++ b/test/screen_tests/main_view_tests/main_view_screen_testC_test.mocks.dart @@ -7,8 +7,7 @@ import 'dart:async' as _i3; import 'dart:ui' as _i5; import 'package:mockito/mockito.dart' as _i1; -import 'package:stackwallet/services/locale_service.dart' as _i7; -import 'package:stackwallet/services/notes_service.dart' as _i6; +import 'package:stackwallet/services/locale_service.dart' as _i6; import 'package:stackwallet/services/wallets_service.dart' as _i2; import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i4; @@ -253,112 +252,10 @@ class MockWalletsService extends _i1.Mock implements _i2.WalletsService { ); } -/// A class which mocks [NotesService]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockNotesService extends _i1.Mock implements _i6.NotesService { - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - Map get notesSync => (super.noSuchMethod( - Invocation.getter(#notesSync), - returnValue: {}, - ) as Map); - @override - _i3.Future> get notes => (super.noSuchMethod( - Invocation.getter(#notes), - returnValue: _i3.Future>.value({}), - ) as _i3.Future>); - @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - ) as bool); - @override - _i3.Future> search(String? text) => (super.noSuchMethod( - Invocation.method( - #search, - [text], - ), - returnValue: _i3.Future>.value({}), - ) as _i3.Future>); - @override - _i3.Future getNoteFor({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #getNoteFor, - [], - {#txid: txid}, - ), - returnValue: _i3.Future.value(''), - ) as _i3.Future); - @override - _i3.Future editOrAddNote({ - required String? txid, - required String? note, - }) => - (super.noSuchMethod( - Invocation.method( - #editOrAddNote, - [], - { - #txid: txid, - #note: note, - }, - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - @override - _i3.Future deleteNote({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #deleteNote, - [], - {#txid: txid}, - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - @override - void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); - @override - void notifyListeners() => super.noSuchMethod( - Invocation.method( - #notifyListeners, - [], - ), - returnValueForMissingStub: null, - ); -} - /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i7.LocaleService { +class MockLocaleService extends _i1.Mock implements _i6.LocaleService { @override String get locale => (super.noSuchMethod( Invocation.getter(#locale), diff --git a/test/screen_tests/transaction_subviews/transaction_details_view_screen_test.mocks.dart b/test/screen_tests/transaction_subviews/transaction_details_view_screen_test.mocks.dart index 95ef22442..7d62e5a47 100644 --- a/test/screen_tests/transaction_subviews/transaction_details_view_screen_test.mocks.dart +++ b/test/screen_tests/transaction_subviews/transaction_details_view_screen_test.mocks.dart @@ -8,9 +8,8 @@ import 'dart:ui' as _i5; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i2; -import 'package:stackwallet/services/address_book_service.dart' as _i6; -import 'package:stackwallet/services/locale_service.dart' as _i7; -import 'package:stackwallet/services/notes_service.dart' as _i3; +import 'package:stackwallet/services/address_book_service.dart' as _i3; +import 'package:stackwallet/services/locale_service.dart' as _i6; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -33,113 +32,11 @@ class _FakeContactEntry_0 extends _i1.SmartFake implements _i2.ContactEntry { ); } -/// A class which mocks [NotesService]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockNotesService extends _i1.Mock implements _i3.NotesService { - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - Map get notesSync => (super.noSuchMethod( - Invocation.getter(#notesSync), - returnValue: {}, - ) as Map); - @override - _i4.Future> get notes => (super.noSuchMethod( - Invocation.getter(#notes), - returnValue: _i4.Future>.value({}), - ) as _i4.Future>); - @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - ) as bool); - @override - _i4.Future> search(String? text) => (super.noSuchMethod( - Invocation.method( - #search, - [text], - ), - returnValue: _i4.Future>.value({}), - ) as _i4.Future>); - @override - _i4.Future getNoteFor({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #getNoteFor, - [], - {#txid: txid}, - ), - returnValue: _i4.Future.value(''), - ) as _i4.Future); - @override - _i4.Future editOrAddNote({ - required String? txid, - required String? note, - }) => - (super.noSuchMethod( - Invocation.method( - #editOrAddNote, - [], - { - #txid: txid, - #note: note, - }, - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - @override - _i4.Future deleteNote({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #deleteNote, - [], - {#txid: txid}, - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - @override - void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); - @override - void notifyListeners() => super.noSuchMethod( - Invocation.method( - #notifyListeners, - [], - ), - returnValueForMissingStub: null, - ); -} - /// A class which mocks [AddressBookService]. /// /// See the documentation for Mockito's code generation for more information. class MockAddressBookService extends _i1.Mock - implements _i6.AddressBookService { + implements _i3.AddressBookService { @override List<_i2.ContactEntry> get contacts => (super.noSuchMethod( Invocation.getter(#contacts), @@ -252,7 +149,7 @@ class MockAddressBookService extends _i1.Mock /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i7.LocaleService { +class MockLocaleService extends _i1.Mock implements _i6.LocaleService { @override String get locale => (super.noSuchMethod( Invocation.getter(#locale), diff --git a/test/screen_tests/transaction_subviews/transaction_search_results_view_screen_test.mocks.dart b/test/screen_tests/transaction_subviews/transaction_search_results_view_screen_test.mocks.dart index ad27b7ade..46f63781d 100644 --- a/test/screen_tests/transaction_subviews/transaction_search_results_view_screen_test.mocks.dart +++ b/test/screen_tests/transaction_subviews/transaction_search_results_view_screen_test.mocks.dart @@ -7,8 +7,7 @@ import 'dart:async' as _i3; import 'dart:ui' as _i4; import 'package:mockito/mockito.dart' as _i1; -import 'package:stackwallet/services/locale_service.dart' as _i5; -import 'package:stackwallet/services/notes_service.dart' as _i2; +import 'package:stackwallet/services/locale_service.dart' as _i2; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -21,112 +20,10 @@ import 'package:stackwallet/services/notes_service.dart' as _i2; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -/// A class which mocks [NotesService]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockNotesService extends _i1.Mock implements _i2.NotesService { - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - Map get notesSync => (super.noSuchMethod( - Invocation.getter(#notesSync), - returnValue: {}, - ) as Map); - @override - _i3.Future> get notes => (super.noSuchMethod( - Invocation.getter(#notes), - returnValue: _i3.Future>.value({}), - ) as _i3.Future>); - @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - ) as bool); - @override - _i3.Future> search(String? text) => (super.noSuchMethod( - Invocation.method( - #search, - [text], - ), - returnValue: _i3.Future>.value({}), - ) as _i3.Future>); - @override - _i3.Future getNoteFor({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #getNoteFor, - [], - {#txid: txid}, - ), - returnValue: _i3.Future.value(''), - ) as _i3.Future); - @override - _i3.Future editOrAddNote({ - required String? txid, - required String? note, - }) => - (super.noSuchMethod( - Invocation.method( - #editOrAddNote, - [], - { - #txid: txid, - #note: note, - }, - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - @override - _i3.Future deleteNote({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #deleteNote, - [], - {#txid: txid}, - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - @override - void addListener(_i4.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); - @override - void notifyListeners() => super.noSuchMethod( - Invocation.method( - #notifyListeners, - [], - ), - returnValueForMissingStub: null, - ); -} - /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i5.LocaleService { +class MockLocaleService extends _i1.Mock implements _i2.LocaleService { @override String get locale => (super.noSuchMethod( Invocation.getter(#locale), diff --git a/test/screen_tests/transaction_subviews/transaction_search_view_screen_test.mocks.dart b/test/screen_tests/transaction_subviews/transaction_search_view_screen_test.mocks.dart index b4b3ec001..652e170f0 100644 --- a/test/screen_tests/transaction_subviews/transaction_search_view_screen_test.mocks.dart +++ b/test/screen_tests/transaction_subviews/transaction_search_view_screen_test.mocks.dart @@ -9,7 +9,6 @@ import 'dart:ui' as _i5; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i2; import 'package:stackwallet/services/address_book_service.dart' as _i3; -import 'package:stackwallet/services/notes_service.dart' as _i6; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -145,105 +144,3 @@ class MockAddressBookService extends _i1.Mock returnValueForMissingStub: null, ); } - -/// A class which mocks [NotesService]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockNotesService extends _i1.Mock implements _i6.NotesService { - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - Map get notesSync => (super.noSuchMethod( - Invocation.getter(#notesSync), - returnValue: {}, - ) as Map); - @override - _i4.Future> get notes => (super.noSuchMethod( - Invocation.getter(#notes), - returnValue: _i4.Future>.value({}), - ) as _i4.Future>); - @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - ) as bool); - @override - _i4.Future> search(String? text) => (super.noSuchMethod( - Invocation.method( - #search, - [text], - ), - returnValue: _i4.Future>.value({}), - ) as _i4.Future>); - @override - _i4.Future getNoteFor({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #getNoteFor, - [], - {#txid: txid}, - ), - returnValue: _i4.Future.value(''), - ) as _i4.Future); - @override - _i4.Future editOrAddNote({ - required String? txid, - required String? note, - }) => - (super.noSuchMethod( - Invocation.method( - #editOrAddNote, - [], - { - #txid: txid, - #note: note, - }, - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - @override - _i4.Future deleteNote({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #deleteNote, - [], - {#txid: txid}, - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - @override - void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); - @override - void notifyListeners() => super.noSuchMethod( - Invocation.method( - #notifyListeners, - [], - ), - returnValueForMissingStub: null, - ); -} diff --git a/test/screen_tests/wallet_view/confirm_send_view_screen_test.mocks.dart b/test/screen_tests/wallet_view/confirm_send_view_screen_test.mocks.dart deleted file mode 100644 index 7b340343f..000000000 --- a/test/screen_tests/wallet_view/confirm_send_view_screen_test.mocks.dart +++ /dev/null @@ -1,123 +0,0 @@ -// Mocks generated by Mockito 5.4.2 from annotations -// in stackwallet/test/screen_tests/wallet_view/confirm_send_view_screen_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i3; -import 'dart:ui' as _i4; - -import 'package:mockito/mockito.dart' as _i1; -import 'package:stackwallet/services/notes_service.dart' as _i2; - -// ignore_for_file: type=lint -// ignore_for_file: avoid_redundant_argument_values -// ignore_for_file: avoid_setters_without_getters -// ignore_for_file: comment_references -// ignore_for_file: implementation_imports -// ignore_for_file: invalid_use_of_visible_for_testing_member -// ignore_for_file: prefer_const_constructors -// ignore_for_file: unnecessary_parenthesis -// ignore_for_file: camel_case_types -// ignore_for_file: subtype_of_sealed_class - -/// A class which mocks [NotesService]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockNotesService extends _i1.Mock implements _i2.NotesService { - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - Map get notesSync => (super.noSuchMethod( - Invocation.getter(#notesSync), - returnValue: {}, - ) as Map); - @override - _i3.Future> get notes => (super.noSuchMethod( - Invocation.getter(#notes), - returnValue: _i3.Future>.value({}), - ) as _i3.Future>); - @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - ) as bool); - @override - _i3.Future> search(String? text) => (super.noSuchMethod( - Invocation.method( - #search, - [text], - ), - returnValue: _i3.Future>.value({}), - ) as _i3.Future>); - @override - _i3.Future getNoteFor({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #getNoteFor, - [], - {#txid: txid}, - ), - returnValue: _i3.Future.value(''), - ) as _i3.Future); - @override - _i3.Future editOrAddNote({ - required String? txid, - required String? note, - }) => - (super.noSuchMethod( - Invocation.method( - #editOrAddNote, - [], - { - #txid: txid, - #note: note, - }, - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - @override - _i3.Future deleteNote({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #deleteNote, - [], - {#txid: txid}, - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - @override - void addListener(_i4.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); - @override - void notifyListeners() => super.noSuchMethod( - Invocation.method( - #notifyListeners, - [], - ), - returnValueForMissingStub: null, - ); -} diff --git a/test/screen_tests/wallet_view/send_view_screen_test.mocks.dart b/test/screen_tests/wallet_view/send_view_screen_test.mocks.dart index 8d9cdcf73..666ce4e98 100644 --- a/test/screen_tests/wallet_view/send_view_screen_test.mocks.dart +++ b/test/screen_tests/wallet_view/send_view_screen_test.mocks.dart @@ -4,11 +4,9 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i4; -import 'dart:ui' as _i6; import 'package:barcode_scan2/barcode_scan2.dart' as _i2; import 'package:mockito/mockito.dart' as _i1; -import 'package:stackwallet/services/notes_service.dart' as _i5; import 'package:stackwallet/utilities/barcode_scanner_interface.dart' as _i3; // ignore_for_file: type=lint @@ -60,105 +58,3 @@ class MockBarcodeScannerWrapper extends _i1.Mock )), ) as _i4.Future<_i2.ScanResult>); } - -/// A class which mocks [NotesService]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockNotesService extends _i1.Mock implements _i5.NotesService { - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - Map get notesSync => (super.noSuchMethod( - Invocation.getter(#notesSync), - returnValue: {}, - ) as Map); - @override - _i4.Future> get notes => (super.noSuchMethod( - Invocation.getter(#notes), - returnValue: _i4.Future>.value({}), - ) as _i4.Future>); - @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - ) as bool); - @override - _i4.Future> search(String? text) => (super.noSuchMethod( - Invocation.method( - #search, - [text], - ), - returnValue: _i4.Future>.value({}), - ) as _i4.Future>); - @override - _i4.Future getNoteFor({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #getNoteFor, - [], - {#txid: txid}, - ), - returnValue: _i4.Future.value(''), - ) as _i4.Future); - @override - _i4.Future editOrAddNote({ - required String? txid, - required String? note, - }) => - (super.noSuchMethod( - Invocation.method( - #editOrAddNote, - [], - { - #txid: txid, - #note: note, - }, - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - @override - _i4.Future deleteNote({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #deleteNote, - [], - {#txid: txid}, - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - @override - void addListener(_i6.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void removeListener(_i6.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); - @override - void notifyListeners() => super.noSuchMethod( - Invocation.method( - #notifyListeners, - [], - ), - returnValueForMissingStub: null, - ); -} diff --git a/test/screen_tests/wallet_view/wallet_view_screen_test.mocks.dart b/test/screen_tests/wallet_view/wallet_view_screen_test.mocks.dart index 1e7ca4a8f..41319572b 100644 --- a/test/screen_tests/wallet_view/wallet_view_screen_test.mocks.dart +++ b/test/screen_tests/wallet_view/wallet_view_screen_test.mocks.dart @@ -7,8 +7,7 @@ import 'dart:async' as _i3; import 'dart:ui' as _i4; import 'package:mockito/mockito.dart' as _i1; -import 'package:stackwallet/services/locale_service.dart' as _i5; -import 'package:stackwallet/services/notes_service.dart' as _i2; +import 'package:stackwallet/services/locale_service.dart' as _i2; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -21,112 +20,10 @@ import 'package:stackwallet/services/notes_service.dart' as _i2; // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class -/// A class which mocks [NotesService]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockNotesService extends _i1.Mock implements _i2.NotesService { - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - Map get notesSync => (super.noSuchMethod( - Invocation.getter(#notesSync), - returnValue: {}, - ) as Map); - @override - _i3.Future> get notes => (super.noSuchMethod( - Invocation.getter(#notes), - returnValue: _i3.Future>.value({}), - ) as _i3.Future>); - @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - ) as bool); - @override - _i3.Future> search(String? text) => (super.noSuchMethod( - Invocation.method( - #search, - [text], - ), - returnValue: _i3.Future>.value({}), - ) as _i3.Future>); - @override - _i3.Future getNoteFor({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #getNoteFor, - [], - {#txid: txid}, - ), - returnValue: _i3.Future.value(''), - ) as _i3.Future); - @override - _i3.Future editOrAddNote({ - required String? txid, - required String? note, - }) => - (super.noSuchMethod( - Invocation.method( - #editOrAddNote, - [], - { - #txid: txid, - #note: note, - }, - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - @override - _i3.Future deleteNote({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #deleteNote, - [], - {#txid: txid}, - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - @override - void addListener(_i4.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void removeListener(_i4.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); - @override - void notifyListeners() => super.noSuchMethod( - Invocation.method( - #notifyListeners, - [], - ), - returnValueForMissingStub: null, - ); -} - /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i5.LocaleService { +class MockLocaleService extends _i1.Mock implements _i2.LocaleService { @override String get locale => (super.noSuchMethod( Invocation.getter(#locale), diff --git a/test/widget_tests/managed_favorite_test.dart b/test/widget_tests/managed_favorite_test.dart index ca94b45bf..464bfdb32 100644 --- a/test/widget_tests/managed_favorite_test.dart +++ b/test/widget_tests/managed_favorite_test.dart @@ -1,6 +1,5 @@ import 'package:decimal/decimal.dart'; import 'package:mockito/annotations.dart'; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart'; import 'package:stackwallet/services/coins/coin_service.dart'; import 'package:stackwallet/services/locale_service.dart'; import 'package:stackwallet/services/node_service.dart'; @@ -20,7 +19,6 @@ Amount _a(int i) => Amount.fromDecimal( @GenerateMocks([ Wallets, WalletsService, - BitcoinWallet, ThemeService, Prefs, LocaleService diff --git a/test/widget_tests/managed_favorite_test.mocks.dart b/test/widget_tests/managed_favorite_test.mocks.dart index 60d9d7047..52066fb95 100644 --- a/test/widget_tests/managed_favorite_test.mocks.dart +++ b/test/widget_tests/managed_favorite_test.mocks.dart @@ -3,51 +3,37 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i24; -import 'dart:typed_data' as _i31; -import 'dart:ui' as _i27; +import 'dart:async' as _i14; +import 'dart:typed_data' as _i20; +import 'dart:ui' as _i17; -import 'package:bip32/bip32.dart' as _i15; -import 'package:bip47/bip47.dart' as _i17; -import 'package:bitcoindart/bitcoindart.dart' as _i11; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; -import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i9; -import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i8; import 'package:stackwallet/models/balance.dart' as _i10; -import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart' - as _i13; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i16; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i33; -import 'package:stackwallet/models/node_model.dart' as _i38; -import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i7; -import 'package:stackwallet/models/signing_data.dart' as _i30; -import 'package:stackwallet/networking/http.dart' as _i19; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i28; -import 'package:stackwallet/services/coins/coin_service.dart' as _i39; -import 'package:stackwallet/services/locale_service.dart' as _i37; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i27; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i19; +import 'package:stackwallet/models/node_model.dart' as _i25; +import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i9; +import 'package:stackwallet/networking/http.dart' as _i6; +import 'package:stackwallet/services/coins/coin_service.dart' as _i26; +import 'package:stackwallet/services/locale_service.dart' as _i24; import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart' - as _i20; + as _i7; import 'package:stackwallet/services/node_service.dart' as _i2; -import 'package:stackwallet/services/transaction_notification_tracker.dart' - as _i6; -import 'package:stackwallet/services/wallets.dart' as _i22; -import 'package:stackwallet/services/wallets_service.dart' as _i26; -import 'package:stackwallet/themes/theme_service.dart' as _i32; -import 'package:stackwallet/utilities/amount/amount.dart' as _i12; -import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i36; -import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i35; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i23; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i29; -import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i34; +import 'package:stackwallet/services/wallets.dart' as _i12; +import 'package:stackwallet/services/wallets_service.dart' as _i16; +import 'package:stackwallet/themes/theme_service.dart' as _i18; +import 'package:stackwallet/utilities/amount/amount.dart' as _i11; +import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i23; +import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i22; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i13; +import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i21; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i21; -import 'package:stackwallet/utilities/prefs.dart' as _i25; + as _i8; +import 'package:stackwallet/utilities/prefs.dart' as _i15; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; -import 'package:stackwallet/wallets/models/tx_data.dart' as _i18; import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; -import 'package:tuple/tuple.dart' as _i14; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -91,9 +77,8 @@ class _FakeWallet_2 extends _i1.SmartFake ); } -class _FakeTransactionNotificationTracker_3 extends _i1.SmartFake - implements _i6.TransactionNotificationTracker { - _FakeTransactionNotificationTracker_3( +class _FakeHTTP_3 extends _i1.SmartFake implements _i6.HTTP { + _FakeHTTP_3( Object parent, Invocation parentInvocation, ) : super( @@ -102,8 +87,8 @@ class _FakeTransactionNotificationTracker_3 extends _i1.SmartFake ); } -class _FakeFeeObject_4 extends _i1.SmartFake implements _i7.FeeObject { - _FakeFeeObject_4( +class _FakeFusionInfo_4 extends _i1.SmartFake implements _i7.FusionInfo { + _FakeFusionInfo_4( Object parent, Invocation parentInvocation, ) : super( @@ -112,8 +97,9 @@ class _FakeFeeObject_4 extends _i1.SmartFake implements _i7.FeeObject { ); } -class _FakeElectrumX_5 extends _i1.SmartFake implements _i8.ElectrumX { - _FakeElectrumX_5( +class _FakeSecureStorageInterface_5 extends _i1.SmartFake + implements _i8.SecureStorageInterface { + _FakeSecureStorageInterface_5( Object parent, Invocation parentInvocation, ) : super( @@ -122,9 +108,8 @@ class _FakeElectrumX_5 extends _i1.SmartFake implements _i8.ElectrumX { ); } -class _FakeCachedElectrumX_6 extends _i1.SmartFake - implements _i9.CachedElectrumX { - _FakeCachedElectrumX_6( +class _FakeFeeObject_6 extends _i1.SmartFake implements _i9.FeeObject { + _FakeFeeObject_6( Object parent, Invocation parentInvocation, ) : super( @@ -143,121 +128,8 @@ class _FakeBalance_7 extends _i1.SmartFake implements _i10.Balance { ); } -class _FakeNetworkType_8 extends _i1.SmartFake implements _i11.NetworkType { - _FakeNetworkType_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeElectrumXNode_9 extends _i1.SmartFake implements _i8.ElectrumXNode { - _FakeElectrumXNode_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAmount_10 extends _i1.SmartFake implements _i12.Amount { - _FakeAmount_10( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTransactionV2_11 extends _i1.SmartFake - implements _i13.TransactionV2 { - _FakeTransactionV2_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTuple2_12 extends _i1.SmartFake - implements _i14.Tuple2 { - _FakeTuple2_12( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeBIP32_13 extends _i1.SmartFake implements _i15.BIP32 { - _FakeBIP32_13( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAddress_14 extends _i1.SmartFake implements _i16.Address { - _FakeAddress_14( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakePaymentCode_15 extends _i1.SmartFake implements _i17.PaymentCode { - _FakePaymentCode_15( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTxData_16 extends _i1.SmartFake implements _i18.TxData { - _FakeTxData_16( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeHTTP_17 extends _i1.SmartFake implements _i19.HTTP { - _FakeHTTP_17( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeFusionInfo_18 extends _i1.SmartFake implements _i20.FusionInfo { - _FakeFusionInfo_18( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSecureStorageInterface_19 extends _i1.SmartFake - implements _i21.SecureStorageInterface { - _FakeSecureStorageInterface_19( +class _FakeAmount_8 extends _i1.SmartFake implements _i11.Amount { + _FakeAmount_8( Object parent, Invocation parentInvocation, ) : super( @@ -269,7 +141,7 @@ class _FakeSecureStorageInterface_19 extends _i1.SmartFake /// A class which mocks [Wallets]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallets extends _i1.Mock implements _i22.Wallets { +class MockWallets extends _i1.Mock implements _i12.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -317,16 +189,16 @@ class MockWallets extends _i1.Mock implements _i22.Wallets { returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[], ) as List<_i5.Wallet<_i4.CryptoCurrency>>); @override - List<({_i23.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})> + List<({_i13.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})> get walletsByCoin => (super.noSuchMethod( Invocation.getter(#walletsByCoin), returnValue: <({ - _i23.Coin coin, + _i13.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets })>[], ) as List< ({ - _i23.Coin coin, + _i13.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets })>); @override @@ -353,17 +225,24 @@ class MockWallets extends _i1.Mock implements _i22.Wallets { returnValueForMissingStub: null, ); @override - _i24.Future deleteWallet(String? walletId) => (super.noSuchMethod( + _i14.Future deleteWallet( + String? walletId, + _i8.SecureStorageInterface? secureStorage, + ) => + (super.noSuchMethod( Invocation.method( #deleteWallet, - [walletId], + [ + walletId, + secureStorage, + ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future load( - _i25.Prefs? prefs, + _i14.Future load( + _i15.Prefs? prefs, _i3.MainDB? mainDB, ) => (super.noSuchMethod( @@ -374,12 +253,12 @@ class MockWallets extends _i1.Mock implements _i22.Wallets { mainDB, ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future loadAfterStackRestore( - _i25.Prefs? prefs, + _i14.Future loadAfterStackRestore( + _i15.Prefs? prefs, List<_i5.Wallet<_i4.CryptoCurrency>>? wallets, ) => (super.noSuchMethod( @@ -390,33 +269,33 @@ class MockWallets extends _i1.Mock implements _i22.Wallets { wallets, ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); } /// A class which mocks [WalletsService]. /// /// See the documentation for Mockito's code generation for more information. -class MockWalletsService extends _i1.Mock implements _i26.WalletsService { +class MockWalletsService extends _i1.Mock implements _i16.WalletsService { MockWalletsService() { _i1.throwOnMissingStub(this); } @override - _i24.Future> get walletNames => + _i14.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i24.Future>.value( - {}), - ) as _i24.Future>); + returnValue: _i14.Future>.value( + {}), + ) as _i14.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i24.Future renameWallet({ + _i14.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -431,21 +310,21 @@ class MockWalletsService extends _i1.Mock implements _i26.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - Map fetchWalletsData() => (super.noSuchMethod( + Map fetchWalletsData() => (super.noSuchMethod( Invocation.method( #fetchWalletsData, [], ), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override - _i24.Future addExistingStackWallet({ + _i14.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i23.Coin? coin, + required _i13.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -459,13 +338,13 @@ class MockWalletsService extends _i1.Mock implements _i26.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future addNewWallet({ + _i14.Future addNewWallet({ required String? name, - required _i23.Coin? coin, + required _i13.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -478,46 +357,46 @@ class MockWalletsService extends _i1.Mock implements _i26.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i14.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i24.Future>.value([]), - ) as _i24.Future>); + returnValue: _i14.Future>.value([]), + ) as _i14.Future>); @override - _i24.Future saveFavoriteWalletIds(List? walletIds) => + _i14.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i14.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i14.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future moveFavorite({ + _i14.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -530,48 +409,48 @@ class MockWalletsService extends _i1.Mock implements _i26.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i14.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i24.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i14.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future isMnemonicVerified({required String? walletId}) => + _i14.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i24.Future setMnemonicVerified({required String? walletId}) => + _i14.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future deleteWallet( + _i14.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -583,20 +462,20 @@ class MockWalletsService extends _i1.Mock implements _i26.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i24.Future.value(0), - ) as _i24.Future); + returnValue: _i14.Future.value(0), + ) as _i14.Future); @override - _i24.Future refreshWallets(bool? shouldNotifyListeners) => + _i14.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - void addListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -604,7 +483,7 @@ class MockWalletsService extends _i1.Mock implements _i26.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -629,1338 +508,24 @@ class MockWalletsService extends _i1.Mock implements _i26.WalletsService { ); } -/// A class which mocks [BitcoinWallet]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { - MockBitcoinWallet() { - _i1.throwOnMissingStub(this); - } - - @override - set timer(_i24.Timer? _timer) => super.noSuchMethod( - Invocation.setter( - #timer, - _timer, - ), - returnValueForMissingStub: null, - ); - @override - _i6.TransactionNotificationTracker get txTracker => (super.noSuchMethod( - Invocation.getter(#txTracker), - returnValue: _FakeTransactionNotificationTracker_3( - this, - Invocation.getter(#txTracker), - ), - ) as _i6.TransactionNotificationTracker); - @override - set txTracker(_i6.TransactionNotificationTracker? _txTracker) => - super.noSuchMethod( - Invocation.setter( - #txTracker, - _txTracker, - ), - returnValueForMissingStub: null, - ); - @override - bool get longMutex => (super.noSuchMethod( - Invocation.getter(#longMutex), - returnValue: false, - ) as bool); - @override - set longMutex(bool? _longMutex) => super.noSuchMethod( - Invocation.setter( - #longMutex, - _longMutex, - ), - returnValueForMissingStub: null, - ); - @override - bool get refreshMutex => (super.noSuchMethod( - Invocation.getter(#refreshMutex), - returnValue: false, - ) as bool); - @override - set refreshMutex(bool? _refreshMutex) => super.noSuchMethod( - Invocation.setter( - #refreshMutex, - _refreshMutex, - ), - returnValueForMissingStub: null, - ); - @override - bool get isActive => (super.noSuchMethod( - Invocation.getter(#isActive), - returnValue: false, - ) as bool); - @override - set isActive(bool? _isActive) => super.noSuchMethod( - Invocation.setter( - #isActive, - _isActive, - ), - returnValueForMissingStub: null, - ); - @override - set isFavorite(bool? markFavorite) => super.noSuchMethod( - Invocation.setter( - #isFavorite, - markFavorite, - ), - returnValueForMissingStub: null, - ); - @override - bool get isFavorite => (super.noSuchMethod( - Invocation.getter(#isFavorite), - returnValue: false, - ) as bool); - @override - _i23.Coin get coin => (super.noSuchMethod( - Invocation.getter(#coin), - returnValue: _i23.Coin.bitcoin, - ) as _i23.Coin); - @override - _i24.Future> get utxos => (super.noSuchMethod( - Invocation.getter(#utxos), - returnValue: _i24.Future>.value(<_i16.UTXO>[]), - ) as _i24.Future>); - @override - _i24.Future> get transactions => (super.noSuchMethod( - Invocation.getter(#transactions), - returnValue: - _i24.Future>.value(<_i16.Transaction>[]), - ) as _i24.Future>); - @override - _i24.Future get currentReceivingAddress => (super.noSuchMethod( - Invocation.getter(#currentReceivingAddress), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - _i24.Future get currentChangeAddress => (super.noSuchMethod( - Invocation.getter(#currentChangeAddress), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - _i24.Future get currentChangeAddressP2PKH => (super.noSuchMethod( - Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - bool get hasCalledExit => (super.noSuchMethod( - Invocation.getter(#hasCalledExit), - returnValue: false, - ) as bool); - @override - _i24.Future<_i7.FeeObject> get fees => (super.noSuchMethod( - Invocation.getter(#fees), - returnValue: _i24.Future<_i7.FeeObject>.value(_FakeFeeObject_4( - this, - Invocation.getter(#fees), - )), - ) as _i24.Future<_i7.FeeObject>); - @override - _i24.Future get maxFee => (super.noSuchMethod( - Invocation.getter(#maxFee), - returnValue: _i24.Future.value(0), - ) as _i24.Future); - @override - _i24.Future> get mnemonic => (super.noSuchMethod( - Invocation.getter(#mnemonic), - returnValue: _i24.Future>.value([]), - ) as _i24.Future>); - @override - _i24.Future get mnemonicString => (super.noSuchMethod( - Invocation.getter(#mnemonicString), - returnValue: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future get mnemonicPassphrase => (super.noSuchMethod( - Invocation.getter(#mnemonicPassphrase), - returnValue: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future get chainHeight => (super.noSuchMethod( - Invocation.getter(#chainHeight), - returnValue: _i24.Future.value(0), - ) as _i24.Future); - @override - int get storedChainHeight => (super.noSuchMethod( - Invocation.getter(#storedChainHeight), - returnValue: 0, - ) as int); - @override - bool get shouldAutoSync => (super.noSuchMethod( - Invocation.getter(#shouldAutoSync), - returnValue: false, - ) as bool); - @override - set shouldAutoSync(bool? shouldAutoSync) => super.noSuchMethod( - Invocation.setter( - #shouldAutoSync, - shouldAutoSync, - ), - returnValueForMissingStub: null, - ); - @override - bool get isRefreshing => (super.noSuchMethod( - Invocation.getter(#isRefreshing), - returnValue: false, - ) as bool); - @override - bool get isConnected => (super.noSuchMethod( - Invocation.getter(#isConnected), - returnValue: false, - ) as bool); - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - String get walletName => (super.noSuchMethod( - Invocation.getter(#walletName), - returnValue: '', - ) as String); - @override - set walletName(String? newName) => super.noSuchMethod( - Invocation.setter( - #walletName, - newName, - ), - returnValueForMissingStub: null, - ); - @override - _i8.ElectrumX get electrumXClient => (super.noSuchMethod( - Invocation.getter(#electrumXClient), - returnValue: _FakeElectrumX_5( - this, - Invocation.getter(#electrumXClient), - ), - ) as _i8.ElectrumX); - @override - _i9.CachedElectrumX get cachedElectrumXClient => (super.noSuchMethod( - Invocation.getter(#cachedElectrumXClient), - returnValue: _FakeCachedElectrumX_6( - this, - Invocation.getter(#cachedElectrumXClient), - ), - ) as _i9.CachedElectrumX); - @override - _i10.Balance get balance => (super.noSuchMethod( - Invocation.getter(#balance), - returnValue: _FakeBalance_7( - this, - Invocation.getter(#balance), - ), - ) as _i10.Balance); - @override - _i24.Future get xpub => (super.noSuchMethod( - Invocation.getter(#xpub), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => - super.noSuchMethod( - Invocation.setter( - #onIsActiveWalletChanged, - _onIsActiveWalletChanged, - ), - returnValueForMissingStub: null, - ); - @override - _i3.MainDB get db => (super.noSuchMethod( - Invocation.getter(#db), - returnValue: _FakeMainDB_1( - this, - Invocation.getter(#db), - ), - ) as _i3.MainDB); - @override - _i11.NetworkType get networkType => (super.noSuchMethod( - Invocation.getter(#networkType), - returnValue: _FakeNetworkType_8( - this, - Invocation.getter(#networkType), - ), - ) as _i11.NetworkType); - @override - _i24.Future exit() => (super.noSuchMethod( - Invocation.method( - #exit, - [], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i29.DerivePathType addressType({required String? address}) => - (super.noSuchMethod( - Invocation.method( - #addressType, - [], - {#address: address}, - ), - returnValue: _i29.DerivePathType.bip44, - ) as _i29.DerivePathType); - @override - _i24.Future recoverFromMnemonic({ - required String? mnemonic, - String? mnemonicPassphrase, - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - required int? height, - }) => - (super.noSuchMethod( - Invocation.method( - #recoverFromMnemonic, - [], - { - #mnemonic: mnemonic, - #mnemonicPassphrase: mnemonicPassphrase, - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - #height: height, - }, - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future getTransactionCacheEarly(List? allAddresses) => - (super.noSuchMethod( - Invocation.method( - #getTransactionCacheEarly, - [allAddresses], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future refreshIfThereIsNewData() => (super.noSuchMethod( - Invocation.method( - #refreshIfThereIsNewData, - [], - ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); - @override - _i24.Future getAllTxsToWatch() => (super.noSuchMethod( - Invocation.method( - #getAllTxsToWatch, - [], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future refresh() => (super.noSuchMethod( - Invocation.method( - #refresh, - [], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future> prepareSend({ - required String? address, - required _i12.Amount? amount, - Map? args, - }) => - (super.noSuchMethod( - Invocation.method( - #prepareSend, - [], - { - #address: address, - #amount: amount, - #args: args, - }, - ), - returnValue: - _i24.Future>.value({}), - ) as _i24.Future>); - @override - _i24.Future confirmSend({required Map? txData}) => - (super.noSuchMethod( - Invocation.method( - #confirmSend, - [], - {#txData: txData}, - ), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - _i24.Future testNetworkConnection() => (super.noSuchMethod( - Invocation.method( - #testNetworkConnection, - [], - ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); - @override - void startNetworkAlivePinging() => super.noSuchMethod( - Invocation.method( - #startNetworkAlivePinging, - [], - ), - returnValueForMissingStub: null, - ); - @override - void stopNetworkAlivePinging() => super.noSuchMethod( - Invocation.method( - #stopNetworkAlivePinging, - [], - ), - returnValueForMissingStub: null, - ); - @override - _i24.Future initializeNew( - ({String mnemonicPassphrase, int wordCount})? data) => - (super.noSuchMethod( - Invocation.method( - #initializeNew, - [data], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future initializeExisting() => (super.noSuchMethod( - Invocation.method( - #initializeExisting, - [], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future updateSentCachedTxData(Map? txData) => - (super.noSuchMethod( - Invocation.method( - #updateSentCachedTxData, - [txData], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - bool validateAddress(String? address) => (super.noSuchMethod( - Invocation.method( - #validateAddress, - [address], - ), - returnValue: false, - ) as bool); - @override - _i24.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( - Invocation.method( - #updateNode, - [shouldRefresh], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future<_i8.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( - Invocation.method( - #getCurrentNode, - [], - ), - returnValue: _i24.Future<_i8.ElectrumXNode>.value(_FakeElectrumXNode_9( - this, - Invocation.method( - #getCurrentNode, - [], - ), - )), - ) as _i24.Future<_i8.ElectrumXNode>); - @override - _i24.Future>> fastFetch( - List? allTxHashes) => - (super.noSuchMethod( - Invocation.method( - #fastFetch, - [allTxHashes], - ), - returnValue: _i24.Future>>.value( - >[]), - ) as _i24.Future>>); - @override - _i24.Future getTxCount({required String? address}) => - (super.noSuchMethod( - Invocation.method( - #getTxCount, - [], - {#address: address}, - ), - returnValue: _i24.Future.value(0), - ) as _i24.Future); - @override - _i24.Future checkCurrentReceivingAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkCurrentReceivingAddressesForTransactions, - [], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future checkCurrentChangeAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkCurrentChangeAddressesForTransactions, - [], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - int estimateTxFee({ - required int? vSize, - required int? feeRatePerKB, - }) => - (super.noSuchMethod( - Invocation.method( - #estimateTxFee, - [], - { - #vSize: vSize, - #feeRatePerKB: feeRatePerKB, - }, - ), - returnValue: 0, - ) as int); - @override - dynamic coinSelection({ - required int? satoshiAmountToSend, - required int? selectedTxFeeRate, - required String? recipientAddress, - required bool? coinControl, - required bool? isSendAll, - int? satsPerVByte, - int? additionalOutputs = 0, - List<_i16.UTXO>? utxos, - }) => - super.noSuchMethod(Invocation.method( - #coinSelection, - [], - { - #satoshiAmountToSend: satoshiAmountToSend, - #selectedTxFeeRate: selectedTxFeeRate, - #recipientAddress: recipientAddress, - #coinControl: coinControl, - #isSendAll: isSendAll, - #satsPerVByte: satsPerVByte, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - )); - @override - _i24.Future> fetchBuildTxData( - List<_i16.UTXO>? utxosToUse) => - (super.noSuchMethod( - Invocation.method( - #fetchBuildTxData, - [utxosToUse], - ), - returnValue: - _i24.Future>.value(<_i30.SigningData>[]), - ) as _i24.Future>); - @override - _i24.Future> buildTransaction({ - required List<_i30.SigningData>? utxoSigningData, - required List? recipients, - required List? satoshiAmounts, - }) => - (super.noSuchMethod( - Invocation.method( - #buildTransaction, - [], - { - #utxoSigningData: utxoSigningData, - #recipients: recipients, - #satoshiAmounts: satoshiAmounts, - }, - ), - returnValue: - _i24.Future>.value({}), - ) as _i24.Future>); - @override - _i24.Future fullRescan( - int? maxUnusedAddressGap, - int? maxNumberOfIndexesToCheck, - ) => - (super.noSuchMethod( - Invocation.method( - #fullRescan, - [ - maxUnusedAddressGap, - maxNumberOfIndexesToCheck, - ], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future<_i12.Amount> estimateFeeFor( - _i12.Amount? amount, - int? feeRate, - ) => - (super.noSuchMethod( - Invocation.method( - #estimateFeeFor, - [ - amount, - feeRate, - ], - ), - returnValue: _i24.Future<_i12.Amount>.value(_FakeAmount_10( - this, - Invocation.method( - #estimateFeeFor, - [ - amount, - feeRate, - ], - ), - )), - ) as _i24.Future<_i12.Amount>); - @override - _i12.Amount roughFeeEstimate( - int? inputCount, - int? outputCount, - int? feeRatePerKB, - ) => - (super.noSuchMethod( - Invocation.method( - #roughFeeEstimate, - [ - inputCount, - outputCount, - feeRatePerKB, - ], - ), - returnValue: _FakeAmount_10( - this, - Invocation.method( - #roughFeeEstimate, - [ - inputCount, - outputCount, - feeRatePerKB, - ], - ), - ), - ) as _i12.Amount); - @override - _i24.Future<_i12.Amount> sweepAllEstimate(int? feeRate) => - (super.noSuchMethod( - Invocation.method( - #sweepAllEstimate, - [feeRate], - ), - returnValue: _i24.Future<_i12.Amount>.value(_FakeAmount_10( - this, - Invocation.method( - #sweepAllEstimate, - [feeRate], - ), - )), - ) as _i24.Future<_i12.Amount>); - @override - _i24.Future generateNewAddress() => (super.noSuchMethod( - Invocation.method( - #generateNewAddress, - [], - ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); - @override - void initCache( - String? walletId, - _i23.Coin? coin, - ) => - super.noSuchMethod( - Invocation.method( - #initCache, - [ - walletId, - coin, - ], - ), - returnValueForMissingStub: null, - ); - @override - _i24.Future updateCachedId(String? id) => (super.noSuchMethod( - Invocation.method( - #updateCachedId, - [id], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - int getCachedChainHeight() => (super.noSuchMethod( - Invocation.method( - #getCachedChainHeight, - [], - ), - returnValue: 0, - ) as int); - @override - _i24.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( - Invocation.method( - #updateCachedChainHeight, - [height], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - bool getCachedIsFavorite() => (super.noSuchMethod( - Invocation.method( - #getCachedIsFavorite, - [], - ), - returnValue: false, - ) as bool); - @override - _i24.Future updateCachedIsFavorite(bool? isFavorite) => - (super.noSuchMethod( - Invocation.method( - #updateCachedIsFavorite, - [isFavorite], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i10.Balance getCachedBalance() => (super.noSuchMethod( - Invocation.method( - #getCachedBalance, - [], - ), - returnValue: _FakeBalance_7( - this, - Invocation.method( - #getCachedBalance, - [], - ), - ), - ) as _i10.Balance); - @override - _i24.Future updateCachedBalance(_i10.Balance? balance) => - (super.noSuchMethod( - Invocation.method( - #updateCachedBalance, - [balance], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i10.Balance getCachedBalanceSecondary() => (super.noSuchMethod( - Invocation.method( - #getCachedBalanceSecondary, - [], - ), - returnValue: _FakeBalance_7( - this, - Invocation.method( - #getCachedBalanceSecondary, - [], - ), - ), - ) as _i10.Balance); - @override - _i24.Future updateCachedBalanceSecondary(_i10.Balance? balance) => - (super.noSuchMethod( - Invocation.method( - #updateCachedBalanceSecondary, - [balance], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - List getWalletTokenContractAddresses() => (super.noSuchMethod( - Invocation.method( - #getWalletTokenContractAddresses, - [], - ), - returnValue: [], - ) as List); - @override - _i24.Future updateWalletTokenContractAddresses( - List? contractAddresses) => - (super.noSuchMethod( - Invocation.method( - #updateWalletTokenContractAddresses, - [contractAddresses], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - void initWalletDB({_i3.MainDB? mockableOverride}) => super.noSuchMethod( - Invocation.method( - #initWalletDB, - [], - {#mockableOverride: mockableOverride}, - ), - returnValueForMissingStub: null, - ); - @override - _i24.Future<_i13.TransactionV2> getTransaction( - String? txHash, - _i23.Coin? coin, - String? walletId, - _i9.CachedElectrumX? cachedElectrumX, [ - String? debugTitle, - ]) => - (super.noSuchMethod( - Invocation.method( - #getTransaction, - [ - txHash, - coin, - walletId, - cachedElectrumX, - debugTitle, - ], - ), - returnValue: - _i24.Future<_i13.TransactionV2>.value(_FakeTransactionV2_11( - this, - Invocation.method( - #getTransaction, - [ - txHash, - coin, - walletId, - cachedElectrumX, - debugTitle, - ], - ), - )), - ) as _i24.Future<_i13.TransactionV2>); - @override - _i24.Future<_i14.Tuple2<_i16.Transaction, _i16.Address>> parseTransaction( - Map? txData, - dynamic electrumxClient, - List<_i16.Address>? myAddresses, - _i23.Coin? coin, - int? minConfirms, - String? walletId, - ) => - (super.noSuchMethod( - Invocation.method( - #parseTransaction, - [ - txData, - electrumxClient, - myAddresses, - coin, - minConfirms, - walletId, - ], - ), - returnValue: - _i24.Future<_i14.Tuple2<_i16.Transaction, _i16.Address>>.value( - _FakeTuple2_12<_i16.Transaction, _i16.Address>( - this, - Invocation.method( - #parseTransaction, - [ - txData, - electrumxClient, - myAddresses, - coin, - minConfirms, - walletId, - ], - ), - )), - ) as _i24.Future<_i14.Tuple2<_i16.Transaction, _i16.Address>>); - @override - void initPaynymWalletInterface({ - required String? walletId, - required String? walletName, - required _i11.NetworkType? network, - required _i23.Coin? coin, - required _i3.MainDB? db, - required _i8.ElectrumX? electrumXClient, - required _i21.SecureStorageInterface? secureStorage, - required int? dustLimit, - required int? dustLimitP2PKH, - required int? minConfirms, - required _i24.Future Function()? getMnemonicString, - required _i24.Future Function()? getMnemonicPassphrase, - required _i24.Future Function()? getChainHeight, - required _i24.Future Function()? getCurrentChangeAddress, - required int Function({ - required int feeRatePerKB, - required int vSize, - })? estimateTxFee, - required _i24.Future> Function({ - required String address, - required _i12.Amount amount, - Map? args, - })? prepareSend, - required _i24.Future Function({required String address})? getTxCount, - required _i24.Future> Function(List<_i16.UTXO>)? - fetchBuildTxData, - required _i24.Future Function()? refresh, - required _i24.Future Function()? checkChangeAddressForTransactions, - }) => - super.noSuchMethod( - Invocation.method( - #initPaynymWalletInterface, - [], - { - #walletId: walletId, - #walletName: walletName, - #network: network, - #coin: coin, - #db: db, - #electrumXClient: electrumXClient, - #secureStorage: secureStorage, - #dustLimit: dustLimit, - #dustLimitP2PKH: dustLimitP2PKH, - #minConfirms: minConfirms, - #getMnemonicString: getMnemonicString, - #getMnemonicPassphrase: getMnemonicPassphrase, - #getChainHeight: getChainHeight, - #getCurrentChangeAddress: getCurrentChangeAddress, - #estimateTxFee: estimateTxFee, - #prepareSend: prepareSend, - #getTxCount: getTxCount, - #fetchBuildTxData: fetchBuildTxData, - #refresh: refresh, - #checkChangeAddressForTransactions: - checkChangeAddressForTransactions, - }, - ), - returnValueForMissingStub: null, - ); - @override - _i24.Future<_i15.BIP32> getBip47BaseNode() => (super.noSuchMethod( - Invocation.method( - #getBip47BaseNode, - [], - ), - returnValue: _i24.Future<_i15.BIP32>.value(_FakeBIP32_13( - this, - Invocation.method( - #getBip47BaseNode, - [], - ), - )), - ) as _i24.Future<_i15.BIP32>); - @override - _i24.Future<_i31.Uint8List> getPrivateKeyForPaynymReceivingAddress({ - required String? paymentCodeString, - required int? index, - }) => - (super.noSuchMethod( - Invocation.method( - #getPrivateKeyForPaynymReceivingAddress, - [], - { - #paymentCodeString: paymentCodeString, - #index: index, - }, - ), - returnValue: _i24.Future<_i31.Uint8List>.value(_i31.Uint8List(0)), - ) as _i24.Future<_i31.Uint8List>); - @override - _i24.Future<_i16.Address> currentReceivingPaynymAddress({ - required _i17.PaymentCode? sender, - required bool? isSegwit, - }) => - (super.noSuchMethod( - Invocation.method( - #currentReceivingPaynymAddress, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - returnValue: _i24.Future<_i16.Address>.value(_FakeAddress_14( - this, - Invocation.method( - #currentReceivingPaynymAddress, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - )), - ) as _i24.Future<_i16.Address>); - @override - _i24.Future checkCurrentPaynymReceivingAddressForTransactions({ - required _i17.PaymentCode? sender, - required bool? isSegwit, - }) => - (super.noSuchMethod( - Invocation.method( - #checkCurrentPaynymReceivingAddressForTransactions, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkAllCurrentReceivingPaynymAddressesForTransactions, - [], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future<_i15.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( - Invocation.method( - #deriveNotificationBip32Node, - [], - ), - returnValue: _i24.Future<_i15.BIP32>.value(_FakeBIP32_13( - this, - Invocation.method( - #deriveNotificationBip32Node, - [], - ), - )), - ) as _i24.Future<_i15.BIP32>); - @override - _i24.Future<_i17.PaymentCode> getPaymentCode({required bool? isSegwit}) => - (super.noSuchMethod( - Invocation.method( - #getPaymentCode, - [], - {#isSegwit: isSegwit}, - ), - returnValue: _i24.Future<_i17.PaymentCode>.value(_FakePaymentCode_15( - this, - Invocation.method( - #getPaymentCode, - [], - {#isSegwit: isSegwit}, - ), - )), - ) as _i24.Future<_i17.PaymentCode>); - @override - _i24.Future<_i31.Uint8List> signWithNotificationKey(_i31.Uint8List? data) => - (super.noSuchMethod( - Invocation.method( - #signWithNotificationKey, - [data], - ), - returnValue: _i24.Future<_i31.Uint8List>.value(_i31.Uint8List(0)), - ) as _i24.Future<_i31.Uint8List>); - @override - _i24.Future signStringWithNotificationKey(String? data) => - (super.noSuchMethod( - Invocation.method( - #signStringWithNotificationKey, - [data], - ), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - _i24.Future> preparePaymentCodeSend({ - required _i17.PaymentCode? paymentCode, - required bool? isSegwit, - required _i12.Amount? amount, - Map? args, - }) => - (super.noSuchMethod( - Invocation.method( - #preparePaymentCodeSend, - [], - { - #paymentCode: paymentCode, - #isSegwit: isSegwit, - #amount: amount, - #args: args, - }, - ), - returnValue: - _i24.Future>.value({}), - ) as _i24.Future>); - @override - _i24.Future<_i16.Address> nextUnusedSendAddressFrom({ - required _i17.PaymentCode? pCode, - required bool? isSegwit, - required _i15.BIP32? privateKeyNode, - int? startIndex = 0, - }) => - (super.noSuchMethod( - Invocation.method( - #nextUnusedSendAddressFrom, - [], - { - #pCode: pCode, - #isSegwit: isSegwit, - #privateKeyNode: privateKeyNode, - #startIndex: startIndex, - }, - ), - returnValue: _i24.Future<_i16.Address>.value(_FakeAddress_14( - this, - Invocation.method( - #nextUnusedSendAddressFrom, - [], - { - #pCode: pCode, - #isSegwit: isSegwit, - #privateKeyNode: privateKeyNode, - #startIndex: startIndex, - }, - ), - )), - ) as _i24.Future<_i16.Address>); - @override - _i24.Future<_i18.TxData> prepareNotificationTx({ - required int? selectedTxFeeRate, - required String? targetPaymentCodeString, - int? additionalOutputs = 0, - List<_i16.UTXO>? utxos, - }) => - (super.noSuchMethod( - Invocation.method( - #prepareNotificationTx, - [], - { - #selectedTxFeeRate: selectedTxFeeRate, - #targetPaymentCodeString: targetPaymentCodeString, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - ), - returnValue: _i24.Future<_i18.TxData>.value(_FakeTxData_16( - this, - Invocation.method( - #prepareNotificationTx, - [], - { - #selectedTxFeeRate: selectedTxFeeRate, - #targetPaymentCodeString: targetPaymentCodeString, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - ), - )), - ) as _i24.Future<_i18.TxData>); - @override - _i24.Future broadcastNotificationTx( - {required Map? preparedTx}) => - (super.noSuchMethod( - Invocation.method( - #broadcastNotificationTx, - [], - {#preparedTx: preparedTx}, - ), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - _i24.Future hasConnected(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #hasConnected, - [paymentCodeString], - ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); - @override - _i24.Future<_i17.PaymentCode?> unBlindedPaymentCodeFromTransaction( - {required _i16.Transaction? transaction}) => - (super.noSuchMethod( - Invocation.method( - #unBlindedPaymentCodeFromTransaction, - [], - {#transaction: transaction}, - ), - returnValue: _i24.Future<_i17.PaymentCode?>.value(), - ) as _i24.Future<_i17.PaymentCode?>); - @override - _i24.Future<_i17.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( - {required _i16.Transaction? transaction}) => - (super.noSuchMethod( - Invocation.method( - #unBlindedPaymentCodeFromTransactionBad, - [], - {#transaction: transaction}, - ), - returnValue: _i24.Future<_i17.PaymentCode?>.value(), - ) as _i24.Future<_i17.PaymentCode?>); - @override - _i24.Future> - getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( - Invocation.method( - #getAllPaymentCodesFromNotificationTransactions, - [], - ), - returnValue: - _i24.Future>.value(<_i17.PaymentCode>[]), - ) as _i24.Future>); - @override - _i24.Future checkForNotificationTransactionsTo( - Set? otherCodeStrings) => - (super.noSuchMethod( - Invocation.method( - #checkForNotificationTransactionsTo, - [otherCodeStrings], - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future restoreAllHistory({ - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - required Set? paymentCodeStrings, - }) => - (super.noSuchMethod( - Invocation.method( - #restoreAllHistory, - [], - { - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - #paymentCodeStrings: paymentCodeStrings, - }, - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future restoreHistoryWith({ - required _i17.PaymentCode? other, - required bool? checkSegwitAsWell, - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - }) => - (super.noSuchMethod( - Invocation.method( - #restoreHistoryWith, - [], - { - #other: other, - #checkSegwitAsWell: checkSegwitAsWell, - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - }, - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future<_i16.Address> getMyNotificationAddress() => (super.noSuchMethod( - Invocation.method( - #getMyNotificationAddress, - [], - ), - returnValue: _i24.Future<_i16.Address>.value(_FakeAddress_14( - this, - Invocation.method( - #getMyNotificationAddress, - [], - ), - )), - ) as _i24.Future<_i16.Address>); - @override - _i24.Future> lookupKey(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #lookupKey, - [paymentCodeString], - ), - returnValue: _i24.Future>.value([]), - ) as _i24.Future>); - @override - _i24.Future paymentCodeStringByKey(String? key) => - (super.noSuchMethod( - Invocation.method( - #paymentCodeStringByKey, - [key], - ), - returnValue: _i24.Future.value(), - ) as _i24.Future); - @override - _i24.Future storeCode(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #storeCode, - [paymentCodeString], - ), - returnValue: _i24.Future.value(''), - ) as _i24.Future); - @override - void initCoinControlInterface({ - required String? walletId, - required String? walletName, - required _i23.Coin? coin, - required _i3.MainDB? db, - required _i24.Future Function()? getChainHeight, - required _i24.Future Function(_i10.Balance)? refreshedBalanceCallback, - }) => - super.noSuchMethod( - Invocation.method( - #initCoinControlInterface, - [], - { - #walletId: walletId, - #walletName: walletName, - #coin: coin, - #db: db, - #getChainHeight: getChainHeight, - #refreshedBalanceCallback: refreshedBalanceCallback, - }, - ), - returnValueForMissingStub: null, - ); - @override - _i24.Future refreshBalance({bool? notify = false}) => - (super.noSuchMethod( - Invocation.method( - #refreshBalance, - [], - {#notify: notify}, - ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); -} - /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i32.ThemeService { +class MockThemeService extends _i1.Mock implements _i18.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @override - _i19.HTTP get client => (super.noSuchMethod( + _i6.HTTP get client => (super.noSuchMethod( Invocation.getter(#client), - returnValue: _FakeHTTP_17( + returnValue: _FakeHTTP_3( this, Invocation.getter(#client), ), - ) as _i19.HTTP); + ) as _i6.HTTP); @override - set client(_i19.HTTP? _client) => super.noSuchMethod( + set client(_i6.HTTP? _client) => super.noSuchMethod( Invocation.setter( #client, _client, @@ -1976,10 +541,10 @@ class MockThemeService extends _i1.Mock implements _i32.ThemeService { ), ) as _i3.MainDB); @override - List<_i33.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i19.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i33.StackTheme>[], - ) as List<_i33.StackTheme>); + returnValue: <_i19.StackTheme>[], + ) as List<_i19.StackTheme>); @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -1989,79 +554,79 @@ class MockThemeService extends _i1.Mock implements _i32.ThemeService { returnValueForMissingStub: null, ); @override - _i24.Future install({required _i31.Uint8List? themeArchiveData}) => + _i14.Future install({required _i20.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future remove({required String? themeId}) => (super.noSuchMethod( + _i14.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i14.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future verifyInstalled({required String? themeId}) => + _i14.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i24.Future> fetchThemes() => + _i14.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i24.Future>.value( - <_i32.StackThemeMetaData>[]), - ) as _i24.Future>); + returnValue: _i14.Future>.value( + <_i18.StackThemeMetaData>[]), + ) as _i14.Future>); @override - _i24.Future<_i31.Uint8List> fetchTheme( - {required _i32.StackThemeMetaData? themeMetaData}) => + _i14.Future<_i20.Uint8List> fetchTheme( + {required _i18.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i24.Future<_i31.Uint8List>.value(_i31.Uint8List(0)), - ) as _i24.Future<_i31.Uint8List>); + returnValue: _i14.Future<_i20.Uint8List>.value(_i20.Uint8List(0)), + ) as _i14.Future<_i20.Uint8List>); @override - _i33.StackTheme? getTheme({required String? themeId}) => + _i19.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i33.StackTheme?); + )) as _i19.StackTheme?); } /// A class which mocks [Prefs]. /// /// See the documentation for Mockito's code generation for more information. -class MockPrefs extends _i1.Mock implements _i25.Prefs { +class MockPrefs extends _i1.Mock implements _i15.Prefs { MockPrefs() { _i1.throwOnMissingStub(this); } @@ -2117,12 +682,12 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { returnValueForMissingStub: null, ); @override - _i34.SyncingType get syncType => (super.noSuchMethod( + _i21.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), - returnValue: _i34.SyncingType.currentWalletOnly, - ) as _i34.SyncingType); + returnValue: _i21.SyncingType.currentWalletOnly, + ) as _i21.SyncingType); @override - set syncType(_i34.SyncingType? syncType) => super.noSuchMethod( + set syncType(_i21.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( #syncType, syncType, @@ -2281,12 +846,12 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { returnValueForMissingStub: null, ); @override - _i35.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( + _i22.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), - returnValue: _i35.BackupFrequencyType.everyTenMinutes, - ) as _i35.BackupFrequencyType); + returnValue: _i22.BackupFrequencyType.everyTenMinutes, + ) as _i22.BackupFrequencyType); @override - set backupFrequencyType(_i35.BackupFrequencyType? backupFrequencyType) => + set backupFrequencyType(_i22.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( Invocation.setter( #backupFrequencyType, @@ -2432,15 +997,15 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { returnValueForMissingStub: null, ); @override - _i20.FusionInfo get fusionServerInfo => (super.noSuchMethod( + _i7.FusionInfo get fusionServerInfo => (super.noSuchMethod( Invocation.getter(#fusionServerInfo), - returnValue: _FakeFusionInfo_18( + returnValue: _FakeFusionInfo_4( this, Invocation.getter(#fusionServerInfo), ), - ) as _i20.FusionInfo); + ) as _i7.FusionInfo); @override - set fusionServerInfo(_i20.FusionInfo? fusionServerInfo) => super.noSuchMethod( + set fusionServerInfo(_i7.FusionInfo? fusionServerInfo) => super.noSuchMethod( Invocation.setter( #fusionServerInfo, fusionServerInfo, @@ -2453,61 +1018,61 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { returnValue: false, ) as bool); @override - _i24.Future init() => (super.noSuchMethod( + _i14.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( + _i14.Future incrementCurrentNotificationIndex() => (super.noSuchMethod( Invocation.method( #incrementCurrentNotificationIndex, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future isExternalCallsSet() => (super.noSuchMethod( + _i14.Future isExternalCallsSet() => (super.noSuchMethod( Invocation.method( #isExternalCallsSet, [], ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i24.Future saveUserID(String? userId) => (super.noSuchMethod( + _i14.Future saveUserID(String? userId) => (super.noSuchMethod( Invocation.method( #saveUserID, [userId], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( + _i14.Future saveSignupEpoch(int? signupEpoch) => (super.noSuchMethod( Invocation.method( #saveSignupEpoch, [signupEpoch], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i36.AmountUnit amountUnit(_i23.Coin? coin) => (super.noSuchMethod( + _i23.AmountUnit amountUnit(_i13.Coin? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], ), - returnValue: _i36.AmountUnit.normal, - ) as _i36.AmountUnit); + returnValue: _i23.AmountUnit.normal, + ) as _i23.AmountUnit); @override void updateAmountUnit({ - required _i23.Coin? coin, - required _i36.AmountUnit? amountUnit, + required _i13.Coin? coin, + required _i23.AmountUnit? amountUnit, }) => super.noSuchMethod( Invocation.method( @@ -2521,7 +1086,7 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { returnValueForMissingStub: null, ); @override - int maxDecimals(_i23.Coin? coin) => (super.noSuchMethod( + int maxDecimals(_i13.Coin? coin) => (super.noSuchMethod( Invocation.method( #maxDecimals, [coin], @@ -2530,7 +1095,7 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { ) as int); @override void updateMaxDecimals({ - required _i23.Coin? coin, + required _i13.Coin? coin, required int? maxDecimals, }) => super.noSuchMethod( @@ -2545,7 +1110,7 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { returnValueForMissingStub: null, ); @override - void addListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2553,7 +1118,7 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2581,7 +1146,7 @@ class MockPrefs extends _i1.Mock implements _i25.Prefs { /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i37.LocaleService { +class MockLocaleService extends _i1.Mock implements _i24.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -2597,17 +1162,17 @@ class MockLocaleService extends _i1.Mock implements _i37.LocaleService { returnValue: false, ) as bool); @override - _i24.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( + _i14.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( #loadLocale, [], {#notify: notify}, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - void addListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2615,7 +1180,7 @@ class MockLocaleService extends _i1.Mock implements _i37.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2645,41 +1210,41 @@ class MockLocaleService extends _i1.Mock implements _i37.LocaleService { /// See the documentation for Mockito's code generation for more information. class MockNodeService extends _i1.Mock implements _i2.NodeService { @override - _i21.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( + _i8.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( Invocation.getter(#secureStorageInterface), - returnValue: _FakeSecureStorageInterface_19( + returnValue: _FakeSecureStorageInterface_5( this, Invocation.getter(#secureStorageInterface), ), - ) as _i21.SecureStorageInterface); + ) as _i8.SecureStorageInterface); @override - List<_i38.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i25.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i38.NodeModel>[], - ) as List<_i38.NodeModel>); + returnValue: <_i25.NodeModel>[], + ) as List<_i25.NodeModel>); @override - List<_i38.NodeModel> get nodes => (super.noSuchMethod( + List<_i25.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i38.NodeModel>[], - ) as List<_i38.NodeModel>); + returnValue: <_i25.NodeModel>[], + ) as List<_i25.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i24.Future updateDefaults() => (super.noSuchMethod( + _i14.Future updateDefaults() => (super.noSuchMethod( Invocation.method( #updateDefaults, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future setPrimaryNodeFor({ - required _i23.Coin? coin, - required _i38.NodeModel? node, + _i14.Future setPrimaryNodeFor({ + required _i13.Coin? coin, + required _i25.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -2692,44 +1257,44 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i38.NodeModel? getPrimaryNodeFor({required _i23.Coin? coin}) => + _i25.NodeModel? getPrimaryNodeFor({required _i13.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i38.NodeModel?); + )) as _i25.NodeModel?); @override - List<_i38.NodeModel> getNodesFor(_i23.Coin? coin) => (super.noSuchMethod( + List<_i25.NodeModel> getNodesFor(_i13.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i38.NodeModel>[], - ) as List<_i38.NodeModel>); + returnValue: <_i25.NodeModel>[], + ) as List<_i25.NodeModel>); @override - _i38.NodeModel? getNodeById({required String? id}) => + _i25.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i38.NodeModel?); + )) as _i25.NodeModel?); @override - List<_i38.NodeModel> failoverNodesFor({required _i23.Coin? coin}) => + List<_i25.NodeModel> failoverNodesFor({required _i13.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i38.NodeModel>[], - ) as List<_i38.NodeModel>); + returnValue: <_i25.NodeModel>[], + ) as List<_i25.NodeModel>); @override - _i24.Future add( - _i38.NodeModel? node, + _i14.Future add( + _i25.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -2742,11 +1307,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future delete( + _i14.Future delete( String? id, bool? shouldNotifyListeners, ) => @@ -2758,11 +1323,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future setEnabledState( + _i14.Future setEnabledState( String? id, bool? enabled, bool? shouldNotifyListeners, @@ -2776,12 +1341,12 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future edit( - _i38.NodeModel? editedNode, + _i14.Future edit( + _i25.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -2794,20 +1359,20 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future updateCommunityNodes() => (super.noSuchMethod( + _i14.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( #updateCommunityNodes, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - void addListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2815,7 +1380,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i27.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i17.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2843,7 +1408,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i26.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -2854,10 +1419,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i23.Coin get coin => (super.noSuchMethod( + _i13.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i23.Coin.bitcoin, - ) as _i23.Coin); + returnValue: _i13.Coin.bitcoin, + ) as _i13.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2890,23 +1455,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i24.Future<_i7.FeeObject> get fees => (super.noSuchMethod( + _i14.Future<_i9.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i24.Future<_i7.FeeObject>.value(_FakeFeeObject_4( + returnValue: _i14.Future<_i9.FeeObject>.value(_FakeFeeObject_6( this, Invocation.getter(#fees), )), - ) as _i24.Future<_i7.FeeObject>); + ) as _i14.Future<_i9.FeeObject>); @override - _i24.Future get maxFee => (super.noSuchMethod( + _i14.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i24.Future.value(0), - ) as _i24.Future); + returnValue: _i14.Future.value(0), + ) as _i14.Future); @override - _i24.Future get currentReceivingAddress => (super.noSuchMethod( + _i14.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i24.Future.value(''), - ) as _i24.Future); + returnValue: _i14.Future.value(''), + ) as _i14.Future); @override _i10.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), @@ -2916,16 +1481,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { ), ) as _i10.Balance); @override - _i24.Future> get transactions => (super.noSuchMethod( + _i14.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i24.Future>.value(<_i16.Transaction>[]), - ) as _i24.Future>); + _i14.Future>.value(<_i27.Transaction>[]), + ) as _i14.Future>); @override - _i24.Future> get utxos => (super.noSuchMethod( + _i14.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i24.Future>.value(<_i16.UTXO>[]), - ) as _i24.Future>); + returnValue: _i14.Future>.value(<_i27.UTXO>[]), + ) as _i14.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2945,20 +1510,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { returnValue: '', ) as String); @override - _i24.Future> get mnemonic => (super.noSuchMethod( + _i14.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i24.Future>.value([]), - ) as _i24.Future>); + returnValue: _i14.Future>.value([]), + ) as _i14.Future>); @override - _i24.Future get mnemonicString => (super.noSuchMethod( + _i14.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future get mnemonicPassphrase => (super.noSuchMethod( + _i14.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + ) as _i14.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -2975,9 +1540,9 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { returnValue: 0, ) as int); @override - _i24.Future> prepareSend({ + _i14.Future> prepareSend({ required String? address, - required _i12.Amount? amount, + required _i11.Amount? amount, Map? args, }) => (super.noSuchMethod( @@ -2991,36 +1556,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { }, ), returnValue: - _i24.Future>.value({}), - ) as _i24.Future>); + _i14.Future>.value({}), + ) as _i14.Future>); @override - _i24.Future confirmSend({required Map? txData}) => + _i14.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i24.Future.value(''), - ) as _i24.Future); + returnValue: _i14.Future.value(''), + ) as _i14.Future); @override - _i24.Future refresh() => (super.noSuchMethod( + _i14.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i14.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -3030,15 +1595,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { returnValue: false, ) as bool); @override - _i24.Future testNetworkConnection() => (super.noSuchMethod( + _i14.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i24.Future recoverFromMnemonic({ + _i14.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -3057,40 +1622,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { #height: height, }, ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future initializeNew( + _i14.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future initializeExisting() => (super.noSuchMethod( + _i14.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future exit() => (super.noSuchMethod( + _i14.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future fullRescan( + _i14.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -3102,12 +1667,12 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i24.Future<_i12.Amount> estimateFeeFor( - _i12.Amount? amount, + _i14.Future<_i11.Amount> estimateFeeFor( + _i11.Amount? amount, int? feeRate, ) => (super.noSuchMethod( @@ -3118,7 +1683,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { feeRate, ], ), - returnValue: _i24.Future<_i12.Amount>.value(_FakeAmount_10( + returnValue: _i14.Future<_i11.Amount>.value(_FakeAmount_8( this, Invocation.method( #estimateFeeFor, @@ -3128,23 +1693,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i39.CoinServiceAPI { ], ), )), - ) as _i24.Future<_i12.Amount>); + ) as _i14.Future<_i11.Amount>); @override - _i24.Future generateNewAddress() => (super.noSuchMethod( + _i14.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i24.Future.value(false), - ) as _i24.Future); + returnValue: _i14.Future.value(false), + ) as _i14.Future); @override - _i24.Future updateSentCachedTxData(Map? txData) => + _i14.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i24.Future.value(), - returnValueForMissingStub: _i24.Future.value(), - ) as _i24.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); } diff --git a/test/widget_tests/node_options_sheet_test.mocks.dart b/test/widget_tests/node_options_sheet_test.mocks.dart index 1441a47f6..98358e979 100644 --- a/test/widget_tests/node_options_sheet_test.mocks.dart +++ b/test/widget_tests/node_options_sheet_test.mocks.dart @@ -190,10 +190,17 @@ class MockWallets extends _i1.Mock implements _i9.Wallets { returnValueForMissingStub: null, ); @override - _i11.Future deleteWallet(String? walletId) => (super.noSuchMethod( + _i11.Future deleteWallet( + String? walletId, + _i7.SecureStorageInterface? secureStorage, + ) => + (super.noSuchMethod( Invocation.method( #deleteWallet, - [walletId], + [ + walletId, + secureStorage, + ], ), returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), diff --git a/test/widget_tests/table_view/table_view_row_test.dart b/test/widget_tests/table_view/table_view_row_test.dart index e47e21f70..6c9fd9e71 100644 --- a/test/widget_tests/table_view/table_view_row_test.dart +++ b/test/widget_tests/table_view/table_view_row_test.dart @@ -1,12 +1,16 @@ import 'package:mockito/annotations.dart'; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart'; import 'package:stackwallet/services/coins/coin_service.dart'; import 'package:stackwallet/services/wallets.dart'; import 'package:stackwallet/services/wallets_service.dart'; import 'package:stackwallet/themes/theme_service.dart'; -@GenerateMocks([Wallets, WalletsService, ThemeService, BitcoinWallet], - customMocks: [MockSpec(returnNullOnMissingStub: true)]) +@GenerateMocks([ + Wallets, + WalletsService, + ThemeService, +], customMocks: [ + MockSpec(returnNullOnMissingStub: true) +]) void main() { // testWidgets('Test table view row', (widgetTester) async { // widgetTester.binding.window.physicalSizeTestValue = const Size(2500, 1800); diff --git a/test/widget_tests/table_view/table_view_row_test.mocks.dart b/test/widget_tests/table_view/table_view_row_test.mocks.dart index e94d3bcc9..cfb336c77 100644 --- a/test/widget_tests/table_view/table_view_row_test.mocks.dart +++ b/test/widget_tests/table_view/table_view_row_test.mocks.dart @@ -3,44 +3,30 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i22; -import 'dart:typed_data' as _i28; -import 'dart:ui' as _i25; +import 'dart:async' as _i12; +import 'dart:typed_data' as _i19; +import 'dart:ui' as _i16; -import 'package:bip32/bip32.dart' as _i16; -import 'package:bip47/bip47.dart' as _i18; -import 'package:bitcoindart/bitcoindart.dart' as _i12; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; -import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i10; -import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i9; -import 'package:stackwallet/models/balance.dart' as _i11; -import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart' - as _i14; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i17; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i27; -import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; -import 'package:stackwallet/models/signing_data.dart' as _i31; +import 'package:stackwallet/models/balance.dart' as _i8; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i21; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i18; +import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i7; import 'package:stackwallet/networking/http.dart' as _i6; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i29; -import 'package:stackwallet/services/coins/coin_service.dart' as _i33; +import 'package:stackwallet/services/coins/coin_service.dart' as _i20; import 'package:stackwallet/services/node_service.dart' as _i2; -import 'package:stackwallet/services/transaction_notification_tracker.dart' - as _i7; -import 'package:stackwallet/services/wallets.dart' as _i20; -import 'package:stackwallet/services/wallets_service.dart' as _i24; -import 'package:stackwallet/themes/theme_service.dart' as _i26; -import 'package:stackwallet/utilities/amount/amount.dart' as _i13; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i21; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i30; +import 'package:stackwallet/services/wallets.dart' as _i10; +import 'package:stackwallet/services/wallets_service.dart' as _i15; +import 'package:stackwallet/themes/theme_service.dart' as _i17; +import 'package:stackwallet/utilities/amount/amount.dart' as _i9; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i11; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i32; -import 'package:stackwallet/utilities/prefs.dart' as _i23; + as _i13; +import 'package:stackwallet/utilities/prefs.dart' as _i14; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; -import 'package:stackwallet/wallets/models/tx_data.dart' as _i19; import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; -import 'package:tuple/tuple.dart' as _i15; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -94,9 +80,8 @@ class _FakeHTTP_3 extends _i1.SmartFake implements _i6.HTTP { ); } -class _FakeTransactionNotificationTracker_4 extends _i1.SmartFake - implements _i7.TransactionNotificationTracker { - _FakeTransactionNotificationTracker_4( +class _FakeFeeObject_4 extends _i1.SmartFake implements _i7.FeeObject { + _FakeFeeObject_4( Object parent, Invocation parentInvocation, ) : super( @@ -105,8 +90,8 @@ class _FakeTransactionNotificationTracker_4 extends _i1.SmartFake ); } -class _FakeFeeObject_5 extends _i1.SmartFake implements _i8.FeeObject { - _FakeFeeObject_5( +class _FakeBalance_5 extends _i1.SmartFake implements _i8.Balance { + _FakeBalance_5( Object parent, Invocation parentInvocation, ) : super( @@ -115,121 +100,8 @@ class _FakeFeeObject_5 extends _i1.SmartFake implements _i8.FeeObject { ); } -class _FakeElectrumX_6 extends _i1.SmartFake implements _i9.ElectrumX { - _FakeElectrumX_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeCachedElectrumX_7 extends _i1.SmartFake - implements _i10.CachedElectrumX { - _FakeCachedElectrumX_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeBalance_8 extends _i1.SmartFake implements _i11.Balance { - _FakeBalance_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeNetworkType_9 extends _i1.SmartFake implements _i12.NetworkType { - _FakeNetworkType_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeElectrumXNode_10 extends _i1.SmartFake implements _i9.ElectrumXNode { - _FakeElectrumXNode_10( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAmount_11 extends _i1.SmartFake implements _i13.Amount { - _FakeAmount_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTransactionV2_12 extends _i1.SmartFake - implements _i14.TransactionV2 { - _FakeTransactionV2_12( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTuple2_13 extends _i1.SmartFake - implements _i15.Tuple2 { - _FakeTuple2_13( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { - _FakeBIP32_14( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAddress_15 extends _i1.SmartFake implements _i17.Address { - _FakeAddress_15( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakePaymentCode_16 extends _i1.SmartFake implements _i18.PaymentCode { - _FakePaymentCode_16( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTxData_17 extends _i1.SmartFake implements _i19.TxData { - _FakeTxData_17( +class _FakeAmount_6 extends _i1.SmartFake implements _i9.Amount { + _FakeAmount_6( Object parent, Invocation parentInvocation, ) : super( @@ -241,7 +113,7 @@ class _FakeTxData_17 extends _i1.SmartFake implements _i19.TxData { /// A class which mocks [Wallets]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallets extends _i1.Mock implements _i20.Wallets { +class MockWallets extends _i1.Mock implements _i10.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -289,16 +161,16 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[], ) as List<_i5.Wallet<_i4.CryptoCurrency>>); @override - List<({_i21.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})> + List<({_i11.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})> get walletsByCoin => (super.noSuchMethod( Invocation.getter(#walletsByCoin), returnValue: <({ - _i21.Coin coin, + _i11.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets })>[], ) as List< ({ - _i21.Coin coin, + _i11.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets })>); @override @@ -325,17 +197,24 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - _i22.Future deleteWallet(String? walletId) => (super.noSuchMethod( + _i12.Future deleteWallet( + String? walletId, + _i13.SecureStorageInterface? secureStorage, + ) => + (super.noSuchMethod( Invocation.method( #deleteWallet, - [walletId], + [ + walletId, + secureStorage, + ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future load( - _i23.Prefs? prefs, + _i12.Future load( + _i14.Prefs? prefs, _i3.MainDB? mainDB, ) => (super.noSuchMethod( @@ -346,12 +225,12 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { mainDB, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future loadAfterStackRestore( - _i23.Prefs? prefs, + _i12.Future loadAfterStackRestore( + _i14.Prefs? prefs, List<_i5.Wallet<_i4.CryptoCurrency>>? wallets, ) => (super.noSuchMethod( @@ -362,33 +241,33 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { wallets, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); } /// A class which mocks [WalletsService]. /// /// See the documentation for Mockito's code generation for more information. -class MockWalletsService extends _i1.Mock implements _i24.WalletsService { +class MockWalletsService extends _i1.Mock implements _i15.WalletsService { MockWalletsService() { _i1.throwOnMissingStub(this); } @override - _i22.Future> get walletNames => + _i12.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i22.Future>.value( - {}), - ) as _i22.Future>); + returnValue: _i12.Future>.value( + {}), + ) as _i12.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i22.Future renameWallet({ + _i12.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -403,21 +282,21 @@ class MockWalletsService extends _i1.Mock implements _i24.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i12.Future.value(false), + ) as _i12.Future); @override - Map fetchWalletsData() => (super.noSuchMethod( + Map fetchWalletsData() => (super.noSuchMethod( Invocation.method( #fetchWalletsData, [], ), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override - _i22.Future addExistingStackWallet({ + _i12.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i21.Coin? coin, + required _i11.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -431,13 +310,13 @@ class MockWalletsService extends _i1.Mock implements _i24.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future addNewWallet({ + _i12.Future addNewWallet({ required String? name, - required _i21.Coin? coin, + required _i11.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -450,46 +329,46 @@ class MockWalletsService extends _i1.Mock implements _i24.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i12.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i12.Future>.value([]), + ) as _i12.Future>); @override - _i22.Future saveFavoriteWalletIds(List? walletIds) => + _i12.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i12.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i12.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future moveFavorite({ + _i12.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -502,48 +381,48 @@ class MockWalletsService extends _i1.Mock implements _i24.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i12.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i12.Future.value(false), + ) as _i12.Future); @override - _i22.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i12.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future isMnemonicVerified({required String? walletId}) => + _i12.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i12.Future.value(false), + ) as _i12.Future); @override - _i22.Future setMnemonicVerified({required String? walletId}) => + _i12.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future deleteWallet( + _i12.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -555,20 +434,20 @@ class MockWalletsService extends _i1.Mock implements _i24.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i12.Future.value(0), + ) as _i12.Future); @override - _i22.Future refreshWallets(bool? shouldNotifyListeners) => + _i12.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -576,7 +455,7 @@ class MockWalletsService extends _i1.Mock implements _i24.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -604,7 +483,7 @@ class MockWalletsService extends _i1.Mock implements _i24.WalletsService { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i26.ThemeService { +class MockThemeService extends _i1.Mock implements _i17.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @@ -634,10 +513,10 @@ class MockThemeService extends _i1.Mock implements _i26.ThemeService { ), ) as _i3.MainDB); @override - List<_i27.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i18.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i27.StackTheme>[], - ) as List<_i27.StackTheme>); + returnValue: <_i18.StackTheme>[], + ) as List<_i18.StackTheme>); @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -647,1393 +526,79 @@ class MockThemeService extends _i1.Mock implements _i26.ThemeService { returnValueForMissingStub: null, ); @override - _i22.Future install({required _i28.Uint8List? themeArchiveData}) => + _i12.Future install({required _i19.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future remove({required String? themeId}) => (super.noSuchMethod( + _i12.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i12.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future verifyInstalled({required String? themeId}) => + _i12.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i12.Future.value(false), + ) as _i12.Future); @override - _i22.Future> fetchThemes() => + _i12.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i22.Future>.value( - <_i26.StackThemeMetaData>[]), - ) as _i22.Future>); + returnValue: _i12.Future>.value( + <_i17.StackThemeMetaData>[]), + ) as _i12.Future>); @override - _i22.Future<_i28.Uint8List> fetchTheme( - {required _i26.StackThemeMetaData? themeMetaData}) => + _i12.Future<_i19.Uint8List> fetchTheme( + {required _i17.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i22.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), - ) as _i22.Future<_i28.Uint8List>); + returnValue: _i12.Future<_i19.Uint8List>.value(_i19.Uint8List(0)), + ) as _i12.Future<_i19.Uint8List>); @override - _i27.StackTheme? getTheme({required String? themeId}) => + _i18.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i27.StackTheme?); -} - -/// A class which mocks [BitcoinWallet]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { - MockBitcoinWallet() { - _i1.throwOnMissingStub(this); - } - - @override - set timer(_i22.Timer? _timer) => super.noSuchMethod( - Invocation.setter( - #timer, - _timer, - ), - returnValueForMissingStub: null, - ); - @override - _i7.TransactionNotificationTracker get txTracker => (super.noSuchMethod( - Invocation.getter(#txTracker), - returnValue: _FakeTransactionNotificationTracker_4( - this, - Invocation.getter(#txTracker), - ), - ) as _i7.TransactionNotificationTracker); - @override - set txTracker(_i7.TransactionNotificationTracker? _txTracker) => - super.noSuchMethod( - Invocation.setter( - #txTracker, - _txTracker, - ), - returnValueForMissingStub: null, - ); - @override - bool get longMutex => (super.noSuchMethod( - Invocation.getter(#longMutex), - returnValue: false, - ) as bool); - @override - set longMutex(bool? _longMutex) => super.noSuchMethod( - Invocation.setter( - #longMutex, - _longMutex, - ), - returnValueForMissingStub: null, - ); - @override - bool get refreshMutex => (super.noSuchMethod( - Invocation.getter(#refreshMutex), - returnValue: false, - ) as bool); - @override - set refreshMutex(bool? _refreshMutex) => super.noSuchMethod( - Invocation.setter( - #refreshMutex, - _refreshMutex, - ), - returnValueForMissingStub: null, - ); - @override - bool get isActive => (super.noSuchMethod( - Invocation.getter(#isActive), - returnValue: false, - ) as bool); - @override - set isActive(bool? _isActive) => super.noSuchMethod( - Invocation.setter( - #isActive, - _isActive, - ), - returnValueForMissingStub: null, - ); - @override - set isFavorite(bool? markFavorite) => super.noSuchMethod( - Invocation.setter( - #isFavorite, - markFavorite, - ), - returnValueForMissingStub: null, - ); - @override - bool get isFavorite => (super.noSuchMethod( - Invocation.getter(#isFavorite), - returnValue: false, - ) as bool); - @override - _i21.Coin get coin => (super.noSuchMethod( - Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); - @override - _i22.Future> get utxos => (super.noSuchMethod( - Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i17.UTXO>[]), - ) as _i22.Future>); - @override - _i22.Future> get transactions => (super.noSuchMethod( - Invocation.getter(#transactions), - returnValue: - _i22.Future>.value(<_i17.Transaction>[]), - ) as _i22.Future>); - @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( - Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - _i22.Future get currentChangeAddress => (super.noSuchMethod( - Invocation.getter(#currentChangeAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - _i22.Future get currentChangeAddressP2PKH => (super.noSuchMethod( - Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - bool get hasCalledExit => (super.noSuchMethod( - Invocation.getter(#hasCalledExit), - returnValue: false, - ) as bool); - @override - _i22.Future<_i8.FeeObject> get fees => (super.noSuchMethod( - Invocation.getter(#fees), - returnValue: _i22.Future<_i8.FeeObject>.value(_FakeFeeObject_5( - this, - Invocation.getter(#fees), - )), - ) as _i22.Future<_i8.FeeObject>); - @override - _i22.Future get maxFee => (super.noSuchMethod( - Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); - @override - _i22.Future> get mnemonic => (super.noSuchMethod( - Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); - @override - _i22.Future get mnemonicString => (super.noSuchMethod( - Invocation.getter(#mnemonicString), - returnValue: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future get mnemonicPassphrase => (super.noSuchMethod( - Invocation.getter(#mnemonicPassphrase), - returnValue: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future get chainHeight => (super.noSuchMethod( - Invocation.getter(#chainHeight), - returnValue: _i22.Future.value(0), - ) as _i22.Future); - @override - int get storedChainHeight => (super.noSuchMethod( - Invocation.getter(#storedChainHeight), - returnValue: 0, - ) as int); - @override - bool get shouldAutoSync => (super.noSuchMethod( - Invocation.getter(#shouldAutoSync), - returnValue: false, - ) as bool); - @override - set shouldAutoSync(bool? shouldAutoSync) => super.noSuchMethod( - Invocation.setter( - #shouldAutoSync, - shouldAutoSync, - ), - returnValueForMissingStub: null, - ); - @override - bool get isRefreshing => (super.noSuchMethod( - Invocation.getter(#isRefreshing), - returnValue: false, - ) as bool); - @override - bool get isConnected => (super.noSuchMethod( - Invocation.getter(#isConnected), - returnValue: false, - ) as bool); - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - String get walletName => (super.noSuchMethod( - Invocation.getter(#walletName), - returnValue: '', - ) as String); - @override - set walletName(String? newName) => super.noSuchMethod( - Invocation.setter( - #walletName, - newName, - ), - returnValueForMissingStub: null, - ); - @override - _i9.ElectrumX get electrumXClient => (super.noSuchMethod( - Invocation.getter(#electrumXClient), - returnValue: _FakeElectrumX_6( - this, - Invocation.getter(#electrumXClient), - ), - ) as _i9.ElectrumX); - @override - _i10.CachedElectrumX get cachedElectrumXClient => (super.noSuchMethod( - Invocation.getter(#cachedElectrumXClient), - returnValue: _FakeCachedElectrumX_7( - this, - Invocation.getter(#cachedElectrumXClient), - ), - ) as _i10.CachedElectrumX); - @override - _i11.Balance get balance => (super.noSuchMethod( - Invocation.getter(#balance), - returnValue: _FakeBalance_8( - this, - Invocation.getter(#balance), - ), - ) as _i11.Balance); - @override - _i22.Future get xpub => (super.noSuchMethod( - Invocation.getter(#xpub), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => - super.noSuchMethod( - Invocation.setter( - #onIsActiveWalletChanged, - _onIsActiveWalletChanged, - ), - returnValueForMissingStub: null, - ); - @override - _i3.MainDB get db => (super.noSuchMethod( - Invocation.getter(#db), - returnValue: _FakeMainDB_1( - this, - Invocation.getter(#db), - ), - ) as _i3.MainDB); - @override - _i12.NetworkType get networkType => (super.noSuchMethod( - Invocation.getter(#networkType), - returnValue: _FakeNetworkType_9( - this, - Invocation.getter(#networkType), - ), - ) as _i12.NetworkType); - @override - _i22.Future exit() => (super.noSuchMethod( - Invocation.method( - #exit, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i30.DerivePathType addressType({required String? address}) => - (super.noSuchMethod( - Invocation.method( - #addressType, - [], - {#address: address}, - ), - returnValue: _i30.DerivePathType.bip44, - ) as _i30.DerivePathType); - @override - _i22.Future recoverFromMnemonic({ - required String? mnemonic, - String? mnemonicPassphrase, - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - required int? height, - }) => - (super.noSuchMethod( - Invocation.method( - #recoverFromMnemonic, - [], - { - #mnemonic: mnemonic, - #mnemonicPassphrase: mnemonicPassphrase, - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - #height: height, - }, - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future getTransactionCacheEarly(List? allAddresses) => - (super.noSuchMethod( - Invocation.method( - #getTransactionCacheEarly, - [allAddresses], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future refreshIfThereIsNewData() => (super.noSuchMethod( - Invocation.method( - #refreshIfThereIsNewData, - [], - ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); - @override - _i22.Future getAllTxsToWatch() => (super.noSuchMethod( - Invocation.method( - #getAllTxsToWatch, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future refresh() => (super.noSuchMethod( - Invocation.method( - #refresh, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future> prepareSend({ - required String? address, - required _i13.Amount? amount, - Map? args, - }) => - (super.noSuchMethod( - Invocation.method( - #prepareSend, - [], - { - #address: address, - #amount: amount, - #args: args, - }, - ), - returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); - @override - _i22.Future confirmSend({required Map? txData}) => - (super.noSuchMethod( - Invocation.method( - #confirmSend, - [], - {#txData: txData}, - ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( - Invocation.method( - #testNetworkConnection, - [], - ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); - @override - void startNetworkAlivePinging() => super.noSuchMethod( - Invocation.method( - #startNetworkAlivePinging, - [], - ), - returnValueForMissingStub: null, - ); - @override - void stopNetworkAlivePinging() => super.noSuchMethod( - Invocation.method( - #stopNetworkAlivePinging, - [], - ), - returnValueForMissingStub: null, - ); - @override - _i22.Future initializeNew( - ({String mnemonicPassphrase, int wordCount})? data) => - (super.noSuchMethod( - Invocation.method( - #initializeNew, - [data], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future initializeExisting() => (super.noSuchMethod( - Invocation.method( - #initializeExisting, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future updateSentCachedTxData(Map? txData) => - (super.noSuchMethod( - Invocation.method( - #updateSentCachedTxData, - [txData], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - bool validateAddress(String? address) => (super.noSuchMethod( - Invocation.method( - #validateAddress, - [address], - ), - returnValue: false, - ) as bool); - @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( - Invocation.method( - #updateNode, - [shouldRefresh], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( - Invocation.method( - #getCurrentNode, - [], - ), - returnValue: _i22.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_10( - this, - Invocation.method( - #getCurrentNode, - [], - ), - )), - ) as _i22.Future<_i9.ElectrumXNode>); - @override - _i22.Future>> fastFetch( - List? allTxHashes) => - (super.noSuchMethod( - Invocation.method( - #fastFetch, - [allTxHashes], - ), - returnValue: _i22.Future>>.value( - >[]), - ) as _i22.Future>>); - @override - _i22.Future getTxCount({required String? address}) => - (super.noSuchMethod( - Invocation.method( - #getTxCount, - [], - {#address: address}, - ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); - @override - _i22.Future checkCurrentReceivingAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkCurrentReceivingAddressesForTransactions, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future checkCurrentChangeAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkCurrentChangeAddressesForTransactions, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - int estimateTxFee({ - required int? vSize, - required int? feeRatePerKB, - }) => - (super.noSuchMethod( - Invocation.method( - #estimateTxFee, - [], - { - #vSize: vSize, - #feeRatePerKB: feeRatePerKB, - }, - ), - returnValue: 0, - ) as int); - @override - dynamic coinSelection({ - required int? satoshiAmountToSend, - required int? selectedTxFeeRate, - required String? recipientAddress, - required bool? coinControl, - required bool? isSendAll, - int? satsPerVByte, - int? additionalOutputs = 0, - List<_i17.UTXO>? utxos, - }) => - super.noSuchMethod(Invocation.method( - #coinSelection, - [], - { - #satoshiAmountToSend: satoshiAmountToSend, - #selectedTxFeeRate: selectedTxFeeRate, - #recipientAddress: recipientAddress, - #coinControl: coinControl, - #isSendAll: isSendAll, - #satsPerVByte: satsPerVByte, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - )); - @override - _i22.Future> fetchBuildTxData( - List<_i17.UTXO>? utxosToUse) => - (super.noSuchMethod( - Invocation.method( - #fetchBuildTxData, - [utxosToUse], - ), - returnValue: - _i22.Future>.value(<_i31.SigningData>[]), - ) as _i22.Future>); - @override - _i22.Future> buildTransaction({ - required List<_i31.SigningData>? utxoSigningData, - required List? recipients, - required List? satoshiAmounts, - }) => - (super.noSuchMethod( - Invocation.method( - #buildTransaction, - [], - { - #utxoSigningData: utxoSigningData, - #recipients: recipients, - #satoshiAmounts: satoshiAmounts, - }, - ), - returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); - @override - _i22.Future fullRescan( - int? maxUnusedAddressGap, - int? maxNumberOfIndexesToCheck, - ) => - (super.noSuchMethod( - Invocation.method( - #fullRescan, - [ - maxUnusedAddressGap, - maxNumberOfIndexesToCheck, - ], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future<_i13.Amount> estimateFeeFor( - _i13.Amount? amount, - int? feeRate, - ) => - (super.noSuchMethod( - Invocation.method( - #estimateFeeFor, - [ - amount, - feeRate, - ], - ), - returnValue: _i22.Future<_i13.Amount>.value(_FakeAmount_11( - this, - Invocation.method( - #estimateFeeFor, - [ - amount, - feeRate, - ], - ), - )), - ) as _i22.Future<_i13.Amount>); - @override - _i13.Amount roughFeeEstimate( - int? inputCount, - int? outputCount, - int? feeRatePerKB, - ) => - (super.noSuchMethod( - Invocation.method( - #roughFeeEstimate, - [ - inputCount, - outputCount, - feeRatePerKB, - ], - ), - returnValue: _FakeAmount_11( - this, - Invocation.method( - #roughFeeEstimate, - [ - inputCount, - outputCount, - feeRatePerKB, - ], - ), - ), - ) as _i13.Amount); - @override - _i22.Future<_i13.Amount> sweepAllEstimate(int? feeRate) => - (super.noSuchMethod( - Invocation.method( - #sweepAllEstimate, - [feeRate], - ), - returnValue: _i22.Future<_i13.Amount>.value(_FakeAmount_11( - this, - Invocation.method( - #sweepAllEstimate, - [feeRate], - ), - )), - ) as _i22.Future<_i13.Amount>); - @override - _i22.Future generateNewAddress() => (super.noSuchMethod( - Invocation.method( - #generateNewAddress, - [], - ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); - @override - void initCache( - String? walletId, - _i21.Coin? coin, - ) => - super.noSuchMethod( - Invocation.method( - #initCache, - [ - walletId, - coin, - ], - ), - returnValueForMissingStub: null, - ); - @override - _i22.Future updateCachedId(String? id) => (super.noSuchMethod( - Invocation.method( - #updateCachedId, - [id], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - int getCachedChainHeight() => (super.noSuchMethod( - Invocation.method( - #getCachedChainHeight, - [], - ), - returnValue: 0, - ) as int); - @override - _i22.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( - Invocation.method( - #updateCachedChainHeight, - [height], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - bool getCachedIsFavorite() => (super.noSuchMethod( - Invocation.method( - #getCachedIsFavorite, - [], - ), - returnValue: false, - ) as bool); - @override - _i22.Future updateCachedIsFavorite(bool? isFavorite) => - (super.noSuchMethod( - Invocation.method( - #updateCachedIsFavorite, - [isFavorite], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i11.Balance getCachedBalance() => (super.noSuchMethod( - Invocation.method( - #getCachedBalance, - [], - ), - returnValue: _FakeBalance_8( - this, - Invocation.method( - #getCachedBalance, - [], - ), - ), - ) as _i11.Balance); - @override - _i22.Future updateCachedBalance(_i11.Balance? balance) => - (super.noSuchMethod( - Invocation.method( - #updateCachedBalance, - [balance], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i11.Balance getCachedBalanceSecondary() => (super.noSuchMethod( - Invocation.method( - #getCachedBalanceSecondary, - [], - ), - returnValue: _FakeBalance_8( - this, - Invocation.method( - #getCachedBalanceSecondary, - [], - ), - ), - ) as _i11.Balance); - @override - _i22.Future updateCachedBalanceSecondary(_i11.Balance? balance) => - (super.noSuchMethod( - Invocation.method( - #updateCachedBalanceSecondary, - [balance], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - List getWalletTokenContractAddresses() => (super.noSuchMethod( - Invocation.method( - #getWalletTokenContractAddresses, - [], - ), - returnValue: [], - ) as List); - @override - _i22.Future updateWalletTokenContractAddresses( - List? contractAddresses) => - (super.noSuchMethod( - Invocation.method( - #updateWalletTokenContractAddresses, - [contractAddresses], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - void initWalletDB({_i3.MainDB? mockableOverride}) => super.noSuchMethod( - Invocation.method( - #initWalletDB, - [], - {#mockableOverride: mockableOverride}, - ), - returnValueForMissingStub: null, - ); - @override - _i22.Future<_i14.TransactionV2> getTransaction( - String? txHash, - _i21.Coin? coin, - String? walletId, - _i10.CachedElectrumX? cachedElectrumX, [ - String? debugTitle, - ]) => - (super.noSuchMethod( - Invocation.method( - #getTransaction, - [ - txHash, - coin, - walletId, - cachedElectrumX, - debugTitle, - ], - ), - returnValue: - _i22.Future<_i14.TransactionV2>.value(_FakeTransactionV2_12( - this, - Invocation.method( - #getTransaction, - [ - txHash, - coin, - walletId, - cachedElectrumX, - debugTitle, - ], - ), - )), - ) as _i22.Future<_i14.TransactionV2>); - @override - _i22.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>> parseTransaction( - Map? txData, - dynamic electrumxClient, - List<_i17.Address>? myAddresses, - _i21.Coin? coin, - int? minConfirms, - String? walletId, - ) => - (super.noSuchMethod( - Invocation.method( - #parseTransaction, - [ - txData, - electrumxClient, - myAddresses, - coin, - minConfirms, - walletId, - ], - ), - returnValue: - _i22.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>.value( - _FakeTuple2_13<_i17.Transaction, _i17.Address>( - this, - Invocation.method( - #parseTransaction, - [ - txData, - electrumxClient, - myAddresses, - coin, - minConfirms, - walletId, - ], - ), - )), - ) as _i22.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>); - @override - void initPaynymWalletInterface({ - required String? walletId, - required String? walletName, - required _i12.NetworkType? network, - required _i21.Coin? coin, - required _i3.MainDB? db, - required _i9.ElectrumX? electrumXClient, - required _i32.SecureStorageInterface? secureStorage, - required int? dustLimit, - required int? dustLimitP2PKH, - required int? minConfirms, - required _i22.Future Function()? getMnemonicString, - required _i22.Future Function()? getMnemonicPassphrase, - required _i22.Future Function()? getChainHeight, - required _i22.Future Function()? getCurrentChangeAddress, - required int Function({ - required int feeRatePerKB, - required int vSize, - })? estimateTxFee, - required _i22.Future> Function({ - required String address, - required _i13.Amount amount, - Map? args, - })? prepareSend, - required _i22.Future Function({required String address})? getTxCount, - required _i22.Future> Function(List<_i17.UTXO>)? - fetchBuildTxData, - required _i22.Future Function()? refresh, - required _i22.Future Function()? checkChangeAddressForTransactions, - }) => - super.noSuchMethod( - Invocation.method( - #initPaynymWalletInterface, - [], - { - #walletId: walletId, - #walletName: walletName, - #network: network, - #coin: coin, - #db: db, - #electrumXClient: electrumXClient, - #secureStorage: secureStorage, - #dustLimit: dustLimit, - #dustLimitP2PKH: dustLimitP2PKH, - #minConfirms: minConfirms, - #getMnemonicString: getMnemonicString, - #getMnemonicPassphrase: getMnemonicPassphrase, - #getChainHeight: getChainHeight, - #getCurrentChangeAddress: getCurrentChangeAddress, - #estimateTxFee: estimateTxFee, - #prepareSend: prepareSend, - #getTxCount: getTxCount, - #fetchBuildTxData: fetchBuildTxData, - #refresh: refresh, - #checkChangeAddressForTransactions: - checkChangeAddressForTransactions, - }, - ), - returnValueForMissingStub: null, - ); - @override - _i22.Future<_i16.BIP32> getBip47BaseNode() => (super.noSuchMethod( - Invocation.method( - #getBip47BaseNode, - [], - ), - returnValue: _i22.Future<_i16.BIP32>.value(_FakeBIP32_14( - this, - Invocation.method( - #getBip47BaseNode, - [], - ), - )), - ) as _i22.Future<_i16.BIP32>); - @override - _i22.Future<_i28.Uint8List> getPrivateKeyForPaynymReceivingAddress({ - required String? paymentCodeString, - required int? index, - }) => - (super.noSuchMethod( - Invocation.method( - #getPrivateKeyForPaynymReceivingAddress, - [], - { - #paymentCodeString: paymentCodeString, - #index: index, - }, - ), - returnValue: _i22.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), - ) as _i22.Future<_i28.Uint8List>); - @override - _i22.Future<_i17.Address> currentReceivingPaynymAddress({ - required _i18.PaymentCode? sender, - required bool? isSegwit, - }) => - (super.noSuchMethod( - Invocation.method( - #currentReceivingPaynymAddress, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - returnValue: _i22.Future<_i17.Address>.value(_FakeAddress_15( - this, - Invocation.method( - #currentReceivingPaynymAddress, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - )), - ) as _i22.Future<_i17.Address>); - @override - _i22.Future checkCurrentPaynymReceivingAddressForTransactions({ - required _i18.PaymentCode? sender, - required bool? isSegwit, - }) => - (super.noSuchMethod( - Invocation.method( - #checkCurrentPaynymReceivingAddressForTransactions, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkAllCurrentReceivingPaynymAddressesForTransactions, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future<_i16.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( - Invocation.method( - #deriveNotificationBip32Node, - [], - ), - returnValue: _i22.Future<_i16.BIP32>.value(_FakeBIP32_14( - this, - Invocation.method( - #deriveNotificationBip32Node, - [], - ), - )), - ) as _i22.Future<_i16.BIP32>); - @override - _i22.Future<_i18.PaymentCode> getPaymentCode({required bool? isSegwit}) => - (super.noSuchMethod( - Invocation.method( - #getPaymentCode, - [], - {#isSegwit: isSegwit}, - ), - returnValue: _i22.Future<_i18.PaymentCode>.value(_FakePaymentCode_16( - this, - Invocation.method( - #getPaymentCode, - [], - {#isSegwit: isSegwit}, - ), - )), - ) as _i22.Future<_i18.PaymentCode>); - @override - _i22.Future<_i28.Uint8List> signWithNotificationKey(_i28.Uint8List? data) => - (super.noSuchMethod( - Invocation.method( - #signWithNotificationKey, - [data], - ), - returnValue: _i22.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), - ) as _i22.Future<_i28.Uint8List>); - @override - _i22.Future signStringWithNotificationKey(String? data) => - (super.noSuchMethod( - Invocation.method( - #signStringWithNotificationKey, - [data], - ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - _i22.Future> preparePaymentCodeSend({ - required _i18.PaymentCode? paymentCode, - required bool? isSegwit, - required _i13.Amount? amount, - Map? args, - }) => - (super.noSuchMethod( - Invocation.method( - #preparePaymentCodeSend, - [], - { - #paymentCode: paymentCode, - #isSegwit: isSegwit, - #amount: amount, - #args: args, - }, - ), - returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); - @override - _i22.Future<_i17.Address> nextUnusedSendAddressFrom({ - required _i18.PaymentCode? pCode, - required bool? isSegwit, - required _i16.BIP32? privateKeyNode, - int? startIndex = 0, - }) => - (super.noSuchMethod( - Invocation.method( - #nextUnusedSendAddressFrom, - [], - { - #pCode: pCode, - #isSegwit: isSegwit, - #privateKeyNode: privateKeyNode, - #startIndex: startIndex, - }, - ), - returnValue: _i22.Future<_i17.Address>.value(_FakeAddress_15( - this, - Invocation.method( - #nextUnusedSendAddressFrom, - [], - { - #pCode: pCode, - #isSegwit: isSegwit, - #privateKeyNode: privateKeyNode, - #startIndex: startIndex, - }, - ), - )), - ) as _i22.Future<_i17.Address>); - @override - _i22.Future<_i19.TxData> prepareNotificationTx({ - required int? selectedTxFeeRate, - required String? targetPaymentCodeString, - int? additionalOutputs = 0, - List<_i17.UTXO>? utxos, - }) => - (super.noSuchMethod( - Invocation.method( - #prepareNotificationTx, - [], - { - #selectedTxFeeRate: selectedTxFeeRate, - #targetPaymentCodeString: targetPaymentCodeString, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - ), - returnValue: _i22.Future<_i19.TxData>.value(_FakeTxData_17( - this, - Invocation.method( - #prepareNotificationTx, - [], - { - #selectedTxFeeRate: selectedTxFeeRate, - #targetPaymentCodeString: targetPaymentCodeString, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - ), - )), - ) as _i22.Future<_i19.TxData>); - @override - _i22.Future broadcastNotificationTx( - {required Map? preparedTx}) => - (super.noSuchMethod( - Invocation.method( - #broadcastNotificationTx, - [], - {#preparedTx: preparedTx}, - ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - _i22.Future hasConnected(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #hasConnected, - [paymentCodeString], - ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); - @override - _i22.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransaction( - {required _i17.Transaction? transaction}) => - (super.noSuchMethod( - Invocation.method( - #unBlindedPaymentCodeFromTransaction, - [], - {#transaction: transaction}, - ), - returnValue: _i22.Future<_i18.PaymentCode?>.value(), - ) as _i22.Future<_i18.PaymentCode?>); - @override - _i22.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( - {required _i17.Transaction? transaction}) => - (super.noSuchMethod( - Invocation.method( - #unBlindedPaymentCodeFromTransactionBad, - [], - {#transaction: transaction}, - ), - returnValue: _i22.Future<_i18.PaymentCode?>.value(), - ) as _i22.Future<_i18.PaymentCode?>); - @override - _i22.Future> - getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( - Invocation.method( - #getAllPaymentCodesFromNotificationTransactions, - [], - ), - returnValue: - _i22.Future>.value(<_i18.PaymentCode>[]), - ) as _i22.Future>); - @override - _i22.Future checkForNotificationTransactionsTo( - Set? otherCodeStrings) => - (super.noSuchMethod( - Invocation.method( - #checkForNotificationTransactionsTo, - [otherCodeStrings], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future restoreAllHistory({ - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - required Set? paymentCodeStrings, - }) => - (super.noSuchMethod( - Invocation.method( - #restoreAllHistory, - [], - { - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - #paymentCodeStrings: paymentCodeStrings, - }, - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future restoreHistoryWith({ - required _i18.PaymentCode? other, - required bool? checkSegwitAsWell, - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - }) => - (super.noSuchMethod( - Invocation.method( - #restoreHistoryWith, - [], - { - #other: other, - #checkSegwitAsWell: checkSegwitAsWell, - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - }, - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future<_i17.Address> getMyNotificationAddress() => (super.noSuchMethod( - Invocation.method( - #getMyNotificationAddress, - [], - ), - returnValue: _i22.Future<_i17.Address>.value(_FakeAddress_15( - this, - Invocation.method( - #getMyNotificationAddress, - [], - ), - )), - ) as _i22.Future<_i17.Address>); - @override - _i22.Future> lookupKey(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #lookupKey, - [paymentCodeString], - ), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); - @override - _i22.Future paymentCodeStringByKey(String? key) => - (super.noSuchMethod( - Invocation.method( - #paymentCodeStringByKey, - [key], - ), - returnValue: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future storeCode(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #storeCode, - [paymentCodeString], - ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - void initCoinControlInterface({ - required String? walletId, - required String? walletName, - required _i21.Coin? coin, - required _i3.MainDB? db, - required _i22.Future Function()? getChainHeight, - required _i22.Future Function(_i11.Balance)? refreshedBalanceCallback, - }) => - super.noSuchMethod( - Invocation.method( - #initCoinControlInterface, - [], - { - #walletId: walletId, - #walletName: walletName, - #coin: coin, - #db: db, - #getChainHeight: getChainHeight, - #refreshedBalanceCallback: refreshedBalanceCallback, - }, - ), - returnValueForMissingStub: null, - ); - @override - _i22.Future refreshBalance({bool? notify = false}) => - (super.noSuchMethod( - Invocation.method( - #refreshBalance, - [], - {#notify: notify}, - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + )) as _i18.StackTheme?); } /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i33.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -2044,10 +609,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i33.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i21.Coin get coin => (super.noSuchMethod( + _i11.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i11.Coin.bitcoin, + ) as _i11.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2080,42 +645,42 @@ class MockCoinServiceAPI extends _i1.Mock implements _i33.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i22.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i12.Future<_i7.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i12.Future<_i7.FeeObject>.value(_FakeFeeObject_4( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i8.FeeObject>); + ) as _i12.Future<_i7.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i12.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i12.Future.value(0), + ) as _i12.Future); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i12.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i12.Future.value(''), + ) as _i12.Future); @override - _i11.Balance get balance => (super.noSuchMethod( + _i8.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), - returnValue: _FakeBalance_8( + returnValue: _FakeBalance_5( this, Invocation.getter(#balance), ), - ) as _i11.Balance); + ) as _i8.Balance); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i12.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i17.Transaction>[]), - ) as _i22.Future>); + _i12.Future>.value(<_i21.Transaction>[]), + ) as _i12.Future>); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i12.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i17.UTXO>[]), - ) as _i22.Future>); + returnValue: _i12.Future>.value(<_i21.UTXO>[]), + ) as _i12.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2135,20 +700,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i33.CoinServiceAPI { returnValue: '', ) as String); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i12.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i12.Future>.value([]), + ) as _i12.Future>); @override - _i22.Future get mnemonicString => (super.noSuchMethod( + _i12.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future get mnemonicPassphrase => (super.noSuchMethod( + _i12.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + ) as _i12.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -2165,9 +730,9 @@ class MockCoinServiceAPI extends _i1.Mock implements _i33.CoinServiceAPI { returnValue: 0, ) as int); @override - _i22.Future> prepareSend({ + _i12.Future> prepareSend({ required String? address, - required _i13.Amount? amount, + required _i9.Amount? amount, Map? args, }) => (super.noSuchMethod( @@ -2181,36 +746,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i33.CoinServiceAPI { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i12.Future>.value({}), + ) as _i12.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i12.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i12.Future.value(''), + ) as _i12.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i12.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i12.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2220,15 +785,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i33.CoinServiceAPI { returnValue: false, ) as bool); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i12.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i12.Future.value(false), + ) as _i12.Future); @override - _i22.Future recoverFromMnemonic({ + _i12.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -2247,40 +812,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i33.CoinServiceAPI { #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future initializeNew( + _i12.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i12.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future exit() => (super.noSuchMethod( + _i12.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future fullRescan( + _i12.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2292,12 +857,12 @@ class MockCoinServiceAPI extends _i1.Mock implements _i33.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future<_i13.Amount> estimateFeeFor( - _i13.Amount? amount, + _i12.Future<_i9.Amount> estimateFeeFor( + _i9.Amount? amount, int? feeRate, ) => (super.noSuchMethod( @@ -2308,7 +873,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i33.CoinServiceAPI { feeRate, ], ), - returnValue: _i22.Future<_i13.Amount>.value(_FakeAmount_11( + returnValue: _i12.Future<_i9.Amount>.value(_FakeAmount_6( this, Invocation.method( #estimateFeeFor, @@ -2318,23 +883,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i33.CoinServiceAPI { ], ), )), - ) as _i22.Future<_i13.Amount>); + ) as _i12.Future<_i9.Amount>); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i12.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i12.Future.value(false), + ) as _i12.Future); @override - _i22.Future updateSentCachedTxData(Map? txData) => + _i12.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); } diff --git a/test/widget_tests/transaction_card_test.dart b/test/widget_tests/transaction_card_test.dart index 0481a6c7c..aca8ef3c1 100644 --- a/test/widget_tests/transaction_card_test.dart +++ b/test/widget_tests/transaction_card_test.dart @@ -4,7 +4,6 @@ import 'package:stackwallet/models/isar/stack_theme.dart'; import 'package:stackwallet/services/coins/coin_service.dart'; import 'package:stackwallet/services/coins/firo/firo_wallet.dart'; import 'package:stackwallet/services/locale_service.dart'; -import 'package:stackwallet/services/notes_service.dart'; import 'package:stackwallet/services/price_service.dart'; import 'package:stackwallet/services/wallets.dart'; import 'package:stackwallet/themes/theme_service.dart'; @@ -17,7 +16,6 @@ import 'package:stackwallet/utilities/prefs.dart'; LocaleService, Prefs, PriceService, - NotesService, ThemeService, MainDB, IThemeAssets, diff --git a/test/widget_tests/transaction_card_test.mocks.dart b/test/widget_tests/transaction_card_test.mocks.dart index ceb6d0afe..23e1d5b20 100644 --- a/test/widget_tests/transaction_card_test.mocks.dart +++ b/test/widget_tests/transaction_card_test.mocks.dart @@ -5,9 +5,9 @@ // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i18; import 'dart:typed_data' as _i34; -import 'dart:ui' as _i25; +import 'dart:ui' as _i26; -import 'package:decimal/decimal.dart' as _i30; +import 'package:decimal/decimal.dart' as _i31; import 'package:isar/isar.dart' as _i15; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; @@ -18,29 +18,30 @@ import 'package:stackwallet/models/isar/models/block_explorer.dart' as _i37; import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart' as _i38; import 'package:stackwallet/models/isar/models/contact_entry.dart' as _i36; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i21; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i22; import 'package:stackwallet/models/isar/stack_theme.dart' as _i33; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i6; -import 'package:stackwallet/models/signing_data.dart' as _i23; +import 'package:stackwallet/models/signing_data.dart' as _i24; import 'package:stackwallet/networking/http.dart' as _i14; -import 'package:stackwallet/services/coins/coin_service.dart' as _i20; -import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as _i22; -import 'package:stackwallet/services/locale_service.dart' as _i24; +import 'package:stackwallet/services/coins/coin_service.dart' as _i21; +import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as _i23; +import 'package:stackwallet/services/locale_service.dart' as _i25; import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart' as _i12; import 'package:stackwallet/services/node_service.dart' as _i2; -import 'package:stackwallet/services/notes_service.dart' as _i31; -import 'package:stackwallet/services/price_service.dart' as _i29; +import 'package:stackwallet/services/price_service.dart' as _i30; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i9; import 'package:stackwallet/services/wallets.dart' as _i16; import 'package:stackwallet/themes/theme_service.dart' as _i32; import 'package:stackwallet/utilities/amount/amount.dart' as _i8; -import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i28; -import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i27; +import 'package:stackwallet/utilities/amount/amount_unit.dart' as _i29; +import 'package:stackwallet/utilities/enums/backup_frequency_type.dart' as _i28; import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i17; -import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i26; -import 'package:stackwallet/utilities/prefs.dart' as _i19; +import 'package:stackwallet/utilities/enums/sync_type_enum.dart' as _i27; +import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' + as _i19; +import 'package:stackwallet/utilities/prefs.dart' as _i20; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; import 'package:stackwallet/wallets/isar/models/wallet_info.dart' as _i35; @@ -300,17 +301,24 @@ class MockWallets extends _i1.Mock implements _i16.Wallets { returnValueForMissingStub: null, ); @override - _i18.Future deleteWallet(String? walletId) => (super.noSuchMethod( + _i18.Future deleteWallet( + String? walletId, + _i19.SecureStorageInterface? secureStorage, + ) => + (super.noSuchMethod( Invocation.method( #deleteWallet, - [walletId], + [ + walletId, + secureStorage, + ], ), returnValue: _i18.Future.value(), returnValueForMissingStub: _i18.Future.value(), ) as _i18.Future); @override _i18.Future load( - _i19.Prefs? prefs, + _i20.Prefs? prefs, _i3.MainDB? mainDB, ) => (super.noSuchMethod( @@ -326,7 +334,7 @@ class MockWallets extends _i1.Mock implements _i16.Wallets { ) as _i18.Future); @override _i18.Future loadAfterStackRestore( - _i19.Prefs? prefs, + _i20.Prefs? prefs, List<_i5.Wallet<_i4.CryptoCurrency>>? wallets, ) => (super.noSuchMethod( @@ -345,7 +353,7 @@ class MockWallets extends _i1.Mock implements _i16.Wallets { /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI { MockCoinServiceAPI() { _i1.throwOnMissingStub(this); } @@ -422,16 +430,16 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { ), ) as _i7.Balance); @override - _i18.Future> get transactions => (super.noSuchMethod( + _i18.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i18.Future>.value(<_i21.Transaction>[]), - ) as _i18.Future>); + _i18.Future>.value(<_i22.Transaction>[]), + ) as _i18.Future>); @override - _i18.Future> get utxos => (super.noSuchMethod( + _i18.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i18.Future>.value(<_i21.UTXO>[]), - ) as _i18.Future>); + returnValue: _i18.Future>.value(<_i22.UTXO>[]), + ) as _i18.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -658,7 +666,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { /// A class which mocks [FiroWallet]. /// /// See the documentation for Mockito's code generation for more information. -class MockFiroWallet extends _i1.Mock implements _i22.FiroWallet { +class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { MockFiroWallet() { _i1.throwOnMissingStub(this); } @@ -877,16 +885,16 @@ class MockFiroWallet extends _i1.Mock implements _i22.FiroWallet { ), ) as _i7.Balance); @override - _i18.Future> get utxos => (super.noSuchMethod( + _i18.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i18.Future>.value(<_i21.UTXO>[]), - ) as _i18.Future>); + returnValue: _i18.Future>.value(<_i22.UTXO>[]), + ) as _i18.Future>); @override - _i18.Future> get transactions => (super.noSuchMethod( + _i18.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i18.Future>.value(<_i21.Transaction>[]), - ) as _i18.Future>); + _i18.Future>.value(<_i22.Transaction>[]), + ) as _i18.Future>); @override _i18.Future get xpub => (super.noSuchMethod( Invocation.getter(#xpub), @@ -1033,7 +1041,7 @@ class MockFiroWallet extends _i1.Mock implements _i22.FiroWallet { bool? isSendAll, { int? satsPerVByte, int? additionalOutputs = 0, - List<_i21.UTXO>? utxos, + List<_i22.UTXO>? utxos, }) => super.noSuchMethod(Invocation.method( #coinSelection, @@ -1050,19 +1058,19 @@ class MockFiroWallet extends _i1.Mock implements _i22.FiroWallet { }, )); @override - _i18.Future> fetchBuildTxData( - List<_i21.UTXO>? utxosToUse) => + _i18.Future> fetchBuildTxData( + List<_i22.UTXO>? utxosToUse) => (super.noSuchMethod( Invocation.method( #fetchBuildTxData, [utxosToUse], ), returnValue: - _i18.Future>.value(<_i23.SigningData>[]), - ) as _i18.Future>); + _i18.Future>.value(<_i24.SigningData>[]), + ) as _i18.Future>); @override _i18.Future> buildTransaction({ - required List<_i23.SigningData>? utxoSigningData, + required List<_i24.SigningData>? utxoSigningData, required List? recipients, required List? satoshiAmounts, }) => @@ -1181,7 +1189,7 @@ class MockFiroWallet extends _i1.Mock implements _i22.FiroWallet { ) as _i18.Future); @override _i18.Future> buildMintTransaction( - List<_i21.UTXO>? utxosToUse, + List<_i22.UTXO>? utxosToUse, int? satoshisPerRecipient, List>? mintsMap, ) => @@ -1419,7 +1427,7 @@ class MockFiroWallet extends _i1.Mock implements _i22.FiroWallet { >[]), ) as _i18.Future>>); @override - _i18.Future> getJMintTransactions( + _i18.Future> getJMintTransactions( _i11.CachedElectrumX? cachedClient, List? transactions, _i17.Coin? coin, @@ -1433,9 +1441,9 @@ class MockFiroWallet extends _i1.Mock implements _i22.FiroWallet { coin, ], ), - returnValue: _i18.Future>.value( - <_i21.Address, _i21.Transaction>{}), - ) as _i18.Future>); + returnValue: _i18.Future>.value( + <_i22.Address, _i22.Transaction>{}), + ) as _i18.Future>); @override _i18.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( @@ -1612,7 +1620,7 @@ class MockFiroWallet extends _i1.Mock implements _i22.FiroWallet { /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i24.LocaleService { +class MockLocaleService extends _i1.Mock implements _i25.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -1638,7 +1646,7 @@ class MockLocaleService extends _i1.Mock implements _i24.LocaleService { returnValueForMissingStub: _i18.Future.value(), ) as _i18.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1646,7 +1654,7 @@ class MockLocaleService extends _i1.Mock implements _i24.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1674,7 +1682,7 @@ class MockLocaleService extends _i1.Mock implements _i24.LocaleService { /// A class which mocks [Prefs]. /// /// See the documentation for Mockito's code generation for more information. -class MockPrefs extends _i1.Mock implements _i19.Prefs { +class MockPrefs extends _i1.Mock implements _i20.Prefs { MockPrefs() { _i1.throwOnMissingStub(this); } @@ -1730,12 +1738,12 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs { returnValueForMissingStub: null, ); @override - _i26.SyncingType get syncType => (super.noSuchMethod( + _i27.SyncingType get syncType => (super.noSuchMethod( Invocation.getter(#syncType), - returnValue: _i26.SyncingType.currentWalletOnly, - ) as _i26.SyncingType); + returnValue: _i27.SyncingType.currentWalletOnly, + ) as _i27.SyncingType); @override - set syncType(_i26.SyncingType? syncType) => super.noSuchMethod( + set syncType(_i27.SyncingType? syncType) => super.noSuchMethod( Invocation.setter( #syncType, syncType, @@ -1894,12 +1902,12 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs { returnValueForMissingStub: null, ); @override - _i27.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( + _i28.BackupFrequencyType get backupFrequencyType => (super.noSuchMethod( Invocation.getter(#backupFrequencyType), - returnValue: _i27.BackupFrequencyType.everyTenMinutes, - ) as _i27.BackupFrequencyType); + returnValue: _i28.BackupFrequencyType.everyTenMinutes, + ) as _i28.BackupFrequencyType); @override - set backupFrequencyType(_i27.BackupFrequencyType? backupFrequencyType) => + set backupFrequencyType(_i28.BackupFrequencyType? backupFrequencyType) => super.noSuchMethod( Invocation.setter( #backupFrequencyType, @@ -2110,17 +2118,17 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs { returnValueForMissingStub: _i18.Future.value(), ) as _i18.Future); @override - _i28.AmountUnit amountUnit(_i17.Coin? coin) => (super.noSuchMethod( + _i29.AmountUnit amountUnit(_i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #amountUnit, [coin], ), - returnValue: _i28.AmountUnit.normal, - ) as _i28.AmountUnit); + returnValue: _i29.AmountUnit.normal, + ) as _i29.AmountUnit); @override void updateAmountUnit({ required _i17.Coin? coin, - required _i28.AmountUnit? amountUnit, + required _i29.AmountUnit? amountUnit, }) => super.noSuchMethod( Invocation.method( @@ -2158,7 +2166,7 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs { returnValueForMissingStub: null, ); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2166,7 +2174,7 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2194,7 +2202,7 @@ class MockPrefs extends _i1.Mock implements _i19.Prefs { /// A class which mocks [PriceService]. /// /// See the documentation for Mockito's code generation for more information. -class MockPriceService extends _i1.Mock implements _i29.PriceService { +class MockPriceService extends _i1.Mock implements _i30.PriceService { MockPriceService() { _i1.throwOnMissingStub(this); } @@ -2231,35 +2239,35 @@ class MockPriceService extends _i1.Mock implements _i29.PriceService { returnValue: false, ) as bool); @override - _i13.Tuple2<_i30.Decimal, double> getPrice(_i17.Coin? coin) => + _i13.Tuple2<_i31.Decimal, double> getPrice(_i17.Coin? coin) => (super.noSuchMethod( Invocation.method( #getPrice, [coin], ), - returnValue: _FakeTuple2_11<_i30.Decimal, double>( + returnValue: _FakeTuple2_11<_i31.Decimal, double>( this, Invocation.method( #getPrice, [coin], ), ), - ) as _i13.Tuple2<_i30.Decimal, double>); + ) as _i13.Tuple2<_i31.Decimal, double>); @override - _i13.Tuple2<_i30.Decimal, double> getTokenPrice(String? contractAddress) => + _i13.Tuple2<_i31.Decimal, double> getTokenPrice(String? contractAddress) => (super.noSuchMethod( Invocation.method( #getTokenPrice, [contractAddress], ), - returnValue: _FakeTuple2_11<_i30.Decimal, double>( + returnValue: _FakeTuple2_11<_i31.Decimal, double>( this, Invocation.method( #getTokenPrice, [contractAddress], ), ), - ) as _i13.Tuple2<_i30.Decimal, double>); + ) as _i13.Tuple2<_i31.Decimal, double>); @override _i18.Future updatePrice() => (super.noSuchMethod( Invocation.method( @@ -2294,7 +2302,7 @@ class MockPriceService extends _i1.Mock implements _i29.PriceService { returnValueForMissingStub: null, ); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2302,7 +2310,7 @@ class MockPriceService extends _i1.Mock implements _i29.PriceService { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2319,113 +2327,6 @@ class MockPriceService extends _i1.Mock implements _i29.PriceService { ); } -/// A class which mocks [NotesService]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockNotesService extends _i1.Mock implements _i31.NotesService { - MockNotesService() { - _i1.throwOnMissingStub(this); - } - - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - Map get notesSync => (super.noSuchMethod( - Invocation.getter(#notesSync), - returnValue: {}, - ) as Map); - @override - _i18.Future> get notes => (super.noSuchMethod( - Invocation.getter(#notes), - returnValue: _i18.Future>.value({}), - ) as _i18.Future>); - @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - ) as bool); - @override - _i18.Future> search(String? text) => (super.noSuchMethod( - Invocation.method( - #search, - [text], - ), - returnValue: _i18.Future>.value({}), - ) as _i18.Future>); - @override - _i18.Future getNoteFor({required String? txid}) => - (super.noSuchMethod( - Invocation.method( - #getNoteFor, - [], - {#txid: txid}, - ), - returnValue: _i18.Future.value(''), - ) as _i18.Future); - @override - _i18.Future editOrAddNote({ - required String? txid, - required String? note, - }) => - (super.noSuchMethod( - Invocation.method( - #editOrAddNote, - [], - { - #txid: txid, - #note: note, - }, - ), - returnValue: _i18.Future.value(), - returnValueForMissingStub: _i18.Future.value(), - ) as _i18.Future); - @override - _i18.Future deleteNote({required String? txid}) => (super.noSuchMethod( - Invocation.method( - #deleteNote, - [], - {#txid: txid}, - ), - returnValue: _i18.Future.value(), - returnValueForMissingStub: _i18.Future.value(), - ) as _i18.Future); - @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeListener, - [listener], - ), - returnValueForMissingStub: null, - ); - @override - void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); - @override - void notifyListeners() => super.noSuchMethod( - Invocation.method( - #notifyListeners, - [], - ), - returnValueForMissingStub: null, - ); -} - /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. @@ -2662,13 +2563,13 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i18.Future.value(0), ) as _i18.Future); @override - _i15.QueryBuilder<_i21.Address, _i21.Address, _i15.QAfterWhereClause> + _i15.QueryBuilder<_i22.Address, _i22.Address, _i15.QAfterWhereClause> getAddresses(String? walletId) => (super.noSuchMethod( Invocation.method( #getAddresses, [walletId], ), - returnValue: _FakeQueryBuilder_14<_i21.Address, _i21.Address, + returnValue: _FakeQueryBuilder_14<_i22.Address, _i22.Address, _i15.QAfterWhereClause>( this, Invocation.method( @@ -2676,10 +2577,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { [walletId], ), ), - ) as _i15.QueryBuilder<_i21.Address, _i21.Address, + ) as _i15.QueryBuilder<_i22.Address, _i22.Address, _i15.QAfterWhereClause>); @override - _i18.Future putAddress(_i21.Address? address) => (super.noSuchMethod( + _i18.Future putAddress(_i22.Address? address) => (super.noSuchMethod( Invocation.method( #putAddress, [address], @@ -2687,7 +2588,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i18.Future.value(0), ) as _i18.Future); @override - _i18.Future> putAddresses(List<_i21.Address>? addresses) => + _i18.Future> putAddresses(List<_i22.Address>? addresses) => (super.noSuchMethod( Invocation.method( #putAddresses, @@ -2696,7 +2597,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i18.Future>.value([]), ) as _i18.Future>); @override - _i18.Future> updateOrPutAddresses(List<_i21.Address>? addresses) => + _i18.Future> updateOrPutAddresses(List<_i22.Address>? addresses) => (super.noSuchMethod( Invocation.method( #updateOrPutAddresses, @@ -2705,7 +2606,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i18.Future>.value([]), ) as _i18.Future>); @override - _i18.Future<_i21.Address?> getAddress( + _i18.Future<_i22.Address?> getAddress( String? walletId, String? address, ) => @@ -2717,12 +2618,12 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { address, ], ), - returnValue: _i18.Future<_i21.Address?>.value(), - ) as _i18.Future<_i21.Address?>); + returnValue: _i18.Future<_i22.Address?>.value(), + ) as _i18.Future<_i22.Address?>); @override _i18.Future updateAddress( - _i21.Address? oldAddress, - _i21.Address? newAddress, + _i22.Address? oldAddress, + _i22.Address? newAddress, ) => (super.noSuchMethod( Invocation.method( @@ -2735,24 +2636,24 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i18.Future.value(0), ) as _i18.Future); @override - _i15.QueryBuilder<_i21.Transaction, _i21.Transaction, _i15.QAfterWhereClause> + _i15.QueryBuilder<_i22.Transaction, _i22.Transaction, _i15.QAfterWhereClause> getTransactions(String? walletId) => (super.noSuchMethod( Invocation.method( #getTransactions, [walletId], ), - returnValue: _FakeQueryBuilder_14<_i21.Transaction, - _i21.Transaction, _i15.QAfterWhereClause>( + returnValue: _FakeQueryBuilder_14<_i22.Transaction, + _i22.Transaction, _i15.QAfterWhereClause>( this, Invocation.method( #getTransactions, [walletId], ), ), - ) as _i15.QueryBuilder<_i21.Transaction, _i21.Transaction, + ) as _i15.QueryBuilder<_i22.Transaction, _i22.Transaction, _i15.QAfterWhereClause>); @override - _i18.Future putTransaction(_i21.Transaction? transaction) => + _i18.Future putTransaction(_i22.Transaction? transaction) => (super.noSuchMethod( Invocation.method( #putTransaction, @@ -2762,7 +2663,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ) as _i18.Future); @override _i18.Future> putTransactions( - List<_i21.Transaction>? transactions) => + List<_i22.Transaction>? transactions) => (super.noSuchMethod( Invocation.method( #putTransactions, @@ -2771,7 +2672,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i18.Future>.value([]), ) as _i18.Future>); @override - _i18.Future<_i21.Transaction?> getTransaction( + _i18.Future<_i22.Transaction?> getTransaction( String? walletId, String? txid, ) => @@ -2783,10 +2684,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { txid, ], ), - returnValue: _i18.Future<_i21.Transaction?>.value(), - ) as _i18.Future<_i21.Transaction?>); + returnValue: _i18.Future<_i22.Transaction?>.value(), + ) as _i18.Future<_i22.Transaction?>); @override - _i18.Stream<_i21.Transaction?> watchTransaction({ + _i18.Stream<_i22.Transaction?> watchTransaction({ required int? id, bool? fireImmediately = false, }) => @@ -2799,10 +2700,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i18.Stream<_i21.Transaction?>.empty(), - ) as _i18.Stream<_i21.Transaction?>); + returnValue: _i18.Stream<_i22.Transaction?>.empty(), + ) as _i18.Stream<_i22.Transaction?>); @override - _i15.QueryBuilder<_i21.UTXO, _i21.UTXO, _i15.QAfterWhereClause> getUTXOs( + _i15.QueryBuilder<_i22.UTXO, _i22.UTXO, _i15.QAfterWhereClause> getUTXOs( String? walletId) => (super.noSuchMethod( Invocation.method( @@ -2810,16 +2711,16 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { [walletId], ), returnValue: - _FakeQueryBuilder_14<_i21.UTXO, _i21.UTXO, _i15.QAfterWhereClause>( + _FakeQueryBuilder_14<_i22.UTXO, _i22.UTXO, _i15.QAfterWhereClause>( this, Invocation.method( #getUTXOs, [walletId], ), ), - ) as _i15.QueryBuilder<_i21.UTXO, _i21.UTXO, _i15.QAfterWhereClause>); + ) as _i15.QueryBuilder<_i22.UTXO, _i22.UTXO, _i15.QAfterWhereClause>); @override - _i15.QueryBuilder<_i21.UTXO, _i21.UTXO, _i15.QAfterFilterCondition> + _i15.QueryBuilder<_i22.UTXO, _i22.UTXO, _i15.QAfterFilterCondition> getUTXOsByAddress( String? walletId, String? address, @@ -2832,7 +2733,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { address, ], ), - returnValue: _FakeQueryBuilder_14<_i21.UTXO, _i21.UTXO, + returnValue: _FakeQueryBuilder_14<_i22.UTXO, _i22.UTXO, _i15.QAfterFilterCondition>( this, Invocation.method( @@ -2844,9 +2745,9 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), ), ) as _i15 - .QueryBuilder<_i21.UTXO, _i21.UTXO, _i15.QAfterFilterCondition>); + .QueryBuilder<_i22.UTXO, _i22.UTXO, _i15.QAfterFilterCondition>); @override - _i18.Future putUTXO(_i21.UTXO? utxo) => (super.noSuchMethod( + _i18.Future putUTXO(_i22.UTXO? utxo) => (super.noSuchMethod( Invocation.method( #putUTXO, [utxo], @@ -2855,7 +2756,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValueForMissingStub: _i18.Future.value(), ) as _i18.Future); @override - _i18.Future putUTXOs(List<_i21.UTXO>? utxos) => (super.noSuchMethod( + _i18.Future putUTXOs(List<_i22.UTXO>? utxos) => (super.noSuchMethod( Invocation.method( #putUTXOs, [utxos], @@ -2866,7 +2767,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { @override _i18.Future updateUTXOs( String? walletId, - List<_i21.UTXO>? utxos, + List<_i22.UTXO>? utxos, ) => (super.noSuchMethod( Invocation.method( @@ -2879,7 +2780,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i18.Future.value(false), ) as _i18.Future); @override - _i18.Stream<_i21.UTXO?> watchUTXO({ + _i18.Stream<_i22.UTXO?> watchUTXO({ required int? id, bool? fireImmediately = false, }) => @@ -2892,10 +2793,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i18.Stream<_i21.UTXO?>.empty(), - ) as _i18.Stream<_i21.UTXO?>); + returnValue: _i18.Stream<_i22.UTXO?>.empty(), + ) as _i18.Stream<_i22.UTXO?>); @override - _i15.QueryBuilder<_i21.TransactionNote, _i21.TransactionNote, + _i15.QueryBuilder<_i22.TransactionNote, _i22.TransactionNote, _i15.QAfterWhereClause> getTransactionNotes( String? walletId) => (super.noSuchMethod( @@ -2903,18 +2804,18 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { #getTransactionNotes, [walletId], ), - returnValue: _FakeQueryBuilder_14<_i21.TransactionNote, - _i21.TransactionNote, _i15.QAfterWhereClause>( + returnValue: _FakeQueryBuilder_14<_i22.TransactionNote, + _i22.TransactionNote, _i15.QAfterWhereClause>( this, Invocation.method( #getTransactionNotes, [walletId], ), ), - ) as _i15.QueryBuilder<_i21.TransactionNote, _i21.TransactionNote, + ) as _i15.QueryBuilder<_i22.TransactionNote, _i22.TransactionNote, _i15.QAfterWhereClause>); @override - _i18.Future putTransactionNote(_i21.TransactionNote? transactionNote) => + _i18.Future putTransactionNote(_i22.TransactionNote? transactionNote) => (super.noSuchMethod( Invocation.method( #putTransactionNote, @@ -2925,7 +2826,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ) as _i18.Future); @override _i18.Future putTransactionNotes( - List<_i21.TransactionNote>? transactionNotes) => + List<_i22.TransactionNote>? transactionNotes) => (super.noSuchMethod( Invocation.method( #putTransactionNotes, @@ -2935,7 +2836,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValueForMissingStub: _i18.Future.value(), ) as _i18.Future); @override - _i18.Future<_i21.TransactionNote?> getTransactionNote( + _i18.Future<_i22.TransactionNote?> getTransactionNote( String? walletId, String? txid, ) => @@ -2947,10 +2848,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { txid, ], ), - returnValue: _i18.Future<_i21.TransactionNote?>.value(), - ) as _i18.Future<_i21.TransactionNote?>); + returnValue: _i18.Future<_i22.TransactionNote?>.value(), + ) as _i18.Future<_i22.TransactionNote?>); @override - _i18.Stream<_i21.TransactionNote?> watchTransactionNote({ + _i18.Stream<_i22.TransactionNote?> watchTransactionNote({ required int? id, bool? fireImmediately = false, }) => @@ -2963,10 +2864,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i18.Stream<_i21.TransactionNote?>.empty(), - ) as _i18.Stream<_i21.TransactionNote?>); + returnValue: _i18.Stream<_i22.TransactionNote?>.empty(), + ) as _i18.Stream<_i22.TransactionNote?>); @override - _i15.QueryBuilder<_i21.AddressLabel, _i21.AddressLabel, + _i15.QueryBuilder<_i22.AddressLabel, _i22.AddressLabel, _i15.QAfterWhereClause> getAddressLabels( String? walletId) => (super.noSuchMethod( @@ -2974,7 +2875,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { #getAddressLabels, [walletId], ), - returnValue: _FakeQueryBuilder_14<_i21.AddressLabel, _i21.AddressLabel, + returnValue: _FakeQueryBuilder_14<_i22.AddressLabel, _i22.AddressLabel, _i15.QAfterWhereClause>( this, Invocation.method( @@ -2982,10 +2883,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { [walletId], ), ), - ) as _i15.QueryBuilder<_i21.AddressLabel, _i21.AddressLabel, + ) as _i15.QueryBuilder<_i22.AddressLabel, _i22.AddressLabel, _i15.QAfterWhereClause>); @override - _i18.Future putAddressLabel(_i21.AddressLabel? addressLabel) => + _i18.Future putAddressLabel(_i22.AddressLabel? addressLabel) => (super.noSuchMethod( Invocation.method( #putAddressLabel, @@ -2994,7 +2895,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i18.Future.value(0), ) as _i18.Future); @override - int putAddressLabelSync(_i21.AddressLabel? addressLabel) => + int putAddressLabelSync(_i22.AddressLabel? addressLabel) => (super.noSuchMethod( Invocation.method( #putAddressLabelSync, @@ -3003,7 +2904,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: 0, ) as int); @override - _i18.Future putAddressLabels(List<_i21.AddressLabel>? addressLabels) => + _i18.Future putAddressLabels(List<_i22.AddressLabel>? addressLabels) => (super.noSuchMethod( Invocation.method( #putAddressLabels, @@ -3013,7 +2914,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValueForMissingStub: _i18.Future.value(), ) as _i18.Future); @override - _i18.Future<_i21.AddressLabel?> getAddressLabel( + _i18.Future<_i22.AddressLabel?> getAddressLabel( String? walletId, String? addressString, ) => @@ -3025,10 +2926,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { addressString, ], ), - returnValue: _i18.Future<_i21.AddressLabel?>.value(), - ) as _i18.Future<_i21.AddressLabel?>); + returnValue: _i18.Future<_i22.AddressLabel?>.value(), + ) as _i18.Future<_i22.AddressLabel?>); @override - _i21.AddressLabel? getAddressLabelSync( + _i22.AddressLabel? getAddressLabelSync( String? walletId, String? addressString, ) => @@ -3038,9 +2939,9 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { walletId, addressString, ], - )) as _i21.AddressLabel?); + )) as _i22.AddressLabel?); @override - _i18.Stream<_i21.AddressLabel?> watchAddressLabel({ + _i18.Stream<_i22.AddressLabel?> watchAddressLabel({ required int? id, bool? fireImmediately = false, }) => @@ -3053,10 +2954,10 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { #fireImmediately: fireImmediately, }, ), - returnValue: _i18.Stream<_i21.AddressLabel?>.empty(), - ) as _i18.Stream<_i21.AddressLabel?>); + returnValue: _i18.Stream<_i22.AddressLabel?>.empty(), + ) as _i18.Stream<_i22.AddressLabel?>); @override - _i18.Future updateAddressLabel(_i21.AddressLabel? addressLabel) => + _i18.Future updateAddressLabel(_i22.AddressLabel? addressLabel) => (super.noSuchMethod( Invocation.method( #updateAddressLabel, @@ -3096,7 +2997,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ) as _i18.Future); @override _i18.Future addNewTransactionData( - List<_i13.Tuple2<_i21.Transaction, _i21.Address?>>? transactionsData, + List<_i13.Tuple2<_i22.Transaction, _i22.Address?>>? transactionsData, String? walletId, ) => (super.noSuchMethod( @@ -3121,14 +3022,14 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i18.Future>.value([]), ) as _i18.Future>); @override - _i15.QueryBuilder<_i21.EthContract, _i21.EthContract, _i15.QWhere> + _i15.QueryBuilder<_i22.EthContract, _i22.EthContract, _i15.QWhere> getEthContracts() => (super.noSuchMethod( Invocation.method( #getEthContracts, [], ), - returnValue: _FakeQueryBuilder_14<_i21.EthContract, - _i21.EthContract, _i15.QWhere>( + returnValue: _FakeQueryBuilder_14<_i22.EthContract, + _i22.EthContract, _i15.QWhere>( this, Invocation.method( #getEthContracts, @@ -3136,24 +3037,24 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { ), ), ) as _i15 - .QueryBuilder<_i21.EthContract, _i21.EthContract, _i15.QWhere>); + .QueryBuilder<_i22.EthContract, _i22.EthContract, _i15.QWhere>); @override - _i18.Future<_i21.EthContract?> getEthContract(String? contractAddress) => + _i18.Future<_i22.EthContract?> getEthContract(String? contractAddress) => (super.noSuchMethod( Invocation.method( #getEthContract, [contractAddress], ), - returnValue: _i18.Future<_i21.EthContract?>.value(), - ) as _i18.Future<_i21.EthContract?>); + returnValue: _i18.Future<_i22.EthContract?>.value(), + ) as _i18.Future<_i22.EthContract?>); @override - _i21.EthContract? getEthContractSync(String? contractAddress) => + _i22.EthContract? getEthContractSync(String? contractAddress) => (super.noSuchMethod(Invocation.method( #getEthContractSync, [contractAddress], - )) as _i21.EthContract?); + )) as _i22.EthContract?); @override - _i18.Future putEthContract(_i21.EthContract? contract) => + _i18.Future putEthContract(_i22.EthContract? contract) => (super.noSuchMethod( Invocation.method( #putEthContract, @@ -3162,7 +3063,7 @@ class MockMainDB extends _i1.Mock implements _i3.MainDB { returnValue: _i18.Future.value(0), ) as _i18.Future); @override - _i18.Future putEthContracts(List<_i21.EthContract>? contracts) => + _i18.Future putEthContracts(List<_i22.EthContract>? contracts) => (super.noSuchMethod( Invocation.method( #putEthContracts, diff --git a/test/widget_tests/wallet_card_test.dart b/test/widget_tests/wallet_card_test.dart index 18f6ad1de..a715b86f4 100644 --- a/test/widget_tests/wallet_card_test.dart +++ b/test/widget_tests/wallet_card_test.dart @@ -1,6 +1,5 @@ import 'package:decimal/decimal.dart'; import 'package:mockito/annotations.dart'; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart'; import 'package:stackwallet/services/locale_service.dart'; import 'package:stackwallet/services/wallets.dart'; import 'package:stackwallet/themes/theme_service.dart'; @@ -15,7 +14,6 @@ Amount _a(int i) => Amount.fromDecimal( @GenerateMocks([ Wallets, - BitcoinWallet, LocaleService, ThemeService, ]) diff --git a/test/widget_tests/wallet_card_test.mocks.dart b/test/widget_tests/wallet_card_test.mocks.dart index a1e0d5178..919c14cc9 100644 --- a/test/widget_tests/wallet_card_test.mocks.dart +++ b/test/widget_tests/wallet_card_test.mocks.dart @@ -3,43 +3,25 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i22; -import 'dart:typed_data' as _i28; -import 'dart:ui' as _i30; +import 'dart:async' as _i9; +import 'dart:typed_data' as _i16; +import 'dart:ui' as _i13; -import 'package:bip32/bip32.dart' as _i15; -import 'package:bip47/bip47.dart' as _i17; -import 'package:bitcoindart/bitcoindart.dart' as _i11; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; -import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i9; -import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i8; -import 'package:stackwallet/models/balance.dart' as _i10; -import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart' - as _i13; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i16; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i32; -import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i7; -import 'package:stackwallet/models/signing_data.dart' as _i26; -import 'package:stackwallet/networking/http.dart' as _i19; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i24; -import 'package:stackwallet/services/locale_service.dart' as _i29; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i15; +import 'package:stackwallet/networking/http.dart' as _i6; +import 'package:stackwallet/services/locale_service.dart' as _i12; import 'package:stackwallet/services/node_service.dart' as _i2; -import 'package:stackwallet/services/transaction_notification_tracker.dart' - as _i6; -import 'package:stackwallet/services/wallets.dart' as _i20; -import 'package:stackwallet/themes/theme_service.dart' as _i31; -import 'package:stackwallet/utilities/amount/amount.dart' as _i12; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i21; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i25; +import 'package:stackwallet/services/wallets.dart' as _i7; +import 'package:stackwallet/themes/theme_service.dart' as _i14; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i8; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i27; -import 'package:stackwallet/utilities/prefs.dart' as _i23; + as _i10; +import 'package:stackwallet/utilities/prefs.dart' as _i11; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; -import 'package:stackwallet/wallets/models/tx_data.dart' as _i18; import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; -import 'package:tuple/tuple.dart' as _i14; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -83,152 +65,8 @@ class _FakeWallet_2 extends _i1.SmartFake ); } -class _FakeTransactionNotificationTracker_3 extends _i1.SmartFake - implements _i6.TransactionNotificationTracker { - _FakeTransactionNotificationTracker_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeFeeObject_4 extends _i1.SmartFake implements _i7.FeeObject { - _FakeFeeObject_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeElectrumX_5 extends _i1.SmartFake implements _i8.ElectrumX { - _FakeElectrumX_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeCachedElectrumX_6 extends _i1.SmartFake - implements _i9.CachedElectrumX { - _FakeCachedElectrumX_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeBalance_7 extends _i1.SmartFake implements _i10.Balance { - _FakeBalance_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeNetworkType_8 extends _i1.SmartFake implements _i11.NetworkType { - _FakeNetworkType_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeElectrumXNode_9 extends _i1.SmartFake implements _i8.ElectrumXNode { - _FakeElectrumXNode_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAmount_10 extends _i1.SmartFake implements _i12.Amount { - _FakeAmount_10( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTransactionV2_11 extends _i1.SmartFake - implements _i13.TransactionV2 { - _FakeTransactionV2_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTuple2_12 extends _i1.SmartFake - implements _i14.Tuple2 { - _FakeTuple2_12( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeBIP32_13 extends _i1.SmartFake implements _i15.BIP32 { - _FakeBIP32_13( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAddress_14 extends _i1.SmartFake implements _i16.Address { - _FakeAddress_14( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakePaymentCode_15 extends _i1.SmartFake implements _i17.PaymentCode { - _FakePaymentCode_15( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTxData_16 extends _i1.SmartFake implements _i18.TxData { - _FakeTxData_16( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeHTTP_17 extends _i1.SmartFake implements _i19.HTTP { - _FakeHTTP_17( +class _FakeHTTP_3 extends _i1.SmartFake implements _i6.HTTP { + _FakeHTTP_3( Object parent, Invocation parentInvocation, ) : super( @@ -240,7 +78,7 @@ class _FakeHTTP_17 extends _i1.SmartFake implements _i19.HTTP { /// A class which mocks [Wallets]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallets extends _i1.Mock implements _i20.Wallets { +class MockWallets extends _i1.Mock implements _i7.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -288,18 +126,15 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[], ) as List<_i5.Wallet<_i4.CryptoCurrency>>); @override - List<({_i21.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})> + List<({_i8.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})> get walletsByCoin => (super.noSuchMethod( Invocation.getter(#walletsByCoin), returnValue: <({ - _i21.Coin coin, + _i8.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets })>[], ) as List< - ({ - _i21.Coin coin, - List<_i5.Wallet<_i4.CryptoCurrency>> wallets - })>); + ({_i8.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})>); @override _i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) => (super.noSuchMethod( @@ -324,17 +159,24 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - _i22.Future deleteWallet(String? walletId) => (super.noSuchMethod( + _i9.Future deleteWallet( + String? walletId, + _i10.SecureStorageInterface? secureStorage, + ) => + (super.noSuchMethod( Invocation.method( #deleteWallet, - [walletId], + [ + walletId, + secureStorage, + ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i9.Future.value(), + returnValueForMissingStub: _i9.Future.value(), + ) as _i9.Future); @override - _i22.Future load( - _i23.Prefs? prefs, + _i9.Future load( + _i11.Prefs? prefs, _i3.MainDB? mainDB, ) => (super.noSuchMethod( @@ -345,12 +187,12 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { mainDB, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i9.Future.value(), + returnValueForMissingStub: _i9.Future.value(), + ) as _i9.Future); @override - _i22.Future loadAfterStackRestore( - _i23.Prefs? prefs, + _i9.Future loadAfterStackRestore( + _i11.Prefs? prefs, List<_i5.Wallet<_i4.CryptoCurrency>>? wallets, ) => (super.noSuchMethod( @@ -361,1329 +203,15 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { wallets, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); -} - -/// A class which mocks [BitcoinWallet]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { - MockBitcoinWallet() { - _i1.throwOnMissingStub(this); - } - - @override - set timer(_i22.Timer? _timer) => super.noSuchMethod( - Invocation.setter( - #timer, - _timer, - ), - returnValueForMissingStub: null, - ); - @override - _i6.TransactionNotificationTracker get txTracker => (super.noSuchMethod( - Invocation.getter(#txTracker), - returnValue: _FakeTransactionNotificationTracker_3( - this, - Invocation.getter(#txTracker), - ), - ) as _i6.TransactionNotificationTracker); - @override - set txTracker(_i6.TransactionNotificationTracker? _txTracker) => - super.noSuchMethod( - Invocation.setter( - #txTracker, - _txTracker, - ), - returnValueForMissingStub: null, - ); - @override - bool get longMutex => (super.noSuchMethod( - Invocation.getter(#longMutex), - returnValue: false, - ) as bool); - @override - set longMutex(bool? _longMutex) => super.noSuchMethod( - Invocation.setter( - #longMutex, - _longMutex, - ), - returnValueForMissingStub: null, - ); - @override - bool get refreshMutex => (super.noSuchMethod( - Invocation.getter(#refreshMutex), - returnValue: false, - ) as bool); - @override - set refreshMutex(bool? _refreshMutex) => super.noSuchMethod( - Invocation.setter( - #refreshMutex, - _refreshMutex, - ), - returnValueForMissingStub: null, - ); - @override - bool get isActive => (super.noSuchMethod( - Invocation.getter(#isActive), - returnValue: false, - ) as bool); - @override - set isActive(bool? _isActive) => super.noSuchMethod( - Invocation.setter( - #isActive, - _isActive, - ), - returnValueForMissingStub: null, - ); - @override - set isFavorite(bool? markFavorite) => super.noSuchMethod( - Invocation.setter( - #isFavorite, - markFavorite, - ), - returnValueForMissingStub: null, - ); - @override - bool get isFavorite => (super.noSuchMethod( - Invocation.getter(#isFavorite), - returnValue: false, - ) as bool); - @override - _i21.Coin get coin => (super.noSuchMethod( - Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); - @override - _i22.Future> get utxos => (super.noSuchMethod( - Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i16.UTXO>[]), - ) as _i22.Future>); - @override - _i22.Future> get transactions => (super.noSuchMethod( - Invocation.getter(#transactions), - returnValue: - _i22.Future>.value(<_i16.Transaction>[]), - ) as _i22.Future>); - @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( - Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - _i22.Future get currentChangeAddress => (super.noSuchMethod( - Invocation.getter(#currentChangeAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - _i22.Future get currentChangeAddressP2PKH => (super.noSuchMethod( - Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - bool get hasCalledExit => (super.noSuchMethod( - Invocation.getter(#hasCalledExit), - returnValue: false, - ) as bool); - @override - _i22.Future<_i7.FeeObject> get fees => (super.noSuchMethod( - Invocation.getter(#fees), - returnValue: _i22.Future<_i7.FeeObject>.value(_FakeFeeObject_4( - this, - Invocation.getter(#fees), - )), - ) as _i22.Future<_i7.FeeObject>); - @override - _i22.Future get maxFee => (super.noSuchMethod( - Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); - @override - _i22.Future> get mnemonic => (super.noSuchMethod( - Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); - @override - _i22.Future get mnemonicString => (super.noSuchMethod( - Invocation.getter(#mnemonicString), - returnValue: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future get mnemonicPassphrase => (super.noSuchMethod( - Invocation.getter(#mnemonicPassphrase), - returnValue: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future get chainHeight => (super.noSuchMethod( - Invocation.getter(#chainHeight), - returnValue: _i22.Future.value(0), - ) as _i22.Future); - @override - int get storedChainHeight => (super.noSuchMethod( - Invocation.getter(#storedChainHeight), - returnValue: 0, - ) as int); - @override - bool get shouldAutoSync => (super.noSuchMethod( - Invocation.getter(#shouldAutoSync), - returnValue: false, - ) as bool); - @override - set shouldAutoSync(bool? shouldAutoSync) => super.noSuchMethod( - Invocation.setter( - #shouldAutoSync, - shouldAutoSync, - ), - returnValueForMissingStub: null, - ); - @override - bool get isRefreshing => (super.noSuchMethod( - Invocation.getter(#isRefreshing), - returnValue: false, - ) as bool); - @override - bool get isConnected => (super.noSuchMethod( - Invocation.getter(#isConnected), - returnValue: false, - ) as bool); - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - String get walletName => (super.noSuchMethod( - Invocation.getter(#walletName), - returnValue: '', - ) as String); - @override - set walletName(String? newName) => super.noSuchMethod( - Invocation.setter( - #walletName, - newName, - ), - returnValueForMissingStub: null, - ); - @override - _i8.ElectrumX get electrumXClient => (super.noSuchMethod( - Invocation.getter(#electrumXClient), - returnValue: _FakeElectrumX_5( - this, - Invocation.getter(#electrumXClient), - ), - ) as _i8.ElectrumX); - @override - _i9.CachedElectrumX get cachedElectrumXClient => (super.noSuchMethod( - Invocation.getter(#cachedElectrumXClient), - returnValue: _FakeCachedElectrumX_6( - this, - Invocation.getter(#cachedElectrumXClient), - ), - ) as _i9.CachedElectrumX); - @override - _i10.Balance get balance => (super.noSuchMethod( - Invocation.getter(#balance), - returnValue: _FakeBalance_7( - this, - Invocation.getter(#balance), - ), - ) as _i10.Balance); - @override - _i22.Future get xpub => (super.noSuchMethod( - Invocation.getter(#xpub), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => - super.noSuchMethod( - Invocation.setter( - #onIsActiveWalletChanged, - _onIsActiveWalletChanged, - ), - returnValueForMissingStub: null, - ); - @override - _i3.MainDB get db => (super.noSuchMethod( - Invocation.getter(#db), - returnValue: _FakeMainDB_1( - this, - Invocation.getter(#db), - ), - ) as _i3.MainDB); - @override - _i11.NetworkType get networkType => (super.noSuchMethod( - Invocation.getter(#networkType), - returnValue: _FakeNetworkType_8( - this, - Invocation.getter(#networkType), - ), - ) as _i11.NetworkType); - @override - _i22.Future exit() => (super.noSuchMethod( - Invocation.method( - #exit, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i25.DerivePathType addressType({required String? address}) => - (super.noSuchMethod( - Invocation.method( - #addressType, - [], - {#address: address}, - ), - returnValue: _i25.DerivePathType.bip44, - ) as _i25.DerivePathType); - @override - _i22.Future recoverFromMnemonic({ - required String? mnemonic, - String? mnemonicPassphrase, - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - required int? height, - }) => - (super.noSuchMethod( - Invocation.method( - #recoverFromMnemonic, - [], - { - #mnemonic: mnemonic, - #mnemonicPassphrase: mnemonicPassphrase, - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - #height: height, - }, - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future getTransactionCacheEarly(List? allAddresses) => - (super.noSuchMethod( - Invocation.method( - #getTransactionCacheEarly, - [allAddresses], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future refreshIfThereIsNewData() => (super.noSuchMethod( - Invocation.method( - #refreshIfThereIsNewData, - [], - ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); - @override - _i22.Future getAllTxsToWatch() => (super.noSuchMethod( - Invocation.method( - #getAllTxsToWatch, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future refresh() => (super.noSuchMethod( - Invocation.method( - #refresh, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future> prepareSend({ - required String? address, - required _i12.Amount? amount, - Map? args, - }) => - (super.noSuchMethod( - Invocation.method( - #prepareSend, - [], - { - #address: address, - #amount: amount, - #args: args, - }, - ), - returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); - @override - _i22.Future confirmSend({required Map? txData}) => - (super.noSuchMethod( - Invocation.method( - #confirmSend, - [], - {#txData: txData}, - ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( - Invocation.method( - #testNetworkConnection, - [], - ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); - @override - void startNetworkAlivePinging() => super.noSuchMethod( - Invocation.method( - #startNetworkAlivePinging, - [], - ), - returnValueForMissingStub: null, - ); - @override - void stopNetworkAlivePinging() => super.noSuchMethod( - Invocation.method( - #stopNetworkAlivePinging, - [], - ), - returnValueForMissingStub: null, - ); - @override - _i22.Future initializeNew( - ({String mnemonicPassphrase, int wordCount})? data) => - (super.noSuchMethod( - Invocation.method( - #initializeNew, - [data], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future initializeExisting() => (super.noSuchMethod( - Invocation.method( - #initializeExisting, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future updateSentCachedTxData(Map? txData) => - (super.noSuchMethod( - Invocation.method( - #updateSentCachedTxData, - [txData], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - bool validateAddress(String? address) => (super.noSuchMethod( - Invocation.method( - #validateAddress, - [address], - ), - returnValue: false, - ) as bool); - @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( - Invocation.method( - #updateNode, - [shouldRefresh], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future<_i8.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( - Invocation.method( - #getCurrentNode, - [], - ), - returnValue: _i22.Future<_i8.ElectrumXNode>.value(_FakeElectrumXNode_9( - this, - Invocation.method( - #getCurrentNode, - [], - ), - )), - ) as _i22.Future<_i8.ElectrumXNode>); - @override - _i22.Future>> fastFetch( - List? allTxHashes) => - (super.noSuchMethod( - Invocation.method( - #fastFetch, - [allTxHashes], - ), - returnValue: _i22.Future>>.value( - >[]), - ) as _i22.Future>>); - @override - _i22.Future getTxCount({required String? address}) => - (super.noSuchMethod( - Invocation.method( - #getTxCount, - [], - {#address: address}, - ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); - @override - _i22.Future checkCurrentReceivingAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkCurrentReceivingAddressesForTransactions, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future checkCurrentChangeAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkCurrentChangeAddressesForTransactions, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - int estimateTxFee({ - required int? vSize, - required int? feeRatePerKB, - }) => - (super.noSuchMethod( - Invocation.method( - #estimateTxFee, - [], - { - #vSize: vSize, - #feeRatePerKB: feeRatePerKB, - }, - ), - returnValue: 0, - ) as int); - @override - dynamic coinSelection({ - required int? satoshiAmountToSend, - required int? selectedTxFeeRate, - required String? recipientAddress, - required bool? coinControl, - required bool? isSendAll, - int? satsPerVByte, - int? additionalOutputs = 0, - List<_i16.UTXO>? utxos, - }) => - super.noSuchMethod(Invocation.method( - #coinSelection, - [], - { - #satoshiAmountToSend: satoshiAmountToSend, - #selectedTxFeeRate: selectedTxFeeRate, - #recipientAddress: recipientAddress, - #coinControl: coinControl, - #isSendAll: isSendAll, - #satsPerVByte: satsPerVByte, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - )); - @override - _i22.Future> fetchBuildTxData( - List<_i16.UTXO>? utxosToUse) => - (super.noSuchMethod( - Invocation.method( - #fetchBuildTxData, - [utxosToUse], - ), - returnValue: - _i22.Future>.value(<_i26.SigningData>[]), - ) as _i22.Future>); - @override - _i22.Future> buildTransaction({ - required List<_i26.SigningData>? utxoSigningData, - required List? recipients, - required List? satoshiAmounts, - }) => - (super.noSuchMethod( - Invocation.method( - #buildTransaction, - [], - { - #utxoSigningData: utxoSigningData, - #recipients: recipients, - #satoshiAmounts: satoshiAmounts, - }, - ), - returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); - @override - _i22.Future fullRescan( - int? maxUnusedAddressGap, - int? maxNumberOfIndexesToCheck, - ) => - (super.noSuchMethod( - Invocation.method( - #fullRescan, - [ - maxUnusedAddressGap, - maxNumberOfIndexesToCheck, - ], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future<_i12.Amount> estimateFeeFor( - _i12.Amount? amount, - int? feeRate, - ) => - (super.noSuchMethod( - Invocation.method( - #estimateFeeFor, - [ - amount, - feeRate, - ], - ), - returnValue: _i22.Future<_i12.Amount>.value(_FakeAmount_10( - this, - Invocation.method( - #estimateFeeFor, - [ - amount, - feeRate, - ], - ), - )), - ) as _i22.Future<_i12.Amount>); - @override - _i12.Amount roughFeeEstimate( - int? inputCount, - int? outputCount, - int? feeRatePerKB, - ) => - (super.noSuchMethod( - Invocation.method( - #roughFeeEstimate, - [ - inputCount, - outputCount, - feeRatePerKB, - ], - ), - returnValue: _FakeAmount_10( - this, - Invocation.method( - #roughFeeEstimate, - [ - inputCount, - outputCount, - feeRatePerKB, - ], - ), - ), - ) as _i12.Amount); - @override - _i22.Future<_i12.Amount> sweepAllEstimate(int? feeRate) => - (super.noSuchMethod( - Invocation.method( - #sweepAllEstimate, - [feeRate], - ), - returnValue: _i22.Future<_i12.Amount>.value(_FakeAmount_10( - this, - Invocation.method( - #sweepAllEstimate, - [feeRate], - ), - )), - ) as _i22.Future<_i12.Amount>); - @override - _i22.Future generateNewAddress() => (super.noSuchMethod( - Invocation.method( - #generateNewAddress, - [], - ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); - @override - void initCache( - String? walletId, - _i21.Coin? coin, - ) => - super.noSuchMethod( - Invocation.method( - #initCache, - [ - walletId, - coin, - ], - ), - returnValueForMissingStub: null, - ); - @override - _i22.Future updateCachedId(String? id) => (super.noSuchMethod( - Invocation.method( - #updateCachedId, - [id], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - int getCachedChainHeight() => (super.noSuchMethod( - Invocation.method( - #getCachedChainHeight, - [], - ), - returnValue: 0, - ) as int); - @override - _i22.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( - Invocation.method( - #updateCachedChainHeight, - [height], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - bool getCachedIsFavorite() => (super.noSuchMethod( - Invocation.method( - #getCachedIsFavorite, - [], - ), - returnValue: false, - ) as bool); - @override - _i22.Future updateCachedIsFavorite(bool? isFavorite) => - (super.noSuchMethod( - Invocation.method( - #updateCachedIsFavorite, - [isFavorite], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i10.Balance getCachedBalance() => (super.noSuchMethod( - Invocation.method( - #getCachedBalance, - [], - ), - returnValue: _FakeBalance_7( - this, - Invocation.method( - #getCachedBalance, - [], - ), - ), - ) as _i10.Balance); - @override - _i22.Future updateCachedBalance(_i10.Balance? balance) => - (super.noSuchMethod( - Invocation.method( - #updateCachedBalance, - [balance], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i10.Balance getCachedBalanceSecondary() => (super.noSuchMethod( - Invocation.method( - #getCachedBalanceSecondary, - [], - ), - returnValue: _FakeBalance_7( - this, - Invocation.method( - #getCachedBalanceSecondary, - [], - ), - ), - ) as _i10.Balance); - @override - _i22.Future updateCachedBalanceSecondary(_i10.Balance? balance) => - (super.noSuchMethod( - Invocation.method( - #updateCachedBalanceSecondary, - [balance], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - List getWalletTokenContractAddresses() => (super.noSuchMethod( - Invocation.method( - #getWalletTokenContractAddresses, - [], - ), - returnValue: [], - ) as List); - @override - _i22.Future updateWalletTokenContractAddresses( - List? contractAddresses) => - (super.noSuchMethod( - Invocation.method( - #updateWalletTokenContractAddresses, - [contractAddresses], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - void initWalletDB({_i3.MainDB? mockableOverride}) => super.noSuchMethod( - Invocation.method( - #initWalletDB, - [], - {#mockableOverride: mockableOverride}, - ), - returnValueForMissingStub: null, - ); - @override - _i22.Future<_i13.TransactionV2> getTransaction( - String? txHash, - _i21.Coin? coin, - String? walletId, - _i9.CachedElectrumX? cachedElectrumX, [ - String? debugTitle, - ]) => - (super.noSuchMethod( - Invocation.method( - #getTransaction, - [ - txHash, - coin, - walletId, - cachedElectrumX, - debugTitle, - ], - ), - returnValue: - _i22.Future<_i13.TransactionV2>.value(_FakeTransactionV2_11( - this, - Invocation.method( - #getTransaction, - [ - txHash, - coin, - walletId, - cachedElectrumX, - debugTitle, - ], - ), - )), - ) as _i22.Future<_i13.TransactionV2>); - @override - _i22.Future<_i14.Tuple2<_i16.Transaction, _i16.Address>> parseTransaction( - Map? txData, - dynamic electrumxClient, - List<_i16.Address>? myAddresses, - _i21.Coin? coin, - int? minConfirms, - String? walletId, - ) => - (super.noSuchMethod( - Invocation.method( - #parseTransaction, - [ - txData, - electrumxClient, - myAddresses, - coin, - minConfirms, - walletId, - ], - ), - returnValue: - _i22.Future<_i14.Tuple2<_i16.Transaction, _i16.Address>>.value( - _FakeTuple2_12<_i16.Transaction, _i16.Address>( - this, - Invocation.method( - #parseTransaction, - [ - txData, - electrumxClient, - myAddresses, - coin, - minConfirms, - walletId, - ], - ), - )), - ) as _i22.Future<_i14.Tuple2<_i16.Transaction, _i16.Address>>); - @override - void initPaynymWalletInterface({ - required String? walletId, - required String? walletName, - required _i11.NetworkType? network, - required _i21.Coin? coin, - required _i3.MainDB? db, - required _i8.ElectrumX? electrumXClient, - required _i27.SecureStorageInterface? secureStorage, - required int? dustLimit, - required int? dustLimitP2PKH, - required int? minConfirms, - required _i22.Future Function()? getMnemonicString, - required _i22.Future Function()? getMnemonicPassphrase, - required _i22.Future Function()? getChainHeight, - required _i22.Future Function()? getCurrentChangeAddress, - required int Function({ - required int feeRatePerKB, - required int vSize, - })? estimateTxFee, - required _i22.Future> Function({ - required String address, - required _i12.Amount amount, - Map? args, - })? prepareSend, - required _i22.Future Function({required String address})? getTxCount, - required _i22.Future> Function(List<_i16.UTXO>)? - fetchBuildTxData, - required _i22.Future Function()? refresh, - required _i22.Future Function()? checkChangeAddressForTransactions, - }) => - super.noSuchMethod( - Invocation.method( - #initPaynymWalletInterface, - [], - { - #walletId: walletId, - #walletName: walletName, - #network: network, - #coin: coin, - #db: db, - #electrumXClient: electrumXClient, - #secureStorage: secureStorage, - #dustLimit: dustLimit, - #dustLimitP2PKH: dustLimitP2PKH, - #minConfirms: minConfirms, - #getMnemonicString: getMnemonicString, - #getMnemonicPassphrase: getMnemonicPassphrase, - #getChainHeight: getChainHeight, - #getCurrentChangeAddress: getCurrentChangeAddress, - #estimateTxFee: estimateTxFee, - #prepareSend: prepareSend, - #getTxCount: getTxCount, - #fetchBuildTxData: fetchBuildTxData, - #refresh: refresh, - #checkChangeAddressForTransactions: - checkChangeAddressForTransactions, - }, - ), - returnValueForMissingStub: null, - ); - @override - _i22.Future<_i15.BIP32> getBip47BaseNode() => (super.noSuchMethod( - Invocation.method( - #getBip47BaseNode, - [], - ), - returnValue: _i22.Future<_i15.BIP32>.value(_FakeBIP32_13( - this, - Invocation.method( - #getBip47BaseNode, - [], - ), - )), - ) as _i22.Future<_i15.BIP32>); - @override - _i22.Future<_i28.Uint8List> getPrivateKeyForPaynymReceivingAddress({ - required String? paymentCodeString, - required int? index, - }) => - (super.noSuchMethod( - Invocation.method( - #getPrivateKeyForPaynymReceivingAddress, - [], - { - #paymentCodeString: paymentCodeString, - #index: index, - }, - ), - returnValue: _i22.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), - ) as _i22.Future<_i28.Uint8List>); - @override - _i22.Future<_i16.Address> currentReceivingPaynymAddress({ - required _i17.PaymentCode? sender, - required bool? isSegwit, - }) => - (super.noSuchMethod( - Invocation.method( - #currentReceivingPaynymAddress, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - returnValue: _i22.Future<_i16.Address>.value(_FakeAddress_14( - this, - Invocation.method( - #currentReceivingPaynymAddress, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - )), - ) as _i22.Future<_i16.Address>); - @override - _i22.Future checkCurrentPaynymReceivingAddressForTransactions({ - required _i17.PaymentCode? sender, - required bool? isSegwit, - }) => - (super.noSuchMethod( - Invocation.method( - #checkCurrentPaynymReceivingAddressForTransactions, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkAllCurrentReceivingPaynymAddressesForTransactions, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future<_i15.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( - Invocation.method( - #deriveNotificationBip32Node, - [], - ), - returnValue: _i22.Future<_i15.BIP32>.value(_FakeBIP32_13( - this, - Invocation.method( - #deriveNotificationBip32Node, - [], - ), - )), - ) as _i22.Future<_i15.BIP32>); - @override - _i22.Future<_i17.PaymentCode> getPaymentCode({required bool? isSegwit}) => - (super.noSuchMethod( - Invocation.method( - #getPaymentCode, - [], - {#isSegwit: isSegwit}, - ), - returnValue: _i22.Future<_i17.PaymentCode>.value(_FakePaymentCode_15( - this, - Invocation.method( - #getPaymentCode, - [], - {#isSegwit: isSegwit}, - ), - )), - ) as _i22.Future<_i17.PaymentCode>); - @override - _i22.Future<_i28.Uint8List> signWithNotificationKey(_i28.Uint8List? data) => - (super.noSuchMethod( - Invocation.method( - #signWithNotificationKey, - [data], - ), - returnValue: _i22.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), - ) as _i22.Future<_i28.Uint8List>); - @override - _i22.Future signStringWithNotificationKey(String? data) => - (super.noSuchMethod( - Invocation.method( - #signStringWithNotificationKey, - [data], - ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - _i22.Future> preparePaymentCodeSend({ - required _i17.PaymentCode? paymentCode, - required bool? isSegwit, - required _i12.Amount? amount, - Map? args, - }) => - (super.noSuchMethod( - Invocation.method( - #preparePaymentCodeSend, - [], - { - #paymentCode: paymentCode, - #isSegwit: isSegwit, - #amount: amount, - #args: args, - }, - ), - returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); - @override - _i22.Future<_i16.Address> nextUnusedSendAddressFrom({ - required _i17.PaymentCode? pCode, - required bool? isSegwit, - required _i15.BIP32? privateKeyNode, - int? startIndex = 0, - }) => - (super.noSuchMethod( - Invocation.method( - #nextUnusedSendAddressFrom, - [], - { - #pCode: pCode, - #isSegwit: isSegwit, - #privateKeyNode: privateKeyNode, - #startIndex: startIndex, - }, - ), - returnValue: _i22.Future<_i16.Address>.value(_FakeAddress_14( - this, - Invocation.method( - #nextUnusedSendAddressFrom, - [], - { - #pCode: pCode, - #isSegwit: isSegwit, - #privateKeyNode: privateKeyNode, - #startIndex: startIndex, - }, - ), - )), - ) as _i22.Future<_i16.Address>); - @override - _i22.Future<_i18.TxData> prepareNotificationTx({ - required int? selectedTxFeeRate, - required String? targetPaymentCodeString, - int? additionalOutputs = 0, - List<_i16.UTXO>? utxos, - }) => - (super.noSuchMethod( - Invocation.method( - #prepareNotificationTx, - [], - { - #selectedTxFeeRate: selectedTxFeeRate, - #targetPaymentCodeString: targetPaymentCodeString, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - ), - returnValue: _i22.Future<_i18.TxData>.value(_FakeTxData_16( - this, - Invocation.method( - #prepareNotificationTx, - [], - { - #selectedTxFeeRate: selectedTxFeeRate, - #targetPaymentCodeString: targetPaymentCodeString, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - ), - )), - ) as _i22.Future<_i18.TxData>); - @override - _i22.Future broadcastNotificationTx( - {required Map? preparedTx}) => - (super.noSuchMethod( - Invocation.method( - #broadcastNotificationTx, - [], - {#preparedTx: preparedTx}, - ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - _i22.Future hasConnected(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #hasConnected, - [paymentCodeString], - ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); - @override - _i22.Future<_i17.PaymentCode?> unBlindedPaymentCodeFromTransaction( - {required _i16.Transaction? transaction}) => - (super.noSuchMethod( - Invocation.method( - #unBlindedPaymentCodeFromTransaction, - [], - {#transaction: transaction}, - ), - returnValue: _i22.Future<_i17.PaymentCode?>.value(), - ) as _i22.Future<_i17.PaymentCode?>); - @override - _i22.Future<_i17.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( - {required _i16.Transaction? transaction}) => - (super.noSuchMethod( - Invocation.method( - #unBlindedPaymentCodeFromTransactionBad, - [], - {#transaction: transaction}, - ), - returnValue: _i22.Future<_i17.PaymentCode?>.value(), - ) as _i22.Future<_i17.PaymentCode?>); - @override - _i22.Future> - getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( - Invocation.method( - #getAllPaymentCodesFromNotificationTransactions, - [], - ), - returnValue: - _i22.Future>.value(<_i17.PaymentCode>[]), - ) as _i22.Future>); - @override - _i22.Future checkForNotificationTransactionsTo( - Set? otherCodeStrings) => - (super.noSuchMethod( - Invocation.method( - #checkForNotificationTransactionsTo, - [otherCodeStrings], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future restoreAllHistory({ - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - required Set? paymentCodeStrings, - }) => - (super.noSuchMethod( - Invocation.method( - #restoreAllHistory, - [], - { - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - #paymentCodeStrings: paymentCodeStrings, - }, - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future restoreHistoryWith({ - required _i17.PaymentCode? other, - required bool? checkSegwitAsWell, - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - }) => - (super.noSuchMethod( - Invocation.method( - #restoreHistoryWith, - [], - { - #other: other, - #checkSegwitAsWell: checkSegwitAsWell, - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - }, - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future<_i16.Address> getMyNotificationAddress() => (super.noSuchMethod( - Invocation.method( - #getMyNotificationAddress, - [], - ), - returnValue: _i22.Future<_i16.Address>.value(_FakeAddress_14( - this, - Invocation.method( - #getMyNotificationAddress, - [], - ), - )), - ) as _i22.Future<_i16.Address>); - @override - _i22.Future> lookupKey(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #lookupKey, - [paymentCodeString], - ), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); - @override - _i22.Future paymentCodeStringByKey(String? key) => - (super.noSuchMethod( - Invocation.method( - #paymentCodeStringByKey, - [key], - ), - returnValue: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future storeCode(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #storeCode, - [paymentCodeString], - ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - void initCoinControlInterface({ - required String? walletId, - required String? walletName, - required _i21.Coin? coin, - required _i3.MainDB? db, - required _i22.Future Function()? getChainHeight, - required _i22.Future Function(_i10.Balance)? refreshedBalanceCallback, - }) => - super.noSuchMethod( - Invocation.method( - #initCoinControlInterface, - [], - { - #walletId: walletId, - #walletName: walletName, - #coin: coin, - #db: db, - #getChainHeight: getChainHeight, - #refreshedBalanceCallback: refreshedBalanceCallback, - }, - ), - returnValueForMissingStub: null, - ); - @override - _i22.Future refreshBalance({bool? notify = false}) => - (super.noSuchMethod( - Invocation.method( - #refreshBalance, - [], - {#notify: notify}, - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i9.Future.value(), + returnValueForMissingStub: _i9.Future.value(), + ) as _i9.Future); } /// A class which mocks [LocaleService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLocaleService extends _i1.Mock implements _i29.LocaleService { +class MockLocaleService extends _i1.Mock implements _i12.LocaleService { MockLocaleService() { _i1.throwOnMissingStub(this); } @@ -1699,17 +227,17 @@ class MockLocaleService extends _i1.Mock implements _i29.LocaleService { returnValue: false, ) as bool); @override - _i22.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( + _i9.Future loadLocale({bool? notify = true}) => (super.noSuchMethod( Invocation.method( #loadLocale, [], {#notify: notify}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i9.Future.value(), + returnValueForMissingStub: _i9.Future.value(), + ) as _i9.Future); @override - void addListener(_i30.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i13.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1717,7 +245,7 @@ class MockLocaleService extends _i1.Mock implements _i29.LocaleService { returnValueForMissingStub: null, ); @override - void removeListener(_i30.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i13.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1745,21 +273,21 @@ class MockLocaleService extends _i1.Mock implements _i29.LocaleService { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i31.ThemeService { +class MockThemeService extends _i1.Mock implements _i14.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @override - _i19.HTTP get client => (super.noSuchMethod( + _i6.HTTP get client => (super.noSuchMethod( Invocation.getter(#client), - returnValue: _FakeHTTP_17( + returnValue: _FakeHTTP_3( this, Invocation.getter(#client), ), - ) as _i19.HTTP); + ) as _i6.HTTP); @override - set client(_i19.HTTP? _client) => super.noSuchMethod( + set client(_i6.HTTP? _client) => super.noSuchMethod( Invocation.setter( #client, _client, @@ -1775,10 +303,10 @@ class MockThemeService extends _i1.Mock implements _i31.ThemeService { ), ) as _i3.MainDB); @override - List<_i32.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i15.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i32.StackTheme>[], - ) as List<_i32.StackTheme>); + returnValue: <_i15.StackTheme>[], + ) as List<_i15.StackTheme>); @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -1788,71 +316,71 @@ class MockThemeService extends _i1.Mock implements _i31.ThemeService { returnValueForMissingStub: null, ); @override - _i22.Future install({required _i28.Uint8List? themeArchiveData}) => + _i9.Future install({required _i16.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i9.Future.value(), + returnValueForMissingStub: _i9.Future.value(), + ) as _i9.Future); @override - _i22.Future remove({required String? themeId}) => (super.noSuchMethod( + _i9.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i9.Future.value(), + returnValueForMissingStub: _i9.Future.value(), + ) as _i9.Future); @override - _i22.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i9.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i9.Future.value(), + returnValueForMissingStub: _i9.Future.value(), + ) as _i9.Future); @override - _i22.Future verifyInstalled({required String? themeId}) => + _i9.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i9.Future.value(false), + ) as _i9.Future); @override - _i22.Future> fetchThemes() => + _i9.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i22.Future>.value( - <_i31.StackThemeMetaData>[]), - ) as _i22.Future>); + returnValue: _i9.Future>.value( + <_i14.StackThemeMetaData>[]), + ) as _i9.Future>); @override - _i22.Future<_i28.Uint8List> fetchTheme( - {required _i31.StackThemeMetaData? themeMetaData}) => + _i9.Future<_i16.Uint8List> fetchTheme( + {required _i14.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i22.Future<_i28.Uint8List>.value(_i28.Uint8List(0)), - ) as _i22.Future<_i28.Uint8List>); + returnValue: _i9.Future<_i16.Uint8List>.value(_i16.Uint8List(0)), + ) as _i9.Future<_i16.Uint8List>); @override - _i32.StackTheme? getTheme({required String? themeId}) => + _i15.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i32.StackTheme?); + )) as _i15.StackTheme?); } diff --git a/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.dart b/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.dart index 52c7eb67e..8821724ec 100644 --- a/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.dart +++ b/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.dart @@ -1,5 +1,4 @@ import 'package:mockito/annotations.dart'; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart'; import 'package:stackwallet/services/coins/coin_service.dart'; import 'package:stackwallet/services/node_service.dart'; import 'package:stackwallet/services/wallets.dart'; @@ -8,7 +7,6 @@ import 'package:stackwallet/services/wallets_service.dart'; @GenerateMocks([ Wallets, WalletsService, - BitcoinWallet ], customMocks: [ MockSpec(returnNullOnMissingStub: true), MockSpec(returnNullOnMissingStub: true), diff --git a/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart b/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart index 260774e79..a1c4f3b70 100644 --- a/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart +++ b/test/widget_tests/wallet_info_row/sub_widgets/wallet_info_row_balance_future_test.mocks.dart @@ -3,42 +3,27 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i22; -import 'dart:typed_data' as _i29; -import 'dart:ui' as _i25; +import 'dart:async' as _i12; +import 'dart:ui' as _i15; -import 'package:bip32/bip32.dart' as _i15; -import 'package:bip47/bip47.dart' as _i17; -import 'package:bitcoindart/bitcoindart.dart' as _i11; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; -import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i9; -import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i8; -import 'package:stackwallet/models/balance.dart' as _i10; -import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart' - as _i13; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i16; -import 'package:stackwallet/models/node_model.dart' as _i30; +import 'package:stackwallet/models/balance.dart' as _i8; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i18; +import 'package:stackwallet/models/node_model.dart' as _i16; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i7; -import 'package:stackwallet/models/signing_data.dart' as _i28; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i26; -import 'package:stackwallet/services/coins/coin_service.dart' as _i31; +import 'package:stackwallet/services/coins/coin_service.dart' as _i17; import 'package:stackwallet/services/node_service.dart' as _i2; -import 'package:stackwallet/services/transaction_notification_tracker.dart' - as _i6; -import 'package:stackwallet/services/wallets.dart' as _i20; -import 'package:stackwallet/services/wallets_service.dart' as _i24; -import 'package:stackwallet/utilities/amount/amount.dart' as _i12; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i21; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i27; +import 'package:stackwallet/services/wallets.dart' as _i10; +import 'package:stackwallet/services/wallets_service.dart' as _i14; +import 'package:stackwallet/utilities/amount/amount.dart' as _i9; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i11; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i19; -import 'package:stackwallet/utilities/prefs.dart' as _i23; + as _i6; +import 'package:stackwallet/utilities/prefs.dart' as _i13; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; -import 'package:stackwallet/wallets/models/tx_data.dart' as _i18; import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; -import 'package:tuple/tuple.dart' as _i14; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -82,9 +67,9 @@ class _FakeWallet_2 extends _i1.SmartFake ); } -class _FakeTransactionNotificationTracker_3 extends _i1.SmartFake - implements _i6.TransactionNotificationTracker { - _FakeTransactionNotificationTracker_3( +class _FakeSecureStorageInterface_3 extends _i1.SmartFake + implements _i6.SecureStorageInterface { + _FakeSecureStorageInterface_3( Object parent, Invocation parentInvocation, ) : super( @@ -103,8 +88,8 @@ class _FakeFeeObject_4 extends _i1.SmartFake implements _i7.FeeObject { ); } -class _FakeElectrumX_5 extends _i1.SmartFake implements _i8.ElectrumX { - _FakeElectrumX_5( +class _FakeBalance_5 extends _i1.SmartFake implements _i8.Balance { + _FakeBalance_5( Object parent, Invocation parentInvocation, ) : super( @@ -113,122 +98,8 @@ class _FakeElectrumX_5 extends _i1.SmartFake implements _i8.ElectrumX { ); } -class _FakeCachedElectrumX_6 extends _i1.SmartFake - implements _i9.CachedElectrumX { - _FakeCachedElectrumX_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeBalance_7 extends _i1.SmartFake implements _i10.Balance { - _FakeBalance_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeNetworkType_8 extends _i1.SmartFake implements _i11.NetworkType { - _FakeNetworkType_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeElectrumXNode_9 extends _i1.SmartFake implements _i8.ElectrumXNode { - _FakeElectrumXNode_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAmount_10 extends _i1.SmartFake implements _i12.Amount { - _FakeAmount_10( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTransactionV2_11 extends _i1.SmartFake - implements _i13.TransactionV2 { - _FakeTransactionV2_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTuple2_12 extends _i1.SmartFake - implements _i14.Tuple2 { - _FakeTuple2_12( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeBIP32_13 extends _i1.SmartFake implements _i15.BIP32 { - _FakeBIP32_13( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAddress_14 extends _i1.SmartFake implements _i16.Address { - _FakeAddress_14( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakePaymentCode_15 extends _i1.SmartFake implements _i17.PaymentCode { - _FakePaymentCode_15( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTxData_16 extends _i1.SmartFake implements _i18.TxData { - _FakeTxData_16( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSecureStorageInterface_17 extends _i1.SmartFake - implements _i19.SecureStorageInterface { - _FakeSecureStorageInterface_17( +class _FakeAmount_6 extends _i1.SmartFake implements _i9.Amount { + _FakeAmount_6( Object parent, Invocation parentInvocation, ) : super( @@ -240,7 +111,7 @@ class _FakeSecureStorageInterface_17 extends _i1.SmartFake /// A class which mocks [Wallets]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallets extends _i1.Mock implements _i20.Wallets { +class MockWallets extends _i1.Mock implements _i10.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -288,16 +159,16 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[], ) as List<_i5.Wallet<_i4.CryptoCurrency>>); @override - List<({_i21.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})> + List<({_i11.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})> get walletsByCoin => (super.noSuchMethod( Invocation.getter(#walletsByCoin), returnValue: <({ - _i21.Coin coin, + _i11.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets })>[], ) as List< ({ - _i21.Coin coin, + _i11.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets })>); @override @@ -324,17 +195,24 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { returnValueForMissingStub: null, ); @override - _i22.Future deleteWallet(String? walletId) => (super.noSuchMethod( + _i12.Future deleteWallet( + String? walletId, + _i6.SecureStorageInterface? secureStorage, + ) => + (super.noSuchMethod( Invocation.method( #deleteWallet, - [walletId], + [ + walletId, + secureStorage, + ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future load( - _i23.Prefs? prefs, + _i12.Future load( + _i13.Prefs? prefs, _i3.MainDB? mainDB, ) => (super.noSuchMethod( @@ -345,12 +223,12 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { mainDB, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future loadAfterStackRestore( - _i23.Prefs? prefs, + _i12.Future loadAfterStackRestore( + _i13.Prefs? prefs, List<_i5.Wallet<_i4.CryptoCurrency>>? wallets, ) => (super.noSuchMethod( @@ -361,33 +239,33 @@ class MockWallets extends _i1.Mock implements _i20.Wallets { wallets, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); } /// A class which mocks [WalletsService]. /// /// See the documentation for Mockito's code generation for more information. -class MockWalletsService extends _i1.Mock implements _i24.WalletsService { +class MockWalletsService extends _i1.Mock implements _i14.WalletsService { MockWalletsService() { _i1.throwOnMissingStub(this); } @override - _i22.Future> get walletNames => + _i12.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i22.Future>.value( - {}), - ) as _i22.Future>); + returnValue: _i12.Future>.value( + {}), + ) as _i12.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i22.Future renameWallet({ + _i12.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -402,21 +280,21 @@ class MockWalletsService extends _i1.Mock implements _i24.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i12.Future.value(false), + ) as _i12.Future); @override - Map fetchWalletsData() => (super.noSuchMethod( + Map fetchWalletsData() => (super.noSuchMethod( Invocation.method( #fetchWalletsData, [], ), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override - _i22.Future addExistingStackWallet({ + _i12.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i21.Coin? coin, + required _i11.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -430,13 +308,13 @@ class MockWalletsService extends _i1.Mock implements _i24.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future addNewWallet({ + _i12.Future addNewWallet({ required String? name, - required _i21.Coin? coin, + required _i11.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -449,46 +327,46 @@ class MockWalletsService extends _i1.Mock implements _i24.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i12.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i12.Future>.value([]), + ) as _i12.Future>); @override - _i22.Future saveFavoriteWalletIds(List? walletIds) => + _i12.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i12.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i12.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future moveFavorite({ + _i12.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -501,48 +379,48 @@ class MockWalletsService extends _i1.Mock implements _i24.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i12.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i12.Future.value(false), + ) as _i12.Future); @override - _i22.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i12.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future isMnemonicVerified({required String? walletId}) => + _i12.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i12.Future.value(false), + ) as _i12.Future); @override - _i22.Future setMnemonicVerified({required String? walletId}) => + _i12.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future deleteWallet( + _i12.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -554,20 +432,20 @@ class MockWalletsService extends _i1.Mock implements _i24.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i12.Future.value(0), + ) as _i12.Future); @override - _i22.Future refreshWallets(bool? shouldNotifyListeners) => + _i12.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -575,7 +453,7 @@ class MockWalletsService extends _i1.Mock implements _i24.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -600,1360 +478,46 @@ class MockWalletsService extends _i1.Mock implements _i24.WalletsService { ); } -/// A class which mocks [BitcoinWallet]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { - MockBitcoinWallet() { - _i1.throwOnMissingStub(this); - } - - @override - set timer(_i22.Timer? _timer) => super.noSuchMethod( - Invocation.setter( - #timer, - _timer, - ), - returnValueForMissingStub: null, - ); - @override - _i6.TransactionNotificationTracker get txTracker => (super.noSuchMethod( - Invocation.getter(#txTracker), - returnValue: _FakeTransactionNotificationTracker_3( - this, - Invocation.getter(#txTracker), - ), - ) as _i6.TransactionNotificationTracker); - @override - set txTracker(_i6.TransactionNotificationTracker? _txTracker) => - super.noSuchMethod( - Invocation.setter( - #txTracker, - _txTracker, - ), - returnValueForMissingStub: null, - ); - @override - bool get longMutex => (super.noSuchMethod( - Invocation.getter(#longMutex), - returnValue: false, - ) as bool); - @override - set longMutex(bool? _longMutex) => super.noSuchMethod( - Invocation.setter( - #longMutex, - _longMutex, - ), - returnValueForMissingStub: null, - ); - @override - bool get refreshMutex => (super.noSuchMethod( - Invocation.getter(#refreshMutex), - returnValue: false, - ) as bool); - @override - set refreshMutex(bool? _refreshMutex) => super.noSuchMethod( - Invocation.setter( - #refreshMutex, - _refreshMutex, - ), - returnValueForMissingStub: null, - ); - @override - bool get isActive => (super.noSuchMethod( - Invocation.getter(#isActive), - returnValue: false, - ) as bool); - @override - set isActive(bool? _isActive) => super.noSuchMethod( - Invocation.setter( - #isActive, - _isActive, - ), - returnValueForMissingStub: null, - ); - @override - set isFavorite(bool? markFavorite) => super.noSuchMethod( - Invocation.setter( - #isFavorite, - markFavorite, - ), - returnValueForMissingStub: null, - ); - @override - bool get isFavorite => (super.noSuchMethod( - Invocation.getter(#isFavorite), - returnValue: false, - ) as bool); - @override - _i21.Coin get coin => (super.noSuchMethod( - Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); - @override - _i22.Future> get utxos => (super.noSuchMethod( - Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i16.UTXO>[]), - ) as _i22.Future>); - @override - _i22.Future> get transactions => (super.noSuchMethod( - Invocation.getter(#transactions), - returnValue: - _i22.Future>.value(<_i16.Transaction>[]), - ) as _i22.Future>); - @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( - Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - _i22.Future get currentChangeAddress => (super.noSuchMethod( - Invocation.getter(#currentChangeAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - _i22.Future get currentChangeAddressP2PKH => (super.noSuchMethod( - Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - bool get hasCalledExit => (super.noSuchMethod( - Invocation.getter(#hasCalledExit), - returnValue: false, - ) as bool); - @override - _i22.Future<_i7.FeeObject> get fees => (super.noSuchMethod( - Invocation.getter(#fees), - returnValue: _i22.Future<_i7.FeeObject>.value(_FakeFeeObject_4( - this, - Invocation.getter(#fees), - )), - ) as _i22.Future<_i7.FeeObject>); - @override - _i22.Future get maxFee => (super.noSuchMethod( - Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); - @override - _i22.Future> get mnemonic => (super.noSuchMethod( - Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); - @override - _i22.Future get mnemonicString => (super.noSuchMethod( - Invocation.getter(#mnemonicString), - returnValue: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future get mnemonicPassphrase => (super.noSuchMethod( - Invocation.getter(#mnemonicPassphrase), - returnValue: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future get chainHeight => (super.noSuchMethod( - Invocation.getter(#chainHeight), - returnValue: _i22.Future.value(0), - ) as _i22.Future); - @override - int get storedChainHeight => (super.noSuchMethod( - Invocation.getter(#storedChainHeight), - returnValue: 0, - ) as int); - @override - bool get shouldAutoSync => (super.noSuchMethod( - Invocation.getter(#shouldAutoSync), - returnValue: false, - ) as bool); - @override - set shouldAutoSync(bool? shouldAutoSync) => super.noSuchMethod( - Invocation.setter( - #shouldAutoSync, - shouldAutoSync, - ), - returnValueForMissingStub: null, - ); - @override - bool get isRefreshing => (super.noSuchMethod( - Invocation.getter(#isRefreshing), - returnValue: false, - ) as bool); - @override - bool get isConnected => (super.noSuchMethod( - Invocation.getter(#isConnected), - returnValue: false, - ) as bool); - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - String get walletName => (super.noSuchMethod( - Invocation.getter(#walletName), - returnValue: '', - ) as String); - @override - set walletName(String? newName) => super.noSuchMethod( - Invocation.setter( - #walletName, - newName, - ), - returnValueForMissingStub: null, - ); - @override - _i8.ElectrumX get electrumXClient => (super.noSuchMethod( - Invocation.getter(#electrumXClient), - returnValue: _FakeElectrumX_5( - this, - Invocation.getter(#electrumXClient), - ), - ) as _i8.ElectrumX); - @override - _i9.CachedElectrumX get cachedElectrumXClient => (super.noSuchMethod( - Invocation.getter(#cachedElectrumXClient), - returnValue: _FakeCachedElectrumX_6( - this, - Invocation.getter(#cachedElectrumXClient), - ), - ) as _i9.CachedElectrumX); - @override - _i10.Balance get balance => (super.noSuchMethod( - Invocation.getter(#balance), - returnValue: _FakeBalance_7( - this, - Invocation.getter(#balance), - ), - ) as _i10.Balance); - @override - _i22.Future get xpub => (super.noSuchMethod( - Invocation.getter(#xpub), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => - super.noSuchMethod( - Invocation.setter( - #onIsActiveWalletChanged, - _onIsActiveWalletChanged, - ), - returnValueForMissingStub: null, - ); - @override - _i3.MainDB get db => (super.noSuchMethod( - Invocation.getter(#db), - returnValue: _FakeMainDB_1( - this, - Invocation.getter(#db), - ), - ) as _i3.MainDB); - @override - _i11.NetworkType get networkType => (super.noSuchMethod( - Invocation.getter(#networkType), - returnValue: _FakeNetworkType_8( - this, - Invocation.getter(#networkType), - ), - ) as _i11.NetworkType); - @override - _i22.Future exit() => (super.noSuchMethod( - Invocation.method( - #exit, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i27.DerivePathType addressType({required String? address}) => - (super.noSuchMethod( - Invocation.method( - #addressType, - [], - {#address: address}, - ), - returnValue: _i27.DerivePathType.bip44, - ) as _i27.DerivePathType); - @override - _i22.Future recoverFromMnemonic({ - required String? mnemonic, - String? mnemonicPassphrase, - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - required int? height, - }) => - (super.noSuchMethod( - Invocation.method( - #recoverFromMnemonic, - [], - { - #mnemonic: mnemonic, - #mnemonicPassphrase: mnemonicPassphrase, - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - #height: height, - }, - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future getTransactionCacheEarly(List? allAddresses) => - (super.noSuchMethod( - Invocation.method( - #getTransactionCacheEarly, - [allAddresses], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future refreshIfThereIsNewData() => (super.noSuchMethod( - Invocation.method( - #refreshIfThereIsNewData, - [], - ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); - @override - _i22.Future getAllTxsToWatch() => (super.noSuchMethod( - Invocation.method( - #getAllTxsToWatch, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future refresh() => (super.noSuchMethod( - Invocation.method( - #refresh, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future> prepareSend({ - required String? address, - required _i12.Amount? amount, - Map? args, - }) => - (super.noSuchMethod( - Invocation.method( - #prepareSend, - [], - { - #address: address, - #amount: amount, - #args: args, - }, - ), - returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); - @override - _i22.Future confirmSend({required Map? txData}) => - (super.noSuchMethod( - Invocation.method( - #confirmSend, - [], - {#txData: txData}, - ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( - Invocation.method( - #testNetworkConnection, - [], - ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); - @override - void startNetworkAlivePinging() => super.noSuchMethod( - Invocation.method( - #startNetworkAlivePinging, - [], - ), - returnValueForMissingStub: null, - ); - @override - void stopNetworkAlivePinging() => super.noSuchMethod( - Invocation.method( - #stopNetworkAlivePinging, - [], - ), - returnValueForMissingStub: null, - ); - @override - _i22.Future initializeNew( - ({String mnemonicPassphrase, int wordCount})? data) => - (super.noSuchMethod( - Invocation.method( - #initializeNew, - [data], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future initializeExisting() => (super.noSuchMethod( - Invocation.method( - #initializeExisting, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future updateSentCachedTxData(Map? txData) => - (super.noSuchMethod( - Invocation.method( - #updateSentCachedTxData, - [txData], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - bool validateAddress(String? address) => (super.noSuchMethod( - Invocation.method( - #validateAddress, - [address], - ), - returnValue: false, - ) as bool); - @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( - Invocation.method( - #updateNode, - [shouldRefresh], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future<_i8.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( - Invocation.method( - #getCurrentNode, - [], - ), - returnValue: _i22.Future<_i8.ElectrumXNode>.value(_FakeElectrumXNode_9( - this, - Invocation.method( - #getCurrentNode, - [], - ), - )), - ) as _i22.Future<_i8.ElectrumXNode>); - @override - _i22.Future>> fastFetch( - List? allTxHashes) => - (super.noSuchMethod( - Invocation.method( - #fastFetch, - [allTxHashes], - ), - returnValue: _i22.Future>>.value( - >[]), - ) as _i22.Future>>); - @override - _i22.Future getTxCount({required String? address}) => - (super.noSuchMethod( - Invocation.method( - #getTxCount, - [], - {#address: address}, - ), - returnValue: _i22.Future.value(0), - ) as _i22.Future); - @override - _i22.Future checkCurrentReceivingAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkCurrentReceivingAddressesForTransactions, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future checkCurrentChangeAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkCurrentChangeAddressesForTransactions, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - int estimateTxFee({ - required int? vSize, - required int? feeRatePerKB, - }) => - (super.noSuchMethod( - Invocation.method( - #estimateTxFee, - [], - { - #vSize: vSize, - #feeRatePerKB: feeRatePerKB, - }, - ), - returnValue: 0, - ) as int); - @override - dynamic coinSelection({ - required int? satoshiAmountToSend, - required int? selectedTxFeeRate, - required String? recipientAddress, - required bool? coinControl, - required bool? isSendAll, - int? satsPerVByte, - int? additionalOutputs = 0, - List<_i16.UTXO>? utxos, - }) => - super.noSuchMethod(Invocation.method( - #coinSelection, - [], - { - #satoshiAmountToSend: satoshiAmountToSend, - #selectedTxFeeRate: selectedTxFeeRate, - #recipientAddress: recipientAddress, - #coinControl: coinControl, - #isSendAll: isSendAll, - #satsPerVByte: satsPerVByte, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - )); - @override - _i22.Future> fetchBuildTxData( - List<_i16.UTXO>? utxosToUse) => - (super.noSuchMethod( - Invocation.method( - #fetchBuildTxData, - [utxosToUse], - ), - returnValue: - _i22.Future>.value(<_i28.SigningData>[]), - ) as _i22.Future>); - @override - _i22.Future> buildTransaction({ - required List<_i28.SigningData>? utxoSigningData, - required List? recipients, - required List? satoshiAmounts, - }) => - (super.noSuchMethod( - Invocation.method( - #buildTransaction, - [], - { - #utxoSigningData: utxoSigningData, - #recipients: recipients, - #satoshiAmounts: satoshiAmounts, - }, - ), - returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); - @override - _i22.Future fullRescan( - int? maxUnusedAddressGap, - int? maxNumberOfIndexesToCheck, - ) => - (super.noSuchMethod( - Invocation.method( - #fullRescan, - [ - maxUnusedAddressGap, - maxNumberOfIndexesToCheck, - ], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future<_i12.Amount> estimateFeeFor( - _i12.Amount? amount, - int? feeRate, - ) => - (super.noSuchMethod( - Invocation.method( - #estimateFeeFor, - [ - amount, - feeRate, - ], - ), - returnValue: _i22.Future<_i12.Amount>.value(_FakeAmount_10( - this, - Invocation.method( - #estimateFeeFor, - [ - amount, - feeRate, - ], - ), - )), - ) as _i22.Future<_i12.Amount>); - @override - _i12.Amount roughFeeEstimate( - int? inputCount, - int? outputCount, - int? feeRatePerKB, - ) => - (super.noSuchMethod( - Invocation.method( - #roughFeeEstimate, - [ - inputCount, - outputCount, - feeRatePerKB, - ], - ), - returnValue: _FakeAmount_10( - this, - Invocation.method( - #roughFeeEstimate, - [ - inputCount, - outputCount, - feeRatePerKB, - ], - ), - ), - ) as _i12.Amount); - @override - _i22.Future<_i12.Amount> sweepAllEstimate(int? feeRate) => - (super.noSuchMethod( - Invocation.method( - #sweepAllEstimate, - [feeRate], - ), - returnValue: _i22.Future<_i12.Amount>.value(_FakeAmount_10( - this, - Invocation.method( - #sweepAllEstimate, - [feeRate], - ), - )), - ) as _i22.Future<_i12.Amount>); - @override - _i22.Future generateNewAddress() => (super.noSuchMethod( - Invocation.method( - #generateNewAddress, - [], - ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); - @override - void initCache( - String? walletId, - _i21.Coin? coin, - ) => - super.noSuchMethod( - Invocation.method( - #initCache, - [ - walletId, - coin, - ], - ), - returnValueForMissingStub: null, - ); - @override - _i22.Future updateCachedId(String? id) => (super.noSuchMethod( - Invocation.method( - #updateCachedId, - [id], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - int getCachedChainHeight() => (super.noSuchMethod( - Invocation.method( - #getCachedChainHeight, - [], - ), - returnValue: 0, - ) as int); - @override - _i22.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( - Invocation.method( - #updateCachedChainHeight, - [height], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - bool getCachedIsFavorite() => (super.noSuchMethod( - Invocation.method( - #getCachedIsFavorite, - [], - ), - returnValue: false, - ) as bool); - @override - _i22.Future updateCachedIsFavorite(bool? isFavorite) => - (super.noSuchMethod( - Invocation.method( - #updateCachedIsFavorite, - [isFavorite], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i10.Balance getCachedBalance() => (super.noSuchMethod( - Invocation.method( - #getCachedBalance, - [], - ), - returnValue: _FakeBalance_7( - this, - Invocation.method( - #getCachedBalance, - [], - ), - ), - ) as _i10.Balance); - @override - _i22.Future updateCachedBalance(_i10.Balance? balance) => - (super.noSuchMethod( - Invocation.method( - #updateCachedBalance, - [balance], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i10.Balance getCachedBalanceSecondary() => (super.noSuchMethod( - Invocation.method( - #getCachedBalanceSecondary, - [], - ), - returnValue: _FakeBalance_7( - this, - Invocation.method( - #getCachedBalanceSecondary, - [], - ), - ), - ) as _i10.Balance); - @override - _i22.Future updateCachedBalanceSecondary(_i10.Balance? balance) => - (super.noSuchMethod( - Invocation.method( - #updateCachedBalanceSecondary, - [balance], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - List getWalletTokenContractAddresses() => (super.noSuchMethod( - Invocation.method( - #getWalletTokenContractAddresses, - [], - ), - returnValue: [], - ) as List); - @override - _i22.Future updateWalletTokenContractAddresses( - List? contractAddresses) => - (super.noSuchMethod( - Invocation.method( - #updateWalletTokenContractAddresses, - [contractAddresses], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - void initWalletDB({_i3.MainDB? mockableOverride}) => super.noSuchMethod( - Invocation.method( - #initWalletDB, - [], - {#mockableOverride: mockableOverride}, - ), - returnValueForMissingStub: null, - ); - @override - _i22.Future<_i13.TransactionV2> getTransaction( - String? txHash, - _i21.Coin? coin, - String? walletId, - _i9.CachedElectrumX? cachedElectrumX, [ - String? debugTitle, - ]) => - (super.noSuchMethod( - Invocation.method( - #getTransaction, - [ - txHash, - coin, - walletId, - cachedElectrumX, - debugTitle, - ], - ), - returnValue: - _i22.Future<_i13.TransactionV2>.value(_FakeTransactionV2_11( - this, - Invocation.method( - #getTransaction, - [ - txHash, - coin, - walletId, - cachedElectrumX, - debugTitle, - ], - ), - )), - ) as _i22.Future<_i13.TransactionV2>); - @override - _i22.Future<_i14.Tuple2<_i16.Transaction, _i16.Address>> parseTransaction( - Map? txData, - dynamic electrumxClient, - List<_i16.Address>? myAddresses, - _i21.Coin? coin, - int? minConfirms, - String? walletId, - ) => - (super.noSuchMethod( - Invocation.method( - #parseTransaction, - [ - txData, - electrumxClient, - myAddresses, - coin, - minConfirms, - walletId, - ], - ), - returnValue: - _i22.Future<_i14.Tuple2<_i16.Transaction, _i16.Address>>.value( - _FakeTuple2_12<_i16.Transaction, _i16.Address>( - this, - Invocation.method( - #parseTransaction, - [ - txData, - electrumxClient, - myAddresses, - coin, - minConfirms, - walletId, - ], - ), - )), - ) as _i22.Future<_i14.Tuple2<_i16.Transaction, _i16.Address>>); - @override - void initPaynymWalletInterface({ - required String? walletId, - required String? walletName, - required _i11.NetworkType? network, - required _i21.Coin? coin, - required _i3.MainDB? db, - required _i8.ElectrumX? electrumXClient, - required _i19.SecureStorageInterface? secureStorage, - required int? dustLimit, - required int? dustLimitP2PKH, - required int? minConfirms, - required _i22.Future Function()? getMnemonicString, - required _i22.Future Function()? getMnemonicPassphrase, - required _i22.Future Function()? getChainHeight, - required _i22.Future Function()? getCurrentChangeAddress, - required int Function({ - required int feeRatePerKB, - required int vSize, - })? estimateTxFee, - required _i22.Future> Function({ - required String address, - required _i12.Amount amount, - Map? args, - })? prepareSend, - required _i22.Future Function({required String address})? getTxCount, - required _i22.Future> Function(List<_i16.UTXO>)? - fetchBuildTxData, - required _i22.Future Function()? refresh, - required _i22.Future Function()? checkChangeAddressForTransactions, - }) => - super.noSuchMethod( - Invocation.method( - #initPaynymWalletInterface, - [], - { - #walletId: walletId, - #walletName: walletName, - #network: network, - #coin: coin, - #db: db, - #electrumXClient: electrumXClient, - #secureStorage: secureStorage, - #dustLimit: dustLimit, - #dustLimitP2PKH: dustLimitP2PKH, - #minConfirms: minConfirms, - #getMnemonicString: getMnemonicString, - #getMnemonicPassphrase: getMnemonicPassphrase, - #getChainHeight: getChainHeight, - #getCurrentChangeAddress: getCurrentChangeAddress, - #estimateTxFee: estimateTxFee, - #prepareSend: prepareSend, - #getTxCount: getTxCount, - #fetchBuildTxData: fetchBuildTxData, - #refresh: refresh, - #checkChangeAddressForTransactions: - checkChangeAddressForTransactions, - }, - ), - returnValueForMissingStub: null, - ); - @override - _i22.Future<_i15.BIP32> getBip47BaseNode() => (super.noSuchMethod( - Invocation.method( - #getBip47BaseNode, - [], - ), - returnValue: _i22.Future<_i15.BIP32>.value(_FakeBIP32_13( - this, - Invocation.method( - #getBip47BaseNode, - [], - ), - )), - ) as _i22.Future<_i15.BIP32>); - @override - _i22.Future<_i29.Uint8List> getPrivateKeyForPaynymReceivingAddress({ - required String? paymentCodeString, - required int? index, - }) => - (super.noSuchMethod( - Invocation.method( - #getPrivateKeyForPaynymReceivingAddress, - [], - { - #paymentCodeString: paymentCodeString, - #index: index, - }, - ), - returnValue: _i22.Future<_i29.Uint8List>.value(_i29.Uint8List(0)), - ) as _i22.Future<_i29.Uint8List>); - @override - _i22.Future<_i16.Address> currentReceivingPaynymAddress({ - required _i17.PaymentCode? sender, - required bool? isSegwit, - }) => - (super.noSuchMethod( - Invocation.method( - #currentReceivingPaynymAddress, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - returnValue: _i22.Future<_i16.Address>.value(_FakeAddress_14( - this, - Invocation.method( - #currentReceivingPaynymAddress, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - )), - ) as _i22.Future<_i16.Address>); - @override - _i22.Future checkCurrentPaynymReceivingAddressForTransactions({ - required _i17.PaymentCode? sender, - required bool? isSegwit, - }) => - (super.noSuchMethod( - Invocation.method( - #checkCurrentPaynymReceivingAddressForTransactions, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkAllCurrentReceivingPaynymAddressesForTransactions, - [], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future<_i15.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( - Invocation.method( - #deriveNotificationBip32Node, - [], - ), - returnValue: _i22.Future<_i15.BIP32>.value(_FakeBIP32_13( - this, - Invocation.method( - #deriveNotificationBip32Node, - [], - ), - )), - ) as _i22.Future<_i15.BIP32>); - @override - _i22.Future<_i17.PaymentCode> getPaymentCode({required bool? isSegwit}) => - (super.noSuchMethod( - Invocation.method( - #getPaymentCode, - [], - {#isSegwit: isSegwit}, - ), - returnValue: _i22.Future<_i17.PaymentCode>.value(_FakePaymentCode_15( - this, - Invocation.method( - #getPaymentCode, - [], - {#isSegwit: isSegwit}, - ), - )), - ) as _i22.Future<_i17.PaymentCode>); - @override - _i22.Future<_i29.Uint8List> signWithNotificationKey(_i29.Uint8List? data) => - (super.noSuchMethod( - Invocation.method( - #signWithNotificationKey, - [data], - ), - returnValue: _i22.Future<_i29.Uint8List>.value(_i29.Uint8List(0)), - ) as _i22.Future<_i29.Uint8List>); - @override - _i22.Future signStringWithNotificationKey(String? data) => - (super.noSuchMethod( - Invocation.method( - #signStringWithNotificationKey, - [data], - ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - _i22.Future> preparePaymentCodeSend({ - required _i17.PaymentCode? paymentCode, - required bool? isSegwit, - required _i12.Amount? amount, - Map? args, - }) => - (super.noSuchMethod( - Invocation.method( - #preparePaymentCodeSend, - [], - { - #paymentCode: paymentCode, - #isSegwit: isSegwit, - #amount: amount, - #args: args, - }, - ), - returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); - @override - _i22.Future<_i16.Address> nextUnusedSendAddressFrom({ - required _i17.PaymentCode? pCode, - required bool? isSegwit, - required _i15.BIP32? privateKeyNode, - int? startIndex = 0, - }) => - (super.noSuchMethod( - Invocation.method( - #nextUnusedSendAddressFrom, - [], - { - #pCode: pCode, - #isSegwit: isSegwit, - #privateKeyNode: privateKeyNode, - #startIndex: startIndex, - }, - ), - returnValue: _i22.Future<_i16.Address>.value(_FakeAddress_14( - this, - Invocation.method( - #nextUnusedSendAddressFrom, - [], - { - #pCode: pCode, - #isSegwit: isSegwit, - #privateKeyNode: privateKeyNode, - #startIndex: startIndex, - }, - ), - )), - ) as _i22.Future<_i16.Address>); - @override - _i22.Future<_i18.TxData> prepareNotificationTx({ - required int? selectedTxFeeRate, - required String? targetPaymentCodeString, - int? additionalOutputs = 0, - List<_i16.UTXO>? utxos, - }) => - (super.noSuchMethod( - Invocation.method( - #prepareNotificationTx, - [], - { - #selectedTxFeeRate: selectedTxFeeRate, - #targetPaymentCodeString: targetPaymentCodeString, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - ), - returnValue: _i22.Future<_i18.TxData>.value(_FakeTxData_16( - this, - Invocation.method( - #prepareNotificationTx, - [], - { - #selectedTxFeeRate: selectedTxFeeRate, - #targetPaymentCodeString: targetPaymentCodeString, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - ), - )), - ) as _i22.Future<_i18.TxData>); - @override - _i22.Future broadcastNotificationTx( - {required Map? preparedTx}) => - (super.noSuchMethod( - Invocation.method( - #broadcastNotificationTx, - [], - {#preparedTx: preparedTx}, - ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - _i22.Future hasConnected(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #hasConnected, - [paymentCodeString], - ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); - @override - _i22.Future<_i17.PaymentCode?> unBlindedPaymentCodeFromTransaction( - {required _i16.Transaction? transaction}) => - (super.noSuchMethod( - Invocation.method( - #unBlindedPaymentCodeFromTransaction, - [], - {#transaction: transaction}, - ), - returnValue: _i22.Future<_i17.PaymentCode?>.value(), - ) as _i22.Future<_i17.PaymentCode?>); - @override - _i22.Future<_i17.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( - {required _i16.Transaction? transaction}) => - (super.noSuchMethod( - Invocation.method( - #unBlindedPaymentCodeFromTransactionBad, - [], - {#transaction: transaction}, - ), - returnValue: _i22.Future<_i17.PaymentCode?>.value(), - ) as _i22.Future<_i17.PaymentCode?>); - @override - _i22.Future> - getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( - Invocation.method( - #getAllPaymentCodesFromNotificationTransactions, - [], - ), - returnValue: - _i22.Future>.value(<_i17.PaymentCode>[]), - ) as _i22.Future>); - @override - _i22.Future checkForNotificationTransactionsTo( - Set? otherCodeStrings) => - (super.noSuchMethod( - Invocation.method( - #checkForNotificationTransactionsTo, - [otherCodeStrings], - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future restoreAllHistory({ - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - required Set? paymentCodeStrings, - }) => - (super.noSuchMethod( - Invocation.method( - #restoreAllHistory, - [], - { - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - #paymentCodeStrings: paymentCodeStrings, - }, - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future restoreHistoryWith({ - required _i17.PaymentCode? other, - required bool? checkSegwitAsWell, - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - }) => - (super.noSuchMethod( - Invocation.method( - #restoreHistoryWith, - [], - { - #other: other, - #checkSegwitAsWell: checkSegwitAsWell, - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - }, - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future<_i16.Address> getMyNotificationAddress() => (super.noSuchMethod( - Invocation.method( - #getMyNotificationAddress, - [], - ), - returnValue: _i22.Future<_i16.Address>.value(_FakeAddress_14( - this, - Invocation.method( - #getMyNotificationAddress, - [], - ), - )), - ) as _i22.Future<_i16.Address>); - @override - _i22.Future> lookupKey(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #lookupKey, - [paymentCodeString], - ), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); - @override - _i22.Future paymentCodeStringByKey(String? key) => - (super.noSuchMethod( - Invocation.method( - #paymentCodeStringByKey, - [key], - ), - returnValue: _i22.Future.value(), - ) as _i22.Future); - @override - _i22.Future storeCode(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #storeCode, - [paymentCodeString], - ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); - @override - void initCoinControlInterface({ - required String? walletId, - required String? walletName, - required _i21.Coin? coin, - required _i3.MainDB? db, - required _i22.Future Function()? getChainHeight, - required _i22.Future Function(_i10.Balance)? refreshedBalanceCallback, - }) => - super.noSuchMethod( - Invocation.method( - #initCoinControlInterface, - [], - { - #walletId: walletId, - #walletName: walletName, - #coin: coin, - #db: db, - #getChainHeight: getChainHeight, - #refreshedBalanceCallback: refreshedBalanceCallback, - }, - ), - returnValueForMissingStub: null, - ); - @override - _i22.Future refreshBalance({bool? notify = false}) => - (super.noSuchMethod( - Invocation.method( - #refreshBalance, - [], - {#notify: notify}, - ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); -} - /// A class which mocks [NodeService]. /// /// See the documentation for Mockito's code generation for more information. class MockNodeService extends _i1.Mock implements _i2.NodeService { @override - _i19.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( + _i6.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( Invocation.getter(#secureStorageInterface), - returnValue: _FakeSecureStorageInterface_17( + returnValue: _FakeSecureStorageInterface_3( this, Invocation.getter(#secureStorageInterface), ), - ) as _i19.SecureStorageInterface); + ) as _i6.SecureStorageInterface); @override - List<_i30.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i16.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i30.NodeModel>[], - ) as List<_i30.NodeModel>); + returnValue: <_i16.NodeModel>[], + ) as List<_i16.NodeModel>); @override - List<_i30.NodeModel> get nodes => (super.noSuchMethod( + List<_i16.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i30.NodeModel>[], - ) as List<_i30.NodeModel>); + returnValue: <_i16.NodeModel>[], + ) as List<_i16.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i22.Future updateDefaults() => (super.noSuchMethod( + _i12.Future updateDefaults() => (super.noSuchMethod( Invocation.method( #updateDefaults, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future setPrimaryNodeFor({ - required _i21.Coin? coin, - required _i30.NodeModel? node, + _i12.Future setPrimaryNodeFor({ + required _i11.Coin? coin, + required _i16.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -1966,44 +530,44 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i30.NodeModel? getPrimaryNodeFor({required _i21.Coin? coin}) => + _i16.NodeModel? getPrimaryNodeFor({required _i11.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i30.NodeModel?); + )) as _i16.NodeModel?); @override - List<_i30.NodeModel> getNodesFor(_i21.Coin? coin) => (super.noSuchMethod( + List<_i16.NodeModel> getNodesFor(_i11.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i30.NodeModel>[], - ) as List<_i30.NodeModel>); + returnValue: <_i16.NodeModel>[], + ) as List<_i16.NodeModel>); @override - _i30.NodeModel? getNodeById({required String? id}) => + _i16.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i30.NodeModel?); + )) as _i16.NodeModel?); @override - List<_i30.NodeModel> failoverNodesFor({required _i21.Coin? coin}) => + List<_i16.NodeModel> failoverNodesFor({required _i11.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i30.NodeModel>[], - ) as List<_i30.NodeModel>); + returnValue: <_i16.NodeModel>[], + ) as List<_i16.NodeModel>); @override - _i22.Future add( - _i30.NodeModel? node, + _i12.Future add( + _i16.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -2016,11 +580,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future delete( + _i12.Future delete( String? id, bool? shouldNotifyListeners, ) => @@ -2032,11 +596,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future setEnabledState( + _i12.Future setEnabledState( String? id, bool? enabled, bool? shouldNotifyListeners, @@ -2050,12 +614,12 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future edit( - _i30.NodeModel? editedNode, + _i12.Future edit( + _i16.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -2068,20 +632,20 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future updateCommunityNodes() => (super.noSuchMethod( + _i12.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( #updateCommunityNodes, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - void addListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2089,7 +653,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i25.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2117,7 +681,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i31.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i17.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -2128,10 +692,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i31.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i21.Coin get coin => (super.noSuchMethod( + _i11.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i21.Coin.bitcoin, - ) as _i21.Coin); + returnValue: _i11.Coin.bitcoin, + ) as _i11.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2164,42 +728,42 @@ class MockCoinServiceAPI extends _i1.Mock implements _i31.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i22.Future<_i7.FeeObject> get fees => (super.noSuchMethod( + _i12.Future<_i7.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i22.Future<_i7.FeeObject>.value(_FakeFeeObject_4( + returnValue: _i12.Future<_i7.FeeObject>.value(_FakeFeeObject_4( this, Invocation.getter(#fees), )), - ) as _i22.Future<_i7.FeeObject>); + ) as _i12.Future<_i7.FeeObject>); @override - _i22.Future get maxFee => (super.noSuchMethod( + _i12.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i22.Future.value(0), - ) as _i22.Future); + returnValue: _i12.Future.value(0), + ) as _i12.Future); @override - _i22.Future get currentReceivingAddress => (super.noSuchMethod( + _i12.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i12.Future.value(''), + ) as _i12.Future); @override - _i10.Balance get balance => (super.noSuchMethod( + _i8.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), - returnValue: _FakeBalance_7( + returnValue: _FakeBalance_5( this, Invocation.getter(#balance), ), - ) as _i10.Balance); + ) as _i8.Balance); @override - _i22.Future> get transactions => (super.noSuchMethod( + _i12.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i22.Future>.value(<_i16.Transaction>[]), - ) as _i22.Future>); + _i12.Future>.value(<_i18.Transaction>[]), + ) as _i12.Future>); @override - _i22.Future> get utxos => (super.noSuchMethod( + _i12.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i22.Future>.value(<_i16.UTXO>[]), - ) as _i22.Future>); + returnValue: _i12.Future>.value(<_i18.UTXO>[]), + ) as _i12.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2219,20 +783,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i31.CoinServiceAPI { returnValue: '', ) as String); @override - _i22.Future> get mnemonic => (super.noSuchMethod( + _i12.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i22.Future>.value([]), - ) as _i22.Future>); + returnValue: _i12.Future>.value([]), + ) as _i12.Future>); @override - _i22.Future get mnemonicString => (super.noSuchMethod( + _i12.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future get mnemonicPassphrase => (super.noSuchMethod( + _i12.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + ) as _i12.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -2249,9 +813,9 @@ class MockCoinServiceAPI extends _i1.Mock implements _i31.CoinServiceAPI { returnValue: 0, ) as int); @override - _i22.Future> prepareSend({ + _i12.Future> prepareSend({ required String? address, - required _i12.Amount? amount, + required _i9.Amount? amount, Map? args, }) => (super.noSuchMethod( @@ -2265,36 +829,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i31.CoinServiceAPI { }, ), returnValue: - _i22.Future>.value({}), - ) as _i22.Future>); + _i12.Future>.value({}), + ) as _i12.Future>); @override - _i22.Future confirmSend({required Map? txData}) => + _i12.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i22.Future.value(''), - ) as _i22.Future); + returnValue: _i12.Future.value(''), + ) as _i12.Future); @override - _i22.Future refresh() => (super.noSuchMethod( + _i12.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i12.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2304,15 +868,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i31.CoinServiceAPI { returnValue: false, ) as bool); @override - _i22.Future testNetworkConnection() => (super.noSuchMethod( + _i12.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i12.Future.value(false), + ) as _i12.Future); @override - _i22.Future recoverFromMnemonic({ + _i12.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -2331,40 +895,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i31.CoinServiceAPI { #height: height, }, ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future initializeNew( + _i12.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future initializeExisting() => (super.noSuchMethod( + _i12.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future exit() => (super.noSuchMethod( + _i12.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future fullRescan( + _i12.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2376,12 +940,12 @@ class MockCoinServiceAPI extends _i1.Mock implements _i31.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); @override - _i22.Future<_i12.Amount> estimateFeeFor( - _i12.Amount? amount, + _i12.Future<_i9.Amount> estimateFeeFor( + _i9.Amount? amount, int? feeRate, ) => (super.noSuchMethod( @@ -2392,7 +956,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i31.CoinServiceAPI { feeRate, ], ), - returnValue: _i22.Future<_i12.Amount>.value(_FakeAmount_10( + returnValue: _i12.Future<_i9.Amount>.value(_FakeAmount_6( this, Invocation.method( #estimateFeeFor, @@ -2402,23 +966,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i31.CoinServiceAPI { ], ), )), - ) as _i22.Future<_i12.Amount>); + ) as _i12.Future<_i9.Amount>); @override - _i22.Future generateNewAddress() => (super.noSuchMethod( + _i12.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i22.Future.value(false), - ) as _i22.Future); + returnValue: _i12.Future.value(false), + ) as _i12.Future); @override - _i22.Future updateSentCachedTxData(Map? txData) => + _i12.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i22.Future.value(), - returnValueForMissingStub: _i22.Future.value(), - ) as _i22.Future); + returnValue: _i12.Future.value(), + returnValueForMissingStub: _i12.Future.value(), + ) as _i12.Future); } diff --git a/test/widget_tests/wallet_info_row/wallet_info_row_test.dart b/test/widget_tests/wallet_info_row/wallet_info_row_test.dart index 62f87ea01..01f77a36a 100644 --- a/test/widget_tests/wallet_info_row/wallet_info_row_test.dart +++ b/test/widget_tests/wallet_info_row/wallet_info_row_test.dart @@ -1,5 +1,4 @@ import 'package:mockito/annotations.dart'; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart'; import 'package:stackwallet/services/coins/coin_service.dart'; import 'package:stackwallet/services/node_service.dart'; import 'package:stackwallet/services/wallets.dart'; @@ -10,7 +9,6 @@ import 'package:stackwallet/themes/theme_service.dart'; Wallets, WalletsService, ThemeService, - BitcoinWallet ], customMocks: [ MockSpec(returnNullOnMissingStub: true), MockSpec(returnNullOnMissingStub: true), diff --git a/test/widget_tests/wallet_info_row/wallet_info_row_test.mocks.dart b/test/widget_tests/wallet_info_row/wallet_info_row_test.mocks.dart index 7414d8bc4..c94c50dd4 100644 --- a/test/widget_tests/wallet_info_row/wallet_info_row_test.mocks.dart +++ b/test/widget_tests/wallet_info_row/wallet_info_row_test.mocks.dart @@ -3,45 +3,31 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i23; -import 'dart:typed_data' as _i29; -import 'dart:ui' as _i26; +import 'dart:async' as _i13; +import 'dart:typed_data' as _i19; +import 'dart:ui' as _i16; -import 'package:bip32/bip32.dart' as _i16; -import 'package:bip47/bip47.dart' as _i18; -import 'package:bitcoindart/bitcoindart.dart' as _i12; import 'package:mockito/mockito.dart' as _i1; import 'package:stackwallet/db/isar/main_db.dart' as _i3; -import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i10; -import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i9; -import 'package:stackwallet/models/balance.dart' as _i11; -import 'package:stackwallet/models/isar/models/blockchain_data/v2/transaction_v2.dart' - as _i14; -import 'package:stackwallet/models/isar/models/isar_models.dart' as _i17; -import 'package:stackwallet/models/isar/stack_theme.dart' as _i28; -import 'package:stackwallet/models/node_model.dart' as _i33; +import 'package:stackwallet/models/balance.dart' as _i9; +import 'package:stackwallet/models/isar/models/isar_models.dart' as _i22; +import 'package:stackwallet/models/isar/stack_theme.dart' as _i18; +import 'package:stackwallet/models/node_model.dart' as _i20; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; -import 'package:stackwallet/models/signing_data.dart' as _i32; import 'package:stackwallet/networking/http.dart' as _i6; -import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i30; -import 'package:stackwallet/services/coins/coin_service.dart' as _i34; +import 'package:stackwallet/services/coins/coin_service.dart' as _i21; import 'package:stackwallet/services/node_service.dart' as _i2; -import 'package:stackwallet/services/transaction_notification_tracker.dart' - as _i7; -import 'package:stackwallet/services/wallets.dart' as _i21; -import 'package:stackwallet/services/wallets_service.dart' as _i25; -import 'package:stackwallet/themes/theme_service.dart' as _i27; -import 'package:stackwallet/utilities/amount/amount.dart' as _i13; -import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i22; -import 'package:stackwallet/utilities/enums/derive_path_type_enum.dart' as _i31; +import 'package:stackwallet/services/wallets.dart' as _i11; +import 'package:stackwallet/services/wallets_service.dart' as _i15; +import 'package:stackwallet/themes/theme_service.dart' as _i17; +import 'package:stackwallet/utilities/amount/amount.dart' as _i10; +import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i12; import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart' - as _i20; -import 'package:stackwallet/utilities/prefs.dart' as _i24; + as _i7; +import 'package:stackwallet/utilities/prefs.dart' as _i14; import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart' as _i4; -import 'package:stackwallet/wallets/models/tx_data.dart' as _i19; import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5; -import 'package:tuple/tuple.dart' as _i15; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -95,9 +81,9 @@ class _FakeHTTP_3 extends _i1.SmartFake implements _i6.HTTP { ); } -class _FakeTransactionNotificationTracker_4 extends _i1.SmartFake - implements _i7.TransactionNotificationTracker { - _FakeTransactionNotificationTracker_4( +class _FakeSecureStorageInterface_4 extends _i1.SmartFake + implements _i7.SecureStorageInterface { + _FakeSecureStorageInterface_4( Object parent, Invocation parentInvocation, ) : super( @@ -116,8 +102,8 @@ class _FakeFeeObject_5 extends _i1.SmartFake implements _i8.FeeObject { ); } -class _FakeElectrumX_6 extends _i1.SmartFake implements _i9.ElectrumX { - _FakeElectrumX_6( +class _FakeBalance_6 extends _i1.SmartFake implements _i9.Balance { + _FakeBalance_6( Object parent, Invocation parentInvocation, ) : super( @@ -126,122 +112,8 @@ class _FakeElectrumX_6 extends _i1.SmartFake implements _i9.ElectrumX { ); } -class _FakeCachedElectrumX_7 extends _i1.SmartFake - implements _i10.CachedElectrumX { - _FakeCachedElectrumX_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeBalance_8 extends _i1.SmartFake implements _i11.Balance { - _FakeBalance_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeNetworkType_9 extends _i1.SmartFake implements _i12.NetworkType { - _FakeNetworkType_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeElectrumXNode_10 extends _i1.SmartFake implements _i9.ElectrumXNode { - _FakeElectrumXNode_10( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAmount_11 extends _i1.SmartFake implements _i13.Amount { - _FakeAmount_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTransactionV2_12 extends _i1.SmartFake - implements _i14.TransactionV2 { - _FakeTransactionV2_12( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTuple2_13 extends _i1.SmartFake - implements _i15.Tuple2 { - _FakeTuple2_13( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeBIP32_14 extends _i1.SmartFake implements _i16.BIP32 { - _FakeBIP32_14( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAddress_15 extends _i1.SmartFake implements _i17.Address { - _FakeAddress_15( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakePaymentCode_16 extends _i1.SmartFake implements _i18.PaymentCode { - _FakePaymentCode_16( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTxData_17 extends _i1.SmartFake implements _i19.TxData { - _FakeTxData_17( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSecureStorageInterface_18 extends _i1.SmartFake - implements _i20.SecureStorageInterface { - _FakeSecureStorageInterface_18( +class _FakeAmount_7 extends _i1.SmartFake implements _i10.Amount { + _FakeAmount_7( Object parent, Invocation parentInvocation, ) : super( @@ -253,7 +125,7 @@ class _FakeSecureStorageInterface_18 extends _i1.SmartFake /// A class which mocks [Wallets]. /// /// See the documentation for Mockito's code generation for more information. -class MockWallets extends _i1.Mock implements _i21.Wallets { +class MockWallets extends _i1.Mock implements _i11.Wallets { MockWallets() { _i1.throwOnMissingStub(this); } @@ -301,16 +173,16 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[], ) as List<_i5.Wallet<_i4.CryptoCurrency>>); @override - List<({_i22.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})> + List<({_i12.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets})> get walletsByCoin => (super.noSuchMethod( Invocation.getter(#walletsByCoin), returnValue: <({ - _i22.Coin coin, + _i12.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets })>[], ) as List< ({ - _i22.Coin coin, + _i12.Coin coin, List<_i5.Wallet<_i4.CryptoCurrency>> wallets })>); @override @@ -337,17 +209,24 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { returnValueForMissingStub: null, ); @override - _i23.Future deleteWallet(String? walletId) => (super.noSuchMethod( + _i13.Future deleteWallet( + String? walletId, + _i7.SecureStorageInterface? secureStorage, + ) => + (super.noSuchMethod( Invocation.method( #deleteWallet, - [walletId], + [ + walletId, + secureStorage, + ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future load( - _i24.Prefs? prefs, + _i13.Future load( + _i14.Prefs? prefs, _i3.MainDB? mainDB, ) => (super.noSuchMethod( @@ -358,12 +237,12 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { mainDB, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future loadAfterStackRestore( - _i24.Prefs? prefs, + _i13.Future loadAfterStackRestore( + _i14.Prefs? prefs, List<_i5.Wallet<_i4.CryptoCurrency>>? wallets, ) => (super.noSuchMethod( @@ -374,33 +253,33 @@ class MockWallets extends _i1.Mock implements _i21.Wallets { wallets, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); } /// A class which mocks [WalletsService]. /// /// See the documentation for Mockito's code generation for more information. -class MockWalletsService extends _i1.Mock implements _i25.WalletsService { +class MockWalletsService extends _i1.Mock implements _i15.WalletsService { MockWalletsService() { _i1.throwOnMissingStub(this); } @override - _i23.Future> get walletNames => + _i13.Future> get walletNames => (super.noSuchMethod( Invocation.getter(#walletNames), - returnValue: _i23.Future>.value( - {}), - ) as _i23.Future>); + returnValue: _i13.Future>.value( + {}), + ) as _i13.Future>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i23.Future renameWallet({ + _i13.Future renameWallet({ required String? from, required String? to, required bool? shouldNotifyListeners, @@ -415,21 +294,21 @@ class MockWalletsService extends _i1.Mock implements _i25.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i13.Future.value(false), + ) as _i13.Future); @override - Map fetchWalletsData() => (super.noSuchMethod( + Map fetchWalletsData() => (super.noSuchMethod( Invocation.method( #fetchWalletsData, [], ), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override - _i23.Future addExistingStackWallet({ + _i13.Future addExistingStackWallet({ required String? name, required String? walletId, - required _i22.Coin? coin, + required _i12.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -443,13 +322,13 @@ class MockWalletsService extends _i1.Mock implements _i25.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future addNewWallet({ + _i13.Future addNewWallet({ required String? name, - required _i22.Coin? coin, + required _i12.Coin? coin, required bool? shouldNotifyListeners, }) => (super.noSuchMethod( @@ -462,46 +341,46 @@ class MockWalletsService extends _i1.Mock implements _i25.WalletsService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future> getFavoriteWalletIds() => (super.noSuchMethod( + _i13.Future> getFavoriteWalletIds() => (super.noSuchMethod( Invocation.method( #getFavoriteWalletIds, [], ), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i13.Future>.value([]), + ) as _i13.Future>); @override - _i23.Future saveFavoriteWalletIds(List? walletIds) => + _i13.Future saveFavoriteWalletIds(List? walletIds) => (super.noSuchMethod( Invocation.method( #saveFavoriteWalletIds, [walletIds], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future addFavorite(String? walletId) => (super.noSuchMethod( + _i13.Future addFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #addFavorite, [walletId], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future removeFavorite(String? walletId) => (super.noSuchMethod( + _i13.Future removeFavorite(String? walletId) => (super.noSuchMethod( Invocation.method( #removeFavorite, [walletId], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future moveFavorite({ + _i13.Future moveFavorite({ required int? fromIndex, required int? toIndex, }) => @@ -514,48 +393,48 @@ class MockWalletsService extends _i1.Mock implements _i25.WalletsService { #toIndex: toIndex, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future checkForDuplicate(String? name) => (super.noSuchMethod( + _i13.Future checkForDuplicate(String? name) => (super.noSuchMethod( Invocation.method( #checkForDuplicate, [name], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i13.Future.value(false), + ) as _i13.Future); @override - _i23.Future getWalletId(String? walletName) => (super.noSuchMethod( + _i13.Future getWalletId(String? walletName) => (super.noSuchMethod( Invocation.method( #getWalletId, [walletName], ), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future isMnemonicVerified({required String? walletId}) => + _i13.Future isMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #isMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i13.Future.value(false), + ) as _i13.Future); @override - _i23.Future setMnemonicVerified({required String? walletId}) => + _i13.Future setMnemonicVerified({required String? walletId}) => (super.noSuchMethod( Invocation.method( #setMnemonicVerified, [], {#walletId: walletId}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future deleteWallet( + _i13.Future deleteWallet( String? name, bool? shouldNotifyListeners, ) => @@ -567,20 +446,20 @@ class MockWalletsService extends _i1.Mock implements _i25.WalletsService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i13.Future.value(0), + ) as _i13.Future); @override - _i23.Future refreshWallets(bool? shouldNotifyListeners) => + _i13.Future refreshWallets(bool? shouldNotifyListeners) => (super.noSuchMethod( Invocation.method( #refreshWallets, [shouldNotifyListeners], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -588,7 +467,7 @@ class MockWalletsService extends _i1.Mock implements _i25.WalletsService { returnValueForMissingStub: null, ); @override - void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -616,7 +495,7 @@ class MockWalletsService extends _i1.Mock implements _i25.WalletsService { /// A class which mocks [ThemeService]. /// /// See the documentation for Mockito's code generation for more information. -class MockThemeService extends _i1.Mock implements _i27.ThemeService { +class MockThemeService extends _i1.Mock implements _i17.ThemeService { MockThemeService() { _i1.throwOnMissingStub(this); } @@ -646,10 +525,10 @@ class MockThemeService extends _i1.Mock implements _i27.ThemeService { ), ) as _i3.MainDB); @override - List<_i28.StackTheme> get installedThemes => (super.noSuchMethod( + List<_i18.StackTheme> get installedThemes => (super.noSuchMethod( Invocation.getter(#installedThemes), - returnValue: <_i28.StackTheme>[], - ) as List<_i28.StackTheme>); + returnValue: <_i18.StackTheme>[], + ) as List<_i18.StackTheme>); @override void init(_i3.MainDB? db) => super.noSuchMethod( Invocation.method( @@ -659,1387 +538,73 @@ class MockThemeService extends _i1.Mock implements _i27.ThemeService { returnValueForMissingStub: null, ); @override - _i23.Future install({required _i29.Uint8List? themeArchiveData}) => + _i13.Future install({required _i19.Uint8List? themeArchiveData}) => (super.noSuchMethod( Invocation.method( #install, [], {#themeArchiveData: themeArchiveData}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future remove({required String? themeId}) => (super.noSuchMethod( + _i13.Future remove({required String? themeId}) => (super.noSuchMethod( Invocation.method( #remove, [], {#themeId: themeId}, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( + _i13.Future checkDefaultThemesOnStartup() => (super.noSuchMethod( Invocation.method( #checkDefaultThemesOnStartup, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future verifyInstalled({required String? themeId}) => + _i13.Future verifyInstalled({required String? themeId}) => (super.noSuchMethod( Invocation.method( #verifyInstalled, [], {#themeId: themeId}, ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i13.Future.value(false), + ) as _i13.Future); @override - _i23.Future> fetchThemes() => + _i13.Future> fetchThemes() => (super.noSuchMethod( Invocation.method( #fetchThemes, [], ), - returnValue: _i23.Future>.value( - <_i27.StackThemeMetaData>[]), - ) as _i23.Future>); + returnValue: _i13.Future>.value( + <_i17.StackThemeMetaData>[]), + ) as _i13.Future>); @override - _i23.Future<_i29.Uint8List> fetchTheme( - {required _i27.StackThemeMetaData? themeMetaData}) => + _i13.Future<_i19.Uint8List> fetchTheme( + {required _i17.StackThemeMetaData? themeMetaData}) => (super.noSuchMethod( Invocation.method( #fetchTheme, [], {#themeMetaData: themeMetaData}, ), - returnValue: _i23.Future<_i29.Uint8List>.value(_i29.Uint8List(0)), - ) as _i23.Future<_i29.Uint8List>); + returnValue: _i13.Future<_i19.Uint8List>.value(_i19.Uint8List(0)), + ) as _i13.Future<_i19.Uint8List>); @override - _i28.StackTheme? getTheme({required String? themeId}) => + _i18.StackTheme? getTheme({required String? themeId}) => (super.noSuchMethod(Invocation.method( #getTheme, [], {#themeId: themeId}, - )) as _i28.StackTheme?); -} - -/// A class which mocks [BitcoinWallet]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockBitcoinWallet extends _i1.Mock implements _i30.BitcoinWallet { - MockBitcoinWallet() { - _i1.throwOnMissingStub(this); - } - - @override - set timer(_i23.Timer? _timer) => super.noSuchMethod( - Invocation.setter( - #timer, - _timer, - ), - returnValueForMissingStub: null, - ); - @override - _i7.TransactionNotificationTracker get txTracker => (super.noSuchMethod( - Invocation.getter(#txTracker), - returnValue: _FakeTransactionNotificationTracker_4( - this, - Invocation.getter(#txTracker), - ), - ) as _i7.TransactionNotificationTracker); - @override - set txTracker(_i7.TransactionNotificationTracker? _txTracker) => - super.noSuchMethod( - Invocation.setter( - #txTracker, - _txTracker, - ), - returnValueForMissingStub: null, - ); - @override - bool get longMutex => (super.noSuchMethod( - Invocation.getter(#longMutex), - returnValue: false, - ) as bool); - @override - set longMutex(bool? _longMutex) => super.noSuchMethod( - Invocation.setter( - #longMutex, - _longMutex, - ), - returnValueForMissingStub: null, - ); - @override - bool get refreshMutex => (super.noSuchMethod( - Invocation.getter(#refreshMutex), - returnValue: false, - ) as bool); - @override - set refreshMutex(bool? _refreshMutex) => super.noSuchMethod( - Invocation.setter( - #refreshMutex, - _refreshMutex, - ), - returnValueForMissingStub: null, - ); - @override - bool get isActive => (super.noSuchMethod( - Invocation.getter(#isActive), - returnValue: false, - ) as bool); - @override - set isActive(bool? _isActive) => super.noSuchMethod( - Invocation.setter( - #isActive, - _isActive, - ), - returnValueForMissingStub: null, - ); - @override - set isFavorite(bool? markFavorite) => super.noSuchMethod( - Invocation.setter( - #isFavorite, - markFavorite, - ), - returnValueForMissingStub: null, - ); - @override - bool get isFavorite => (super.noSuchMethod( - Invocation.getter(#isFavorite), - returnValue: false, - ) as bool); - @override - _i22.Coin get coin => (super.noSuchMethod( - Invocation.getter(#coin), - returnValue: _i22.Coin.bitcoin, - ) as _i22.Coin); - @override - _i23.Future> get utxos => (super.noSuchMethod( - Invocation.getter(#utxos), - returnValue: _i23.Future>.value(<_i17.UTXO>[]), - ) as _i23.Future>); - @override - _i23.Future> get transactions => (super.noSuchMethod( - Invocation.getter(#transactions), - returnValue: - _i23.Future>.value(<_i17.Transaction>[]), - ) as _i23.Future>); - @override - _i23.Future get currentReceivingAddress => (super.noSuchMethod( - Invocation.getter(#currentReceivingAddress), - returnValue: _i23.Future.value(''), - ) as _i23.Future); - @override - _i23.Future get currentChangeAddress => (super.noSuchMethod( - Invocation.getter(#currentChangeAddress), - returnValue: _i23.Future.value(''), - ) as _i23.Future); - @override - _i23.Future get currentChangeAddressP2PKH => (super.noSuchMethod( - Invocation.getter(#currentChangeAddressP2PKH), - returnValue: _i23.Future.value(''), - ) as _i23.Future); - @override - bool get hasCalledExit => (super.noSuchMethod( - Invocation.getter(#hasCalledExit), - returnValue: false, - ) as bool); - @override - _i23.Future<_i8.FeeObject> get fees => (super.noSuchMethod( - Invocation.getter(#fees), - returnValue: _i23.Future<_i8.FeeObject>.value(_FakeFeeObject_5( - this, - Invocation.getter(#fees), - )), - ) as _i23.Future<_i8.FeeObject>); - @override - _i23.Future get maxFee => (super.noSuchMethod( - Invocation.getter(#maxFee), - returnValue: _i23.Future.value(0), - ) as _i23.Future); - @override - _i23.Future> get mnemonic => (super.noSuchMethod( - Invocation.getter(#mnemonic), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); - @override - _i23.Future get mnemonicString => (super.noSuchMethod( - Invocation.getter(#mnemonicString), - returnValue: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future get mnemonicPassphrase => (super.noSuchMethod( - Invocation.getter(#mnemonicPassphrase), - returnValue: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future get chainHeight => (super.noSuchMethod( - Invocation.getter(#chainHeight), - returnValue: _i23.Future.value(0), - ) as _i23.Future); - @override - int get storedChainHeight => (super.noSuchMethod( - Invocation.getter(#storedChainHeight), - returnValue: 0, - ) as int); - @override - bool get shouldAutoSync => (super.noSuchMethod( - Invocation.getter(#shouldAutoSync), - returnValue: false, - ) as bool); - @override - set shouldAutoSync(bool? shouldAutoSync) => super.noSuchMethod( - Invocation.setter( - #shouldAutoSync, - shouldAutoSync, - ), - returnValueForMissingStub: null, - ); - @override - bool get isRefreshing => (super.noSuchMethod( - Invocation.getter(#isRefreshing), - returnValue: false, - ) as bool); - @override - bool get isConnected => (super.noSuchMethod( - Invocation.getter(#isConnected), - returnValue: false, - ) as bool); - @override - String get walletId => (super.noSuchMethod( - Invocation.getter(#walletId), - returnValue: '', - ) as String); - @override - String get walletName => (super.noSuchMethod( - Invocation.getter(#walletName), - returnValue: '', - ) as String); - @override - set walletName(String? newName) => super.noSuchMethod( - Invocation.setter( - #walletName, - newName, - ), - returnValueForMissingStub: null, - ); - @override - _i9.ElectrumX get electrumXClient => (super.noSuchMethod( - Invocation.getter(#electrumXClient), - returnValue: _FakeElectrumX_6( - this, - Invocation.getter(#electrumXClient), - ), - ) as _i9.ElectrumX); - @override - _i10.CachedElectrumX get cachedElectrumXClient => (super.noSuchMethod( - Invocation.getter(#cachedElectrumXClient), - returnValue: _FakeCachedElectrumX_7( - this, - Invocation.getter(#cachedElectrumXClient), - ), - ) as _i10.CachedElectrumX); - @override - _i11.Balance get balance => (super.noSuchMethod( - Invocation.getter(#balance), - returnValue: _FakeBalance_8( - this, - Invocation.getter(#balance), - ), - ) as _i11.Balance); - @override - _i23.Future get xpub => (super.noSuchMethod( - Invocation.getter(#xpub), - returnValue: _i23.Future.value(''), - ) as _i23.Future); - @override - set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => - super.noSuchMethod( - Invocation.setter( - #onIsActiveWalletChanged, - _onIsActiveWalletChanged, - ), - returnValueForMissingStub: null, - ); - @override - _i3.MainDB get db => (super.noSuchMethod( - Invocation.getter(#db), - returnValue: _FakeMainDB_1( - this, - Invocation.getter(#db), - ), - ) as _i3.MainDB); - @override - _i12.NetworkType get networkType => (super.noSuchMethod( - Invocation.getter(#networkType), - returnValue: _FakeNetworkType_9( - this, - Invocation.getter(#networkType), - ), - ) as _i12.NetworkType); - @override - _i23.Future exit() => (super.noSuchMethod( - Invocation.method( - #exit, - [], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i31.DerivePathType addressType({required String? address}) => - (super.noSuchMethod( - Invocation.method( - #addressType, - [], - {#address: address}, - ), - returnValue: _i31.DerivePathType.bip44, - ) as _i31.DerivePathType); - @override - _i23.Future recoverFromMnemonic({ - required String? mnemonic, - String? mnemonicPassphrase, - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - required int? height, - }) => - (super.noSuchMethod( - Invocation.method( - #recoverFromMnemonic, - [], - { - #mnemonic: mnemonic, - #mnemonicPassphrase: mnemonicPassphrase, - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - #height: height, - }, - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future getTransactionCacheEarly(List? allAddresses) => - (super.noSuchMethod( - Invocation.method( - #getTransactionCacheEarly, - [allAddresses], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future refreshIfThereIsNewData() => (super.noSuchMethod( - Invocation.method( - #refreshIfThereIsNewData, - [], - ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); - @override - _i23.Future getAllTxsToWatch() => (super.noSuchMethod( - Invocation.method( - #getAllTxsToWatch, - [], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future refresh() => (super.noSuchMethod( - Invocation.method( - #refresh, - [], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future> prepareSend({ - required String? address, - required _i13.Amount? amount, - Map? args, - }) => - (super.noSuchMethod( - Invocation.method( - #prepareSend, - [], - { - #address: address, - #amount: amount, - #args: args, - }, - ), - returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); - @override - _i23.Future confirmSend({required Map? txData}) => - (super.noSuchMethod( - Invocation.method( - #confirmSend, - [], - {#txData: txData}, - ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); - @override - _i23.Future testNetworkConnection() => (super.noSuchMethod( - Invocation.method( - #testNetworkConnection, - [], - ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); - @override - void startNetworkAlivePinging() => super.noSuchMethod( - Invocation.method( - #startNetworkAlivePinging, - [], - ), - returnValueForMissingStub: null, - ); - @override - void stopNetworkAlivePinging() => super.noSuchMethod( - Invocation.method( - #stopNetworkAlivePinging, - [], - ), - returnValueForMissingStub: null, - ); - @override - _i23.Future initializeNew( - ({String mnemonicPassphrase, int wordCount})? data) => - (super.noSuchMethod( - Invocation.method( - #initializeNew, - [data], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future initializeExisting() => (super.noSuchMethod( - Invocation.method( - #initializeExisting, - [], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future updateSentCachedTxData(Map? txData) => - (super.noSuchMethod( - Invocation.method( - #updateSentCachedTxData, - [txData], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - bool validateAddress(String? address) => (super.noSuchMethod( - Invocation.method( - #validateAddress, - [address], - ), - returnValue: false, - ) as bool); - @override - _i23.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( - Invocation.method( - #updateNode, - [shouldRefresh], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future<_i9.ElectrumXNode> getCurrentNode() => (super.noSuchMethod( - Invocation.method( - #getCurrentNode, - [], - ), - returnValue: _i23.Future<_i9.ElectrumXNode>.value(_FakeElectrumXNode_10( - this, - Invocation.method( - #getCurrentNode, - [], - ), - )), - ) as _i23.Future<_i9.ElectrumXNode>); - @override - _i23.Future>> fastFetch( - List? allTxHashes) => - (super.noSuchMethod( - Invocation.method( - #fastFetch, - [allTxHashes], - ), - returnValue: _i23.Future>>.value( - >[]), - ) as _i23.Future>>); - @override - _i23.Future getTxCount({required String? address}) => - (super.noSuchMethod( - Invocation.method( - #getTxCount, - [], - {#address: address}, - ), - returnValue: _i23.Future.value(0), - ) as _i23.Future); - @override - _i23.Future checkCurrentReceivingAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkCurrentReceivingAddressesForTransactions, - [], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future checkCurrentChangeAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkCurrentChangeAddressesForTransactions, - [], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - int estimateTxFee({ - required int? vSize, - required int? feeRatePerKB, - }) => - (super.noSuchMethod( - Invocation.method( - #estimateTxFee, - [], - { - #vSize: vSize, - #feeRatePerKB: feeRatePerKB, - }, - ), - returnValue: 0, - ) as int); - @override - dynamic coinSelection({ - required int? satoshiAmountToSend, - required int? selectedTxFeeRate, - required String? recipientAddress, - required bool? coinControl, - required bool? isSendAll, - int? satsPerVByte, - int? additionalOutputs = 0, - List<_i17.UTXO>? utxos, - }) => - super.noSuchMethod(Invocation.method( - #coinSelection, - [], - { - #satoshiAmountToSend: satoshiAmountToSend, - #selectedTxFeeRate: selectedTxFeeRate, - #recipientAddress: recipientAddress, - #coinControl: coinControl, - #isSendAll: isSendAll, - #satsPerVByte: satsPerVByte, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - )); - @override - _i23.Future> fetchBuildTxData( - List<_i17.UTXO>? utxosToUse) => - (super.noSuchMethod( - Invocation.method( - #fetchBuildTxData, - [utxosToUse], - ), - returnValue: - _i23.Future>.value(<_i32.SigningData>[]), - ) as _i23.Future>); - @override - _i23.Future> buildTransaction({ - required List<_i32.SigningData>? utxoSigningData, - required List? recipients, - required List? satoshiAmounts, - }) => - (super.noSuchMethod( - Invocation.method( - #buildTransaction, - [], - { - #utxoSigningData: utxoSigningData, - #recipients: recipients, - #satoshiAmounts: satoshiAmounts, - }, - ), - returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); - @override - _i23.Future fullRescan( - int? maxUnusedAddressGap, - int? maxNumberOfIndexesToCheck, - ) => - (super.noSuchMethod( - Invocation.method( - #fullRescan, - [ - maxUnusedAddressGap, - maxNumberOfIndexesToCheck, - ], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future<_i13.Amount> estimateFeeFor( - _i13.Amount? amount, - int? feeRate, - ) => - (super.noSuchMethod( - Invocation.method( - #estimateFeeFor, - [ - amount, - feeRate, - ], - ), - returnValue: _i23.Future<_i13.Amount>.value(_FakeAmount_11( - this, - Invocation.method( - #estimateFeeFor, - [ - amount, - feeRate, - ], - ), - )), - ) as _i23.Future<_i13.Amount>); - @override - _i13.Amount roughFeeEstimate( - int? inputCount, - int? outputCount, - int? feeRatePerKB, - ) => - (super.noSuchMethod( - Invocation.method( - #roughFeeEstimate, - [ - inputCount, - outputCount, - feeRatePerKB, - ], - ), - returnValue: _FakeAmount_11( - this, - Invocation.method( - #roughFeeEstimate, - [ - inputCount, - outputCount, - feeRatePerKB, - ], - ), - ), - ) as _i13.Amount); - @override - _i23.Future<_i13.Amount> sweepAllEstimate(int? feeRate) => - (super.noSuchMethod( - Invocation.method( - #sweepAllEstimate, - [feeRate], - ), - returnValue: _i23.Future<_i13.Amount>.value(_FakeAmount_11( - this, - Invocation.method( - #sweepAllEstimate, - [feeRate], - ), - )), - ) as _i23.Future<_i13.Amount>); - @override - _i23.Future generateNewAddress() => (super.noSuchMethod( - Invocation.method( - #generateNewAddress, - [], - ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); - @override - void initCache( - String? walletId, - _i22.Coin? coin, - ) => - super.noSuchMethod( - Invocation.method( - #initCache, - [ - walletId, - coin, - ], - ), - returnValueForMissingStub: null, - ); - @override - _i23.Future updateCachedId(String? id) => (super.noSuchMethod( - Invocation.method( - #updateCachedId, - [id], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - int getCachedChainHeight() => (super.noSuchMethod( - Invocation.method( - #getCachedChainHeight, - [], - ), - returnValue: 0, - ) as int); - @override - _i23.Future updateCachedChainHeight(int? height) => (super.noSuchMethod( - Invocation.method( - #updateCachedChainHeight, - [height], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - bool getCachedIsFavorite() => (super.noSuchMethod( - Invocation.method( - #getCachedIsFavorite, - [], - ), - returnValue: false, - ) as bool); - @override - _i23.Future updateCachedIsFavorite(bool? isFavorite) => - (super.noSuchMethod( - Invocation.method( - #updateCachedIsFavorite, - [isFavorite], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i11.Balance getCachedBalance() => (super.noSuchMethod( - Invocation.method( - #getCachedBalance, - [], - ), - returnValue: _FakeBalance_8( - this, - Invocation.method( - #getCachedBalance, - [], - ), - ), - ) as _i11.Balance); - @override - _i23.Future updateCachedBalance(_i11.Balance? balance) => - (super.noSuchMethod( - Invocation.method( - #updateCachedBalance, - [balance], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i11.Balance getCachedBalanceSecondary() => (super.noSuchMethod( - Invocation.method( - #getCachedBalanceSecondary, - [], - ), - returnValue: _FakeBalance_8( - this, - Invocation.method( - #getCachedBalanceSecondary, - [], - ), - ), - ) as _i11.Balance); - @override - _i23.Future updateCachedBalanceSecondary(_i11.Balance? balance) => - (super.noSuchMethod( - Invocation.method( - #updateCachedBalanceSecondary, - [balance], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - List getWalletTokenContractAddresses() => (super.noSuchMethod( - Invocation.method( - #getWalletTokenContractAddresses, - [], - ), - returnValue: [], - ) as List); - @override - _i23.Future updateWalletTokenContractAddresses( - List? contractAddresses) => - (super.noSuchMethod( - Invocation.method( - #updateWalletTokenContractAddresses, - [contractAddresses], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - void initWalletDB({_i3.MainDB? mockableOverride}) => super.noSuchMethod( - Invocation.method( - #initWalletDB, - [], - {#mockableOverride: mockableOverride}, - ), - returnValueForMissingStub: null, - ); - @override - _i23.Future<_i14.TransactionV2> getTransaction( - String? txHash, - _i22.Coin? coin, - String? walletId, - _i10.CachedElectrumX? cachedElectrumX, [ - String? debugTitle, - ]) => - (super.noSuchMethod( - Invocation.method( - #getTransaction, - [ - txHash, - coin, - walletId, - cachedElectrumX, - debugTitle, - ], - ), - returnValue: - _i23.Future<_i14.TransactionV2>.value(_FakeTransactionV2_12( - this, - Invocation.method( - #getTransaction, - [ - txHash, - coin, - walletId, - cachedElectrumX, - debugTitle, - ], - ), - )), - ) as _i23.Future<_i14.TransactionV2>); - @override - _i23.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>> parseTransaction( - Map? txData, - dynamic electrumxClient, - List<_i17.Address>? myAddresses, - _i22.Coin? coin, - int? minConfirms, - String? walletId, - ) => - (super.noSuchMethod( - Invocation.method( - #parseTransaction, - [ - txData, - electrumxClient, - myAddresses, - coin, - minConfirms, - walletId, - ], - ), - returnValue: - _i23.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>.value( - _FakeTuple2_13<_i17.Transaction, _i17.Address>( - this, - Invocation.method( - #parseTransaction, - [ - txData, - electrumxClient, - myAddresses, - coin, - minConfirms, - walletId, - ], - ), - )), - ) as _i23.Future<_i15.Tuple2<_i17.Transaction, _i17.Address>>); - @override - void initPaynymWalletInterface({ - required String? walletId, - required String? walletName, - required _i12.NetworkType? network, - required _i22.Coin? coin, - required _i3.MainDB? db, - required _i9.ElectrumX? electrumXClient, - required _i20.SecureStorageInterface? secureStorage, - required int? dustLimit, - required int? dustLimitP2PKH, - required int? minConfirms, - required _i23.Future Function()? getMnemonicString, - required _i23.Future Function()? getMnemonicPassphrase, - required _i23.Future Function()? getChainHeight, - required _i23.Future Function()? getCurrentChangeAddress, - required int Function({ - required int feeRatePerKB, - required int vSize, - })? estimateTxFee, - required _i23.Future> Function({ - required String address, - required _i13.Amount amount, - Map? args, - })? prepareSend, - required _i23.Future Function({required String address})? getTxCount, - required _i23.Future> Function(List<_i17.UTXO>)? - fetchBuildTxData, - required _i23.Future Function()? refresh, - required _i23.Future Function()? checkChangeAddressForTransactions, - }) => - super.noSuchMethod( - Invocation.method( - #initPaynymWalletInterface, - [], - { - #walletId: walletId, - #walletName: walletName, - #network: network, - #coin: coin, - #db: db, - #electrumXClient: electrumXClient, - #secureStorage: secureStorage, - #dustLimit: dustLimit, - #dustLimitP2PKH: dustLimitP2PKH, - #minConfirms: minConfirms, - #getMnemonicString: getMnemonicString, - #getMnemonicPassphrase: getMnemonicPassphrase, - #getChainHeight: getChainHeight, - #getCurrentChangeAddress: getCurrentChangeAddress, - #estimateTxFee: estimateTxFee, - #prepareSend: prepareSend, - #getTxCount: getTxCount, - #fetchBuildTxData: fetchBuildTxData, - #refresh: refresh, - #checkChangeAddressForTransactions: - checkChangeAddressForTransactions, - }, - ), - returnValueForMissingStub: null, - ); - @override - _i23.Future<_i16.BIP32> getBip47BaseNode() => (super.noSuchMethod( - Invocation.method( - #getBip47BaseNode, - [], - ), - returnValue: _i23.Future<_i16.BIP32>.value(_FakeBIP32_14( - this, - Invocation.method( - #getBip47BaseNode, - [], - ), - )), - ) as _i23.Future<_i16.BIP32>); - @override - _i23.Future<_i29.Uint8List> getPrivateKeyForPaynymReceivingAddress({ - required String? paymentCodeString, - required int? index, - }) => - (super.noSuchMethod( - Invocation.method( - #getPrivateKeyForPaynymReceivingAddress, - [], - { - #paymentCodeString: paymentCodeString, - #index: index, - }, - ), - returnValue: _i23.Future<_i29.Uint8List>.value(_i29.Uint8List(0)), - ) as _i23.Future<_i29.Uint8List>); - @override - _i23.Future<_i17.Address> currentReceivingPaynymAddress({ - required _i18.PaymentCode? sender, - required bool? isSegwit, - }) => - (super.noSuchMethod( - Invocation.method( - #currentReceivingPaynymAddress, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - returnValue: _i23.Future<_i17.Address>.value(_FakeAddress_15( - this, - Invocation.method( - #currentReceivingPaynymAddress, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - )), - ) as _i23.Future<_i17.Address>); - @override - _i23.Future checkCurrentPaynymReceivingAddressForTransactions({ - required _i18.PaymentCode? sender, - required bool? isSegwit, - }) => - (super.noSuchMethod( - Invocation.method( - #checkCurrentPaynymReceivingAddressForTransactions, - [], - { - #sender: sender, - #isSegwit: isSegwit, - }, - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future checkAllCurrentReceivingPaynymAddressesForTransactions() => - (super.noSuchMethod( - Invocation.method( - #checkAllCurrentReceivingPaynymAddressesForTransactions, - [], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future<_i16.BIP32> deriveNotificationBip32Node() => (super.noSuchMethod( - Invocation.method( - #deriveNotificationBip32Node, - [], - ), - returnValue: _i23.Future<_i16.BIP32>.value(_FakeBIP32_14( - this, - Invocation.method( - #deriveNotificationBip32Node, - [], - ), - )), - ) as _i23.Future<_i16.BIP32>); - @override - _i23.Future<_i18.PaymentCode> getPaymentCode({required bool? isSegwit}) => - (super.noSuchMethod( - Invocation.method( - #getPaymentCode, - [], - {#isSegwit: isSegwit}, - ), - returnValue: _i23.Future<_i18.PaymentCode>.value(_FakePaymentCode_16( - this, - Invocation.method( - #getPaymentCode, - [], - {#isSegwit: isSegwit}, - ), - )), - ) as _i23.Future<_i18.PaymentCode>); - @override - _i23.Future<_i29.Uint8List> signWithNotificationKey(_i29.Uint8List? data) => - (super.noSuchMethod( - Invocation.method( - #signWithNotificationKey, - [data], - ), - returnValue: _i23.Future<_i29.Uint8List>.value(_i29.Uint8List(0)), - ) as _i23.Future<_i29.Uint8List>); - @override - _i23.Future signStringWithNotificationKey(String? data) => - (super.noSuchMethod( - Invocation.method( - #signStringWithNotificationKey, - [data], - ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); - @override - _i23.Future> preparePaymentCodeSend({ - required _i18.PaymentCode? paymentCode, - required bool? isSegwit, - required _i13.Amount? amount, - Map? args, - }) => - (super.noSuchMethod( - Invocation.method( - #preparePaymentCodeSend, - [], - { - #paymentCode: paymentCode, - #isSegwit: isSegwit, - #amount: amount, - #args: args, - }, - ), - returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); - @override - _i23.Future<_i17.Address> nextUnusedSendAddressFrom({ - required _i18.PaymentCode? pCode, - required bool? isSegwit, - required _i16.BIP32? privateKeyNode, - int? startIndex = 0, - }) => - (super.noSuchMethod( - Invocation.method( - #nextUnusedSendAddressFrom, - [], - { - #pCode: pCode, - #isSegwit: isSegwit, - #privateKeyNode: privateKeyNode, - #startIndex: startIndex, - }, - ), - returnValue: _i23.Future<_i17.Address>.value(_FakeAddress_15( - this, - Invocation.method( - #nextUnusedSendAddressFrom, - [], - { - #pCode: pCode, - #isSegwit: isSegwit, - #privateKeyNode: privateKeyNode, - #startIndex: startIndex, - }, - ), - )), - ) as _i23.Future<_i17.Address>); - @override - _i23.Future<_i19.TxData> prepareNotificationTx({ - required int? selectedTxFeeRate, - required String? targetPaymentCodeString, - int? additionalOutputs = 0, - List<_i17.UTXO>? utxos, - }) => - (super.noSuchMethod( - Invocation.method( - #prepareNotificationTx, - [], - { - #selectedTxFeeRate: selectedTxFeeRate, - #targetPaymentCodeString: targetPaymentCodeString, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - ), - returnValue: _i23.Future<_i19.TxData>.value(_FakeTxData_17( - this, - Invocation.method( - #prepareNotificationTx, - [], - { - #selectedTxFeeRate: selectedTxFeeRate, - #targetPaymentCodeString: targetPaymentCodeString, - #additionalOutputs: additionalOutputs, - #utxos: utxos, - }, - ), - )), - ) as _i23.Future<_i19.TxData>); - @override - _i23.Future broadcastNotificationTx( - {required Map? preparedTx}) => - (super.noSuchMethod( - Invocation.method( - #broadcastNotificationTx, - [], - {#preparedTx: preparedTx}, - ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); - @override - _i23.Future hasConnected(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #hasConnected, - [paymentCodeString], - ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); - @override - _i23.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransaction( - {required _i17.Transaction? transaction}) => - (super.noSuchMethod( - Invocation.method( - #unBlindedPaymentCodeFromTransaction, - [], - {#transaction: transaction}, - ), - returnValue: _i23.Future<_i18.PaymentCode?>.value(), - ) as _i23.Future<_i18.PaymentCode?>); - @override - _i23.Future<_i18.PaymentCode?> unBlindedPaymentCodeFromTransactionBad( - {required _i17.Transaction? transaction}) => - (super.noSuchMethod( - Invocation.method( - #unBlindedPaymentCodeFromTransactionBad, - [], - {#transaction: transaction}, - ), - returnValue: _i23.Future<_i18.PaymentCode?>.value(), - ) as _i23.Future<_i18.PaymentCode?>); - @override - _i23.Future> - getAllPaymentCodesFromNotificationTransactions() => (super.noSuchMethod( - Invocation.method( - #getAllPaymentCodesFromNotificationTransactions, - [], - ), - returnValue: - _i23.Future>.value(<_i18.PaymentCode>[]), - ) as _i23.Future>); - @override - _i23.Future checkForNotificationTransactionsTo( - Set? otherCodeStrings) => - (super.noSuchMethod( - Invocation.method( - #checkForNotificationTransactionsTo, - [otherCodeStrings], - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future restoreAllHistory({ - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - required Set? paymentCodeStrings, - }) => - (super.noSuchMethod( - Invocation.method( - #restoreAllHistory, - [], - { - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - #paymentCodeStrings: paymentCodeStrings, - }, - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future restoreHistoryWith({ - required _i18.PaymentCode? other, - required bool? checkSegwitAsWell, - required int? maxUnusedAddressGap, - required int? maxNumberOfIndexesToCheck, - }) => - (super.noSuchMethod( - Invocation.method( - #restoreHistoryWith, - [], - { - #other: other, - #checkSegwitAsWell: checkSegwitAsWell, - #maxUnusedAddressGap: maxUnusedAddressGap, - #maxNumberOfIndexesToCheck: maxNumberOfIndexesToCheck, - }, - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future<_i17.Address> getMyNotificationAddress() => (super.noSuchMethod( - Invocation.method( - #getMyNotificationAddress, - [], - ), - returnValue: _i23.Future<_i17.Address>.value(_FakeAddress_15( - this, - Invocation.method( - #getMyNotificationAddress, - [], - ), - )), - ) as _i23.Future<_i17.Address>); - @override - _i23.Future> lookupKey(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #lookupKey, - [paymentCodeString], - ), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); - @override - _i23.Future paymentCodeStringByKey(String? key) => - (super.noSuchMethod( - Invocation.method( - #paymentCodeStringByKey, - [key], - ), - returnValue: _i23.Future.value(), - ) as _i23.Future); - @override - _i23.Future storeCode(String? paymentCodeString) => - (super.noSuchMethod( - Invocation.method( - #storeCode, - [paymentCodeString], - ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); - @override - void initCoinControlInterface({ - required String? walletId, - required String? walletName, - required _i22.Coin? coin, - required _i3.MainDB? db, - required _i23.Future Function()? getChainHeight, - required _i23.Future Function(_i11.Balance)? refreshedBalanceCallback, - }) => - super.noSuchMethod( - Invocation.method( - #initCoinControlInterface, - [], - { - #walletId: walletId, - #walletName: walletName, - #coin: coin, - #db: db, - #getChainHeight: getChainHeight, - #refreshedBalanceCallback: refreshedBalanceCallback, - }, - ), - returnValueForMissingStub: null, - ); - @override - _i23.Future refreshBalance({bool? notify = false}) => - (super.noSuchMethod( - Invocation.method( - #refreshBalance, - [], - {#notify: notify}, - ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + )) as _i18.StackTheme?); } /// A class which mocks [NodeService]. @@ -2047,41 +612,41 @@ class MockBitcoinWallet extends _i1.Mock implements _i30.BitcoinWallet { /// See the documentation for Mockito's code generation for more information. class MockNodeService extends _i1.Mock implements _i2.NodeService { @override - _i20.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( + _i7.SecureStorageInterface get secureStorageInterface => (super.noSuchMethod( Invocation.getter(#secureStorageInterface), - returnValue: _FakeSecureStorageInterface_18( + returnValue: _FakeSecureStorageInterface_4( this, Invocation.getter(#secureStorageInterface), ), - ) as _i20.SecureStorageInterface); + ) as _i7.SecureStorageInterface); @override - List<_i33.NodeModel> get primaryNodes => (super.noSuchMethod( + List<_i20.NodeModel> get primaryNodes => (super.noSuchMethod( Invocation.getter(#primaryNodes), - returnValue: <_i33.NodeModel>[], - ) as List<_i33.NodeModel>); + returnValue: <_i20.NodeModel>[], + ) as List<_i20.NodeModel>); @override - List<_i33.NodeModel> get nodes => (super.noSuchMethod( + List<_i20.NodeModel> get nodes => (super.noSuchMethod( Invocation.getter(#nodes), - returnValue: <_i33.NodeModel>[], - ) as List<_i33.NodeModel>); + returnValue: <_i20.NodeModel>[], + ) as List<_i20.NodeModel>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i23.Future updateDefaults() => (super.noSuchMethod( + _i13.Future updateDefaults() => (super.noSuchMethod( Invocation.method( #updateDefaults, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future setPrimaryNodeFor({ - required _i22.Coin? coin, - required _i33.NodeModel? node, + _i13.Future setPrimaryNodeFor({ + required _i12.Coin? coin, + required _i20.NodeModel? node, bool? shouldNotifyListeners = false, }) => (super.noSuchMethod( @@ -2094,44 +659,44 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { #shouldNotifyListeners: shouldNotifyListeners, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i33.NodeModel? getPrimaryNodeFor({required _i22.Coin? coin}) => + _i20.NodeModel? getPrimaryNodeFor({required _i12.Coin? coin}) => (super.noSuchMethod(Invocation.method( #getPrimaryNodeFor, [], {#coin: coin}, - )) as _i33.NodeModel?); + )) as _i20.NodeModel?); @override - List<_i33.NodeModel> getNodesFor(_i22.Coin? coin) => (super.noSuchMethod( + List<_i20.NodeModel> getNodesFor(_i12.Coin? coin) => (super.noSuchMethod( Invocation.method( #getNodesFor, [coin], ), - returnValue: <_i33.NodeModel>[], - ) as List<_i33.NodeModel>); + returnValue: <_i20.NodeModel>[], + ) as List<_i20.NodeModel>); @override - _i33.NodeModel? getNodeById({required String? id}) => + _i20.NodeModel? getNodeById({required String? id}) => (super.noSuchMethod(Invocation.method( #getNodeById, [], {#id: id}, - )) as _i33.NodeModel?); + )) as _i20.NodeModel?); @override - List<_i33.NodeModel> failoverNodesFor({required _i22.Coin? coin}) => + List<_i20.NodeModel> failoverNodesFor({required _i12.Coin? coin}) => (super.noSuchMethod( Invocation.method( #failoverNodesFor, [], {#coin: coin}, ), - returnValue: <_i33.NodeModel>[], - ) as List<_i33.NodeModel>); + returnValue: <_i20.NodeModel>[], + ) as List<_i20.NodeModel>); @override - _i23.Future add( - _i33.NodeModel? node, + _i13.Future add( + _i20.NodeModel? node, String? password, bool? shouldNotifyListeners, ) => @@ -2144,11 +709,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future delete( + _i13.Future delete( String? id, bool? shouldNotifyListeners, ) => @@ -2160,11 +725,11 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future setEnabledState( + _i13.Future setEnabledState( String? id, bool? enabled, bool? shouldNotifyListeners, @@ -2178,12 +743,12 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future edit( - _i33.NodeModel? editedNode, + _i13.Future edit( + _i20.NodeModel? editedNode, String? password, bool? shouldNotifyListeners, ) => @@ -2196,20 +761,20 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { shouldNotifyListeners, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future updateCommunityNodes() => (super.noSuchMethod( + _i13.Future updateCommunityNodes() => (super.noSuchMethod( Invocation.method( #updateCommunityNodes, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - void addListener(_i26.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2217,7 +782,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { returnValueForMissingStub: null, ); @override - void removeListener(_i26.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -2245,7 +810,7 @@ class MockNodeService extends _i1.Mock implements _i2.NodeService { /// A class which mocks [CoinServiceAPI]. /// /// See the documentation for Mockito's code generation for more information. -class MockCoinServiceAPI extends _i1.Mock implements _i34.CoinServiceAPI { +class MockCoinServiceAPI extends _i1.Mock implements _i21.CoinServiceAPI { @override set onIsActiveWalletChanged(void Function(bool)? _onIsActiveWalletChanged) => super.noSuchMethod( @@ -2256,10 +821,10 @@ class MockCoinServiceAPI extends _i1.Mock implements _i34.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i22.Coin get coin => (super.noSuchMethod( + _i12.Coin get coin => (super.noSuchMethod( Invocation.getter(#coin), - returnValue: _i22.Coin.bitcoin, - ) as _i22.Coin); + returnValue: _i12.Coin.bitcoin, + ) as _i12.Coin); @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), @@ -2292,42 +857,42 @@ class MockCoinServiceAPI extends _i1.Mock implements _i34.CoinServiceAPI { returnValueForMissingStub: null, ); @override - _i23.Future<_i8.FeeObject> get fees => (super.noSuchMethod( + _i13.Future<_i8.FeeObject> get fees => (super.noSuchMethod( Invocation.getter(#fees), - returnValue: _i23.Future<_i8.FeeObject>.value(_FakeFeeObject_5( + returnValue: _i13.Future<_i8.FeeObject>.value(_FakeFeeObject_5( this, Invocation.getter(#fees), )), - ) as _i23.Future<_i8.FeeObject>); + ) as _i13.Future<_i8.FeeObject>); @override - _i23.Future get maxFee => (super.noSuchMethod( + _i13.Future get maxFee => (super.noSuchMethod( Invocation.getter(#maxFee), - returnValue: _i23.Future.value(0), - ) as _i23.Future); + returnValue: _i13.Future.value(0), + ) as _i13.Future); @override - _i23.Future get currentReceivingAddress => (super.noSuchMethod( + _i13.Future get currentReceivingAddress => (super.noSuchMethod( Invocation.getter(#currentReceivingAddress), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i13.Future.value(''), + ) as _i13.Future); @override - _i11.Balance get balance => (super.noSuchMethod( + _i9.Balance get balance => (super.noSuchMethod( Invocation.getter(#balance), - returnValue: _FakeBalance_8( + returnValue: _FakeBalance_6( this, Invocation.getter(#balance), ), - ) as _i11.Balance); + ) as _i9.Balance); @override - _i23.Future> get transactions => (super.noSuchMethod( + _i13.Future> get transactions => (super.noSuchMethod( Invocation.getter(#transactions), returnValue: - _i23.Future>.value(<_i17.Transaction>[]), - ) as _i23.Future>); + _i13.Future>.value(<_i22.Transaction>[]), + ) as _i13.Future>); @override - _i23.Future> get utxos => (super.noSuchMethod( + _i13.Future> get utxos => (super.noSuchMethod( Invocation.getter(#utxos), - returnValue: _i23.Future>.value(<_i17.UTXO>[]), - ) as _i23.Future>); + returnValue: _i13.Future>.value(<_i22.UTXO>[]), + ) as _i13.Future>); @override set walletName(String? newName) => super.noSuchMethod( Invocation.setter( @@ -2347,20 +912,20 @@ class MockCoinServiceAPI extends _i1.Mock implements _i34.CoinServiceAPI { returnValue: '', ) as String); @override - _i23.Future> get mnemonic => (super.noSuchMethod( + _i13.Future> get mnemonic => (super.noSuchMethod( Invocation.getter(#mnemonic), - returnValue: _i23.Future>.value([]), - ) as _i23.Future>); + returnValue: _i13.Future>.value([]), + ) as _i13.Future>); @override - _i23.Future get mnemonicString => (super.noSuchMethod( + _i13.Future get mnemonicString => (super.noSuchMethod( Invocation.getter(#mnemonicString), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future get mnemonicPassphrase => (super.noSuchMethod( + _i13.Future get mnemonicPassphrase => (super.noSuchMethod( Invocation.getter(#mnemonicPassphrase), - returnValue: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + ) as _i13.Future); @override bool get hasCalledExit => (super.noSuchMethod( Invocation.getter(#hasCalledExit), @@ -2377,9 +942,9 @@ class MockCoinServiceAPI extends _i1.Mock implements _i34.CoinServiceAPI { returnValue: 0, ) as int); @override - _i23.Future> prepareSend({ + _i13.Future> prepareSend({ required String? address, - required _i13.Amount? amount, + required _i10.Amount? amount, Map? args, }) => (super.noSuchMethod( @@ -2393,36 +958,36 @@ class MockCoinServiceAPI extends _i1.Mock implements _i34.CoinServiceAPI { }, ), returnValue: - _i23.Future>.value({}), - ) as _i23.Future>); + _i13.Future>.value({}), + ) as _i13.Future>); @override - _i23.Future confirmSend({required Map? txData}) => + _i13.Future confirmSend({required Map? txData}) => (super.noSuchMethod( Invocation.method( #confirmSend, [], {#txData: txData}, ), - returnValue: _i23.Future.value(''), - ) as _i23.Future); + returnValue: _i13.Future.value(''), + ) as _i13.Future); @override - _i23.Future refresh() => (super.noSuchMethod( + _i13.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( + _i13.Future updateNode(bool? shouldRefresh) => (super.noSuchMethod( Invocation.method( #updateNode, [shouldRefresh], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( @@ -2432,15 +997,15 @@ class MockCoinServiceAPI extends _i1.Mock implements _i34.CoinServiceAPI { returnValue: false, ) as bool); @override - _i23.Future testNetworkConnection() => (super.noSuchMethod( + _i13.Future testNetworkConnection() => (super.noSuchMethod( Invocation.method( #testNetworkConnection, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i13.Future.value(false), + ) as _i13.Future); @override - _i23.Future recoverFromMnemonic({ + _i13.Future recoverFromMnemonic({ required String? mnemonic, String? mnemonicPassphrase, required int? maxUnusedAddressGap, @@ -2459,40 +1024,40 @@ class MockCoinServiceAPI extends _i1.Mock implements _i34.CoinServiceAPI { #height: height, }, ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future initializeNew( + _i13.Future initializeNew( ({String mnemonicPassphrase, int wordCount})? data) => (super.noSuchMethod( Invocation.method( #initializeNew, [data], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future initializeExisting() => (super.noSuchMethod( + _i13.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future exit() => (super.noSuchMethod( + _i13.Future exit() => (super.noSuchMethod( Invocation.method( #exit, [], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future fullRescan( + _i13.Future fullRescan( int? maxUnusedAddressGap, int? maxNumberOfIndexesToCheck, ) => @@ -2504,12 +1069,12 @@ class MockCoinServiceAPI extends _i1.Mock implements _i34.CoinServiceAPI { maxNumberOfIndexesToCheck, ], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); @override - _i23.Future<_i13.Amount> estimateFeeFor( - _i13.Amount? amount, + _i13.Future<_i10.Amount> estimateFeeFor( + _i10.Amount? amount, int? feeRate, ) => (super.noSuchMethod( @@ -2520,7 +1085,7 @@ class MockCoinServiceAPI extends _i1.Mock implements _i34.CoinServiceAPI { feeRate, ], ), - returnValue: _i23.Future<_i13.Amount>.value(_FakeAmount_11( + returnValue: _i13.Future<_i10.Amount>.value(_FakeAmount_7( this, Invocation.method( #estimateFeeFor, @@ -2530,23 +1095,23 @@ class MockCoinServiceAPI extends _i1.Mock implements _i34.CoinServiceAPI { ], ), )), - ) as _i23.Future<_i13.Amount>); + ) as _i13.Future<_i10.Amount>); @override - _i23.Future generateNewAddress() => (super.noSuchMethod( + _i13.Future generateNewAddress() => (super.noSuchMethod( Invocation.method( #generateNewAddress, [], ), - returnValue: _i23.Future.value(false), - ) as _i23.Future); + returnValue: _i13.Future.value(false), + ) as _i13.Future); @override - _i23.Future updateSentCachedTxData(Map? txData) => + _i13.Future updateSentCachedTxData(Map? txData) => (super.noSuchMethod( Invocation.method( #updateSentCachedTxData, [txData], ), - returnValue: _i23.Future.value(), - returnValueForMissingStub: _i23.Future.value(), - ) as _i23.Future); + returnValue: _i13.Future.value(), + returnValueForMissingStub: _i13.Future.value(), + ) as _i13.Future); }