diff --git a/example/lib/home_page.dart b/example/lib/home_page.dart index 4ad644c4..6a558dcb 100644 --- a/example/lib/home_page.dart +++ b/example/lib/home_page.dart @@ -46,6 +46,11 @@ class _MyHomePageState extends State { universal: 'https://www.walletconnect.com', ), ), + // requiredNamespaces: {}, + // optionalNamespaces: {}, + // featuredWalletIds: {}, + // includedWalletIds: {}, + // excludedWalletIds: {}, ); await _w3mService.init(); diff --git a/example/pubspec.lock b/example/pubspec.lock index 94ac943c..8c30fc21 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -5,10 +5,10 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: ae92f5d747aee634b87f89d9946000c2de774be1d6ac3e58268224348cd0101a + sha256: eb376e9acf6938204f90eb3b1f00b578640d3188b4c8a8ec054f9f479af8d051 url: "https://pub.dev" source: hosted - version: "61.0.0" + version: "64.0.0" adaptive_number: dependency: transitive description: @@ -21,10 +21,10 @@ packages: dependency: transitive description: name: analyzer - sha256: ea3d8652bda62982addfd92fdc2d0214e5f82e43325104990d4f4c4a2a313562 + sha256: "69f54f967773f6c26c7dcb13e93d7ccee8b17a641689da39e878d5cf13b06893" url: "https://pub.dev" source: hosted - version: "5.13.0" + version: "6.2.0" appcheck: dependency: transitive description: @@ -37,10 +37,10 @@ packages: dependency: transitive description: name: archive - sha256: "49b1fad315e57ab0bbc15bcbb874e83116a1d78f77ebd500a4af6c9407d6b28e" + sha256: "7b875fd4a20b165a3084bd2d210439b22ebc653f21cea4842729c0c30c82596b" url: "https://pub.dev" source: hosted - version: "3.3.8" + version: "3.4.9" args: dependency: transitive description: @@ -101,18 +101,18 @@ packages: dependency: transitive description: name: build_daemon - sha256: "5f02d73eb2ba16483e693f80bee4f088563a820e47d1027d4cdfe62b5bb43e65" + sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1" url: "https://pub.dev" source: hosted - version: "4.0.0" + version: "4.0.1" build_resolvers: dependency: transitive description: name: build_resolvers - sha256: a7417cc44d9edb3f2c8760000270c99dba8c72ff66d0146772b8326565780745 + sha256: "64e12b0521812d1684b1917bc80945625391cb9bdd4312536b1d69dcb6133ed8" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.4.1" build_runner: dependency: "direct dev" description: @@ -125,10 +125,10 @@ packages: dependency: transitive description: name: build_runner_core - sha256: "6d6ee4276b1c5f34f21fdf39425202712d2be82019983d52f351c94aafbc2c41" + sha256: c9e32d21dd6626b5c163d48b037ce906bbe428bc23ab77bcd77bb21e593b6185 url: "https://pub.dev" source: hosted - version: "7.2.10" + version: "7.2.11" built_collection: dependency: transitive description: @@ -141,10 +141,10 @@ packages: dependency: transitive description: name: built_value - sha256: ff627b645b28fb8bdb69e645f910c2458fd6b65f6585c3a53e0626024897dedf + sha256: "723b4021e903217dfc445ec4cf5b42e27975aece1fc4ebbc1ca6329c2d9fb54e" url: "https://pub.dev" source: hosted - version: "8.6.2" + version: "8.7.0" cached_network_image: dependency: transitive description: @@ -205,18 +205,18 @@ packages: dependency: transitive description: name: code_builder - sha256: "315a598c7fbe77f22de1c9da7cfd6fd21816312f16ffa124453b4fc679e540f1" + sha256: "1be9be30396d7e4c0db42c35ea6ccd7cc6a1e19916b5dc64d6ac216b5544d677" url: "https://pub.dev" source: hosted - version: "4.6.0" + version: "4.7.0" collection: dependency: transitive description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.18.0" convert: dependency: transitive description: @@ -237,10 +237,10 @@ packages: dependency: transitive description: name: cryptography - sha256: df156c5109286340817d21fa7b62f9140f17915077127dd70f8bd7a2a0997a35 + sha256: d146b76d33d94548cf035233fbc2f4338c1242fa119013bead807d033fc4ae05 url: "https://pub.dev" source: hosted - version: "2.5.0" + version: "2.7.0" cupertino_icons: dependency: "direct main" description: @@ -261,10 +261,10 @@ packages: dependency: transitive description: name: dart_style - sha256: "1efa911ca7086affd35f463ca2fc1799584fb6aa89883cf0af8e3664d6a02d55" + sha256: abd7625e16f51f554ea244d090292945ec4d4be7bfbaf2ec8cccea568919d334 url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.3.3" ed25519_edwards: dependency: transitive description: @@ -317,10 +317,10 @@ packages: dependency: transitive description: name: file - sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" url: "https://pub.dev" source: hosted - version: "6.1.4" + version: "7.0.0" fixnum: dependency: transitive description: @@ -370,10 +370,10 @@ packages: dependency: transitive description: name: flutter_svg - sha256: "8c5d68a82add3ca76d792f058b186a0599414f279f00ece4830b9b231b570338" + sha256: d39e7f95621fc84376bc0f7d504f05c3a41488c562f4a8ad410569127507402c url: "https://pub.dev" source: hosted - version: "2.0.7" + version: "2.0.9" flutter_test: dependency: "direct dev" description: flutter @@ -452,10 +452,10 @@ packages: dependency: transitive description: name: image - sha256: a72242c9a0ffb65d03de1b7113bc4e189686fc07c7147b8b41811d0dd0e0d9bf + sha256: "028f61960d56f26414eb616b48b04eb37d700cbe477b7fb09bf1d7ce57fd9271" url: "https://pub.dev" source: hosted - version: "4.0.17" + version: "4.1.3" io: dependency: transitive description: @@ -540,10 +540,10 @@ packages: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" mime: dependency: transitive description: @@ -556,10 +556,10 @@ packages: dependency: transitive description: name: mockito - sha256: "7d5b53bcd556c1bc7ffbe4e4d5a19c3e112b7e925e9e172dd7c6ad0630812616" + sha256: "4b693867cee1853c9d1d7ecc1871f27f39b2ef2c13c0d8d8507dfe5bebd8aaf1" url: "https://pub.dev" source: hosted - version: "5.4.2" + version: "5.4.3" octo_image: dependency: transitive description: @@ -620,10 +620,10 @@ packages: dependency: transitive description: name: path_provider_android - sha256: "6b8b19bd80da4f11ce91b2d1fb931f3006911477cec227cce23d3253d80df3f1" + sha256: e595b98692943b4881b219f0a9e3945118d3c16bd7e2813f98ec6e532d905f72 url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.2.1" path_provider_foundation: dependency: transitive description: @@ -660,18 +660,18 @@ packages: dependency: transitive description: name: petitparser - sha256: cb3798bef7fc021ac45b308f4b51208a152792445cce0448c9a4ba5879dd8750 + sha256: eeb2d1428ee7f4170e2bd498827296a18d4e7fc462b71727d111c0ac7707cfa6 url: "https://pub.dev" source: hosted - version: "5.4.0" + version: "6.0.1" platform: dependency: transitive description: name: platform - sha256: ae68c7bfcd7383af3629daafb32fb4e8681c7154428da4febcff06200585f102 + sha256: "0a279f0707af40c890e80b1e9df8bb761694c074ba7e1d4ab1bc4b728e200b59" url: "https://pub.dev" source: hosted - version: "3.1.2" + version: "3.1.3" plugin_platform_interface: dependency: transitive description: @@ -748,10 +748,10 @@ packages: dependency: "direct main" description: name: shared_preferences - sha256: b7f41bad7e521d205998772545de63ff4e6c97714775902c199353f8bf1511ac + sha256: "81429e4481e1ccfb51ede496e916348668fd0921627779233bd24cc3ff6abd02" url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.2.2" shared_preferences_android: dependency: transitive description: @@ -772,10 +772,10 @@ packages: dependency: transitive description: name: shared_preferences_linux - sha256: c2eb5bf57a2fe9ad6988121609e47d3e07bb3bdca5b6f8444e4cf302428a128a + sha256: "9f2cbcf46d4270ea8be39fa156d86379077c8a5228d9dfdb1164ae0bb93f1faa" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.2" shared_preferences_platform_interface: dependency: transitive description: @@ -796,10 +796,10 @@ packages: dependency: transitive description: name: shared_preferences_windows - sha256: f763a101313bd3be87edffe0560037500967de9c394a714cd598d945517f694f + sha256: "841ad54f3c8381c480d0c9b508b89a34036f512482c407e6df7a9c4aa2ef8f59" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.2" shelf: dependency: transitive description: @@ -873,26 +873,26 @@ packages: dependency: transitive description: name: sqflite_common - sha256: "1b92f368f44b0dee2425bb861cfa17b6f6cf3961f762ff6f941d20b33355660a" + sha256: bb4738f15b23352822f4c42a531677e5c6f522e079461fd240ead29d8d8a54a6 url: "https://pub.dev" source: hosted - version: "2.5.0" + version: "2.5.0+2" stack_trace: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" stream_transform: dependency: transitive description: @@ -929,10 +929,10 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.6.1" timing: dependency: transitive description: @@ -961,66 +961,66 @@ packages: dependency: transitive description: name: url_launcher - sha256: "47e208a6711459d813ba18af120d9663c20bdf6985d6ad39fe165d2538378d27" + sha256: b1c9e98774adf8820c96fbc7ae3601231d324a7d5ebd8babe27b6dfac91357ba url: "https://pub.dev" source: hosted - version: "6.1.14" + version: "6.2.1" url_launcher_android: dependency: transitive description: name: url_launcher_android - sha256: b04af59516ab45762b2ca6da40fa830d72d0f6045cd97744450b73493fa76330 + sha256: "31222ffb0063171b526d3e569079cf1f8b294075ba323443fdc690842bfd4def" url: "https://pub.dev" source: hosted - version: "6.1.0" + version: "6.2.0" url_launcher_ios: dependency: transitive description: name: url_launcher_ios - sha256: "7c65021d5dee51813d652357bc65b8dd4a6177082a9966bc8ba6ee477baa795f" + sha256: "4ac97281cf60e2e8c5cc703b2b28528f9b50c8f7cebc71df6bdf0845f647268a" url: "https://pub.dev" source: hosted - version: "6.1.5" + version: "6.2.0" url_launcher_linux: dependency: transitive description: name: url_launcher_linux - sha256: b651aad005e0cb06a01dbd84b428a301916dc75f0e7ea6165f80057fee2d8e8e + sha256: "9f2d390e096fdbe1e6e6256f97851e51afc2d9c423d3432f1d6a02a8a9a8b9fd" url: "https://pub.dev" source: hosted - version: "3.0.6" + version: "3.1.0" url_launcher_macos: dependency: transitive description: name: url_launcher_macos - sha256: b55486791f666e62e0e8ff825e58a023fd6b1f71c49926483f1128d3bbd8fe88 + sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234 url: "https://pub.dev" source: hosted - version: "3.0.7" + version: "3.1.0" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface - sha256: "95465b39f83bfe95fcb9d174829d6476216f2d548b79c38ab2506e0458787618" + sha256: "980e8d9af422f477be6948bdfb68df8433be71f5743a188968b0c1b887807e50" url: "https://pub.dev" source: hosted - version: "2.1.5" + version: "2.2.0" url_launcher_web: dependency: transitive description: name: url_launcher_web - sha256: ba140138558fcc3eead51a1c42e92a9fb074a1b1149ed3c73e66035b2ccd94f2 + sha256: "7fd2f55fe86cea2897b963e864dc01a7eb0719ecc65fcef4c1cc3d686d718bb2" url: "https://pub.dev" source: hosted - version: "2.0.19" + version: "2.2.0" url_launcher_windows: dependency: transitive description: name: url_launcher_windows - sha256: "95fef3129dc7cfaba2bc3d5ba2e16063bb561fc6d78e63eee16162bc70029069" + sha256: "7754a1ad30ee896b265f8d14078b0513a4dba28d358eabb9d5f339886f4a1adc" url: "https://pub.dev" source: hosted - version: "3.0.8" + version: "3.1.0" uuid: dependency: transitive description: @@ -1033,26 +1033,26 @@ packages: dependency: transitive description: name: vector_graphics - sha256: "670f6e07aca990b4a2bcdc08a784193c4ccdd1932620244c3a86bb72a0eac67f" + sha256: "0f0c746dd2d6254a0057218ff980fc7f5670fd0fcf5e4db38a490d31eed4ad43" url: "https://pub.dev" source: hosted - version: "1.1.7" + version: "1.1.9+1" vector_graphics_codec: dependency: transitive description: name: vector_graphics_codec - sha256: "7451721781d967db9933b63f5733b1c4533022c0ba373a01bdd79d1a5457f69f" + sha256: "0edf6d630d1bfd5589114138ed8fada3234deacc37966bec033d3047c29248b7" url: "https://pub.dev" source: hosted - version: "1.1.7" + version: "1.1.9+1" vector_graphics_compiler: dependency: transitive description: name: vector_graphics_compiler - sha256: "80a13c613c8bde758b1464a1755a7b3a8f2b6cec61fbf0f5a53c94c30f03ba2e" + sha256: d24333727332d9bd20990f1483af4e09abdb9b1fc7c3db940b56ab5c42790c26 url: "https://pub.dev" source: hosted - version: "1.1.7" + version: "1.1.9+1" vector_math: dependency: transitive description: @@ -1089,10 +1089,10 @@ packages: dependency: transitive description: name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 url: "https://pub.dev" source: hosted - version: "0.1.4-beta" + version: "0.3.0" web3dart: dependency: "direct main" description: @@ -1120,10 +1120,10 @@ packages: dependency: transitive description: name: win32 - sha256: "9e82a402b7f3d518fb9c02d0e9ae45952df31b9bf34d77baf19da2de03fc2aaa" + sha256: "7c99c0e1e2fa190b48d25c81ca5e42036d5cac81430ef249027d97b0935c553f" url: "https://pub.dev" source: hosted - version: "5.0.7" + version: "5.1.0" x25519: dependency: transitive description: @@ -1144,10 +1144,10 @@ packages: dependency: transitive description: name: xml - sha256: "5bc72e1e45e941d825fd7468b9b4cc3b9327942649aeb6fc5cdbf135f0a86e84" + sha256: af5e77e9b83f2f4adc5d3f0a4ece1c7f45a2467b695c2540381bac793e34e556 url: "https://pub.dev" source: hosted - version: "6.3.0" + version: "6.4.2" yaml: dependency: transitive description: @@ -1157,5 +1157,5 @@ packages: source: hosted version: "3.1.2" sdks: - dart: ">=3.1.0-185.0.dev <4.0.0" - flutter: ">=3.10.0" + dart: ">=3.2.0-194.0.dev <4.0.0" + flutter: ">=3.13.0" diff --git a/lib/models/w3m_chain_info.freezed.dart b/lib/models/w3m_chain_info.freezed.dart index 0b8e5ef3..9b2fce76 100644 --- a/lib/models/w3m_chain_info.freezed.dart +++ b/lib/models/w3m_chain_info.freezed.dart @@ -114,11 +114,11 @@ class _$W3MChainInfoCopyWithImpl<$Res, $Val extends W3MChainInfo> } /// @nodoc -abstract class _$$_W3MChainInfoCopyWith<$Res> +abstract class _$$W3MChainInfoImplCopyWith<$Res> implements $W3MChainInfoCopyWith<$Res> { - factory _$$_W3MChainInfoCopyWith( - _$_W3MChainInfo value, $Res Function(_$_W3MChainInfo) then) = - __$$_W3MChainInfoCopyWithImpl<$Res>; + factory _$$W3MChainInfoImplCopyWith( + _$W3MChainInfoImpl value, $Res Function(_$W3MChainInfoImpl) then) = + __$$W3MChainInfoImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -135,11 +135,11 @@ abstract class _$$_W3MChainInfoCopyWith<$Res> } /// @nodoc -class __$$_W3MChainInfoCopyWithImpl<$Res> - extends _$W3MChainInfoCopyWithImpl<$Res, _$_W3MChainInfo> - implements _$$_W3MChainInfoCopyWith<$Res> { - __$$_W3MChainInfoCopyWithImpl( - _$_W3MChainInfo _value, $Res Function(_$_W3MChainInfo) _then) +class __$$W3MChainInfoImplCopyWithImpl<$Res> + extends _$W3MChainInfoCopyWithImpl<$Res, _$W3MChainInfoImpl> + implements _$$W3MChainInfoImplCopyWith<$Res> { + __$$W3MChainInfoImplCopyWithImpl( + _$W3MChainInfoImpl _value, $Res Function(_$W3MChainInfoImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -153,7 +153,7 @@ class __$$_W3MChainInfoCopyWithImpl<$Res> Object? chainIcon = freezed, Object? blockExplorer = freezed, }) { - return _then(_$_W3MChainInfo( + return _then(_$W3MChainInfoImpl( chainName: null == chainName ? _value.chainName : chainName // ignore: cast_nullable_to_non_nullable @@ -188,8 +188,8 @@ class __$$_W3MChainInfoCopyWithImpl<$Res> /// @nodoc -class _$_W3MChainInfo implements _W3MChainInfo { - _$_W3MChainInfo( +class _$W3MChainInfoImpl implements _W3MChainInfo { + _$W3MChainInfoImpl( {required this.chainName, required this.chainId, required this.namespace, @@ -222,7 +222,7 @@ class _$_W3MChainInfo implements _W3MChainInfo { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_W3MChainInfo && + other is _$W3MChainInfoImpl && (identical(other.chainName, chainName) || other.chainName == chainName) && (identical(other.chainId, chainId) || other.chainId == chainId) && @@ -244,8 +244,8 @@ class _$_W3MChainInfo implements _W3MChainInfo { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_W3MChainInfoCopyWith<_$_W3MChainInfo> get copyWith => - __$$_W3MChainInfoCopyWithImpl<_$_W3MChainInfo>(this, _$identity); + _$$W3MChainInfoImplCopyWith<_$W3MChainInfoImpl> get copyWith => + __$$W3MChainInfoImplCopyWithImpl<_$W3MChainInfoImpl>(this, _$identity); } abstract class _W3MChainInfo implements W3MChainInfo { @@ -256,7 +256,7 @@ abstract class _W3MChainInfo implements W3MChainInfo { required final String tokenName, required final String rpcUrl, final String? chainIcon, - final W3MBlockExplorer? blockExplorer}) = _$_W3MChainInfo; + final W3MBlockExplorer? blockExplorer}) = _$W3MChainInfoImpl; @override String get chainName; @@ -274,7 +274,7 @@ abstract class _W3MChainInfo implements W3MChainInfo { W3MBlockExplorer? get blockExplorer; @override @JsonKey(ignore: true) - _$$_W3MChainInfoCopyWith<_$_W3MChainInfo> get copyWith => + _$$W3MChainInfoImplCopyWith<_$W3MChainInfoImpl> get copyWith => throw _privateConstructorUsedError; } @@ -327,22 +327,22 @@ class _$W3MBlockExplorerCopyWithImpl<$Res, $Val extends W3MBlockExplorer> } /// @nodoc -abstract class _$$_W3MBlockExplorerCopyWith<$Res> +abstract class _$$W3MBlockExplorerImplCopyWith<$Res> implements $W3MBlockExplorerCopyWith<$Res> { - factory _$$_W3MBlockExplorerCopyWith( - _$_W3MBlockExplorer value, $Res Function(_$_W3MBlockExplorer) then) = - __$$_W3MBlockExplorerCopyWithImpl<$Res>; + factory _$$W3MBlockExplorerImplCopyWith(_$W3MBlockExplorerImpl value, + $Res Function(_$W3MBlockExplorerImpl) then) = + __$$W3MBlockExplorerImplCopyWithImpl<$Res>; @override @useResult $Res call({String name, String url}); } /// @nodoc -class __$$_W3MBlockExplorerCopyWithImpl<$Res> - extends _$W3MBlockExplorerCopyWithImpl<$Res, _$_W3MBlockExplorer> - implements _$$_W3MBlockExplorerCopyWith<$Res> { - __$$_W3MBlockExplorerCopyWithImpl( - _$_W3MBlockExplorer _value, $Res Function(_$_W3MBlockExplorer) _then) +class __$$W3MBlockExplorerImplCopyWithImpl<$Res> + extends _$W3MBlockExplorerCopyWithImpl<$Res, _$W3MBlockExplorerImpl> + implements _$$W3MBlockExplorerImplCopyWith<$Res> { + __$$W3MBlockExplorerImplCopyWithImpl(_$W3MBlockExplorerImpl _value, + $Res Function(_$W3MBlockExplorerImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -351,7 +351,7 @@ class __$$_W3MBlockExplorerCopyWithImpl<$Res> Object? name = null, Object? url = null, }) { - return _then(_$_W3MBlockExplorer( + return _then(_$W3MBlockExplorerImpl( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable @@ -366,8 +366,8 @@ class __$$_W3MBlockExplorerCopyWithImpl<$Res> /// @nodoc -class _$_W3MBlockExplorer implements _W3MBlockExplorer { - _$_W3MBlockExplorer({required this.name, required this.url}); +class _$W3MBlockExplorerImpl implements _W3MBlockExplorer { + _$W3MBlockExplorerImpl({required this.name, required this.url}); @override final String name; @@ -383,7 +383,7 @@ class _$_W3MBlockExplorer implements _W3MBlockExplorer { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_W3MBlockExplorer && + other is _$W3MBlockExplorerImpl && (identical(other.name, name) || other.name == name) && (identical(other.url, url) || other.url == url)); } @@ -394,14 +394,15 @@ class _$_W3MBlockExplorer implements _W3MBlockExplorer { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_W3MBlockExplorerCopyWith<_$_W3MBlockExplorer> get copyWith => - __$$_W3MBlockExplorerCopyWithImpl<_$_W3MBlockExplorer>(this, _$identity); + _$$W3MBlockExplorerImplCopyWith<_$W3MBlockExplorerImpl> get copyWith => + __$$W3MBlockExplorerImplCopyWithImpl<_$W3MBlockExplorerImpl>( + this, _$identity); } abstract class _W3MBlockExplorer implements W3MBlockExplorer { factory _W3MBlockExplorer( {required final String name, - required final String url}) = _$_W3MBlockExplorer; + required final String url}) = _$W3MBlockExplorerImpl; @override String get name; @@ -409,6 +410,6 @@ abstract class _W3MBlockExplorer implements W3MBlockExplorer { String get url; @override @JsonKey(ignore: true) - _$$_W3MBlockExplorerCopyWith<_$_W3MBlockExplorer> get copyWith => + _$$W3MBlockExplorerImplCopyWith<_$W3MBlockExplorerImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/models/w3m_wallet_info.freezed.dart b/lib/models/w3m_wallet_info.freezed.dart index 21088f3f..8cab6669 100644 --- a/lib/models/w3m_wallet_info.freezed.dart +++ b/lib/models/w3m_wallet_info.freezed.dart @@ -74,22 +74,22 @@ class _$W3MWalletInfoCopyWithImpl<$Res, $Val extends W3MWalletInfo> } /// @nodoc -abstract class _$$_W3MWalletInfoCopyWith<$Res> +abstract class _$$W3MWalletInfoImplCopyWith<$Res> implements $W3MWalletInfoCopyWith<$Res> { - factory _$$_W3MWalletInfoCopyWith( - _$_W3MWalletInfo value, $Res Function(_$_W3MWalletInfo) then) = - __$$_W3MWalletInfoCopyWithImpl<$Res>; + factory _$$W3MWalletInfoImplCopyWith( + _$W3MWalletInfoImpl value, $Res Function(_$W3MWalletInfoImpl) then) = + __$$W3MWalletInfoImplCopyWithImpl<$Res>; @override @useResult $Res call({Listing listing, bool installed, bool recent}); } /// @nodoc -class __$$_W3MWalletInfoCopyWithImpl<$Res> - extends _$W3MWalletInfoCopyWithImpl<$Res, _$_W3MWalletInfo> - implements _$$_W3MWalletInfoCopyWith<$Res> { - __$$_W3MWalletInfoCopyWithImpl( - _$_W3MWalletInfo _value, $Res Function(_$_W3MWalletInfo) _then) +class __$$W3MWalletInfoImplCopyWithImpl<$Res> + extends _$W3MWalletInfoCopyWithImpl<$Res, _$W3MWalletInfoImpl> + implements _$$W3MWalletInfoImplCopyWith<$Res> { + __$$W3MWalletInfoImplCopyWithImpl( + _$W3MWalletInfoImpl _value, $Res Function(_$W3MWalletInfoImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -99,7 +99,7 @@ class __$$_W3MWalletInfoCopyWithImpl<$Res> Object? installed = null, Object? recent = null, }) { - return _then(_$_W3MWalletInfo( + return _then(_$W3MWalletInfoImpl( listing: null == listing ? _value.listing : listing // ignore: cast_nullable_to_non_nullable @@ -118,12 +118,12 @@ class __$$_W3MWalletInfoCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_W3MWalletInfo implements _W3MWalletInfo { - const _$_W3MWalletInfo( +class _$W3MWalletInfoImpl implements _W3MWalletInfo { + const _$W3MWalletInfoImpl( {required this.listing, required this.installed, required this.recent}); - factory _$_W3MWalletInfo.fromJson(Map json) => - _$$_W3MWalletInfoFromJson(json); + factory _$W3MWalletInfoImpl.fromJson(Map json) => + _$$W3MWalletInfoImplFromJson(json); @override final Listing listing; @@ -141,7 +141,7 @@ class _$_W3MWalletInfo implements _W3MWalletInfo { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_W3MWalletInfo && + other is _$W3MWalletInfoImpl && (identical(other.listing, listing) || other.listing == listing) && (identical(other.installed, installed) || other.installed == installed) && @@ -155,12 +155,12 @@ class _$_W3MWalletInfo implements _W3MWalletInfo { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_W3MWalletInfoCopyWith<_$_W3MWalletInfo> get copyWith => - __$$_W3MWalletInfoCopyWithImpl<_$_W3MWalletInfo>(this, _$identity); + _$$W3MWalletInfoImplCopyWith<_$W3MWalletInfoImpl> get copyWith => + __$$W3MWalletInfoImplCopyWithImpl<_$W3MWalletInfoImpl>(this, _$identity); @override Map toJson() { - return _$$_W3MWalletInfoToJson( + return _$$W3MWalletInfoImplToJson( this, ); } @@ -170,10 +170,10 @@ abstract class _W3MWalletInfo implements W3MWalletInfo { const factory _W3MWalletInfo( {required final Listing listing, required final bool installed, - required final bool recent}) = _$_W3MWalletInfo; + required final bool recent}) = _$W3MWalletInfoImpl; factory _W3MWalletInfo.fromJson(Map json) = - _$_W3MWalletInfo.fromJson; + _$W3MWalletInfoImpl.fromJson; @override Listing get listing; @@ -183,6 +183,6 @@ abstract class _W3MWalletInfo implements W3MWalletInfo { bool get recent; @override @JsonKey(ignore: true) - _$$_W3MWalletInfoCopyWith<_$_W3MWalletInfo> get copyWith => + _$$W3MWalletInfoImplCopyWith<_$W3MWalletInfoImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/models/w3m_wallet_info.g.dart b/lib/models/w3m_wallet_info.g.dart index 673a3645..dda65db5 100644 --- a/lib/models/w3m_wallet_info.g.dart +++ b/lib/models/w3m_wallet_info.g.dart @@ -8,14 +8,14 @@ part of 'w3m_wallet_info.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_W3MWalletInfo _$$_W3MWalletInfoFromJson(Map json) => - _$_W3MWalletInfo( +_$W3MWalletInfoImpl _$$W3MWalletInfoImplFromJson(Map json) => + _$W3MWalletInfoImpl( listing: Listing.fromJson(json['listing']), installed: json['installed'] as bool, recent: json['recent'] as bool, ); -Map _$$_W3MWalletInfoToJson(_$_W3MWalletInfo instance) => +Map _$$W3MWalletInfoImplToJson(_$W3MWalletInfoImpl instance) => { 'listing': instance.listing.toJson(), 'installed': instance.installed, diff --git a/lib/services/blockchain_api_service/blockchain_identity.freezed.dart b/lib/services/blockchain_api_service/blockchain_identity.freezed.dart index 5648bcbd..8d15e42a 100644 --- a/lib/services/blockchain_api_service/blockchain_identity.freezed.dart +++ b/lib/services/blockchain_api_service/blockchain_identity.freezed.dart @@ -68,22 +68,22 @@ class _$BlockchainIdentityCopyWithImpl<$Res, $Val extends BlockchainIdentity> } /// @nodoc -abstract class _$$_BlockchainIdentityCopyWith<$Res> +abstract class _$$BlockchainIdentityImplCopyWith<$Res> implements $BlockchainIdentityCopyWith<$Res> { - factory _$$_BlockchainIdentityCopyWith(_$_BlockchainIdentity value, - $Res Function(_$_BlockchainIdentity) then) = - __$$_BlockchainIdentityCopyWithImpl<$Res>; + factory _$$BlockchainIdentityImplCopyWith(_$BlockchainIdentityImpl value, + $Res Function(_$BlockchainIdentityImpl) then) = + __$$BlockchainIdentityImplCopyWithImpl<$Res>; @override @useResult $Res call({String? name, String? avatar}); } /// @nodoc -class __$$_BlockchainIdentityCopyWithImpl<$Res> - extends _$BlockchainIdentityCopyWithImpl<$Res, _$_BlockchainIdentity> - implements _$$_BlockchainIdentityCopyWith<$Res> { - __$$_BlockchainIdentityCopyWithImpl( - _$_BlockchainIdentity _value, $Res Function(_$_BlockchainIdentity) _then) +class __$$BlockchainIdentityImplCopyWithImpl<$Res> + extends _$BlockchainIdentityCopyWithImpl<$Res, _$BlockchainIdentityImpl> + implements _$$BlockchainIdentityImplCopyWith<$Res> { + __$$BlockchainIdentityImplCopyWithImpl(_$BlockchainIdentityImpl _value, + $Res Function(_$BlockchainIdentityImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -92,7 +92,7 @@ class __$$_BlockchainIdentityCopyWithImpl<$Res> Object? name = freezed, Object? avatar = freezed, }) { - return _then(_$_BlockchainIdentity( + return _then(_$BlockchainIdentityImpl( name: freezed == name ? _value.name : name // ignore: cast_nullable_to_non_nullable @@ -107,11 +107,11 @@ class __$$_BlockchainIdentityCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_BlockchainIdentity implements _BlockchainIdentity { - const _$_BlockchainIdentity({this.name, this.avatar}); +class _$BlockchainIdentityImpl implements _BlockchainIdentity { + const _$BlockchainIdentityImpl({this.name, this.avatar}); - factory _$_BlockchainIdentity.fromJson(Map json) => - _$$_BlockchainIdentityFromJson(json); + factory _$BlockchainIdentityImpl.fromJson(Map json) => + _$$BlockchainIdentityImplFromJson(json); @override final String? name; @@ -127,7 +127,7 @@ class _$_BlockchainIdentity implements _BlockchainIdentity { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_BlockchainIdentity && + other is _$BlockchainIdentityImpl && (identical(other.name, name) || other.name == name) && (identical(other.avatar, avatar) || other.avatar == avatar)); } @@ -139,13 +139,13 @@ class _$_BlockchainIdentity implements _BlockchainIdentity { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_BlockchainIdentityCopyWith<_$_BlockchainIdentity> get copyWith => - __$$_BlockchainIdentityCopyWithImpl<_$_BlockchainIdentity>( + _$$BlockchainIdentityImplCopyWith<_$BlockchainIdentityImpl> get copyWith => + __$$BlockchainIdentityImplCopyWithImpl<_$BlockchainIdentityImpl>( this, _$identity); @override Map toJson() { - return _$$_BlockchainIdentityToJson( + return _$$BlockchainIdentityImplToJson( this, ); } @@ -153,10 +153,10 @@ class _$_BlockchainIdentity implements _BlockchainIdentity { abstract class _BlockchainIdentity implements BlockchainIdentity { const factory _BlockchainIdentity( - {final String? name, final String? avatar}) = _$_BlockchainIdentity; + {final String? name, final String? avatar}) = _$BlockchainIdentityImpl; factory _BlockchainIdentity.fromJson(Map json) = - _$_BlockchainIdentity.fromJson; + _$BlockchainIdentityImpl.fromJson; @override String? get name; @@ -164,6 +164,6 @@ abstract class _BlockchainIdentity implements BlockchainIdentity { String? get avatar; @override @JsonKey(ignore: true) - _$$_BlockchainIdentityCopyWith<_$_BlockchainIdentity> get copyWith => + _$$BlockchainIdentityImplCopyWith<_$BlockchainIdentityImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/services/blockchain_api_service/blockchain_identity.g.dart b/lib/services/blockchain_api_service/blockchain_identity.g.dart index a0837f78..b3504975 100644 --- a/lib/services/blockchain_api_service/blockchain_identity.g.dart +++ b/lib/services/blockchain_api_service/blockchain_identity.g.dart @@ -8,15 +8,15 @@ part of 'blockchain_identity.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_BlockchainIdentity _$$_BlockchainIdentityFromJson( +_$BlockchainIdentityImpl _$$BlockchainIdentityImplFromJson( Map json) => - _$_BlockchainIdentity( + _$BlockchainIdentityImpl( name: json['name'] as String?, avatar: json['avatar'] as String?, ); -Map _$$_BlockchainIdentityToJson( - _$_BlockchainIdentity instance) => +Map _$$BlockchainIdentityImplToJson( + _$BlockchainIdentityImpl instance) => { 'name': instance.name, 'avatar': instance.avatar, diff --git a/lib/services/explorer_service/explorer_service.dart b/lib/services/explorer_service/explorer_service.dart index cf51f35a..156d545f 100644 --- a/lib/services/explorer_service/explorer_service.dart +++ b/lib/services/explorer_service/explorer_service.dart @@ -1,6 +1,5 @@ import 'dart:async'; import 'dart:convert'; -import 'dart:math'; import 'package:collection/collection.dart'; import 'package:flutter/foundation.dart'; @@ -231,7 +230,7 @@ class ExplorerService implements IExplorerService { } catch (error) { W3MLoggerUtil.logger .e('[$runtimeType] Error fetch wallets params: $p', error: error); - throw Exception(e); + throw Exception(error); } } @@ -357,9 +356,8 @@ class ExplorerService implements IExplorerService { ); } - String _getPlatformType() { + String? _getPlatformType() { final type = platformUtils.instance.getPlatformType(); - final platform = type.toString().toLowerCase(); switch (type) { case PlatformType.mobile: if (Platform.isIOS) { @@ -367,10 +365,10 @@ class ExplorerService implements IExplorerService { } else if (Platform.isAndroid) { return 'android'; } else { - return 'mobile'; + return null; } default: - return platform; + return null; } } } diff --git a/lib/theme/w3m_colors.freezed.dart b/lib/theme/w3m_colors.freezed.dart index a720005d..de436543 100644 --- a/lib/theme/w3m_colors.freezed.dart +++ b/lib/theme/w3m_colors.freezed.dart @@ -275,11 +275,11 @@ class _$Web3ModalColorsCopyWithImpl<$Res, $Val extends Web3ModalColors> } /// @nodoc -abstract class _$$_Web3ModalColorsCopyWith<$Res> +abstract class _$$Web3ModalColorsImplCopyWith<$Res> implements $Web3ModalColorsCopyWith<$Res> { - factory _$$_Web3ModalColorsCopyWith( - _$_Web3ModalColors value, $Res Function(_$_Web3ModalColors) then) = - __$$_Web3ModalColorsCopyWithImpl<$Res>; + factory _$$Web3ModalColorsImplCopyWith(_$Web3ModalColorsImpl value, + $Res Function(_$Web3ModalColorsImpl) then) = + __$$Web3ModalColorsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -318,11 +318,11 @@ abstract class _$$_Web3ModalColorsCopyWith<$Res> } /// @nodoc -class __$$_Web3ModalColorsCopyWithImpl<$Res> - extends _$Web3ModalColorsCopyWithImpl<$Res, _$_Web3ModalColors> - implements _$$_Web3ModalColorsCopyWith<$Res> { - __$$_Web3ModalColorsCopyWithImpl( - _$_Web3ModalColors _value, $Res Function(_$_Web3ModalColors) _then) +class __$$Web3ModalColorsImplCopyWithImpl<$Res> + extends _$Web3ModalColorsCopyWithImpl<$Res, _$Web3ModalColorsImpl> + implements _$$Web3ModalColorsImplCopyWith<$Res> { + __$$Web3ModalColorsImplCopyWithImpl( + _$Web3ModalColorsImpl _value, $Res Function(_$Web3ModalColorsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -361,7 +361,7 @@ class __$$_Web3ModalColorsCopyWithImpl<$Res> Object? purple100 = null, Object? yellow100 = null, }) { - return _then(_$_Web3ModalColors( + return _then(_$Web3ModalColorsImpl( accent100: null == accent100 ? _value.accent100 : accent100 // ignore: cast_nullable_to_non_nullable @@ -496,8 +496,8 @@ class __$$_Web3ModalColorsCopyWithImpl<$Res> /// @nodoc -class _$_Web3ModalColors implements _Web3ModalColors { - const _$_Web3ModalColors( +class _$Web3ModalColorsImpl implements _Web3ModalColors { + const _$Web3ModalColorsImpl( {required this.accent100, required this.accent090, required this.accent080, @@ -609,7 +609,7 @@ class _$_Web3ModalColors implements _Web3ModalColors { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Web3ModalColors && + other is _$Web3ModalColorsImpl && (identical(other.accent100, accent100) || other.accent100 == accent100) && (identical(other.accent090, accent090) || @@ -715,8 +715,9 @@ class _$_Web3ModalColors implements _Web3ModalColors { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_Web3ModalColorsCopyWith<_$_Web3ModalColors> get copyWith => - __$$_Web3ModalColorsCopyWithImpl<_$_Web3ModalColors>(this, _$identity); + _$$Web3ModalColorsImplCopyWith<_$Web3ModalColorsImpl> get copyWith => + __$$Web3ModalColorsImplCopyWithImpl<_$Web3ModalColorsImpl>( + this, _$identity); } abstract class _Web3ModalColors implements Web3ModalColors { @@ -752,7 +753,7 @@ abstract class _Web3ModalColors implements Web3ModalColors { required final Color indigo100, required final Color orange100, required final Color purple100, - required final Color yellow100}) = _$_Web3ModalColors; + required final Color yellow100}) = _$Web3ModalColorsImpl; @override Color get accent100; @@ -820,6 +821,6 @@ abstract class _Web3ModalColors implements Web3ModalColors { Color get yellow100; @override @JsonKey(ignore: true) - _$$_Web3ModalColorsCopyWith<_$_Web3ModalColors> get copyWith => + _$$Web3ModalColorsImplCopyWith<_$Web3ModalColorsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/theme/w3m_radiuses.freezed.dart b/lib/theme/w3m_radiuses.freezed.dart index 064c69df..4a3ec825 100644 --- a/lib/theme/w3m_radiuses.freezed.dart +++ b/lib/theme/w3m_radiuses.freezed.dart @@ -107,11 +107,11 @@ class _$Web3ModalRadiusesCopyWithImpl<$Res, $Val extends Web3ModalRadiuses> } /// @nodoc -abstract class _$$_Web3ModalRadiusesCopyWith<$Res> +abstract class _$$Web3ModalRadiusesImplCopyWith<$Res> implements $Web3ModalRadiusesCopyWith<$Res> { - factory _$$_Web3ModalRadiusesCopyWith(_$_Web3ModalRadiuses value, - $Res Function(_$_Web3ModalRadiuses) then) = - __$$_Web3ModalRadiusesCopyWithImpl<$Res>; + factory _$$Web3ModalRadiusesImplCopyWith(_$Web3ModalRadiusesImpl value, + $Res Function(_$Web3ModalRadiusesImpl) then) = + __$$Web3ModalRadiusesImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -126,11 +126,11 @@ abstract class _$$_Web3ModalRadiusesCopyWith<$Res> } /// @nodoc -class __$$_Web3ModalRadiusesCopyWithImpl<$Res> - extends _$Web3ModalRadiusesCopyWithImpl<$Res, _$_Web3ModalRadiuses> - implements _$$_Web3ModalRadiusesCopyWith<$Res> { - __$$_Web3ModalRadiusesCopyWithImpl( - _$_Web3ModalRadiuses _value, $Res Function(_$_Web3ModalRadiuses) _then) +class __$$Web3ModalRadiusesImplCopyWithImpl<$Res> + extends _$Web3ModalRadiusesCopyWithImpl<$Res, _$Web3ModalRadiusesImpl> + implements _$$Web3ModalRadiusesImplCopyWith<$Res> { + __$$Web3ModalRadiusesImplCopyWithImpl(_$Web3ModalRadiusesImpl _value, + $Res Function(_$Web3ModalRadiusesImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -145,7 +145,7 @@ class __$$_Web3ModalRadiusesCopyWithImpl<$Res> Object? radiusL = null, Object? radius3XL = null, }) { - return _then(_$_Web3ModalRadiuses( + return _then(_$Web3ModalRadiusesImpl( radius4XS: null == radius4XS ? _value.radius4XS : radius4XS // ignore: cast_nullable_to_non_nullable @@ -184,8 +184,8 @@ class __$$_Web3ModalRadiusesCopyWithImpl<$Res> /// @nodoc -class _$_Web3ModalRadiuses implements _Web3ModalRadiuses { - const _$_Web3ModalRadiuses( +class _$Web3ModalRadiusesImpl implements _Web3ModalRadiuses { + const _$Web3ModalRadiusesImpl( {this.radius4XS = 6.0, this.radius3XS = 8.0, this.radius2XS = 12.0, @@ -229,7 +229,7 @@ class _$_Web3ModalRadiuses implements _Web3ModalRadiuses { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Web3ModalRadiuses && + other is _$Web3ModalRadiusesImpl && (identical(other.radius4XS, radius4XS) || other.radius4XS == radius4XS) && (identical(other.radius3XS, radius3XS) || @@ -252,8 +252,8 @@ class _$_Web3ModalRadiuses implements _Web3ModalRadiuses { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_Web3ModalRadiusesCopyWith<_$_Web3ModalRadiuses> get copyWith => - __$$_Web3ModalRadiusesCopyWithImpl<_$_Web3ModalRadiuses>( + _$$Web3ModalRadiusesImplCopyWith<_$Web3ModalRadiusesImpl> get copyWith => + __$$Web3ModalRadiusesImplCopyWithImpl<_$Web3ModalRadiusesImpl>( this, _$identity); } @@ -266,7 +266,7 @@ abstract class _Web3ModalRadiuses implements Web3ModalRadiuses { final double radiusS, final double radiusM, final double radiusL, - final double radius3XL}) = _$_Web3ModalRadiuses; + final double radius3XL}) = _$Web3ModalRadiusesImpl; @override double get radius4XS; @@ -286,6 +286,6 @@ abstract class _Web3ModalRadiuses implements Web3ModalRadiuses { double get radius3XL; @override @JsonKey(ignore: true) - _$$_Web3ModalRadiusesCopyWith<_$_Web3ModalRadiuses> get copyWith => + _$$Web3ModalRadiusesImplCopyWith<_$Web3ModalRadiusesImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/theme/w3m_text_styles.freezed.dart b/lib/theme/w3m_text_styles.freezed.dart index 524153e8..ba3dae5f 100644 --- a/lib/theme/w3m_text_styles.freezed.dart +++ b/lib/theme/w3m_text_styles.freezed.dart @@ -177,11 +177,11 @@ class _$Web3ModalTextStylesCopyWithImpl<$Res, $Val extends Web3ModalTextStyles> } /// @nodoc -abstract class _$$_Web3ModalTextStylesCopyWith<$Res> +abstract class _$$Web3ModalTextStylesImplCopyWith<$Res> implements $Web3ModalTextStylesCopyWith<$Res> { - factory _$$_Web3ModalTextStylesCopyWith(_$_Web3ModalTextStyles value, - $Res Function(_$_Web3ModalTextStyles) then) = - __$$_Web3ModalTextStylesCopyWithImpl<$Res>; + factory _$$Web3ModalTextStylesImplCopyWith(_$Web3ModalTextStylesImpl value, + $Res Function(_$Web3ModalTextStylesImpl) then) = + __$$Web3ModalTextStylesImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -206,11 +206,11 @@ abstract class _$$_Web3ModalTextStylesCopyWith<$Res> } /// @nodoc -class __$$_Web3ModalTextStylesCopyWithImpl<$Res> - extends _$Web3ModalTextStylesCopyWithImpl<$Res, _$_Web3ModalTextStyles> - implements _$$_Web3ModalTextStylesCopyWith<$Res> { - __$$_Web3ModalTextStylesCopyWithImpl(_$_Web3ModalTextStyles _value, - $Res Function(_$_Web3ModalTextStyles) _then) +class __$$Web3ModalTextStylesImplCopyWithImpl<$Res> + extends _$Web3ModalTextStylesCopyWithImpl<$Res, _$Web3ModalTextStylesImpl> + implements _$$Web3ModalTextStylesImplCopyWith<$Res> { + __$$Web3ModalTextStylesImplCopyWithImpl(_$Web3ModalTextStylesImpl _value, + $Res Function(_$Web3ModalTextStylesImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -235,7 +235,7 @@ class __$$_Web3ModalTextStylesCopyWithImpl<$Res> Object? micro600 = null, Object? micro700 = null, }) { - return _then(_$_Web3ModalTextStyles( + return _then(_$Web3ModalTextStylesImpl( fontFamily: null == fontFamily ? _value.fontFamily : fontFamily // ignore: cast_nullable_to_non_nullable @@ -314,8 +314,8 @@ class __$$_Web3ModalTextStylesCopyWithImpl<$Res> /// @nodoc -class _$_Web3ModalTextStyles implements _Web3ModalTextStyles { - const _$_Web3ModalTextStyles( +class _$Web3ModalTextStylesImpl implements _Web3ModalTextStyles { + const _$Web3ModalTextStylesImpl( {required this.fontFamily, required this.title400, required this.title500, @@ -381,7 +381,7 @@ class _$_Web3ModalTextStyles implements _Web3ModalTextStyles { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Web3ModalTextStyles && + other is _$Web3ModalTextStylesImpl && (identical(other.fontFamily, fontFamily) || other.fontFamily == fontFamily) && (identical(other.title400, title400) || @@ -442,8 +442,8 @@ class _$_Web3ModalTextStyles implements _Web3ModalTextStyles { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_Web3ModalTextStylesCopyWith<_$_Web3ModalTextStyles> get copyWith => - __$$_Web3ModalTextStylesCopyWithImpl<_$_Web3ModalTextStyles>( + _$$Web3ModalTextStylesImplCopyWith<_$Web3ModalTextStylesImpl> get copyWith => + __$$Web3ModalTextStylesImplCopyWithImpl<_$Web3ModalTextStylesImpl>( this, _$identity); } @@ -466,7 +466,7 @@ abstract class _Web3ModalTextStyles implements Web3ModalTextStyles { required final TextStyle tiny500, required final TextStyle tiny600, required final TextStyle micro600, - required final TextStyle micro700}) = _$_Web3ModalTextStyles; + required final TextStyle micro700}) = _$Web3ModalTextStylesImpl; @override String get fontFamily; @@ -506,6 +506,6 @@ abstract class _Web3ModalTextStyles implements Web3ModalTextStyles { TextStyle get micro700; @override @JsonKey(ignore: true) - _$$_Web3ModalTextStylesCopyWith<_$_Web3ModalTextStyles> get copyWith => + _$$Web3ModalTextStylesImplCopyWith<_$Web3ModalTextStylesImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/theme/w3m_theme_data.freezed.dart b/lib/theme/w3m_theme_data.freezed.dart index 55d1e628..96df6db7 100644 --- a/lib/theme/w3m_theme_data.freezed.dart +++ b/lib/theme/w3m_theme_data.freezed.dart @@ -116,11 +116,11 @@ class _$Web3ModalThemeDataCopyWithImpl<$Res, $Val extends Web3ModalThemeData> } /// @nodoc -abstract class _$$_Web3ModalThemeDataCopyWith<$Res> +abstract class _$$Web3ModalThemeDataImplCopyWith<$Res> implements $Web3ModalThemeDataCopyWith<$Res> { - factory _$$_Web3ModalThemeDataCopyWith(_$_Web3ModalThemeData value, - $Res Function(_$_Web3ModalThemeData) then) = - __$$_Web3ModalThemeDataCopyWithImpl<$Res>; + factory _$$Web3ModalThemeDataImplCopyWith(_$Web3ModalThemeDataImpl value, + $Res Function(_$Web3ModalThemeDataImpl) then) = + __$$Web3ModalThemeDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -140,11 +140,11 @@ abstract class _$$_Web3ModalThemeDataCopyWith<$Res> } /// @nodoc -class __$$_Web3ModalThemeDataCopyWithImpl<$Res> - extends _$Web3ModalThemeDataCopyWithImpl<$Res, _$_Web3ModalThemeData> - implements _$$_Web3ModalThemeDataCopyWith<$Res> { - __$$_Web3ModalThemeDataCopyWithImpl( - _$_Web3ModalThemeData _value, $Res Function(_$_Web3ModalThemeData) _then) +class __$$Web3ModalThemeDataImplCopyWithImpl<$Res> + extends _$Web3ModalThemeDataCopyWithImpl<$Res, _$Web3ModalThemeDataImpl> + implements _$$Web3ModalThemeDataImplCopyWith<$Res> { + __$$Web3ModalThemeDataImplCopyWithImpl(_$Web3ModalThemeDataImpl _value, + $Res Function(_$Web3ModalThemeDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -155,7 +155,7 @@ class __$$_Web3ModalThemeDataCopyWithImpl<$Res> Object? textStyles = null, Object? radiuses = null, }) { - return _then(_$_Web3ModalThemeData( + return _then(_$Web3ModalThemeDataImpl( lightColors: null == lightColors ? _value.lightColors : lightColors // ignore: cast_nullable_to_non_nullable @@ -178,8 +178,8 @@ class __$$_Web3ModalThemeDataCopyWithImpl<$Res> /// @nodoc -class _$_Web3ModalThemeData implements _Web3ModalThemeData { - const _$_Web3ModalThemeData( +class _$Web3ModalThemeDataImpl implements _Web3ModalThemeData { + const _$Web3ModalThemeDataImpl( {this.lightColors = Web3ModalColors.lightMode, this.darkColors = Web3ModalColors.darkMode, this.textStyles = Web3ModalTextStyles.textStyle, @@ -207,7 +207,7 @@ class _$_Web3ModalThemeData implements _Web3ModalThemeData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Web3ModalThemeData && + other is _$Web3ModalThemeDataImpl && (identical(other.lightColors, lightColors) || other.lightColors == lightColors) && (identical(other.darkColors, darkColors) || @@ -225,8 +225,8 @@ class _$_Web3ModalThemeData implements _Web3ModalThemeData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_Web3ModalThemeDataCopyWith<_$_Web3ModalThemeData> get copyWith => - __$$_Web3ModalThemeDataCopyWithImpl<_$_Web3ModalThemeData>( + _$$Web3ModalThemeDataImplCopyWith<_$Web3ModalThemeDataImpl> get copyWith => + __$$Web3ModalThemeDataImplCopyWithImpl<_$Web3ModalThemeDataImpl>( this, _$identity); } @@ -235,7 +235,7 @@ abstract class _Web3ModalThemeData implements Web3ModalThemeData { {final Web3ModalColors lightColors, final Web3ModalColors darkColors, final Web3ModalTextStyles textStyles, - final Web3ModalRadiuses radiuses}) = _$_Web3ModalThemeData; + final Web3ModalRadiuses radiuses}) = _$Web3ModalThemeDataImpl; @override Web3ModalColors get lightColors; @@ -247,6 +247,6 @@ abstract class _Web3ModalThemeData implements Web3ModalThemeData { Web3ModalRadiuses get radiuses; @override @JsonKey(ignore: true) - _$$_Web3ModalThemeDataCopyWith<_$_Web3ModalThemeData> get copyWith => + _$$Web3ModalThemeDataImplCopyWith<_$Web3ModalThemeDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/pubspec.lock b/pubspec.lock index 2d46e8a9..5178b3ae 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,10 +5,10 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: ae92f5d747aee634b87f89d9946000c2de774be1d6ac3e58268224348cd0101a + sha256: eb376e9acf6938204f90eb3b1f00b578640d3188b4c8a8ec054f9f479af8d051 url: "https://pub.dev" source: hosted - version: "61.0.0" + version: "64.0.0" adaptive_number: dependency: transitive description: @@ -21,10 +21,10 @@ packages: dependency: transitive description: name: analyzer - sha256: ea3d8652bda62982addfd92fdc2d0214e5f82e43325104990d4f4c4a2a313562 + sha256: "69f54f967773f6c26c7dcb13e93d7ccee8b17a641689da39e878d5cf13b06893" url: "https://pub.dev" source: hosted - version: "5.13.0" + version: "6.2.0" appcheck: dependency: "direct main" description: @@ -93,18 +93,18 @@ packages: dependency: transitive description: name: build_daemon - sha256: "5f02d73eb2ba16483e693f80bee4f088563a820e47d1027d4cdfe62b5bb43e65" + sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1" url: "https://pub.dev" source: hosted - version: "4.0.0" + version: "4.0.1" build_resolvers: dependency: transitive description: name: build_resolvers - sha256: a7417cc44d9edb3f2c8760000270c99dba8c72ff66d0146772b8326565780745 + sha256: "64e12b0521812d1684b1917bc80945625391cb9bdd4312536b1d69dcb6133ed8" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.4.1" build_runner: dependency: "direct dev" description: @@ -117,10 +117,10 @@ packages: dependency: transitive description: name: build_runner_core - sha256: "6d6ee4276b1c5f34f21fdf39425202712d2be82019983d52f351c94aafbc2c41" + sha256: c9e32d21dd6626b5c163d48b037ce906bbe428bc23ab77bcd77bb21e593b6185 url: "https://pub.dev" source: hosted - version: "7.2.10" + version: "7.2.11" built_collection: dependency: transitive description: @@ -133,10 +133,10 @@ packages: dependency: transitive description: name: built_value - sha256: ff627b645b28fb8bdb69e645f910c2458fd6b65f6585c3a53e0626024897dedf + sha256: "723b4021e903217dfc445ec4cf5b42e27975aece1fc4ebbc1ca6329c2d9fb54e" url: "https://pub.dev" source: hosted - version: "8.6.2" + version: "8.7.0" cached_network_image: dependency: "direct main" description: @@ -189,18 +189,18 @@ packages: dependency: transitive description: name: code_builder - sha256: "315a598c7fbe77f22de1c9da7cfd6fd21816312f16ffa124453b4fc679e540f1" + sha256: "1be9be30396d7e4c0db42c35ea6ccd7cc6a1e19916b5dc64d6ac216b5544d677" url: "https://pub.dev" source: hosted - version: "4.6.0" + version: "4.7.0" collection: dependency: "direct main" description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.18.0" convert: dependency: transitive description: @@ -221,10 +221,10 @@ packages: dependency: transitive description: name: cryptography - sha256: df156c5109286340817d21fa7b62f9140f17915077127dd70f8bd7a2a0997a35 + sha256: d146b76d33d94548cf035233fbc2f4338c1242fa119013bead807d033fc4ae05 url: "https://pub.dev" source: hosted - version: "2.5.0" + version: "2.7.0" cupertino_icons: dependency: "direct main" description: @@ -245,10 +245,10 @@ packages: dependency: transitive description: name: dart_style - sha256: "1efa911ca7086affd35f463ca2fc1799584fb6aa89883cf0af8e3664d6a02d55" + sha256: abd7625e16f51f554ea244d090292945ec4d4be7bfbaf2ec8cccea568919d334 url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.3.3" ed25519_edwards: dependency: transitive description: @@ -301,10 +301,10 @@ packages: dependency: transitive description: name: file - sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" url: "https://pub.dev" source: hosted - version: "6.1.4" + version: "7.0.0" fixnum: dependency: transitive description: @@ -330,10 +330,10 @@ packages: dependency: "direct main" description: name: flutter_svg - sha256: "8c5d68a82add3ca76d792f058b186a0599414f279f00ece4830b9b231b570338" + sha256: d39e7f95621fc84376bc0f7d504f05c3a41488c562f4a8ad410569127507402c url: "https://pub.dev" source: hosted - version: "2.0.7" + version: "2.0.9" flutter_test: dependency: "direct dev" description: flutter @@ -348,10 +348,10 @@ packages: dependency: "direct dev" description: name: freezed - sha256: "2df89855fe181baae3b6d714dc3c4317acf4fccd495a6f36e5e00f24144c6c3b" + sha256: "21bf2825311de65501d22e563e3d7605dff57fb5e6da982db785ae5372ff018a" url: "https://pub.dev" source: hosted - version: "2.4.1" + version: "2.4.5" freezed_annotation: dependency: "direct main" description: @@ -492,10 +492,10 @@ packages: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" mime: dependency: transitive description: @@ -508,10 +508,10 @@ packages: dependency: "direct main" description: name: mockito - sha256: "7d5b53bcd556c1bc7ffbe4e4d5a19c3e112b7e925e9e172dd7c6ad0630812616" + sha256: "4b693867cee1853c9d1d7ecc1871f27f39b2ef2c13c0d8d8507dfe5bebd8aaf1" url: "https://pub.dev" source: hosted - version: "5.4.2" + version: "5.4.3" network_image_mock: dependency: "direct dev" description: @@ -580,10 +580,10 @@ packages: dependency: transitive description: name: path_provider_android - sha256: "6b8b19bd80da4f11ce91b2d1fb931f3006911477cec227cce23d3253d80df3f1" + sha256: e595b98692943b4881b219f0a9e3945118d3c16bd7e2813f98ec6e532d905f72 url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.2.1" path_provider_foundation: dependency: transitive description: @@ -620,18 +620,18 @@ packages: dependency: transitive description: name: petitparser - sha256: cb3798bef7fc021ac45b308f4b51208a152792445cce0448c9a4ba5879dd8750 + sha256: eeb2d1428ee7f4170e2bd498827296a18d4e7fc462b71727d111c0ac7707cfa6 url: "https://pub.dev" source: hosted - version: "5.4.0" + version: "6.0.1" platform: dependency: transitive description: name: platform - sha256: ae68c7bfcd7383af3629daafb32fb4e8681c7154428da4febcff06200585f102 + sha256: "0a279f0707af40c890e80b1e9df8bb761694c074ba7e1d4ab1bc4b728e200b59" url: "https://pub.dev" source: hosted - version: "3.1.2" + version: "3.1.3" plugin_platform_interface: dependency: transitive description: @@ -708,10 +708,10 @@ packages: dependency: "direct main" description: name: shared_preferences - sha256: b7f41bad7e521d205998772545de63ff4e6c97714775902c199353f8bf1511ac + sha256: "81429e4481e1ccfb51ede496e916348668fd0921627779233bd24cc3ff6abd02" url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.2.2" shared_preferences_android: dependency: transitive description: @@ -732,10 +732,10 @@ packages: dependency: transitive description: name: shared_preferences_linux - sha256: c2eb5bf57a2fe9ad6988121609e47d3e07bb3bdca5b6f8444e4cf302428a128a + sha256: "9f2cbcf46d4270ea8be39fa156d86379077c8a5228d9dfdb1164ae0bb93f1faa" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.2" shared_preferences_platform_interface: dependency: transitive description: @@ -756,10 +756,10 @@ packages: dependency: transitive description: name: shared_preferences_windows - sha256: f763a101313bd3be87edffe0560037500967de9c394a714cd598d945517f694f + sha256: "841ad54f3c8381c480d0c9b508b89a34036f512482c407e6df7a9c4aa2ef8f59" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.2" shelf: dependency: transitive description: @@ -825,26 +825,26 @@ packages: dependency: transitive description: name: sqflite_common - sha256: "1b92f368f44b0dee2425bb861cfa17b6f6cf3961f762ff6f941d20b33355660a" + sha256: bb4738f15b23352822f4c42a531677e5c6f522e079461fd240ead29d8d8a54a6 url: "https://pub.dev" source: hosted - version: "2.5.0" + version: "2.5.0+2" stack_trace: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" stream_transform: dependency: transitive description: @@ -881,10 +881,10 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.6.1" timing: dependency: transitive description: @@ -913,66 +913,66 @@ packages: dependency: "direct main" description: name: url_launcher - sha256: "47e208a6711459d813ba18af120d9663c20bdf6985d6ad39fe165d2538378d27" + sha256: b1c9e98774adf8820c96fbc7ae3601231d324a7d5ebd8babe27b6dfac91357ba url: "https://pub.dev" source: hosted - version: "6.1.14" + version: "6.2.1" url_launcher_android: dependency: transitive description: name: url_launcher_android - sha256: b04af59516ab45762b2ca6da40fa830d72d0f6045cd97744450b73493fa76330 + sha256: "31222ffb0063171b526d3e569079cf1f8b294075ba323443fdc690842bfd4def" url: "https://pub.dev" source: hosted - version: "6.1.0" + version: "6.2.0" url_launcher_ios: dependency: transitive description: name: url_launcher_ios - sha256: "7c65021d5dee51813d652357bc65b8dd4a6177082a9966bc8ba6ee477baa795f" + sha256: "4ac97281cf60e2e8c5cc703b2b28528f9b50c8f7cebc71df6bdf0845f647268a" url: "https://pub.dev" source: hosted - version: "6.1.5" + version: "6.2.0" url_launcher_linux: dependency: transitive description: name: url_launcher_linux - sha256: b651aad005e0cb06a01dbd84b428a301916dc75f0e7ea6165f80057fee2d8e8e + sha256: "9f2d390e096fdbe1e6e6256f97851e51afc2d9c423d3432f1d6a02a8a9a8b9fd" url: "https://pub.dev" source: hosted - version: "3.0.6" + version: "3.1.0" url_launcher_macos: dependency: transitive description: name: url_launcher_macos - sha256: b55486791f666e62e0e8ff825e58a023fd6b1f71c49926483f1128d3bbd8fe88 + sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234 url: "https://pub.dev" source: hosted - version: "3.0.7" + version: "3.1.0" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface - sha256: "95465b39f83bfe95fcb9d174829d6476216f2d548b79c38ab2506e0458787618" + sha256: "980e8d9af422f477be6948bdfb68df8433be71f5743a188968b0c1b887807e50" url: "https://pub.dev" source: hosted - version: "2.1.5" + version: "2.2.0" url_launcher_web: dependency: transitive description: name: url_launcher_web - sha256: ba140138558fcc3eead51a1c42e92a9fb074a1b1149ed3c73e66035b2ccd94f2 + sha256: "7fd2f55fe86cea2897b963e864dc01a7eb0719ecc65fcef4c1cc3d686d718bb2" url: "https://pub.dev" source: hosted - version: "2.0.19" + version: "2.2.0" url_launcher_windows: dependency: transitive description: name: url_launcher_windows - sha256: "95fef3129dc7cfaba2bc3d5ba2e16063bb561fc6d78e63eee16162bc70029069" + sha256: "7754a1ad30ee896b265f8d14078b0513a4dba28d358eabb9d5f339886f4a1adc" url: "https://pub.dev" source: hosted - version: "3.0.8" + version: "3.1.0" uuid: dependency: transitive description: @@ -985,26 +985,26 @@ packages: dependency: transitive description: name: vector_graphics - sha256: "670f6e07aca990b4a2bcdc08a784193c4ccdd1932620244c3a86bb72a0eac67f" + sha256: "0f0c746dd2d6254a0057218ff980fc7f5670fd0fcf5e4db38a490d31eed4ad43" url: "https://pub.dev" source: hosted - version: "1.1.7" + version: "1.1.9+1" vector_graphics_codec: dependency: transitive description: name: vector_graphics_codec - sha256: "7451721781d967db9933b63f5733b1c4533022c0ba373a01bdd79d1a5457f69f" + sha256: "0edf6d630d1bfd5589114138ed8fada3234deacc37966bec033d3047c29248b7" url: "https://pub.dev" source: hosted - version: "1.1.7" + version: "1.1.9+1" vector_graphics_compiler: dependency: transitive description: name: vector_graphics_compiler - sha256: "80a13c613c8bde758b1464a1755a7b3a8f2b6cec61fbf0f5a53c94c30f03ba2e" + sha256: d24333727332d9bd20990f1483af4e09abdb9b1fc7c3db940b56ab5c42790c26 url: "https://pub.dev" source: hosted - version: "1.1.7" + version: "1.1.9+1" vector_math: dependency: transitive description: @@ -1041,10 +1041,10 @@ packages: dependency: transitive description: name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 url: "https://pub.dev" source: hosted - version: "0.1.4-beta" + version: "0.3.0" web3dart: dependency: "direct main" description: @@ -1065,10 +1065,10 @@ packages: dependency: transitive description: name: win32 - sha256: "9e82a402b7f3d518fb9c02d0e9ae45952df31b9bf34d77baf19da2de03fc2aaa" + sha256: "7c99c0e1e2fa190b48d25c81ca5e42036d5cac81430ef249027d97b0935c553f" url: "https://pub.dev" source: hosted - version: "5.0.7" + version: "5.1.0" x25519: dependency: transitive description: @@ -1089,10 +1089,10 @@ packages: dependency: transitive description: name: xml - sha256: "5bc72e1e45e941d825fd7468b9b4cc3b9327942649aeb6fc5cdbf135f0a86e84" + sha256: af5e77e9b83f2f4adc5d3f0a4ece1c7f45a2467b695c2540381bac793e34e556 url: "https://pub.dev" source: hosted - version: "6.3.0" + version: "6.4.2" yaml: dependency: transitive description: @@ -1102,5 +1102,5 @@ packages: source: hosted version: "3.1.2" sdks: - dart: ">=3.1.0-185.0.dev <4.0.0" - flutter: ">=3.10.0" + dart: ">=3.2.0-194.0.dev <4.0.0" + flutter: ">=3.13.0" diff --git a/pubspec.yaml b/pubspec.yaml index 06a28f8d..1b60caf9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -9,6 +9,7 @@ environment: dependencies: appcheck: ^1.0.6 cached_network_image: ^3.3.0 + # TODO replace this with fast_cached_network_image: ^1.2.0 collection: ^1.17.2 cupertino_icons: ^1.0.2 custom_sliding_segmented_control: ^1.8.1 diff --git a/test/mock_classes.mocks.dart b/test/mock_classes.mocks.dart index df37efea..89171d7c 100644 --- a/test/mock_classes.mocks.dart +++ b/test/mock_classes.mocks.dart @@ -1,25 +1,26 @@ -// Mocks generated by Mockito 5.4.2 from annotations +// Mocks generated by Mockito 5.4.3 from annotations // in web3modal_flutter/test/mock_classes.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i15; -import 'dart:convert' as _i30; -import 'dart:typed_data' as _i31; -import 'dart:ui' as _i21; +import 'dart:async' as _i16; +import 'dart:convert' as _i31; +import 'dart:typed_data' as _i32; +import 'dart:ui' as _i22; 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:mockito/mockito.dart' as _i1; -import 'package:url_launcher/url_launcher.dart' as _i23; +import 'package:mockito/src/dummies.dart' as _i14; +import 'package:url_launcher/url_launcher.dart' as _i24; import 'package:walletconnect_flutter_v2/apis/core/relay_client/i_message_tracker.dart' as _i8; import 'package:walletconnect_flutter_v2/apis/core/relay_client/json_rpc_2/src/peer.dart' - as _i29; + as _i30; import 'package:walletconnect_flutter_v2/apis/core/relay_client/relay_client.dart' - as _i28; + as _i29; import 'package:walletconnect_flutter_v2/apis/core/relay_client/websocket/i_websocket_handler.dart' as _i9; import 'package:walletconnect_flutter_v2/apis/core/store/i_generic_store.dart' @@ -27,40 +28,42 @@ import 'package:walletconnect_flutter_v2/apis/core/store/i_generic_store.dart' import 'package:walletconnect_flutter_v2/apis/core/store/i_store.dart' as _i7; import 'package:walletconnect_flutter_v2/apis/sign_api/i_sessions.dart' as _i6; import 'package:walletconnect_flutter_v2/walletconnect_flutter_v2.dart' as _i4; -import 'package:web3modal_flutter/models/grid_item.dart' as _i33; -import 'package:web3modal_flutter/models/w3m_chain_info.dart' as _i20; -import 'package:web3modal_flutter/models/w3m_wallet_info.dart' as _i14; +import 'package:web3modal_flutter/models/grid_item.dart' as _i34; +import 'package:web3modal_flutter/models/w3m_chain_info.dart' as _i21; +import 'package:web3modal_flutter/models/w3m_wallet_info.dart' as _i15; import 'package:web3modal_flutter/services/blockchain_api_service/blockchain_api_utils.dart' - as _i34; + as _i35; import 'package:web3modal_flutter/services/blockchain_api_service/blockchain_identity.dart' as _i11; import 'package:web3modal_flutter/services/explorer_service/explorer_service.dart' as _i13; import 'package:web3modal_flutter/services/explorer_service/models/api_response.dart' - as _i17; + as _i18; import 'package:web3modal_flutter/services/explorer_service/models/redirect.dart' - as _i16; + as _i17; import 'package:web3modal_flutter/services/ledger_service/ledger_service.dart' - as _i35; + as _i36; import 'package:web3modal_flutter/services/network_service/network_service.dart' - as _i32; + as _i33; import 'package:web3modal_flutter/services/storage_service/storage_service.dart' - as _i36; + as _i37; import 'package:web3modal_flutter/services/w3m_service/i_w3m_service.dart' - as _i19; -import 'package:web3modal_flutter/utils/platform/i_platform_utils.dart' as _i24; -import 'package:web3modal_flutter/utils/platform/platform_utils.dart' as _i25; -import 'package:web3modal_flutter/utils/toast/toast_message.dart' as _i27; -import 'package:web3modal_flutter/utils/toast/toast_utils.dart' as _i26; -import 'package:web3modal_flutter/utils/url/url_utils.dart' as _i22; -import 'package:web3modal_flutter/web3modal_flutter.dart' as _i18; + as _i20; +import 'package:web3modal_flutter/utils/platform/i_platform_utils.dart' as _i25; +import 'package:web3modal_flutter/utils/platform/platform_utils.dart' as _i26; +import 'package:web3modal_flutter/utils/toast/toast_message.dart' as _i28; +import 'package:web3modal_flutter/utils/toast/toast_utils.dart' as _i27; +import 'package:web3modal_flutter/utils/url/url_utils.dart' as _i23; +import 'package:web3modal_flutter/web3modal_flutter.dart' as _i19; import 'package:web3modal_flutter/widgets/widget_stack/widget_stack.dart' - as _i37; + as _i38; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors @@ -283,8 +286,12 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { @override String get projectId => (super.noSuchMethod( Invocation.getter(#projectId), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#projectId), + ), ) as String); + @override _i2.ValueNotifier get initialized => (super.noSuchMethod( Invocation.getter(#initialized), @@ -293,6 +300,7 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { Invocation.getter(#initialized), ), ) as _i2.ValueNotifier); + @override set initialized(_i2.ValueNotifier? _initialized) => super.noSuchMethod( Invocation.setter( @@ -301,6 +309,7 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { ), returnValueForMissingStub: null, ); + @override _i2.ValueNotifier get totalListings => (super.noSuchMethod( Invocation.getter(#totalListings), @@ -309,6 +318,7 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { Invocation.getter(#totalListings), ), ) as _i2.ValueNotifier); + @override set totalListings(_i2.ValueNotifier? _totalListings) => super.noSuchMethod( @@ -318,17 +328,19 @@ 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, @@ -336,6 +348,7 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { ), returnValueForMissingStub: null, ); + @override _i2.ValueNotifier get isSearching => (super.noSuchMethod( Invocation.getter(#isSearching), @@ -344,6 +357,7 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { Invocation.getter(#isSearching), ), ) as _i2.ValueNotifier); + @override set isSearching(_i2.ValueNotifier? _isSearching) => super.noSuchMethod( Invocation.setter( @@ -352,6 +366,7 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { ), returnValueForMissingStub: null, ); + @override set featuredWalletIds(Set? _featuredWalletIds) => super.noSuchMethod( Invocation.setter( @@ -360,6 +375,7 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { ), returnValueForMissingStub: null, ); + @override set includedWalletIds(Set? _includedWalletIds) => super.noSuchMethod( Invocation.setter( @@ -368,6 +384,7 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { ), returnValueForMissingStub: null, ); + @override set excludedWalletIds(Set? _excludedWalletIds) => super.noSuchMethod( Invocation.setter( @@ -376,44 +393,53 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { ), returnValueForMissingStub: null, ); + @override String get searchValue => (super.noSuchMethod( Invocation.getter(#searchValue), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#searchValue), + ), ) as String); + @override bool get canPaginate => (super.noSuchMethod( Invocation.getter(#canPaginate), returnValue: false, ) as bool); + @override - _i15.Future init() => (super.noSuchMethod( + _i16.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future paginate() => (super.noSuchMethod( + _i16.Future paginate() => (super.noSuchMethod( Invocation.method( #paginate, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future storeConnectedWalletData(_i14.W3MWalletInfo? walletInfo) => + _i16.Future storeConnectedWalletData(_i15.W3MWalletInfo? walletInfo) => (super.noSuchMethod( Invocation.method( #storeConnectedWalletData, [walletInfo], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override void search({String? query}) => super.noSuchMethod( Invocation.method( @@ -423,43 +449,59 @@ class MockExplorerService extends _i1.Mock implements _i13.ExplorerService { ), returnValueForMissingStub: null, ); + @override String getWalletImageUrl(String? imageId) => (super.noSuchMethod( Invocation.method( #getWalletImageUrl, [imageId], ), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.method( + #getWalletImageUrl, + [imageId], + ), + ), ) as String); + @override String getAssetImageUrl(String? imageId) => (super.noSuchMethod( Invocation.method( #getAssetImageUrl, [imageId], ), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.method( + #getAssetImageUrl, + [imageId], + ), + ), ) as String); + @override - _i16.WalletRedirect? getWalletRedirect(_i17.Listing? listing) => + _i17.WalletRedirect? getWalletRedirect(_i18.Listing? listing) => (super.noSuchMethod(Invocation.method( #getWalletRedirect, [listing], - )) as _i16.WalletRedirect?); + )) as _i17.WalletRedirect?); + @override - _i15.Future<_i16.WalletRedirect?> tryWalletRedirectByName(String? name) => + _i16.Future<_i17.WalletRedirect?> tryWalletRedirectByName(String? name) => (super.noSuchMethod( Invocation.method( #tryWalletRedirectByName, [name], ), - returnValue: _i15.Future<_i16.WalletRedirect?>.value(), - ) as _i15.Future<_i16.WalletRedirect?>); + returnValue: _i16.Future<_i17.WalletRedirect?>.value(), + ) as _i16.Future<_i17.WalletRedirect?>); } /// A class which mocks [W3MService]. /// /// See the documentation for Mockito's code generation for more information. -class MockW3MService extends _i1.Mock implements _i18.W3MService { +class MockW3MService extends _i1.Mock implements _i19.W3MService { MockW3MService() { _i1.throwOnMissingStub(this); } @@ -473,6 +515,7 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { ), returnValueForMissingStub: null, ); + @override _i3.Event<_i3.EventArgs> get onPairingExpire => (super.noSuchMethod( Invocation.getter(#onPairingExpire), @@ -481,52 +524,60 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { Invocation.getter(#onPairingExpire), ), ) as _i3.Event<_i3.EventArgs>); + @override - _i3.Event<_i19.WalletErrorEvent> get onWalletConnectionError => + _i3.Event<_i20.WalletErrorEvent> get onWalletConnectionError => (super.noSuchMethod( Invocation.getter(#onWalletConnectionError), - returnValue: _FakeEvent_1<_i19.WalletErrorEvent>( + returnValue: _FakeEvent_1<_i20.WalletErrorEvent>( this, Invocation.getter(#onWalletConnectionError), ), - ) as _i3.Event<_i19.WalletErrorEvent>); + ) as _i3.Event<_i20.WalletErrorEvent>); + @override - _i19.W3MServiceStatus get status => (super.noSuchMethod( + _i20.W3MServiceStatus get status => (super.noSuchMethod( Invocation.getter(#status), - returnValue: _i19.W3MServiceStatus.idle, - ) as _i19.W3MServiceStatus); + returnValue: _i20.W3MServiceStatus.idle, + ) as _i20.W3MServiceStatus); + @override bool get hasNamespaces => (super.noSuchMethod( Invocation.getter(#hasNamespaces), returnValue: false, ) as bool); + @override bool get isOpen => (super.noSuchMethod( Invocation.getter(#isOpen), returnValue: false, ) as bool); + @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), returnValue: false, ) as bool); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override - _i15.Future init() => (super.noSuchMethod( + _i16.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future selectChain( - _i20.W3MChainInfo? chainInfo, { + _i16.Future selectChain( + _i21.W3MChainInfo? chainInfo, { bool? switchChain = false, }) => (super.noSuchMethod( @@ -535,11 +586,12 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { [chainInfo], {#switchChain: switchChain}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future openModal( + _i16.Future openModal( _i12.BuildContext? context, [ _i12.Widget? startWidget, ]) => @@ -551,75 +603,89 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { startWidget, ], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future expirePreviousInactivePairings() => (super.noSuchMethod( + _i16.Future expirePreviousInactivePairings() => (super.noSuchMethod( Invocation.method( #expirePreviousInactivePairings, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future connectSelectedWallet({bool? inBrowser = false}) => + _i16.Future connectSelectedWallet({bool? inBrowser = false}) => (super.noSuchMethod( Invocation.method( #connectSelectedWallet, [], {#inBrowser: inBrowser}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future buildConnectionUri() => (super.noSuchMethod( + _i16.Future buildConnectionUri() => (super.noSuchMethod( Invocation.method( #buildConnectionUri, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future launchConnectedWallet() => (super.noSuchMethod( + _i16.Future launchConnectedWallet() => (super.noSuchMethod( Invocation.method( #launchConnectedWallet, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override String getReferer() => (super.noSuchMethod( Invocation.method( #getReferer, [], ), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.method( + #getReferer, + [], + ), + ), ) as String); + @override - _i15.Future reconnectRelay() => (super.noSuchMethod( + _i16.Future reconnectRelay() => (super.noSuchMethod( Invocation.method( #reconnectRelay, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future disconnect({bool? disconnectAllSessions = true}) => + _i16.Future disconnect({bool? disconnectAllSessions = true}) => (super.noSuchMethod( Invocation.method( #disconnect, [], {#disconnectAllSessions: disconnectAllSessions}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override void closeModal() => super.noSuchMethod( Invocation.method( @@ -628,14 +694,16 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { ), returnValueForMissingStub: null, ); + @override - void selectWallet(_i14.W3MWalletInfo? walletInfo) => super.noSuchMethod( + void selectWallet(_i15.W3MWalletInfo? walletInfo) => super.noSuchMethod( Invocation.method( #selectWallet, [walletInfo], ), returnValueForMissingStub: null, ); + @override void launchBlockExplorer() => super.noSuchMethod( Invocation.method( @@ -644,6 +712,7 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -652,31 +721,35 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { ), returnValueForMissingStub: null, ); + @override - _i15.Future<_i16.WalletRedirect?> sessionWalletRedirect() => + _i16.Future<_i17.WalletRedirect?> sessionWalletRedirect() => (super.noSuchMethod( Invocation.method( #sessionWalletRedirect, [], ), - returnValue: _i15.Future<_i16.WalletRedirect?>.value(), - ) as _i15.Future<_i16.WalletRedirect?>); + returnValue: _i16.Future<_i17.WalletRedirect?>.value(), + ) as _i16.Future<_i17.WalletRedirect?>); + @override - void addListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], ), returnValueForMissingStub: null, ); + @override - void removeListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method( @@ -690,48 +763,52 @@ class MockW3MService extends _i1.Mock implements _i18.W3MService { /// A class which mocks [UrlUtils]. /// /// See the documentation for Mockito's code generation for more information. -class MockUrlUtils extends _i1.Mock implements _i22.UrlUtils { +class MockUrlUtils extends _i1.Mock implements _i23.UrlUtils { MockUrlUtils() { _i1.throwOnMissingStub(this); } @override - _i15.Future Function(String) get androidAppCheck => (super.noSuchMethod( + _i16.Future Function(String) get androidAppCheck => (super.noSuchMethod( Invocation.getter(#androidAppCheck), - returnValue: (String uri) => _i15.Future.value(false), - ) as _i15.Future Function(String)); + returnValue: (String uri) => _i16.Future.value(false), + ) as _i16.Future Function(String)); + @override - _i15.Future Function( + _i16.Future Function( Uri, { - _i23.LaunchMode? mode, + _i24.LaunchMode? mode, }) get launchUrlFunc => (super.noSuchMethod( Invocation.getter(#launchUrlFunc), returnValue: ( Uri url, { - _i23.LaunchMode? mode, + _i24.LaunchMode? mode, }) => - _i15.Future.value(false), - ) as _i15.Future Function( + _i16.Future.value(false), + ) as _i16.Future Function( Uri, { - _i23.LaunchMode? mode, + _i24.LaunchMode? mode, })); + @override - _i15.Future Function(Uri) get canLaunchUrlFunc => (super.noSuchMethod( + _i16.Future Function(Uri) get canLaunchUrlFunc => (super.noSuchMethod( Invocation.getter(#canLaunchUrlFunc), - returnValue: (Uri url) => _i15.Future.value(false), - ) as _i15.Future Function(Uri)); + returnValue: (Uri url) => _i16.Future.value(false), + ) as _i16.Future Function(Uri)); + @override - _i15.Future isInstalled(String? uri) => (super.noSuchMethod( + _i16.Future isInstalled(String? uri) => (super.noSuchMethod( Invocation.method( #isInstalled, [uri], ), - returnValue: _i15.Future.value(false), - ) as _i15.Future); + returnValue: _i16.Future.value(false), + ) as _i16.Future); + @override - _i15.Future launchUrl( + _i16.Future launchUrl( Uri? url, { - _i23.LaunchMode? mode, + _i24.LaunchMode? mode, }) => (super.noSuchMethod( Invocation.method( @@ -739,13 +816,14 @@ class MockUrlUtils extends _i1.Mock implements _i22.UrlUtils { [url], {#mode: mode}, ), - returnValue: _i15.Future.value(false), - ) as _i15.Future); + returnValue: _i16.Future.value(false), + ) as _i16.Future); + @override - _i15.Future openRedirect( - _i16.WalletRedirect? redirect, { + _i16.Future openRedirect( + _i17.WalletRedirect? redirect, { String? wcURI, - _i24.PlatformType? pType, + _i25.PlatformType? pType, }) => (super.noSuchMethod( Invocation.method( @@ -756,35 +834,37 @@ class MockUrlUtils extends _i1.Mock implements _i22.UrlUtils { #pType: pType, }, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); } /// A class which mocks [PlatformUtils]. /// /// See the documentation for Mockito's code generation for more information. -class MockPlatformUtils extends _i1.Mock implements _i25.PlatformUtils { +class MockPlatformUtils extends _i1.Mock implements _i26.PlatformUtils { MockPlatformUtils() { _i1.throwOnMissingStub(this); } @override - _i24.PlatformExact getPlatformExact() => (super.noSuchMethod( + _i25.PlatformExact getPlatformExact() => (super.noSuchMethod( Invocation.method( #getPlatformExact, [], ), - returnValue: _i24.PlatformExact.iOS, - ) as _i24.PlatformExact); + returnValue: _i25.PlatformExact.iOS, + ) as _i25.PlatformExact); + @override - _i24.PlatformType getPlatformType() => (super.noSuchMethod( + _i25.PlatformType getPlatformType() => (super.noSuchMethod( Invocation.method( #getPlatformType, [], ), - returnValue: _i24.PlatformType.mobile, - ) as _i24.PlatformType); + returnValue: _i25.PlatformType.mobile, + ) as _i25.PlatformType); + @override bool canDetectInstalledApps() => (super.noSuchMethod( Invocation.method( @@ -793,6 +873,7 @@ class MockPlatformUtils extends _i1.Mock implements _i25.PlatformUtils { ), returnValue: false, ) as bool); + @override bool isBottomSheet() => (super.noSuchMethod( Invocation.method( @@ -801,6 +882,7 @@ class MockPlatformUtils extends _i1.Mock implements _i25.PlatformUtils { ), returnValue: false, ) as bool); + @override bool isLongBottomSheet(_i12.Orientation? orientation) => (super.noSuchMethod( Invocation.method( @@ -809,6 +891,7 @@ class MockPlatformUtils extends _i1.Mock implements _i25.PlatformUtils { ), returnValue: false, ) as bool); + @override bool isMobileWidth(double? width) => (super.noSuchMethod( Invocation.method( @@ -822,24 +905,26 @@ class MockPlatformUtils extends _i1.Mock implements _i25.PlatformUtils { /// A class which mocks [ToastUtils]. /// /// See the documentation for Mockito's code generation for more information. -class MockToastUtils extends _i1.Mock implements _i26.ToastUtils { +class MockToastUtils extends _i1.Mock implements _i27.ToastUtils { MockToastUtils() { _i1.throwOnMissingStub(this); } @override - _i15.Stream<_i27.ToastMessage?> get toasts => (super.noSuchMethod( + _i16.Stream<_i28.ToastMessage?> get toasts => (super.noSuchMethod( Invocation.getter(#toasts), - returnValue: _i15.Stream<_i27.ToastMessage?>.empty(), - ) as _i15.Stream<_i27.ToastMessage?>); + returnValue: _i16.Stream<_i28.ToastMessage?>.empty(), + ) as _i16.Stream<_i28.ToastMessage?>); + @override - void show(_i27.ToastMessage? message) => super.noSuchMethod( + void show(_i28.ToastMessage? message) => super.noSuchMethod( Invocation.method( #show, [message], ), returnValueForMissingStub: null, ); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -861,13 +946,18 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { @override String get protocol => (super.noSuchMethod( Invocation.getter(#protocol), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#protocol), + ), ) as String); + @override int get version => (super.noSuchMethod( Invocation.getter(#version), returnValue: 0, ) as int); + @override _i4.ICore get core => (super.noSuchMethod( Invocation.getter(#core), @@ -876,6 +966,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#core), ), ) as _i4.ICore); + @override _i4.PairingMetadata get metadata => (super.noSuchMethod( Invocation.getter(#metadata), @@ -884,6 +975,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#metadata), ), ) as _i4.PairingMetadata); + @override _i4.ISignEngine get signEngine => (super.noSuchMethod( Invocation.getter(#signEngine), @@ -892,6 +984,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#signEngine), ), ) as _i4.ISignEngine); + @override set signEngine(_i4.ISignEngine? _signEngine) => super.noSuchMethod( Invocation.setter( @@ -900,6 +993,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { ), returnValueForMissingStub: null, ); + @override _i4.IAuthEngine get authEngine => (super.noSuchMethod( Invocation.getter(#authEngine), @@ -908,6 +1002,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#authEngine), ), ) as _i4.IAuthEngine); + @override set authEngine(_i4.IAuthEngine? _authEngine) => super.noSuchMethod( Invocation.setter( @@ -916,6 +1011,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { ), returnValueForMissingStub: null, ); + @override _i3.Event<_i4.SessionConnect> get onSessionConnect => (super.noSuchMethod( Invocation.getter(#onSessionConnect), @@ -924,6 +1020,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#onSessionConnect), ), ) as _i3.Event<_i4.SessionConnect>); + @override _i3.Event<_i4.SessionEvent> get onSessionEvent => (super.noSuchMethod( Invocation.getter(#onSessionEvent), @@ -932,6 +1029,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#onSessionEvent), ), ) as _i3.Event<_i4.SessionEvent>); + @override _i3.Event<_i4.SessionExpire> get onSessionExpire => (super.noSuchMethod( Invocation.getter(#onSessionExpire), @@ -940,6 +1038,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#onSessionExpire), ), ) as _i3.Event<_i4.SessionExpire>); + @override _i3.Event<_i4.SessionProposalEvent> get onProposalExpire => (super.noSuchMethod( @@ -949,6 +1048,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#onProposalExpire), ), ) as _i3.Event<_i4.SessionProposalEvent>); + @override _i3.Event<_i4.SessionExtend> get onSessionExtend => (super.noSuchMethod( Invocation.getter(#onSessionExtend), @@ -957,6 +1057,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#onSessionExtend), ), ) as _i3.Event<_i4.SessionExtend>); + @override _i3.Event<_i4.SessionPing> get onSessionPing => (super.noSuchMethod( Invocation.getter(#onSessionPing), @@ -965,6 +1066,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#onSessionPing), ), ) as _i3.Event<_i4.SessionPing>); + @override _i3.Event<_i4.SessionUpdate> get onSessionUpdate => (super.noSuchMethod( Invocation.getter(#onSessionUpdate), @@ -973,6 +1075,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#onSessionUpdate), ), ) as _i3.Event<_i4.SessionUpdate>); + @override _i3.Event<_i4.SessionDelete> get onSessionDelete => (super.noSuchMethod( Invocation.getter(#onSessionDelete), @@ -981,6 +1084,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#onSessionDelete), ), ) as _i3.Event<_i4.SessionDelete>); + @override _i5.IGenericStore<_i4.ProposalData> get proposals => (super.noSuchMethod( Invocation.getter(#proposals), @@ -989,6 +1093,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#proposals), ), ) as _i5.IGenericStore<_i4.ProposalData>); + @override _i6.ISessions get sessions => (super.noSuchMethod( Invocation.getter(#sessions), @@ -997,6 +1102,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#sessions), ), ) as _i6.ISessions); + @override _i5.IGenericStore<_i4.SessionRequest> get pendingRequests => (super.noSuchMethod( @@ -1006,6 +1112,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#pendingRequests), ), ) as _i5.IGenericStore<_i4.SessionRequest>); + @override _i4.IPairingStore get pairings => (super.noSuchMethod( Invocation.getter(#pairings), @@ -1014,6 +1121,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#pairings), ), ) as _i4.IPairingStore); + @override _i3.Event<_i4.AuthResponse> get onAuthResponse => (super.noSuchMethod( Invocation.getter(#onAuthResponse), @@ -1022,6 +1130,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#onAuthResponse), ), ) as _i3.Event<_i4.AuthResponse>); + @override _i5.IGenericStore<_i4.AuthPublicKey> get authKeys => (super.noSuchMethod( Invocation.getter(#authKeys), @@ -1030,6 +1139,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#authKeys), ), ) as _i5.IGenericStore<_i4.AuthPublicKey>); + @override _i5.IGenericStore get pairingTopics => (super.noSuchMethod( Invocation.getter(#pairingTopics), @@ -1038,6 +1148,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#pairingTopics), ), ) as _i5.IGenericStore); + @override _i5.IGenericStore<_i4.StoredCacao> get completeRequests => (super.noSuchMethod( @@ -1047,17 +1158,19 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { Invocation.getter(#completeRequests), ), ) as _i5.IGenericStore<_i4.StoredCacao>); + @override - _i15.Future init() => (super.noSuchMethod( + _i16.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future<_i4.ConnectResponse> connect({ + _i16.Future<_i4.ConnectResponse> connect({ Map? requiredNamespaces, Map? optionalNamespaces, Map? sessionProperties, @@ -1085,7 +1198,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { }, ), returnValue: - _i15.Future<_i4.ConnectResponse>.value(_FakeConnectResponse_9( + _i16.Future<_i4.ConnectResponse>.value(_FakeConnectResponse_9( this, Invocation.method( #connect, @@ -1100,9 +1213,10 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { }, ), )), - ) as _i15.Future<_i4.ConnectResponse>); + ) as _i16.Future<_i4.ConnectResponse>); + @override - _i15.Future request({ + _i16.Future request({ required String? topic, required String? chainId, required _i4.SessionRequestParams? request, @@ -1117,8 +1231,9 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { #request: request, }, ), - returnValue: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + ) as _i16.Future); + @override void registerEventHandler({ required String? chainId, @@ -1140,18 +1255,20 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { ), returnValueForMissingStub: null, ); + @override - _i15.Future ping({required String? topic}) => (super.noSuchMethod( + _i16.Future ping({required String? topic}) => (super.noSuchMethod( Invocation.method( #ping, [], {#topic: topic}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future disconnectSession({ + _i16.Future disconnectSession({ required String? topic, required _i4.WalletConnectError? reason, }) => @@ -1164,9 +1281,10 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { #reason: reason, }, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override Map getActiveSessions() => (super.noSuchMethod( Invocation.method( @@ -1175,6 +1293,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { ), returnValue: {}, ) as Map); + @override Map getSessionsForPairing( {required String? pairingTopic}) => @@ -1186,6 +1305,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { ), returnValue: {}, ) as Map); + @override Map getPendingSessionProposals() => (super.noSuchMethod( @@ -1195,8 +1315,9 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { ), returnValue: {}, ) as Map); + @override - _i15.Future<_i4.AuthRequestResponse> requestAuth({ + _i16.Future<_i4.AuthRequestResponse> requestAuth({ required _i4.AuthRequestParams? params, String? pairingTopic, List>? methods = const [ @@ -1217,7 +1338,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { #methods: methods, }, ), - returnValue: _i15.Future<_i4.AuthRequestResponse>.value( + returnValue: _i16.Future<_i4.AuthRequestResponse>.value( _FakeAuthRequestResponse_10( this, Invocation.method( @@ -1230,7 +1351,8 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { }, ), )), - ) as _i15.Future<_i4.AuthRequestResponse>); + ) as _i16.Future<_i4.AuthRequestResponse>); + @override Map getCompletedRequestsForPairing( {required String? pairingTopic}) => @@ -1242,6 +1364,7 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { ), returnValue: {}, ) as Map); + @override String formatAuthMessage({ required String? iss, @@ -1256,7 +1379,17 @@ class MockWeb3App extends _i1.Mock implements _i4.Web3App { #cacaoPayload: cacaoPayload, }, ), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.method( + #formatAuthMessage, + [], + { + #iss: iss, + #cacaoPayload: cacaoPayload, + }, + ), + ), ) as String); } @@ -1271,13 +1404,21 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { @override String get context => (super.noSuchMethod( Invocation.getter(#context), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#context), + ), ) as String); + @override String get version => (super.noSuchMethod( Invocation.getter(#version), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#version), + ), ) as String); + @override _i7.IStore get storage => (super.noSuchMethod( Invocation.getter(#storage), @@ -1286,6 +1427,7 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { Invocation.getter(#storage), ), ) as _i7.IStore); + @override _i3.Event<_i4.StoreCreateEvent<_i4.SessionData>> get onCreate => (super.noSuchMethod( @@ -1295,6 +1437,7 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { Invocation.getter(#onCreate), ), ) as _i3.Event<_i4.StoreCreateEvent<_i4.SessionData>>); + @override _i3.Event<_i4.StoreUpdateEvent<_i4.SessionData>> get onUpdate => (super.noSuchMethod( @@ -1304,6 +1447,7 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { Invocation.getter(#onUpdate), ), ) as _i3.Event<_i4.StoreUpdateEvent<_i4.SessionData>>); + @override _i3.Event<_i4.StoreDeleteEvent<_i4.SessionData>> get onDelete => (super.noSuchMethod( @@ -1313,6 +1457,7 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { Invocation.getter(#onDelete), ), ) as _i3.Event<_i4.StoreDeleteEvent<_i4.SessionData>>); + @override _i3.Event<_i4.StoreSyncEvent> get onSync => (super.noSuchMethod( Invocation.getter(#onSync), @@ -1321,11 +1466,13 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { Invocation.getter(#onSync), ), ) as _i3.Event<_i4.StoreSyncEvent>); + @override Map get data => (super.noSuchMethod( Invocation.getter(#data), returnValue: {}, ) as Map); + @override set data(Map? _data) => super.noSuchMethod( Invocation.setter( @@ -1334,6 +1481,7 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { ), returnValueForMissingStub: null, ); + @override _i4.SessionData Function(dynamic) get fromJson => (super.noSuchMethod( Invocation.getter(#fromJson), @@ -1342,13 +1490,18 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { Invocation.getter(#fromJson), ), ) as _i4.SessionData Function(dynamic)); + @override String get storageKey => (super.noSuchMethod( Invocation.getter(#storageKey), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#storageKey), + ), ) as String); + @override - _i15.Future update( + _i16.Future update( String? topic, { int? expiry, Map? namespaces, @@ -1362,18 +1515,20 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { #namespaces: namespaces, }, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future init() => (super.noSuchMethod( + _i16.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override bool has(String? key) => (super.noSuchMethod( Invocation.method( @@ -1382,11 +1537,13 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { ), returnValue: false, ) as bool); + @override _i4.SessionData? get(String? key) => (super.noSuchMethod(Invocation.method( #get, [key], )) as _i4.SessionData?); + @override List<_i4.SessionData> getAll() => (super.noSuchMethod( Invocation.method( @@ -1395,8 +1552,9 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { ), returnValue: <_i4.SessionData>[], ) as List<_i4.SessionData>); + @override - _i15.Future set( + _i16.Future set( String? key, _i4.SessionData? value, ) => @@ -1408,36 +1566,40 @@ class MockSessions extends _i1.Mock implements _i4.Sessions { value, ], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future delete(String? key) => (super.noSuchMethod( + _i16.Future delete(String? key) => (super.noSuchMethod( Invocation.method( #delete, [key], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future persist() => (super.noSuchMethod( + _i16.Future persist() => (super.noSuchMethod( Invocation.method( #persist, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future restore() => (super.noSuchMethod( + _i16.Future restore() => (super.noSuchMethod( Invocation.method( #restore, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override void checkInitialized() => super.noSuchMethod( Invocation.method( @@ -1451,7 +1613,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 _i28.RelayClient { +class MockRelayClient extends _i1.Mock implements _i29.RelayClient { MockRelayClient() { _i1.throwOnMissingStub(this); } @@ -1464,6 +1626,7 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { Invocation.getter(#onRelayClientConnect), ), ) as _i3.Event<_i3.EventArgs>); + @override _i3.Event<_i3.EventArgs> get onRelayClientDisconnect => (super.noSuchMethod( Invocation.getter(#onRelayClientDisconnect), @@ -1472,6 +1635,7 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { Invocation.getter(#onRelayClientDisconnect), ), ) as _i3.Event<_i3.EventArgs>); + @override _i3.Event<_i4.ErrorEvent> get onRelayClientError => (super.noSuchMethod( Invocation.getter(#onRelayClientError), @@ -1480,6 +1644,7 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { Invocation.getter(#onRelayClientError), ), ) as _i3.Event<_i4.ErrorEvent>); + @override _i3.Event<_i4.MessageEvent> get onRelayClientMessage => (super.noSuchMethod( Invocation.getter(#onRelayClientMessage), @@ -1488,6 +1653,7 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { Invocation.getter(#onRelayClientMessage), ), ) as _i3.Event<_i4.MessageEvent>); + @override _i3.Event<_i4.SubscriptionEvent> get onSubscriptionCreated => (super.noSuchMethod( @@ -1497,6 +1663,7 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { Invocation.getter(#onSubscriptionCreated), ), ) as _i3.Event<_i4.SubscriptionEvent>); + @override _i3.Event<_i4.SubscriptionDeletionEvent> get onSubscriptionDeleted => (super.noSuchMethod( @@ -1506,6 +1673,7 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { Invocation.getter(#onSubscriptionDeleted), ), ) as _i3.Event<_i4.SubscriptionDeletionEvent>); + @override _i3.Event<_i3.EventArgs> get onSubscriptionResubscribed => (super.noSuchMethod( @@ -1515,6 +1683,7 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { Invocation.getter(#onSubscriptionResubscribed), ), ) as _i3.Event<_i3.EventArgs>); + @override _i3.Event<_i3.EventArgs> get onSubscriptionSync => (super.noSuchMethod( Invocation.getter(#onSubscriptionSync), @@ -1523,23 +1692,26 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { Invocation.getter(#onSubscriptionSync), ), ) as _i3.Event<_i3.EventArgs>); + @override - set jsonRPC(_i29.Peer? _jsonRPC) => super.noSuchMethod( + set jsonRPC(_i30.Peer? _jsonRPC) => super.noSuchMethod( Invocation.setter( #jsonRPC, _jsonRPC, ), 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, @@ -1547,6 +1719,7 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { ), returnValueForMissingStub: null, ); + @override _i8.IMessageTracker get messageTracker => (super.noSuchMethod( Invocation.getter(#messageTracker), @@ -1555,6 +1728,7 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { Invocation.getter(#messageTracker), ), ) as _i8.IMessageTracker); + @override set messageTracker(_i8.IMessageTracker? _messageTracker) => super.noSuchMethod( @@ -1564,6 +1738,7 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { ), returnValueForMissingStub: null, ); + @override _i5.IGenericStore get topicMap => (super.noSuchMethod( Invocation.getter(#topicMap), @@ -1572,6 +1747,7 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { Invocation.getter(#topicMap), ), ) as _i5.IGenericStore); + @override set topicMap(_i5.IGenericStore? _topicMap) => super.noSuchMethod( Invocation.setter( @@ -1580,6 +1756,7 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { ), returnValueForMissingStub: null, ); + @override _i9.IWebSocketHandler get socketHandler => (super.noSuchMethod( Invocation.getter(#socketHandler), @@ -1588,6 +1765,7 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { Invocation.getter(#socketHandler), ), ) as _i9.IWebSocketHandler); + @override _i4.ICore get core => (super.noSuchMethod( Invocation.getter(#core), @@ -1596,6 +1774,7 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { Invocation.getter(#core), ), ) as _i4.ICore); + @override set core(_i4.ICore? _core) => super.noSuchMethod( Invocation.setter( @@ -1604,22 +1783,25 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { ), returnValueForMissingStub: null, ); + @override bool get isConnected => (super.noSuchMethod( Invocation.getter(#isConnected), returnValue: false, ) as bool); + @override - _i15.Future init() => (super.noSuchMethod( + _i16.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future publish({ + _i16.Future publish({ required String? topic, required String? message, required int? ttl, @@ -1636,51 +1818,63 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { #tag: tag, }, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future subscribe({required String? topic}) => + _i16.Future subscribe({required String? topic}) => (super.noSuchMethod( Invocation.method( #subscribe, [], {#topic: topic}, ), - returnValue: _i15.Future.value(''), - ) as _i15.Future); + returnValue: _i16.Future.value(_i14.dummyValue( + this, + Invocation.method( + #subscribe, + [], + {#topic: topic}, + ), + )), + ) as _i16.Future); + @override - _i15.Future unsubscribe({required String? topic}) => + _i16.Future unsubscribe({required String? topic}) => (super.noSuchMethod( Invocation.method( #unsubscribe, [], {#topic: topic}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future connect({String? relayUrl}) => (super.noSuchMethod( + _i16.Future connect({String? relayUrl}) => (super.noSuchMethod( Invocation.method( #connect, [], {#relayUrl: relayUrl}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future disconnect() => (super.noSuchMethod( + _i16.Future disconnect() => (super.noSuchMethod( Invocation.method( #disconnect, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override - _i15.Future handlePublish( + _i16.Future handlePublish( String? topic, String? message, ) => @@ -1692,8 +1886,8 @@ class MockRelayClient extends _i1.Mock implements _i28.RelayClient { message, ], ), - returnValue: _i15.Future.value(false), - ) as _i15.Future); + returnValue: _i16.Future.value(false), + ) as _i16.Future); } /// A class which mocks [Client]. @@ -1705,7 +1899,7 @@ class MockClient extends _i1.Mock implements _i10.Client { } @override - _i15.Future<_i10.Response> head( + _i16.Future<_i10.Response> head( Uri? url, { Map? headers, }) => @@ -1715,7 +1909,7 @@ class MockClient extends _i1.Mock implements _i10.Client { [url], {#headers: headers}, ), - returnValue: _i15.Future<_i10.Response>.value(_FakeResponse_15( + returnValue: _i16.Future<_i10.Response>.value(_FakeResponse_15( this, Invocation.method( #head, @@ -1723,9 +1917,10 @@ class MockClient extends _i1.Mock implements _i10.Client { {#headers: headers}, ), )), - ) as _i15.Future<_i10.Response>); + ) as _i16.Future<_i10.Response>); + @override - _i15.Future<_i10.Response> get( + _i16.Future<_i10.Response> get( Uri? url, { Map? headers, }) => @@ -1735,7 +1930,7 @@ class MockClient extends _i1.Mock implements _i10.Client { [url], {#headers: headers}, ), - returnValue: _i15.Future<_i10.Response>.value(_FakeResponse_15( + returnValue: _i16.Future<_i10.Response>.value(_FakeResponse_15( this, Invocation.method( #get, @@ -1743,13 +1938,14 @@ class MockClient extends _i1.Mock implements _i10.Client { {#headers: headers}, ), )), - ) as _i15.Future<_i10.Response>); + ) as _i16.Future<_i10.Response>); + @override - _i15.Future<_i10.Response> post( + _i16.Future<_i10.Response> post( Uri? url, { Map? headers, Object? body, - _i30.Encoding? encoding, + _i31.Encoding? encoding, }) => (super.noSuchMethod( Invocation.method( @@ -1761,7 +1957,7 @@ class MockClient extends _i1.Mock implements _i10.Client { #encoding: encoding, }, ), - returnValue: _i15.Future<_i10.Response>.value(_FakeResponse_15( + returnValue: _i16.Future<_i10.Response>.value(_FakeResponse_15( this, Invocation.method( #post, @@ -1773,13 +1969,14 @@ class MockClient extends _i1.Mock implements _i10.Client { }, ), )), - ) as _i15.Future<_i10.Response>); + ) as _i16.Future<_i10.Response>); + @override - _i15.Future<_i10.Response> put( + _i16.Future<_i10.Response> put( Uri? url, { Map? headers, Object? body, - _i30.Encoding? encoding, + _i31.Encoding? encoding, }) => (super.noSuchMethod( Invocation.method( @@ -1791,7 +1988,7 @@ class MockClient extends _i1.Mock implements _i10.Client { #encoding: encoding, }, ), - returnValue: _i15.Future<_i10.Response>.value(_FakeResponse_15( + returnValue: _i16.Future<_i10.Response>.value(_FakeResponse_15( this, Invocation.method( #put, @@ -1803,13 +2000,14 @@ class MockClient extends _i1.Mock implements _i10.Client { }, ), )), - ) as _i15.Future<_i10.Response>); + ) as _i16.Future<_i10.Response>); + @override - _i15.Future<_i10.Response> patch( + _i16.Future<_i10.Response> patch( Uri? url, { Map? headers, Object? body, - _i30.Encoding? encoding, + _i31.Encoding? encoding, }) => (super.noSuchMethod( Invocation.method( @@ -1821,7 +2019,7 @@ class MockClient extends _i1.Mock implements _i10.Client { #encoding: encoding, }, ), - returnValue: _i15.Future<_i10.Response>.value(_FakeResponse_15( + returnValue: _i16.Future<_i10.Response>.value(_FakeResponse_15( this, Invocation.method( #patch, @@ -1833,13 +2031,14 @@ class MockClient extends _i1.Mock implements _i10.Client { }, ), )), - ) as _i15.Future<_i10.Response>); + ) as _i16.Future<_i10.Response>); + @override - _i15.Future<_i10.Response> delete( + _i16.Future<_i10.Response> delete( Uri? url, { Map? headers, Object? body, - _i30.Encoding? encoding, + _i31.Encoding? encoding, }) => (super.noSuchMethod( Invocation.method( @@ -1851,7 +2050,7 @@ class MockClient extends _i1.Mock implements _i10.Client { #encoding: encoding, }, ), - returnValue: _i15.Future<_i10.Response>.value(_FakeResponse_15( + returnValue: _i16.Future<_i10.Response>.value(_FakeResponse_15( this, Invocation.method( #delete, @@ -1863,9 +2062,10 @@ class MockClient extends _i1.Mock implements _i10.Client { }, ), )), - ) as _i15.Future<_i10.Response>); + ) as _i16.Future<_i10.Response>); + @override - _i15.Future read( + _i16.Future read( Uri? url, { Map? headers, }) => @@ -1875,10 +2075,18 @@ class MockClient extends _i1.Mock implements _i10.Client { [url], {#headers: headers}, ), - returnValue: _i15.Future.value(''), - ) as _i15.Future); + returnValue: _i16.Future.value(_i14.dummyValue( + this, + Invocation.method( + #read, + [url], + {#headers: headers}, + ), + )), + ) as _i16.Future); + @override - _i15.Future<_i31.Uint8List> readBytes( + _i16.Future<_i32.Uint8List> readBytes( Uri? url, { Map? headers, }) => @@ -1888,24 +2096,26 @@ class MockClient extends _i1.Mock implements _i10.Client { [url], {#headers: headers}, ), - returnValue: _i15.Future<_i31.Uint8List>.value(_i31.Uint8List(0)), - ) as _i15.Future<_i31.Uint8List>); + returnValue: _i16.Future<_i32.Uint8List>.value(_i32.Uint8List(0)), + ) as _i16.Future<_i32.Uint8List>); + @override - _i15.Future<_i10.StreamedResponse> send(_i10.BaseRequest? request) => + _i16.Future<_i10.StreamedResponse> send(_i10.BaseRequest? request) => (super.noSuchMethod( Invocation.method( #send, [request], ), returnValue: - _i15.Future<_i10.StreamedResponse>.value(_FakeStreamedResponse_16( + _i16.Future<_i10.StreamedResponse>.value(_FakeStreamedResponse_16( this, Invocation.method( #send, [request], ), )), - ) as _i15.Future<_i10.StreamedResponse>); + ) as _i16.Future<_i10.StreamedResponse>); + @override void close() => super.noSuchMethod( Invocation.method( @@ -1919,7 +2129,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 _i32.NetworkService { +class MockNetworkService extends _i1.Mock implements _i33.NetworkService { MockNetworkService() { _i1.throwOnMissingStub(this); } @@ -1932,6 +2142,7 @@ class MockNetworkService extends _i1.Mock implements _i32.NetworkService { Invocation.getter(#initialized), ), ) as _i2.ValueNotifier); + @override set initialized(_i2.ValueNotifier? _initialized) => super.noSuchMethod( Invocation.setter( @@ -1940,15 +2151,17 @@ class MockNetworkService extends _i1.Mock implements _i32.NetworkService { ), returnValueForMissingStub: null, ); + @override - List<_i33.GridItem<_i20.W3MChainInfo>> get itemListComplete => + List<_i34.GridItem<_i21.W3MChainInfo>> get itemListComplete => (super.noSuchMethod( Invocation.getter(#itemListComplete), - returnValue: <_i33.GridItem<_i20.W3MChainInfo>>[], - ) as List<_i33.GridItem<_i20.W3MChainInfo>>); + returnValue: <_i34.GridItem<_i21.W3MChainInfo>>[], + ) as List<_i34.GridItem<_i21.W3MChainInfo>>); + @override set itemListComplete( - List<_i33.GridItem<_i20.W3MChainInfo>>? _itemListComplete) => + List<_i34.GridItem<_i21.W3MChainInfo>>? _itemListComplete) => super.noSuchMethod( Invocation.setter( #itemListComplete, @@ -1956,19 +2169,21 @@ class MockNetworkService extends _i1.Mock implements _i32.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( @@ -1977,15 +2192,17 @@ class MockNetworkService extends _i1.Mock implements _i32.NetworkService { ), returnValueForMissingStub: null, ); + @override - _i15.Future init() => (super.noSuchMethod( + _i16.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override void filterList({String? query}) => super.noSuchMethod( Invocation.method( @@ -2001,7 +2218,7 @@ class MockNetworkService extends _i1.Mock implements _i32.NetworkService { /// /// See the documentation for Mockito's code generation for more information. class MockBlockchainApiUtils extends _i1.Mock - implements _i34.BlockchainApiUtils { + implements _i35.BlockchainApiUtils { MockBlockchainApiUtils() { _i1.throwOnMissingStub(this); } @@ -2009,15 +2226,23 @@ class MockBlockchainApiUtils extends _i1.Mock @override String get blockchainApiUriRoot => (super.noSuchMethod( Invocation.getter(#blockchainApiUriRoot), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#blockchainApiUriRoot), + ), ) as String); + @override String get projectId => (super.noSuchMethod( Invocation.getter(#projectId), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#projectId), + ), ) as String); + @override - _i15.Future<_i11.BlockchainIdentity> getIdentity( + _i16.Future<_i11.BlockchainIdentity> getIdentity( String? address, int? chainId, ) => @@ -2029,7 +2254,7 @@ class MockBlockchainApiUtils extends _i1.Mock chainId, ], ), - returnValue: _i15.Future<_i11.BlockchainIdentity>.value( + returnValue: _i16.Future<_i11.BlockchainIdentity>.value( _FakeBlockchainIdentity_17( this, Invocation.method( @@ -2040,19 +2265,19 @@ class MockBlockchainApiUtils extends _i1.Mock ], ), )), - ) as _i15.Future<_i11.BlockchainIdentity>); + ) as _i16.Future<_i11.BlockchainIdentity>); } /// A class which mocks [LedgerService]. /// /// See the documentation for Mockito's code generation for more information. -class MockLedgerService extends _i1.Mock implements _i35.LedgerService { +class MockLedgerService extends _i1.Mock implements _i36.LedgerService { MockLedgerService() { _i1.throwOnMissingStub(this); } @override - _i15.Future getBalance( + _i16.Future getBalance( String? rpcUrl, String? address, ) => @@ -2064,10 +2289,11 @@ class MockLedgerService extends _i1.Mock implements _i35.LedgerService { address, ], ), - returnValue: _i15.Future.value(0.0), - ) as _i15.Future); + returnValue: _i16.Future.value(0.0), + ) as _i16.Future); + @override - _i15.Future fetchEnsName( + _i16.Future fetchEnsName( String? rpcUrl, String? address, ) => @@ -2079,10 +2305,20 @@ class MockLedgerService extends _i1.Mock implements _i35.LedgerService { address, ], ), - returnValue: _i15.Future.value(''), - ) as _i15.Future); + returnValue: _i16.Future.value(_i14.dummyValue( + this, + Invocation.method( + #fetchEnsName, + [ + rpcUrl, + address, + ], + ), + )), + ) as _i16.Future); + @override - _i15.Future fetchEnsAvatar( + _i16.Future fetchEnsAvatar( String? rpcUrl, String? address, ) => @@ -2094,27 +2330,37 @@ class MockLedgerService extends _i1.Mock implements _i35.LedgerService { address, ], ), - returnValue: _i15.Future.value(''), - ) as _i15.Future); + returnValue: _i16.Future.value(_i14.dummyValue( + this, + Invocation.method( + #fetchEnsAvatar, + [ + rpcUrl, + address, + ], + ), + )), + ) as _i16.Future); } /// A class which mocks [StorageService]. /// /// See the documentation for Mockito's code generation for more information. -class MockStorageService extends _i1.Mock implements _i36.StorageService { +class MockStorageService extends _i1.Mock implements _i37.StorageService { MockStorageService() { _i1.throwOnMissingStub(this); } @override - _i15.Future init() => (super.noSuchMethod( + _i16.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i16.Future.value(), + returnValueForMissingStub: _i16.Future.value(), + ) as _i16.Future); + @override String? getString( String? key, { @@ -2125,8 +2371,9 @@ class MockStorageService extends _i1.Mock implements _i36.StorageService { [key], {#defaultValue: defaultValue}, )) as String?); + @override - _i15.Future setString( + _i16.Future setString( String? key, String? value, ) => @@ -2138,14 +2385,14 @@ class MockStorageService extends _i1.Mock implements _i36.StorageService { value, ], ), - returnValue: _i15.Future.value(false), - ) as _i15.Future); + returnValue: _i16.Future.value(false), + ) as _i16.Future); } /// A class which mocks [WidgetStack]. /// /// See the documentation for Mockito's code generation for more information. -class MockWidgetStack extends _i1.Mock implements _i37.WidgetStack { +class MockWidgetStack extends _i1.Mock implements _i38.WidgetStack { MockWidgetStack() { _i1.throwOnMissingStub(this); } @@ -2158,11 +2405,13 @@ class MockWidgetStack extends _i1.Mock implements _i37.WidgetStack { Invocation.getter(#onRenderScreen), ), ) as _i2.ValueNotifier); + @override bool get hasListeners => (super.noSuchMethod( Invocation.getter(#hasListeners), returnValue: false, ) as bool); + @override _i12.Widget getCurrent() => (super.noSuchMethod( Invocation.method( @@ -2177,6 +2426,7 @@ class MockWidgetStack extends _i1.Mock implements _i37.WidgetStack { ), ), ) as _i12.Widget); + @override void push( _i12.Widget? widget, { @@ -2190,6 +2440,7 @@ class MockWidgetStack extends _i1.Mock implements _i37.WidgetStack { ), returnValueForMissingStub: null, ); + @override void pop() => super.noSuchMethod( Invocation.method( @@ -2198,6 +2449,7 @@ class MockWidgetStack extends _i1.Mock implements _i37.WidgetStack { ), returnValueForMissingStub: null, ); + @override bool canPop() => (super.noSuchMethod( Invocation.method( @@ -2206,6 +2458,7 @@ class MockWidgetStack extends _i1.Mock implements _i37.WidgetStack { ), returnValue: false, ) as bool); + @override void popUntil(_i2.Key? key) => super.noSuchMethod( Invocation.method( @@ -2214,6 +2467,7 @@ class MockWidgetStack extends _i1.Mock implements _i37.WidgetStack { ), returnValueForMissingStub: null, ); + @override bool containsKey(_i2.Key? key) => (super.noSuchMethod( Invocation.method( @@ -2222,6 +2476,7 @@ class MockWidgetStack extends _i1.Mock implements _i37.WidgetStack { ), returnValue: false, ) as bool); + @override void clear() => super.noSuchMethod( Invocation.method( @@ -2230,6 +2485,7 @@ class MockWidgetStack extends _i1.Mock implements _i37.WidgetStack { ), returnValueForMissingStub: null, ); + @override void addDefault() => super.noSuchMethod( Invocation.method( @@ -2238,22 +2494,25 @@ class MockWidgetStack extends _i1.Mock implements _i37.WidgetStack { ), returnValueForMissingStub: null, ); + @override - void addListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], ), returnValueForMissingStub: null, ); + @override - void removeListener(_i21.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i22.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], ), returnValueForMissingStub: null, ); + @override void dispose() => super.noSuchMethod( Invocation.method( @@ -2262,6 +2521,7 @@ class MockWidgetStack extends _i1.Mock implements _i37.WidgetStack { ), returnValueForMissingStub: null, ); + @override void notifyListeners() => super.noSuchMethod( Invocation.method(