diff --git a/CHANGELOG.md b/CHANGELOG.md index ae1cf4c5..5c18a0bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 3.0.0-beta11 +## 3.0.0-beta12 - Improvements during chain switchng by properly catching errors and rejections and highlighting non-approved chains by the connected wallet. diff --git a/analysis_options.yaml b/analysis_options.yaml index 66e21246..b49fda3b 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -32,10 +32,16 @@ linter: analyzer: exclude: - - "**/*.g.dart" - - "**/*.freezed.dart" - - "*.freezed.dart" - - "*.g.dart" + - lib/*.g.dart + - lib/*.freezed.dart + - lib/models/*.g.dart + - lib/models/*.freezed.dart + - lib/services/*.g.dart + - lib/services/*.freezed.dart + - lib/services/blockchain_api_service/*.g.dart + - lib/services/blockchain_api_service/*.freezed.dart + - lib/theme/*.g.dart + - lib/theme/*.freezed.dart errors: invalid_annotation_target: ignore # Additional information about this file can be found at diff --git a/example/pubspec.lock b/example/pubspec.lock index 2df51190..af325f1f 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -337,22 +337,6 @@ packages: url: "https://pub.dev" source: hosted version: "3.2.0" - flex_color_picker: - dependency: transitive - description: - name: flex_color_picker - sha256: f37476ab3e80dcaca94e428e159944d465dd16312fda9ff41e07e86f04bfa51c - url: "https://pub.dev" - source: hosted - version: "3.3.0" - flex_seed_scheme: - dependency: transitive - description: - name: flex_seed_scheme - sha256: "29c12aba221eb8a368a119685371381f8035011d18de5ba277ad11d7dfb8657f" - url: "https://pub.dev" - source: hosted - version: "1.4.0" flutter: dependency: "direct main" description: flutter @@ -440,14 +424,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.1" - hexagon: - dependency: transitive - description: - name: hexagon - sha256: "058f445a8c293c2a0474546cd6f592693bf8b014f5c682e8174d34d5fd024d87" - url: "https://pub.dev" - source: hosted - version: "0.2.0" http: dependency: transitive description: @@ -480,14 +456,6 @@ packages: url: "https://pub.dev" source: hosted version: "4.0.17" - intl: - dependency: transitive - description: - name: intl - sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" - url: "https://pub.dev" - source: hosted - version: "0.18.1" io: dependency: transitive description: @@ -1093,14 +1061,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" - w_common: - dependency: transitive - description: - name: w_common - sha256: "54e34b485571aa5332a7ab22658fcd1f747558f03fb04d9715e2d2d9bd6ee32e" - url: "https://pub.dev" - source: hosted - version: "3.0.0" wallet: dependency: transitive description: @@ -1147,7 +1107,7 @@ packages: path: ".." relative: true source: path - version: "3.0.0-beta11" + version: "3.0.0-beta12" web_socket_channel: dependency: transitive description: diff --git a/lib/constants/string_constants.dart b/lib/constants/string_constants.dart index 6c0f47df..7eaeefd3 100644 --- a/lib/constants/string_constants.dart +++ b/lib/constants/string_constants.dart @@ -1,7 +1,7 @@ class StringConstants { // Request Headers static const X_SDK_TYPE = 'w3m'; - static const X_SDK_VERSION = '3.0.0-beta11'; + static const X_SDK_VERSION = '3.0.0-beta12'; static const X_CORE_SDK_VERSION = 'flutter_v2.1.8'; // UI diff --git a/lib/utils/toast/toast_utils.dart b/lib/utils/toast/toast_utils.dart index 0ea2c964..8382fe09 100644 --- a/lib/utils/toast/toast_utils.dart +++ b/lib/utils/toast/toast_utils.dart @@ -1,10 +1,9 @@ -import 'package:w_common/disposable.dart'; import 'dart:async'; import 'package:web3modal_flutter/utils/toast/toast_message.dart'; import 'package:web3modal_flutter/utils/toast/i_toast_utils.dart'; -class ToastUtils extends IToastUtils with Disposable { +class ToastUtils extends IToastUtils { final _toastController = StreamController.broadcast(); @override diff --git a/pubspec.lock b/pubspec.lock index b8b8c260..52fe1b70 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -313,22 +313,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.0" - flex_color_picker: - dependency: "direct main" - description: - name: flex_color_picker - sha256: f37476ab3e80dcaca94e428e159944d465dd16312fda9ff41e07e86f04bfa51c - url: "https://pub.dev" - source: hosted - version: "3.3.0" - flex_seed_scheme: - dependency: transitive - description: - name: flex_seed_scheme - sha256: "29c12aba221eb8a368a119685371381f8035011d18de5ba277ad11d7dfb8657f" - url: "https://pub.dev" - source: hosted - version: "1.4.0" flutter: dependency: "direct main" description: flutter @@ -400,14 +384,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.1" - hexagon: - dependency: "direct main" - description: - name: hexagon - sha256: "058f445a8c293c2a0474546cd6f592693bf8b014f5c682e8174d34d5fd024d87" - url: "https://pub.dev" - source: hosted - version: "0.2.0" http: dependency: "direct main" description: @@ -432,14 +408,6 @@ packages: url: "https://pub.dev" source: hosted version: "4.0.2" - intl: - dependency: transitive - description: - name: intl - sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" - url: "https://pub.dev" - source: hosted - version: "0.18.1" io: dependency: transitive description: @@ -821,14 +789,6 @@ packages: description: flutter source: sdk version: "0.0.99" - smooth_page_indicator: - dependency: "direct main" - description: - name: smooth_page_indicator - sha256: "725bc638d5e79df0c84658e1291449996943f93bacbc2cec49963dbbab48d8ae" - url: "https://pub.dev" - source: hosted - version: "1.1.0" source_gen: dependency: transitive description: @@ -1053,14 +1013,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" - w_common: - dependency: "direct main" - description: - name: w_common - sha256: "54e34b485571aa5332a7ab22658fcd1f747558f03fb04d9715e2d2d9bd6ee32e" - url: "https://pub.dev" - source: hosted - version: "3.0.0" wallet: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index b0e3d889..481254d0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: web3modal_flutter description: "WalletConnect Web3Modal: Simple, intuitive wallet login. With this drop-in UI SDK, enable any wallet's users to seamlessly log in to your app and enjoy a unified experience" -version: 3.0.0-beta11 +version: 3.0.0-beta12 repository: https://github.com/WalletConnect/Web3ModalFlutter environment: @@ -13,12 +13,10 @@ dependencies: cupertino_icons: ^1.0.2 custom_sliding_segmented_control: ^1.8.1 event: ^2.1.2 - flex_color_picker: ^3.2.2 flutter: sdk: flutter flutter_svg: ^2.0.6 freezed_annotation: ^2.2.0 - hexagon: ^0.2.0 http: ^1.1.0 json_annotation: ^4.8.1 logger: ^2.0.2+1 @@ -26,10 +24,8 @@ dependencies: qr_flutter_wc: ^0.0.1 shared_preferences: ^2.2.0 shimmer: ^3.0.0 - smooth_page_indicator: ^1.1.0 universal_io: ^2.2.0 url_launcher: ^6.1.11 - w_common: ^3.0.0 walletconnect_flutter_v2: ^2.1.8 web3dart: ^2.6.1 diff --git a/test/mock_classes.mocks.dart b/test/mock_classes.mocks.dart index 9d6daf00..f316ea94 100644 --- a/test/mock_classes.mocks.dart +++ b/test/mock_classes.mocks.dart @@ -3,59 +3,57 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i4; -import 'dart:convert' as _i31; -import 'dart:typed_data' as _i32; -import 'dart:ui' as _i21; +import 'dart:async' as _i15; +import 'dart:convert' as _i29; +import 'dart:typed_data' as _i30; +import 'dart:ui' as _i20; import 'package:event/event.dart' as _i3; import 'package:flutter/foundation.dart' as _i2; -import 'package:flutter/material.dart' as _i14; -import 'package:http/http.dart' as _i12; +import 'package:flutter/material.dart' as _i12; +import 'package:http/http.dart' as _i10; import 'package:mockito/mockito.dart' as _i1; -import 'package:mockito/src/dummies.dart' as _i28; -import 'package:url_launcher/url_launcher.dart' as _i23; -import 'package:w_common/disposable.dart' as _i5; +import 'package:url_launcher/url_launcher.dart' as _i22; import 'package:walletconnect_flutter_v2/apis/core/relay_client/i_message_tracker.dart' - as _i10; + as _i8; import 'package:walletconnect_flutter_v2/apis/core/relay_client/json_rpc_2/src/peer.dart' - as _i30; + as _i28; import 'package:walletconnect_flutter_v2/apis/core/relay_client/relay_client.dart' - as _i29; + as _i27; import 'package:walletconnect_flutter_v2/apis/core/relay_client/websocket/i_websocket_handler.dart' - as _i11; + as _i9; import 'package:walletconnect_flutter_v2/apis/core/store/i_generic_store.dart' - as _i7; -import 'package:walletconnect_flutter_v2/apis/core/store/i_store.dart' as _i9; -import 'package:walletconnect_flutter_v2/apis/sign_api/i_sessions.dart' as _i8; -import 'package:walletconnect_flutter_v2/walletconnect_flutter_v2.dart' as _i6; -import 'package:web3modal_flutter/models/grid_item.dart' as _i34; -import 'package:web3modal_flutter/models/w3m_chain_info.dart' as _i20; -import 'package:web3modal_flutter/models/w3m_wallet_info.dart' as _i16; + as _i5; +import 'package:walletconnect_flutter_v2/apis/core/store/i_store.dart' as _i7; +import 'package:walletconnect_flutter_v2/apis/sign_api/i_sessions.dart' as _i6; +import 'package:walletconnect_flutter_v2/walletconnect_flutter_v2.dart' as _i4; +import 'package:web3modal_flutter/models/grid_item.dart' as _i32; +import 'package:web3modal_flutter/models/w3m_chain_info.dart' as _i19; +import 'package:web3modal_flutter/models/w3m_wallet_info.dart' as _i14; import 'package:web3modal_flutter/services/blockchain_api_service/blockchain_api_utils.dart' - as _i35; + as _i33; import 'package:web3modal_flutter/services/blockchain_api_service/blockchain_identity.dart' - as _i13; + as _i11; import 'package:web3modal_flutter/services/explorer_service/explorer_service.dart' - as _i15; + as _i13; import 'package:web3modal_flutter/services/explorer_service/models/redirect.dart' - as _i17; + as _i16; import 'package:web3modal_flutter/services/ledger_service/ledger_service.dart' - as _i36; + as _i34; import 'package:web3modal_flutter/services/network_service/network_service.dart' - as _i33; + as _i31; import 'package:web3modal_flutter/services/storage_service/storage_service.dart' - as _i37; + as _i35; import 'package:web3modal_flutter/services/w3m_service/i_w3m_service.dart' - as _i19; -import 'package:web3modal_flutter/utils/platform/i_platform_utils.dart' as _i24; -import 'package:web3modal_flutter/utils/platform/platform_utils.dart' as _i25; -import 'package:web3modal_flutter/utils/toast/toast_message.dart' as _i27; -import 'package:web3modal_flutter/utils/toast/toast_utils.dart' as _i26; -import 'package:web3modal_flutter/utils/url/url_utils.dart' as _i22; -import 'package:web3modal_flutter/web3modal_flutter.dart' as _i18; + as _i18; +import 'package:web3modal_flutter/utils/platform/i_platform_utils.dart' as _i23; +import 'package:web3modal_flutter/utils/platform/platform_utils.dart' as _i24; +import 'package:web3modal_flutter/utils/toast/toast_message.dart' as _i26; +import 'package:web3modal_flutter/utils/toast/toast_utils.dart' as _i25; +import 'package:web3modal_flutter/utils/url/url_utils.dart' as _i21; +import 'package:web3modal_flutter/web3modal_flutter.dart' as _i17; import 'package:web3modal_flutter/widgets/widget_stack/widget_stack.dart' - as _i38; + as _i36; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -90,60 +88,8 @@ class _FakeEvent_1 extends _i1.SmartFake ); } -class _FakeFuture_2 extends _i1.SmartFake implements _i4.Future { - _FakeFuture_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeManagedDisposer_3 extends _i1.SmartFake - implements _i5.ManagedDisposer { - _FakeManagedDisposer_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeTimer_4 extends _i1.SmartFake implements _i4.Timer { - _FakeTimer_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeStreamSubscription_5 extends _i1.SmartFake - implements _i4.StreamSubscription { - _FakeStreamSubscription_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeCompleter_6 extends _i1.SmartFake implements _i4.Completer { - _FakeCompleter_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeICore_7 extends _i1.SmartFake implements _i6.ICore { - _FakeICore_7( +class _FakeICore_2 extends _i1.SmartFake implements _i4.ICore { + _FakeICore_2( Object parent, Invocation parentInvocation, ) : super( @@ -152,9 +98,9 @@ class _FakeICore_7 extends _i1.SmartFake implements _i6.ICore { ); } -class _FakePairingMetadata_8 extends _i1.SmartFake - implements _i6.PairingMetadata { - _FakePairingMetadata_8( +class _FakePairingMetadata_3 extends _i1.SmartFake + implements _i4.PairingMetadata { + _FakePairingMetadata_3( Object parent, Invocation parentInvocation, ) : super( @@ -163,8 +109,8 @@ class _FakePairingMetadata_8 extends _i1.SmartFake ); } -class _FakeISignEngine_9 extends _i1.SmartFake implements _i6.ISignEngine { - _FakeISignEngine_9( +class _FakeISignEngine_4 extends _i1.SmartFake implements _i4.ISignEngine { + _FakeISignEngine_4( Object parent, Invocation parentInvocation, ) : super( @@ -173,8 +119,8 @@ class _FakeISignEngine_9 extends _i1.SmartFake implements _i6.ISignEngine { ); } -class _FakeIAuthEngine_10 extends _i1.SmartFake implements _i6.IAuthEngine { - _FakeIAuthEngine_10( +class _FakeIAuthEngine_5 extends _i1.SmartFake implements _i4.IAuthEngine { + _FakeIAuthEngine_5( Object parent, Invocation parentInvocation, ) : super( @@ -183,9 +129,9 @@ class _FakeIAuthEngine_10 extends _i1.SmartFake implements _i6.IAuthEngine { ); } -class _FakeIGenericStore_11 extends _i1.SmartFake - implements _i7.IGenericStore { - _FakeIGenericStore_11( +class _FakeIGenericStore_6 extends _i1.SmartFake + implements _i5.IGenericStore { + _FakeIGenericStore_6( Object parent, Invocation parentInvocation, ) : super( @@ -194,8 +140,8 @@ class _FakeIGenericStore_11 extends _i1.SmartFake ); } -class _FakeISessions_12 extends _i1.SmartFake implements _i8.ISessions { - _FakeISessions_12( +class _FakeISessions_7 extends _i1.SmartFake implements _i6.ISessions { + _FakeISessions_7( Object parent, Invocation parentInvocation, ) : super( @@ -204,8 +150,8 @@ class _FakeISessions_12 extends _i1.SmartFake implements _i8.ISessions { ); } -class _FakeIPairingStore_13 extends _i1.SmartFake implements _i6.IPairingStore { - _FakeIPairingStore_13( +class _FakeIPairingStore_8 extends _i1.SmartFake implements _i4.IPairingStore { + _FakeIPairingStore_8( Object parent, Invocation parentInvocation, ) : super( @@ -214,9 +160,9 @@ class _FakeIPairingStore_13 extends _i1.SmartFake implements _i6.IPairingStore { ); } -class _FakeConnectResponse_14 extends _i1.SmartFake - implements _i6.ConnectResponse { - _FakeConnectResponse_14( +class _FakeConnectResponse_9 extends _i1.SmartFake + implements _i4.ConnectResponse { + _FakeConnectResponse_9( Object parent, Invocation parentInvocation, ) : super( @@ -225,9 +171,9 @@ class _FakeConnectResponse_14 extends _i1.SmartFake ); } -class _FakeAuthRequestResponse_15 extends _i1.SmartFake - implements _i6.AuthRequestResponse { - _FakeAuthRequestResponse_15( +class _FakeAuthRequestResponse_10 extends _i1.SmartFake + implements _i4.AuthRequestResponse { + _FakeAuthRequestResponse_10( Object parent, Invocation parentInvocation, ) : super( @@ -236,8 +182,8 @@ class _FakeAuthRequestResponse_15 extends _i1.SmartFake ); } -class _FakeIStore_16 extends _i1.SmartFake implements _i9.IStore { - _FakeIStore_16( +class _FakeIStore_11 extends _i1.SmartFake implements _i7.IStore { + _FakeIStore_11( Object parent, Invocation parentInvocation, ) : super( @@ -246,8 +192,8 @@ class _FakeIStore_16 extends _i1.SmartFake implements _i9.IStore { ); } -class _FakeSessionData_17 extends _i1.SmartFake implements _i6.SessionData { - _FakeSessionData_17( +class _FakeSessionData_12 extends _i1.SmartFake implements _i4.SessionData { + _FakeSessionData_12( Object parent, Invocation parentInvocation, ) : super( @@ -256,9 +202,9 @@ class _FakeSessionData_17 extends _i1.SmartFake implements _i6.SessionData { ); } -class _FakeIMessageTracker_18 extends _i1.SmartFake - implements _i10.IMessageTracker { - _FakeIMessageTracker_18( +class _FakeIMessageTracker_13 extends _i1.SmartFake + implements _i8.IMessageTracker { + _FakeIMessageTracker_13( Object parent, Invocation parentInvocation, ) : super( @@ -267,9 +213,9 @@ class _FakeIMessageTracker_18 extends _i1.SmartFake ); } -class _FakeIWebSocketHandler_19 extends _i1.SmartFake - implements _i11.IWebSocketHandler { - _FakeIWebSocketHandler_19( +class _FakeIWebSocketHandler_14 extends _i1.SmartFake + implements _i9.IWebSocketHandler { + _FakeIWebSocketHandler_14( Object parent, Invocation parentInvocation, ) : super( @@ -278,8 +224,8 @@ class _FakeIWebSocketHandler_19 extends _i1.SmartFake ); } -class _FakeResponse_20 extends _i1.SmartFake implements _i12.Response { - _FakeResponse_20( +class _FakeResponse_15 extends _i1.SmartFake implements _i10.Response { + _FakeResponse_15( Object parent, Invocation parentInvocation, ) : super( @@ -288,9 +234,9 @@ class _FakeResponse_20 extends _i1.SmartFake implements _i12.Response { ); } -class _FakeStreamedResponse_21 extends _i1.SmartFake - implements _i12.StreamedResponse { - _FakeStreamedResponse_21( +class _FakeStreamedResponse_16 extends _i1.SmartFake + implements _i10.StreamedResponse { + _FakeStreamedResponse_16( Object parent, Invocation parentInvocation, ) : super( @@ -299,9 +245,9 @@ class _FakeStreamedResponse_21 extends _i1.SmartFake ); } -class _FakeBlockchainIdentity_22 extends _i1.SmartFake - implements _i13.BlockchainIdentity { - _FakeBlockchainIdentity_22( +class _FakeBlockchainIdentity_17 extends _i1.SmartFake + implements _i11.BlockchainIdentity { + _FakeBlockchainIdentity_17( Object parent, Invocation parentInvocation, ) : super( @@ -310,9 +256,9 @@ class _FakeBlockchainIdentity_22 extends _i1.SmartFake ); } -class _FakeValueListenable_23 extends _i1.SmartFake +class _FakeValueListenable_18 extends _i1.SmartFake implements _i2.ValueListenable { - _FakeValueListenable_23( + _FakeValueListenable_18( Object parent, Invocation parentInvocation, ) : super( @@ -321,8 +267,8 @@ class _FakeValueListenable_23 extends _i1.SmartFake ); } -class _FakeWidget_24 extends _i1.SmartFake implements _i14.Widget { - _FakeWidget_24( +class _FakeWidget_19 extends _i1.SmartFake implements _i12.Widget { + _FakeWidget_19( Object parent, Invocation parentInvocation, ) : super( @@ -338,7 +284,7 @@ class _FakeWidget_24 extends _i1.SmartFake implements _i14.Widget { /// A class which mocks [ExplorerService]. /// /// See the documentation for Mockito's code generation for more information. -class MockExplorerService extends _i1.Mock implements _i15.ExplorerService { +class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { MockExplorerService() { _i1.throwOnMissingStub(this); } @@ -366,16 +312,16 @@ class MockExplorerService extends _i1.Mock implements _i15.ExplorerService { returnValueForMissingStub: null, ); @override - _i2.ValueNotifier> get listings => + _i2.ValueNotifier> get listings => (super.noSuchMethod( Invocation.getter(#listings), - returnValue: _FakeValueNotifier_0>( + returnValue: _FakeValueNotifier_0>( this, Invocation.getter(#listings), ), - ) as _i2.ValueNotifier>); + ) as _i2.ValueNotifier>); @override - set listings(_i2.ValueNotifier>? _listings) => + set listings(_i2.ValueNotifier>? _listings) => super.noSuchMethod( Invocation.setter( #listings, @@ -429,32 +375,32 @@ class MockExplorerService extends _i1.Mock implements _i15.ExplorerService { returnValue: '', ) as String); @override - _i4.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future fetchInitialWallets() => (super.noSuchMethod( + _i15.Future fetchInitialWallets() => (super.noSuchMethod( Invocation.method( #fetchInitialWallets, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future paginate() => (super.noSuchMethod( + _i15.Future paginate() => (super.noSuchMethod( Invocation.method( #paginate, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override String getWalletImageUrl(String? imageId) => (super.noSuchMethod( Invocation.method( @@ -472,21 +418,21 @@ class MockExplorerService extends _i1.Mock implements _i15.ExplorerService { returnValue: '', ) as String); @override - _i17.WalletRedirect? getWalletRedirectByName(String? name) => + _i16.WalletRedirect? getWalletRedirectByName(String? name) => (super.noSuchMethod(Invocation.method( #getWalletRedirectByName, [name], - )) as _i17.WalletRedirect?); + )) as _i16.WalletRedirect?); @override - _i4.Future updateRecentPosition(String? recentId) => + _i15.Future updateRecentPosition(String? recentId) => (super.noSuchMethod( Invocation.method( #updateRecentPosition, [recentId], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override void search({String? query}) => super.noSuchMethod( Invocation.method( @@ -501,13 +447,13 @@ class MockExplorerService extends _i1.Mock implements _i15.ExplorerService { /// A class which mocks [W3MService]. /// /// See the documentation for Mockito's code generation for more information. -class MockW3MService extends _i1.Mock implements _i18.W3MService { +class MockW3MService extends _i1.Mock implements _i17.W3MService { MockW3MService() { _i1.throwOnMissingStub(this); } @override - set connectResponse(_i6.ConnectResponse? _connectResponse) => + set connectResponse(_i4.ConnectResponse? _connectResponse) => super.noSuchMethod( Invocation.setter( #connectResponse, @@ -524,22 +470,22 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { ), ) as _i3.Event<_i3.EventArgs>); @override - _i19.W3MServiceStatus get status => (super.noSuchMethod( + _i18.W3MServiceStatus get status => (super.noSuchMethod( Invocation.getter(#status), - returnValue: _i19.W3MServiceStatus.idle, - ) as _i19.W3MServiceStatus); + returnValue: _i18.W3MServiceStatus.idle, + ) as _i18.W3MServiceStatus); @override - Map get requiredNamespaces => + Map get requiredNamespaces => (super.noSuchMethod( Invocation.getter(#requiredNamespaces), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override - Map get optionalNamespaces => + Map get optionalNamespaces => (super.noSuchMethod( Invocation.getter(#optionalNamespaces), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override bool get isOpen => (super.noSuchMethod( Invocation.getter(#isOpen), @@ -556,17 +502,17 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { returnValue: false, ) as bool); @override - _i4.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future selectChain( - _i20.W3MChainInfo? chainInfo, { + _i15.Future selectChain( + _i19.W3MChainInfo? chainInfo, { bool? switchChain = false, }) => (super.noSuchMethod( @@ -575,13 +521,13 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { [chainInfo], {#switchChain: switchChain}, ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future openModal( - _i14.BuildContext? context, [ - _i14.Widget? startWidget, + _i15.Future openModal( + _i12.BuildContext? context, [ + _i12.Widget? startWidget, ]) => (super.noSuchMethod( Invocation.method( @@ -591,47 +537,47 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { startWidget, ], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future expirePreviousInactivePairings() => (super.noSuchMethod( + _i15.Future expirePreviousInactivePairings() => (super.noSuchMethod( Invocation.method( #expirePreviousInactivePairings, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future connectSelectedWallet({bool? inBrowser = false}) => + _i15.Future connectSelectedWallet({bool? inBrowser = false}) => (super.noSuchMethod( Invocation.method( #connectSelectedWallet, [], {#inBrowser: inBrowser}, ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future buildConnectionUri() => (super.noSuchMethod( + _i15.Future buildConnectionUri() => (super.noSuchMethod( Invocation.method( #buildConnectionUri, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future launchConnectedWallet() => (super.noSuchMethod( + _i15.Future launchConnectedWallet() => (super.noSuchMethod( Invocation.method( #launchConnectedWallet, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override String getReferer() => (super.noSuchMethod( Invocation.method( @@ -641,25 +587,25 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { returnValue: '', ) as String); @override - _i4.Future reconnectRelay() => (super.noSuchMethod( + _i15.Future reconnectRelay() => (super.noSuchMethod( Invocation.method( #reconnectRelay, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future disconnect({bool? disconnectAllSessions = true}) => + _i15.Future disconnect({bool? disconnectAllSessions = true}) => (super.noSuchMethod( Invocation.method( #disconnect, [], {#disconnectAllSessions: disconnectAllSessions}, ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override void closeModal() => super.noSuchMethod( Invocation.method( @@ -669,7 +615,7 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { returnValueForMissingStub: null, ); @override - void selectWallet(_i16.W3MWalletInfo? walletInfo) => super.noSuchMethod( + void selectWallet(_i14.W3MWalletInfo? walletInfo) => super.noSuchMethod( Invocation.method( #selectWallet, [walletInfo], @@ -693,7 +639,7 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { returnValueForMissingStub: null, ); @override - void addListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -701,7 +647,7 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { returnValueForMissingStub: null, ); @override - void removeListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -721,48 +667,48 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { /// A class which mocks [UrlUtils]. /// /// See the documentation for Mockito's code generation for more information. -class MockUrlUtils extends _i1.Mock implements _i22.UrlUtils { +class MockUrlUtils extends _i1.Mock implements _i21.UrlUtils { MockUrlUtils() { _i1.throwOnMissingStub(this); } @override - _i4.Future Function(String) get androidAppCheck => (super.noSuchMethod( + _i15.Future Function(String) get androidAppCheck => (super.noSuchMethod( Invocation.getter(#androidAppCheck), - returnValue: (String uri) => _i4.Future.value(false), - ) as _i4.Future Function(String)); + returnValue: (String uri) => _i15.Future.value(false), + ) as _i15.Future Function(String)); @override - _i4.Future Function( + _i15.Future Function( Uri, { - _i23.LaunchMode? mode, + _i22.LaunchMode? mode, }) get launchUrlFunc => (super.noSuchMethod( Invocation.getter(#launchUrlFunc), returnValue: ( Uri url, { - _i23.LaunchMode? mode, + _i22.LaunchMode? mode, }) => - _i4.Future.value(false), - ) as _i4.Future Function( + _i15.Future.value(false), + ) as _i15.Future Function( Uri, { - _i23.LaunchMode? mode, + _i22.LaunchMode? mode, })); @override - _i4.Future Function(Uri) get canLaunchUrlFunc => (super.noSuchMethod( + _i15.Future Function(Uri) get canLaunchUrlFunc => (super.noSuchMethod( Invocation.getter(#canLaunchUrlFunc), - returnValue: (Uri url) => _i4.Future.value(false), - ) as _i4.Future Function(Uri)); + returnValue: (Uri url) => _i15.Future.value(false), + ) as _i15.Future Function(Uri)); @override - _i4.Future isInstalled(String? uri) => (super.noSuchMethod( + _i15.Future isInstalled(String? uri) => (super.noSuchMethod( Invocation.method( #isInstalled, [uri], ), - returnValue: _i4.Future.value(false), - ) as _i4.Future); + returnValue: _i15.Future.value(false), + ) as _i15.Future); @override - _i4.Future launchUrl( + _i15.Future launchUrl( Uri? url, { - _i23.LaunchMode? mode, + _i22.LaunchMode? mode, }) => (super.noSuchMethod( Invocation.method( @@ -770,13 +716,13 @@ class MockUrlUtils extends _i1.Mock implements _i22.UrlUtils { [url], {#mode: mode}, ), - returnValue: _i4.Future.value(false), - ) as _i4.Future); + returnValue: _i15.Future.value(false), + ) as _i15.Future); @override - _i4.Future openRedirect( - _i17.WalletRedirect? redirect, { + _i15.Future openRedirect( + _i16.WalletRedirect? redirect, { String? wcURI, - _i24.PlatformType? pType, + _i23.PlatformType? pType, }) => (super.noSuchMethod( Invocation.method( @@ -787,35 +733,35 @@ class MockUrlUtils extends _i1.Mock implements _i22.UrlUtils { #pType: pType, }, ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); } /// A class which mocks [PlatformUtils]. /// /// See the documentation for Mockito's code generation for more information. -class MockPlatformUtils extends _i1.Mock implements _i25.PlatformUtils { +class MockPlatformUtils extends _i1.Mock implements _i24.PlatformUtils { MockPlatformUtils() { _i1.throwOnMissingStub(this); } @override - _i24.PlatformExact getPlatformExact() => (super.noSuchMethod( + _i23.PlatformExact getPlatformExact() => (super.noSuchMethod( Invocation.method( #getPlatformExact, [], ), - returnValue: _i24.PlatformExact.iOS, - ) as _i24.PlatformExact); + returnValue: _i23.PlatformExact.iOS, + ) as _i23.PlatformExact); @override - _i24.PlatformType getPlatformType() => (super.noSuchMethod( + _i23.PlatformType getPlatformType() => (super.noSuchMethod( Invocation.method( #getPlatformType, [], ), - returnValue: _i24.PlatformType.mobile, - ) as _i24.PlatformType); + returnValue: _i23.PlatformType.mobile, + ) as _i23.PlatformType); @override bool canDetectInstalledApps() => (super.noSuchMethod( Invocation.method( @@ -833,7 +779,7 @@ class MockPlatformUtils extends _i1.Mock implements _i25.PlatformUtils { returnValue: false, ) as bool); @override - bool isLongBottomSheet(_i14.Orientation? orientation) => (super.noSuchMethod( + bool isLongBottomSheet(_i12.Orientation? orientation) => (super.noSuchMethod( Invocation.method( #isLongBottomSheet, [orientation], @@ -853,48 +799,18 @@ class MockPlatformUtils extends _i1.Mock implements _i25.PlatformUtils { /// A class which mocks [ToastUtils]. /// /// See the documentation for Mockito's code generation for more information. -class MockToastUtils extends _i1.Mock implements _i26.ToastUtils { +class MockToastUtils extends _i1.Mock implements _i25.ToastUtils { MockToastUtils() { _i1.throwOnMissingStub(this); } @override - _i4.Stream<_i27.ToastMessage?> get toasts => (super.noSuchMethod( + _i15.Stream<_i26.ToastMessage?> get toasts => (super.noSuchMethod( Invocation.getter(#toasts), - returnValue: _i4.Stream<_i27.ToastMessage?>.empty(), - ) as _i4.Stream<_i27.ToastMessage?>); - @override - _i4.Future get didDispose => (super.noSuchMethod( - Invocation.getter(#didDispose), - returnValue: _i4.Future.value(), - ) as _i4.Future); - @override - String get disposableTypeName => (super.noSuchMethod( - Invocation.getter(#disposableTypeName), - returnValue: '', - ) as String); + returnValue: _i15.Stream<_i26.ToastMessage?>.empty(), + ) as _i15.Stream<_i26.ToastMessage?>); @override - int get disposalTreeSize => (super.noSuchMethod( - Invocation.getter(#disposalTreeSize), - returnValue: 0, - ) as int); - @override - bool get isDisposed => (super.noSuchMethod( - Invocation.getter(#isDisposed), - returnValue: false, - ) as bool); - @override - bool get isLeakFlagSet => (super.noSuchMethod( - Invocation.getter(#isLeakFlagSet), - returnValue: false, - ) as bool); - @override - bool get isOrWillBeDisposed => (super.noSuchMethod( - Invocation.getter(#isOrWillBeDisposed), - returnValue: false, - ) as bool); - @override - void show(_i27.ToastMessage? message) => super.noSuchMethod( + void show(_i26.ToastMessage? message) => super.noSuchMethod( Invocation.method( #show, [message], @@ -909,253 +825,12 @@ class MockToastUtils extends _i1.Mock implements _i26.ToastUtils { ), returnValueForMissingStub: null, ); - @override - _i4.Future awaitBeforeDispose(_i4.Future? future) => - (super.noSuchMethod( - Invocation.method( - #awaitBeforeDispose, - [future], - ), - returnValue: _i28.ifNotNull( - _i28.dummyValueOrNull( - this, - Invocation.method( - #awaitBeforeDispose, - [future], - ), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_2( - this, - Invocation.method( - #awaitBeforeDispose, - [future], - ), - ), - ) as _i4.Future); - @override - _i4.Future dispose() => (super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValue: _i4.Future.value(), - ) as _i4.Future); - @override - void flagLeak([String? description]) => super.noSuchMethod( - Invocation.method( - #flagLeak, - [description], - ), - returnValueForMissingStub: null, - ); - @override - _i4.Future getManagedDelayedFuture( - Duration? duration, - T Function()? callback, - ) => - (super.noSuchMethod( - Invocation.method( - #getManagedDelayedFuture, - [ - duration, - callback, - ], - ), - returnValue: _i28.ifNotNull( - _i28.dummyValueOrNull( - this, - Invocation.method( - #getManagedDelayedFuture, - [ - duration, - callback, - ], - ), - ), - (T v) => _i4.Future.value(v), - ) ?? - _FakeFuture_2( - this, - Invocation.method( - #getManagedDelayedFuture, - [ - duration, - callback, - ], - ), - ), - ) as _i4.Future); - @override - _i5.ManagedDisposer getManagedDisposer(_i5.Disposer? disposer) => - (super.noSuchMethod( - Invocation.method( - #getManagedDisposer, - [disposer], - ), - returnValue: _FakeManagedDisposer_3( - this, - Invocation.method( - #getManagedDisposer, - [disposer], - ), - ), - ) as _i5.ManagedDisposer); - @override - _i4.Timer getManagedTimer( - Duration? duration, - void Function()? callback, - ) => - (super.noSuchMethod( - Invocation.method( - #getManagedTimer, - [ - duration, - callback, - ], - ), - returnValue: _FakeTimer_4( - this, - Invocation.method( - #getManagedTimer, - [ - duration, - callback, - ], - ), - ), - ) as _i4.Timer); - @override - _i4.Timer getManagedPeriodicTimer( - Duration? duration, - void Function(_i4.Timer)? callback, - ) => - (super.noSuchMethod( - Invocation.method( - #getManagedPeriodicTimer, - [ - duration, - callback, - ], - ), - returnValue: _FakeTimer_4( - this, - Invocation.method( - #getManagedPeriodicTimer, - [ - duration, - callback, - ], - ), - ), - ) as _i4.Timer); - @override - _i4.StreamSubscription listenToStream( - _i4.Stream? stream, - void Function(T)? onData, { - Function? onError, - void Function()? onDone, - bool? cancelOnError, - }) => - (super.noSuchMethod( - Invocation.method( - #listenToStream, - [ - stream, - onData, - ], - { - #onError: onError, - #onDone: onDone, - #cancelOnError: cancelOnError, - }, - ), - returnValue: _FakeStreamSubscription_5( - this, - Invocation.method( - #listenToStream, - [ - stream, - onData, - ], - { - #onError: onError, - #onDone: onDone, - #cancelOnError: cancelOnError, - }, - ), - ), - ) as _i4.StreamSubscription); - @override - T manageAndReturnTypedDisposable(T? disposable) => - (super.noSuchMethod( - Invocation.method( - #manageAndReturnTypedDisposable, - [disposable], - ), - returnValue: _i28.dummyValue( - this, - Invocation.method( - #manageAndReturnTypedDisposable, - [disposable], - ), - ), - ) as T); - @override - _i4.Completer manageCompleter(_i4.Completer? completer) => - (super.noSuchMethod( - Invocation.method( - #manageCompleter, - [completer], - ), - returnValue: _FakeCompleter_6( - this, - Invocation.method( - #manageCompleter, - [completer], - ), - ), - ) as _i4.Completer); - @override - void manageDisposable(_i5.Disposable? disposable) => super.noSuchMethod( - Invocation.method( - #manageDisposable, - [disposable], - ), - returnValueForMissingStub: null, - ); - @override - void manageStreamController(_i4.StreamController? controller) => - super.noSuchMethod( - Invocation.method( - #manageStreamController, - [controller], - ), - returnValueForMissingStub: null, - ); - @override - _i4.Future onDispose() => (super.noSuchMethod( - Invocation.method( - #onDispose, - [], - ), - returnValue: _i4.Future.value(), - ) as _i4.Future); - @override - _i4.Future onWillDispose() => (super.noSuchMethod( - Invocation.method( - #onWillDispose, - [], - ), - returnValue: _i4.Future.value(), - ) as _i4.Future); } /// A class which mocks [Web3App]. /// /// See the documentation for Mockito's code generation for more information. -class MockWeb3App extends _i1.Mock implements _i6.Web3App { +class MockWeb3App extends _i1.Mock implements _i4.Web3App { MockWeb3App() { _i1.throwOnMissingStub(this); } @@ -1171,31 +846,31 @@ class MockWeb3App extends _i1.Mock implements _i6.Web3App { returnValue: 0, ) as int); @override - _i6.ICore get core => (super.noSuchMethod( + _i4.ICore get core => (super.noSuchMethod( Invocation.getter(#core), - returnValue: _FakeICore_7( + returnValue: _FakeICore_2( this, Invocation.getter(#core), ), - ) as _i6.ICore); + ) as _i4.ICore); @override - _i6.PairingMetadata get metadata => (super.noSuchMethod( + _i4.PairingMetadata get metadata => (super.noSuchMethod( Invocation.getter(#metadata), - returnValue: _FakePairingMetadata_8( + returnValue: _FakePairingMetadata_3( this, Invocation.getter(#metadata), ), - ) as _i6.PairingMetadata); + ) as _i4.PairingMetadata); @override - _i6.ISignEngine get signEngine => (super.noSuchMethod( + _i4.ISignEngine get signEngine => (super.noSuchMethod( Invocation.getter(#signEngine), - returnValue: _FakeISignEngine_9( + returnValue: _FakeISignEngine_4( this, Invocation.getter(#signEngine), ), - ) as _i6.ISignEngine); + ) as _i4.ISignEngine); @override - set signEngine(_i6.ISignEngine? _signEngine) => super.noSuchMethod( + set signEngine(_i4.ISignEngine? _signEngine) => super.noSuchMethod( Invocation.setter( #signEngine, _signEngine, @@ -1203,15 +878,15 @@ class MockWeb3App extends _i1.Mock implements _i6.Web3App { returnValueForMissingStub: null, ); @override - _i6.IAuthEngine get authEngine => (super.noSuchMethod( + _i4.IAuthEngine get authEngine => (super.noSuchMethod( Invocation.getter(#authEngine), - returnValue: _FakeIAuthEngine_10( + returnValue: _FakeIAuthEngine_5( this, Invocation.getter(#authEngine), ), - ) as _i6.IAuthEngine); + ) as _i4.IAuthEngine); @override - set authEngine(_i6.IAuthEngine? _authEngine) => super.noSuchMethod( + set authEngine(_i4.IAuthEngine? _authEngine) => super.noSuchMethod( Invocation.setter( #authEngine, _authEngine, @@ -1219,152 +894,152 @@ class MockWeb3App extends _i1.Mock implements _i6.Web3App { returnValueForMissingStub: null, ); @override - _i3.Event<_i6.SessionConnect> get onSessionConnect => (super.noSuchMethod( + _i3.Event<_i4.SessionConnect> get onSessionConnect => (super.noSuchMethod( Invocation.getter(#onSessionConnect), - returnValue: _FakeEvent_1<_i6.SessionConnect>( + returnValue: _FakeEvent_1<_i4.SessionConnect>( this, Invocation.getter(#onSessionConnect), ), - ) as _i3.Event<_i6.SessionConnect>); + ) as _i3.Event<_i4.SessionConnect>); @override - _i3.Event<_i6.SessionEvent> get onSessionEvent => (super.noSuchMethod( + _i3.Event<_i4.SessionEvent> get onSessionEvent => (super.noSuchMethod( Invocation.getter(#onSessionEvent), - returnValue: _FakeEvent_1<_i6.SessionEvent>( + returnValue: _FakeEvent_1<_i4.SessionEvent>( this, Invocation.getter(#onSessionEvent), ), - ) as _i3.Event<_i6.SessionEvent>); + ) as _i3.Event<_i4.SessionEvent>); @override - _i3.Event<_i6.SessionExpire> get onSessionExpire => (super.noSuchMethod( + _i3.Event<_i4.SessionExpire> get onSessionExpire => (super.noSuchMethod( Invocation.getter(#onSessionExpire), - returnValue: _FakeEvent_1<_i6.SessionExpire>( + returnValue: _FakeEvent_1<_i4.SessionExpire>( this, Invocation.getter(#onSessionExpire), ), - ) as _i3.Event<_i6.SessionExpire>); + ) as _i3.Event<_i4.SessionExpire>); @override - _i3.Event<_i6.SessionProposalEvent> get onProposalExpire => + _i3.Event<_i4.SessionProposalEvent> get onProposalExpire => (super.noSuchMethod( Invocation.getter(#onProposalExpire), - returnValue: _FakeEvent_1<_i6.SessionProposalEvent>( + returnValue: _FakeEvent_1<_i4.SessionProposalEvent>( this, Invocation.getter(#onProposalExpire), ), - ) as _i3.Event<_i6.SessionProposalEvent>); + ) as _i3.Event<_i4.SessionProposalEvent>); @override - _i3.Event<_i6.SessionExtend> get onSessionExtend => (super.noSuchMethod( + _i3.Event<_i4.SessionExtend> get onSessionExtend => (super.noSuchMethod( Invocation.getter(#onSessionExtend), - returnValue: _FakeEvent_1<_i6.SessionExtend>( + returnValue: _FakeEvent_1<_i4.SessionExtend>( this, Invocation.getter(#onSessionExtend), ), - ) as _i3.Event<_i6.SessionExtend>); + ) as _i3.Event<_i4.SessionExtend>); @override - _i3.Event<_i6.SessionPing> get onSessionPing => (super.noSuchMethod( + _i3.Event<_i4.SessionPing> get onSessionPing => (super.noSuchMethod( Invocation.getter(#onSessionPing), - returnValue: _FakeEvent_1<_i6.SessionPing>( + returnValue: _FakeEvent_1<_i4.SessionPing>( this, Invocation.getter(#onSessionPing), ), - ) as _i3.Event<_i6.SessionPing>); + ) as _i3.Event<_i4.SessionPing>); @override - _i3.Event<_i6.SessionUpdate> get onSessionUpdate => (super.noSuchMethod( + _i3.Event<_i4.SessionUpdate> get onSessionUpdate => (super.noSuchMethod( Invocation.getter(#onSessionUpdate), - returnValue: _FakeEvent_1<_i6.SessionUpdate>( + returnValue: _FakeEvent_1<_i4.SessionUpdate>( this, Invocation.getter(#onSessionUpdate), ), - ) as _i3.Event<_i6.SessionUpdate>); + ) as _i3.Event<_i4.SessionUpdate>); @override - _i3.Event<_i6.SessionDelete> get onSessionDelete => (super.noSuchMethod( + _i3.Event<_i4.SessionDelete> get onSessionDelete => (super.noSuchMethod( Invocation.getter(#onSessionDelete), - returnValue: _FakeEvent_1<_i6.SessionDelete>( + returnValue: _FakeEvent_1<_i4.SessionDelete>( this, Invocation.getter(#onSessionDelete), ), - ) as _i3.Event<_i6.SessionDelete>); + ) as _i3.Event<_i4.SessionDelete>); @override - _i7.IGenericStore<_i6.ProposalData> get proposals => (super.noSuchMethod( + _i5.IGenericStore<_i4.ProposalData> get proposals => (super.noSuchMethod( Invocation.getter(#proposals), - returnValue: _FakeIGenericStore_11<_i6.ProposalData>( + returnValue: _FakeIGenericStore_6<_i4.ProposalData>( this, Invocation.getter(#proposals), ), - ) as _i7.IGenericStore<_i6.ProposalData>); + ) as _i5.IGenericStore<_i4.ProposalData>); @override - _i8.ISessions get sessions => (super.noSuchMethod( + _i6.ISessions get sessions => (super.noSuchMethod( Invocation.getter(#sessions), - returnValue: _FakeISessions_12( + returnValue: _FakeISessions_7( this, Invocation.getter(#sessions), ), - ) as _i8.ISessions); + ) as _i6.ISessions); @override - _i7.IGenericStore<_i6.SessionRequest> get pendingRequests => + _i5.IGenericStore<_i4.SessionRequest> get pendingRequests => (super.noSuchMethod( Invocation.getter(#pendingRequests), - returnValue: _FakeIGenericStore_11<_i6.SessionRequest>( + returnValue: _FakeIGenericStore_6<_i4.SessionRequest>( this, Invocation.getter(#pendingRequests), ), - ) as _i7.IGenericStore<_i6.SessionRequest>); + ) as _i5.IGenericStore<_i4.SessionRequest>); @override - _i6.IPairingStore get pairings => (super.noSuchMethod( + _i4.IPairingStore get pairings => (super.noSuchMethod( Invocation.getter(#pairings), - returnValue: _FakeIPairingStore_13( + returnValue: _FakeIPairingStore_8( this, Invocation.getter(#pairings), ), - ) as _i6.IPairingStore); + ) as _i4.IPairingStore); @override - _i3.Event<_i6.AuthResponse> get onAuthResponse => (super.noSuchMethod( + _i3.Event<_i4.AuthResponse> get onAuthResponse => (super.noSuchMethod( Invocation.getter(#onAuthResponse), - returnValue: _FakeEvent_1<_i6.AuthResponse>( + returnValue: _FakeEvent_1<_i4.AuthResponse>( this, Invocation.getter(#onAuthResponse), ), - ) as _i3.Event<_i6.AuthResponse>); + ) as _i3.Event<_i4.AuthResponse>); @override - _i7.IGenericStore<_i6.AuthPublicKey> get authKeys => (super.noSuchMethod( + _i5.IGenericStore<_i4.AuthPublicKey> get authKeys => (super.noSuchMethod( Invocation.getter(#authKeys), - returnValue: _FakeIGenericStore_11<_i6.AuthPublicKey>( + returnValue: _FakeIGenericStore_6<_i4.AuthPublicKey>( this, Invocation.getter(#authKeys), ), - ) as _i7.IGenericStore<_i6.AuthPublicKey>); + ) as _i5.IGenericStore<_i4.AuthPublicKey>); @override - _i7.IGenericStore get pairingTopics => (super.noSuchMethod( + _i5.IGenericStore get pairingTopics => (super.noSuchMethod( Invocation.getter(#pairingTopics), - returnValue: _FakeIGenericStore_11( + returnValue: _FakeIGenericStore_6( this, Invocation.getter(#pairingTopics), ), - ) as _i7.IGenericStore); + ) as _i5.IGenericStore); @override - _i7.IGenericStore<_i6.StoredCacao> get completeRequests => + _i5.IGenericStore<_i4.StoredCacao> get completeRequests => (super.noSuchMethod( Invocation.getter(#completeRequests), - returnValue: _FakeIGenericStore_11<_i6.StoredCacao>( + returnValue: _FakeIGenericStore_6<_i4.StoredCacao>( this, Invocation.getter(#completeRequests), ), - ) as _i7.IGenericStore<_i6.StoredCacao>); + ) as _i5.IGenericStore<_i4.StoredCacao>); @override - _i4.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future<_i6.ConnectResponse> connect({ - Map? requiredNamespaces, - Map? optionalNamespaces, + _i15.Future<_i4.ConnectResponse> connect({ + Map? requiredNamespaces, + Map? optionalNamespaces, Map? sessionProperties, String? pairingTopic, - List<_i6.Relay>? relays, + List<_i4.Relay>? relays, List>? methods = const [ [ r'wc_sessionPropose', @@ -1387,7 +1062,7 @@ class MockWeb3App extends _i1.Mock implements _i6.Web3App { }, ), returnValue: - _i4.Future<_i6.ConnectResponse>.value(_FakeConnectResponse_14( + _i15.Future<_i4.ConnectResponse>.value(_FakeConnectResponse_9( this, Invocation.method( #connect, @@ -1402,12 +1077,12 @@ class MockWeb3App extends _i1.Mock implements _i6.Web3App { }, ), )), - ) as _i4.Future<_i6.ConnectResponse>); + ) as _i15.Future<_i4.ConnectResponse>); @override - _i4.Future request({ + _i15.Future request({ required String? topic, required String? chainId, - required _i6.SessionRequestParams? request, + required _i4.SessionRequestParams? request, }) => (super.noSuchMethod( Invocation.method( @@ -1419,8 +1094,8 @@ class MockWeb3App extends _i1.Mock implements _i6.Web3App { #request: request, }, ), - returnValue: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + ) as _i15.Future); @override void registerEventHandler({ required String? chainId, @@ -1443,19 +1118,19 @@ class MockWeb3App extends _i1.Mock implements _i6.Web3App { returnValueForMissingStub: null, ); @override - _i4.Future ping({required String? topic}) => (super.noSuchMethod( + _i15.Future ping({required String? topic}) => (super.noSuchMethod( Invocation.method( #ping, [], {#topic: topic}, ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future disconnectSession({ + _i15.Future disconnectSession({ required String? topic, - required _i6.WalletConnectError? reason, + required _i4.WalletConnectError? reason, }) => (super.noSuchMethod( Invocation.method( @@ -1466,19 +1141,19 @@ class MockWeb3App extends _i1.Mock implements _i6.Web3App { #reason: reason, }, ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - Map getActiveSessions() => (super.noSuchMethod( + Map getActiveSessions() => (super.noSuchMethod( Invocation.method( #getActiveSessions, [], ), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override - Map getSessionsForPairing( + Map getSessionsForPairing( {required String? pairingTopic}) => (super.noSuchMethod( Invocation.method( @@ -1486,20 +1161,20 @@ class MockWeb3App extends _i1.Mock implements _i6.Web3App { [], {#pairingTopic: pairingTopic}, ), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override - Map getPendingSessionProposals() => + Map getPendingSessionProposals() => (super.noSuchMethod( Invocation.method( #getPendingSessionProposals, [], ), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override - _i4.Future<_i6.AuthRequestResponse> requestAuth({ - required _i6.AuthRequestParams? params, + _i15.Future<_i4.AuthRequestResponse> requestAuth({ + required _i4.AuthRequestParams? params, String? pairingTopic, List>? methods = const [ [ @@ -1519,8 +1194,8 @@ class MockWeb3App extends _i1.Mock implements _i6.Web3App { #methods: methods, }, ), - returnValue: _i4.Future<_i6.AuthRequestResponse>.value( - _FakeAuthRequestResponse_15( + returnValue: _i15.Future<_i4.AuthRequestResponse>.value( + _FakeAuthRequestResponse_10( this, Invocation.method( #requestAuth, @@ -1532,9 +1207,9 @@ class MockWeb3App extends _i1.Mock implements _i6.Web3App { }, ), )), - ) as _i4.Future<_i6.AuthRequestResponse>); + ) as _i15.Future<_i4.AuthRequestResponse>); @override - Map getCompletedRequestsForPairing( + Map getCompletedRequestsForPairing( {required String? pairingTopic}) => (super.noSuchMethod( Invocation.method( @@ -1542,12 +1217,12 @@ class MockWeb3App extends _i1.Mock implements _i6.Web3App { [], {#pairingTopic: pairingTopic}, ), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override String formatAuthMessage({ required String? iss, - required _i6.CacaoRequestPayload? cacaoPayload, + required _i4.CacaoRequestPayload? cacaoPayload, }) => (super.noSuchMethod( Invocation.method( @@ -1565,7 +1240,7 @@ class MockWeb3App extends _i1.Mock implements _i6.Web3App { /// A class which mocks [Sessions]. /// /// See the documentation for Mockito's code generation for more information. -class MockSessions extends _i1.Mock implements _i6.Sessions { +class MockSessions extends _i1.Mock implements _i4.Sessions { MockSessions() { _i1.throwOnMissingStub(this); } @@ -1581,55 +1256,55 @@ class MockSessions extends _i1.Mock implements _i6.Sessions { returnValue: '', ) as String); @override - _i9.IStore get storage => (super.noSuchMethod( + _i7.IStore get storage => (super.noSuchMethod( Invocation.getter(#storage), - returnValue: _FakeIStore_16( + returnValue: _FakeIStore_11( this, Invocation.getter(#storage), ), - ) as _i9.IStore); + ) as _i7.IStore); @override - _i3.Event<_i6.StoreCreateEvent<_i6.SessionData>> get onCreate => + _i3.Event<_i4.StoreCreateEvent<_i4.SessionData>> get onCreate => (super.noSuchMethod( Invocation.getter(#onCreate), - returnValue: _FakeEvent_1<_i6.StoreCreateEvent<_i6.SessionData>>( + returnValue: _FakeEvent_1<_i4.StoreCreateEvent<_i4.SessionData>>( this, Invocation.getter(#onCreate), ), - ) as _i3.Event<_i6.StoreCreateEvent<_i6.SessionData>>); + ) as _i3.Event<_i4.StoreCreateEvent<_i4.SessionData>>); @override - _i3.Event<_i6.StoreUpdateEvent<_i6.SessionData>> get onUpdate => + _i3.Event<_i4.StoreUpdateEvent<_i4.SessionData>> get onUpdate => (super.noSuchMethod( Invocation.getter(#onUpdate), - returnValue: _FakeEvent_1<_i6.StoreUpdateEvent<_i6.SessionData>>( + returnValue: _FakeEvent_1<_i4.StoreUpdateEvent<_i4.SessionData>>( this, Invocation.getter(#onUpdate), ), - ) as _i3.Event<_i6.StoreUpdateEvent<_i6.SessionData>>); + ) as _i3.Event<_i4.StoreUpdateEvent<_i4.SessionData>>); @override - _i3.Event<_i6.StoreDeleteEvent<_i6.SessionData>> get onDelete => + _i3.Event<_i4.StoreDeleteEvent<_i4.SessionData>> get onDelete => (super.noSuchMethod( Invocation.getter(#onDelete), - returnValue: _FakeEvent_1<_i6.StoreDeleteEvent<_i6.SessionData>>( + returnValue: _FakeEvent_1<_i4.StoreDeleteEvent<_i4.SessionData>>( this, Invocation.getter(#onDelete), ), - ) as _i3.Event<_i6.StoreDeleteEvent<_i6.SessionData>>); + ) as _i3.Event<_i4.StoreDeleteEvent<_i4.SessionData>>); @override - _i3.Event<_i6.StoreSyncEvent> get onSync => (super.noSuchMethod( + _i3.Event<_i4.StoreSyncEvent> get onSync => (super.noSuchMethod( Invocation.getter(#onSync), - returnValue: _FakeEvent_1<_i6.StoreSyncEvent>( + returnValue: _FakeEvent_1<_i4.StoreSyncEvent>( this, Invocation.getter(#onSync), ), - ) as _i3.Event<_i6.StoreSyncEvent>); + ) as _i3.Event<_i4.StoreSyncEvent>); @override - Map get data => (super.noSuchMethod( + Map get data => (super.noSuchMethod( Invocation.getter(#data), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override - set data(Map? _data) => super.noSuchMethod( + set data(Map? _data) => super.noSuchMethod( Invocation.setter( #data, _data, @@ -1637,23 +1312,23 @@ class MockSessions extends _i1.Mock implements _i6.Sessions { returnValueForMissingStub: null, ); @override - _i6.SessionData Function(dynamic) get fromJson => (super.noSuchMethod( + _i4.SessionData Function(dynamic) get fromJson => (super.noSuchMethod( Invocation.getter(#fromJson), - returnValue: (dynamic __p0) => _FakeSessionData_17( + returnValue: (dynamic __p0) => _FakeSessionData_12( this, Invocation.getter(#fromJson), ), - ) as _i6.SessionData Function(dynamic)); + ) as _i4.SessionData Function(dynamic)); @override String get storageKey => (super.noSuchMethod( Invocation.getter(#storageKey), returnValue: '', ) as String); @override - _i4.Future update( + _i15.Future update( String? topic, { int? expiry, - Map? namespaces, + Map? namespaces, }) => (super.noSuchMethod( Invocation.method( @@ -1664,18 +1339,18 @@ class MockSessions extends _i1.Mock implements _i6.Sessions { #namespaces: namespaces, }, ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override bool has(String? key) => (super.noSuchMethod( Invocation.method( @@ -1685,22 +1360,22 @@ class MockSessions extends _i1.Mock implements _i6.Sessions { returnValue: false, ) as bool); @override - _i6.SessionData? get(String? key) => (super.noSuchMethod(Invocation.method( + _i4.SessionData? get(String? key) => (super.noSuchMethod(Invocation.method( #get, [key], - )) as _i6.SessionData?); + )) as _i4.SessionData?); @override - List<_i6.SessionData> getAll() => (super.noSuchMethod( + List<_i4.SessionData> getAll() => (super.noSuchMethod( Invocation.method( #getAll, [], ), - returnValue: <_i6.SessionData>[], - ) as List<_i6.SessionData>); + returnValue: <_i4.SessionData>[], + ) as List<_i4.SessionData>); @override - _i4.Future set( + _i15.Future set( String? key, - _i6.SessionData? value, + _i4.SessionData? value, ) => (super.noSuchMethod( Invocation.method( @@ -1710,36 +1385,36 @@ class MockSessions extends _i1.Mock implements _i6.Sessions { value, ], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future delete(String? key) => (super.noSuchMethod( + _i15.Future delete(String? key) => (super.noSuchMethod( Invocation.method( #delete, [key], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future persist() => (super.noSuchMethod( + _i15.Future persist() => (super.noSuchMethod( Invocation.method( #persist, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future restore() => (super.noSuchMethod( + _i15.Future restore() => (super.noSuchMethod( Invocation.method( #restore, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override void checkInitialized() => super.noSuchMethod( Invocation.method( @@ -1753,7 +1428,7 @@ class MockSessions extends _i1.Mock implements _i6.Sessions { /// A class which mocks [RelayClient]. /// /// See the documentation for Mockito's code generation for more information. -class MockRelayClient extends _i1.Mock implements _i29.RelayClient { +class MockRelayClient extends _i1.Mock implements _i27.RelayClient { MockRelayClient() { _i1.throwOnMissingStub(this); } @@ -1775,39 +1450,39 @@ class MockRelayClient extends _i1.Mock implements _i29.RelayClient { ), ) as _i3.Event<_i3.EventArgs>); @override - _i3.Event<_i6.ErrorEvent> get onRelayClientError => (super.noSuchMethod( + _i3.Event<_i4.ErrorEvent> get onRelayClientError => (super.noSuchMethod( Invocation.getter(#onRelayClientError), - returnValue: _FakeEvent_1<_i6.ErrorEvent>( + returnValue: _FakeEvent_1<_i4.ErrorEvent>( this, Invocation.getter(#onRelayClientError), ), - ) as _i3.Event<_i6.ErrorEvent>); + ) as _i3.Event<_i4.ErrorEvent>); @override - _i3.Event<_i6.MessageEvent> get onRelayClientMessage => (super.noSuchMethod( + _i3.Event<_i4.MessageEvent> get onRelayClientMessage => (super.noSuchMethod( Invocation.getter(#onRelayClientMessage), - returnValue: _FakeEvent_1<_i6.MessageEvent>( + returnValue: _FakeEvent_1<_i4.MessageEvent>( this, Invocation.getter(#onRelayClientMessage), ), - ) as _i3.Event<_i6.MessageEvent>); + ) as _i3.Event<_i4.MessageEvent>); @override - _i3.Event<_i6.SubscriptionEvent> get onSubscriptionCreated => + _i3.Event<_i4.SubscriptionEvent> get onSubscriptionCreated => (super.noSuchMethod( Invocation.getter(#onSubscriptionCreated), - returnValue: _FakeEvent_1<_i6.SubscriptionEvent>( + returnValue: _FakeEvent_1<_i4.SubscriptionEvent>( this, Invocation.getter(#onSubscriptionCreated), ), - ) as _i3.Event<_i6.SubscriptionEvent>); + ) as _i3.Event<_i4.SubscriptionEvent>); @override - _i3.Event<_i6.SubscriptionDeletionEvent> get onSubscriptionDeleted => + _i3.Event<_i4.SubscriptionDeletionEvent> get onSubscriptionDeleted => (super.noSuchMethod( Invocation.getter(#onSubscriptionDeleted), - returnValue: _FakeEvent_1<_i6.SubscriptionDeletionEvent>( + returnValue: _FakeEvent_1<_i4.SubscriptionDeletionEvent>( this, Invocation.getter(#onSubscriptionDeleted), ), - ) as _i3.Event<_i6.SubscriptionDeletionEvent>); + ) as _i3.Event<_i4.SubscriptionDeletionEvent>); @override _i3.Event<_i3.EventArgs> get onSubscriptionResubscribed => (super.noSuchMethod( @@ -1826,7 +1501,7 @@ class MockRelayClient extends _i1.Mock implements _i29.RelayClient { ), ) as _i3.Event<_i3.EventArgs>); @override - set jsonRPC(_i30.Peer? _jsonRPC) => super.noSuchMethod( + set jsonRPC(_i28.Peer? _jsonRPC) => super.noSuchMethod( Invocation.setter( #jsonRPC, _jsonRPC, @@ -1834,14 +1509,14 @@ class MockRelayClient extends _i1.Mock implements _i29.RelayClient { returnValueForMissingStub: null, ); @override - Map> get pendingSubscriptions => + Map> get pendingSubscriptions => (super.noSuchMethod( Invocation.getter(#pendingSubscriptions), - returnValue: >{}, - ) as Map>); + returnValue: >{}, + ) as Map>); @override set pendingSubscriptions( - Map>? _pendingSubscriptions) => + Map>? _pendingSubscriptions) => super.noSuchMethod( Invocation.setter( #pendingSubscriptions, @@ -1850,15 +1525,15 @@ class MockRelayClient extends _i1.Mock implements _i29.RelayClient { returnValueForMissingStub: null, ); @override - _i10.IMessageTracker get messageTracker => (super.noSuchMethod( + _i8.IMessageTracker get messageTracker => (super.noSuchMethod( Invocation.getter(#messageTracker), - returnValue: _FakeIMessageTracker_18( + returnValue: _FakeIMessageTracker_13( this, Invocation.getter(#messageTracker), ), - ) as _i10.IMessageTracker); + ) as _i8.IMessageTracker); @override - set messageTracker(_i10.IMessageTracker? _messageTracker) => + set messageTracker(_i8.IMessageTracker? _messageTracker) => super.noSuchMethod( Invocation.setter( #messageTracker, @@ -1867,15 +1542,15 @@ class MockRelayClient extends _i1.Mock implements _i29.RelayClient { returnValueForMissingStub: null, ); @override - _i7.IGenericStore get topicMap => (super.noSuchMethod( + _i5.IGenericStore get topicMap => (super.noSuchMethod( Invocation.getter(#topicMap), - returnValue: _FakeIGenericStore_11( + returnValue: _FakeIGenericStore_6( this, Invocation.getter(#topicMap), ), - ) as _i7.IGenericStore); + ) as _i5.IGenericStore); @override - set topicMap(_i7.IGenericStore? _topicMap) => super.noSuchMethod( + set topicMap(_i5.IGenericStore? _topicMap) => super.noSuchMethod( Invocation.setter( #topicMap, _topicMap, @@ -1883,23 +1558,23 @@ class MockRelayClient extends _i1.Mock implements _i29.RelayClient { returnValueForMissingStub: null, ); @override - _i11.IWebSocketHandler get socketHandler => (super.noSuchMethod( + _i9.IWebSocketHandler get socketHandler => (super.noSuchMethod( Invocation.getter(#socketHandler), - returnValue: _FakeIWebSocketHandler_19( + returnValue: _FakeIWebSocketHandler_14( this, Invocation.getter(#socketHandler), ), - ) as _i11.IWebSocketHandler); + ) as _i9.IWebSocketHandler); @override - _i6.ICore get core => (super.noSuchMethod( + _i4.ICore get core => (super.noSuchMethod( Invocation.getter(#core), - returnValue: _FakeICore_7( + returnValue: _FakeICore_2( this, Invocation.getter(#core), ), - ) as _i6.ICore); + ) as _i4.ICore); @override - set core(_i6.ICore? _core) => super.noSuchMethod( + set core(_i4.ICore? _core) => super.noSuchMethod( Invocation.setter( #core, _core, @@ -1912,16 +1587,16 @@ class MockRelayClient extends _i1.Mock implements _i29.RelayClient { returnValue: false, ) as bool); @override - _i4.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future publish({ + _i15.Future publish({ required String? topic, required String? message, required int? ttl, @@ -1938,49 +1613,51 @@ class MockRelayClient extends _i1.Mock implements _i29.RelayClient { #tag: tag, }, ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future subscribe({required String? topic}) => (super.noSuchMethod( + _i15.Future subscribe({required String? topic}) => + (super.noSuchMethod( Invocation.method( #subscribe, [], {#topic: topic}, ), - returnValue: _i4.Future.value(''), - ) as _i4.Future); + returnValue: _i15.Future.value(''), + ) as _i15.Future); @override - _i4.Future unsubscribe({required String? topic}) => (super.noSuchMethod( + _i15.Future unsubscribe({required String? topic}) => + (super.noSuchMethod( Invocation.method( #unsubscribe, [], {#topic: topic}, ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future connect({String? relayUrl}) => (super.noSuchMethod( + _i15.Future connect({String? relayUrl}) => (super.noSuchMethod( Invocation.method( #connect, [], {#relayUrl: relayUrl}, ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future disconnect() => (super.noSuchMethod( + _i15.Future disconnect() => (super.noSuchMethod( Invocation.method( #disconnect, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i4.Future handlePublish( + _i15.Future handlePublish( String? topic, String? message, ) => @@ -1992,20 +1669,20 @@ class MockRelayClient extends _i1.Mock implements _i29.RelayClient { message, ], ), - returnValue: _i4.Future.value(false), - ) as _i4.Future); + returnValue: _i15.Future.value(false), + ) as _i15.Future); } /// A class which mocks [Client]. /// /// See the documentation for Mockito's code generation for more information. -class MockClient extends _i1.Mock implements _i12.Client { +class MockClient extends _i1.Mock implements _i10.Client { MockClient() { _i1.throwOnMissingStub(this); } @override - _i4.Future<_i12.Response> head( + _i15.Future<_i10.Response> head( Uri? url, { Map? headers, }) => @@ -2015,7 +1692,7 @@ class MockClient extends _i1.Mock implements _i12.Client { [url], {#headers: headers}, ), - returnValue: _i4.Future<_i12.Response>.value(_FakeResponse_20( + returnValue: _i15.Future<_i10.Response>.value(_FakeResponse_15( this, Invocation.method( #head, @@ -2023,9 +1700,9 @@ class MockClient extends _i1.Mock implements _i12.Client { {#headers: headers}, ), )), - ) as _i4.Future<_i12.Response>); + ) as _i15.Future<_i10.Response>); @override - _i4.Future<_i12.Response> get( + _i15.Future<_i10.Response> get( Uri? url, { Map? headers, }) => @@ -2035,7 +1712,7 @@ class MockClient extends _i1.Mock implements _i12.Client { [url], {#headers: headers}, ), - returnValue: _i4.Future<_i12.Response>.value(_FakeResponse_20( + returnValue: _i15.Future<_i10.Response>.value(_FakeResponse_15( this, Invocation.method( #get, @@ -2043,13 +1720,13 @@ class MockClient extends _i1.Mock implements _i12.Client { {#headers: headers}, ), )), - ) as _i4.Future<_i12.Response>); + ) as _i15.Future<_i10.Response>); @override - _i4.Future<_i12.Response> post( + _i15.Future<_i10.Response> post( Uri? url, { Map? headers, Object? body, - _i31.Encoding? encoding, + _i29.Encoding? encoding, }) => (super.noSuchMethod( Invocation.method( @@ -2061,7 +1738,7 @@ class MockClient extends _i1.Mock implements _i12.Client { #encoding: encoding, }, ), - returnValue: _i4.Future<_i12.Response>.value(_FakeResponse_20( + returnValue: _i15.Future<_i10.Response>.value(_FakeResponse_15( this, Invocation.method( #post, @@ -2073,13 +1750,13 @@ class MockClient extends _i1.Mock implements _i12.Client { }, ), )), - ) as _i4.Future<_i12.Response>); + ) as _i15.Future<_i10.Response>); @override - _i4.Future<_i12.Response> put( + _i15.Future<_i10.Response> put( Uri? url, { Map? headers, Object? body, - _i31.Encoding? encoding, + _i29.Encoding? encoding, }) => (super.noSuchMethod( Invocation.method( @@ -2091,7 +1768,7 @@ class MockClient extends _i1.Mock implements _i12.Client { #encoding: encoding, }, ), - returnValue: _i4.Future<_i12.Response>.value(_FakeResponse_20( + returnValue: _i15.Future<_i10.Response>.value(_FakeResponse_15( this, Invocation.method( #put, @@ -2103,13 +1780,13 @@ class MockClient extends _i1.Mock implements _i12.Client { }, ), )), - ) as _i4.Future<_i12.Response>); + ) as _i15.Future<_i10.Response>); @override - _i4.Future<_i12.Response> patch( + _i15.Future<_i10.Response> patch( Uri? url, { Map? headers, Object? body, - _i31.Encoding? encoding, + _i29.Encoding? encoding, }) => (super.noSuchMethod( Invocation.method( @@ -2121,7 +1798,7 @@ class MockClient extends _i1.Mock implements _i12.Client { #encoding: encoding, }, ), - returnValue: _i4.Future<_i12.Response>.value(_FakeResponse_20( + returnValue: _i15.Future<_i10.Response>.value(_FakeResponse_15( this, Invocation.method( #patch, @@ -2133,13 +1810,13 @@ class MockClient extends _i1.Mock implements _i12.Client { }, ), )), - ) as _i4.Future<_i12.Response>); + ) as _i15.Future<_i10.Response>); @override - _i4.Future<_i12.Response> delete( + _i15.Future<_i10.Response> delete( Uri? url, { Map? headers, Object? body, - _i31.Encoding? encoding, + _i29.Encoding? encoding, }) => (super.noSuchMethod( Invocation.method( @@ -2151,7 +1828,7 @@ class MockClient extends _i1.Mock implements _i12.Client { #encoding: encoding, }, ), - returnValue: _i4.Future<_i12.Response>.value(_FakeResponse_20( + returnValue: _i15.Future<_i10.Response>.value(_FakeResponse_15( this, Invocation.method( #delete, @@ -2163,9 +1840,9 @@ class MockClient extends _i1.Mock implements _i12.Client { }, ), )), - ) as _i4.Future<_i12.Response>); + ) as _i15.Future<_i10.Response>); @override - _i4.Future read( + _i15.Future read( Uri? url, { Map? headers, }) => @@ -2175,10 +1852,10 @@ class MockClient extends _i1.Mock implements _i12.Client { [url], {#headers: headers}, ), - returnValue: _i4.Future.value(''), - ) as _i4.Future); + returnValue: _i15.Future.value(''), + ) as _i15.Future); @override - _i4.Future<_i32.Uint8List> readBytes( + _i15.Future<_i30.Uint8List> readBytes( Uri? url, { Map? headers, }) => @@ -2188,24 +1865,24 @@ class MockClient extends _i1.Mock implements _i12.Client { [url], {#headers: headers}, ), - returnValue: _i4.Future<_i32.Uint8List>.value(_i32.Uint8List(0)), - ) as _i4.Future<_i32.Uint8List>); + returnValue: _i15.Future<_i30.Uint8List>.value(_i30.Uint8List(0)), + ) as _i15.Future<_i30.Uint8List>); @override - _i4.Future<_i12.StreamedResponse> send(_i12.BaseRequest? request) => + _i15.Future<_i10.StreamedResponse> send(_i10.BaseRequest? request) => (super.noSuchMethod( Invocation.method( #send, [request], ), returnValue: - _i4.Future<_i12.StreamedResponse>.value(_FakeStreamedResponse_21( + _i15.Future<_i10.StreamedResponse>.value(_FakeStreamedResponse_16( this, Invocation.method( #send, [request], ), )), - ) as _i4.Future<_i12.StreamedResponse>); + ) as _i15.Future<_i10.StreamedResponse>); @override void close() => super.noSuchMethod( Invocation.method( @@ -2219,7 +1896,7 @@ class MockClient extends _i1.Mock implements _i12.Client { /// A class which mocks [NetworkService]. /// /// See the documentation for Mockito's code generation for more information. -class MockNetworkService extends _i1.Mock implements _i33.NetworkService { +class MockNetworkService extends _i1.Mock implements _i31.NetworkService { MockNetworkService() { _i1.throwOnMissingStub(this); } @@ -2241,14 +1918,14 @@ class MockNetworkService extends _i1.Mock implements _i33.NetworkService { returnValueForMissingStub: null, ); @override - List<_i34.GridItem<_i20.W3MChainInfo>> get itemListComplete => + List<_i32.GridItem<_i19.W3MChainInfo>> get itemListComplete => (super.noSuchMethod( Invocation.getter(#itemListComplete), - returnValue: <_i34.GridItem<_i20.W3MChainInfo>>[], - ) as List<_i34.GridItem<_i20.W3MChainInfo>>); + returnValue: <_i32.GridItem<_i19.W3MChainInfo>>[], + ) as List<_i32.GridItem<_i19.W3MChainInfo>>); @override set itemListComplete( - List<_i34.GridItem<_i20.W3MChainInfo>>? _itemListComplete) => + List<_i32.GridItem<_i19.W3MChainInfo>>? _itemListComplete) => super.noSuchMethod( Invocation.setter( #itemListComplete, @@ -2257,18 +1934,18 @@ class MockNetworkService extends _i1.Mock implements _i33.NetworkService { returnValueForMissingStub: null, ); @override - _i2.ValueNotifier>> get itemList => + _i2.ValueNotifier>> get itemList => (super.noSuchMethod( Invocation.getter(#itemList), returnValue: - _FakeValueNotifier_0>>( + _FakeValueNotifier_0>>( this, Invocation.getter(#itemList), ), - ) as _i2.ValueNotifier>>); + ) as _i2.ValueNotifier>>); @override set itemList( - _i2.ValueNotifier>>? + _i2.ValueNotifier>>? _itemList) => super.noSuchMethod( Invocation.setter( @@ -2278,14 +1955,14 @@ class MockNetworkService extends _i1.Mock implements _i33.NetworkService { returnValueForMissingStub: null, ); @override - _i4.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override void filterList({String? query}) => super.noSuchMethod( Invocation.method( @@ -2301,7 +1978,7 @@ class MockNetworkService extends _i1.Mock implements _i33.NetworkService { /// /// See the documentation for Mockito's code generation for more information. class MockBlockchainApiUtils extends _i1.Mock - implements _i35.BlockchainApiUtils { + implements _i33.BlockchainApiUtils { MockBlockchainApiUtils() { _i1.throwOnMissingStub(this); } @@ -2317,7 +1994,7 @@ class MockBlockchainApiUtils extends _i1.Mock returnValue: '', ) as String); @override - _i4.Future<_i13.BlockchainIdentity> getIdentity( + _i15.Future<_i11.BlockchainIdentity> getIdentity( String? address, int? chainId, ) => @@ -2329,8 +2006,8 @@ class MockBlockchainApiUtils extends _i1.Mock chainId, ], ), - returnValue: _i4.Future<_i13.BlockchainIdentity>.value( - _FakeBlockchainIdentity_22( + returnValue: _i15.Future<_i11.BlockchainIdentity>.value( + _FakeBlockchainIdentity_17( this, Invocation.method( #getIdentity, @@ -2340,19 +2017,19 @@ class MockBlockchainApiUtils extends _i1.Mock ], ), )), - ) as _i4.Future<_i13.BlockchainIdentity>); + ) as _i15.Future<_i11.BlockchainIdentity>); } /// A class which mocks [LedgerService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLedgerService extends _i1.Mock implements _i36.LedgerService { +class MockLedgerService extends _i1.Mock implements _i34.LedgerService { MockLedgerService() { _i1.throwOnMissingStub(this); } @override - _i4.Future getBalance( + _i15.Future getBalance( String? rpcUrl, String? address, ) => @@ -2364,10 +2041,10 @@ class MockLedgerService extends _i1.Mock implements _i36.LedgerService { address, ], ), - returnValue: _i4.Future.value(0.0), - ) as _i4.Future); + returnValue: _i15.Future.value(0.0), + ) as _i15.Future); @override - _i4.Future fetchEnsName( + _i15.Future fetchEnsName( String? rpcUrl, String? address, ) => @@ -2379,10 +2056,10 @@ class MockLedgerService extends _i1.Mock implements _i36.LedgerService { address, ], ), - returnValue: _i4.Future.value(''), - ) as _i4.Future); + returnValue: _i15.Future.value(''), + ) as _i15.Future); @override - _i4.Future fetchEnsAvatar( + _i15.Future fetchEnsAvatar( String? rpcUrl, String? address, ) => @@ -2394,27 +2071,27 @@ class MockLedgerService extends _i1.Mock implements _i36.LedgerService { address, ], ), - returnValue: _i4.Future.value(''), - ) as _i4.Future); + returnValue: _i15.Future.value(''), + ) as _i15.Future); } /// A class which mocks [StorageService]. /// /// See the documentation for Mockito's code generation for more information. -class MockStorageService extends _i1.Mock implements _i37.StorageService { +class MockStorageService extends _i1.Mock implements _i35.StorageService { MockStorageService() { _i1.throwOnMissingStub(this); } @override - _i4.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override String? getString( String? key, { @@ -2426,7 +2103,7 @@ class MockStorageService extends _i1.Mock implements _i37.StorageService { {#defaultValue: defaultValue}, )) as String?); @override - _i4.Future setString( + _i15.Future setString( String? key, String? value, ) => @@ -2438,26 +2115,26 @@ class MockStorageService extends _i1.Mock implements _i37.StorageService { value, ], ), - returnValue: _i4.Future.value(false), - ) as _i4.Future); + returnValue: _i15.Future.value(false), + ) as _i15.Future); } /// A class which mocks [WidgetStack]. /// /// See the documentation for Mockito's code generation for more information. -class MockWidgetStack extends _i1.Mock implements _i38.WidgetStack { +class MockWidgetStack extends _i1.Mock implements _i36.WidgetStack { MockWidgetStack() { _i1.throwOnMissingStub(this); } @override - _i2.ValueListenable<_i14.Widget> get current => (super.noSuchMethod( + _i2.ValueListenable<_i12.Widget> get current => (super.noSuchMethod( Invocation.getter(#current), - returnValue: _FakeValueListenable_23<_i14.Widget>( + returnValue: _FakeValueListenable_18<_i12.Widget>( this, Invocation.getter(#current), ), - ) as _i2.ValueListenable<_i14.Widget>); + ) as _i2.ValueListenable<_i12.Widget>); @override _i2.ValueNotifier get onRenderScreen => (super.noSuchMethod( Invocation.getter(#onRenderScreen), @@ -2472,22 +2149,22 @@ class MockWidgetStack extends _i1.Mock implements _i38.WidgetStack { returnValue: false, ) as bool); @override - _i14.Widget getCurrent() => (super.noSuchMethod( + _i12.Widget getCurrent() => (super.noSuchMethod( Invocation.method( #getCurrent, [], ), - returnValue: _FakeWidget_24( + returnValue: _FakeWidget_19( this, Invocation.method( #getCurrent, [], ), ), - ) as _i14.Widget); + ) as _i12.Widget); @override void push( - _i14.Widget? widget, { + _i12.Widget? widget, { bool? renderScreen = false, }) => super.noSuchMethod( @@ -2547,7 +2224,7 @@ class MockWidgetStack extends _i1.Mock implements _i38.WidgetStack { returnValueForMissingStub: null, ); @override - void addListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2555,7 +2232,7 @@ class MockWidgetStack extends _i1.Mock implements _i38.WidgetStack { returnValueForMissingStub: null, ); @override - void removeListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener],