diff --git a/test/pages/send_view/send_view_test.mocks.dart b/test/pages/send_view/send_view_test.mocks.dart index c9414583d..52bc87fee 100644 --- a/test/pages/send_view/send_view_test.mocks.dart +++ b/test/pages/send_view/send_view_test.mocks.dart @@ -1283,10 +1283,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i27.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future initializeNew() => (super.noSuchMethod( + _i23.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i23.Future.value(), returnValueForMissingStub: _i23.Future.value(), @@ -3062,10 +3064,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: _i23.Future.value(false), ) as _i23.Future); @override - _i23.Future initializeNew() => (super.noSuchMethod( + _i23.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i23.Future.value(), returnValueForMissingStub: _i23.Future.value(), @@ -3415,10 +3419,12 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValueForMissingStub: _i23.Future.value(), ) as _i23.Future); @override - _i23.Future initializeNew() => (super.noSuchMethod( + _i23.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i23.Future.value(), returnValueForMissingStub: _i23.Future.value(), diff --git a/test/screen_tests/address_book_view/subviews/add_address_book_view_screen_test.mocks.dart b/test/screen_tests/address_book_view/subviews/add_address_book_view_screen_test.mocks.dart index 5edc4c538..29318d2c5 100644 --- a/test/screen_tests/address_book_view/subviews/add_address_book_view_screen_test.mocks.dart +++ b/test/screen_tests/address_book_view/subviews/add_address_book_view_screen_test.mocks.dart @@ -492,10 +492,12 @@ class MockManager extends _i1.Mock implements _i12.Manager { returnValue: _i9.Future.value(false), ) as _i9.Future); @override - _i9.Future initializeNew() => (super.noSuchMethod( + _i9.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), 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 a84bb6a51..cd9108d2a 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 @@ -453,10 +453,12 @@ class MockManager extends _i1.Mock implements _i10.Manager { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future initializeNew() => (super.noSuchMethod( + _i8.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), diff --git a/test/screen_tests/address_book_view/subviews/edit_address_book_entry_view_screen_test.mocks.dart b/test/screen_tests/address_book_view/subviews/edit_address_book_entry_view_screen_test.mocks.dart index f44df83ca..65ab3b1f2 100644 --- a/test/screen_tests/address_book_view/subviews/edit_address_book_entry_view_screen_test.mocks.dart +++ b/test/screen_tests/address_book_view/subviews/edit_address_book_entry_view_screen_test.mocks.dart @@ -451,10 +451,12 @@ class MockManager extends _i1.Mock implements _i10.Manager { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future initializeNew() => (super.noSuchMethod( + _i8.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), diff --git a/test/screen_tests/lockscreen_view_screen_test.mocks.dart b/test/screen_tests/lockscreen_view_screen_test.mocks.dart index 35a1a5f20..dd8f32b04 100644 --- a/test/screen_tests/lockscreen_view_screen_test.mocks.dart +++ b/test/screen_tests/lockscreen_view_screen_test.mocks.dart @@ -771,10 +771,12 @@ class MockManager extends _i1.Mock implements _i13.Manager { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future initializeNew() => (super.noSuchMethod( + _i8.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), 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 8526c77f3..87686d271 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 @@ -558,10 +558,12 @@ class MockManager extends _i1.Mock implements _i10.Manager { returnValue: _i7.Future.value(false), ) as _i7.Future); @override - _i7.Future initializeNew() => (super.noSuchMethod( + _i7.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), 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 ba9350c78..221cbb329 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 @@ -558,10 +558,12 @@ class MockManager extends _i1.Mock implements _i10.Manager { returnValue: _i7.Future.value(false), ) as _i7.Future); @override - _i7.Future initializeNew() => (super.noSuchMethod( + _i7.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), 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 5f8055c5a..abb608127 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 @@ -558,10 +558,12 @@ class MockManager extends _i1.Mock implements _i10.Manager { returnValue: _i7.Future.value(false), ) as _i7.Future); @override - _i7.Future initializeNew() => (super.noSuchMethod( + _i7.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), diff --git a/test/screen_tests/onboarding/backup_key_view_screen_test.mocks.dart b/test/screen_tests/onboarding/backup_key_view_screen_test.mocks.dart index d621a4ae0..b60b30832 100644 --- a/test/screen_tests/onboarding/backup_key_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/backup_key_view_screen_test.mocks.dart @@ -325,10 +325,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future initializeNew() => (super.noSuchMethod( + _i8.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), diff --git a/test/screen_tests/onboarding/backup_key_warning_view_screen_test.mocks.dart b/test/screen_tests/onboarding/backup_key_warning_view_screen_test.mocks.dart index 6802650ab..90907cd14 100644 --- a/test/screen_tests/onboarding/backup_key_warning_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/backup_key_warning_view_screen_test.mocks.dart @@ -556,10 +556,12 @@ class MockManager extends _i1.Mock implements _i10.Manager { returnValue: _i7.Future.value(false), ) as _i7.Future); @override - _i7.Future initializeNew() => (super.noSuchMethod( + _i7.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), diff --git a/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart b/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart index a9b4549a0..460a35f50 100644 --- a/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/create_pin_view_screen_test.mocks.dart @@ -771,10 +771,12 @@ class MockManager extends _i1.Mock implements _i13.Manager { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future initializeNew() => (super.noSuchMethod( + _i8.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), diff --git a/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart b/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart index a33b13e7a..b4a8329da 100644 --- a/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/restore_wallet_view_screen_test.mocks.dart @@ -612,10 +612,12 @@ class MockManager extends _i1.Mock implements _i13.Manager { returnValue: _i9.Future.value(false), ) as _i9.Future); @override - _i9.Future initializeNew() => (super.noSuchMethod( + _i9.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), diff --git a/test/screen_tests/onboarding/verify_backup_key_view_screen_test.mocks.dart b/test/screen_tests/onboarding/verify_backup_key_view_screen_test.mocks.dart index e372e3781..25241ab80 100644 --- a/test/screen_tests/onboarding/verify_backup_key_view_screen_test.mocks.dart +++ b/test/screen_tests/onboarding/verify_backup_key_view_screen_test.mocks.dart @@ -325,10 +325,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future initializeNew() => (super.noSuchMethod( + _i8.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), diff --git a/test/screen_tests/settings_view/settings_subviews/currency_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/currency_view_screen_test.mocks.dart index ece50ef76..d77078d9c 100644 --- a/test/screen_tests/settings_view/settings_subviews/currency_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/currency_view_screen_test.mocks.dart @@ -325,10 +325,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future initializeNew() => (super.noSuchMethod( + _i8.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), diff --git a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart index b56c08998..0b8976a88 100644 --- a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/add_custom_node_view_screen_test.mocks.dart @@ -540,10 +540,12 @@ class MockManager extends _i1.Mock implements _i12.Manager { returnValue: _i9.Future.value(false), ) as _i9.Future); @override - _i9.Future initializeNew() => (super.noSuchMethod( + _i9.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), diff --git a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart index 5e62fd6d4..803ef81c6 100644 --- a/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/network_settings_subviews/node_details_view_screen_test.mocks.dart @@ -540,10 +540,12 @@ class MockManager extends _i1.Mock implements _i12.Manager { returnValue: _i9.Future.value(false), ) as _i9.Future); @override - _i9.Future initializeNew() => (super.noSuchMethod( + _i9.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i9.Future.value(), returnValueForMissingStub: _i9.Future.value(), diff --git a/test/screen_tests/settings_view/settings_subviews/wallet_backup_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/wallet_backup_view_screen_test.mocks.dart index 671af0d4b..4e59b2a40 100644 --- a/test/screen_tests/settings_view/settings_subviews/wallet_backup_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/wallet_backup_view_screen_test.mocks.dart @@ -325,10 +325,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future initializeNew() => (super.noSuchMethod( + _i8.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), diff --git a/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rescan_warning_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rescan_warning_view_screen_test.mocks.dart index e3a475bdd..151ecd1ab 100644 --- a/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rescan_warning_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/rescan_warning_view_screen_test.mocks.dart @@ -325,10 +325,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future initializeNew() => (super.noSuchMethod( + _i8.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), diff --git a/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/wallet_delete_mnemonic_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/wallet_delete_mnemonic_view_screen_test.mocks.dart index 439dd35ca..d9e9603d3 100644 --- a/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/wallet_delete_mnemonic_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/wallet_settings_subviews/wallet_delete_mnemonic_view_screen_test.mocks.dart @@ -556,10 +556,12 @@ class MockManager extends _i1.Mock implements _i10.Manager { returnValue: _i7.Future.value(false), ) as _i7.Future); @override - _i7.Future initializeNew() => (super.noSuchMethod( + _i7.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), diff --git a/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart index cc20dce98..268529741 100644 --- a/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_subviews/wallet_settings_view_screen_test.mocks.dart @@ -154,18 +154,12 @@ class MockCachedElectrumX extends _i1.Mock implements _i7.CachedElectrumX { _i8.Future>.value({}), ) as _i8.Future>); @override - _i8.Future> getUsedCoinSerials({ - required _i9.Coin? coin, - int? startNumber = 0, - }) => + _i8.Future> getUsedCoinSerials({required _i9.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getUsedCoinSerials, [], - { - #coin: coin, - #startNumber: startNumber, - }, + {#coin: coin}, ), returnValue: _i8.Future>.value([]), ) as _i8.Future>); @@ -792,10 +786,12 @@ class MockManager extends _i1.Mock implements _i15.Manager { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future initializeNew() => (super.noSuchMethod( + _i8.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), diff --git a/test/screen_tests/settings_view/settings_view_screen_test.mocks.dart b/test/screen_tests/settings_view/settings_view_screen_test.mocks.dart index 4cfabb7bc..97837b511 100644 --- a/test/screen_tests/settings_view/settings_view_screen_test.mocks.dart +++ b/test/screen_tests/settings_view/settings_view_screen_test.mocks.dart @@ -556,10 +556,12 @@ class MockManager extends _i1.Mock implements _i10.Manager { returnValue: _i7.Future.value(false), ) as _i7.Future); @override - _i7.Future initializeNew() => (super.noSuchMethod( + _i7.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i7.Future.value(), returnValueForMissingStub: _i7.Future.value(), 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 b48b433a9..97563c8ad 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 @@ -327,10 +327,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future initializeNew() => (super.noSuchMethod( + _i8.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), 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 index df0e2d613..bab69e5d2 100644 --- 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 @@ -326,10 +326,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future initializeNew() => (super.noSuchMethod( + _i8.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), diff --git a/test/screen_tests/wallet_view/receive_view_screen_test.mocks.dart b/test/screen_tests/wallet_view/receive_view_screen_test.mocks.dart index e00ef1039..75c6d795e 100644 --- a/test/screen_tests/wallet_view/receive_view_screen_test.mocks.dart +++ b/test/screen_tests/wallet_view/receive_view_screen_test.mocks.dart @@ -325,10 +325,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future initializeNew() => (super.noSuchMethod( + _i8.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), 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 e5e86bf6e..eb261af73 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 @@ -367,10 +367,12 @@ class MockManager extends _i1.Mock implements _i9.Manager { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future initializeNew() => (super.noSuchMethod( + _i8.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), 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 674ad6549..d43cb5430 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 @@ -327,10 +327,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: _i8.Future.value(false), ) as _i8.Future); @override - _i8.Future initializeNew() => (super.noSuchMethod( + _i8.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i8.Future.value(), returnValueForMissingStub: _i8.Future.value(), diff --git a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart index 32719f306..80b582256 100644 --- a/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart +++ b/test/services/coins/bitcoin/bitcoin_wallet_test.mocks.dart @@ -485,18 +485,12 @@ class MockCachedElectrumX extends _i1.Mock implements _i5.CachedElectrumX { _i4.Future>.value({}), ) as _i4.Future>); @override - _i4.Future> getUsedCoinSerials({ - required _i6.Coin? coin, - int? startNumber = 0, - }) => + _i4.Future> getUsedCoinSerials({required _i6.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getUsedCoinSerials, [], - { - #coin: coin, - #startNumber: startNumber, - }, + {#coin: coin}, ), returnValue: _i4.Future>.value([]), ) as _i4.Future>); diff --git a/test/services/coins/bitcoincash/bitcoincash_wallet_test.dart b/test/services/coins/bitcoincash/bitcoincash_wallet_test.dart index 661c9a1b7..f3598dfa1 100644 --- a/test/services/coins/bitcoincash/bitcoincash_wallet_test.dart +++ b/test/services/coins/bitcoincash/bitcoincash_wallet_test.dart @@ -626,7 +626,8 @@ void main() async { await Hive.openBox(testWalletId); await Hive.openBox(DB.boxNamePrefs); - await expectLater(() => bch?.initializeNew(), throwsA(isA())) + await expectLater( + () => bch?.initializeNew(null), throwsA(isA())) .then((_) { expect(secureStore.interactions, 2); verifyNever(client?.ping()).called(0); diff --git a/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart b/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart index 5599f3a29..52ae05ecd 100644 --- a/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart +++ b/test/services/coins/bitcoincash/bitcoincash_wallet_test.mocks.dart @@ -485,18 +485,12 @@ class MockCachedElectrumX extends _i1.Mock implements _i5.CachedElectrumX { _i4.Future>.value({}), ) as _i4.Future>); @override - _i4.Future> getUsedCoinSerials({ - required _i6.Coin? coin, - int? startNumber = 0, - }) => + _i4.Future> getUsedCoinSerials({required _i6.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getUsedCoinSerials, [], - { - #coin: coin, - #startNumber: startNumber, - }, + {#coin: coin}, ), returnValue: _i4.Future>.value([]), ) as _i4.Future>); diff --git a/test/services/coins/dogecoin/dogecoin_wallet_test.dart b/test/services/coins/dogecoin/dogecoin_wallet_test.dart index 712000aae..32872dd04 100644 --- a/test/services/coins/dogecoin/dogecoin_wallet_test.dart +++ b/test/services/coins/dogecoin/dogecoin_wallet_test.dart @@ -483,7 +483,8 @@ void main() { await Hive.openBox(testWalletId); await Hive.openBox(DB.boxNamePrefs); - await expectLater(() => doge?.initializeNew(), throwsA(isA())) + await expectLater( + () => doge?.initializeNew(null), throwsA(isA())) .then((_) { expect(secureStore.interactions, 2); verifyNever(client?.ping()).called(0); diff --git a/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart b/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart index b084875f5..1027d0592 100644 --- a/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart +++ b/test/services/coins/dogecoin/dogecoin_wallet_test.mocks.dart @@ -485,18 +485,12 @@ class MockCachedElectrumX extends _i1.Mock implements _i5.CachedElectrumX { _i4.Future>.value({}), ) as _i4.Future>); @override - _i4.Future> getUsedCoinSerials({ - required _i6.Coin? coin, - int? startNumber = 0, - }) => + _i4.Future> getUsedCoinSerials({required _i6.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getUsedCoinSerials, [], - { - #coin: coin, - #startNumber: startNumber, - }, + {#coin: coin}, ), returnValue: _i4.Future>.value([]), ) as _i4.Future>); diff --git a/test/services/coins/fake_coin_service_api.dart b/test/services/coins/fake_coin_service_api.dart index ea70545d1..413c493ab 100644 --- a/test/services/coins/fake_coin_service_api.dart +++ b/test/services/coins/fake_coin_service_api.dart @@ -88,7 +88,9 @@ class FakeCoinServiceAPI extends CoinServiceAPI { } @override - Future initializeNew() { + Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data, + ) { // TODO: implement initializeNew throw UnimplementedError(); } diff --git a/test/services/coins/firo/firo_wallet_test.mocks.dart b/test/services/coins/firo/firo_wallet_test.mocks.dart index 0f7a0b0a3..de0ee0bcb 100644 --- a/test/services/coins/firo/firo_wallet_test.mocks.dart +++ b/test/services/coins/firo/firo_wallet_test.mocks.dart @@ -512,18 +512,12 @@ class MockCachedElectrumX extends _i1.Mock implements _i6.CachedElectrumX { _i5.Future>.value({}), ) as _i5.Future>); @override - _i5.Future> getUsedCoinSerials({ - required _i7.Coin? coin, - int? startNumber = 0, - }) => + _i5.Future> getUsedCoinSerials({required _i7.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getUsedCoinSerials, [], - { - #coin: coin, - #startNumber: startNumber, - }, + {#coin: coin}, ), returnValue: _i5.Future>.value([]), ) as _i5.Future>); diff --git a/test/services/coins/manager_test.mocks.dart b/test/services/coins/manager_test.mocks.dart index ba4c8eb37..17d9efd5f 100644 --- a/test/services/coins/manager_test.mocks.dart +++ b/test/services/coins/manager_test.mocks.dart @@ -304,6 +304,11 @@ class MockFiroWallet extends _i1.Mock implements _i10.FiroWallet { ), ) as _i5.CachedElectrumX); @override + bool get lelantusCoinIsarRescanRequired => (super.noSuchMethod( + Invocation.getter(#lelantusCoinIsarRescanRequired), + returnValue: false, + ) as bool); + @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), returnValue: false, @@ -552,15 +557,35 @@ class MockFiroWallet extends _i1.Mock implements _i10.FiroWallet { returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); @override - _i11.Future initializeNew() => (super.noSuchMethod( + _i11.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, + [data], + ), + returnValue: _i11.Future.value(), + returnValueForMissingStub: _i11.Future.value(), + ) as _i11.Future); + @override + _i11.Future setLelantusCoinIsarRescanRequiredDone() => + (super.noSuchMethod( + Invocation.method( + #setLelantusCoinIsarRescanRequiredDone, [], ), returnValue: _i11.Future.value(), returnValueForMissingStub: _i11.Future.value(), ) as _i11.Future); @override + _i11.Future firoRescanRecovery() => (super.noSuchMethod( + Invocation.method( + #firoRescanRecovery, + [], + ), + returnValue: _i11.Future.value(false), + ) as _i11.Future); + @override _i11.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, diff --git a/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart b/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart index ea48f7e85..403199041 100644 --- a/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart +++ b/test/services/coins/namecoin/namecoin_wallet_test.mocks.dart @@ -485,18 +485,12 @@ class MockCachedElectrumX extends _i1.Mock implements _i5.CachedElectrumX { _i4.Future>.value({}), ) as _i4.Future>); @override - _i4.Future> getUsedCoinSerials({ - required _i6.Coin? coin, - int? startNumber = 0, - }) => + _i4.Future> getUsedCoinSerials({required _i6.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getUsedCoinSerials, [], - { - #coin: coin, - #startNumber: startNumber, - }, + {#coin: coin}, ), returnValue: _i4.Future>.value([]), ) as _i4.Future>); diff --git a/test/services/coins/particl/particl_wallet_test.mocks.dart b/test/services/coins/particl/particl_wallet_test.mocks.dart index 862c352d2..a93cde382 100644 --- a/test/services/coins/particl/particl_wallet_test.mocks.dart +++ b/test/services/coins/particl/particl_wallet_test.mocks.dart @@ -485,18 +485,12 @@ class MockCachedElectrumX extends _i1.Mock implements _i5.CachedElectrumX { _i4.Future>.value({}), ) as _i4.Future>); @override - _i4.Future> getUsedCoinSerials({ - required _i6.Coin? coin, - int? startNumber = 0, - }) => + _i4.Future> getUsedCoinSerials({required _i6.Coin? coin}) => (super.noSuchMethod( Invocation.method( #getUsedCoinSerials, [], - { - #coin: coin, - #startNumber: startNumber, - }, + {#coin: coin}, ), returnValue: _i4.Future>.value([]), ) as _i4.Future>); diff --git a/test/widget_tests/managed_favorite_test.mocks.dart b/test/widget_tests/managed_favorite_test.mocks.dart index f81f66ebd..e980b67ee 100644 --- a/test/widget_tests/managed_favorite_test.mocks.dart +++ b/test/widget_tests/managed_favorite_test.mocks.dart @@ -1078,10 +1078,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future initializeNew() => (super.noSuchMethod( + _i23.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i23.Future.value(), returnValueForMissingStub: _i23.Future.value(), @@ -3056,10 +3058,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: _i23.Future.value(false), ) as _i23.Future); @override - _i23.Future initializeNew() => (super.noSuchMethod( + _i23.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i23.Future.value(), returnValueForMissingStub: _i23.Future.value(), @@ -3409,10 +3413,12 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValueForMissingStub: _i23.Future.value(), ) as _i23.Future); @override - _i23.Future initializeNew() => (super.noSuchMethod( + _i23.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i23.Future.value(), returnValueForMissingStub: _i23.Future.value(), 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 2079f64b0..982bd16b1 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 @@ -1162,10 +1162,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i28.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i22.Future initializeNew() => (super.noSuchMethod( + _i22.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i22.Future.value(), returnValueForMissingStub: _i22.Future.value(), @@ -2302,10 +2304,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: _i22.Future.value(false), ) as _i22.Future); @override - _i22.Future initializeNew() => (super.noSuchMethod( + _i22.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i22.Future.value(), returnValueForMissingStub: _i22.Future.value(), @@ -2655,10 +2659,12 @@ class MockCoinServiceAPI extends _i1.Mock implements _i19.CoinServiceAPI { returnValueForMissingStub: _i22.Future.value(), ) as _i22.Future); @override - _i22.Future initializeNew() => (super.noSuchMethod( + _i22.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i22.Future.value(), returnValueForMissingStub: _i22.Future.value(), diff --git a/test/widget_tests/transaction_card_test.mocks.dart b/test/widget_tests/transaction_card_test.mocks.dart index 66bd37cf0..90afc98be 100644 --- a/test/widget_tests/transaction_card_test.mocks.dart +++ b/test/widget_tests/transaction_card_test.mocks.dart @@ -689,10 +689,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: _i19.Future.value(false), ) as _i19.Future); @override - _i19.Future initializeNew() => (super.noSuchMethod( + _i19.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), @@ -1046,10 +1048,12 @@ class MockCoinServiceAPI extends _i1.Mock implements _i7.CoinServiceAPI { returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); @override - _i19.Future initializeNew() => (super.noSuchMethod( + _i19.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), @@ -1313,6 +1317,11 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { ), ) as _i13.CachedElectrumX); @override + bool get lelantusCoinIsarRescanRequired => (super.noSuchMethod( + Invocation.getter(#lelantusCoinIsarRescanRequired), + returnValue: false, + ) as bool); + @override bool get isRefreshing => (super.noSuchMethod( Invocation.getter(#isRefreshing), returnValue: false, @@ -1561,15 +1570,35 @@ class MockFiroWallet extends _i1.Mock implements _i23.FiroWallet { returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); @override - _i19.Future initializeNew() => (super.noSuchMethod( + _i19.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, + [data], + ), + returnValue: _i19.Future.value(), + returnValueForMissingStub: _i19.Future.value(), + ) as _i19.Future); + @override + _i19.Future setLelantusCoinIsarRescanRequiredDone() => + (super.noSuchMethod( + Invocation.method( + #setLelantusCoinIsarRescanRequiredDone, [], ), returnValue: _i19.Future.value(), returnValueForMissingStub: _i19.Future.value(), ) as _i19.Future); @override + _i19.Future firoRescanRecovery() => (super.noSuchMethod( + Invocation.method( + #firoRescanRecovery, + [], + ), + returnValue: _i19.Future.value(false), + ) as _i19.Future); + @override _i19.Future initializeExisting() => (super.noSuchMethod( Invocation.method( #initializeExisting, diff --git a/test/widget_tests/wallet_card_test.mocks.dart b/test/widget_tests/wallet_card_test.mocks.dart index f2d6e83b1..14744fc3f 100644 --- a/test/widget_tests/wallet_card_test.mocks.dart +++ b/test/widget_tests/wallet_card_test.mocks.dart @@ -817,10 +817,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i24.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i21.Future initializeNew() => (super.noSuchMethod( + _i21.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i21.Future.value(), returnValueForMissingStub: _i21.Future.value(), 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 36d369769..ef519d4c9 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 @@ -1072,10 +1072,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i26.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future initializeNew() => (super.noSuchMethod( + _i23.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i23.Future.value(), returnValueForMissingStub: _i23.Future.value(), @@ -2411,10 +2413,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: _i23.Future.value(false), ) as _i23.Future); @override - _i23.Future initializeNew() => (super.noSuchMethod( + _i23.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i23.Future.value(), returnValueForMissingStub: _i23.Future.value(), @@ -2764,10 +2768,12 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValueForMissingStub: _i23.Future.value(), ) as _i23.Future); @override - _i23.Future initializeNew() => (super.noSuchMethod( + _i23.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i23.Future.value(), returnValueForMissingStub: _i23.Future.value(), 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 357672d7a..16b4aa49e 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 @@ -1174,10 +1174,12 @@ class MockBitcoinWallet extends _i1.Mock implements _i29.BitcoinWallet { returnValueForMissingStub: null, ); @override - _i23.Future initializeNew() => (super.noSuchMethod( + _i23.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i23.Future.value(), returnValueForMissingStub: _i23.Future.value(), @@ -2514,10 +2516,12 @@ class MockManager extends _i1.Mock implements _i6.Manager { returnValue: _i23.Future.value(false), ) as _i23.Future); @override - _i23.Future initializeNew() => (super.noSuchMethod( + _i23.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i23.Future.value(), returnValueForMissingStub: _i23.Future.value(), @@ -2867,10 +2871,12 @@ class MockCoinServiceAPI extends _i1.Mock implements _i20.CoinServiceAPI { returnValueForMissingStub: _i23.Future.value(), ) as _i23.Future); @override - _i23.Future initializeNew() => (super.noSuchMethod( + _i23.Future initializeNew( + ({String mnemonicPassphrase, int wordCount})? data) => + (super.noSuchMethod( Invocation.method( #initializeNew, - [], + [data], ), returnValue: _i23.Future.value(), returnValueForMissingStub: _i23.Future.value(),