From 9bb7c631809f3c5b58c387bc02dfadb3ae0a2fa2 Mon Sep 17 00:00:00 2001 From: Alfreedom <00tango.bromine@icloud.com> Date: Fri, 5 Jan 2024 13:10:10 +0100 Subject: [PATCH] removed unused dependencies --- example/pubspec.lock | 42 +- example/pubspec.yaml | 9 +- lib/pages/get_wallet_page.dart | 1 - lib/pages/qr_code_page.dart | 3 +- .../coinbase_service/coinbase_service.dart | 1 - .../coinbase_service/i_coinbase_service.dart | 1 - .../models/coinbase_events.dart | 2 +- .../explorer_service/explorer_service.dart | 1 - .../ledger_service/ledger_service.dart | 2 +- .../storage_service/storage_service.dart | 2 +- lib/services/w3m_service/i_w3m_service.dart | 1 - lib/services/w3m_service/w3m_service.dart | 1 - lib/utils/platform/platform_utils.dart | 2 +- lib/utils/w3m_logger.dart | 1 - lib/web3modal_flutter.dart | 2 - .../list_items/download_wallet_item.dart | 2 - pubspec.lock | 24 +- pubspec.yaml | 9 +- test/mock_classes.mocks.dart | 1099 ++++++++--------- .../w3m_account_page_ui_test.dart | 1 - test/w3m_service/w3m_service_unit_test.dart | 3 - 21 files changed, 579 insertions(+), 630 deletions(-) diff --git a/example/pubspec.lock b/example/pubspec.lock index 0051baee..9fe829c9 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -408,14 +408,6 @@ packages: url: "https://pub.dev" source: hosted version: "3.2.0" - get_it: - dependency: "direct main" - description: - name: get_it - sha256: f79870884de16d689cf9a7d15eedf31ed61d750e813c538a6efb92660fea83c3 - url: "https://pub.dev" - source: hosted - version: "7.6.4" glob: dependency: transitive description: @@ -481,7 +473,7 @@ packages: source: hosted version: "0.6.7" json_annotation: - dependency: "direct main" + dependency: transitive description: name: json_annotation sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 @@ -513,7 +505,7 @@ packages: source: hosted version: "3.0.0" logger: - dependency: "direct main" + dependency: transitive description: name: logger sha256: "6bbb9d6f7056729537a4309bda2e74e18e5d9f14302489cc1e93f33b3fe32cac" @@ -560,14 +552,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.4" - mockito: - dependency: transitive - description: - name: mockito - sha256: "4b693867cee1853c9d1d7ecc1871f27f39b2ef2c13c0d8d8507dfe5bebd8aaf1" - url: "https://pub.dev" - source: hosted - version: "5.4.3" octo_image: dependency: transitive description: @@ -588,10 +572,10 @@ packages: dependency: transitive description: name: package_info_plus - sha256: "7e76fad405b3e4016cd39d08f455a4eb5199723cf594cd1b8916d47140d93017" + sha256: "88bc797f44a94814f2213db1c9bd5badebafdfb8290ca9f78d4b9ee2a3db4d79" url: "https://pub.dev" source: hosted - version: "4.2.0" + version: "5.0.1" package_info_plus_platform_interface: dependency: transitive description: @@ -837,14 +821,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: @@ -966,7 +942,7 @@ packages: source: hosted version: "1.3.2" universal_io: - dependency: "direct main" + dependency: transitive description: name: universal_io sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad" @@ -1089,10 +1065,10 @@ packages: dependency: transitive description: name: walletconnect_flutter_v2 - sha256: "60f56018f69401799dfcfdee2d5112132aa922eea613018155132b87849ea1b5" + sha256: a3654aa71221f15be6b20663759fad3eb3a37dc486f72860d7eb69c1e39d682b url: "https://pub.dev" source: hosted - version: "2.1.11" + version: "2.1.12" watcher: dependency: transitive description: @@ -1128,10 +1104,10 @@ packages: dependency: transitive description: name: web_socket_channel - sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b + sha256: cc1f6c632a248278a091fd7d9a68f624906830f7c1c5aa66503fae0804633e1c url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.4.2" win32: dependency: transitive description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 3dff8f6b..86eec0c6 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -11,16 +11,11 @@ environment: dependencies: flutter: sdk: flutter - web3modal_flutter: - path: ../ cupertino_icons: ^1.0.2 - get_it: ^7.6.0 - logger: ^2.0.2+1 fl_toast: ^3.1.0 - smooth_page_indicator: ^1.1.0 - universal_io: ^2.2.2 - json_annotation: ^4.8.1 shared_preferences: ^2.2.0 + web3modal_flutter: + path: ../ dev_dependencies: flutter_test: diff --git a/lib/pages/get_wallet_page.dart b/lib/pages/get_wallet_page.dart index b64c99c9..42f0b6a7 100644 --- a/lib/pages/get_wallet_page.dart +++ b/lib/pages/get_wallet_page.dart @@ -1,4 +1,3 @@ -import 'dart:io'; import 'dart:math'; import 'package:flutter/material.dart'; diff --git a/lib/pages/qr_code_page.dart b/lib/pages/qr_code_page.dart index 9d8184d5..01967db7 100644 --- a/lib/pages/qr_code_page.dart +++ b/lib/pages/qr_code_page.dart @@ -1,11 +1,10 @@ -import 'package:event/event.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:web3modal_flutter/constants/key_constants.dart'; import 'package:web3modal_flutter/services/w3m_service/i_w3m_service.dart'; import 'package:web3modal_flutter/theme/constants.dart'; -import 'package:web3modal_flutter/theme/w3m_theme.dart'; +import 'package:web3modal_flutter/web3modal_flutter.dart'; import 'package:web3modal_flutter/widgets/buttons/simple_icon_button.dart'; import 'package:web3modal_flutter/widgets/w3m_qr_code.dart'; import 'package:web3modal_flutter/widgets/miscellaneous/responsive_container.dart'; diff --git a/lib/services/coinbase_service/coinbase_service.dart b/lib/services/coinbase_service/coinbase_service.dart index 652fdb65..2938ccdf 100644 --- a/lib/services/coinbase_service/coinbase_service.dart +++ b/lib/services/coinbase_service/coinbase_service.dart @@ -2,7 +2,6 @@ import 'dart:convert'; import 'package:flutter/foundation.dart'; -import 'package:event/event.dart'; import 'package:flutter/services.dart'; import 'package:web3modal_flutter/services/coinbase_service/i_coinbase_service.dart'; import 'package:web3modal_flutter/services/coinbase_service/models/coinbase_events.dart'; diff --git a/lib/services/coinbase_service/i_coinbase_service.dart b/lib/services/coinbase_service/i_coinbase_service.dart index e405fadf..c7fbf951 100644 --- a/lib/services/coinbase_service/i_coinbase_service.dart +++ b/lib/services/coinbase_service/i_coinbase_service.dart @@ -1,4 +1,3 @@ -import 'package:event/event.dart'; import 'package:web3modal_flutter/services/coinbase_service/models/coinbase_events.dart'; import 'package:web3modal_flutter/web3modal_flutter.dart'; diff --git a/lib/services/coinbase_service/models/coinbase_events.dart b/lib/services/coinbase_service/models/coinbase_events.dart index dc9c7198..7c74367c 100644 --- a/lib/services/coinbase_service/models/coinbase_events.dart +++ b/lib/services/coinbase_service/models/coinbase_events.dart @@ -1,4 +1,4 @@ -import 'package:event/event.dart'; +import 'package:web3modal_flutter/web3modal_flutter.dart'; import 'package:web3modal_flutter/services/coinbase_service/models/coinbase_data.dart'; class CoinbaseConnectEvent implements EventArgs { diff --git a/lib/services/explorer_service/explorer_service.dart b/lib/services/explorer_service/explorer_service.dart index 2a578622..e35a919b 100644 --- a/lib/services/explorer_service/explorer_service.dart +++ b/lib/services/explorer_service/explorer_service.dart @@ -5,7 +5,6 @@ import 'dart:math'; import 'package:collection/collection.dart'; import 'package:flutter/foundation.dart'; import 'package:http/http.dart' as http; -import 'package:universal_io/io.dart'; import 'package:web3modal_flutter/services/coinbase_service/coinbase_service.dart'; import 'package:web3modal_flutter/services/explorer_service/models/redirect.dart'; import 'package:web3modal_flutter/utils/debouncer.dart'; diff --git a/lib/services/ledger_service/ledger_service.dart b/lib/services/ledger_service/ledger_service.dart index b2858d19..0f0551f2 100644 --- a/lib/services/ledger_service/ledger_service.dart +++ b/lib/services/ledger_service/ledger_service.dart @@ -1,6 +1,6 @@ import 'package:http/http.dart'; -import 'package:web3dart/web3dart.dart'; import 'package:web3modal_flutter/services/ledger_service/i_ledger_service.dart'; +import 'package:web3modal_flutter/web3modal_flutter.dart'; class LedgerService extends ILedgerService { @override diff --git a/lib/services/storage_service/storage_service.dart b/lib/services/storage_service/storage_service.dart index 782909d1..33bc8c7d 100644 --- a/lib/services/storage_service/storage_service.dart +++ b/lib/services/storage_service/storage_service.dart @@ -1,6 +1,6 @@ -import 'package:shared_preferences/shared_preferences.dart'; import 'package:web3modal_flutter/constants/string_constants.dart'; import 'package:web3modal_flutter/services/storage_service/i_storage_service.dart'; +import 'package:web3modal_flutter/web3modal_flutter.dart'; class StorageService implements IStorageService { SharedPreferences? _prefs; diff --git a/lib/services/w3m_service/i_w3m_service.dart b/lib/services/w3m_service/i_w3m_service.dart index 747cc942..1c6fa268 100644 --- a/lib/services/w3m_service/i_w3m_service.dart +++ b/lib/services/w3m_service/i_w3m_service.dart @@ -1,4 +1,3 @@ -import 'package:event/event.dart'; import 'package:flutter/material.dart'; import 'package:web3modal_flutter/services/coinbase_service/coinbase_service.dart'; import 'package:web3modal_flutter/services/explorer_service/models/redirect.dart'; diff --git a/lib/services/w3m_service/w3m_service.dart b/lib/services/w3m_service/w3m_service.dart index 420ff807..b2661010 100644 --- a/lib/services/w3m_service/w3m_service.dart +++ b/lib/services/w3m_service/w3m_service.dart @@ -1,7 +1,6 @@ import 'dart:async'; import 'dart:convert'; -import 'package:event/event.dart'; import 'package:flutter/material.dart'; import 'package:url_launcher/url_launcher.dart'; diff --git a/lib/utils/platform/platform_utils.dart b/lib/utils/platform/platform_utils.dart index d20f0c26..5ec6209b 100644 --- a/lib/utils/platform/platform_utils.dart +++ b/lib/utils/platform/platform_utils.dart @@ -1,7 +1,7 @@ import 'package:flutter/material.dart'; -import 'package:universal_io/io.dart'; import 'package:flutter/foundation.dart' show kIsWeb; import 'package:web3modal_flutter/utils/platform/i_platform_utils.dart'; +import 'package:web3modal_flutter/web3modal_flutter.dart'; class PlatformUtils extends IPlatformUtils { @override diff --git a/lib/utils/w3m_logger.dart b/lib/utils/w3m_logger.dart index 4736daab..9aeea981 100644 --- a/lib/utils/w3m_logger.dart +++ b/lib/utils/w3m_logger.dart @@ -1,5 +1,4 @@ import 'package:flutter/foundation.dart'; -import 'package:logger/logger.dart'; import 'package:web3modal_flutter/web3modal_flutter.dart'; class W3MLoggerUtil { diff --git a/lib/web3modal_flutter.dart b/lib/web3modal_flutter.dart index d3824b0f..a672c6c2 100644 --- a/lib/web3modal_flutter.dart +++ b/lib/web3modal_flutter.dart @@ -3,8 +3,6 @@ library web3modal_flutter; /// libraries export 'package:walletconnect_flutter_v2/walletconnect_flutter_v2.dart'; -export 'package:web3dart/web3dart.dart'; -export 'package:web3dart/crypto.dart'; /// Models export 'models/w3m_chain_info.dart'; diff --git a/lib/widgets/lists/list_items/download_wallet_item.dart b/lib/widgets/lists/list_items/download_wallet_item.dart index f9899275..4beaaeef 100644 --- a/lib/widgets/lists/list_items/download_wallet_item.dart +++ b/lib/widgets/lists/list_items/download_wallet_item.dart @@ -1,5 +1,3 @@ -import 'dart:io'; - import 'package:flutter/material.dart'; import 'package:url_launcher/url_launcher_string.dart'; diff --git a/pubspec.lock b/pubspec.lock index 9116f260..8c6d2628 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -290,7 +290,7 @@ packages: source: hosted version: "1.0.2" event: - dependency: "direct main" + dependency: transitive description: name: event sha256: eb4814de94cbf6a10da9c4f652bc654087d7066e33566b5036822e6c0b24befb @@ -473,7 +473,7 @@ packages: source: hosted version: "3.0.0" logger: - dependency: "direct main" + dependency: transitive description: name: logger sha256: "6bbb9d6f7056729537a4309bda2e74e18e5d9f14302489cc1e93f33b3fe32cac" @@ -521,7 +521,7 @@ packages: source: hosted version: "1.0.4" mockito: - dependency: "direct main" + dependency: "direct dev" description: name: mockito sha256: "4b693867cee1853c9d1d7ecc1871f27f39b2ef2c13c0d8d8507dfe5bebd8aaf1" @@ -556,10 +556,10 @@ packages: dependency: transitive description: name: package_info_plus - sha256: "7e76fad405b3e4016cd39d08f455a4eb5199723cf594cd1b8916d47140d93017" + sha256: "88bc797f44a94814f2213db1c9bd5badebafdfb8290ca9f78d4b9ee2a3db4d79" url: "https://pub.dev" source: hosted - version: "4.2.0" + version: "5.0.1" package_info_plus_platform_interface: dependency: transitive description: @@ -721,7 +721,7 @@ packages: source: hosted version: "1.1.0" shared_preferences: - dependency: "direct main" + dependency: transitive description: name: shared_preferences sha256: "81429e4481e1ccfb51ede496e916348668fd0921627779233bd24cc3ff6abd02" @@ -926,7 +926,7 @@ packages: source: hosted version: "1.3.2" universal_io: - dependency: "direct main" + dependency: transitive description: name: universal_io sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad" @@ -1049,10 +1049,10 @@ packages: dependency: "direct main" description: name: walletconnect_flutter_v2 - sha256: "60f56018f69401799dfcfdee2d5112132aa922eea613018155132b87849ea1b5" + sha256: a3654aa71221f15be6b20663759fad3eb3a37dc486f72860d7eb69c1e39d682b url: "https://pub.dev" source: hosted - version: "2.1.11" + version: "2.1.12" watcher: dependency: transitive description: @@ -1070,7 +1070,7 @@ packages: source: hosted version: "0.3.0" web3dart: - dependency: "direct main" + dependency: transitive description: name: web3dart sha256: "31f93cf84b8c874d7ffb363959249d7e479115fe12cf46f30b037dcad6750b22" @@ -1081,10 +1081,10 @@ packages: dependency: transitive description: name: web_socket_channel - sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b + sha256: cc1f6c632a248278a091fd7d9a68f624906830f7c1c5aa66503fae0804633e1c url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.4.2" win32: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 707e54f8..dc6c1941 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -13,22 +13,16 @@ dependencies: collection: ^1.17.2 cupertino_icons: ^1.0.2 custom_sliding_segmented_control: ^1.8.1 - event: ^2.1.2 flutter: sdk: flutter flutter_svg: ^2.0.9 freezed_annotation: ^2.2.0 http: ^1.1.2 json_annotation: ^4.8.1 - logger: ^2.0.2+1 - mockito: ^5.4.3 qr_flutter_wc: ^0.0.3 - shared_preferences: ^2.2.2 shimmer: ^3.0.0 - universal_io: ^2.2.0 url_launcher: ^6.2.2 - walletconnect_flutter_v2: ^2.1.11 - web3dart: ^2.7.2 + walletconnect_flutter_v2: ^2.1.12 dev_dependencies: build_runner: ^2.4.7 @@ -38,6 +32,7 @@ dev_dependencies: freezed: ^2.4.5 json_serializable: ^6.7.0 lints: ^3.0.0 + mockito: ^5.4.3 network_image_mock: ^2.1.1 flutter: diff --git a/test/mock_classes.mocks.dart b/test/mock_classes.mocks.dart index b643dd92..1f180c4f 100644 --- a/test/mock_classes.mocks.dart +++ b/test/mock_classes.mocks.dart @@ -3,59 +3,58 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i16; -import 'dart:convert' as _i29; -import 'dart:typed_data' as _i30; -import 'dart:ui' as _i20; +import 'dart:async' as _i15; +import 'dart:convert' as _i28; +import 'dart:typed_data' as _i29; +import 'dart:ui' as _i19; -import 'package:event/event.dart' as _i3; import 'package:flutter/foundation.dart' as _i2; -import 'package:flutter/material.dart' as _i12; -import 'package:http/http.dart' as _i10; +import 'package:flutter/material.dart' as _i11; +import 'package:http/http.dart' as _i9; import 'package:mockito/mockito.dart' as _i1; -import 'package:mockito/src/dummies.dart' as _i14; -import 'package:url_launcher/url_launcher.dart' as _i22; +import 'package:mockito/src/dummies.dart' as _i13; +import 'package:url_launcher/url_launcher.dart' as _i21; import 'package:walletconnect_flutter_v2/apis/core/relay_client/i_message_tracker.dart' - as _i8; + as _i7; import 'package:walletconnect_flutter_v2/apis/core/relay_client/json_rpc_2/src/peer.dart' - as _i28; -import 'package:walletconnect_flutter_v2/apis/core/relay_client/relay_client.dart' as _i27; +import 'package:walletconnect_flutter_v2/apis/core/relay_client/relay_client.dart' + as _i26; import 'package:walletconnect_flutter_v2/apis/core/relay_client/websocket/i_websocket_handler.dart' - as _i9; + as _i8; import 'package:walletconnect_flutter_v2/apis/core/store/i_generic_store.dart' - 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:web3modal_flutter/models/grid_item.dart' as _i32; + as _i4; +import 'package:walletconnect_flutter_v2/apis/core/store/i_store.dart' as _i6; +import 'package:walletconnect_flutter_v2/apis/sign_api/i_sessions.dart' as _i5; +import 'package:web3modal_flutter/models/grid_item.dart' as _i31; import 'package:web3modal_flutter/services/blockchain_api_service/blockchain_api_utils.dart' - as _i33; + as _i32; import 'package:web3modal_flutter/services/blockchain_api_service/blockchain_identity.dart' - as _i11; + as _i10; import 'package:web3modal_flutter/services/coinbase_service/models/coinbase_events.dart' - as _i15; + as _i14; import 'package:web3modal_flutter/services/explorer_service/explorer_service.dart' - as _i13; + as _i12; import 'package:web3modal_flutter/services/explorer_service/models/api_response.dart' - as _i18; -import 'package:web3modal_flutter/services/explorer_service/models/redirect.dart' as _i17; +import 'package:web3modal_flutter/services/explorer_service/models/redirect.dart' + as _i16; import 'package:web3modal_flutter/services/ledger_service/ledger_service.dart' - as _i34; + as _i33; import 'package:web3modal_flutter/services/network_service/network_service.dart' - as _i31; + as _i30; import 'package:web3modal_flutter/services/storage_service/storage_service.dart' - as _i35; + as _i34; import 'package:web3modal_flutter/services/w3m_service/i_w3m_service.dart' - as _i19; -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 _i4; + as _i18; +import 'package:web3modal_flutter/utils/platform/i_platform_utils.dart' as _i22; +import 'package:web3modal_flutter/utils/platform/platform_utils.dart' as _i23; +import 'package:web3modal_flutter/utils/toast/toast_message.dart' as _i25; +import 'package:web3modal_flutter/utils/toast/toast_utils.dart' as _i24; +import 'package:web3modal_flutter/utils/url/url_utils.dart' as _i20; +import 'package:web3modal_flutter/web3modal_flutter.dart' as _i3; import 'package:web3modal_flutter/widgets/widget_stack/widget_stack.dart' - as _i36; + as _i35; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values @@ -92,7 +91,7 @@ class _FakeEvent_1 extends _i1.SmartFake ); } -class _FakeICore_2 extends _i1.SmartFake implements _i4.ICore { +class _FakeICore_2 extends _i1.SmartFake implements _i3.ICore { _FakeICore_2( Object parent, Invocation parentInvocation, @@ -103,7 +102,7 @@ class _FakeICore_2 extends _i1.SmartFake implements _i4.ICore { } class _FakePairingMetadata_3 extends _i1.SmartFake - implements _i4.PairingMetadata { + implements _i3.PairingMetadata { _FakePairingMetadata_3( Object parent, Invocation parentInvocation, @@ -113,7 +112,7 @@ class _FakePairingMetadata_3 extends _i1.SmartFake ); } -class _FakeISignEngine_4 extends _i1.SmartFake implements _i4.ISignEngine { +class _FakeISignEngine_4 extends _i1.SmartFake implements _i3.ISignEngine { _FakeISignEngine_4( Object parent, Invocation parentInvocation, @@ -123,7 +122,7 @@ class _FakeISignEngine_4 extends _i1.SmartFake implements _i4.ISignEngine { ); } -class _FakeIAuthEngine_5 extends _i1.SmartFake implements _i4.IAuthEngine { +class _FakeIAuthEngine_5 extends _i1.SmartFake implements _i3.IAuthEngine { _FakeIAuthEngine_5( Object parent, Invocation parentInvocation, @@ -134,7 +133,7 @@ class _FakeIAuthEngine_5 extends _i1.SmartFake implements _i4.IAuthEngine { } class _FakeIGenericStore_6 extends _i1.SmartFake - implements _i5.IGenericStore { + implements _i4.IGenericStore { _FakeIGenericStore_6( Object parent, Invocation parentInvocation, @@ -144,7 +143,7 @@ class _FakeIGenericStore_6 extends _i1.SmartFake ); } -class _FakeISessions_7 extends _i1.SmartFake implements _i6.ISessions { +class _FakeISessions_7 extends _i1.SmartFake implements _i5.ISessions { _FakeISessions_7( Object parent, Invocation parentInvocation, @@ -154,7 +153,7 @@ class _FakeISessions_7 extends _i1.SmartFake implements _i6.ISessions { ); } -class _FakeIPairingStore_8 extends _i1.SmartFake implements _i4.IPairingStore { +class _FakeIPairingStore_8 extends _i1.SmartFake implements _i3.IPairingStore { _FakeIPairingStore_8( Object parent, Invocation parentInvocation, @@ -165,7 +164,7 @@ class _FakeIPairingStore_8 extends _i1.SmartFake implements _i4.IPairingStore { } class _FakeConnectResponse_9 extends _i1.SmartFake - implements _i4.ConnectResponse { + implements _i3.ConnectResponse { _FakeConnectResponse_9( Object parent, Invocation parentInvocation, @@ -176,7 +175,7 @@ class _FakeConnectResponse_9 extends _i1.SmartFake } class _FakeAuthRequestResponse_10 extends _i1.SmartFake - implements _i4.AuthRequestResponse { + implements _i3.AuthRequestResponse { _FakeAuthRequestResponse_10( Object parent, Invocation parentInvocation, @@ -186,7 +185,7 @@ class _FakeAuthRequestResponse_10 extends _i1.SmartFake ); } -class _FakeIStore_11 extends _i1.SmartFake implements _i7.IStore { +class _FakeIStore_11 extends _i1.SmartFake implements _i6.IStore { _FakeIStore_11( Object parent, Invocation parentInvocation, @@ -196,7 +195,7 @@ class _FakeIStore_11 extends _i1.SmartFake implements _i7.IStore { ); } -class _FakeSessionData_12 extends _i1.SmartFake implements _i4.SessionData { +class _FakeSessionData_12 extends _i1.SmartFake implements _i3.SessionData { _FakeSessionData_12( Object parent, Invocation parentInvocation, @@ -207,7 +206,7 @@ class _FakeSessionData_12 extends _i1.SmartFake implements _i4.SessionData { } class _FakeIMessageTracker_13 extends _i1.SmartFake - implements _i8.IMessageTracker { + implements _i7.IMessageTracker { _FakeIMessageTracker_13( Object parent, Invocation parentInvocation, @@ -218,7 +217,7 @@ class _FakeIMessageTracker_13 extends _i1.SmartFake } class _FakeIWebSocketHandler_14 extends _i1.SmartFake - implements _i9.IWebSocketHandler { + implements _i8.IWebSocketHandler { _FakeIWebSocketHandler_14( Object parent, Invocation parentInvocation, @@ -228,7 +227,7 @@ class _FakeIWebSocketHandler_14 extends _i1.SmartFake ); } -class _FakeResponse_15 extends _i1.SmartFake implements _i10.Response { +class _FakeResponse_15 extends _i1.SmartFake implements _i9.Response { _FakeResponse_15( Object parent, Invocation parentInvocation, @@ -239,7 +238,7 @@ class _FakeResponse_15 extends _i1.SmartFake implements _i10.Response { } class _FakeStreamedResponse_16 extends _i1.SmartFake - implements _i10.StreamedResponse { + implements _i9.StreamedResponse { _FakeStreamedResponse_16( Object parent, Invocation parentInvocation, @@ -250,7 +249,7 @@ class _FakeStreamedResponse_16 extends _i1.SmartFake } class _FakeBlockchainIdentity_17 extends _i1.SmartFake - implements _i11.BlockchainIdentity { + implements _i10.BlockchainIdentity { _FakeBlockchainIdentity_17( Object parent, Invocation parentInvocation, @@ -260,7 +259,7 @@ class _FakeBlockchainIdentity_17 extends _i1.SmartFake ); } -class _FakeWidget_18 extends _i1.SmartFake implements _i12.Widget { +class _FakeWidget_18 extends _i1.SmartFake implements _i11.Widget { _FakeWidget_18( Object parent, Invocation parentInvocation, @@ -277,7 +276,7 @@ class _FakeWidget_18 extends _i1.SmartFake implements _i12.Widget { /// A class which mocks [ExplorerService]. /// /// See the documentation for Mockito's code generation for more information. -class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { +class MockExplorerService extends _i1.Mock implements _i12.ExplorerService { MockExplorerService() { _i1.throwOnMissingStub(this); } @@ -285,7 +284,7 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { @override String get projectId => (super.noSuchMethod( Invocation.getter(#projectId), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#projectId), ), @@ -324,16 +323,16 @@ class MockExplorerService extends _i1.Mock implements _i13.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, @@ -384,7 +383,7 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { @override String get searchValue => (super.noSuchMethod( Invocation.getter(#searchValue), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#searchValue), ), @@ -400,17 +399,17 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { returnValue: false, ) as bool); @override - _i3.Event<_i15.CoinbaseConnectEvent> get onCoinbaseConnect => + _i3.Event<_i14.CoinbaseConnectEvent> get onCoinbaseConnect => (super.noSuchMethod( Invocation.getter(#onCoinbaseConnect), - returnValue: _FakeEvent_1<_i15.CoinbaseConnectEvent>( + returnValue: _FakeEvent_1<_i14.CoinbaseConnectEvent>( this, Invocation.getter(#onCoinbaseConnect), ), - ) as _i3.Event<_i15.CoinbaseConnectEvent>); + ) as _i3.Event<_i14.CoinbaseConnectEvent>); @override set onCoinbaseConnect( - _i3.Event<_i15.CoinbaseConnectEvent>? _onCoinbaseConnect) => + _i3.Event<_i14.CoinbaseConnectEvent>? _onCoinbaseConnect) => super.noSuchMethod( Invocation.setter( #onCoinbaseConnect, @@ -419,15 +418,15 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { returnValueForMissingStub: null, ); @override - _i3.Event<_i15.CoinbaseErrorEvent> get onCoinbaseError => (super.noSuchMethod( + _i3.Event<_i14.CoinbaseErrorEvent> get onCoinbaseError => (super.noSuchMethod( Invocation.getter(#onCoinbaseError), - returnValue: _FakeEvent_1<_i15.CoinbaseErrorEvent>( + returnValue: _FakeEvent_1<_i14.CoinbaseErrorEvent>( this, Invocation.getter(#onCoinbaseError), ), - ) as _i3.Event<_i15.CoinbaseErrorEvent>); + ) as _i3.Event<_i14.CoinbaseErrorEvent>); @override - set onCoinbaseError(_i3.Event<_i15.CoinbaseErrorEvent>? _onCoinbaseError) => + set onCoinbaseError(_i3.Event<_i14.CoinbaseErrorEvent>? _onCoinbaseError) => super.noSuchMethod( Invocation.setter( #onCoinbaseError, @@ -436,17 +435,17 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { returnValueForMissingStub: null, ); @override - _i3.Event<_i15.CoinbaseSessionEvent> get onCoinbaseSessionUpdate => + _i3.Event<_i14.CoinbaseSessionEvent> get onCoinbaseSessionUpdate => (super.noSuchMethod( Invocation.getter(#onCoinbaseSessionUpdate), - returnValue: _FakeEvent_1<_i15.CoinbaseSessionEvent>( + returnValue: _FakeEvent_1<_i14.CoinbaseSessionEvent>( this, Invocation.getter(#onCoinbaseSessionUpdate), ), - ) as _i3.Event<_i15.CoinbaseSessionEvent>); + ) as _i3.Event<_i14.CoinbaseSessionEvent>); @override set onCoinbaseSessionUpdate( - _i3.Event<_i15.CoinbaseSessionEvent>? _onCoinbaseSessionUpdate) => + _i3.Event<_i14.CoinbaseSessionEvent>? _onCoinbaseSessionUpdate) => super.noSuchMethod( Invocation.setter( #onCoinbaseSessionUpdate, @@ -455,42 +454,42 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { returnValueForMissingStub: null, ); @override - _i3.Event<_i15.CoinbaseResponseEvent> get onCoinbaseResponse => + _i3.Event<_i14.CoinbaseResponseEvent> get onCoinbaseResponse => (super.noSuchMethod( Invocation.getter(#onCoinbaseResponse), - returnValue: _FakeEvent_1<_i15.CoinbaseResponseEvent>( + returnValue: _FakeEvent_1<_i14.CoinbaseResponseEvent>( this, Invocation.getter(#onCoinbaseResponse), ), - ) as _i3.Event<_i15.CoinbaseResponseEvent>); + ) as _i3.Event<_i14.CoinbaseResponseEvent>); @override - _i16.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future paginate() => (super.noSuchMethod( + _i15.Future paginate() => (super.noSuchMethod( Invocation.method( #paginate, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future storeConnectedWalletData(_i4.W3MWalletInfo? walletInfo) => + _i15.Future storeConnectedWalletData(_i3.W3MWalletInfo? walletInfo) => (super.noSuchMethod( Invocation.method( #storeConnectedWalletData, [walletInfo], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override void search({String? query}) => super.noSuchMethod( Invocation.method( @@ -506,7 +505,7 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { #getWalletImageUrl, [imageId], ), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.method( #getWalletImageUrl, @@ -520,7 +519,7 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { #getAssetImageUrl, [imageId], ), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.method( #getAssetImageUrl, @@ -529,44 +528,44 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { ), ) as String); @override - _i17.WalletRedirect? getWalletRedirect(_i18.Listing? listing) => + _i16.WalletRedirect? getWalletRedirect(_i17.Listing? listing) => (super.noSuchMethod(Invocation.method( #getWalletRedirect, [listing], - )) as _i17.WalletRedirect?); + )) as _i16.WalletRedirect?); @override - _i16.Future<_i17.WalletRedirect?> tryWalletRedirectByName(String? name) => + _i15.Future<_i16.WalletRedirect?> tryWalletRedirectByName(String? name) => (super.noSuchMethod( Invocation.method( #tryWalletRedirectByName, [name], ), - returnValue: _i16.Future<_i17.WalletRedirect?>.value(), - ) as _i16.Future<_i17.WalletRedirect?>); + returnValue: _i15.Future<_i16.WalletRedirect?>.value(), + ) as _i15.Future<_i16.WalletRedirect?>); @override - _i16.Future cbInit({required _i4.PairingMetadata? metadata}) => + _i15.Future cbInit({required _i3.PairingMetadata? metadata}) => (super.noSuchMethod( Invocation.method( #cbInit, [], {#metadata: metadata}, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future cbGetAccount() => (super.noSuchMethod( + _i15.Future cbGetAccount() => (super.noSuchMethod( Invocation.method( #cbGetAccount, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future cbRequest({ + _i15.Future cbRequest({ String? chainId, - required _i4.SessionRequestParams? request, + required _i3.SessionRequestParams? request, }) => (super.noSuchMethod( Invocation.method( @@ -577,65 +576,65 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { #request: request, }, ), - returnValue: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future cbIsInstalled() => (super.noSuchMethod( + _i15.Future cbIsInstalled() => (super.noSuchMethod( Invocation.method( #cbIsInstalled, [], ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i15.Future.value(false), + ) as _i15.Future); @override - _i16.Future cbIsConnected() => (super.noSuchMethod( + _i15.Future cbIsConnected() => (super.noSuchMethod( Invocation.method( #cbIsConnected, [], ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i15.Future.value(false), + ) as _i15.Future); @override - _i16.Future cbResetSession() => (super.noSuchMethod( + _i15.Future cbResetSession() => (super.noSuchMethod( Invocation.method( #cbResetSession, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); } /// A class which mocks [W3MService]. /// /// See the documentation for Mockito's code generation for more information. -class MockW3MService extends _i1.Mock implements _i4.W3MService { +class MockW3MService extends _i1.Mock implements _i3.W3MService { MockW3MService() { _i1.throwOnMissingStub(this); } @override - _i3.Event<_i4.PairingEvent> get onPairingExpire => (super.noSuchMethod( + _i3.Event<_i3.PairingEvent> get onPairingExpire => (super.noSuchMethod( Invocation.getter(#onPairingExpire), - returnValue: _FakeEvent_1<_i4.PairingEvent>( + returnValue: _FakeEvent_1<_i3.PairingEvent>( this, Invocation.getter(#onPairingExpire), ), - ) as _i3.Event<_i4.PairingEvent>); + ) as _i3.Event<_i3.PairingEvent>); @override - _i3.Event<_i19.WalletErrorEvent> get onWalletConnectionError => + _i3.Event<_i18.WalletErrorEvent> get onWalletConnectionError => (super.noSuchMethod( Invocation.getter(#onWalletConnectionError), - returnValue: _FakeEvent_1<_i19.WalletErrorEvent>( + returnValue: _FakeEvent_1<_i18.WalletErrorEvent>( this, Invocation.getter(#onWalletConnectionError), ), - ) as _i3.Event<_i19.WalletErrorEvent>); + ) as _i3.Event<_i18.WalletErrorEvent>); @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 bool get hasNamespaces => (super.noSuchMethod( Invocation.getter(#hasNamespaces), @@ -652,63 +651,63 @@ class MockW3MService extends _i1.Mock implements _i4.W3MService { returnValue: false, ) as bool); @override - _i3.Event<_i4.SessionConnect> get onSessionConnectEvent => + _i3.Event<_i3.SessionConnect> get onSessionConnectEvent => (super.noSuchMethod( Invocation.getter(#onSessionConnectEvent), - returnValue: _FakeEvent_1<_i4.SessionConnect>( + returnValue: _FakeEvent_1<_i3.SessionConnect>( this, Invocation.getter(#onSessionConnectEvent), ), - ) as _i3.Event<_i4.SessionConnect>); + ) as _i3.Event<_i3.SessionConnect>); @override - _i3.Event<_i4.SessionDelete> get onSessionDeleteEvent => (super.noSuchMethod( + _i3.Event<_i3.SessionDelete> get onSessionDeleteEvent => (super.noSuchMethod( Invocation.getter(#onSessionDeleteEvent), - returnValue: _FakeEvent_1<_i4.SessionDelete>( + returnValue: _FakeEvent_1<_i3.SessionDelete>( this, Invocation.getter(#onSessionDeleteEvent), ), - ) as _i3.Event<_i4.SessionDelete>); + ) as _i3.Event<_i3.SessionDelete>); @override - _i3.Event<_i4.SessionEvent> get onSessionEventEvent => (super.noSuchMethod( + _i3.Event<_i3.SessionEvent> get onSessionEventEvent => (super.noSuchMethod( Invocation.getter(#onSessionEventEvent), - returnValue: _FakeEvent_1<_i4.SessionEvent>( + returnValue: _FakeEvent_1<_i3.SessionEvent>( this, Invocation.getter(#onSessionEventEvent), ), - ) as _i3.Event<_i4.SessionEvent>); + ) as _i3.Event<_i3.SessionEvent>); @override - _i3.Event<_i4.SessionExpire> get onSessionExpireEvent => (super.noSuchMethod( + _i3.Event<_i3.SessionExpire> get onSessionExpireEvent => (super.noSuchMethod( Invocation.getter(#onSessionExpireEvent), - returnValue: _FakeEvent_1<_i4.SessionExpire>( + returnValue: _FakeEvent_1<_i3.SessionExpire>( this, Invocation.getter(#onSessionExpireEvent), ), - ) as _i3.Event<_i4.SessionExpire>); + ) as _i3.Event<_i3.SessionExpire>); @override - _i3.Event<_i4.SessionUpdate> get onSessionUpdateEvent => (super.noSuchMethod( + _i3.Event<_i3.SessionUpdate> get onSessionUpdateEvent => (super.noSuchMethod( Invocation.getter(#onSessionUpdateEvent), - returnValue: _FakeEvent_1<_i4.SessionUpdate>( + returnValue: _FakeEvent_1<_i3.SessionUpdate>( this, Invocation.getter(#onSessionUpdateEvent), ), - ) as _i3.Event<_i4.SessionUpdate>); + ) as _i3.Event<_i3.SessionUpdate>); @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); @override - _i3.Event<_i15.CoinbaseConnectEvent> get onCoinbaseConnect => + _i3.Event<_i14.CoinbaseConnectEvent> get onCoinbaseConnect => (super.noSuchMethod( Invocation.getter(#onCoinbaseConnect), - returnValue: _FakeEvent_1<_i15.CoinbaseConnectEvent>( + returnValue: _FakeEvent_1<_i14.CoinbaseConnectEvent>( this, Invocation.getter(#onCoinbaseConnect), ), - ) as _i3.Event<_i15.CoinbaseConnectEvent>); + ) as _i3.Event<_i14.CoinbaseConnectEvent>); @override set onCoinbaseConnect( - _i3.Event<_i15.CoinbaseConnectEvent>? _onCoinbaseConnect) => + _i3.Event<_i14.CoinbaseConnectEvent>? _onCoinbaseConnect) => super.noSuchMethod( Invocation.setter( #onCoinbaseConnect, @@ -717,15 +716,15 @@ class MockW3MService extends _i1.Mock implements _i4.W3MService { returnValueForMissingStub: null, ); @override - _i3.Event<_i15.CoinbaseErrorEvent> get onCoinbaseError => (super.noSuchMethod( + _i3.Event<_i14.CoinbaseErrorEvent> get onCoinbaseError => (super.noSuchMethod( Invocation.getter(#onCoinbaseError), - returnValue: _FakeEvent_1<_i15.CoinbaseErrorEvent>( + returnValue: _FakeEvent_1<_i14.CoinbaseErrorEvent>( this, Invocation.getter(#onCoinbaseError), ), - ) as _i3.Event<_i15.CoinbaseErrorEvent>); + ) as _i3.Event<_i14.CoinbaseErrorEvent>); @override - set onCoinbaseError(_i3.Event<_i15.CoinbaseErrorEvent>? _onCoinbaseError) => + set onCoinbaseError(_i3.Event<_i14.CoinbaseErrorEvent>? _onCoinbaseError) => super.noSuchMethod( Invocation.setter( #onCoinbaseError, @@ -734,17 +733,17 @@ class MockW3MService extends _i1.Mock implements _i4.W3MService { returnValueForMissingStub: null, ); @override - _i3.Event<_i15.CoinbaseSessionEvent> get onCoinbaseSessionUpdate => + _i3.Event<_i14.CoinbaseSessionEvent> get onCoinbaseSessionUpdate => (super.noSuchMethod( Invocation.getter(#onCoinbaseSessionUpdate), - returnValue: _FakeEvent_1<_i15.CoinbaseSessionEvent>( + returnValue: _FakeEvent_1<_i14.CoinbaseSessionEvent>( this, Invocation.getter(#onCoinbaseSessionUpdate), ), - ) as _i3.Event<_i15.CoinbaseSessionEvent>); + ) as _i3.Event<_i14.CoinbaseSessionEvent>); @override set onCoinbaseSessionUpdate( - _i3.Event<_i15.CoinbaseSessionEvent>? _onCoinbaseSessionUpdate) => + _i3.Event<_i14.CoinbaseSessionEvent>? _onCoinbaseSessionUpdate) => super.noSuchMethod( Invocation.setter( #onCoinbaseSessionUpdate, @@ -753,26 +752,26 @@ class MockW3MService extends _i1.Mock implements _i4.W3MService { returnValueForMissingStub: null, ); @override - _i3.Event<_i15.CoinbaseResponseEvent> get onCoinbaseResponse => + _i3.Event<_i14.CoinbaseResponseEvent> get onCoinbaseResponse => (super.noSuchMethod( Invocation.getter(#onCoinbaseResponse), - returnValue: _FakeEvent_1<_i15.CoinbaseResponseEvent>( + returnValue: _FakeEvent_1<_i14.CoinbaseResponseEvent>( this, Invocation.getter(#onCoinbaseResponse), ), - ) as _i3.Event<_i15.CoinbaseResponseEvent>); + ) as _i3.Event<_i14.CoinbaseResponseEvent>); @override - _i16.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future selectChain( - _i4.W3MChainInfo? chainInfo, { + _i15.Future selectChain( + _i3.W3MChainInfo? chainInfo, { bool? switchChain = false, }) => (super.noSuchMethod( @@ -781,13 +780,13 @@ class MockW3MService extends _i1.Mock implements _i4.W3MService { [chainInfo], {#switchChain: switchChain}, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future openModal( - _i12.BuildContext? context, [ - _i12.Widget? startWidget, + _i15.Future openModal( + _i11.BuildContext? context, [ + _i11.Widget? startWidget, ]) => (super.noSuchMethod( Invocation.method( @@ -797,67 +796,67 @@ class MockW3MService extends _i1.Mock implements _i4.W3MService { startWidget, ], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future expirePreviousInactivePairings() => (super.noSuchMethod( + _i15.Future expirePreviousInactivePairings() => (super.noSuchMethod( Invocation.method( #expirePreviousInactivePairings, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future connectSelectedWallet({bool? inBrowser = false}) => + _i15.Future connectSelectedWallet({bool? inBrowser = false}) => (super.noSuchMethod( Invocation.method( #connectSelectedWallet, [], {#inBrowser: inBrowser}, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future buildConnectionUri() => (super.noSuchMethod( + _i15.Future buildConnectionUri() => (super.noSuchMethod( Invocation.method( #buildConnectionUri, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future launchConnectedWallet() => (super.noSuchMethod( + _i15.Future launchConnectedWallet() => (super.noSuchMethod( Invocation.method( #launchConnectedWallet, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future reconnectRelay() => (super.noSuchMethod( + _i15.Future reconnectRelay() => (super.noSuchMethod( Invocation.method( #reconnectRelay, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future disconnect({bool? disconnectAllSessions = true}) => + _i15.Future disconnect({bool? disconnectAllSessions = true}) => (super.noSuchMethod( Invocation.method( #disconnect, [], {#disconnectAllSessions: disconnectAllSessions}, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override void closeModal() => super.noSuchMethod( Invocation.method( @@ -867,7 +866,7 @@ class MockW3MService extends _i1.Mock implements _i4.W3MService { returnValueForMissingStub: null, ); @override - void selectWallet(_i4.W3MWalletInfo? walletInfo) => super.noSuchMethod( + void selectWallet(_i3.W3MWalletInfo? walletInfo) => super.noSuchMethod( Invocation.method( #selectWallet, [walletInfo], @@ -883,11 +882,11 @@ class MockW3MService extends _i1.Mock implements _i4.W3MService { returnValueForMissingStub: null, ); @override - _i16.Future request({ + _i15.Future request({ required String? topic, required String? chainId, String? switchToChainId, - required _i4.SessionRequestParams? request, + required _i3.SessionRequestParams? request, }) => (super.noSuchMethod( Invocation.method( @@ -900,17 +899,17 @@ class MockW3MService extends _i1.Mock implements _i4.W3MService { #request: request, }, ), - returnValue: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future<_i17.WalletRedirect?> sessionWalletRedirect() => + _i15.Future<_i16.WalletRedirect?> sessionWalletRedirect() => (super.noSuchMethod( Invocation.method( #sessionWalletRedirect, [], ), - returnValue: _i16.Future<_i17.WalletRedirect?>.value(), - ) as _i16.Future<_i17.WalletRedirect?>); + returnValue: _i15.Future<_i16.WalletRedirect?>.value(), + ) as _i15.Future<_i16.WalletRedirect?>); @override void dispose() => super.noSuchMethod( Invocation.method( @@ -920,7 +919,7 @@ class MockW3MService extends _i1.Mock implements _i4.W3MService { returnValueForMissingStub: null, ); @override - void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -928,7 +927,7 @@ class MockW3MService extends _i1.Mock implements _i4.W3MService { returnValueForMissingStub: null, ); @override - void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -944,29 +943,29 @@ class MockW3MService extends _i1.Mock implements _i4.W3MService { returnValueForMissingStub: null, ); @override - _i16.Future cbInit({required _i4.PairingMetadata? metadata}) => + _i15.Future cbInit({required _i3.PairingMetadata? metadata}) => (super.noSuchMethod( Invocation.method( #cbInit, [], {#metadata: metadata}, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future cbGetAccount() => (super.noSuchMethod( + _i15.Future cbGetAccount() => (super.noSuchMethod( Invocation.method( #cbGetAccount, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future cbRequest({ + _i15.Future cbRequest({ String? chainId, - required _i4.SessionRequestParams? request, + required _i3.SessionRequestParams? request, }) => (super.noSuchMethod( Invocation.method( @@ -977,80 +976,80 @@ class MockW3MService extends _i1.Mock implements _i4.W3MService { #request: request, }, ), - returnValue: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future cbIsInstalled() => (super.noSuchMethod( + _i15.Future cbIsInstalled() => (super.noSuchMethod( Invocation.method( #cbIsInstalled, [], ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i15.Future.value(false), + ) as _i15.Future); @override - _i16.Future cbIsConnected() => (super.noSuchMethod( + _i15.Future cbIsConnected() => (super.noSuchMethod( Invocation.method( #cbIsConnected, [], ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i15.Future.value(false), + ) as _i15.Future); @override - _i16.Future cbResetSession() => (super.noSuchMethod( + _i15.Future cbResetSession() => (super.noSuchMethod( Invocation.method( #cbResetSession, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); } /// A class which mocks [UrlUtils]. /// /// See the documentation for Mockito's code generation for more information. -class MockUrlUtils extends _i1.Mock implements _i21.UrlUtils { +class MockUrlUtils extends _i1.Mock implements _i20.UrlUtils { MockUrlUtils() { _i1.throwOnMissingStub(this); } @override - _i16.Future Function(String) get androidAppCheck => (super.noSuchMethod( + _i15.Future Function(String) get androidAppCheck => (super.noSuchMethod( Invocation.getter(#androidAppCheck), - returnValue: (String uri) => _i16.Future.value(false), - ) as _i16.Future Function(String)); + returnValue: (String uri) => _i15.Future.value(false), + ) as _i15.Future Function(String)); @override - _i16.Future Function( + _i15.Future Function( Uri, { - _i22.LaunchMode? mode, + _i21.LaunchMode? mode, }) get launchUrlFunc => (super.noSuchMethod( Invocation.getter(#launchUrlFunc), returnValue: ( Uri url, { - _i22.LaunchMode? mode, + _i21.LaunchMode? mode, }) => - _i16.Future.value(false), - ) as _i16.Future Function( + _i15.Future.value(false), + ) as _i15.Future Function( Uri, { - _i22.LaunchMode? mode, + _i21.LaunchMode? mode, })); @override - _i16.Future Function(Uri) get canLaunchUrlFunc => (super.noSuchMethod( + _i15.Future Function(Uri) get canLaunchUrlFunc => (super.noSuchMethod( Invocation.getter(#canLaunchUrlFunc), - returnValue: (Uri url) => _i16.Future.value(false), - ) as _i16.Future Function(Uri)); + returnValue: (Uri url) => _i15.Future.value(false), + ) as _i15.Future Function(Uri)); @override - _i16.Future isInstalled(String? uri) => (super.noSuchMethod( + _i15.Future isInstalled(String? uri) => (super.noSuchMethod( Invocation.method( #isInstalled, [uri], ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i15.Future.value(false), + ) as _i15.Future); @override - _i16.Future launchUrl( + _i15.Future launchUrl( Uri? url, { - _i22.LaunchMode? mode, + _i21.LaunchMode? mode, }) => (super.noSuchMethod( Invocation.method( @@ -1058,13 +1057,13 @@ class MockUrlUtils extends _i1.Mock implements _i21.UrlUtils { [url], {#mode: mode}, ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i15.Future.value(false), + ) as _i15.Future); @override - _i16.Future openRedirect( - _i17.WalletRedirect? redirect, { + _i15.Future openRedirect( + _i16.WalletRedirect? redirect, { String? wcURI, - _i23.PlatformType? pType, + _i22.PlatformType? pType, }) => (super.noSuchMethod( Invocation.method( @@ -1075,35 +1074,35 @@ class MockUrlUtils extends _i1.Mock implements _i21.UrlUtils { #pType: pType, }, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.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 _i24.PlatformUtils { +class MockPlatformUtils extends _i1.Mock implements _i23.PlatformUtils { MockPlatformUtils() { _i1.throwOnMissingStub(this); } @override - _i23.PlatformExact getPlatformExact() => (super.noSuchMethod( + _i22.PlatformExact getPlatformExact() => (super.noSuchMethod( Invocation.method( #getPlatformExact, [], ), - returnValue: _i23.PlatformExact.iOS, - ) as _i23.PlatformExact); + returnValue: _i22.PlatformExact.iOS, + ) as _i22.PlatformExact); @override - _i23.PlatformType getPlatformType() => (super.noSuchMethod( + _i22.PlatformType getPlatformType() => (super.noSuchMethod( Invocation.method( #getPlatformType, [], ), - returnValue: _i23.PlatformType.mobile, - ) as _i23.PlatformType); + returnValue: _i22.PlatformType.mobile, + ) as _i22.PlatformType); @override bool canDetectInstalledApps() => (super.noSuchMethod( Invocation.method( @@ -1121,7 +1120,7 @@ class MockPlatformUtils extends _i1.Mock implements _i24.PlatformUtils { returnValue: false, ) as bool); @override - bool isLongBottomSheet(_i12.Orientation? orientation) => (super.noSuchMethod( + bool isLongBottomSheet(_i11.Orientation? orientation) => (super.noSuchMethod( Invocation.method( #isLongBottomSheet, [orientation], @@ -1141,18 +1140,18 @@ class MockPlatformUtils extends _i1.Mock implements _i24.PlatformUtils { /// A class which mocks [ToastUtils]. /// /// See the documentation for Mockito's code generation for more information. -class MockToastUtils extends _i1.Mock implements _i25.ToastUtils { +class MockToastUtils extends _i1.Mock implements _i24.ToastUtils { MockToastUtils() { _i1.throwOnMissingStub(this); } @override - _i16.Stream<_i26.ToastMessage?> get toasts => (super.noSuchMethod( + _i15.Stream<_i25.ToastMessage?> get toasts => (super.noSuchMethod( Invocation.getter(#toasts), - returnValue: _i16.Stream<_i26.ToastMessage?>.empty(), - ) as _i16.Stream<_i26.ToastMessage?>); + returnValue: _i15.Stream<_i25.ToastMessage?>.empty(), + ) as _i15.Stream<_i25.ToastMessage?>); @override - void show(_i26.ToastMessage? message) => super.noSuchMethod( + void show(_i25.ToastMessage? message) => super.noSuchMethod( Invocation.method( #show, [message], @@ -1172,7 +1171,7 @@ class MockToastUtils extends _i1.Mock implements _i25.ToastUtils { /// A class which mocks [Web3App]. /// /// See the documentation for Mockito's code generation for more information. -class MockWeb3App extends _i1.Mock implements _i4.Web3App { +class MockWeb3App extends _i1.Mock implements _i3.Web3App { MockWeb3App() { _i1.throwOnMissingStub(this); } @@ -1180,7 +1179,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { @override String get protocol => (super.noSuchMethod( Invocation.getter(#protocol), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#protocol), ), @@ -1191,31 +1190,31 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { returnValue: 0, ) as int); @override - _i4.ICore get core => (super.noSuchMethod( + _i3.ICore get core => (super.noSuchMethod( Invocation.getter(#core), returnValue: _FakeICore_2( this, Invocation.getter(#core), ), - ) as _i4.ICore); + ) as _i3.ICore); @override - _i4.PairingMetadata get metadata => (super.noSuchMethod( + _i3.PairingMetadata get metadata => (super.noSuchMethod( Invocation.getter(#metadata), returnValue: _FakePairingMetadata_3( this, Invocation.getter(#metadata), ), - ) as _i4.PairingMetadata); + ) as _i3.PairingMetadata); @override - _i4.ISignEngine get signEngine => (super.noSuchMethod( + _i3.ISignEngine get signEngine => (super.noSuchMethod( Invocation.getter(#signEngine), returnValue: _FakeISignEngine_4( this, Invocation.getter(#signEngine), ), - ) as _i4.ISignEngine); + ) as _i3.ISignEngine); @override - set signEngine(_i4.ISignEngine? _signEngine) => super.noSuchMethod( + set signEngine(_i3.ISignEngine? _signEngine) => super.noSuchMethod( Invocation.setter( #signEngine, _signEngine, @@ -1223,15 +1222,15 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { returnValueForMissingStub: null, ); @override - _i4.IAuthEngine get authEngine => (super.noSuchMethod( + _i3.IAuthEngine get authEngine => (super.noSuchMethod( Invocation.getter(#authEngine), returnValue: _FakeIAuthEngine_5( this, Invocation.getter(#authEngine), ), - ) as _i4.IAuthEngine); + ) as _i3.IAuthEngine); @override - set authEngine(_i4.IAuthEngine? _authEngine) => super.noSuchMethod( + set authEngine(_i3.IAuthEngine? _authEngine) => super.noSuchMethod( Invocation.setter( #authEngine, _authEngine, @@ -1239,152 +1238,152 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { returnValueForMissingStub: null, ); @override - _i3.Event<_i4.SessionConnect> get onSessionConnect => (super.noSuchMethod( + _i3.Event<_i3.SessionConnect> get onSessionConnect => (super.noSuchMethod( Invocation.getter(#onSessionConnect), - returnValue: _FakeEvent_1<_i4.SessionConnect>( + returnValue: _FakeEvent_1<_i3.SessionConnect>( this, Invocation.getter(#onSessionConnect), ), - ) as _i3.Event<_i4.SessionConnect>); + ) as _i3.Event<_i3.SessionConnect>); @override - _i3.Event<_i4.SessionEvent> get onSessionEvent => (super.noSuchMethod( + _i3.Event<_i3.SessionEvent> get onSessionEvent => (super.noSuchMethod( Invocation.getter(#onSessionEvent), - returnValue: _FakeEvent_1<_i4.SessionEvent>( + returnValue: _FakeEvent_1<_i3.SessionEvent>( this, Invocation.getter(#onSessionEvent), ), - ) as _i3.Event<_i4.SessionEvent>); + ) as _i3.Event<_i3.SessionEvent>); @override - _i3.Event<_i4.SessionExpire> get onSessionExpire => (super.noSuchMethod( + _i3.Event<_i3.SessionExpire> get onSessionExpire => (super.noSuchMethod( Invocation.getter(#onSessionExpire), - returnValue: _FakeEvent_1<_i4.SessionExpire>( + returnValue: _FakeEvent_1<_i3.SessionExpire>( this, Invocation.getter(#onSessionExpire), ), - ) as _i3.Event<_i4.SessionExpire>); + ) as _i3.Event<_i3.SessionExpire>); @override - _i3.Event<_i4.SessionProposalEvent> get onProposalExpire => + _i3.Event<_i3.SessionProposalEvent> get onProposalExpire => (super.noSuchMethod( Invocation.getter(#onProposalExpire), - returnValue: _FakeEvent_1<_i4.SessionProposalEvent>( + returnValue: _FakeEvent_1<_i3.SessionProposalEvent>( this, Invocation.getter(#onProposalExpire), ), - ) as _i3.Event<_i4.SessionProposalEvent>); + ) as _i3.Event<_i3.SessionProposalEvent>); @override - _i3.Event<_i4.SessionExtend> get onSessionExtend => (super.noSuchMethod( + _i3.Event<_i3.SessionExtend> get onSessionExtend => (super.noSuchMethod( Invocation.getter(#onSessionExtend), - returnValue: _FakeEvent_1<_i4.SessionExtend>( + returnValue: _FakeEvent_1<_i3.SessionExtend>( this, Invocation.getter(#onSessionExtend), ), - ) as _i3.Event<_i4.SessionExtend>); + ) as _i3.Event<_i3.SessionExtend>); @override - _i3.Event<_i4.SessionPing> get onSessionPing => (super.noSuchMethod( + _i3.Event<_i3.SessionPing> get onSessionPing => (super.noSuchMethod( Invocation.getter(#onSessionPing), - returnValue: _FakeEvent_1<_i4.SessionPing>( + returnValue: _FakeEvent_1<_i3.SessionPing>( this, Invocation.getter(#onSessionPing), ), - ) as _i3.Event<_i4.SessionPing>); + ) as _i3.Event<_i3.SessionPing>); @override - _i3.Event<_i4.SessionUpdate> get onSessionUpdate => (super.noSuchMethod( + _i3.Event<_i3.SessionUpdate> get onSessionUpdate => (super.noSuchMethod( Invocation.getter(#onSessionUpdate), - returnValue: _FakeEvent_1<_i4.SessionUpdate>( + returnValue: _FakeEvent_1<_i3.SessionUpdate>( this, Invocation.getter(#onSessionUpdate), ), - ) as _i3.Event<_i4.SessionUpdate>); + ) as _i3.Event<_i3.SessionUpdate>); @override - _i3.Event<_i4.SessionDelete> get onSessionDelete => (super.noSuchMethod( + _i3.Event<_i3.SessionDelete> get onSessionDelete => (super.noSuchMethod( Invocation.getter(#onSessionDelete), - returnValue: _FakeEvent_1<_i4.SessionDelete>( + returnValue: _FakeEvent_1<_i3.SessionDelete>( this, Invocation.getter(#onSessionDelete), ), - ) as _i3.Event<_i4.SessionDelete>); + ) as _i3.Event<_i3.SessionDelete>); @override - _i5.IGenericStore<_i4.ProposalData> get proposals => (super.noSuchMethod( + _i4.IGenericStore<_i3.ProposalData> get proposals => (super.noSuchMethod( Invocation.getter(#proposals), - returnValue: _FakeIGenericStore_6<_i4.ProposalData>( + returnValue: _FakeIGenericStore_6<_i3.ProposalData>( this, Invocation.getter(#proposals), ), - ) as _i5.IGenericStore<_i4.ProposalData>); + ) as _i4.IGenericStore<_i3.ProposalData>); @override - _i6.ISessions get sessions => (super.noSuchMethod( + _i5.ISessions get sessions => (super.noSuchMethod( Invocation.getter(#sessions), returnValue: _FakeISessions_7( this, Invocation.getter(#sessions), ), - ) as _i6.ISessions); + ) as _i5.ISessions); @override - _i5.IGenericStore<_i4.SessionRequest> get pendingRequests => + _i4.IGenericStore<_i3.SessionRequest> get pendingRequests => (super.noSuchMethod( Invocation.getter(#pendingRequests), - returnValue: _FakeIGenericStore_6<_i4.SessionRequest>( + returnValue: _FakeIGenericStore_6<_i3.SessionRequest>( this, Invocation.getter(#pendingRequests), ), - ) as _i5.IGenericStore<_i4.SessionRequest>); + ) as _i4.IGenericStore<_i3.SessionRequest>); @override - _i4.IPairingStore get pairings => (super.noSuchMethod( + _i3.IPairingStore get pairings => (super.noSuchMethod( Invocation.getter(#pairings), returnValue: _FakeIPairingStore_8( this, Invocation.getter(#pairings), ), - ) as _i4.IPairingStore); + ) as _i3.IPairingStore); @override - _i3.Event<_i4.AuthResponse> get onAuthResponse => (super.noSuchMethod( + _i3.Event<_i3.AuthResponse> get onAuthResponse => (super.noSuchMethod( Invocation.getter(#onAuthResponse), - returnValue: _FakeEvent_1<_i4.AuthResponse>( + returnValue: _FakeEvent_1<_i3.AuthResponse>( this, Invocation.getter(#onAuthResponse), ), - ) as _i3.Event<_i4.AuthResponse>); + ) as _i3.Event<_i3.AuthResponse>); @override - _i5.IGenericStore<_i4.AuthPublicKey> get authKeys => (super.noSuchMethod( + _i4.IGenericStore<_i3.AuthPublicKey> get authKeys => (super.noSuchMethod( Invocation.getter(#authKeys), - returnValue: _FakeIGenericStore_6<_i4.AuthPublicKey>( + returnValue: _FakeIGenericStore_6<_i3.AuthPublicKey>( this, Invocation.getter(#authKeys), ), - ) as _i5.IGenericStore<_i4.AuthPublicKey>); + ) as _i4.IGenericStore<_i3.AuthPublicKey>); @override - _i5.IGenericStore get pairingTopics => (super.noSuchMethod( + _i4.IGenericStore get pairingTopics => (super.noSuchMethod( Invocation.getter(#pairingTopics), returnValue: _FakeIGenericStore_6( this, Invocation.getter(#pairingTopics), ), - ) as _i5.IGenericStore); + ) as _i4.IGenericStore); @override - _i5.IGenericStore<_i4.StoredCacao> get completeRequests => + _i4.IGenericStore<_i3.StoredCacao> get completeRequests => (super.noSuchMethod( Invocation.getter(#completeRequests), - returnValue: _FakeIGenericStore_6<_i4.StoredCacao>( + returnValue: _FakeIGenericStore_6<_i3.StoredCacao>( this, Invocation.getter(#completeRequests), ), - ) as _i5.IGenericStore<_i4.StoredCacao>); + ) as _i4.IGenericStore<_i3.StoredCacao>); @override - _i16.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future<_i4.ConnectResponse> connect({ - Map? requiredNamespaces, - Map? optionalNamespaces, + _i15.Future<_i3.ConnectResponse> connect({ + Map? requiredNamespaces, + Map? optionalNamespaces, Map? sessionProperties, String? pairingTopic, - List<_i4.Relay>? relays, + List<_i3.Relay>? relays, List>? methods = const [ [ r'wc_sessionPropose', @@ -1407,7 +1406,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { }, ), returnValue: - _i16.Future<_i4.ConnectResponse>.value(_FakeConnectResponse_9( + _i15.Future<_i3.ConnectResponse>.value(_FakeConnectResponse_9( this, Invocation.method( #connect, @@ -1422,12 +1421,12 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { }, ), )), - ) as _i16.Future<_i4.ConnectResponse>); + ) as _i15.Future<_i3.ConnectResponse>); @override - _i16.Future request({ + _i15.Future request({ required String? topic, required String? chainId, - required _i4.SessionRequestParams? request, + required _i3.SessionRequestParams? request, }) => (super.noSuchMethod( Invocation.method( @@ -1439,8 +1438,8 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { #request: request, }, ), - returnValue: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + ) as _i15.Future); @override void registerEventHandler({ required String? chainId, @@ -1463,19 +1462,19 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { returnValueForMissingStub: null, ); @override - _i16.Future ping({required String? topic}) => (super.noSuchMethod( + _i15.Future ping({required String? topic}) => (super.noSuchMethod( Invocation.method( #ping, [], {#topic: topic}, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future disconnectSession({ + _i15.Future disconnectSession({ required String? topic, - required _i4.WalletConnectError? reason, + required _i3.WalletConnectError? reason, }) => (super.noSuchMethod( Invocation.method( @@ -1486,19 +1485,19 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { #reason: reason, }, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.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( @@ -1506,20 +1505,20 @@ class MockWeb3App extends _i1.Mock implements _i4.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 - _i16.Future<_i4.AuthRequestResponse> requestAuth({ - required _i4.AuthRequestParams? params, + _i15.Future<_i3.AuthRequestResponse> requestAuth({ + required _i3.AuthRequestParams? params, String? pairingTopic, List>? methods = const [ [ @@ -1539,7 +1538,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { #methods: methods, }, ), - returnValue: _i16.Future<_i4.AuthRequestResponse>.value( + returnValue: _i15.Future<_i3.AuthRequestResponse>.value( _FakeAuthRequestResponse_10( this, Invocation.method( @@ -1552,9 +1551,9 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { }, ), )), - ) as _i16.Future<_i4.AuthRequestResponse>); + ) as _i15.Future<_i3.AuthRequestResponse>); @override - Map getCompletedRequestsForPairing( + Map getCompletedRequestsForPairing( {required String? pairingTopic}) => (super.noSuchMethod( Invocation.method( @@ -1562,12 +1561,12 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { [], {#pairingTopic: pairingTopic}, ), - returnValue: {}, - ) as Map); + returnValue: {}, + ) as Map); @override String formatAuthMessage({ required String? iss, - required _i4.CacaoRequestPayload? cacaoPayload, + required _i3.CacaoRequestPayload? cacaoPayload, }) => (super.noSuchMethod( Invocation.method( @@ -1578,7 +1577,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { #cacaoPayload: cacaoPayload, }, ), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.method( #formatAuthMessage, @@ -1595,7 +1594,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { /// A class which mocks [Sessions]. /// /// See the documentation for Mockito's code generation for more information. -class MockSessions extends _i1.Mock implements _i4.Sessions { +class MockSessions extends _i1.Mock implements _i3.Sessions { MockSessions() { _i1.throwOnMissingStub(this); } @@ -1603,7 +1602,7 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { @override String get context => (super.noSuchMethod( Invocation.getter(#context), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#context), ), @@ -1611,61 +1610,61 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { @override String get version => (super.noSuchMethod( Invocation.getter(#version), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#version), ), ) as String); @override - _i7.IStore get storage => (super.noSuchMethod( + _i6.IStore get storage => (super.noSuchMethod( Invocation.getter(#storage), returnValue: _FakeIStore_11( this, Invocation.getter(#storage), ), - ) as _i7.IStore); + ) as _i6.IStore); @override - _i3.Event<_i4.StoreCreateEvent<_i4.SessionData>> get onCreate => + _i3.Event<_i3.StoreCreateEvent<_i3.SessionData>> get onCreate => (super.noSuchMethod( Invocation.getter(#onCreate), - returnValue: _FakeEvent_1<_i4.StoreCreateEvent<_i4.SessionData>>( + returnValue: _FakeEvent_1<_i3.StoreCreateEvent<_i3.SessionData>>( this, Invocation.getter(#onCreate), ), - ) as _i3.Event<_i4.StoreCreateEvent<_i4.SessionData>>); + ) as _i3.Event<_i3.StoreCreateEvent<_i3.SessionData>>); @override - _i3.Event<_i4.StoreUpdateEvent<_i4.SessionData>> get onUpdate => + _i3.Event<_i3.StoreUpdateEvent<_i3.SessionData>> get onUpdate => (super.noSuchMethod( Invocation.getter(#onUpdate), - returnValue: _FakeEvent_1<_i4.StoreUpdateEvent<_i4.SessionData>>( + returnValue: _FakeEvent_1<_i3.StoreUpdateEvent<_i3.SessionData>>( this, Invocation.getter(#onUpdate), ), - ) as _i3.Event<_i4.StoreUpdateEvent<_i4.SessionData>>); + ) as _i3.Event<_i3.StoreUpdateEvent<_i3.SessionData>>); @override - _i3.Event<_i4.StoreDeleteEvent<_i4.SessionData>> get onDelete => + _i3.Event<_i3.StoreDeleteEvent<_i3.SessionData>> get onDelete => (super.noSuchMethod( Invocation.getter(#onDelete), - returnValue: _FakeEvent_1<_i4.StoreDeleteEvent<_i4.SessionData>>( + returnValue: _FakeEvent_1<_i3.StoreDeleteEvent<_i3.SessionData>>( this, Invocation.getter(#onDelete), ), - ) as _i3.Event<_i4.StoreDeleteEvent<_i4.SessionData>>); + ) as _i3.Event<_i3.StoreDeleteEvent<_i3.SessionData>>); @override - _i3.Event<_i4.StoreSyncEvent> get onSync => (super.noSuchMethod( + _i3.Event<_i3.StoreSyncEvent> get onSync => (super.noSuchMethod( Invocation.getter(#onSync), - returnValue: _FakeEvent_1<_i4.StoreSyncEvent>( + returnValue: _FakeEvent_1<_i3.StoreSyncEvent>( this, Invocation.getter(#onSync), ), - ) as _i3.Event<_i4.StoreSyncEvent>); + ) as _i3.Event<_i3.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, @@ -1673,26 +1672,26 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { returnValueForMissingStub: null, ); @override - _i4.SessionData Function(dynamic) get fromJson => (super.noSuchMethod( + _i3.SessionData Function(dynamic) get fromJson => (super.noSuchMethod( Invocation.getter(#fromJson), returnValue: (dynamic __p0) => _FakeSessionData_12( this, Invocation.getter(#fromJson), ), - ) as _i4.SessionData Function(dynamic)); + ) as _i3.SessionData Function(dynamic)); @override String get storageKey => (super.noSuchMethod( Invocation.getter(#storageKey), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#storageKey), ), ) as String); @override - _i16.Future update( + _i15.Future update( String? topic, { int? expiry, - Map? namespaces, + Map? namespaces, }) => (super.noSuchMethod( Invocation.method( @@ -1703,18 +1702,18 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { #namespaces: namespaces, }, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override bool has(String? key) => (super.noSuchMethod( Invocation.method( @@ -1724,22 +1723,22 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { returnValue: false, ) as bool); @override - _i4.SessionData? get(String? key) => (super.noSuchMethod(Invocation.method( + _i3.SessionData? get(String? key) => (super.noSuchMethod(Invocation.method( #get, [key], - )) as _i4.SessionData?); + )) as _i3.SessionData?); @override - List<_i4.SessionData> getAll() => (super.noSuchMethod( + List<_i3.SessionData> getAll() => (super.noSuchMethod( Invocation.method( #getAll, [], ), - returnValue: <_i4.SessionData>[], - ) as List<_i4.SessionData>); + returnValue: <_i3.SessionData>[], + ) as List<_i3.SessionData>); @override - _i16.Future set( + _i15.Future set( String? key, - _i4.SessionData? value, + _i3.SessionData? value, ) => (super.noSuchMethod( Invocation.method( @@ -1749,36 +1748,36 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { value, ], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future delete(String? key) => (super.noSuchMethod( + _i15.Future delete(String? key) => (super.noSuchMethod( Invocation.method( #delete, [key], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future persist() => (super.noSuchMethod( + _i15.Future persist() => (super.noSuchMethod( Invocation.method( #persist, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future restore() => (super.noSuchMethod( + _i15.Future restore() => (super.noSuchMethod( Invocation.method( #restore, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override void checkInitialized() => super.noSuchMethod( Invocation.method( @@ -1792,7 +1791,7 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { /// A class which mocks [RelayClient]. /// /// See the documentation for Mockito's code generation for more information. -class MockRelayClient extends _i1.Mock implements _i27.RelayClient { +class MockRelayClient extends _i1.Mock implements _i26.RelayClient { MockRelayClient() { _i1.throwOnMissingStub(this); } @@ -1814,39 +1813,39 @@ class MockRelayClient extends _i1.Mock implements _i27.RelayClient { ), ) as _i3.Event<_i3.EventArgs>); @override - _i3.Event<_i4.ErrorEvent> get onRelayClientError => (super.noSuchMethod( + _i3.Event<_i3.ErrorEvent> get onRelayClientError => (super.noSuchMethod( Invocation.getter(#onRelayClientError), - returnValue: _FakeEvent_1<_i4.ErrorEvent>( + returnValue: _FakeEvent_1<_i3.ErrorEvent>( this, Invocation.getter(#onRelayClientError), ), - ) as _i3.Event<_i4.ErrorEvent>); + ) as _i3.Event<_i3.ErrorEvent>); @override - _i3.Event<_i4.MessageEvent> get onRelayClientMessage => (super.noSuchMethod( + _i3.Event<_i3.MessageEvent> get onRelayClientMessage => (super.noSuchMethod( Invocation.getter(#onRelayClientMessage), - returnValue: _FakeEvent_1<_i4.MessageEvent>( + returnValue: _FakeEvent_1<_i3.MessageEvent>( this, Invocation.getter(#onRelayClientMessage), ), - ) as _i3.Event<_i4.MessageEvent>); + ) as _i3.Event<_i3.MessageEvent>); @override - _i3.Event<_i4.SubscriptionEvent> get onSubscriptionCreated => + _i3.Event<_i3.SubscriptionEvent> get onSubscriptionCreated => (super.noSuchMethod( Invocation.getter(#onSubscriptionCreated), - returnValue: _FakeEvent_1<_i4.SubscriptionEvent>( + returnValue: _FakeEvent_1<_i3.SubscriptionEvent>( this, Invocation.getter(#onSubscriptionCreated), ), - ) as _i3.Event<_i4.SubscriptionEvent>); + ) as _i3.Event<_i3.SubscriptionEvent>); @override - _i3.Event<_i4.SubscriptionDeletionEvent> get onSubscriptionDeleted => + _i3.Event<_i3.SubscriptionDeletionEvent> get onSubscriptionDeleted => (super.noSuchMethod( Invocation.getter(#onSubscriptionDeleted), - returnValue: _FakeEvent_1<_i4.SubscriptionDeletionEvent>( + returnValue: _FakeEvent_1<_i3.SubscriptionDeletionEvent>( this, Invocation.getter(#onSubscriptionDeleted), ), - ) as _i3.Event<_i4.SubscriptionDeletionEvent>); + ) as _i3.Event<_i3.SubscriptionDeletionEvent>); @override _i3.Event<_i3.EventArgs> get onSubscriptionResubscribed => (super.noSuchMethod( @@ -1865,7 +1864,7 @@ class MockRelayClient extends _i1.Mock implements _i27.RelayClient { ), ) as _i3.Event<_i3.EventArgs>); @override - set jsonRPC(_i28.Peer? _jsonRPC) => super.noSuchMethod( + set jsonRPC(_i27.Peer? _jsonRPC) => super.noSuchMethod( Invocation.setter( #jsonRPC, _jsonRPC, @@ -1873,14 +1872,14 @@ class MockRelayClient extends _i1.Mock implements _i27.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, @@ -1889,15 +1888,15 @@ class MockRelayClient extends _i1.Mock implements _i27.RelayClient { returnValueForMissingStub: null, ); @override - _i8.IMessageTracker get messageTracker => (super.noSuchMethod( + _i7.IMessageTracker get messageTracker => (super.noSuchMethod( Invocation.getter(#messageTracker), returnValue: _FakeIMessageTracker_13( this, Invocation.getter(#messageTracker), ), - ) as _i8.IMessageTracker); + ) as _i7.IMessageTracker); @override - set messageTracker(_i8.IMessageTracker? _messageTracker) => + set messageTracker(_i7.IMessageTracker? _messageTracker) => super.noSuchMethod( Invocation.setter( #messageTracker, @@ -1906,15 +1905,15 @@ class MockRelayClient extends _i1.Mock implements _i27.RelayClient { returnValueForMissingStub: null, ); @override - _i5.IGenericStore get topicMap => (super.noSuchMethod( + _i4.IGenericStore get topicMap => (super.noSuchMethod( Invocation.getter(#topicMap), returnValue: _FakeIGenericStore_6( this, Invocation.getter(#topicMap), ), - ) as _i5.IGenericStore); + ) as _i4.IGenericStore); @override - set topicMap(_i5.IGenericStore? _topicMap) => super.noSuchMethod( + set topicMap(_i4.IGenericStore? _topicMap) => super.noSuchMethod( Invocation.setter( #topicMap, _topicMap, @@ -1922,23 +1921,23 @@ class MockRelayClient extends _i1.Mock implements _i27.RelayClient { returnValueForMissingStub: null, ); @override - _i9.IWebSocketHandler get socketHandler => (super.noSuchMethod( + _i8.IWebSocketHandler get socketHandler => (super.noSuchMethod( Invocation.getter(#socketHandler), returnValue: _FakeIWebSocketHandler_14( this, Invocation.getter(#socketHandler), ), - ) as _i9.IWebSocketHandler); + ) as _i8.IWebSocketHandler); @override - _i4.ICore get core => (super.noSuchMethod( + _i3.ICore get core => (super.noSuchMethod( Invocation.getter(#core), returnValue: _FakeICore_2( this, Invocation.getter(#core), ), - ) as _i4.ICore); + ) as _i3.ICore); @override - set core(_i4.ICore? _core) => super.noSuchMethod( + set core(_i3.ICore? _core) => super.noSuchMethod( Invocation.setter( #core, _core, @@ -1951,16 +1950,16 @@ class MockRelayClient extends _i1.Mock implements _i27.RelayClient { returnValue: false, ) as bool); @override - _i16.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future publish({ + _i15.Future publish({ required String? topic, required String? message, required int? ttl, @@ -1977,18 +1976,18 @@ class MockRelayClient extends _i1.Mock implements _i27.RelayClient { #tag: tag, }, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future subscribe({required String? topic}) => + _i15.Future subscribe({required String? topic}) => (super.noSuchMethod( Invocation.method( #subscribe, [], {#topic: topic}, ), - returnValue: _i16.Future.value(_i14.dummyValue( + returnValue: _i15.Future.value(_i13.dummyValue( this, Invocation.method( #subscribe, @@ -1996,39 +1995,39 @@ class MockRelayClient extends _i1.Mock implements _i27.RelayClient { {#topic: topic}, ), )), - ) as _i16.Future); + ) as _i15.Future); @override - _i16.Future unsubscribe({required String? topic}) => + _i15.Future unsubscribe({required String? topic}) => (super.noSuchMethod( Invocation.method( #unsubscribe, [], {#topic: topic}, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future connect({String? relayUrl}) => (super.noSuchMethod( + _i15.Future connect({String? relayUrl}) => (super.noSuchMethod( Invocation.method( #connect, [], {#relayUrl: relayUrl}, ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future disconnect() => (super.noSuchMethod( + _i15.Future disconnect() => (super.noSuchMethod( Invocation.method( #disconnect, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i16.Future handlePublish( + _i15.Future handlePublish( String? topic, String? message, ) => @@ -2040,20 +2039,20 @@ class MockRelayClient extends _i1.Mock implements _i27.RelayClient { message, ], ), - returnValue: _i16.Future.value(false), - ) as _i16.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 _i10.Client { +class MockClient extends _i1.Mock implements _i9.Client { MockClient() { _i1.throwOnMissingStub(this); } @override - _i16.Future<_i10.Response> head( + _i15.Future<_i9.Response> head( Uri? url, { Map? headers, }) => @@ -2063,7 +2062,7 @@ class MockClient extends _i1.Mock implements _i10.Client { [url], {#headers: headers}, ), - returnValue: _i16.Future<_i10.Response>.value(_FakeResponse_15( + returnValue: _i15.Future<_i9.Response>.value(_FakeResponse_15( this, Invocation.method( #head, @@ -2071,9 +2070,9 @@ class MockClient extends _i1.Mock implements _i10.Client { {#headers: headers}, ), )), - ) as _i16.Future<_i10.Response>); + ) as _i15.Future<_i9.Response>); @override - _i16.Future<_i10.Response> get( + _i15.Future<_i9.Response> get( Uri? url, { Map? headers, }) => @@ -2083,7 +2082,7 @@ class MockClient extends _i1.Mock implements _i10.Client { [url], {#headers: headers}, ), - returnValue: _i16.Future<_i10.Response>.value(_FakeResponse_15( + returnValue: _i15.Future<_i9.Response>.value(_FakeResponse_15( this, Invocation.method( #get, @@ -2091,13 +2090,13 @@ class MockClient extends _i1.Mock implements _i10.Client { {#headers: headers}, ), )), - ) as _i16.Future<_i10.Response>); + ) as _i15.Future<_i9.Response>); @override - _i16.Future<_i10.Response> post( + _i15.Future<_i9.Response> post( Uri? url, { Map? headers, Object? body, - _i29.Encoding? encoding, + _i28.Encoding? encoding, }) => (super.noSuchMethod( Invocation.method( @@ -2109,7 +2108,7 @@ class MockClient extends _i1.Mock implements _i10.Client { #encoding: encoding, }, ), - returnValue: _i16.Future<_i10.Response>.value(_FakeResponse_15( + returnValue: _i15.Future<_i9.Response>.value(_FakeResponse_15( this, Invocation.method( #post, @@ -2121,13 +2120,13 @@ class MockClient extends _i1.Mock implements _i10.Client { }, ), )), - ) as _i16.Future<_i10.Response>); + ) as _i15.Future<_i9.Response>); @override - _i16.Future<_i10.Response> put( + _i15.Future<_i9.Response> put( Uri? url, { Map? headers, Object? body, - _i29.Encoding? encoding, + _i28.Encoding? encoding, }) => (super.noSuchMethod( Invocation.method( @@ -2139,7 +2138,7 @@ class MockClient extends _i1.Mock implements _i10.Client { #encoding: encoding, }, ), - returnValue: _i16.Future<_i10.Response>.value(_FakeResponse_15( + returnValue: _i15.Future<_i9.Response>.value(_FakeResponse_15( this, Invocation.method( #put, @@ -2151,13 +2150,13 @@ class MockClient extends _i1.Mock implements _i10.Client { }, ), )), - ) as _i16.Future<_i10.Response>); + ) as _i15.Future<_i9.Response>); @override - _i16.Future<_i10.Response> patch( + _i15.Future<_i9.Response> patch( Uri? url, { Map? headers, Object? body, - _i29.Encoding? encoding, + _i28.Encoding? encoding, }) => (super.noSuchMethod( Invocation.method( @@ -2169,7 +2168,7 @@ class MockClient extends _i1.Mock implements _i10.Client { #encoding: encoding, }, ), - returnValue: _i16.Future<_i10.Response>.value(_FakeResponse_15( + returnValue: _i15.Future<_i9.Response>.value(_FakeResponse_15( this, Invocation.method( #patch, @@ -2181,13 +2180,13 @@ class MockClient extends _i1.Mock implements _i10.Client { }, ), )), - ) as _i16.Future<_i10.Response>); + ) as _i15.Future<_i9.Response>); @override - _i16.Future<_i10.Response> delete( + _i15.Future<_i9.Response> delete( Uri? url, { Map? headers, Object? body, - _i29.Encoding? encoding, + _i28.Encoding? encoding, }) => (super.noSuchMethod( Invocation.method( @@ -2199,7 +2198,7 @@ class MockClient extends _i1.Mock implements _i10.Client { #encoding: encoding, }, ), - returnValue: _i16.Future<_i10.Response>.value(_FakeResponse_15( + returnValue: _i15.Future<_i9.Response>.value(_FakeResponse_15( this, Invocation.method( #delete, @@ -2211,9 +2210,9 @@ class MockClient extends _i1.Mock implements _i10.Client { }, ), )), - ) as _i16.Future<_i10.Response>); + ) as _i15.Future<_i9.Response>); @override - _i16.Future read( + _i15.Future read( Uri? url, { Map? headers, }) => @@ -2223,7 +2222,7 @@ class MockClient extends _i1.Mock implements _i10.Client { [url], {#headers: headers}, ), - returnValue: _i16.Future.value(_i14.dummyValue( + returnValue: _i15.Future.value(_i13.dummyValue( this, Invocation.method( #read, @@ -2231,9 +2230,9 @@ class MockClient extends _i1.Mock implements _i10.Client { {#headers: headers}, ), )), - ) as _i16.Future); + ) as _i15.Future); @override - _i16.Future<_i30.Uint8List> readBytes( + _i15.Future<_i29.Uint8List> readBytes( Uri? url, { Map? headers, }) => @@ -2243,24 +2242,24 @@ class MockClient extends _i1.Mock implements _i10.Client { [url], {#headers: headers}, ), - returnValue: _i16.Future<_i30.Uint8List>.value(_i30.Uint8List(0)), - ) as _i16.Future<_i30.Uint8List>); + returnValue: _i15.Future<_i29.Uint8List>.value(_i29.Uint8List(0)), + ) as _i15.Future<_i29.Uint8List>); @override - _i16.Future<_i10.StreamedResponse> send(_i10.BaseRequest? request) => + _i15.Future<_i9.StreamedResponse> send(_i9.BaseRequest? request) => (super.noSuchMethod( Invocation.method( #send, [request], ), returnValue: - _i16.Future<_i10.StreamedResponse>.value(_FakeStreamedResponse_16( + _i15.Future<_i9.StreamedResponse>.value(_FakeStreamedResponse_16( this, Invocation.method( #send, [request], ), )), - ) as _i16.Future<_i10.StreamedResponse>); + ) as _i15.Future<_i9.StreamedResponse>); @override void close() => super.noSuchMethod( Invocation.method( @@ -2274,7 +2273,7 @@ class MockClient extends _i1.Mock implements _i10.Client { /// A class which mocks [NetworkService]. /// /// See the documentation for Mockito's code generation for more information. -class MockNetworkService extends _i1.Mock implements _i31.NetworkService { +class MockNetworkService extends _i1.Mock implements _i30.NetworkService { MockNetworkService() { _i1.throwOnMissingStub(this); } @@ -2296,14 +2295,14 @@ class MockNetworkService extends _i1.Mock implements _i31.NetworkService { returnValueForMissingStub: null, ); @override - List<_i32.GridItem<_i4.W3MChainInfo>> get itemListComplete => + List<_i31.GridItem<_i3.W3MChainInfo>> get itemListComplete => (super.noSuchMethod( Invocation.getter(#itemListComplete), - returnValue: <_i32.GridItem<_i4.W3MChainInfo>>[], - ) as List<_i32.GridItem<_i4.W3MChainInfo>>); + returnValue: <_i31.GridItem<_i3.W3MChainInfo>>[], + ) as List<_i31.GridItem<_i3.W3MChainInfo>>); @override set itemListComplete( - List<_i32.GridItem<_i4.W3MChainInfo>>? _itemListComplete) => + List<_i31.GridItem<_i3.W3MChainInfo>>? _itemListComplete) => super.noSuchMethod( Invocation.setter( #itemListComplete, @@ -2312,18 +2311,18 @@ class MockNetworkService extends _i1.Mock implements _i31.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( @@ -2333,14 +2332,14 @@ class MockNetworkService extends _i1.Mock implements _i31.NetworkService { returnValueForMissingStub: null, ); @override - _i16.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override void filterList({String? query}) => super.noSuchMethod( Invocation.method( @@ -2356,7 +2355,7 @@ class MockNetworkService extends _i1.Mock implements _i31.NetworkService { /// /// See the documentation for Mockito's code generation for more information. class MockBlockchainApiUtils extends _i1.Mock - implements _i33.BlockchainApiUtils { + implements _i32.BlockchainApiUtils { MockBlockchainApiUtils() { _i1.throwOnMissingStub(this); } @@ -2364,7 +2363,7 @@ class MockBlockchainApiUtils extends _i1.Mock @override String get blockchainApiUriRoot => (super.noSuchMethod( Invocation.getter(#blockchainApiUriRoot), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#blockchainApiUriRoot), ), @@ -2372,13 +2371,13 @@ class MockBlockchainApiUtils extends _i1.Mock @override String get projectId => (super.noSuchMethod( Invocation.getter(#projectId), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#projectId), ), ) as String); @override - _i16.Future<_i11.BlockchainIdentity> getIdentity( + _i15.Future<_i10.BlockchainIdentity> getIdentity( String? address, int? chainId, ) => @@ -2390,7 +2389,7 @@ class MockBlockchainApiUtils extends _i1.Mock chainId, ], ), - returnValue: _i16.Future<_i11.BlockchainIdentity>.value( + returnValue: _i15.Future<_i10.BlockchainIdentity>.value( _FakeBlockchainIdentity_17( this, Invocation.method( @@ -2401,19 +2400,19 @@ class MockBlockchainApiUtils extends _i1.Mock ], ), )), - ) as _i16.Future<_i11.BlockchainIdentity>); + ) as _i15.Future<_i10.BlockchainIdentity>); } /// A class which mocks [LedgerService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLedgerService extends _i1.Mock implements _i34.LedgerService { +class MockLedgerService extends _i1.Mock implements _i33.LedgerService { MockLedgerService() { _i1.throwOnMissingStub(this); } @override - _i16.Future getBalance( + _i15.Future getBalance( String? rpcUrl, String? address, ) => @@ -2425,10 +2424,10 @@ class MockLedgerService extends _i1.Mock implements _i34.LedgerService { address, ], ), - returnValue: _i16.Future.value(0.0), - ) as _i16.Future); + returnValue: _i15.Future.value(0.0), + ) as _i15.Future); @override - _i16.Future fetchEnsName( + _i15.Future fetchEnsName( String? rpcUrl, String? address, ) => @@ -2440,7 +2439,7 @@ class MockLedgerService extends _i1.Mock implements _i34.LedgerService { address, ], ), - returnValue: _i16.Future.value(_i14.dummyValue( + returnValue: _i15.Future.value(_i13.dummyValue( this, Invocation.method( #fetchEnsName, @@ -2450,9 +2449,9 @@ class MockLedgerService extends _i1.Mock implements _i34.LedgerService { ], ), )), - ) as _i16.Future); + ) as _i15.Future); @override - _i16.Future fetchEnsAvatar( + _i15.Future fetchEnsAvatar( String? rpcUrl, String? address, ) => @@ -2464,7 +2463,7 @@ class MockLedgerService extends _i1.Mock implements _i34.LedgerService { address, ], ), - returnValue: _i16.Future.value(_i14.dummyValue( + returnValue: _i15.Future.value(_i13.dummyValue( this, Invocation.method( #fetchEnsAvatar, @@ -2474,26 +2473,26 @@ class MockLedgerService extends _i1.Mock implements _i34.LedgerService { ], ), )), - ) as _i16.Future); + ) 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 _i35.StorageService { +class MockStorageService extends _i1.Mock implements _i34.StorageService { MockStorageService() { _i1.throwOnMissingStub(this); } @override - _i16.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i16.Future.value(), - returnValueForMissingStub: _i16.Future.value(), - ) as _i16.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override String? getString( String? key, { @@ -2505,7 +2504,7 @@ class MockStorageService extends _i1.Mock implements _i35.StorageService { {#defaultValue: defaultValue}, )) as String?); @override - _i16.Future setString( + _i15.Future setString( String? key, String? value, ) => @@ -2517,22 +2516,22 @@ class MockStorageService extends _i1.Mock implements _i35.StorageService { value, ], ), - returnValue: _i16.Future.value(false), - ) as _i16.Future); + returnValue: _i15.Future.value(false), + ) as _i15.Future); @override - _i16.Future clearAll() => (super.noSuchMethod( + _i15.Future clearAll() => (super.noSuchMethod( Invocation.method( #clearAll, [], ), - returnValue: _i16.Future.value(false), - ) as _i16.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 _i36.WidgetStack { +class MockWidgetStack extends _i1.Mock implements _i35.WidgetStack { MockWidgetStack() { _i1.throwOnMissingStub(this); } @@ -2551,7 +2550,7 @@ class MockWidgetStack extends _i1.Mock implements _i36.WidgetStack { returnValue: false, ) as bool); @override - _i12.Widget getCurrent() => (super.noSuchMethod( + _i11.Widget getCurrent() => (super.noSuchMethod( Invocation.method( #getCurrent, [], @@ -2563,10 +2562,10 @@ class MockWidgetStack extends _i1.Mock implements _i36.WidgetStack { [], ), ), - ) as _i12.Widget); + ) as _i11.Widget); @override void push( - _i12.Widget? widget, { + _i11.Widget? widget, { bool? renderScreen = false, }) => super.noSuchMethod( @@ -2626,7 +2625,7 @@ class MockWidgetStack extends _i1.Mock implements _i36.WidgetStack { returnValueForMissingStub: null, ); @override - void addListener(_i20.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -2634,7 +2633,7 @@ class MockWidgetStack extends _i1.Mock implements _i36.WidgetStack { returnValueForMissingStub: null, ); @override - void removeListener(_i20.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i19.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], diff --git a/test/w3m_account_page/w3m_account_page_ui_test.dart b/test/w3m_account_page/w3m_account_page_ui_test.dart index aed18f11..5cea8173 100644 --- a/test/w3m_account_page/w3m_account_page_ui_test.dart +++ b/test/w3m_account_page/w3m_account_page_ui_test.dart @@ -1,4 +1,3 @@ -import 'package:event/event.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/mockito.dart'; diff --git a/test/w3m_service/w3m_service_unit_test.dart b/test/w3m_service/w3m_service_unit_test.dart index b044e124..2ee79285 100644 --- a/test/w3m_service/w3m_service_unit_test.dart +++ b/test/w3m_service/w3m_service_unit_test.dart @@ -1,6 +1,3 @@ -// ignore_for_file: depend_on_referenced_packages - -import 'package:event/event.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:mockito/mockito.dart'; import 'package:web3modal_flutter/constants/string_constants.dart';