diff --git a/test/pages/send_view/send_view_test.mocks.dart b/test/pages/send_view/send_view_test.mocks.dart index 4d7402aaf..9479bb190 100644 --- a/test/pages/send_view/send_view_test.mocks.dart +++ b/test/pages/send_view/send_view_test.mocks.dart @@ -9,6 +9,7 @@ import 'dart:ui' as _i19; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; import 'package:mockito/mockito.dart' as _i1; +import 'package:stackwallet/db/main_db.dart' as _i13; import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i11; import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i10; import 'package:stackwallet/models/balance.dart' as _i12; @@ -21,7 +22,6 @@ import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i21; import 'package:stackwallet/services/coins/coin_service.dart' as _i14; import 'package:stackwallet/services/coins/manager.dart' as _i6; import 'package:stackwallet/services/locale_service.dart' as _i24; -import 'package:stackwallet/services/mixins/wallet_db.dart' as _i13; import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i8; @@ -151,8 +151,8 @@ class _FakeBalance_9 extends _i1.SmartFake implements _i12.Balance { ); } -class _FakeIDB_10 extends _i1.SmartFake implements _i13.IDB { - _FakeIDB_10( +class _FakeMainDB_10 extends _i1.SmartFake implements _i13.MainDB { + _FakeMainDB_10( Object parent, Invocation parentInvocation, ) : super( @@ -1037,13 +1037,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i21.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i13.IDB get db => (super.noSuchMethod( + _i13.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeIDB_10( + returnValue: _FakeMainDB_10( this, Invocation.getter(#db), ), - ) as _i13.IDB); + ) as _i13.MainDB); @override _i17.Future exit() => (super.noSuchMethod( Invocation.method( diff --git a/test/services/coins/manager_test.mocks.dart b/test/services/coins/manager_test.mocks.dart index cb02aa126..403e10555 100644 --- a/test/services/coins/manager_test.mocks.dart +++ b/test/services/coins/manager_test.mocks.dart @@ -7,6 +7,7 @@ import 'dart:async' as _i10; import 'package:decimal/decimal.dart' as _i8; import 'package:mockito/mockito.dart' as _i1; +import 'package:stackwallet/db/main_db.dart' as _i7; import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i5; import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i4; import 'package:stackwallet/models/balance.dart' as _i6; @@ -14,7 +15,6 @@ import 'package:stackwallet/models/isar/models/isar_models.dart' as _i12; import 'package:stackwallet/models/lelantus_coin.dart' as _i13; import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i3; import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as _i9; -import 'package:stackwallet/services/mixins/wallet_db.dart' as _i7; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i2; import 'package:stackwallet/utilities/enums/coin_enum.dart' as _i11; @@ -83,8 +83,8 @@ class _FakeBalance_4 extends _i1.SmartFake implements _i6.Balance { ); } -class _FakeIDB_5 extends _i1.SmartFake implements _i7.IDB { - _FakeIDB_5( +class _FakeMainDB_5 extends _i1.SmartFake implements _i7.MainDB { + _FakeMainDB_5( Object parent, Invocation parentInvocation, ) : super( @@ -337,13 +337,13 @@ class MockFiroWallet extends _i1.Mock implements _i9.FiroWallet { returnValueForMissingStub: null, ); @override - _i7.IDB get db => (super.noSuchMethod( + _i7.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeIDB_5( + returnValue: _FakeMainDB_5( this, Invocation.getter(#db), ), - ) as _i7.IDB); + ) as _i7.MainDB); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( diff --git a/test/widget_tests/managed_favorite_test.mocks.dart b/test/widget_tests/managed_favorite_test.mocks.dart index 31ab09dc3..90be31d3f 100644 --- a/test/widget_tests/managed_favorite_test.mocks.dart +++ b/test/widget_tests/managed_favorite_test.mocks.dart @@ -9,6 +9,7 @@ import 'dart:ui' as _i19; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; import 'package:mockito/mockito.dart' as _i1; +import 'package:stackwallet/db/main_db.dart' as _i12; 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; @@ -19,7 +20,6 @@ import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i20; import 'package:stackwallet/services/coins/coin_service.dart' as _i14; import 'package:stackwallet/services/coins/manager.dart' as _i6; import 'package:stackwallet/services/locale_service.dart' as _i23; -import 'package:stackwallet/services/mixins/wallet_db.dart' as _i12; import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i7; @@ -136,8 +136,8 @@ class _FakeBalance_8 extends _i1.SmartFake implements _i11.Balance { ); } -class _FakeIDB_9 extends _i1.SmartFake implements _i12.IDB { - _FakeIDB_9( +class _FakeMainDB_9 extends _i1.SmartFake implements _i12.MainDB { + _FakeMainDB_9( Object parent, Invocation parentInvocation, ) : super( @@ -828,13 +828,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i12.IDB get db => (super.noSuchMethod( + _i12.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeIDB_9( + returnValue: _FakeMainDB_9( this, Invocation.getter(#db), ), - ) as _i12.IDB); + ) as _i12.MainDB); @override _i17.Future exit() => (super.noSuchMethod( Invocation.method( 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 8730e670d..2535d905e 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 @@ -9,6 +9,7 @@ import 'dart:ui' as _i18; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; import 'package:mockito/mockito.dart' as _i1; +import 'package:stackwallet/db/main_db.dart' as _i12; 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; @@ -17,7 +18,6 @@ import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i19; import 'package:stackwallet/services/coins/coin_service.dart' as _i13; import 'package:stackwallet/services/coins/manager.dart' as _i6; -import 'package:stackwallet/services/mixins/wallet_db.dart' as _i12; import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i7; @@ -132,8 +132,8 @@ class _FakeBalance_8 extends _i1.SmartFake implements _i11.Balance { ); } -class _FakeIDB_9 extends _i1.SmartFake implements _i12.IDB { - _FakeIDB_9( +class _FakeMainDB_9 extends _i1.SmartFake implements _i12.MainDB { + _FakeMainDB_9( Object parent, Invocation parentInvocation, ) : super( @@ -813,13 +813,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i19.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i12.IDB get db => (super.noSuchMethod( + _i12.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeIDB_9( + returnValue: _FakeMainDB_9( this, Invocation.getter(#db), ), - ) as _i12.IDB); + ) as _i12.MainDB); @override _i16.Future exit() => (super.noSuchMethod( Invocation.method( diff --git a/test/widget_tests/transaction_card_test.mocks.dart b/test/widget_tests/transaction_card_test.mocks.dart index f86713805..4c77114bc 100644 --- a/test/widget_tests/transaction_card_test.mocks.dart +++ b/test/widget_tests/transaction_card_test.mocks.dart @@ -10,6 +10,7 @@ import 'package:decimal/decimal.dart' as _i14; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; import 'package:mockito/mockito.dart' as _i1; +import 'package:stackwallet/db/main_db.dart' as _i13; import 'package:stackwallet/electrumx_rpc/cached_electrumx.dart' as _i12; import 'package:stackwallet/electrumx_rpc/electrumx.dart' as _i11; import 'package:stackwallet/models/balance.dart' as _i9; @@ -21,7 +22,6 @@ import 'package:stackwallet/services/coins/coin_service.dart' as _i7; import 'package:stackwallet/services/coins/firo/firo_wallet.dart' as _i22; import 'package:stackwallet/services/coins/manager.dart' as _i6; import 'package:stackwallet/services/locale_service.dart' as _i23; -import 'package:stackwallet/services/mixins/wallet_db.dart' as _i13; import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/notes_service.dart' as _i28; import 'package:stackwallet/services/price_service.dart' as _i27; @@ -151,8 +151,8 @@ class _FakeCachedElectrumX_9 extends _i1.SmartFake ); } -class _FakeIDB_10 extends _i1.SmartFake implements _i13.IDB { - _FakeIDB_10( +class _FakeMainDB_10 extends _i1.SmartFake implements _i13.MainDB { + _FakeMainDB_10( Object parent, Invocation parentInvocation, ) : super( @@ -1250,13 +1250,13 @@ class MockFiroWallet extends _i1.Mock implements _i22.FiroWallet { returnValueForMissingStub: null, ); @override - _i13.IDB get db => (super.noSuchMethod( + _i13.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeIDB_10( + returnValue: _FakeMainDB_10( this, Invocation.getter(#db), ), - ) as _i13.IDB); + ) as _i13.MainDB); @override bool validateAddress(String? address) => (super.noSuchMethod( Invocation.method( diff --git a/test/widget_tests/wallet_card_test.mocks.dart b/test/widget_tests/wallet_card_test.mocks.dart index 7fa2ae018..3dd40d057 100644 --- a/test/widget_tests/wallet_card_test.mocks.dart +++ b/test/widget_tests/wallet_card_test.mocks.dart @@ -9,6 +9,7 @@ import 'dart:ui' as _i17; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; import 'package:mockito/mockito.dart' as _i1; +import 'package:stackwallet/db/main_db.dart' as _i12; 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; @@ -17,7 +18,6 @@ import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i18; import 'package:stackwallet/services/coins/manager.dart' as _i6; import 'package:stackwallet/services/locale_service.dart' as _i21; -import 'package:stackwallet/services/mixins/wallet_db.dart' as _i12; import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i7; @@ -132,8 +132,8 @@ class _FakeBalance_8 extends _i1.SmartFake implements _i11.Balance { ); } -class _FakeIDB_9 extends _i1.SmartFake implements _i12.IDB { - _FakeIDB_9( +class _FakeMainDB_9 extends _i1.SmartFake implements _i12.MainDB { + _FakeMainDB_9( Object parent, Invocation parentInvocation, ) : super( @@ -576,13 +576,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i18.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i12.IDB get db => (super.noSuchMethod( + _i12.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeIDB_9( + returnValue: _FakeMainDB_9( this, Invocation.getter(#db), ), - ) as _i12.IDB); + ) as _i12.MainDB); @override _i15.Future exit() => (super.noSuchMethod( Invocation.method( 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 b939e96d8..5cd61baef 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 @@ -9,6 +9,7 @@ import 'dart:ui' as _i19; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; import 'package:mockito/mockito.dart' as _i1; +import 'package:stackwallet/db/main_db.dart' as _i12; 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; @@ -18,7 +19,6 @@ import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i20; import 'package:stackwallet/services/coins/coin_service.dart' as _i14; import 'package:stackwallet/services/coins/manager.dart' as _i6; -import 'package:stackwallet/services/mixins/wallet_db.dart' as _i12; import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i7; @@ -135,8 +135,8 @@ class _FakeBalance_8 extends _i1.SmartFake implements _i11.Balance { ); } -class _FakeIDB_9 extends _i1.SmartFake implements _i12.IDB { - _FakeIDB_9( +class _FakeMainDB_9 extends _i1.SmartFake implements _i12.MainDB { + _FakeMainDB_9( Object parent, Invocation parentInvocation, ) : super( @@ -827,13 +827,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i12.IDB get db => (super.noSuchMethod( + _i12.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeIDB_9( + returnValue: _FakeMainDB_9( this, Invocation.getter(#db), ), - ) as _i12.IDB); + ) as _i12.MainDB); @override _i17.Future exit() => (super.noSuchMethod( Invocation.method( 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 488bdcb8c..b42a0843e 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 @@ -9,6 +9,7 @@ import 'dart:ui' as _i19; import 'package:flutter/foundation.dart' as _i4; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; import 'package:mockito/mockito.dart' as _i1; +import 'package:stackwallet/db/main_db.dart' as _i12; 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; @@ -18,7 +19,6 @@ import 'package:stackwallet/models/paymint/fee_object_model.dart' as _i8; import 'package:stackwallet/services/coins/bitcoin/bitcoin_wallet.dart' as _i20; import 'package:stackwallet/services/coins/coin_service.dart' as _i14; import 'package:stackwallet/services/coins/manager.dart' as _i6; -import 'package:stackwallet/services/mixins/wallet_db.dart' as _i12; import 'package:stackwallet/services/node_service.dart' as _i3; import 'package:stackwallet/services/transaction_notification_tracker.dart' as _i7; @@ -135,8 +135,8 @@ class _FakeBalance_8 extends _i1.SmartFake implements _i11.Balance { ); } -class _FakeIDB_9 extends _i1.SmartFake implements _i12.IDB { - _FakeIDB_9( +class _FakeMainDB_9 extends _i1.SmartFake implements _i12.MainDB { + _FakeMainDB_9( Object parent, Invocation parentInvocation, ) : super( @@ -827,13 +827,13 @@ class MockBitcoinWallet extends _i1.Mock implements _i20.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i12.IDB get db => (super.noSuchMethod( + _i12.MainDB get db => (super.noSuchMethod( Invocation.getter(#db), - returnValue: _FakeIDB_9( + returnValue: _FakeMainDB_9( this, Invocation.getter(#db), ), - ) as _i12.IDB); + ) as _i12.MainDB); @override _i17.Future exit() => (super.noSuchMethod( Invocation.method(