From bc66c399c2fccc5a0e408a852ae6dc07e7f6a635 Mon Sep 17 00:00:00 2001 From: Alfreedom <00tango.bromine@icloud.com> Date: Wed, 22 Nov 2023 11:39:33 +0100 Subject: [PATCH 1/2] License change --- CHANGELOG.md | 4 + LICENSE | 2 - .../models/auth_client_models.freezed.dart | 383 +++++------ .../auth_api/models/auth_client_models.g.dart | 61 +- .../models/json_rpc_models.freezed.dart | 92 +-- .../auth_api/models/json_rpc_models.g.dart | 16 +- .../pairing/utils/pairing_models.freezed.dart | 213 +++--- .../core/pairing/utils/pairing_models.g.dart | 34 +- .../verify/models/verify_context.freezed.dart | 84 +-- .../core/verify/models/verify_context.g.dart | 14 +- lib/apis/models/basic_models.freezed.dart | 118 ++-- lib/apis/models/basic_models.g.dart | 16 +- lib/apis/models/json_rpc_error.freezed.dart | 42 +- lib/apis/models/json_rpc_error.g.dart | 6 +- lib/apis/models/json_rpc_request.freezed.dart | 43 +- lib/apis/models/json_rpc_request.g.dart | 7 +- .../models/json_rpc_response.freezed.dart | 42 +- lib/apis/models/json_rpc_response.g.dart | 8 +- .../models/json_rpc_models.freezed.dart | 627 +++++++++--------- .../sign_api/models/json_rpc_models.g.dart | 104 +-- .../models/proposal_models.freezed.dart | 127 ++-- .../sign_api/models/proposal_models.g.dart | 23 +- .../models/session_models.freezed.dart | 128 ++-- .../sign_api/models/session_models.g.dart | 18 +- lib/apis/utils/constants.dart | 2 +- lib/src/version.dart | 2 +- pubspec.yaml | 2 +- test/shared/shared_test_utils.mocks.dart | 481 ++++++++++---- 28 files changed, 1483 insertions(+), 1216 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fea3c0bf..5915794f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.1.10 + +- License change + ## 2.1.9 - Added support for Verify API diff --git a/LICENSE b/LICENSE index 8a48a71f..72ab0707 100644 --- a/LICENSE +++ b/LICENSE @@ -186,8 +186,6 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2023 Eucalyptus Labs, Inc. - Copyright 2023 Sterling Long Copyright 2023 WalletConnect, Inc. Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/lib/apis/auth_api/models/auth_client_models.freezed.dart b/lib/apis/auth_api/models/auth_client_models.freezed.dart index a13387df..ad9219b0 100644 --- a/lib/apis/auth_api/models/auth_client_models.freezed.dart +++ b/lib/apis/auth_api/models/auth_client_models.freezed.dart @@ -62,22 +62,22 @@ class _$AuthPublicKeyCopyWithImpl<$Res, $Val extends AuthPublicKey> } /// @nodoc -abstract class _$$_AuthPublicKeyCopyWith<$Res> +abstract class _$$AuthPublicKeyImplCopyWith<$Res> implements $AuthPublicKeyCopyWith<$Res> { - factory _$$_AuthPublicKeyCopyWith( - _$_AuthPublicKey value, $Res Function(_$_AuthPublicKey) then) = - __$$_AuthPublicKeyCopyWithImpl<$Res>; + factory _$$AuthPublicKeyImplCopyWith( + _$AuthPublicKeyImpl value, $Res Function(_$AuthPublicKeyImpl) then) = + __$$AuthPublicKeyImplCopyWithImpl<$Res>; @override @useResult $Res call({String publicKey}); } /// @nodoc -class __$$_AuthPublicKeyCopyWithImpl<$Res> - extends _$AuthPublicKeyCopyWithImpl<$Res, _$_AuthPublicKey> - implements _$$_AuthPublicKeyCopyWith<$Res> { - __$$_AuthPublicKeyCopyWithImpl( - _$_AuthPublicKey _value, $Res Function(_$_AuthPublicKey) _then) +class __$$AuthPublicKeyImplCopyWithImpl<$Res> + extends _$AuthPublicKeyCopyWithImpl<$Res, _$AuthPublicKeyImpl> + implements _$$AuthPublicKeyImplCopyWith<$Res> { + __$$AuthPublicKeyImplCopyWithImpl( + _$AuthPublicKeyImpl _value, $Res Function(_$AuthPublicKeyImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -85,7 +85,7 @@ class __$$_AuthPublicKeyCopyWithImpl<$Res> $Res call({ Object? publicKey = null, }) { - return _then(_$_AuthPublicKey( + return _then(_$AuthPublicKeyImpl( publicKey: null == publicKey ? _value.publicKey : publicKey // ignore: cast_nullable_to_non_nullable @@ -97,11 +97,11 @@ class __$$_AuthPublicKeyCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_AuthPublicKey implements _AuthPublicKey { - const _$_AuthPublicKey({required this.publicKey}); +class _$AuthPublicKeyImpl implements _AuthPublicKey { + const _$AuthPublicKeyImpl({required this.publicKey}); - factory _$_AuthPublicKey.fromJson(Map json) => - _$$_AuthPublicKeyFromJson(json); + factory _$AuthPublicKeyImpl.fromJson(Map json) => + _$$AuthPublicKeyImplFromJson(json); @override final String publicKey; @@ -115,7 +115,7 @@ class _$_AuthPublicKey implements _AuthPublicKey { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_AuthPublicKey && + other is _$AuthPublicKeyImpl && (identical(other.publicKey, publicKey) || other.publicKey == publicKey)); } @@ -127,12 +127,12 @@ class _$_AuthPublicKey implements _AuthPublicKey { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_AuthPublicKeyCopyWith<_$_AuthPublicKey> get copyWith => - __$$_AuthPublicKeyCopyWithImpl<_$_AuthPublicKey>(this, _$identity); + _$$AuthPublicKeyImplCopyWith<_$AuthPublicKeyImpl> get copyWith => + __$$AuthPublicKeyImplCopyWithImpl<_$AuthPublicKeyImpl>(this, _$identity); @override Map toJson() { - return _$$_AuthPublicKeyToJson( + return _$$AuthPublicKeyImplToJson( this, ); } @@ -140,16 +140,16 @@ class _$_AuthPublicKey implements _AuthPublicKey { abstract class _AuthPublicKey implements AuthPublicKey { const factory _AuthPublicKey({required final String publicKey}) = - _$_AuthPublicKey; + _$AuthPublicKeyImpl; factory _AuthPublicKey.fromJson(Map json) = - _$_AuthPublicKey.fromJson; + _$AuthPublicKeyImpl.fromJson; @override String get publicKey; @override @JsonKey(ignore: true) - _$$_AuthPublicKeyCopyWith<_$_AuthPublicKey> get copyWith => + _$$AuthPublicKeyImplCopyWith<_$AuthPublicKeyImpl> get copyWith => throw _privateConstructorUsedError; } @@ -279,11 +279,11 @@ class _$AuthPayloadParamsCopyWithImpl<$Res, $Val extends AuthPayloadParams> } /// @nodoc -abstract class _$$_AuthPayloadParamsCopyWith<$Res> +abstract class _$$AuthPayloadParamsImplCopyWith<$Res> implements $AuthPayloadParamsCopyWith<$Res> { - factory _$$_AuthPayloadParamsCopyWith(_$_AuthPayloadParams value, - $Res Function(_$_AuthPayloadParams) then) = - __$$_AuthPayloadParamsCopyWithImpl<$Res>; + factory _$$AuthPayloadParamsImplCopyWith(_$AuthPayloadParamsImpl value, + $Res Function(_$AuthPayloadParamsImpl) then) = + __$$AuthPayloadParamsImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -302,11 +302,11 @@ abstract class _$$_AuthPayloadParamsCopyWith<$Res> } /// @nodoc -class __$$_AuthPayloadParamsCopyWithImpl<$Res> - extends _$AuthPayloadParamsCopyWithImpl<$Res, _$_AuthPayloadParams> - implements _$$_AuthPayloadParamsCopyWith<$Res> { - __$$_AuthPayloadParamsCopyWithImpl( - _$_AuthPayloadParams _value, $Res Function(_$_AuthPayloadParams) _then) +class __$$AuthPayloadParamsImplCopyWithImpl<$Res> + extends _$AuthPayloadParamsCopyWithImpl<$Res, _$AuthPayloadParamsImpl> + implements _$$AuthPayloadParamsImplCopyWith<$Res> { + __$$AuthPayloadParamsImplCopyWithImpl(_$AuthPayloadParamsImpl _value, + $Res Function(_$AuthPayloadParamsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -325,7 +325,7 @@ class __$$_AuthPayloadParamsCopyWithImpl<$Res> Object? requestId = freezed, Object? resources = freezed, }) { - return _then(_$_AuthPayloadParams( + return _then(_$AuthPayloadParamsImpl( type: null == type ? _value.type : type // ignore: cast_nullable_to_non_nullable @@ -381,8 +381,8 @@ class __$$_AuthPayloadParamsCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_AuthPayloadParams implements _AuthPayloadParams { - const _$_AuthPayloadParams( +class _$AuthPayloadParamsImpl implements _AuthPayloadParams { + const _$AuthPayloadParamsImpl( {required this.type, required this.chainId, required this.domain, @@ -397,8 +397,8 @@ class _$_AuthPayloadParams implements _AuthPayloadParams { final List? resources}) : _resources = resources; - factory _$_AuthPayloadParams.fromJson(Map json) => - _$$_AuthPayloadParamsFromJson(json); + factory _$AuthPayloadParamsImpl.fromJson(Map json) => + _$$AuthPayloadParamsImplFromJson(json); @override final String type; @@ -441,7 +441,7 @@ class _$_AuthPayloadParams implements _AuthPayloadParams { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_AuthPayloadParams && + other is _$AuthPayloadParamsImpl && (identical(other.type, type) || other.type == type) && (identical(other.chainId, chainId) || other.chainId == chainId) && (identical(other.domain, domain) || other.domain == domain) && @@ -479,13 +479,13 @@ class _$_AuthPayloadParams implements _AuthPayloadParams { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_AuthPayloadParamsCopyWith<_$_AuthPayloadParams> get copyWith => - __$$_AuthPayloadParamsCopyWithImpl<_$_AuthPayloadParams>( + _$$AuthPayloadParamsImplCopyWith<_$AuthPayloadParamsImpl> get copyWith => + __$$AuthPayloadParamsImplCopyWithImpl<_$AuthPayloadParamsImpl>( this, _$identity); @override Map toJson() { - return _$$_AuthPayloadParamsToJson( + return _$$AuthPayloadParamsImplToJson( this, ); } @@ -504,10 +504,10 @@ abstract class _AuthPayloadParams implements AuthPayloadParams { final String? exp, final String? statement, final String? requestId, - final List? resources}) = _$_AuthPayloadParams; + final List? resources}) = _$AuthPayloadParamsImpl; factory _AuthPayloadParams.fromJson(Map json) = - _$_AuthPayloadParams.fromJson; + _$AuthPayloadParamsImpl.fromJson; @override String get type; @@ -535,7 +535,7 @@ abstract class _AuthPayloadParams implements AuthPayloadParams { List? get resources; @override @JsonKey(ignore: true) - _$$_AuthPayloadParamsCopyWith<_$_AuthPayloadParams> get copyWith => + _$$AuthPayloadParamsImplCopyWith<_$AuthPayloadParamsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -651,11 +651,11 @@ class _$CacaoRequestPayloadCopyWithImpl<$Res, $Val extends CacaoRequestPayload> } /// @nodoc -abstract class _$$_CacaoRequestPayloadCopyWith<$Res> +abstract class _$$CacaoRequestPayloadImplCopyWith<$Res> implements $CacaoRequestPayloadCopyWith<$Res> { - factory _$$_CacaoRequestPayloadCopyWith(_$_CacaoRequestPayload value, - $Res Function(_$_CacaoRequestPayload) then) = - __$$_CacaoRequestPayloadCopyWithImpl<$Res>; + factory _$$CacaoRequestPayloadImplCopyWith(_$CacaoRequestPayloadImpl value, + $Res Function(_$CacaoRequestPayloadImpl) then) = + __$$CacaoRequestPayloadImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -672,11 +672,11 @@ abstract class _$$_CacaoRequestPayloadCopyWith<$Res> } /// @nodoc -class __$$_CacaoRequestPayloadCopyWithImpl<$Res> - extends _$CacaoRequestPayloadCopyWithImpl<$Res, _$_CacaoRequestPayload> - implements _$$_CacaoRequestPayloadCopyWith<$Res> { - __$$_CacaoRequestPayloadCopyWithImpl(_$_CacaoRequestPayload _value, - $Res Function(_$_CacaoRequestPayload) _then) +class __$$CacaoRequestPayloadImplCopyWithImpl<$Res> + extends _$CacaoRequestPayloadCopyWithImpl<$Res, _$CacaoRequestPayloadImpl> + implements _$$CacaoRequestPayloadImplCopyWith<$Res> { + __$$CacaoRequestPayloadImplCopyWithImpl(_$CacaoRequestPayloadImpl _value, + $Res Function(_$CacaoRequestPayloadImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -693,7 +693,7 @@ class __$$_CacaoRequestPayloadCopyWithImpl<$Res> Object? requestId = freezed, Object? resources = freezed, }) { - return _then(_$_CacaoRequestPayload( + return _then(_$CacaoRequestPayloadImpl( domain: null == domain ? _value.domain : domain // ignore: cast_nullable_to_non_nullable @@ -741,8 +741,8 @@ class __$$_CacaoRequestPayloadCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_CacaoRequestPayload implements _CacaoRequestPayload { - const _$_CacaoRequestPayload( +class _$CacaoRequestPayloadImpl implements _CacaoRequestPayload { + const _$CacaoRequestPayloadImpl( {required this.domain, required this.aud, required this.version, @@ -755,8 +755,8 @@ class _$_CacaoRequestPayload implements _CacaoRequestPayload { final List? resources}) : _resources = resources; - factory _$_CacaoRequestPayload.fromJson(Map json) => - _$$_CacaoRequestPayloadFromJson(json); + factory _$CacaoRequestPayloadImpl.fromJson(Map json) => + _$$CacaoRequestPayloadImplFromJson(json); @override final String domain; @@ -795,7 +795,7 @@ class _$_CacaoRequestPayload implements _CacaoRequestPayload { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CacaoRequestPayload && + other is _$CacaoRequestPayloadImpl && (identical(other.domain, domain) || other.domain == domain) && (identical(other.aud, aud) || other.aud == aud) && (identical(other.version, version) || other.version == version) && @@ -829,13 +829,13 @@ class _$_CacaoRequestPayload implements _CacaoRequestPayload { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CacaoRequestPayloadCopyWith<_$_CacaoRequestPayload> get copyWith => - __$$_CacaoRequestPayloadCopyWithImpl<_$_CacaoRequestPayload>( + _$$CacaoRequestPayloadImplCopyWith<_$CacaoRequestPayloadImpl> get copyWith => + __$$CacaoRequestPayloadImplCopyWithImpl<_$CacaoRequestPayloadImpl>( this, _$identity); @override Map toJson() { - return _$$_CacaoRequestPayloadToJson( + return _$$CacaoRequestPayloadImplToJson( this, ); } @@ -852,10 +852,10 @@ abstract class _CacaoRequestPayload implements CacaoRequestPayload { final String? exp, final String? statement, final String? requestId, - final List? resources}) = _$_CacaoRequestPayload; + final List? resources}) = _$CacaoRequestPayloadImpl; factory _CacaoRequestPayload.fromJson(Map json) = - _$_CacaoRequestPayload.fromJson; + _$CacaoRequestPayloadImpl.fromJson; @override String get domain; @@ -879,7 +879,7 @@ abstract class _CacaoRequestPayload implements CacaoRequestPayload { List? get resources; @override @JsonKey(ignore: true) - _$$_CacaoRequestPayloadCopyWith<_$_CacaoRequestPayload> get copyWith => + _$$CacaoRequestPayloadImplCopyWith<_$CacaoRequestPayloadImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1002,11 +1002,11 @@ class _$CacaoPayloadCopyWithImpl<$Res, $Val extends CacaoPayload> } /// @nodoc -abstract class _$$_CacaoPayloadCopyWith<$Res> +abstract class _$$CacaoPayloadImplCopyWith<$Res> implements $CacaoPayloadCopyWith<$Res> { - factory _$$_CacaoPayloadCopyWith( - _$_CacaoPayload value, $Res Function(_$_CacaoPayload) then) = - __$$_CacaoPayloadCopyWithImpl<$Res>; + factory _$$CacaoPayloadImplCopyWith( + _$CacaoPayloadImpl value, $Res Function(_$CacaoPayloadImpl) then) = + __$$CacaoPayloadImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1024,11 +1024,11 @@ abstract class _$$_CacaoPayloadCopyWith<$Res> } /// @nodoc -class __$$_CacaoPayloadCopyWithImpl<$Res> - extends _$CacaoPayloadCopyWithImpl<$Res, _$_CacaoPayload> - implements _$$_CacaoPayloadCopyWith<$Res> { - __$$_CacaoPayloadCopyWithImpl( - _$_CacaoPayload _value, $Res Function(_$_CacaoPayload) _then) +class __$$CacaoPayloadImplCopyWithImpl<$Res> + extends _$CacaoPayloadCopyWithImpl<$Res, _$CacaoPayloadImpl> + implements _$$CacaoPayloadImplCopyWith<$Res> { + __$$CacaoPayloadImplCopyWithImpl( + _$CacaoPayloadImpl _value, $Res Function(_$CacaoPayloadImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1046,7 +1046,7 @@ class __$$_CacaoPayloadCopyWithImpl<$Res> Object? requestId = freezed, Object? resources = freezed, }) { - return _then(_$_CacaoPayload( + return _then(_$CacaoPayloadImpl( iss: null == iss ? _value.iss : iss // ignore: cast_nullable_to_non_nullable @@ -1098,8 +1098,8 @@ class __$$_CacaoPayloadCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_CacaoPayload implements _CacaoPayload { - const _$_CacaoPayload( +class _$CacaoPayloadImpl implements _CacaoPayload { + const _$CacaoPayloadImpl( {required this.iss, required this.domain, required this.aud, @@ -1113,8 +1113,8 @@ class _$_CacaoPayload implements _CacaoPayload { final List? resources}) : _resources = resources; - factory _$_CacaoPayload.fromJson(Map json) => - _$$_CacaoPayloadFromJson(json); + factory _$CacaoPayloadImpl.fromJson(Map json) => + _$$CacaoPayloadImplFromJson(json); @override final String iss; @@ -1155,7 +1155,7 @@ class _$_CacaoPayload implements _CacaoPayload { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CacaoPayload && + other is _$CacaoPayloadImpl && (identical(other.iss, iss) || other.iss == iss) && (identical(other.domain, domain) || other.domain == domain) && (identical(other.aud, aud) || other.aud == aud) && @@ -1191,12 +1191,12 @@ class _$_CacaoPayload implements _CacaoPayload { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CacaoPayloadCopyWith<_$_CacaoPayload> get copyWith => - __$$_CacaoPayloadCopyWithImpl<_$_CacaoPayload>(this, _$identity); + _$$CacaoPayloadImplCopyWith<_$CacaoPayloadImpl> get copyWith => + __$$CacaoPayloadImplCopyWithImpl<_$CacaoPayloadImpl>(this, _$identity); @override Map toJson() { - return _$$_CacaoPayloadToJson( + return _$$CacaoPayloadImplToJson( this, ); } @@ -1214,10 +1214,10 @@ abstract class _CacaoPayload implements CacaoPayload { final String? exp, final String? statement, final String? requestId, - final List? resources}) = _$_CacaoPayload; + final List? resources}) = _$CacaoPayloadImpl; factory _CacaoPayload.fromJson(Map json) = - _$_CacaoPayload.fromJson; + _$CacaoPayloadImpl.fromJson; @override String get iss; @@ -1243,7 +1243,7 @@ abstract class _CacaoPayload implements CacaoPayload { List? get resources; @override @JsonKey(ignore: true) - _$$_CacaoPayloadCopyWith<_$_CacaoPayload> get copyWith => + _$$CacaoPayloadImplCopyWith<_$CacaoPayloadImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1295,22 +1295,22 @@ class _$CacaoHeaderCopyWithImpl<$Res, $Val extends CacaoHeader> } /// @nodoc -abstract class _$$_CacaoHeaderCopyWith<$Res> +abstract class _$$CacaoHeaderImplCopyWith<$Res> implements $CacaoHeaderCopyWith<$Res> { - factory _$$_CacaoHeaderCopyWith( - _$_CacaoHeader value, $Res Function(_$_CacaoHeader) then) = - __$$_CacaoHeaderCopyWithImpl<$Res>; + factory _$$CacaoHeaderImplCopyWith( + _$CacaoHeaderImpl value, $Res Function(_$CacaoHeaderImpl) then) = + __$$CacaoHeaderImplCopyWithImpl<$Res>; @override @useResult $Res call({String t}); } /// @nodoc -class __$$_CacaoHeaderCopyWithImpl<$Res> - extends _$CacaoHeaderCopyWithImpl<$Res, _$_CacaoHeader> - implements _$$_CacaoHeaderCopyWith<$Res> { - __$$_CacaoHeaderCopyWithImpl( - _$_CacaoHeader _value, $Res Function(_$_CacaoHeader) _then) +class __$$CacaoHeaderImplCopyWithImpl<$Res> + extends _$CacaoHeaderCopyWithImpl<$Res, _$CacaoHeaderImpl> + implements _$$CacaoHeaderImplCopyWith<$Res> { + __$$CacaoHeaderImplCopyWithImpl( + _$CacaoHeaderImpl _value, $Res Function(_$CacaoHeaderImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1318,7 +1318,7 @@ class __$$_CacaoHeaderCopyWithImpl<$Res> $Res call({ Object? t = null, }) { - return _then(_$_CacaoHeader( + return _then(_$CacaoHeaderImpl( t: null == t ? _value.t : t // ignore: cast_nullable_to_non_nullable @@ -1330,11 +1330,11 @@ class __$$_CacaoHeaderCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_CacaoHeader implements _CacaoHeader { - const _$_CacaoHeader({this.t = 'eip4361'}); +class _$CacaoHeaderImpl implements _CacaoHeader { + const _$CacaoHeaderImpl({this.t = 'eip4361'}); - factory _$_CacaoHeader.fromJson(Map json) => - _$$_CacaoHeaderFromJson(json); + factory _$CacaoHeaderImpl.fromJson(Map json) => + _$$CacaoHeaderImplFromJson(json); @override @JsonKey() @@ -1349,7 +1349,7 @@ class _$_CacaoHeader implements _CacaoHeader { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CacaoHeader && + other is _$CacaoHeaderImpl && (identical(other.t, t) || other.t == t)); } @@ -1360,28 +1360,28 @@ class _$_CacaoHeader implements _CacaoHeader { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CacaoHeaderCopyWith<_$_CacaoHeader> get copyWith => - __$$_CacaoHeaderCopyWithImpl<_$_CacaoHeader>(this, _$identity); + _$$CacaoHeaderImplCopyWith<_$CacaoHeaderImpl> get copyWith => + __$$CacaoHeaderImplCopyWithImpl<_$CacaoHeaderImpl>(this, _$identity); @override Map toJson() { - return _$$_CacaoHeaderToJson( + return _$$CacaoHeaderImplToJson( this, ); } } abstract class _CacaoHeader implements CacaoHeader { - const factory _CacaoHeader({final String t}) = _$_CacaoHeader; + const factory _CacaoHeader({final String t}) = _$CacaoHeaderImpl; factory _CacaoHeader.fromJson(Map json) = - _$_CacaoHeader.fromJson; + _$CacaoHeaderImpl.fromJson; @override String get t; @override @JsonKey(ignore: true) - _$$_CacaoHeaderCopyWith<_$_CacaoHeader> get copyWith => + _$$CacaoHeaderImplCopyWith<_$CacaoHeaderImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1445,22 +1445,22 @@ class _$CacaoSignatureCopyWithImpl<$Res, $Val extends CacaoSignature> } /// @nodoc -abstract class _$$_CacaoSignatureCopyWith<$Res> +abstract class _$$CacaoSignatureImplCopyWith<$Res> implements $CacaoSignatureCopyWith<$Res> { - factory _$$_CacaoSignatureCopyWith( - _$_CacaoSignature value, $Res Function(_$_CacaoSignature) then) = - __$$_CacaoSignatureCopyWithImpl<$Res>; + factory _$$CacaoSignatureImplCopyWith(_$CacaoSignatureImpl value, + $Res Function(_$CacaoSignatureImpl) then) = + __$$CacaoSignatureImplCopyWithImpl<$Res>; @override @useResult $Res call({String t, String s, String? m}); } /// @nodoc -class __$$_CacaoSignatureCopyWithImpl<$Res> - extends _$CacaoSignatureCopyWithImpl<$Res, _$_CacaoSignature> - implements _$$_CacaoSignatureCopyWith<$Res> { - __$$_CacaoSignatureCopyWithImpl( - _$_CacaoSignature _value, $Res Function(_$_CacaoSignature) _then) +class __$$CacaoSignatureImplCopyWithImpl<$Res> + extends _$CacaoSignatureCopyWithImpl<$Res, _$CacaoSignatureImpl> + implements _$$CacaoSignatureImplCopyWith<$Res> { + __$$CacaoSignatureImplCopyWithImpl( + _$CacaoSignatureImpl _value, $Res Function(_$CacaoSignatureImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1470,7 +1470,7 @@ class __$$_CacaoSignatureCopyWithImpl<$Res> Object? s = null, Object? m = freezed, }) { - return _then(_$_CacaoSignature( + return _then(_$CacaoSignatureImpl( t: null == t ? _value.t : t // ignore: cast_nullable_to_non_nullable @@ -1490,11 +1490,11 @@ class __$$_CacaoSignatureCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_CacaoSignature implements _CacaoSignature { - const _$_CacaoSignature({required this.t, required this.s, this.m}); +class _$CacaoSignatureImpl implements _CacaoSignature { + const _$CacaoSignatureImpl({required this.t, required this.s, this.m}); - factory _$_CacaoSignature.fromJson(Map json) => - _$$_CacaoSignatureFromJson(json); + factory _$CacaoSignatureImpl.fromJson(Map json) => + _$$CacaoSignatureImplFromJson(json); @override final String t; @@ -1512,7 +1512,7 @@ class _$_CacaoSignature implements _CacaoSignature { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_CacaoSignature && + other is _$CacaoSignatureImpl && (identical(other.t, t) || other.t == t) && (identical(other.s, s) || other.s == s) && (identical(other.m, m) || other.m == m)); @@ -1525,12 +1525,13 @@ class _$_CacaoSignature implements _CacaoSignature { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CacaoSignatureCopyWith<_$_CacaoSignature> get copyWith => - __$$_CacaoSignatureCopyWithImpl<_$_CacaoSignature>(this, _$identity); + _$$CacaoSignatureImplCopyWith<_$CacaoSignatureImpl> get copyWith => + __$$CacaoSignatureImplCopyWithImpl<_$CacaoSignatureImpl>( + this, _$identity); @override Map toJson() { - return _$$_CacaoSignatureToJson( + return _$$CacaoSignatureImplToJson( this, ); } @@ -1540,10 +1541,10 @@ abstract class _CacaoSignature implements CacaoSignature { const factory _CacaoSignature( {required final String t, required final String s, - final String? m}) = _$_CacaoSignature; + final String? m}) = _$CacaoSignatureImpl; factory _CacaoSignature.fromJson(Map json) = - _$_CacaoSignature.fromJson; + _$CacaoSignatureImpl.fromJson; @override String get t; @@ -1553,7 +1554,7 @@ abstract class _CacaoSignature implements CacaoSignature { String? get m; @override @JsonKey(ignore: true) - _$$_CacaoSignatureCopyWith<_$_CacaoSignature> get copyWith => + _$$CacaoSignatureImplCopyWith<_$CacaoSignatureImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1643,9 +1644,10 @@ class _$CacaoCopyWithImpl<$Res, $Val extends Cacao> } /// @nodoc -abstract class _$$_CacaoCopyWith<$Res> implements $CacaoCopyWith<$Res> { - factory _$$_CacaoCopyWith(_$_Cacao value, $Res Function(_$_Cacao) then) = - __$$_CacaoCopyWithImpl<$Res>; +abstract class _$$CacaoImplCopyWith<$Res> implements $CacaoCopyWith<$Res> { + factory _$$CacaoImplCopyWith( + _$CacaoImpl value, $Res Function(_$CacaoImpl) then) = + __$$CacaoImplCopyWithImpl<$Res>; @override @useResult $Res call({CacaoHeader h, CacaoPayload p, CacaoSignature s}); @@ -1659,9 +1661,11 @@ abstract class _$$_CacaoCopyWith<$Res> implements $CacaoCopyWith<$Res> { } /// @nodoc -class __$$_CacaoCopyWithImpl<$Res> extends _$CacaoCopyWithImpl<$Res, _$_Cacao> - implements _$$_CacaoCopyWith<$Res> { - __$$_CacaoCopyWithImpl(_$_Cacao _value, $Res Function(_$_Cacao) _then) +class __$$CacaoImplCopyWithImpl<$Res> + extends _$CacaoCopyWithImpl<$Res, _$CacaoImpl> + implements _$$CacaoImplCopyWith<$Res> { + __$$CacaoImplCopyWithImpl( + _$CacaoImpl _value, $Res Function(_$CacaoImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1671,7 +1675,7 @@ class __$$_CacaoCopyWithImpl<$Res> extends _$CacaoCopyWithImpl<$Res, _$_Cacao> Object? p = null, Object? s = null, }) { - return _then(_$_Cacao( + return _then(_$CacaoImpl( h: null == h ? _value.h : h // ignore: cast_nullable_to_non_nullable @@ -1691,11 +1695,11 @@ class __$$_CacaoCopyWithImpl<$Res> extends _$CacaoCopyWithImpl<$Res, _$_Cacao> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_Cacao implements _Cacao { - const _$_Cacao({required this.h, required this.p, required this.s}); +class _$CacaoImpl implements _Cacao { + const _$CacaoImpl({required this.h, required this.p, required this.s}); - factory _$_Cacao.fromJson(Map json) => - _$$_CacaoFromJson(json); + factory _$CacaoImpl.fromJson(Map json) => + _$$CacaoImplFromJson(json); @override final CacaoHeader h; @@ -1713,7 +1717,7 @@ class _$_Cacao implements _Cacao { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Cacao && + other is _$CacaoImpl && (identical(other.h, h) || other.h == h) && (identical(other.p, p) || other.p == p) && (identical(other.s, s) || other.s == s)); @@ -1726,12 +1730,12 @@ class _$_Cacao implements _Cacao { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_CacaoCopyWith<_$_Cacao> get copyWith => - __$$_CacaoCopyWithImpl<_$_Cacao>(this, _$identity); + _$$CacaoImplCopyWith<_$CacaoImpl> get copyWith => + __$$CacaoImplCopyWithImpl<_$CacaoImpl>(this, _$identity); @override Map toJson() { - return _$$_CacaoToJson( + return _$$CacaoImplToJson( this, ); } @@ -1741,9 +1745,9 @@ abstract class _Cacao implements Cacao { const factory _Cacao( {required final CacaoHeader h, required final CacaoPayload p, - required final CacaoSignature s}) = _$_Cacao; + required final CacaoSignature s}) = _$CacaoImpl; - factory _Cacao.fromJson(Map json) = _$_Cacao.fromJson; + factory _Cacao.fromJson(Map json) = _$CacaoImpl.fromJson; @override CacaoHeader get h; @@ -1753,7 +1757,7 @@ abstract class _Cacao implements Cacao { CacaoSignature get s; @override @JsonKey(ignore: true) - _$$_CacaoCopyWith<_$_Cacao> get copyWith => + _$$CacaoImplCopyWith<_$CacaoImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1862,11 +1866,11 @@ class _$StoredCacaoCopyWithImpl<$Res, $Val extends StoredCacao> } /// @nodoc -abstract class _$$_StoredCacaoCopyWith<$Res> +abstract class _$$StoredCacaoImplCopyWith<$Res> implements $StoredCacaoCopyWith<$Res> { - factory _$$_StoredCacaoCopyWith( - _$_StoredCacao value, $Res Function(_$_StoredCacao) then) = - __$$_StoredCacaoCopyWithImpl<$Res>; + factory _$$StoredCacaoImplCopyWith( + _$StoredCacaoImpl value, $Res Function(_$StoredCacaoImpl) then) = + __$$StoredCacaoImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -1885,11 +1889,11 @@ abstract class _$$_StoredCacaoCopyWith<$Res> } /// @nodoc -class __$$_StoredCacaoCopyWithImpl<$Res> - extends _$StoredCacaoCopyWithImpl<$Res, _$_StoredCacao> - implements _$$_StoredCacaoCopyWith<$Res> { - __$$_StoredCacaoCopyWithImpl( - _$_StoredCacao _value, $Res Function(_$_StoredCacao) _then) +class __$$StoredCacaoImplCopyWithImpl<$Res> + extends _$StoredCacaoCopyWithImpl<$Res, _$StoredCacaoImpl> + implements _$$StoredCacaoImplCopyWith<$Res> { + __$$StoredCacaoImplCopyWithImpl( + _$StoredCacaoImpl _value, $Res Function(_$StoredCacaoImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1901,7 +1905,7 @@ class __$$_StoredCacaoCopyWithImpl<$Res> Object? p = null, Object? s = null, }) { - return _then(_$_StoredCacao( + return _then(_$StoredCacaoImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -1929,16 +1933,16 @@ class __$$_StoredCacaoCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_StoredCacao implements _StoredCacao { - const _$_StoredCacao( +class _$StoredCacaoImpl implements _StoredCacao { + const _$StoredCacaoImpl( {required this.id, required this.pairingTopic, required this.h, required this.p, required this.s}); - factory _$_StoredCacao.fromJson(Map json) => - _$$_StoredCacaoFromJson(json); + factory _$StoredCacaoImpl.fromJson(Map json) => + _$$StoredCacaoImplFromJson(json); @override final int id; @@ -1960,7 +1964,7 @@ class _$_StoredCacao implements _StoredCacao { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_StoredCacao && + other is _$StoredCacaoImpl && (identical(other.id, id) || other.id == id) && (identical(other.pairingTopic, pairingTopic) || other.pairingTopic == pairingTopic) && @@ -1976,12 +1980,12 @@ class _$_StoredCacao implements _StoredCacao { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_StoredCacaoCopyWith<_$_StoredCacao> get copyWith => - __$$_StoredCacaoCopyWithImpl<_$_StoredCacao>(this, _$identity); + _$$StoredCacaoImplCopyWith<_$StoredCacaoImpl> get copyWith => + __$$StoredCacaoImplCopyWithImpl<_$StoredCacaoImpl>(this, _$identity); @override Map toJson() { - return _$$_StoredCacaoToJson( + return _$$StoredCacaoImplToJson( this, ); } @@ -1993,10 +1997,10 @@ abstract class _StoredCacao implements StoredCacao { required final String pairingTopic, required final CacaoHeader h, required final CacaoPayload p, - required final CacaoSignature s}) = _$_StoredCacao; + required final CacaoSignature s}) = _$StoredCacaoImpl; factory _StoredCacao.fromJson(Map json) = - _$_StoredCacao.fromJson; + _$StoredCacaoImpl.fromJson; @override int get id; @@ -2010,7 +2014,7 @@ abstract class _StoredCacao implements StoredCacao { CacaoSignature get s; @override @JsonKey(ignore: true) - _$$_StoredCacaoCopyWith<_$_StoredCacao> get copyWith => + _$$StoredCacaoImplCopyWith<_$StoredCacaoImpl> get copyWith => throw _privateConstructorUsedError; } @@ -2103,11 +2107,11 @@ class _$PendingAuthRequestCopyWithImpl<$Res, $Val extends PendingAuthRequest> } /// @nodoc -abstract class _$$_PendingAuthRequestCopyWith<$Res> +abstract class _$$PendingAuthRequestImplCopyWith<$Res> implements $PendingAuthRequestCopyWith<$Res> { - factory _$$_PendingAuthRequestCopyWith(_$_PendingAuthRequest value, - $Res Function(_$_PendingAuthRequest) then) = - __$$_PendingAuthRequestCopyWithImpl<$Res>; + factory _$$PendingAuthRequestImplCopyWith(_$PendingAuthRequestImpl value, + $Res Function(_$PendingAuthRequestImpl) then) = + __$$PendingAuthRequestImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -2123,11 +2127,11 @@ abstract class _$$_PendingAuthRequestCopyWith<$Res> } /// @nodoc -class __$$_PendingAuthRequestCopyWithImpl<$Res> - extends _$PendingAuthRequestCopyWithImpl<$Res, _$_PendingAuthRequest> - implements _$$_PendingAuthRequestCopyWith<$Res> { - __$$_PendingAuthRequestCopyWithImpl( - _$_PendingAuthRequest _value, $Res Function(_$_PendingAuthRequest) _then) +class __$$PendingAuthRequestImplCopyWithImpl<$Res> + extends _$PendingAuthRequestCopyWithImpl<$Res, _$PendingAuthRequestImpl> + implements _$$PendingAuthRequestImplCopyWith<$Res> { + __$$PendingAuthRequestImplCopyWithImpl(_$PendingAuthRequestImpl _value, + $Res Function(_$PendingAuthRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2138,7 +2142,7 @@ class __$$_PendingAuthRequestCopyWithImpl<$Res> Object? metadata = null, Object? cacaoPayload = null, }) { - return _then(_$_PendingAuthRequest( + return _then(_$PendingAuthRequestImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -2162,15 +2166,15 @@ class __$$_PendingAuthRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_PendingAuthRequest implements _PendingAuthRequest { - const _$_PendingAuthRequest( +class _$PendingAuthRequestImpl implements _PendingAuthRequest { + const _$PendingAuthRequestImpl( {required this.id, required this.pairingTopic, required this.metadata, required this.cacaoPayload}); - factory _$_PendingAuthRequest.fromJson(Map json) => - _$$_PendingAuthRequestFromJson(json); + factory _$PendingAuthRequestImpl.fromJson(Map json) => + _$$PendingAuthRequestImplFromJson(json); @override final int id; @@ -2190,7 +2194,7 @@ class _$_PendingAuthRequest implements _PendingAuthRequest { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PendingAuthRequest && + other is _$PendingAuthRequestImpl && (identical(other.id, id) || other.id == id) && (identical(other.pairingTopic, pairingTopic) || other.pairingTopic == pairingTopic) && @@ -2208,13 +2212,13 @@ class _$_PendingAuthRequest implements _PendingAuthRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PendingAuthRequestCopyWith<_$_PendingAuthRequest> get copyWith => - __$$_PendingAuthRequestCopyWithImpl<_$_PendingAuthRequest>( + _$$PendingAuthRequestImplCopyWith<_$PendingAuthRequestImpl> get copyWith => + __$$PendingAuthRequestImplCopyWithImpl<_$PendingAuthRequestImpl>( this, _$identity); @override Map toJson() { - return _$$_PendingAuthRequestToJson( + return _$$PendingAuthRequestImplToJson( this, ); } @@ -2222,13 +2226,14 @@ class _$_PendingAuthRequest implements _PendingAuthRequest { abstract class _PendingAuthRequest implements PendingAuthRequest { const factory _PendingAuthRequest( - {required final int id, - required final String pairingTopic, - required final ConnectionMetadata metadata, - required final CacaoRequestPayload cacaoPayload}) = _$_PendingAuthRequest; + {required final int id, + required final String pairingTopic, + required final ConnectionMetadata metadata, + required final CacaoRequestPayload cacaoPayload}) = + _$PendingAuthRequestImpl; factory _PendingAuthRequest.fromJson(Map json) = - _$_PendingAuthRequest.fromJson; + _$PendingAuthRequestImpl.fromJson; @override int get id; @@ -2240,6 +2245,6 @@ abstract class _PendingAuthRequest implements PendingAuthRequest { CacaoRequestPayload get cacaoPayload; @override @JsonKey(ignore: true) - _$$_PendingAuthRequestCopyWith<_$_PendingAuthRequest> get copyWith => + _$$PendingAuthRequestImplCopyWith<_$PendingAuthRequestImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/apis/auth_api/models/auth_client_models.g.dart b/lib/apis/auth_api/models/auth_client_models.g.dart index b823ba9f..db73cc6d 100644 --- a/lib/apis/auth_api/models/auth_client_models.g.dart +++ b/lib/apis/auth_api/models/auth_client_models.g.dart @@ -6,18 +6,19 @@ part of 'auth_client_models.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_AuthPublicKey _$$_AuthPublicKeyFromJson(Map json) => - _$_AuthPublicKey( +_$AuthPublicKeyImpl _$$AuthPublicKeyImplFromJson(Map json) => + _$AuthPublicKeyImpl( publicKey: json['publicKey'] as String, ); -Map _$$_AuthPublicKeyToJson(_$_AuthPublicKey instance) => +Map _$$AuthPublicKeyImplToJson(_$AuthPublicKeyImpl instance) => { 'publicKey': instance.publicKey, }; -_$_AuthPayloadParams _$$_AuthPayloadParamsFromJson(Map json) => - _$_AuthPayloadParams( +_$AuthPayloadParamsImpl _$$AuthPayloadParamsImplFromJson( + Map json) => + _$AuthPayloadParamsImpl( type: json['type'] as String, chainId: json['chainId'] as String, domain: json['domain'] as String, @@ -34,8 +35,8 @@ _$_AuthPayloadParams _$$_AuthPayloadParamsFromJson(Map json) => .toList(), ); -Map _$$_AuthPayloadParamsToJson( - _$_AuthPayloadParams instance) { +Map _$$AuthPayloadParamsImplToJson( + _$AuthPayloadParamsImpl instance) { final val = { 'type': instance.type, 'chainId': instance.chainId, @@ -60,9 +61,9 @@ Map _$$_AuthPayloadParamsToJson( return val; } -_$_CacaoRequestPayload _$$_CacaoRequestPayloadFromJson( +_$CacaoRequestPayloadImpl _$$CacaoRequestPayloadImplFromJson( Map json) => - _$_CacaoRequestPayload( + _$CacaoRequestPayloadImpl( domain: json['domain'] as String, aud: json['aud'] as String, version: json['version'] as String, @@ -77,8 +78,8 @@ _$_CacaoRequestPayload _$$_CacaoRequestPayloadFromJson( .toList(), ); -Map _$$_CacaoRequestPayloadToJson( - _$_CacaoRequestPayload instance) { +Map _$$CacaoRequestPayloadImplToJson( + _$CacaoRequestPayloadImpl instance) { final val = { 'domain': instance.domain, 'aud': instance.aud, @@ -101,8 +102,8 @@ Map _$$_CacaoRequestPayloadToJson( return val; } -_$_CacaoPayload _$$_CacaoPayloadFromJson(Map json) => - _$_CacaoPayload( +_$CacaoPayloadImpl _$$CacaoPayloadImplFromJson(Map json) => + _$CacaoPayloadImpl( iss: json['iss'] as String, domain: json['domain'] as String, aud: json['aud'] as String, @@ -118,7 +119,7 @@ _$_CacaoPayload _$$_CacaoPayloadFromJson(Map json) => .toList(), ); -Map _$$_CacaoPayloadToJson(_$_CacaoPayload instance) { +Map _$$CacaoPayloadImplToJson(_$CacaoPayloadImpl instance) { final val = { 'iss': instance.iss, 'domain': instance.domain, @@ -142,24 +143,25 @@ Map _$$_CacaoPayloadToJson(_$_CacaoPayload instance) { return val; } -_$_CacaoHeader _$$_CacaoHeaderFromJson(Map json) => - _$_CacaoHeader( +_$CacaoHeaderImpl _$$CacaoHeaderImplFromJson(Map json) => + _$CacaoHeaderImpl( t: json['t'] as String? ?? 'eip4361', ); -Map _$$_CacaoHeaderToJson(_$_CacaoHeader instance) => +Map _$$CacaoHeaderImplToJson(_$CacaoHeaderImpl instance) => { 't': instance.t, }; -_$_CacaoSignature _$$_CacaoSignatureFromJson(Map json) => - _$_CacaoSignature( +_$CacaoSignatureImpl _$$CacaoSignatureImplFromJson(Map json) => + _$CacaoSignatureImpl( t: json['t'] as String, s: json['s'] as String, m: json['m'] as String?, ); -Map _$$_CacaoSignatureToJson(_$_CacaoSignature instance) { +Map _$$CacaoSignatureImplToJson( + _$CacaoSignatureImpl instance) { final val = { 't': instance.t, 's': instance.s, @@ -175,20 +177,21 @@ Map _$$_CacaoSignatureToJson(_$_CacaoSignature instance) { return val; } -_$_Cacao _$$_CacaoFromJson(Map json) => _$_Cacao( +_$CacaoImpl _$$CacaoImplFromJson(Map json) => _$CacaoImpl( h: CacaoHeader.fromJson(json['h'] as Map), p: CacaoPayload.fromJson(json['p'] as Map), s: CacaoSignature.fromJson(json['s'] as Map), ); -Map _$$_CacaoToJson(_$_Cacao instance) => { +Map _$$CacaoImplToJson(_$CacaoImpl instance) => + { 'h': instance.h.toJson(), 'p': instance.p.toJson(), 's': instance.s.toJson(), }; -_$_StoredCacao _$$_StoredCacaoFromJson(Map json) => - _$_StoredCacao( +_$StoredCacaoImpl _$$StoredCacaoImplFromJson(Map json) => + _$StoredCacaoImpl( id: json['id'] as int, pairingTopic: json['pairingTopic'] as String, h: CacaoHeader.fromJson(json['h'] as Map), @@ -196,7 +199,7 @@ _$_StoredCacao _$$_StoredCacaoFromJson(Map json) => s: CacaoSignature.fromJson(json['s'] as Map), ); -Map _$$_StoredCacaoToJson(_$_StoredCacao instance) => +Map _$$StoredCacaoImplToJson(_$StoredCacaoImpl instance) => { 'id': instance.id, 'pairingTopic': instance.pairingTopic, @@ -205,9 +208,9 @@ Map _$$_StoredCacaoToJson(_$_StoredCacao instance) => 's': instance.s.toJson(), }; -_$_PendingAuthRequest _$$_PendingAuthRequestFromJson( +_$PendingAuthRequestImpl _$$PendingAuthRequestImplFromJson( Map json) => - _$_PendingAuthRequest( + _$PendingAuthRequestImpl( id: json['id'] as int, pairingTopic: json['pairingTopic'] as String, metadata: @@ -216,8 +219,8 @@ _$_PendingAuthRequest _$$_PendingAuthRequestFromJson( json['cacaoPayload'] as Map), ); -Map _$$_PendingAuthRequestToJson( - _$_PendingAuthRequest instance) => +Map _$$PendingAuthRequestImplToJson( + _$PendingAuthRequestImpl instance) => { 'id': instance.id, 'pairingTopic': instance.pairingTopic, diff --git a/lib/apis/auth_api/models/json_rpc_models.freezed.dart b/lib/apis/auth_api/models/json_rpc_models.freezed.dart index ec9e04a9..c78feec1 100644 --- a/lib/apis/auth_api/models/json_rpc_models.freezed.dart +++ b/lib/apis/auth_api/models/json_rpc_models.freezed.dart @@ -88,11 +88,11 @@ class _$WcAuthRequestRequestCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_WcAuthRequestRequestCopyWith<$Res> +abstract class _$$WcAuthRequestRequestImplCopyWith<$Res> implements $WcAuthRequestRequestCopyWith<$Res> { - factory _$$_WcAuthRequestRequestCopyWith(_$_WcAuthRequestRequest value, - $Res Function(_$_WcAuthRequestRequest) then) = - __$$_WcAuthRequestRequestCopyWithImpl<$Res>; + factory _$$WcAuthRequestRequestImplCopyWith(_$WcAuthRequestRequestImpl value, + $Res Function(_$WcAuthRequestRequestImpl) then) = + __$$WcAuthRequestRequestImplCopyWithImpl<$Res>; @override @useResult $Res call({AuthPayloadParams payloadParams, ConnectionMetadata requester}); @@ -104,11 +104,11 @@ abstract class _$$_WcAuthRequestRequestCopyWith<$Res> } /// @nodoc -class __$$_WcAuthRequestRequestCopyWithImpl<$Res> - extends _$WcAuthRequestRequestCopyWithImpl<$Res, _$_WcAuthRequestRequest> - implements _$$_WcAuthRequestRequestCopyWith<$Res> { - __$$_WcAuthRequestRequestCopyWithImpl(_$_WcAuthRequestRequest _value, - $Res Function(_$_WcAuthRequestRequest) _then) +class __$$WcAuthRequestRequestImplCopyWithImpl<$Res> + extends _$WcAuthRequestRequestCopyWithImpl<$Res, _$WcAuthRequestRequestImpl> + implements _$$WcAuthRequestRequestImplCopyWith<$Res> { + __$$WcAuthRequestRequestImplCopyWithImpl(_$WcAuthRequestRequestImpl _value, + $Res Function(_$WcAuthRequestRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -117,7 +117,7 @@ class __$$_WcAuthRequestRequestCopyWithImpl<$Res> Object? payloadParams = null, Object? requester = null, }) { - return _then(_$_WcAuthRequestRequest( + return _then(_$WcAuthRequestRequestImpl( payloadParams: null == payloadParams ? _value.payloadParams : payloadParams // ignore: cast_nullable_to_non_nullable @@ -133,12 +133,12 @@ class __$$_WcAuthRequestRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_WcAuthRequestRequest implements _WcAuthRequestRequest { - const _$_WcAuthRequestRequest( +class _$WcAuthRequestRequestImpl implements _WcAuthRequestRequest { + const _$WcAuthRequestRequestImpl( {required this.payloadParams, required this.requester}); - factory _$_WcAuthRequestRequest.fromJson(Map json) => - _$$_WcAuthRequestRequestFromJson(json); + factory _$WcAuthRequestRequestImpl.fromJson(Map json) => + _$$WcAuthRequestRequestImplFromJson(json); @override final AuthPayloadParams payloadParams; @@ -154,7 +154,7 @@ class _$_WcAuthRequestRequest implements _WcAuthRequestRequest { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_WcAuthRequestRequest && + other is _$WcAuthRequestRequestImpl && (identical(other.payloadParams, payloadParams) || other.payloadParams == payloadParams) && (identical(other.requester, requester) || @@ -168,13 +168,14 @@ class _$_WcAuthRequestRequest implements _WcAuthRequestRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_WcAuthRequestRequestCopyWith<_$_WcAuthRequestRequest> get copyWith => - __$$_WcAuthRequestRequestCopyWithImpl<_$_WcAuthRequestRequest>( - this, _$identity); + _$$WcAuthRequestRequestImplCopyWith<_$WcAuthRequestRequestImpl> + get copyWith => + __$$WcAuthRequestRequestImplCopyWithImpl<_$WcAuthRequestRequestImpl>( + this, _$identity); @override Map toJson() { - return _$$_WcAuthRequestRequestToJson( + return _$$WcAuthRequestRequestImplToJson( this, ); } @@ -182,11 +183,12 @@ class _$_WcAuthRequestRequest implements _WcAuthRequestRequest { abstract class _WcAuthRequestRequest implements WcAuthRequestRequest { const factory _WcAuthRequestRequest( - {required final AuthPayloadParams payloadParams, - required final ConnectionMetadata requester}) = _$_WcAuthRequestRequest; + {required final AuthPayloadParams payloadParams, + required final ConnectionMetadata requester}) = + _$WcAuthRequestRequestImpl; factory _WcAuthRequestRequest.fromJson(Map json) = - _$_WcAuthRequestRequest.fromJson; + _$WcAuthRequestRequestImpl.fromJson; @override AuthPayloadParams get payloadParams; @@ -194,8 +196,8 @@ abstract class _WcAuthRequestRequest implements WcAuthRequestRequest { ConnectionMetadata get requester; @override @JsonKey(ignore: true) - _$$_WcAuthRequestRequestCopyWith<_$_WcAuthRequestRequest> get copyWith => - throw _privateConstructorUsedError; + _$$WcAuthRequestRequestImplCopyWith<_$WcAuthRequestRequestImpl> + get copyWith => throw _privateConstructorUsedError; } WcAuthRequestResult _$WcAuthRequestResultFromJson(Map json) { @@ -256,11 +258,11 @@ class _$WcAuthRequestResultCopyWithImpl<$Res, $Val extends WcAuthRequestResult> } /// @nodoc -abstract class _$$_WcAuthRequestResultCopyWith<$Res> +abstract class _$$WcAuthRequestResultImplCopyWith<$Res> implements $WcAuthRequestResultCopyWith<$Res> { - factory _$$_WcAuthRequestResultCopyWith(_$_WcAuthRequestResult value, - $Res Function(_$_WcAuthRequestResult) then) = - __$$_WcAuthRequestResultCopyWithImpl<$Res>; + factory _$$WcAuthRequestResultImplCopyWith(_$WcAuthRequestResultImpl value, + $Res Function(_$WcAuthRequestResultImpl) then) = + __$$WcAuthRequestResultImplCopyWithImpl<$Res>; @override @useResult $Res call({Cacao cacao}); @@ -270,11 +272,11 @@ abstract class _$$_WcAuthRequestResultCopyWith<$Res> } /// @nodoc -class __$$_WcAuthRequestResultCopyWithImpl<$Res> - extends _$WcAuthRequestResultCopyWithImpl<$Res, _$_WcAuthRequestResult> - implements _$$_WcAuthRequestResultCopyWith<$Res> { - __$$_WcAuthRequestResultCopyWithImpl(_$_WcAuthRequestResult _value, - $Res Function(_$_WcAuthRequestResult) _then) +class __$$WcAuthRequestResultImplCopyWithImpl<$Res> + extends _$WcAuthRequestResultCopyWithImpl<$Res, _$WcAuthRequestResultImpl> + implements _$$WcAuthRequestResultImplCopyWith<$Res> { + __$$WcAuthRequestResultImplCopyWithImpl(_$WcAuthRequestResultImpl _value, + $Res Function(_$WcAuthRequestResultImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -282,7 +284,7 @@ class __$$_WcAuthRequestResultCopyWithImpl<$Res> $Res call({ Object? cacao = null, }) { - return _then(_$_WcAuthRequestResult( + return _then(_$WcAuthRequestResultImpl( cacao: null == cacao ? _value.cacao : cacao // ignore: cast_nullable_to_non_nullable @@ -294,11 +296,11 @@ class __$$_WcAuthRequestResultCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_WcAuthRequestResult implements _WcAuthRequestResult { - const _$_WcAuthRequestResult({required this.cacao}); +class _$WcAuthRequestResultImpl implements _WcAuthRequestResult { + const _$WcAuthRequestResultImpl({required this.cacao}); - factory _$_WcAuthRequestResult.fromJson(Map json) => - _$$_WcAuthRequestResultFromJson(json); + factory _$WcAuthRequestResultImpl.fromJson(Map json) => + _$$WcAuthRequestResultImplFromJson(json); @override final Cacao cacao; @@ -312,7 +314,7 @@ class _$_WcAuthRequestResult implements _WcAuthRequestResult { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_WcAuthRequestResult && + other is _$WcAuthRequestResultImpl && (identical(other.cacao, cacao) || other.cacao == cacao)); } @@ -323,13 +325,13 @@ class _$_WcAuthRequestResult implements _WcAuthRequestResult { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_WcAuthRequestResultCopyWith<_$_WcAuthRequestResult> get copyWith => - __$$_WcAuthRequestResultCopyWithImpl<_$_WcAuthRequestResult>( + _$$WcAuthRequestResultImplCopyWith<_$WcAuthRequestResultImpl> get copyWith => + __$$WcAuthRequestResultImplCopyWithImpl<_$WcAuthRequestResultImpl>( this, _$identity); @override Map toJson() { - return _$$_WcAuthRequestResultToJson( + return _$$WcAuthRequestResultImplToJson( this, ); } @@ -337,15 +339,15 @@ class _$_WcAuthRequestResult implements _WcAuthRequestResult { abstract class _WcAuthRequestResult implements WcAuthRequestResult { const factory _WcAuthRequestResult({required final Cacao cacao}) = - _$_WcAuthRequestResult; + _$WcAuthRequestResultImpl; factory _WcAuthRequestResult.fromJson(Map json) = - _$_WcAuthRequestResult.fromJson; + _$WcAuthRequestResultImpl.fromJson; @override Cacao get cacao; @override @JsonKey(ignore: true) - _$$_WcAuthRequestResultCopyWith<_$_WcAuthRequestResult> get copyWith => + _$$WcAuthRequestResultImplCopyWith<_$WcAuthRequestResultImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/apis/auth_api/models/json_rpc_models.g.dart b/lib/apis/auth_api/models/json_rpc_models.g.dart index a1638027..a7bde781 100644 --- a/lib/apis/auth_api/models/json_rpc_models.g.dart +++ b/lib/apis/auth_api/models/json_rpc_models.g.dart @@ -6,30 +6,30 @@ part of 'json_rpc_models.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_WcAuthRequestRequest _$$_WcAuthRequestRequestFromJson( +_$WcAuthRequestRequestImpl _$$WcAuthRequestRequestImplFromJson( Map json) => - _$_WcAuthRequestRequest( + _$WcAuthRequestRequestImpl( payloadParams: AuthPayloadParams.fromJson( json['payloadParams'] as Map), requester: ConnectionMetadata.fromJson( json['requester'] as Map), ); -Map _$$_WcAuthRequestRequestToJson( - _$_WcAuthRequestRequest instance) => +Map _$$WcAuthRequestRequestImplToJson( + _$WcAuthRequestRequestImpl instance) => { 'payloadParams': instance.payloadParams.toJson(), 'requester': instance.requester.toJson(), }; -_$_WcAuthRequestResult _$$_WcAuthRequestResultFromJson( +_$WcAuthRequestResultImpl _$$WcAuthRequestResultImplFromJson( Map json) => - _$_WcAuthRequestResult( + _$WcAuthRequestResultImpl( cacao: Cacao.fromJson(json['cacao'] as Map), ); -Map _$$_WcAuthRequestResultToJson( - _$_WcAuthRequestResult instance) => +Map _$$WcAuthRequestResultImplToJson( + _$WcAuthRequestResultImpl instance) => { 'cacao': instance.cacao.toJson(), }; diff --git a/lib/apis/core/pairing/utils/pairing_models.freezed.dart b/lib/apis/core/pairing/utils/pairing_models.freezed.dart index 3e953958..72ccd707 100644 --- a/lib/apis/core/pairing/utils/pairing_models.freezed.dart +++ b/lib/apis/core/pairing/utils/pairing_models.freezed.dart @@ -105,11 +105,11 @@ class _$PairingInfoCopyWithImpl<$Res, $Val extends PairingInfo> } /// @nodoc -abstract class _$$_PairingInfoCopyWith<$Res> +abstract class _$$PairingInfoImplCopyWith<$Res> implements $PairingInfoCopyWith<$Res> { - factory _$$_PairingInfoCopyWith( - _$_PairingInfo value, $Res Function(_$_PairingInfo) then) = - __$$_PairingInfoCopyWithImpl<$Res>; + factory _$$PairingInfoImplCopyWith( + _$PairingInfoImpl value, $Res Function(_$PairingInfoImpl) then) = + __$$PairingInfoImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -124,11 +124,11 @@ abstract class _$$_PairingInfoCopyWith<$Res> } /// @nodoc -class __$$_PairingInfoCopyWithImpl<$Res> - extends _$PairingInfoCopyWithImpl<$Res, _$_PairingInfo> - implements _$$_PairingInfoCopyWith<$Res> { - __$$_PairingInfoCopyWithImpl( - _$_PairingInfo _value, $Res Function(_$_PairingInfo) _then) +class __$$PairingInfoImplCopyWithImpl<$Res> + extends _$PairingInfoCopyWithImpl<$Res, _$PairingInfoImpl> + implements _$$PairingInfoImplCopyWith<$Res> { + __$$PairingInfoImplCopyWithImpl( + _$PairingInfoImpl _value, $Res Function(_$PairingInfoImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -140,7 +140,7 @@ class __$$_PairingInfoCopyWithImpl<$Res> Object? active = null, Object? peerMetadata = freezed, }) { - return _then(_$_PairingInfo( + return _then(_$PairingInfoImpl( topic: null == topic ? _value.topic : topic // ignore: cast_nullable_to_non_nullable @@ -168,16 +168,16 @@ class __$$_PairingInfoCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PairingInfo implements _PairingInfo { - const _$_PairingInfo( +class _$PairingInfoImpl implements _PairingInfo { + const _$PairingInfoImpl( {required this.topic, required this.expiry, required this.relay, required this.active, this.peerMetadata}); - factory _$_PairingInfo.fromJson(Map json) => - _$$_PairingInfoFromJson(json); + factory _$PairingInfoImpl.fromJson(Map json) => + _$$PairingInfoImplFromJson(json); @override final String topic; @@ -199,7 +199,7 @@ class _$_PairingInfo implements _PairingInfo { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PairingInfo && + other is _$PairingInfoImpl && (identical(other.topic, topic) || other.topic == topic) && (identical(other.expiry, expiry) || other.expiry == expiry) && (identical(other.relay, relay) || other.relay == relay) && @@ -216,12 +216,12 @@ class _$_PairingInfo implements _PairingInfo { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PairingInfoCopyWith<_$_PairingInfo> get copyWith => - __$$_PairingInfoCopyWithImpl<_$_PairingInfo>(this, _$identity); + _$$PairingInfoImplCopyWith<_$PairingInfoImpl> get copyWith => + __$$PairingInfoImplCopyWithImpl<_$PairingInfoImpl>(this, _$identity); @override Map toJson() { - return _$$_PairingInfoToJson( + return _$$PairingInfoImplToJson( this, ); } @@ -233,10 +233,10 @@ abstract class _PairingInfo implements PairingInfo { required final int expiry, required final Relay relay, required final bool active, - final PairingMetadata? peerMetadata}) = _$_PairingInfo; + final PairingMetadata? peerMetadata}) = _$PairingInfoImpl; factory _PairingInfo.fromJson(Map json) = - _$_PairingInfo.fromJson; + _$PairingInfoImpl.fromJson; @override String get topic; @@ -250,7 +250,7 @@ abstract class _PairingInfo implements PairingInfo { PairingMetadata? get peerMetadata; @override @JsonKey(ignore: true) - _$$_PairingInfoCopyWith<_$_PairingInfo> get copyWith => + _$$PairingInfoImplCopyWith<_$PairingInfoImpl> get copyWith => throw _privateConstructorUsedError; } @@ -352,11 +352,11 @@ class _$PairingMetadataCopyWithImpl<$Res, $Val extends PairingMetadata> } /// @nodoc -abstract class _$$_PairingMetadataCopyWith<$Res> +abstract class _$$PairingMetadataImplCopyWith<$Res> implements $PairingMetadataCopyWith<$Res> { - factory _$$_PairingMetadataCopyWith( - _$_PairingMetadata value, $Res Function(_$_PairingMetadata) then) = - __$$_PairingMetadataCopyWithImpl<$Res>; + factory _$$PairingMetadataImplCopyWith(_$PairingMetadataImpl value, + $Res Function(_$PairingMetadataImpl) then) = + __$$PairingMetadataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -372,11 +372,11 @@ abstract class _$$_PairingMetadataCopyWith<$Res> } /// @nodoc -class __$$_PairingMetadataCopyWithImpl<$Res> - extends _$PairingMetadataCopyWithImpl<$Res, _$_PairingMetadata> - implements _$$_PairingMetadataCopyWith<$Res> { - __$$_PairingMetadataCopyWithImpl( - _$_PairingMetadata _value, $Res Function(_$_PairingMetadata) _then) +class __$$PairingMetadataImplCopyWithImpl<$Res> + extends _$PairingMetadataCopyWithImpl<$Res, _$PairingMetadataImpl> + implements _$$PairingMetadataImplCopyWith<$Res> { + __$$PairingMetadataImplCopyWithImpl( + _$PairingMetadataImpl _value, $Res Function(_$PairingMetadataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -389,7 +389,7 @@ class __$$_PairingMetadataCopyWithImpl<$Res> Object? verifyUrl = freezed, Object? redirect = freezed, }) { - return _then(_$_PairingMetadata( + return _then(_$PairingMetadataImpl( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable @@ -421,8 +421,8 @@ class __$$_PairingMetadataCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_PairingMetadata implements _PairingMetadata { - const _$_PairingMetadata( +class _$PairingMetadataImpl implements _PairingMetadata { + const _$PairingMetadataImpl( {required this.name, required this.description, required this.url, @@ -431,8 +431,8 @@ class _$_PairingMetadata implements _PairingMetadata { this.redirect}) : _icons = icons; - factory _$_PairingMetadata.fromJson(Map json) => - _$$_PairingMetadataFromJson(json); + factory _$PairingMetadataImpl.fromJson(Map json) => + _$$PairingMetadataImplFromJson(json); @override final String name; @@ -462,7 +462,7 @@ class _$_PairingMetadata implements _PairingMetadata { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PairingMetadata && + other is _$PairingMetadataImpl && (identical(other.name, name) || other.name == name) && (identical(other.description, description) || other.description == description) && @@ -482,12 +482,13 @@ class _$_PairingMetadata implements _PairingMetadata { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PairingMetadataCopyWith<_$_PairingMetadata> get copyWith => - __$$_PairingMetadataCopyWithImpl<_$_PairingMetadata>(this, _$identity); + _$$PairingMetadataImplCopyWith<_$PairingMetadataImpl> get copyWith => + __$$PairingMetadataImplCopyWithImpl<_$PairingMetadataImpl>( + this, _$identity); @override Map toJson() { - return _$$_PairingMetadataToJson( + return _$$PairingMetadataImplToJson( this, ); } @@ -500,10 +501,10 @@ abstract class _PairingMetadata implements PairingMetadata { required final String url, required final List icons, final String? verifyUrl, - final Redirect? redirect}) = _$_PairingMetadata; + final Redirect? redirect}) = _$PairingMetadataImpl; factory _PairingMetadata.fromJson(Map json) = - _$_PairingMetadata.fromJson; + _$PairingMetadataImpl.fromJson; @override String get name; @@ -519,7 +520,7 @@ abstract class _PairingMetadata implements PairingMetadata { Redirect? get redirect; @override @JsonKey(ignore: true) - _$$_PairingMetadataCopyWith<_$_PairingMetadata> get copyWith => + _$$PairingMetadataImplCopyWith<_$PairingMetadataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -576,21 +577,22 @@ class _$RedirectCopyWithImpl<$Res, $Val extends Redirect> } /// @nodoc -abstract class _$$_RedirectCopyWith<$Res> implements $RedirectCopyWith<$Res> { - factory _$$_RedirectCopyWith( - _$_Redirect value, $Res Function(_$_Redirect) then) = - __$$_RedirectCopyWithImpl<$Res>; +abstract class _$$RedirectImplCopyWith<$Res> + implements $RedirectCopyWith<$Res> { + factory _$$RedirectImplCopyWith( + _$RedirectImpl value, $Res Function(_$RedirectImpl) then) = + __$$RedirectImplCopyWithImpl<$Res>; @override @useResult $Res call({String? native, String? universal}); } /// @nodoc -class __$$_RedirectCopyWithImpl<$Res> - extends _$RedirectCopyWithImpl<$Res, _$_Redirect> - implements _$$_RedirectCopyWith<$Res> { - __$$_RedirectCopyWithImpl( - _$_Redirect _value, $Res Function(_$_Redirect) _then) +class __$$RedirectImplCopyWithImpl<$Res> + extends _$RedirectCopyWithImpl<$Res, _$RedirectImpl> + implements _$$RedirectImplCopyWith<$Res> { + __$$RedirectImplCopyWithImpl( + _$RedirectImpl _value, $Res Function(_$RedirectImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -599,7 +601,7 @@ class __$$_RedirectCopyWithImpl<$Res> Object? native = freezed, Object? universal = freezed, }) { - return _then(_$_Redirect( + return _then(_$RedirectImpl( native: freezed == native ? _value.native : native // ignore: cast_nullable_to_non_nullable @@ -615,11 +617,11 @@ class __$$_RedirectCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_Redirect implements _Redirect { - const _$_Redirect({this.native, this.universal}); +class _$RedirectImpl implements _Redirect { + const _$RedirectImpl({this.native, this.universal}); - factory _$_Redirect.fromJson(Map json) => - _$$_RedirectFromJson(json); + factory _$RedirectImpl.fromJson(Map json) => + _$$RedirectImplFromJson(json); @override final String? native; @@ -635,7 +637,7 @@ class _$_Redirect implements _Redirect { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Redirect && + other is _$RedirectImpl && (identical(other.native, native) || other.native == native) && (identical(other.universal, universal) || other.universal == universal)); @@ -648,12 +650,12 @@ class _$_Redirect implements _Redirect { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_RedirectCopyWith<_$_Redirect> get copyWith => - __$$_RedirectCopyWithImpl<_$_Redirect>(this, _$identity); + _$$RedirectImplCopyWith<_$RedirectImpl> get copyWith => + __$$RedirectImplCopyWithImpl<_$RedirectImpl>(this, _$identity); @override Map toJson() { - return _$$_RedirectToJson( + return _$$RedirectImplToJson( this, ); } @@ -661,9 +663,10 @@ class _$_Redirect implements _Redirect { abstract class _Redirect implements Redirect { const factory _Redirect({final String? native, final String? universal}) = - _$_Redirect; + _$RedirectImpl; - factory _Redirect.fromJson(Map json) = _$_Redirect.fromJson; + factory _Redirect.fromJson(Map json) = + _$RedirectImpl.fromJson; @override String? get native; @@ -671,7 +674,7 @@ abstract class _Redirect implements Redirect { String? get universal; @override @JsonKey(ignore: true) - _$$_RedirectCopyWith<_$_Redirect> get copyWith => + _$$RedirectImplCopyWith<_$RedirectImpl> get copyWith => throw _privateConstructorUsedError; } @@ -766,11 +769,11 @@ class _$JsonRpcRecordCopyWithImpl<$Res, $Val extends JsonRpcRecord> } /// @nodoc -abstract class _$$_JsonRpcRecordCopyWith<$Res> +abstract class _$$JsonRpcRecordImplCopyWith<$Res> implements $JsonRpcRecordCopyWith<$Res> { - factory _$$_JsonRpcRecordCopyWith( - _$_JsonRpcRecord value, $Res Function(_$_JsonRpcRecord) then) = - __$$_JsonRpcRecordCopyWithImpl<$Res>; + factory _$$JsonRpcRecordImplCopyWith( + _$JsonRpcRecordImpl value, $Res Function(_$JsonRpcRecordImpl) then) = + __$$JsonRpcRecordImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -784,11 +787,11 @@ abstract class _$$_JsonRpcRecordCopyWith<$Res> } /// @nodoc -class __$$_JsonRpcRecordCopyWithImpl<$Res> - extends _$JsonRpcRecordCopyWithImpl<$Res, _$_JsonRpcRecord> - implements _$$_JsonRpcRecordCopyWith<$Res> { - __$$_JsonRpcRecordCopyWithImpl( - _$_JsonRpcRecord _value, $Res Function(_$_JsonRpcRecord) _then) +class __$$JsonRpcRecordImplCopyWithImpl<$Res> + extends _$JsonRpcRecordCopyWithImpl<$Res, _$JsonRpcRecordImpl> + implements _$$JsonRpcRecordImplCopyWith<$Res> { + __$$JsonRpcRecordImplCopyWithImpl( + _$JsonRpcRecordImpl _value, $Res Function(_$JsonRpcRecordImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -802,7 +805,7 @@ class __$$_JsonRpcRecordCopyWithImpl<$Res> Object? expiry = freezed, Object? response = freezed, }) { - return _then(_$_JsonRpcRecord( + return _then(_$JsonRpcRecordImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -838,8 +841,8 @@ class __$$_JsonRpcRecordCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_JsonRpcRecord implements _JsonRpcRecord { - const _$_JsonRpcRecord( +class _$JsonRpcRecordImpl implements _JsonRpcRecord { + const _$JsonRpcRecordImpl( {required this.id, required this.topic, required this.method, @@ -848,8 +851,8 @@ class _$_JsonRpcRecord implements _JsonRpcRecord { this.expiry, this.response}); - factory _$_JsonRpcRecord.fromJson(Map json) => - _$$_JsonRpcRecordFromJson(json); + factory _$JsonRpcRecordImpl.fromJson(Map json) => + _$$JsonRpcRecordImplFromJson(json); @override final int id; @@ -875,7 +878,7 @@ class _$_JsonRpcRecord implements _JsonRpcRecord { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_JsonRpcRecord && + other is _$JsonRpcRecordImpl && (identical(other.id, id) || other.id == id) && (identical(other.topic, topic) || other.topic == topic) && (identical(other.method, method) || other.method == method) && @@ -900,12 +903,12 @@ class _$_JsonRpcRecord implements _JsonRpcRecord { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_JsonRpcRecordCopyWith<_$_JsonRpcRecord> get copyWith => - __$$_JsonRpcRecordCopyWithImpl<_$_JsonRpcRecord>(this, _$identity); + _$$JsonRpcRecordImplCopyWith<_$JsonRpcRecordImpl> get copyWith => + __$$JsonRpcRecordImplCopyWithImpl<_$JsonRpcRecordImpl>(this, _$identity); @override Map toJson() { - return _$$_JsonRpcRecordToJson( + return _$$JsonRpcRecordImplToJson( this, ); } @@ -919,10 +922,10 @@ abstract class _JsonRpcRecord implements JsonRpcRecord { required final dynamic params, final String? chainId, final int? expiry, - final dynamic response}) = _$_JsonRpcRecord; + final dynamic response}) = _$JsonRpcRecordImpl; factory _JsonRpcRecord.fromJson(Map json) = - _$_JsonRpcRecord.fromJson; + _$JsonRpcRecordImpl.fromJson; @override int get id; @@ -940,7 +943,7 @@ abstract class _JsonRpcRecord implements JsonRpcRecord { dynamic get response; @override @JsonKey(ignore: true) - _$$_JsonRpcRecordCopyWith<_$_JsonRpcRecord> get copyWith => + _$$JsonRpcRecordImplCopyWith<_$JsonRpcRecordImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1004,22 +1007,22 @@ class _$ReceiverPublicKeyCopyWithImpl<$Res, $Val extends ReceiverPublicKey> } /// @nodoc -abstract class _$$_ReceiverPublicKeyCopyWith<$Res> +abstract class _$$ReceiverPublicKeyImplCopyWith<$Res> implements $ReceiverPublicKeyCopyWith<$Res> { - factory _$$_ReceiverPublicKeyCopyWith(_$_ReceiverPublicKey value, - $Res Function(_$_ReceiverPublicKey) then) = - __$$_ReceiverPublicKeyCopyWithImpl<$Res>; + factory _$$ReceiverPublicKeyImplCopyWith(_$ReceiverPublicKeyImpl value, + $Res Function(_$ReceiverPublicKeyImpl) then) = + __$$ReceiverPublicKeyImplCopyWithImpl<$Res>; @override @useResult $Res call({String topic, String publicKey, int expiry}); } /// @nodoc -class __$$_ReceiverPublicKeyCopyWithImpl<$Res> - extends _$ReceiverPublicKeyCopyWithImpl<$Res, _$_ReceiverPublicKey> - implements _$$_ReceiverPublicKeyCopyWith<$Res> { - __$$_ReceiverPublicKeyCopyWithImpl( - _$_ReceiverPublicKey _value, $Res Function(_$_ReceiverPublicKey) _then) +class __$$ReceiverPublicKeyImplCopyWithImpl<$Res> + extends _$ReceiverPublicKeyCopyWithImpl<$Res, _$ReceiverPublicKeyImpl> + implements _$$ReceiverPublicKeyImplCopyWith<$Res> { + __$$ReceiverPublicKeyImplCopyWithImpl(_$ReceiverPublicKeyImpl _value, + $Res Function(_$ReceiverPublicKeyImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1029,7 +1032,7 @@ class __$$_ReceiverPublicKeyCopyWithImpl<$Res> Object? publicKey = null, Object? expiry = null, }) { - return _then(_$_ReceiverPublicKey( + return _then(_$ReceiverPublicKeyImpl( topic: null == topic ? _value.topic : topic // ignore: cast_nullable_to_non_nullable @@ -1049,12 +1052,12 @@ class __$$_ReceiverPublicKeyCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_ReceiverPublicKey implements _ReceiverPublicKey { - const _$_ReceiverPublicKey( +class _$ReceiverPublicKeyImpl implements _ReceiverPublicKey { + const _$ReceiverPublicKeyImpl( {required this.topic, required this.publicKey, required this.expiry}); - factory _$_ReceiverPublicKey.fromJson(Map json) => - _$$_ReceiverPublicKeyFromJson(json); + factory _$ReceiverPublicKeyImpl.fromJson(Map json) => + _$$ReceiverPublicKeyImplFromJson(json); @override final String topic; @@ -1072,7 +1075,7 @@ class _$_ReceiverPublicKey implements _ReceiverPublicKey { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ReceiverPublicKey && + other is _$ReceiverPublicKeyImpl && (identical(other.topic, topic) || other.topic == topic) && (identical(other.publicKey, publicKey) || other.publicKey == publicKey) && @@ -1086,13 +1089,13 @@ class _$_ReceiverPublicKey implements _ReceiverPublicKey { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ReceiverPublicKeyCopyWith<_$_ReceiverPublicKey> get copyWith => - __$$_ReceiverPublicKeyCopyWithImpl<_$_ReceiverPublicKey>( + _$$ReceiverPublicKeyImplCopyWith<_$ReceiverPublicKeyImpl> get copyWith => + __$$ReceiverPublicKeyImplCopyWithImpl<_$ReceiverPublicKeyImpl>( this, _$identity); @override Map toJson() { - return _$$_ReceiverPublicKeyToJson( + return _$$ReceiverPublicKeyImplToJson( this, ); } @@ -1102,10 +1105,10 @@ abstract class _ReceiverPublicKey implements ReceiverPublicKey { const factory _ReceiverPublicKey( {required final String topic, required final String publicKey, - required final int expiry}) = _$_ReceiverPublicKey; + required final int expiry}) = _$ReceiverPublicKeyImpl; factory _ReceiverPublicKey.fromJson(Map json) = - _$_ReceiverPublicKey.fromJson; + _$ReceiverPublicKeyImpl.fromJson; @override String get topic; @@ -1115,6 +1118,6 @@ abstract class _ReceiverPublicKey implements ReceiverPublicKey { int get expiry; @override @JsonKey(ignore: true) - _$$_ReceiverPublicKeyCopyWith<_$_ReceiverPublicKey> get copyWith => + _$$ReceiverPublicKeyImplCopyWith<_$ReceiverPublicKeyImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/apis/core/pairing/utils/pairing_models.g.dart b/lib/apis/core/pairing/utils/pairing_models.g.dart index f7cbd239..4f064249 100644 --- a/lib/apis/core/pairing/utils/pairing_models.g.dart +++ b/lib/apis/core/pairing/utils/pairing_models.g.dart @@ -6,8 +6,8 @@ part of 'pairing_models.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PairingInfo _$$_PairingInfoFromJson(Map json) => - _$_PairingInfo( +_$PairingInfoImpl _$$PairingInfoImplFromJson(Map json) => + _$PairingInfoImpl( topic: json['topic'] as String, expiry: json['expiry'] as int, relay: Relay.fromJson(json['relay'] as Map), @@ -18,7 +18,7 @@ _$_PairingInfo _$$_PairingInfoFromJson(Map json) => json['peerMetadata'] as Map), ); -Map _$$_PairingInfoToJson(_$_PairingInfo instance) => +Map _$$PairingInfoImplToJson(_$PairingInfoImpl instance) => { 'topic': instance.topic, 'expiry': instance.expiry, @@ -27,8 +27,9 @@ Map _$$_PairingInfoToJson(_$_PairingInfo instance) => 'peerMetadata': instance.peerMetadata?.toJson(), }; -_$_PairingMetadata _$$_PairingMetadataFromJson(Map json) => - _$_PairingMetadata( +_$PairingMetadataImpl _$$PairingMetadataImplFromJson( + Map json) => + _$PairingMetadataImpl( name: json['name'] as String, description: json['description'] as String, url: json['url'] as String, @@ -39,7 +40,8 @@ _$_PairingMetadata _$$_PairingMetadataFromJson(Map json) => : Redirect.fromJson(json['redirect'] as Map), ); -Map _$$_PairingMetadataToJson(_$_PairingMetadata instance) { +Map _$$PairingMetadataImplToJson( + _$PairingMetadataImpl instance) { final val = { 'name': instance.name, 'description': instance.description, @@ -58,19 +60,20 @@ Map _$$_PairingMetadataToJson(_$_PairingMetadata instance) { return val; } -_$_Redirect _$$_RedirectFromJson(Map json) => _$_Redirect( +_$RedirectImpl _$$RedirectImplFromJson(Map json) => + _$RedirectImpl( native: json['native'] as String?, universal: json['universal'] as String?, ); -Map _$$_RedirectToJson(_$_Redirect instance) => +Map _$$RedirectImplToJson(_$RedirectImpl instance) => { 'native': instance.native, 'universal': instance.universal, }; -_$_JsonRpcRecord _$$_JsonRpcRecordFromJson(Map json) => - _$_JsonRpcRecord( +_$JsonRpcRecordImpl _$$JsonRpcRecordImplFromJson(Map json) => + _$JsonRpcRecordImpl( id: json['id'] as int, topic: json['topic'] as String, method: json['method'] as String, @@ -80,7 +83,7 @@ _$_JsonRpcRecord _$$_JsonRpcRecordFromJson(Map json) => response: json['response'], ); -Map _$$_JsonRpcRecordToJson(_$_JsonRpcRecord instance) { +Map _$$JsonRpcRecordImplToJson(_$JsonRpcRecordImpl instance) { final val = { 'id': instance.id, 'topic': instance.topic, @@ -100,15 +103,16 @@ Map _$$_JsonRpcRecordToJson(_$_JsonRpcRecord instance) { return val; } -_$_ReceiverPublicKey _$$_ReceiverPublicKeyFromJson(Map json) => - _$_ReceiverPublicKey( +_$ReceiverPublicKeyImpl _$$ReceiverPublicKeyImplFromJson( + Map json) => + _$ReceiverPublicKeyImpl( topic: json['topic'] as String, publicKey: json['publicKey'] as String, expiry: json['expiry'] as int, ); -Map _$$_ReceiverPublicKeyToJson( - _$_ReceiverPublicKey instance) => +Map _$$ReceiverPublicKeyImplToJson( + _$ReceiverPublicKeyImpl instance) => { 'topic': instance.topic, 'publicKey': instance.publicKey, diff --git a/lib/apis/core/verify/models/verify_context.freezed.dart b/lib/apis/core/verify/models/verify_context.freezed.dart index 985355f3..a10cb641 100644 --- a/lib/apis/core/verify/models/verify_context.freezed.dart +++ b/lib/apis/core/verify/models/verify_context.freezed.dart @@ -81,11 +81,11 @@ class _$VerifyContextCopyWithImpl<$Res, $Val extends VerifyContext> } /// @nodoc -abstract class _$$_VerifyContextCopyWith<$Res> +abstract class _$$VerifyContextImplCopyWith<$Res> implements $VerifyContextCopyWith<$Res> { - factory _$$_VerifyContextCopyWith( - _$_VerifyContext value, $Res Function(_$_VerifyContext) then) = - __$$_VerifyContextCopyWithImpl<$Res>; + factory _$$VerifyContextImplCopyWith( + _$VerifyContextImpl value, $Res Function(_$VerifyContextImpl) then) = + __$$VerifyContextImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -93,11 +93,11 @@ abstract class _$$_VerifyContextCopyWith<$Res> } /// @nodoc -class __$$_VerifyContextCopyWithImpl<$Res> - extends _$VerifyContextCopyWithImpl<$Res, _$_VerifyContext> - implements _$$_VerifyContextCopyWith<$Res> { - __$$_VerifyContextCopyWithImpl( - _$_VerifyContext _value, $Res Function(_$_VerifyContext) _then) +class __$$VerifyContextImplCopyWithImpl<$Res> + extends _$VerifyContextCopyWithImpl<$Res, _$VerifyContextImpl> + implements _$$VerifyContextImplCopyWith<$Res> { + __$$VerifyContextImplCopyWithImpl( + _$VerifyContextImpl _value, $Res Function(_$VerifyContextImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -108,7 +108,7 @@ class __$$_VerifyContextCopyWithImpl<$Res> Object? verifyUrl = null, Object? isScam = freezed, }) { - return _then(_$_VerifyContext( + return _then(_$VerifyContextImpl( origin: null == origin ? _value.origin : origin // ignore: cast_nullable_to_non_nullable @@ -132,15 +132,15 @@ class __$$_VerifyContextCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_VerifyContext implements _VerifyContext { - const _$_VerifyContext( +class _$VerifyContextImpl implements _VerifyContext { + const _$VerifyContextImpl( {required this.origin, required this.validation, required this.verifyUrl, this.isScam}); - factory _$_VerifyContext.fromJson(Map json) => - _$$_VerifyContextFromJson(json); + factory _$VerifyContextImpl.fromJson(Map json) => + _$$VerifyContextImplFromJson(json); @override final String origin; @@ -160,7 +160,7 @@ class _$_VerifyContext implements _VerifyContext { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_VerifyContext && + other is _$VerifyContextImpl && (identical(other.origin, origin) || other.origin == origin) && (identical(other.validation, validation) || other.validation == validation) && @@ -177,12 +177,12 @@ class _$_VerifyContext implements _VerifyContext { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_VerifyContextCopyWith<_$_VerifyContext> get copyWith => - __$$_VerifyContextCopyWithImpl<_$_VerifyContext>(this, _$identity); + _$$VerifyContextImplCopyWith<_$VerifyContextImpl> get copyWith => + __$$VerifyContextImplCopyWithImpl<_$VerifyContextImpl>(this, _$identity); @override Map toJson() { - return _$$_VerifyContextToJson( + return _$$VerifyContextImplToJson( this, ); } @@ -193,10 +193,10 @@ abstract class _VerifyContext implements VerifyContext { {required final String origin, required final Validation validation, required final String verifyUrl, - final bool? isScam}) = _$_VerifyContext; + final bool? isScam}) = _$VerifyContextImpl; factory _VerifyContext.fromJson(Map json) = - _$_VerifyContext.fromJson; + _$VerifyContextImpl.fromJson; @override String get origin; @@ -208,7 +208,7 @@ abstract class _VerifyContext implements VerifyContext { bool? get isScam; @override @JsonKey(ignore: true) - _$$_VerifyContextCopyWith<_$_VerifyContext> get copyWith => + _$$VerifyContextImplCopyWith<_$VerifyContextImpl> get copyWith => throw _privateConstructorUsedError; } @@ -272,22 +272,22 @@ class _$AttestationResponseCopyWithImpl<$Res, $Val extends AttestationResponse> } /// @nodoc -abstract class _$$_AttestationResponseCopyWith<$Res> +abstract class _$$AttestationResponseImplCopyWith<$Res> implements $AttestationResponseCopyWith<$Res> { - factory _$$_AttestationResponseCopyWith(_$_AttestationResponse value, - $Res Function(_$_AttestationResponse) then) = - __$$_AttestationResponseCopyWithImpl<$Res>; + factory _$$AttestationResponseImplCopyWith(_$AttestationResponseImpl value, + $Res Function(_$AttestationResponseImpl) then) = + __$$AttestationResponseImplCopyWithImpl<$Res>; @override @useResult $Res call({String origin, String attestationId, bool? isScam}); } /// @nodoc -class __$$_AttestationResponseCopyWithImpl<$Res> - extends _$AttestationResponseCopyWithImpl<$Res, _$_AttestationResponse> - implements _$$_AttestationResponseCopyWith<$Res> { - __$$_AttestationResponseCopyWithImpl(_$_AttestationResponse _value, - $Res Function(_$_AttestationResponse) _then) +class __$$AttestationResponseImplCopyWithImpl<$Res> + extends _$AttestationResponseCopyWithImpl<$Res, _$AttestationResponseImpl> + implements _$$AttestationResponseImplCopyWith<$Res> { + __$$AttestationResponseImplCopyWithImpl(_$AttestationResponseImpl _value, + $Res Function(_$AttestationResponseImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -297,7 +297,7 @@ class __$$_AttestationResponseCopyWithImpl<$Res> Object? attestationId = null, Object? isScam = freezed, }) { - return _then(_$_AttestationResponse( + return _then(_$AttestationResponseImpl( origin: null == origin ? _value.origin : origin // ignore: cast_nullable_to_non_nullable @@ -317,12 +317,12 @@ class __$$_AttestationResponseCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_AttestationResponse implements _AttestationResponse { - const _$_AttestationResponse( +class _$AttestationResponseImpl implements _AttestationResponse { + const _$AttestationResponseImpl( {required this.origin, required this.attestationId, this.isScam}); - factory _$_AttestationResponse.fromJson(Map json) => - _$$_AttestationResponseFromJson(json); + factory _$AttestationResponseImpl.fromJson(Map json) => + _$$AttestationResponseImplFromJson(json); @override final String origin; @@ -340,7 +340,7 @@ class _$_AttestationResponse implements _AttestationResponse { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_AttestationResponse && + other is _$AttestationResponseImpl && (identical(other.origin, origin) || other.origin == origin) && (identical(other.attestationId, attestationId) || other.attestationId == attestationId) && @@ -354,13 +354,13 @@ class _$_AttestationResponse implements _AttestationResponse { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_AttestationResponseCopyWith<_$_AttestationResponse> get copyWith => - __$$_AttestationResponseCopyWithImpl<_$_AttestationResponse>( + _$$AttestationResponseImplCopyWith<_$AttestationResponseImpl> get copyWith => + __$$AttestationResponseImplCopyWithImpl<_$AttestationResponseImpl>( this, _$identity); @override Map toJson() { - return _$$_AttestationResponseToJson( + return _$$AttestationResponseImplToJson( this, ); } @@ -370,10 +370,10 @@ abstract class _AttestationResponse implements AttestationResponse { const factory _AttestationResponse( {required final String origin, required final String attestationId, - final bool? isScam}) = _$_AttestationResponse; + final bool? isScam}) = _$AttestationResponseImpl; factory _AttestationResponse.fromJson(Map json) = - _$_AttestationResponse.fromJson; + _$AttestationResponseImpl.fromJson; @override String get origin; @@ -383,6 +383,6 @@ abstract class _AttestationResponse implements AttestationResponse { bool? get isScam; @override @JsonKey(ignore: true) - _$$_AttestationResponseCopyWith<_$_AttestationResponse> get copyWith => + _$$AttestationResponseImplCopyWith<_$AttestationResponseImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/apis/core/verify/models/verify_context.g.dart b/lib/apis/core/verify/models/verify_context.g.dart index 41b5eb12..f1c53d9e 100644 --- a/lib/apis/core/verify/models/verify_context.g.dart +++ b/lib/apis/core/verify/models/verify_context.g.dart @@ -6,15 +6,15 @@ part of 'verify_context.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_VerifyContext _$$_VerifyContextFromJson(Map json) => - _$_VerifyContext( +_$VerifyContextImpl _$$VerifyContextImplFromJson(Map json) => + _$VerifyContextImpl( origin: json['origin'] as String, validation: $enumDecode(_$ValidationEnumMap, json['validation']), verifyUrl: json['verifyUrl'] as String, isScam: json['isScam'] as bool?, ); -Map _$$_VerifyContextToJson(_$_VerifyContext instance) => +Map _$$VerifyContextImplToJson(_$VerifyContextImpl instance) => { 'origin': instance.origin, 'validation': _$ValidationEnumMap[instance.validation]!, @@ -29,16 +29,16 @@ const _$ValidationEnumMap = { Validation.SCAM: 'SCAM', }; -_$_AttestationResponse _$$_AttestationResponseFromJson( +_$AttestationResponseImpl _$$AttestationResponseImplFromJson( Map json) => - _$_AttestationResponse( + _$AttestationResponseImpl( origin: json['origin'] as String, attestationId: json['attestationId'] as String, isScam: json['isScam'] as bool?, ); -Map _$$_AttestationResponseToJson( - _$_AttestationResponse instance) => +Map _$$AttestationResponseImplToJson( + _$AttestationResponseImpl instance) => { 'origin': instance.origin, 'attestationId': instance.attestationId, diff --git a/lib/apis/models/basic_models.freezed.dart b/lib/apis/models/basic_models.freezed.dart index c845dea2..30bead8d 100644 --- a/lib/apis/models/basic_models.freezed.dart +++ b/lib/apis/models/basic_models.freezed.dart @@ -74,22 +74,22 @@ class _$WalletConnectErrorCopyWithImpl<$Res, $Val extends WalletConnectError> } /// @nodoc -abstract class _$$_WalletConnectErrorCopyWith<$Res> +abstract class _$$WalletConnectErrorImplCopyWith<$Res> implements $WalletConnectErrorCopyWith<$Res> { - factory _$$_WalletConnectErrorCopyWith(_$_WalletConnectError value, - $Res Function(_$_WalletConnectError) then) = - __$$_WalletConnectErrorCopyWithImpl<$Res>; + factory _$$WalletConnectErrorImplCopyWith(_$WalletConnectErrorImpl value, + $Res Function(_$WalletConnectErrorImpl) then) = + __$$WalletConnectErrorImplCopyWithImpl<$Res>; @override @useResult $Res call({int code, String message, String? data}); } /// @nodoc -class __$$_WalletConnectErrorCopyWithImpl<$Res> - extends _$WalletConnectErrorCopyWithImpl<$Res, _$_WalletConnectError> - implements _$$_WalletConnectErrorCopyWith<$Res> { - __$$_WalletConnectErrorCopyWithImpl( - _$_WalletConnectError _value, $Res Function(_$_WalletConnectError) _then) +class __$$WalletConnectErrorImplCopyWithImpl<$Res> + extends _$WalletConnectErrorCopyWithImpl<$Res, _$WalletConnectErrorImpl> + implements _$$WalletConnectErrorImplCopyWith<$Res> { + __$$WalletConnectErrorImplCopyWithImpl(_$WalletConnectErrorImpl _value, + $Res Function(_$WalletConnectErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -99,7 +99,7 @@ class __$$_WalletConnectErrorCopyWithImpl<$Res> Object? message = null, Object? data = freezed, }) { - return _then(_$_WalletConnectError( + return _then(_$WalletConnectErrorImpl( code: null == code ? _value.code : code // ignore: cast_nullable_to_non_nullable @@ -118,12 +118,12 @@ class __$$_WalletConnectErrorCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_WalletConnectError implements _WalletConnectError { - const _$_WalletConnectError( +class _$WalletConnectErrorImpl implements _WalletConnectError { + const _$WalletConnectErrorImpl( {required this.code, required this.message, this.data}); - factory _$_WalletConnectError.fromJson(Map json) => - _$$_WalletConnectErrorFromJson(json); + factory _$WalletConnectErrorImpl.fromJson(Map json) => + _$$WalletConnectErrorImplFromJson(json); @override final int code; @@ -141,7 +141,7 @@ class _$_WalletConnectError implements _WalletConnectError { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_WalletConnectError && + other is _$WalletConnectErrorImpl && (identical(other.code, code) || other.code == code) && (identical(other.message, message) || other.message == message) && (identical(other.data, data) || other.data == data)); @@ -154,13 +154,13 @@ class _$_WalletConnectError implements _WalletConnectError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_WalletConnectErrorCopyWith<_$_WalletConnectError> get copyWith => - __$$_WalletConnectErrorCopyWithImpl<_$_WalletConnectError>( + _$$WalletConnectErrorImplCopyWith<_$WalletConnectErrorImpl> get copyWith => + __$$WalletConnectErrorImplCopyWithImpl<_$WalletConnectErrorImpl>( this, _$identity); @override Map toJson() { - return _$$_WalletConnectErrorToJson( + return _$$WalletConnectErrorImplToJson( this, ); } @@ -170,10 +170,10 @@ abstract class _WalletConnectError implements WalletConnectError { const factory _WalletConnectError( {required final int code, required final String message, - final String? data}) = _$_WalletConnectError; + final String? data}) = _$WalletConnectErrorImpl; factory _WalletConnectError.fromJson(Map json) = - _$_WalletConnectError.fromJson; + _$WalletConnectErrorImpl.fromJson; @override int get code; @@ -183,7 +183,7 @@ abstract class _WalletConnectError implements WalletConnectError { String? get data; @override @JsonKey(ignore: true) - _$$_WalletConnectErrorCopyWith<_$_WalletConnectError> get copyWith => + _$$WalletConnectErrorImplCopyWith<_$WalletConnectErrorImpl> get copyWith => throw _privateConstructorUsedError; } @@ -242,22 +242,22 @@ class _$RpcOptionsCopyWithImpl<$Res, $Val extends RpcOptions> } /// @nodoc -abstract class _$$_RpcOptionsCopyWith<$Res> +abstract class _$$RpcOptionsImplCopyWith<$Res> implements $RpcOptionsCopyWith<$Res> { - factory _$$_RpcOptionsCopyWith( - _$_RpcOptions value, $Res Function(_$_RpcOptions) then) = - __$$_RpcOptionsCopyWithImpl<$Res>; + factory _$$RpcOptionsImplCopyWith( + _$RpcOptionsImpl value, $Res Function(_$RpcOptionsImpl) then) = + __$$RpcOptionsImplCopyWithImpl<$Res>; @override @useResult $Res call({int ttl, bool prompt, int tag}); } /// @nodoc -class __$$_RpcOptionsCopyWithImpl<$Res> - extends _$RpcOptionsCopyWithImpl<$Res, _$_RpcOptions> - implements _$$_RpcOptionsCopyWith<$Res> { - __$$_RpcOptionsCopyWithImpl( - _$_RpcOptions _value, $Res Function(_$_RpcOptions) _then) +class __$$RpcOptionsImplCopyWithImpl<$Res> + extends _$RpcOptionsCopyWithImpl<$Res, _$RpcOptionsImpl> + implements _$$RpcOptionsImplCopyWith<$Res> { + __$$RpcOptionsImplCopyWithImpl( + _$RpcOptionsImpl _value, $Res Function(_$RpcOptionsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -267,7 +267,7 @@ class __$$_RpcOptionsCopyWithImpl<$Res> Object? prompt = null, Object? tag = null, }) { - return _then(_$_RpcOptions( + return _then(_$RpcOptionsImpl( ttl: null == ttl ? _value.ttl : ttl // ignore: cast_nullable_to_non_nullable @@ -286,8 +286,8 @@ class __$$_RpcOptionsCopyWithImpl<$Res> /// @nodoc -class _$_RpcOptions implements _RpcOptions { - const _$_RpcOptions( +class _$RpcOptionsImpl implements _RpcOptions { + const _$RpcOptionsImpl( {required this.ttl, required this.prompt, required this.tag}); @override @@ -306,7 +306,7 @@ class _$_RpcOptions implements _RpcOptions { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_RpcOptions && + other is _$RpcOptionsImpl && (identical(other.ttl, ttl) || other.ttl == ttl) && (identical(other.prompt, prompt) || other.prompt == prompt) && (identical(other.tag, tag) || other.tag == tag)); @@ -318,15 +318,15 @@ class _$_RpcOptions implements _RpcOptions { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_RpcOptionsCopyWith<_$_RpcOptions> get copyWith => - __$$_RpcOptionsCopyWithImpl<_$_RpcOptions>(this, _$identity); + _$$RpcOptionsImplCopyWith<_$RpcOptionsImpl> get copyWith => + __$$RpcOptionsImplCopyWithImpl<_$RpcOptionsImpl>(this, _$identity); } abstract class _RpcOptions implements RpcOptions { const factory _RpcOptions( {required final int ttl, required final bool prompt, - required final int tag}) = _$_RpcOptions; + required final int tag}) = _$RpcOptionsImpl; @override int get ttl; @@ -336,7 +336,7 @@ abstract class _RpcOptions implements RpcOptions { int get tag; @override @JsonKey(ignore: true) - _$$_RpcOptionsCopyWith<_$_RpcOptions> get copyWith => + _$$RpcOptionsImplCopyWith<_$RpcOptionsImpl> get copyWith => throw _privateConstructorUsedError; } @@ -404,11 +404,11 @@ class _$ConnectionMetadataCopyWithImpl<$Res, $Val extends ConnectionMetadata> } /// @nodoc -abstract class _$$_ConnectionMetadataCopyWith<$Res> +abstract class _$$ConnectionMetadataImplCopyWith<$Res> implements $ConnectionMetadataCopyWith<$Res> { - factory _$$_ConnectionMetadataCopyWith(_$_ConnectionMetadata value, - $Res Function(_$_ConnectionMetadata) then) = - __$$_ConnectionMetadataCopyWithImpl<$Res>; + factory _$$ConnectionMetadataImplCopyWith(_$ConnectionMetadataImpl value, + $Res Function(_$ConnectionMetadataImpl) then) = + __$$ConnectionMetadataImplCopyWithImpl<$Res>; @override @useResult $Res call({String publicKey, PairingMetadata metadata}); @@ -418,11 +418,11 @@ abstract class _$$_ConnectionMetadataCopyWith<$Res> } /// @nodoc -class __$$_ConnectionMetadataCopyWithImpl<$Res> - extends _$ConnectionMetadataCopyWithImpl<$Res, _$_ConnectionMetadata> - implements _$$_ConnectionMetadataCopyWith<$Res> { - __$$_ConnectionMetadataCopyWithImpl( - _$_ConnectionMetadata _value, $Res Function(_$_ConnectionMetadata) _then) +class __$$ConnectionMetadataImplCopyWithImpl<$Res> + extends _$ConnectionMetadataCopyWithImpl<$Res, _$ConnectionMetadataImpl> + implements _$$ConnectionMetadataImplCopyWith<$Res> { + __$$ConnectionMetadataImplCopyWithImpl(_$ConnectionMetadataImpl _value, + $Res Function(_$ConnectionMetadataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -431,7 +431,7 @@ class __$$_ConnectionMetadataCopyWithImpl<$Res> Object? publicKey = null, Object? metadata = null, }) { - return _then(_$_ConnectionMetadata( + return _then(_$ConnectionMetadataImpl( publicKey: null == publicKey ? _value.publicKey : publicKey // ignore: cast_nullable_to_non_nullable @@ -446,12 +446,12 @@ class __$$_ConnectionMetadataCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ConnectionMetadata implements _ConnectionMetadata { - const _$_ConnectionMetadata( +class _$ConnectionMetadataImpl implements _ConnectionMetadata { + const _$ConnectionMetadataImpl( {required this.publicKey, required this.metadata}); - factory _$_ConnectionMetadata.fromJson(Map json) => - _$$_ConnectionMetadataFromJson(json); + factory _$ConnectionMetadataImpl.fromJson(Map json) => + _$$ConnectionMetadataImplFromJson(json); @override final String publicKey; @@ -467,7 +467,7 @@ class _$_ConnectionMetadata implements _ConnectionMetadata { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ConnectionMetadata && + other is _$ConnectionMetadataImpl && (identical(other.publicKey, publicKey) || other.publicKey == publicKey) && (identical(other.metadata, metadata) || @@ -481,13 +481,13 @@ class _$_ConnectionMetadata implements _ConnectionMetadata { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ConnectionMetadataCopyWith<_$_ConnectionMetadata> get copyWith => - __$$_ConnectionMetadataCopyWithImpl<_$_ConnectionMetadata>( + _$$ConnectionMetadataImplCopyWith<_$ConnectionMetadataImpl> get copyWith => + __$$ConnectionMetadataImplCopyWithImpl<_$ConnectionMetadataImpl>( this, _$identity); @override Map toJson() { - return _$$_ConnectionMetadataToJson( + return _$$ConnectionMetadataImplToJson( this, ); } @@ -496,10 +496,10 @@ class _$_ConnectionMetadata implements _ConnectionMetadata { abstract class _ConnectionMetadata implements ConnectionMetadata { const factory _ConnectionMetadata( {required final String publicKey, - required final PairingMetadata metadata}) = _$_ConnectionMetadata; + required final PairingMetadata metadata}) = _$ConnectionMetadataImpl; factory _ConnectionMetadata.fromJson(Map json) = - _$_ConnectionMetadata.fromJson; + _$ConnectionMetadataImpl.fromJson; @override String get publicKey; @@ -507,6 +507,6 @@ abstract class _ConnectionMetadata implements ConnectionMetadata { PairingMetadata get metadata; @override @JsonKey(ignore: true) - _$$_ConnectionMetadataCopyWith<_$_ConnectionMetadata> get copyWith => + _$$ConnectionMetadataImplCopyWith<_$ConnectionMetadataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/apis/models/basic_models.g.dart b/lib/apis/models/basic_models.g.dart index 4d8caf4e..24ae3314 100644 --- a/lib/apis/models/basic_models.g.dart +++ b/lib/apis/models/basic_models.g.dart @@ -6,32 +6,32 @@ part of 'basic_models.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_WalletConnectError _$$_WalletConnectErrorFromJson( +_$WalletConnectErrorImpl _$$WalletConnectErrorImplFromJson( Map json) => - _$_WalletConnectError( + _$WalletConnectErrorImpl( code: json['code'] as int, message: json['message'] as String, data: json['data'] as String?, ); -Map _$$_WalletConnectErrorToJson( - _$_WalletConnectError instance) => +Map _$$WalletConnectErrorImplToJson( + _$WalletConnectErrorImpl instance) => { 'code': instance.code, 'message': instance.message, 'data': instance.data, }; -_$_ConnectionMetadata _$$_ConnectionMetadataFromJson( +_$ConnectionMetadataImpl _$$ConnectionMetadataImplFromJson( Map json) => - _$_ConnectionMetadata( + _$ConnectionMetadataImpl( publicKey: json['publicKey'] as String, metadata: PairingMetadata.fromJson(json['metadata'] as Map), ); -Map _$$_ConnectionMetadataToJson( - _$_ConnectionMetadata instance) => +Map _$$ConnectionMetadataImplToJson( + _$ConnectionMetadataImpl instance) => { 'publicKey': instance.publicKey, 'metadata': instance.metadata.toJson(), diff --git a/lib/apis/models/json_rpc_error.freezed.dart b/lib/apis/models/json_rpc_error.freezed.dart index 5163ff4e..13304bda 100644 --- a/lib/apis/models/json_rpc_error.freezed.dart +++ b/lib/apis/models/json_rpc_error.freezed.dart @@ -68,22 +68,22 @@ class _$JsonRpcErrorCopyWithImpl<$Res, $Val extends JsonRpcError> } /// @nodoc -abstract class _$$_JsonRpcErrorCopyWith<$Res> +abstract class _$$JsonRpcErrorImplCopyWith<$Res> implements $JsonRpcErrorCopyWith<$Res> { - factory _$$_JsonRpcErrorCopyWith( - _$_JsonRpcError value, $Res Function(_$_JsonRpcError) then) = - __$$_JsonRpcErrorCopyWithImpl<$Res>; + factory _$$JsonRpcErrorImplCopyWith( + _$JsonRpcErrorImpl value, $Res Function(_$JsonRpcErrorImpl) then) = + __$$JsonRpcErrorImplCopyWithImpl<$Res>; @override @useResult $Res call({int? code, String? message}); } /// @nodoc -class __$$_JsonRpcErrorCopyWithImpl<$Res> - extends _$JsonRpcErrorCopyWithImpl<$Res, _$_JsonRpcError> - implements _$$_JsonRpcErrorCopyWith<$Res> { - __$$_JsonRpcErrorCopyWithImpl( - _$_JsonRpcError _value, $Res Function(_$_JsonRpcError) _then) +class __$$JsonRpcErrorImplCopyWithImpl<$Res> + extends _$JsonRpcErrorCopyWithImpl<$Res, _$JsonRpcErrorImpl> + implements _$$JsonRpcErrorImplCopyWith<$Res> { + __$$JsonRpcErrorImplCopyWithImpl( + _$JsonRpcErrorImpl _value, $Res Function(_$JsonRpcErrorImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -92,7 +92,7 @@ class __$$_JsonRpcErrorCopyWithImpl<$Res> Object? code = freezed, Object? message = freezed, }) { - return _then(_$_JsonRpcError( + return _then(_$JsonRpcErrorImpl( code: freezed == code ? _value.code : code // ignore: cast_nullable_to_non_nullable @@ -108,11 +108,11 @@ class __$$_JsonRpcErrorCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_JsonRpcError implements _JsonRpcError { - const _$_JsonRpcError({this.code, this.message}); +class _$JsonRpcErrorImpl implements _JsonRpcError { + const _$JsonRpcErrorImpl({this.code, this.message}); - factory _$_JsonRpcError.fromJson(Map json) => - _$$_JsonRpcErrorFromJson(json); + factory _$JsonRpcErrorImpl.fromJson(Map json) => + _$$JsonRpcErrorImplFromJson(json); @override final int? code; @@ -128,7 +128,7 @@ class _$_JsonRpcError implements _JsonRpcError { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_JsonRpcError && + other is _$JsonRpcErrorImpl && (identical(other.code, code) || other.code == code) && (identical(other.message, message) || other.message == message)); } @@ -140,12 +140,12 @@ class _$_JsonRpcError implements _JsonRpcError { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_JsonRpcErrorCopyWith<_$_JsonRpcError> get copyWith => - __$$_JsonRpcErrorCopyWithImpl<_$_JsonRpcError>(this, _$identity); + _$$JsonRpcErrorImplCopyWith<_$JsonRpcErrorImpl> get copyWith => + __$$JsonRpcErrorImplCopyWithImpl<_$JsonRpcErrorImpl>(this, _$identity); @override Map toJson() { - return _$$_JsonRpcErrorToJson( + return _$$JsonRpcErrorImplToJson( this, ); } @@ -153,10 +153,10 @@ class _$_JsonRpcError implements _JsonRpcError { abstract class _JsonRpcError implements JsonRpcError { const factory _JsonRpcError({final int? code, final String? message}) = - _$_JsonRpcError; + _$JsonRpcErrorImpl; factory _JsonRpcError.fromJson(Map json) = - _$_JsonRpcError.fromJson; + _$JsonRpcErrorImpl.fromJson; @override int? get code; @@ -164,6 +164,6 @@ abstract class _JsonRpcError implements JsonRpcError { String? get message; @override @JsonKey(ignore: true) - _$$_JsonRpcErrorCopyWith<_$_JsonRpcError> get copyWith => + _$$JsonRpcErrorImplCopyWith<_$JsonRpcErrorImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/apis/models/json_rpc_error.g.dart b/lib/apis/models/json_rpc_error.g.dart index 953788b3..ce1b1cd9 100644 --- a/lib/apis/models/json_rpc_error.g.dart +++ b/lib/apis/models/json_rpc_error.g.dart @@ -6,13 +6,13 @@ part of 'json_rpc_error.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_JsonRpcError _$$_JsonRpcErrorFromJson(Map json) => - _$_JsonRpcError( +_$JsonRpcErrorImpl _$$JsonRpcErrorImplFromJson(Map json) => + _$JsonRpcErrorImpl( code: json['code'] as int?, message: json['message'] as String?, ); -Map _$$_JsonRpcErrorToJson(_$_JsonRpcError instance) { +Map _$$JsonRpcErrorImplToJson(_$JsonRpcErrorImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { diff --git a/lib/apis/models/json_rpc_request.freezed.dart b/lib/apis/models/json_rpc_request.freezed.dart index 65f68d93..ea961a82 100644 --- a/lib/apis/models/json_rpc_request.freezed.dart +++ b/lib/apis/models/json_rpc_request.freezed.dart @@ -80,22 +80,22 @@ class _$JsonRpcRequestCopyWithImpl<$Res, $Val extends JsonRpcRequest> } /// @nodoc -abstract class _$$_JsonRpcRequestCopyWith<$Res> +abstract class _$$JsonRpcRequestImplCopyWith<$Res> implements $JsonRpcRequestCopyWith<$Res> { - factory _$$_JsonRpcRequestCopyWith( - _$_JsonRpcRequest value, $Res Function(_$_JsonRpcRequest) then) = - __$$_JsonRpcRequestCopyWithImpl<$Res>; + factory _$$JsonRpcRequestImplCopyWith(_$JsonRpcRequestImpl value, + $Res Function(_$JsonRpcRequestImpl) then) = + __$$JsonRpcRequestImplCopyWithImpl<$Res>; @override @useResult $Res call({int id, String jsonrpc, String method, dynamic params}); } /// @nodoc -class __$$_JsonRpcRequestCopyWithImpl<$Res> - extends _$JsonRpcRequestCopyWithImpl<$Res, _$_JsonRpcRequest> - implements _$$_JsonRpcRequestCopyWith<$Res> { - __$$_JsonRpcRequestCopyWithImpl( - _$_JsonRpcRequest _value, $Res Function(_$_JsonRpcRequest) _then) +class __$$JsonRpcRequestImplCopyWithImpl<$Res> + extends _$JsonRpcRequestCopyWithImpl<$Res, _$JsonRpcRequestImpl> + implements _$$JsonRpcRequestImplCopyWith<$Res> { + __$$JsonRpcRequestImplCopyWithImpl( + _$JsonRpcRequestImpl _value, $Res Function(_$JsonRpcRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -106,7 +106,7 @@ class __$$_JsonRpcRequestCopyWithImpl<$Res> Object? method = null, Object? params = freezed, }) { - return _then(_$_JsonRpcRequest( + return _then(_$JsonRpcRequestImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -130,15 +130,15 @@ class __$$_JsonRpcRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_JsonRpcRequest implements _JsonRpcRequest { - const _$_JsonRpcRequest( +class _$JsonRpcRequestImpl implements _JsonRpcRequest { + const _$JsonRpcRequestImpl( {required this.id, this.jsonrpc = '2.0', required this.method, this.params}); - factory _$_JsonRpcRequest.fromJson(Map json) => - _$$_JsonRpcRequestFromJson(json); + factory _$JsonRpcRequestImpl.fromJson(Map json) => + _$$JsonRpcRequestImplFromJson(json); @override final int id; @@ -159,7 +159,7 @@ class _$_JsonRpcRequest implements _JsonRpcRequest { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_JsonRpcRequest && + other is _$JsonRpcRequestImpl && (identical(other.id, id) || other.id == id) && (identical(other.jsonrpc, jsonrpc) || other.jsonrpc == jsonrpc) && (identical(other.method, method) || other.method == method) && @@ -174,12 +174,13 @@ class _$_JsonRpcRequest implements _JsonRpcRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_JsonRpcRequestCopyWith<_$_JsonRpcRequest> get copyWith => - __$$_JsonRpcRequestCopyWithImpl<_$_JsonRpcRequest>(this, _$identity); + _$$JsonRpcRequestImplCopyWith<_$JsonRpcRequestImpl> get copyWith => + __$$JsonRpcRequestImplCopyWithImpl<_$JsonRpcRequestImpl>( + this, _$identity); @override Map toJson() { - return _$$_JsonRpcRequestToJson( + return _$$JsonRpcRequestImplToJson( this, ); } @@ -190,10 +191,10 @@ abstract class _JsonRpcRequest implements JsonRpcRequest { {required final int id, final String jsonrpc, required final String method, - final dynamic params}) = _$_JsonRpcRequest; + final dynamic params}) = _$JsonRpcRequestImpl; factory _JsonRpcRequest.fromJson(Map json) = - _$_JsonRpcRequest.fromJson; + _$JsonRpcRequestImpl.fromJson; @override int get id; @@ -205,6 +206,6 @@ abstract class _JsonRpcRequest implements JsonRpcRequest { dynamic get params; @override @JsonKey(ignore: true) - _$$_JsonRpcRequestCopyWith<_$_JsonRpcRequest> get copyWith => + _$$JsonRpcRequestImplCopyWith<_$JsonRpcRequestImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/apis/models/json_rpc_request.g.dart b/lib/apis/models/json_rpc_request.g.dart index 4e6e6997..392f4011 100644 --- a/lib/apis/models/json_rpc_request.g.dart +++ b/lib/apis/models/json_rpc_request.g.dart @@ -6,15 +6,16 @@ part of 'json_rpc_request.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_JsonRpcRequest _$$_JsonRpcRequestFromJson(Map json) => - _$_JsonRpcRequest( +_$JsonRpcRequestImpl _$$JsonRpcRequestImplFromJson(Map json) => + _$JsonRpcRequestImpl( id: json['id'] as int, jsonrpc: json['jsonrpc'] as String? ?? '2.0', method: json['method'] as String, params: json['params'], ); -Map _$$_JsonRpcRequestToJson(_$_JsonRpcRequest instance) => +Map _$$JsonRpcRequestImplToJson( + _$JsonRpcRequestImpl instance) => { 'id': instance.id, 'jsonrpc': instance.jsonrpc, diff --git a/lib/apis/models/json_rpc_response.freezed.dart b/lib/apis/models/json_rpc_response.freezed.dart index c62cb82f..58e87c5b 100644 --- a/lib/apis/models/json_rpc_response.freezed.dart +++ b/lib/apis/models/json_rpc_response.freezed.dart @@ -96,11 +96,11 @@ class _$JsonRpcResponseCopyWithImpl> } /// @nodoc -abstract class _$$_JsonRpcResponseCopyWith +abstract class _$$JsonRpcResponseImplCopyWith implements $JsonRpcResponseCopyWith { - factory _$$_JsonRpcResponseCopyWith(_$_JsonRpcResponse value, - $Res Function(_$_JsonRpcResponse) then) = - __$$_JsonRpcResponseCopyWithImpl; + factory _$$JsonRpcResponseImplCopyWith(_$JsonRpcResponseImpl value, + $Res Function(_$JsonRpcResponseImpl) then) = + __$$JsonRpcResponseImplCopyWithImpl; @override @useResult $Res call({int id, String jsonrpc, JsonRpcError? error, T? result}); @@ -110,11 +110,11 @@ abstract class _$$_JsonRpcResponseCopyWith } /// @nodoc -class __$$_JsonRpcResponseCopyWithImpl - extends _$JsonRpcResponseCopyWithImpl> - implements _$$_JsonRpcResponseCopyWith { - __$$_JsonRpcResponseCopyWithImpl( - _$_JsonRpcResponse _value, $Res Function(_$_JsonRpcResponse) _then) +class __$$JsonRpcResponseImplCopyWithImpl + extends _$JsonRpcResponseCopyWithImpl> + implements _$$JsonRpcResponseImplCopyWith { + __$$JsonRpcResponseImplCopyWithImpl(_$JsonRpcResponseImpl _value, + $Res Function(_$JsonRpcResponseImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -125,7 +125,7 @@ class __$$_JsonRpcResponseCopyWithImpl Object? error = freezed, Object? result = freezed, }) { - return _then(_$_JsonRpcResponse( + return _then(_$JsonRpcResponseImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -148,13 +148,13 @@ class __$$_JsonRpcResponseCopyWithImpl /// @nodoc @JsonSerializable(genericArgumentFactories: true) -class _$_JsonRpcResponse implements _JsonRpcResponse { - const _$_JsonRpcResponse( +class _$JsonRpcResponseImpl implements _JsonRpcResponse { + const _$JsonRpcResponseImpl( {required this.id, this.jsonrpc = '2.0', this.error, this.result}); - factory _$_JsonRpcResponse.fromJson( + factory _$JsonRpcResponseImpl.fromJson( Map json, T Function(Object?) fromJsonT) => - _$$_JsonRpcResponseFromJson(json, fromJsonT); + _$$JsonRpcResponseImplFromJson(json, fromJsonT); @override final int id; @@ -175,7 +175,7 @@ class _$_JsonRpcResponse implements _JsonRpcResponse { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_JsonRpcResponse && + other is _$JsonRpcResponseImpl && (identical(other.id, id) || other.id == id) && (identical(other.jsonrpc, jsonrpc) || other.jsonrpc == jsonrpc) && (identical(other.error, error) || other.error == error) && @@ -190,13 +190,13 @@ class _$_JsonRpcResponse implements _JsonRpcResponse { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_JsonRpcResponseCopyWith> get copyWith => - __$$_JsonRpcResponseCopyWithImpl>( + _$$JsonRpcResponseImplCopyWith> get copyWith => + __$$JsonRpcResponseImplCopyWithImpl>( this, _$identity); @override Map toJson(Object? Function(T) toJsonT) { - return _$$_JsonRpcResponseToJson(this, toJsonT); + return _$$JsonRpcResponseImplToJson(this, toJsonT); } } @@ -205,11 +205,11 @@ abstract class _JsonRpcResponse implements JsonRpcResponse { {required final int id, final String jsonrpc, final JsonRpcError? error, - final T? result}) = _$_JsonRpcResponse; + final T? result}) = _$JsonRpcResponseImpl; factory _JsonRpcResponse.fromJson( Map json, T Function(Object?) fromJsonT) = - _$_JsonRpcResponse.fromJson; + _$JsonRpcResponseImpl.fromJson; @override int get id; @@ -221,6 +221,6 @@ abstract class _JsonRpcResponse implements JsonRpcResponse { T? get result; @override @JsonKey(ignore: true) - _$$_JsonRpcResponseCopyWith> get copyWith => + _$$JsonRpcResponseImplCopyWith> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/apis/models/json_rpc_response.g.dart b/lib/apis/models/json_rpc_response.g.dart index fa21ff97..3e1795f4 100644 --- a/lib/apis/models/json_rpc_response.g.dart +++ b/lib/apis/models/json_rpc_response.g.dart @@ -6,11 +6,11 @@ part of 'json_rpc_response.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_JsonRpcResponse _$$_JsonRpcResponseFromJson( +_$JsonRpcResponseImpl _$$JsonRpcResponseImplFromJson( Map json, T Function(Object? json) fromJsonT, ) => - _$_JsonRpcResponse( + _$JsonRpcResponseImpl( id: json['id'] as int, jsonrpc: json['jsonrpc'] as String? ?? '2.0', error: json['error'] == null @@ -19,8 +19,8 @@ _$_JsonRpcResponse _$$_JsonRpcResponseFromJson( result: _$nullableGenericFromJson(json['result'], fromJsonT), ); -Map _$$_JsonRpcResponseToJson( - _$_JsonRpcResponse instance, +Map _$$JsonRpcResponseImplToJson( + _$JsonRpcResponseImpl instance, Object? Function(T value) toJsonT, ) => { diff --git a/lib/apis/sign_api/models/json_rpc_models.freezed.dart b/lib/apis/sign_api/models/json_rpc_models.freezed.dart index 039a00e1..0c40331e 100644 --- a/lib/apis/sign_api/models/json_rpc_models.freezed.dart +++ b/lib/apis/sign_api/models/json_rpc_models.freezed.dart @@ -70,23 +70,25 @@ class _$WcPairingDeleteRequestCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_WcPairingDeleteRequestCopyWith<$Res> +abstract class _$$WcPairingDeleteRequestImplCopyWith<$Res> implements $WcPairingDeleteRequestCopyWith<$Res> { - factory _$$_WcPairingDeleteRequestCopyWith(_$_WcPairingDeleteRequest value, - $Res Function(_$_WcPairingDeleteRequest) then) = - __$$_WcPairingDeleteRequestCopyWithImpl<$Res>; + factory _$$WcPairingDeleteRequestImplCopyWith( + _$WcPairingDeleteRequestImpl value, + $Res Function(_$WcPairingDeleteRequestImpl) then) = + __$$WcPairingDeleteRequestImplCopyWithImpl<$Res>; @override @useResult $Res call({int code, String message}); } /// @nodoc -class __$$_WcPairingDeleteRequestCopyWithImpl<$Res> +class __$$WcPairingDeleteRequestImplCopyWithImpl<$Res> extends _$WcPairingDeleteRequestCopyWithImpl<$Res, - _$_WcPairingDeleteRequest> - implements _$$_WcPairingDeleteRequestCopyWith<$Res> { - __$$_WcPairingDeleteRequestCopyWithImpl(_$_WcPairingDeleteRequest _value, - $Res Function(_$_WcPairingDeleteRequest) _then) + _$WcPairingDeleteRequestImpl> + implements _$$WcPairingDeleteRequestImplCopyWith<$Res> { + __$$WcPairingDeleteRequestImplCopyWithImpl( + _$WcPairingDeleteRequestImpl _value, + $Res Function(_$WcPairingDeleteRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -95,7 +97,7 @@ class __$$_WcPairingDeleteRequestCopyWithImpl<$Res> Object? code = null, Object? message = null, }) { - return _then(_$_WcPairingDeleteRequest( + return _then(_$WcPairingDeleteRequestImpl( code: null == code ? _value.code : code // ignore: cast_nullable_to_non_nullable @@ -111,11 +113,12 @@ class __$$_WcPairingDeleteRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_WcPairingDeleteRequest implements _WcPairingDeleteRequest { - const _$_WcPairingDeleteRequest({required this.code, required this.message}); +class _$WcPairingDeleteRequestImpl implements _WcPairingDeleteRequest { + const _$WcPairingDeleteRequestImpl( + {required this.code, required this.message}); - factory _$_WcPairingDeleteRequest.fromJson(Map json) => - _$$_WcPairingDeleteRequestFromJson(json); + factory _$WcPairingDeleteRequestImpl.fromJson(Map json) => + _$$WcPairingDeleteRequestImplFromJson(json); @override final int code; @@ -131,7 +134,7 @@ class _$_WcPairingDeleteRequest implements _WcPairingDeleteRequest { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_WcPairingDeleteRequest && + other is _$WcPairingDeleteRequestImpl && (identical(other.code, code) || other.code == code) && (identical(other.message, message) || other.message == message)); } @@ -143,13 +146,13 @@ class _$_WcPairingDeleteRequest implements _WcPairingDeleteRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_WcPairingDeleteRequestCopyWith<_$_WcPairingDeleteRequest> get copyWith => - __$$_WcPairingDeleteRequestCopyWithImpl<_$_WcPairingDeleteRequest>( - this, _$identity); + _$$WcPairingDeleteRequestImplCopyWith<_$WcPairingDeleteRequestImpl> + get copyWith => __$$WcPairingDeleteRequestImplCopyWithImpl< + _$WcPairingDeleteRequestImpl>(this, _$identity); @override Map toJson() { - return _$$_WcPairingDeleteRequestToJson( + return _$$WcPairingDeleteRequestImplToJson( this, ); } @@ -158,10 +161,10 @@ class _$_WcPairingDeleteRequest implements _WcPairingDeleteRequest { abstract class _WcPairingDeleteRequest implements WcPairingDeleteRequest { const factory _WcPairingDeleteRequest( {required final int code, - required final String message}) = _$_WcPairingDeleteRequest; + required final String message}) = _$WcPairingDeleteRequestImpl; factory _WcPairingDeleteRequest.fromJson(Map json) = - _$_WcPairingDeleteRequest.fromJson; + _$WcPairingDeleteRequestImpl.fromJson; @override int get code; @@ -169,8 +172,8 @@ abstract class _WcPairingDeleteRequest implements WcPairingDeleteRequest { String get message; @override @JsonKey(ignore: true) - _$$_WcPairingDeleteRequestCopyWith<_$_WcPairingDeleteRequest> get copyWith => - throw _privateConstructorUsedError; + _$$WcPairingDeleteRequestImplCopyWith<_$WcPairingDeleteRequestImpl> + get copyWith => throw _privateConstructorUsedError; } WcPairingPingRequest _$WcPairingPingRequestFromJson(Map json) { @@ -222,22 +225,22 @@ class _$WcPairingPingRequestCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_WcPairingPingRequestCopyWith<$Res> +abstract class _$$WcPairingPingRequestImplCopyWith<$Res> implements $WcPairingPingRequestCopyWith<$Res> { - factory _$$_WcPairingPingRequestCopyWith(_$_WcPairingPingRequest value, - $Res Function(_$_WcPairingPingRequest) then) = - __$$_WcPairingPingRequestCopyWithImpl<$Res>; + factory _$$WcPairingPingRequestImplCopyWith(_$WcPairingPingRequestImpl value, + $Res Function(_$WcPairingPingRequestImpl) then) = + __$$WcPairingPingRequestImplCopyWithImpl<$Res>; @override @useResult $Res call({Map data}); } /// @nodoc -class __$$_WcPairingPingRequestCopyWithImpl<$Res> - extends _$WcPairingPingRequestCopyWithImpl<$Res, _$_WcPairingPingRequest> - implements _$$_WcPairingPingRequestCopyWith<$Res> { - __$$_WcPairingPingRequestCopyWithImpl(_$_WcPairingPingRequest _value, - $Res Function(_$_WcPairingPingRequest) _then) +class __$$WcPairingPingRequestImplCopyWithImpl<$Res> + extends _$WcPairingPingRequestCopyWithImpl<$Res, _$WcPairingPingRequestImpl> + implements _$$WcPairingPingRequestImplCopyWith<$Res> { + __$$WcPairingPingRequestImplCopyWithImpl(_$WcPairingPingRequestImpl _value, + $Res Function(_$WcPairingPingRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -245,7 +248,7 @@ class __$$_WcPairingPingRequestCopyWithImpl<$Res> $Res call({ Object? data = null, }) { - return _then(_$_WcPairingPingRequest( + return _then(_$WcPairingPingRequestImpl( data: null == data ? _value._data : data // ignore: cast_nullable_to_non_nullable @@ -257,12 +260,12 @@ class __$$_WcPairingPingRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_WcPairingPingRequest implements _WcPairingPingRequest { - const _$_WcPairingPingRequest({required final Map data}) +class _$WcPairingPingRequestImpl implements _WcPairingPingRequest { + const _$WcPairingPingRequestImpl({required final Map data}) : _data = data; - factory _$_WcPairingPingRequest.fromJson(Map json) => - _$$_WcPairingPingRequestFromJson(json); + factory _$WcPairingPingRequestImpl.fromJson(Map json) => + _$$WcPairingPingRequestImplFromJson(json); final Map _data; @override @@ -281,7 +284,7 @@ class _$_WcPairingPingRequest implements _WcPairingPingRequest { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_WcPairingPingRequest && + other is _$WcPairingPingRequestImpl && const DeepCollectionEquality().equals(other._data, _data)); } @@ -293,13 +296,14 @@ class _$_WcPairingPingRequest implements _WcPairingPingRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_WcPairingPingRequestCopyWith<_$_WcPairingPingRequest> get copyWith => - __$$_WcPairingPingRequestCopyWithImpl<_$_WcPairingPingRequest>( - this, _$identity); + _$$WcPairingPingRequestImplCopyWith<_$WcPairingPingRequestImpl> + get copyWith => + __$$WcPairingPingRequestImplCopyWithImpl<_$WcPairingPingRequestImpl>( + this, _$identity); @override Map toJson() { - return _$$_WcPairingPingRequestToJson( + return _$$WcPairingPingRequestImplToJson( this, ); } @@ -307,17 +311,17 @@ class _$_WcPairingPingRequest implements _WcPairingPingRequest { abstract class _WcPairingPingRequest implements WcPairingPingRequest { const factory _WcPairingPingRequest( - {required final Map data}) = _$_WcPairingPingRequest; + {required final Map data}) = _$WcPairingPingRequestImpl; factory _WcPairingPingRequest.fromJson(Map json) = - _$_WcPairingPingRequest.fromJson; + _$WcPairingPingRequestImpl.fromJson; @override Map get data; @override @JsonKey(ignore: true) - _$$_WcPairingPingRequestCopyWith<_$_WcPairingPingRequest> get copyWith => - throw _privateConstructorUsedError; + _$$WcPairingPingRequestImplCopyWith<_$WcPairingPingRequestImpl> + get copyWith => throw _privateConstructorUsedError; } WcSessionProposeRequest _$WcSessionProposeRequestFromJson( @@ -412,11 +416,12 @@ class _$WcSessionProposeRequestCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_WcSessionProposeRequestCopyWith<$Res> +abstract class _$$WcSessionProposeRequestImplCopyWith<$Res> implements $WcSessionProposeRequestCopyWith<$Res> { - factory _$$_WcSessionProposeRequestCopyWith(_$_WcSessionProposeRequest value, - $Res Function(_$_WcSessionProposeRequest) then) = - __$$_WcSessionProposeRequestCopyWithImpl<$Res>; + factory _$$WcSessionProposeRequestImplCopyWith( + _$WcSessionProposeRequestImpl value, + $Res Function(_$WcSessionProposeRequestImpl) then) = + __$$WcSessionProposeRequestImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -431,12 +436,13 @@ abstract class _$$_WcSessionProposeRequestCopyWith<$Res> } /// @nodoc -class __$$_WcSessionProposeRequestCopyWithImpl<$Res> +class __$$WcSessionProposeRequestImplCopyWithImpl<$Res> extends _$WcSessionProposeRequestCopyWithImpl<$Res, - _$_WcSessionProposeRequest> - implements _$$_WcSessionProposeRequestCopyWith<$Res> { - __$$_WcSessionProposeRequestCopyWithImpl(_$_WcSessionProposeRequest _value, - $Res Function(_$_WcSessionProposeRequest) _then) + _$WcSessionProposeRequestImpl> + implements _$$WcSessionProposeRequestImplCopyWith<$Res> { + __$$WcSessionProposeRequestImplCopyWithImpl( + _$WcSessionProposeRequestImpl _value, + $Res Function(_$WcSessionProposeRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -448,7 +454,7 @@ class __$$_WcSessionProposeRequestCopyWithImpl<$Res> Object? sessionProperties = freezed, Object? proposer = null, }) { - return _then(_$_WcSessionProposeRequest( + return _then(_$WcSessionProposeRequestImpl( relays: null == relays ? _value._relays : relays // ignore: cast_nullable_to_non_nullable @@ -476,8 +482,8 @@ class __$$_WcSessionProposeRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_WcSessionProposeRequest implements _WcSessionProposeRequest { - const _$_WcSessionProposeRequest( +class _$WcSessionProposeRequestImpl implements _WcSessionProposeRequest { + const _$WcSessionProposeRequestImpl( {required final List relays, required final Map requiredNamespaces, final Map? optionalNamespaces, @@ -488,8 +494,8 @@ class _$_WcSessionProposeRequest implements _WcSessionProposeRequest { _optionalNamespaces = optionalNamespaces, _sessionProperties = sessionProperties; - factory _$_WcSessionProposeRequest.fromJson(Map json) => - _$$_WcSessionProposeRequestFromJson(json); + factory _$WcSessionProposeRequestImpl.fromJson(Map json) => + _$$WcSessionProposeRequestImplFromJson(json); final List _relays; @override @@ -542,7 +548,7 @@ class _$_WcSessionProposeRequest implements _WcSessionProposeRequest { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_WcSessionProposeRequest && + other is _$WcSessionProposeRequestImpl && const DeepCollectionEquality().equals(other._relays, _relays) && const DeepCollectionEquality() .equals(other._requiredNamespaces, _requiredNamespaces) && @@ -567,14 +573,13 @@ class _$_WcSessionProposeRequest implements _WcSessionProposeRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_WcSessionProposeRequestCopyWith<_$_WcSessionProposeRequest> - get copyWith => - __$$_WcSessionProposeRequestCopyWithImpl<_$_WcSessionProposeRequest>( - this, _$identity); + _$$WcSessionProposeRequestImplCopyWith<_$WcSessionProposeRequestImpl> + get copyWith => __$$WcSessionProposeRequestImplCopyWithImpl< + _$WcSessionProposeRequestImpl>(this, _$identity); @override Map toJson() { - return _$$_WcSessionProposeRequestToJson( + return _$$WcSessionProposeRequestImplToJson( this, ); } @@ -582,14 +587,15 @@ class _$_WcSessionProposeRequest implements _WcSessionProposeRequest { abstract class _WcSessionProposeRequest implements WcSessionProposeRequest { const factory _WcSessionProposeRequest( - {required final List relays, - required final Map requiredNamespaces, - final Map? optionalNamespaces, - final Map? sessionProperties, - required final ConnectionMetadata proposer}) = _$_WcSessionProposeRequest; + {required final List relays, + required final Map requiredNamespaces, + final Map? optionalNamespaces, + final Map? sessionProperties, + required final ConnectionMetadata proposer}) = + _$WcSessionProposeRequestImpl; factory _WcSessionProposeRequest.fromJson(Map json) = - _$_WcSessionProposeRequest.fromJson; + _$WcSessionProposeRequestImpl.fromJson; @override List get relays; @@ -603,7 +609,7 @@ abstract class _WcSessionProposeRequest implements WcSessionProposeRequest { ConnectionMetadata get proposer; @override @JsonKey(ignore: true) - _$$_WcSessionProposeRequestCopyWith<_$_WcSessionProposeRequest> + _$$WcSessionProposeRequestImplCopyWith<_$WcSessionProposeRequestImpl> get copyWith => throw _privateConstructorUsedError; } @@ -663,24 +669,25 @@ class _$WcSessionProposeResponseCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_WcSessionProposeResponseCopyWith<$Res> +abstract class _$$WcSessionProposeResponseImplCopyWith<$Res> implements $WcSessionProposeResponseCopyWith<$Res> { - factory _$$_WcSessionProposeResponseCopyWith( - _$_WcSessionProposeResponse value, - $Res Function(_$_WcSessionProposeResponse) then) = - __$$_WcSessionProposeResponseCopyWithImpl<$Res>; + factory _$$WcSessionProposeResponseImplCopyWith( + _$WcSessionProposeResponseImpl value, + $Res Function(_$WcSessionProposeResponseImpl) then) = + __$$WcSessionProposeResponseImplCopyWithImpl<$Res>; @override @useResult $Res call({Relay relay, String responderPublicKey}); } /// @nodoc -class __$$_WcSessionProposeResponseCopyWithImpl<$Res> +class __$$WcSessionProposeResponseImplCopyWithImpl<$Res> extends _$WcSessionProposeResponseCopyWithImpl<$Res, - _$_WcSessionProposeResponse> - implements _$$_WcSessionProposeResponseCopyWith<$Res> { - __$$_WcSessionProposeResponseCopyWithImpl(_$_WcSessionProposeResponse _value, - $Res Function(_$_WcSessionProposeResponse) _then) + _$WcSessionProposeResponseImpl> + implements _$$WcSessionProposeResponseImplCopyWith<$Res> { + __$$WcSessionProposeResponseImplCopyWithImpl( + _$WcSessionProposeResponseImpl _value, + $Res Function(_$WcSessionProposeResponseImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -689,7 +696,7 @@ class __$$_WcSessionProposeResponseCopyWithImpl<$Res> Object? relay = null, Object? responderPublicKey = null, }) { - return _then(_$_WcSessionProposeResponse( + return _then(_$WcSessionProposeResponseImpl( relay: null == relay ? _value.relay : relay // ignore: cast_nullable_to_non_nullable @@ -705,12 +712,12 @@ class __$$_WcSessionProposeResponseCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_WcSessionProposeResponse implements _WcSessionProposeResponse { - const _$_WcSessionProposeResponse( +class _$WcSessionProposeResponseImpl implements _WcSessionProposeResponse { + const _$WcSessionProposeResponseImpl( {required this.relay, required this.responderPublicKey}); - factory _$_WcSessionProposeResponse.fromJson(Map json) => - _$$_WcSessionProposeResponseFromJson(json); + factory _$WcSessionProposeResponseImpl.fromJson(Map json) => + _$$WcSessionProposeResponseImplFromJson(json); @override final Relay relay; @@ -726,7 +733,7 @@ class _$_WcSessionProposeResponse implements _WcSessionProposeResponse { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_WcSessionProposeResponse && + other is _$WcSessionProposeResponseImpl && (identical(other.relay, relay) || other.relay == relay) && (identical(other.responderPublicKey, responderPublicKey) || other.responderPublicKey == responderPublicKey)); @@ -739,13 +746,13 @@ class _$_WcSessionProposeResponse implements _WcSessionProposeResponse { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_WcSessionProposeResponseCopyWith<_$_WcSessionProposeResponse> - get copyWith => __$$_WcSessionProposeResponseCopyWithImpl< - _$_WcSessionProposeResponse>(this, _$identity); + _$$WcSessionProposeResponseImplCopyWith<_$WcSessionProposeResponseImpl> + get copyWith => __$$WcSessionProposeResponseImplCopyWithImpl< + _$WcSessionProposeResponseImpl>(this, _$identity); @override Map toJson() { - return _$$_WcSessionProposeResponseToJson( + return _$$WcSessionProposeResponseImplToJson( this, ); } @@ -753,11 +760,12 @@ class _$_WcSessionProposeResponse implements _WcSessionProposeResponse { abstract class _WcSessionProposeResponse implements WcSessionProposeResponse { const factory _WcSessionProposeResponse( - {required final Relay relay, - required final String responderPublicKey}) = _$_WcSessionProposeResponse; + {required final Relay relay, + required final String responderPublicKey}) = + _$WcSessionProposeResponseImpl; factory _WcSessionProposeResponse.fromJson(Map json) = - _$_WcSessionProposeResponse.fromJson; + _$WcSessionProposeResponseImpl.fromJson; @override Relay get relay; @@ -765,7 +773,7 @@ abstract class _WcSessionProposeResponse implements WcSessionProposeResponse { String get responderPublicKey; @override @JsonKey(ignore: true) - _$$_WcSessionProposeResponseCopyWith<_$_WcSessionProposeResponse> + _$$WcSessionProposeResponseImplCopyWith<_$WcSessionProposeResponseImpl> get copyWith => throw _privateConstructorUsedError; } @@ -875,11 +883,12 @@ class _$WcSessionSettleRequestCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_WcSessionSettleRequestCopyWith<$Res> +abstract class _$$WcSessionSettleRequestImplCopyWith<$Res> implements $WcSessionSettleRequestCopyWith<$Res> { - factory _$$_WcSessionSettleRequestCopyWith(_$_WcSessionSettleRequest value, - $Res Function(_$_WcSessionSettleRequest) then) = - __$$_WcSessionSettleRequestCopyWithImpl<$Res>; + factory _$$WcSessionSettleRequestImplCopyWith( + _$WcSessionSettleRequestImpl value, + $Res Function(_$WcSessionSettleRequestImpl) then) = + __$$WcSessionSettleRequestImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -896,12 +905,13 @@ abstract class _$$_WcSessionSettleRequestCopyWith<$Res> } /// @nodoc -class __$$_WcSessionSettleRequestCopyWithImpl<$Res> +class __$$WcSessionSettleRequestImplCopyWithImpl<$Res> extends _$WcSessionSettleRequestCopyWithImpl<$Res, - _$_WcSessionSettleRequest> - implements _$$_WcSessionSettleRequestCopyWith<$Res> { - __$$_WcSessionSettleRequestCopyWithImpl(_$_WcSessionSettleRequest _value, - $Res Function(_$_WcSessionSettleRequest) _then) + _$WcSessionSettleRequestImpl> + implements _$$WcSessionSettleRequestImplCopyWith<$Res> { + __$$WcSessionSettleRequestImplCopyWithImpl( + _$WcSessionSettleRequestImpl _value, + $Res Function(_$WcSessionSettleRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -915,7 +925,7 @@ class __$$_WcSessionSettleRequestCopyWithImpl<$Res> Object? expiry = null, Object? controller = null, }) { - return _then(_$_WcSessionSettleRequest( + return _then(_$WcSessionSettleRequestImpl( relay: null == relay ? _value.relay : relay // ignore: cast_nullable_to_non_nullable @@ -951,8 +961,8 @@ class __$$_WcSessionSettleRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_WcSessionSettleRequest implements _WcSessionSettleRequest { - const _$_WcSessionSettleRequest( +class _$WcSessionSettleRequestImpl implements _WcSessionSettleRequest { + const _$WcSessionSettleRequestImpl( {required this.relay, required final Map namespaces, final Map? requiredNamespaces, @@ -965,8 +975,8 @@ class _$_WcSessionSettleRequest implements _WcSessionSettleRequest { _optionalNamespaces = optionalNamespaces, _sessionProperties = sessionProperties; - factory _$_WcSessionSettleRequest.fromJson(Map json) => - _$$_WcSessionSettleRequestFromJson(json); + factory _$WcSessionSettleRequestImpl.fromJson(Map json) => + _$$WcSessionSettleRequestImplFromJson(json); @override final Relay relay; @@ -1025,7 +1035,7 @@ class _$_WcSessionSettleRequest implements _WcSessionSettleRequest { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_WcSessionSettleRequest && + other is _$WcSessionSettleRequestImpl && (identical(other.relay, relay) || other.relay == relay) && const DeepCollectionEquality() .equals(other._namespaces, _namespaces) && @@ -1055,13 +1065,13 @@ class _$_WcSessionSettleRequest implements _WcSessionSettleRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_WcSessionSettleRequestCopyWith<_$_WcSessionSettleRequest> get copyWith => - __$$_WcSessionSettleRequestCopyWithImpl<_$_WcSessionSettleRequest>( - this, _$identity); + _$$WcSessionSettleRequestImplCopyWith<_$WcSessionSettleRequestImpl> + get copyWith => __$$WcSessionSettleRequestImplCopyWithImpl< + _$WcSessionSettleRequestImpl>(this, _$identity); @override Map toJson() { - return _$$_WcSessionSettleRequestToJson( + return _$$WcSessionSettleRequestImplToJson( this, ); } @@ -1076,10 +1086,10 @@ abstract class _WcSessionSettleRequest implements WcSessionSettleRequest { final Map? sessionProperties, required final int expiry, required final ConnectionMetadata controller}) = - _$_WcSessionSettleRequest; + _$WcSessionSettleRequestImpl; factory _WcSessionSettleRequest.fromJson(Map json) = - _$_WcSessionSettleRequest.fromJson; + _$WcSessionSettleRequestImpl.fromJson; @override Relay get relay; @@ -1097,8 +1107,8 @@ abstract class _WcSessionSettleRequest implements WcSessionSettleRequest { ConnectionMetadata get controller; @override @JsonKey(ignore: true) - _$$_WcSessionSettleRequestCopyWith<_$_WcSessionSettleRequest> get copyWith => - throw _privateConstructorUsedError; + _$$WcSessionSettleRequestImplCopyWith<_$WcSessionSettleRequestImpl> + get copyWith => throw _privateConstructorUsedError; } WcSessionUpdateRequest _$WcSessionUpdateRequestFromJson( @@ -1151,23 +1161,25 @@ class _$WcSessionUpdateRequestCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_WcSessionUpdateRequestCopyWith<$Res> +abstract class _$$WcSessionUpdateRequestImplCopyWith<$Res> implements $WcSessionUpdateRequestCopyWith<$Res> { - factory _$$_WcSessionUpdateRequestCopyWith(_$_WcSessionUpdateRequest value, - $Res Function(_$_WcSessionUpdateRequest) then) = - __$$_WcSessionUpdateRequestCopyWithImpl<$Res>; + factory _$$WcSessionUpdateRequestImplCopyWith( + _$WcSessionUpdateRequestImpl value, + $Res Function(_$WcSessionUpdateRequestImpl) then) = + __$$WcSessionUpdateRequestImplCopyWithImpl<$Res>; @override @useResult $Res call({Map namespaces}); } /// @nodoc -class __$$_WcSessionUpdateRequestCopyWithImpl<$Res> +class __$$WcSessionUpdateRequestImplCopyWithImpl<$Res> extends _$WcSessionUpdateRequestCopyWithImpl<$Res, - _$_WcSessionUpdateRequest> - implements _$$_WcSessionUpdateRequestCopyWith<$Res> { - __$$_WcSessionUpdateRequestCopyWithImpl(_$_WcSessionUpdateRequest _value, - $Res Function(_$_WcSessionUpdateRequest) _then) + _$WcSessionUpdateRequestImpl> + implements _$$WcSessionUpdateRequestImplCopyWith<$Res> { + __$$WcSessionUpdateRequestImplCopyWithImpl( + _$WcSessionUpdateRequestImpl _value, + $Res Function(_$WcSessionUpdateRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1175,7 +1187,7 @@ class __$$_WcSessionUpdateRequestCopyWithImpl<$Res> $Res call({ Object? namespaces = null, }) { - return _then(_$_WcSessionUpdateRequest( + return _then(_$WcSessionUpdateRequestImpl( namespaces: null == namespaces ? _value._namespaces : namespaces // ignore: cast_nullable_to_non_nullable @@ -1187,13 +1199,13 @@ class __$$_WcSessionUpdateRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_WcSessionUpdateRequest implements _WcSessionUpdateRequest { - const _$_WcSessionUpdateRequest( +class _$WcSessionUpdateRequestImpl implements _WcSessionUpdateRequest { + const _$WcSessionUpdateRequestImpl( {required final Map namespaces}) : _namespaces = namespaces; - factory _$_WcSessionUpdateRequest.fromJson(Map json) => - _$$_WcSessionUpdateRequestFromJson(json); + factory _$WcSessionUpdateRequestImpl.fromJson(Map json) => + _$$WcSessionUpdateRequestImplFromJson(json); final Map _namespaces; @override @@ -1212,7 +1224,7 @@ class _$_WcSessionUpdateRequest implements _WcSessionUpdateRequest { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_WcSessionUpdateRequest && + other is _$WcSessionUpdateRequestImpl && const DeepCollectionEquality() .equals(other._namespaces, _namespaces)); } @@ -1225,13 +1237,13 @@ class _$_WcSessionUpdateRequest implements _WcSessionUpdateRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_WcSessionUpdateRequestCopyWith<_$_WcSessionUpdateRequest> get copyWith => - __$$_WcSessionUpdateRequestCopyWithImpl<_$_WcSessionUpdateRequest>( - this, _$identity); + _$$WcSessionUpdateRequestImplCopyWith<_$WcSessionUpdateRequestImpl> + get copyWith => __$$WcSessionUpdateRequestImplCopyWithImpl< + _$WcSessionUpdateRequestImpl>(this, _$identity); @override Map toJson() { - return _$$_WcSessionUpdateRequestToJson( + return _$$WcSessionUpdateRequestImplToJson( this, ); } @@ -1240,17 +1252,17 @@ class _$_WcSessionUpdateRequest implements _WcSessionUpdateRequest { abstract class _WcSessionUpdateRequest implements WcSessionUpdateRequest { const factory _WcSessionUpdateRequest( {required final Map namespaces}) = - _$_WcSessionUpdateRequest; + _$WcSessionUpdateRequestImpl; factory _WcSessionUpdateRequest.fromJson(Map json) = - _$_WcSessionUpdateRequest.fromJson; + _$WcSessionUpdateRequestImpl.fromJson; @override Map get namespaces; @override @JsonKey(ignore: true) - _$$_WcSessionUpdateRequestCopyWith<_$_WcSessionUpdateRequest> get copyWith => - throw _privateConstructorUsedError; + _$$WcSessionUpdateRequestImplCopyWith<_$WcSessionUpdateRequestImpl> + get copyWith => throw _privateConstructorUsedError; } WcSessionExtendRequest _$WcSessionExtendRequestFromJson( @@ -1303,23 +1315,25 @@ class _$WcSessionExtendRequestCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_WcSessionExtendRequestCopyWith<$Res> +abstract class _$$WcSessionExtendRequestImplCopyWith<$Res> implements $WcSessionExtendRequestCopyWith<$Res> { - factory _$$_WcSessionExtendRequestCopyWith(_$_WcSessionExtendRequest value, - $Res Function(_$_WcSessionExtendRequest) then) = - __$$_WcSessionExtendRequestCopyWithImpl<$Res>; + factory _$$WcSessionExtendRequestImplCopyWith( + _$WcSessionExtendRequestImpl value, + $Res Function(_$WcSessionExtendRequestImpl) then) = + __$$WcSessionExtendRequestImplCopyWithImpl<$Res>; @override @useResult $Res call({Map? data}); } /// @nodoc -class __$$_WcSessionExtendRequestCopyWithImpl<$Res> +class __$$WcSessionExtendRequestImplCopyWithImpl<$Res> extends _$WcSessionExtendRequestCopyWithImpl<$Res, - _$_WcSessionExtendRequest> - implements _$$_WcSessionExtendRequestCopyWith<$Res> { - __$$_WcSessionExtendRequestCopyWithImpl(_$_WcSessionExtendRequest _value, - $Res Function(_$_WcSessionExtendRequest) _then) + _$WcSessionExtendRequestImpl> + implements _$$WcSessionExtendRequestImplCopyWith<$Res> { + __$$WcSessionExtendRequestImplCopyWithImpl( + _$WcSessionExtendRequestImpl _value, + $Res Function(_$WcSessionExtendRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1327,7 +1341,7 @@ class __$$_WcSessionExtendRequestCopyWithImpl<$Res> $Res call({ Object? data = freezed, }) { - return _then(_$_WcSessionExtendRequest( + return _then(_$WcSessionExtendRequestImpl( data: freezed == data ? _value._data : data // ignore: cast_nullable_to_non_nullable @@ -1339,12 +1353,12 @@ class __$$_WcSessionExtendRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_WcSessionExtendRequest implements _WcSessionExtendRequest { - const _$_WcSessionExtendRequest({final Map? data}) +class _$WcSessionExtendRequestImpl implements _WcSessionExtendRequest { + const _$WcSessionExtendRequestImpl({final Map? data}) : _data = data; - factory _$_WcSessionExtendRequest.fromJson(Map json) => - _$$_WcSessionExtendRequestFromJson(json); + factory _$WcSessionExtendRequestImpl.fromJson(Map json) => + _$$WcSessionExtendRequestImplFromJson(json); final Map? _data; @override @@ -1365,7 +1379,7 @@ class _$_WcSessionExtendRequest implements _WcSessionExtendRequest { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_WcSessionExtendRequest && + other is _$WcSessionExtendRequestImpl && const DeepCollectionEquality().equals(other._data, _data)); } @@ -1377,13 +1391,13 @@ class _$_WcSessionExtendRequest implements _WcSessionExtendRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_WcSessionExtendRequestCopyWith<_$_WcSessionExtendRequest> get copyWith => - __$$_WcSessionExtendRequestCopyWithImpl<_$_WcSessionExtendRequest>( - this, _$identity); + _$$WcSessionExtendRequestImplCopyWith<_$WcSessionExtendRequestImpl> + get copyWith => __$$WcSessionExtendRequestImplCopyWithImpl< + _$WcSessionExtendRequestImpl>(this, _$identity); @override Map toJson() { - return _$$_WcSessionExtendRequestToJson( + return _$$WcSessionExtendRequestImplToJson( this, ); } @@ -1391,17 +1405,17 @@ class _$_WcSessionExtendRequest implements _WcSessionExtendRequest { abstract class _WcSessionExtendRequest implements WcSessionExtendRequest { const factory _WcSessionExtendRequest({final Map? data}) = - _$_WcSessionExtendRequest; + _$WcSessionExtendRequestImpl; factory _WcSessionExtendRequest.fromJson(Map json) = - _$_WcSessionExtendRequest.fromJson; + _$WcSessionExtendRequestImpl.fromJson; @override Map? get data; @override @JsonKey(ignore: true) - _$$_WcSessionExtendRequestCopyWith<_$_WcSessionExtendRequest> get copyWith => - throw _privateConstructorUsedError; + _$$WcSessionExtendRequestImplCopyWith<_$WcSessionExtendRequestImpl> + get copyWith => throw _privateConstructorUsedError; } WcSessionDeleteRequest _$WcSessionDeleteRequestFromJson( @@ -1466,23 +1480,25 @@ class _$WcSessionDeleteRequestCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_WcSessionDeleteRequestCopyWith<$Res> +abstract class _$$WcSessionDeleteRequestImplCopyWith<$Res> implements $WcSessionDeleteRequestCopyWith<$Res> { - factory _$$_WcSessionDeleteRequestCopyWith(_$_WcSessionDeleteRequest value, - $Res Function(_$_WcSessionDeleteRequest) then) = - __$$_WcSessionDeleteRequestCopyWithImpl<$Res>; + factory _$$WcSessionDeleteRequestImplCopyWith( + _$WcSessionDeleteRequestImpl value, + $Res Function(_$WcSessionDeleteRequestImpl) then) = + __$$WcSessionDeleteRequestImplCopyWithImpl<$Res>; @override @useResult $Res call({int code, String message, String? data}); } /// @nodoc -class __$$_WcSessionDeleteRequestCopyWithImpl<$Res> +class __$$WcSessionDeleteRequestImplCopyWithImpl<$Res> extends _$WcSessionDeleteRequestCopyWithImpl<$Res, - _$_WcSessionDeleteRequest> - implements _$$_WcSessionDeleteRequestCopyWith<$Res> { - __$$_WcSessionDeleteRequestCopyWithImpl(_$_WcSessionDeleteRequest _value, - $Res Function(_$_WcSessionDeleteRequest) _then) + _$WcSessionDeleteRequestImpl> + implements _$$WcSessionDeleteRequestImplCopyWith<$Res> { + __$$WcSessionDeleteRequestImplCopyWithImpl( + _$WcSessionDeleteRequestImpl _value, + $Res Function(_$WcSessionDeleteRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1492,7 +1508,7 @@ class __$$_WcSessionDeleteRequestCopyWithImpl<$Res> Object? message = null, Object? data = freezed, }) { - return _then(_$_WcSessionDeleteRequest( + return _then(_$WcSessionDeleteRequestImpl( code: null == code ? _value.code : code // ignore: cast_nullable_to_non_nullable @@ -1512,12 +1528,12 @@ class __$$_WcSessionDeleteRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_WcSessionDeleteRequest implements _WcSessionDeleteRequest { - const _$_WcSessionDeleteRequest( +class _$WcSessionDeleteRequestImpl implements _WcSessionDeleteRequest { + const _$WcSessionDeleteRequestImpl( {required this.code, required this.message, this.data}); - factory _$_WcSessionDeleteRequest.fromJson(Map json) => - _$$_WcSessionDeleteRequestFromJson(json); + factory _$WcSessionDeleteRequestImpl.fromJson(Map json) => + _$$WcSessionDeleteRequestImplFromJson(json); @override final int code; @@ -1535,7 +1551,7 @@ class _$_WcSessionDeleteRequest implements _WcSessionDeleteRequest { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_WcSessionDeleteRequest && + other is _$WcSessionDeleteRequestImpl && (identical(other.code, code) || other.code == code) && (identical(other.message, message) || other.message == message) && (identical(other.data, data) || other.data == data)); @@ -1548,13 +1564,13 @@ class _$_WcSessionDeleteRequest implements _WcSessionDeleteRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_WcSessionDeleteRequestCopyWith<_$_WcSessionDeleteRequest> get copyWith => - __$$_WcSessionDeleteRequestCopyWithImpl<_$_WcSessionDeleteRequest>( - this, _$identity); + _$$WcSessionDeleteRequestImplCopyWith<_$WcSessionDeleteRequestImpl> + get copyWith => __$$WcSessionDeleteRequestImplCopyWithImpl< + _$WcSessionDeleteRequestImpl>(this, _$identity); @override Map toJson() { - return _$$_WcSessionDeleteRequestToJson( + return _$$WcSessionDeleteRequestImplToJson( this, ); } @@ -1564,10 +1580,10 @@ abstract class _WcSessionDeleteRequest implements WcSessionDeleteRequest { const factory _WcSessionDeleteRequest( {required final int code, required final String message, - final String? data}) = _$_WcSessionDeleteRequest; + final String? data}) = _$WcSessionDeleteRequestImpl; factory _WcSessionDeleteRequest.fromJson(Map json) = - _$_WcSessionDeleteRequest.fromJson; + _$WcSessionDeleteRequestImpl.fromJson; @override int get code; @@ -1577,8 +1593,8 @@ abstract class _WcSessionDeleteRequest implements WcSessionDeleteRequest { String? get data; @override @JsonKey(ignore: true) - _$$_WcSessionDeleteRequestCopyWith<_$_WcSessionDeleteRequest> get copyWith => - throw _privateConstructorUsedError; + _$$WcSessionDeleteRequestImplCopyWith<_$WcSessionDeleteRequestImpl> + get copyWith => throw _privateConstructorUsedError; } WcSessionPingRequest _$WcSessionPingRequestFromJson(Map json) { @@ -1630,22 +1646,22 @@ class _$WcSessionPingRequestCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_WcSessionPingRequestCopyWith<$Res> +abstract class _$$WcSessionPingRequestImplCopyWith<$Res> implements $WcSessionPingRequestCopyWith<$Res> { - factory _$$_WcSessionPingRequestCopyWith(_$_WcSessionPingRequest value, - $Res Function(_$_WcSessionPingRequest) then) = - __$$_WcSessionPingRequestCopyWithImpl<$Res>; + factory _$$WcSessionPingRequestImplCopyWith(_$WcSessionPingRequestImpl value, + $Res Function(_$WcSessionPingRequestImpl) then) = + __$$WcSessionPingRequestImplCopyWithImpl<$Res>; @override @useResult $Res call({Map? data}); } /// @nodoc -class __$$_WcSessionPingRequestCopyWithImpl<$Res> - extends _$WcSessionPingRequestCopyWithImpl<$Res, _$_WcSessionPingRequest> - implements _$$_WcSessionPingRequestCopyWith<$Res> { - __$$_WcSessionPingRequestCopyWithImpl(_$_WcSessionPingRequest _value, - $Res Function(_$_WcSessionPingRequest) _then) +class __$$WcSessionPingRequestImplCopyWithImpl<$Res> + extends _$WcSessionPingRequestCopyWithImpl<$Res, _$WcSessionPingRequestImpl> + implements _$$WcSessionPingRequestImplCopyWith<$Res> { + __$$WcSessionPingRequestImplCopyWithImpl(_$WcSessionPingRequestImpl _value, + $Res Function(_$WcSessionPingRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1653,7 +1669,7 @@ class __$$_WcSessionPingRequestCopyWithImpl<$Res> $Res call({ Object? data = freezed, }) { - return _then(_$_WcSessionPingRequest( + return _then(_$WcSessionPingRequestImpl( data: freezed == data ? _value._data : data // ignore: cast_nullable_to_non_nullable @@ -1665,12 +1681,12 @@ class __$$_WcSessionPingRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_WcSessionPingRequest implements _WcSessionPingRequest { - const _$_WcSessionPingRequest({final Map? data}) +class _$WcSessionPingRequestImpl implements _WcSessionPingRequest { + const _$WcSessionPingRequestImpl({final Map? data}) : _data = data; - factory _$_WcSessionPingRequest.fromJson(Map json) => - _$$_WcSessionPingRequestFromJson(json); + factory _$WcSessionPingRequestImpl.fromJson(Map json) => + _$$WcSessionPingRequestImplFromJson(json); final Map? _data; @override @@ -1691,7 +1707,7 @@ class _$_WcSessionPingRequest implements _WcSessionPingRequest { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_WcSessionPingRequest && + other is _$WcSessionPingRequestImpl && const DeepCollectionEquality().equals(other._data, _data)); } @@ -1703,13 +1719,14 @@ class _$_WcSessionPingRequest implements _WcSessionPingRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_WcSessionPingRequestCopyWith<_$_WcSessionPingRequest> get copyWith => - __$$_WcSessionPingRequestCopyWithImpl<_$_WcSessionPingRequest>( - this, _$identity); + _$$WcSessionPingRequestImplCopyWith<_$WcSessionPingRequestImpl> + get copyWith => + __$$WcSessionPingRequestImplCopyWithImpl<_$WcSessionPingRequestImpl>( + this, _$identity); @override Map toJson() { - return _$$_WcSessionPingRequestToJson( + return _$$WcSessionPingRequestImplToJson( this, ); } @@ -1717,17 +1734,17 @@ class _$_WcSessionPingRequest implements _WcSessionPingRequest { abstract class _WcSessionPingRequest implements WcSessionPingRequest { const factory _WcSessionPingRequest({final Map? data}) = - _$_WcSessionPingRequest; + _$WcSessionPingRequestImpl; factory _WcSessionPingRequest.fromJson(Map json) = - _$_WcSessionPingRequest.fromJson; + _$WcSessionPingRequestImpl.fromJson; @override Map? get data; @override @JsonKey(ignore: true) - _$$_WcSessionPingRequestCopyWith<_$_WcSessionPingRequest> get copyWith => - throw _privateConstructorUsedError; + _$$WcSessionPingRequestImplCopyWith<_$WcSessionPingRequestImpl> + get copyWith => throw _privateConstructorUsedError; } WcSessionRequestRequest _$WcSessionRequestRequestFromJson( @@ -1796,11 +1813,12 @@ class _$WcSessionRequestRequestCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_WcSessionRequestRequestCopyWith<$Res> +abstract class _$$WcSessionRequestRequestImplCopyWith<$Res> implements $WcSessionRequestRequestCopyWith<$Res> { - factory _$$_WcSessionRequestRequestCopyWith(_$_WcSessionRequestRequest value, - $Res Function(_$_WcSessionRequestRequest) then) = - __$$_WcSessionRequestRequestCopyWithImpl<$Res>; + factory _$$WcSessionRequestRequestImplCopyWith( + _$WcSessionRequestRequestImpl value, + $Res Function(_$WcSessionRequestRequestImpl) then) = + __$$WcSessionRequestRequestImplCopyWithImpl<$Res>; @override @useResult $Res call({String chainId, SessionRequestParams request}); @@ -1810,12 +1828,13 @@ abstract class _$$_WcSessionRequestRequestCopyWith<$Res> } /// @nodoc -class __$$_WcSessionRequestRequestCopyWithImpl<$Res> +class __$$WcSessionRequestRequestImplCopyWithImpl<$Res> extends _$WcSessionRequestRequestCopyWithImpl<$Res, - _$_WcSessionRequestRequest> - implements _$$_WcSessionRequestRequestCopyWith<$Res> { - __$$_WcSessionRequestRequestCopyWithImpl(_$_WcSessionRequestRequest _value, - $Res Function(_$_WcSessionRequestRequest) _then) + _$WcSessionRequestRequestImpl> + implements _$$WcSessionRequestRequestImplCopyWith<$Res> { + __$$WcSessionRequestRequestImplCopyWithImpl( + _$WcSessionRequestRequestImpl _value, + $Res Function(_$WcSessionRequestRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1824,7 +1843,7 @@ class __$$_WcSessionRequestRequestCopyWithImpl<$Res> Object? chainId = null, Object? request = null, }) { - return _then(_$_WcSessionRequestRequest( + return _then(_$WcSessionRequestRequestImpl( chainId: null == chainId ? _value.chainId : chainId // ignore: cast_nullable_to_non_nullable @@ -1840,12 +1859,12 @@ class __$$_WcSessionRequestRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_WcSessionRequestRequest implements _WcSessionRequestRequest { - const _$_WcSessionRequestRequest( +class _$WcSessionRequestRequestImpl implements _WcSessionRequestRequest { + const _$WcSessionRequestRequestImpl( {required this.chainId, required this.request}); - factory _$_WcSessionRequestRequest.fromJson(Map json) => - _$$_WcSessionRequestRequestFromJson(json); + factory _$WcSessionRequestRequestImpl.fromJson(Map json) => + _$$WcSessionRequestRequestImplFromJson(json); @override final String chainId; @@ -1861,7 +1880,7 @@ class _$_WcSessionRequestRequest implements _WcSessionRequestRequest { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_WcSessionRequestRequest && + other is _$WcSessionRequestRequestImpl && (identical(other.chainId, chainId) || other.chainId == chainId) && (identical(other.request, request) || other.request == request)); } @@ -1873,14 +1892,13 @@ class _$_WcSessionRequestRequest implements _WcSessionRequestRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_WcSessionRequestRequestCopyWith<_$_WcSessionRequestRequest> - get copyWith => - __$$_WcSessionRequestRequestCopyWithImpl<_$_WcSessionRequestRequest>( - this, _$identity); + _$$WcSessionRequestRequestImplCopyWith<_$WcSessionRequestRequestImpl> + get copyWith => __$$WcSessionRequestRequestImplCopyWithImpl< + _$WcSessionRequestRequestImpl>(this, _$identity); @override Map toJson() { - return _$$_WcSessionRequestRequestToJson( + return _$$WcSessionRequestRequestImplToJson( this, ); } @@ -1890,10 +1908,10 @@ abstract class _WcSessionRequestRequest implements WcSessionRequestRequest { const factory _WcSessionRequestRequest( {required final String chainId, required final SessionRequestParams request}) = - _$_WcSessionRequestRequest; + _$WcSessionRequestRequestImpl; factory _WcSessionRequestRequest.fromJson(Map json) = - _$_WcSessionRequestRequest.fromJson; + _$WcSessionRequestRequestImpl.fromJson; @override String get chainId; @@ -1901,7 +1919,7 @@ abstract class _WcSessionRequestRequest implements WcSessionRequestRequest { SessionRequestParams get request; @override @JsonKey(ignore: true) - _$$_WcSessionRequestRequestCopyWith<_$_WcSessionRequestRequest> + _$$WcSessionRequestRequestImplCopyWith<_$WcSessionRequestRequestImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1960,22 +1978,22 @@ class _$SessionRequestParamsCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_SessionRequestParamsCopyWith<$Res> +abstract class _$$SessionRequestParamsImplCopyWith<$Res> implements $SessionRequestParamsCopyWith<$Res> { - factory _$$_SessionRequestParamsCopyWith(_$_SessionRequestParams value, - $Res Function(_$_SessionRequestParams) then) = - __$$_SessionRequestParamsCopyWithImpl<$Res>; + factory _$$SessionRequestParamsImplCopyWith(_$SessionRequestParamsImpl value, + $Res Function(_$SessionRequestParamsImpl) then) = + __$$SessionRequestParamsImplCopyWithImpl<$Res>; @override @useResult $Res call({String method, dynamic params}); } /// @nodoc -class __$$_SessionRequestParamsCopyWithImpl<$Res> - extends _$SessionRequestParamsCopyWithImpl<$Res, _$_SessionRequestParams> - implements _$$_SessionRequestParamsCopyWith<$Res> { - __$$_SessionRequestParamsCopyWithImpl(_$_SessionRequestParams _value, - $Res Function(_$_SessionRequestParams) _then) +class __$$SessionRequestParamsImplCopyWithImpl<$Res> + extends _$SessionRequestParamsCopyWithImpl<$Res, _$SessionRequestParamsImpl> + implements _$$SessionRequestParamsImplCopyWith<$Res> { + __$$SessionRequestParamsImplCopyWithImpl(_$SessionRequestParamsImpl _value, + $Res Function(_$SessionRequestParamsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -1984,7 +2002,7 @@ class __$$_SessionRequestParamsCopyWithImpl<$Res> Object? method = null, Object? params = freezed, }) { - return _then(_$_SessionRequestParams( + return _then(_$SessionRequestParamsImpl( method: null == method ? _value.method : method // ignore: cast_nullable_to_non_nullable @@ -2000,11 +2018,12 @@ class __$$_SessionRequestParamsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SessionRequestParams implements _SessionRequestParams { - const _$_SessionRequestParams({required this.method, required this.params}); +class _$SessionRequestParamsImpl implements _SessionRequestParams { + const _$SessionRequestParamsImpl( + {required this.method, required this.params}); - factory _$_SessionRequestParams.fromJson(Map json) => - _$$_SessionRequestParamsFromJson(json); + factory _$SessionRequestParamsImpl.fromJson(Map json) => + _$$SessionRequestParamsImplFromJson(json); @override final String method; @@ -2020,7 +2039,7 @@ class _$_SessionRequestParams implements _SessionRequestParams { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SessionRequestParams && + other is _$SessionRequestParamsImpl && (identical(other.method, method) || other.method == method) && const DeepCollectionEquality().equals(other.params, params)); } @@ -2033,13 +2052,14 @@ class _$_SessionRequestParams implements _SessionRequestParams { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SessionRequestParamsCopyWith<_$_SessionRequestParams> get copyWith => - __$$_SessionRequestParamsCopyWithImpl<_$_SessionRequestParams>( - this, _$identity); + _$$SessionRequestParamsImplCopyWith<_$SessionRequestParamsImpl> + get copyWith => + __$$SessionRequestParamsImplCopyWithImpl<_$SessionRequestParamsImpl>( + this, _$identity); @override Map toJson() { - return _$$_SessionRequestParamsToJson( + return _$$SessionRequestParamsImplToJson( this, ); } @@ -2048,10 +2068,10 @@ class _$_SessionRequestParams implements _SessionRequestParams { abstract class _SessionRequestParams implements SessionRequestParams { const factory _SessionRequestParams( {required final String method, - required final dynamic params}) = _$_SessionRequestParams; + required final dynamic params}) = _$SessionRequestParamsImpl; factory _SessionRequestParams.fromJson(Map json) = - _$_SessionRequestParams.fromJson; + _$SessionRequestParamsImpl.fromJson; @override String get method; @@ -2059,8 +2079,8 @@ abstract class _SessionRequestParams implements SessionRequestParams { dynamic get params; @override @JsonKey(ignore: true) - _$$_SessionRequestParamsCopyWith<_$_SessionRequestParams> get copyWith => - throw _privateConstructorUsedError; + _$$SessionRequestParamsImplCopyWith<_$SessionRequestParamsImpl> + get copyWith => throw _privateConstructorUsedError; } WcSessionEventRequest _$WcSessionEventRequestFromJson( @@ -2129,11 +2149,12 @@ class _$WcSessionEventRequestCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_WcSessionEventRequestCopyWith<$Res> +abstract class _$$WcSessionEventRequestImplCopyWith<$Res> implements $WcSessionEventRequestCopyWith<$Res> { - factory _$$_WcSessionEventRequestCopyWith(_$_WcSessionEventRequest value, - $Res Function(_$_WcSessionEventRequest) then) = - __$$_WcSessionEventRequestCopyWithImpl<$Res>; + factory _$$WcSessionEventRequestImplCopyWith( + _$WcSessionEventRequestImpl value, + $Res Function(_$WcSessionEventRequestImpl) then) = + __$$WcSessionEventRequestImplCopyWithImpl<$Res>; @override @useResult $Res call({String chainId, SessionEventParams event}); @@ -2143,11 +2164,12 @@ abstract class _$$_WcSessionEventRequestCopyWith<$Res> } /// @nodoc -class __$$_WcSessionEventRequestCopyWithImpl<$Res> - extends _$WcSessionEventRequestCopyWithImpl<$Res, _$_WcSessionEventRequest> - implements _$$_WcSessionEventRequestCopyWith<$Res> { - __$$_WcSessionEventRequestCopyWithImpl(_$_WcSessionEventRequest _value, - $Res Function(_$_WcSessionEventRequest) _then) +class __$$WcSessionEventRequestImplCopyWithImpl<$Res> + extends _$WcSessionEventRequestCopyWithImpl<$Res, + _$WcSessionEventRequestImpl> + implements _$$WcSessionEventRequestImplCopyWith<$Res> { + __$$WcSessionEventRequestImplCopyWithImpl(_$WcSessionEventRequestImpl _value, + $Res Function(_$WcSessionEventRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2156,7 +2178,7 @@ class __$$_WcSessionEventRequestCopyWithImpl<$Res> Object? chainId = null, Object? event = null, }) { - return _then(_$_WcSessionEventRequest( + return _then(_$WcSessionEventRequestImpl( chainId: null == chainId ? _value.chainId : chainId // ignore: cast_nullable_to_non_nullable @@ -2172,11 +2194,12 @@ class __$$_WcSessionEventRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_WcSessionEventRequest implements _WcSessionEventRequest { - const _$_WcSessionEventRequest({required this.chainId, required this.event}); +class _$WcSessionEventRequestImpl implements _WcSessionEventRequest { + const _$WcSessionEventRequestImpl( + {required this.chainId, required this.event}); - factory _$_WcSessionEventRequest.fromJson(Map json) => - _$$_WcSessionEventRequestFromJson(json); + factory _$WcSessionEventRequestImpl.fromJson(Map json) => + _$$WcSessionEventRequestImplFromJson(json); @override final String chainId; @@ -2192,7 +2215,7 @@ class _$_WcSessionEventRequest implements _WcSessionEventRequest { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_WcSessionEventRequest && + other is _$WcSessionEventRequestImpl && (identical(other.chainId, chainId) || other.chainId == chainId) && (identical(other.event, event) || other.event == event)); } @@ -2204,13 +2227,13 @@ class _$_WcSessionEventRequest implements _WcSessionEventRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_WcSessionEventRequestCopyWith<_$_WcSessionEventRequest> get copyWith => - __$$_WcSessionEventRequestCopyWithImpl<_$_WcSessionEventRequest>( - this, _$identity); + _$$WcSessionEventRequestImplCopyWith<_$WcSessionEventRequestImpl> + get copyWith => __$$WcSessionEventRequestImplCopyWithImpl< + _$WcSessionEventRequestImpl>(this, _$identity); @override Map toJson() { - return _$$_WcSessionEventRequestToJson( + return _$$WcSessionEventRequestImplToJson( this, ); } @@ -2219,10 +2242,10 @@ class _$_WcSessionEventRequest implements _WcSessionEventRequest { abstract class _WcSessionEventRequest implements WcSessionEventRequest { const factory _WcSessionEventRequest( {required final String chainId, - required final SessionEventParams event}) = _$_WcSessionEventRequest; + required final SessionEventParams event}) = _$WcSessionEventRequestImpl; factory _WcSessionEventRequest.fromJson(Map json) = - _$_WcSessionEventRequest.fromJson; + _$WcSessionEventRequestImpl.fromJson; @override String get chainId; @@ -2230,8 +2253,8 @@ abstract class _WcSessionEventRequest implements WcSessionEventRequest { SessionEventParams get event; @override @JsonKey(ignore: true) - _$$_WcSessionEventRequestCopyWith<_$_WcSessionEventRequest> get copyWith => - throw _privateConstructorUsedError; + _$$WcSessionEventRequestImplCopyWith<_$WcSessionEventRequestImpl> + get copyWith => throw _privateConstructorUsedError; } SessionEventParams _$SessionEventParamsFromJson(Map json) { @@ -2288,22 +2311,22 @@ class _$SessionEventParamsCopyWithImpl<$Res, $Val extends SessionEventParams> } /// @nodoc -abstract class _$$_SessionEventParamsCopyWith<$Res> +abstract class _$$SessionEventParamsImplCopyWith<$Res> implements $SessionEventParamsCopyWith<$Res> { - factory _$$_SessionEventParamsCopyWith(_$_SessionEventParams value, - $Res Function(_$_SessionEventParams) then) = - __$$_SessionEventParamsCopyWithImpl<$Res>; + factory _$$SessionEventParamsImplCopyWith(_$SessionEventParamsImpl value, + $Res Function(_$SessionEventParamsImpl) then) = + __$$SessionEventParamsImplCopyWithImpl<$Res>; @override @useResult $Res call({String name, dynamic data}); } /// @nodoc -class __$$_SessionEventParamsCopyWithImpl<$Res> - extends _$SessionEventParamsCopyWithImpl<$Res, _$_SessionEventParams> - implements _$$_SessionEventParamsCopyWith<$Res> { - __$$_SessionEventParamsCopyWithImpl( - _$_SessionEventParams _value, $Res Function(_$_SessionEventParams) _then) +class __$$SessionEventParamsImplCopyWithImpl<$Res> + extends _$SessionEventParamsCopyWithImpl<$Res, _$SessionEventParamsImpl> + implements _$$SessionEventParamsImplCopyWith<$Res> { + __$$SessionEventParamsImplCopyWithImpl(_$SessionEventParamsImpl _value, + $Res Function(_$SessionEventParamsImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -2312,7 +2335,7 @@ class __$$_SessionEventParamsCopyWithImpl<$Res> Object? name = null, Object? data = freezed, }) { - return _then(_$_SessionEventParams( + return _then(_$SessionEventParamsImpl( name: null == name ? _value.name : name // ignore: cast_nullable_to_non_nullable @@ -2328,11 +2351,11 @@ class __$$_SessionEventParamsCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SessionEventParams implements _SessionEventParams { - const _$_SessionEventParams({required this.name, required this.data}); +class _$SessionEventParamsImpl implements _SessionEventParams { + const _$SessionEventParamsImpl({required this.name, required this.data}); - factory _$_SessionEventParams.fromJson(Map json) => - _$$_SessionEventParamsFromJson(json); + factory _$SessionEventParamsImpl.fromJson(Map json) => + _$$SessionEventParamsImplFromJson(json); @override final String name; @@ -2348,7 +2371,7 @@ class _$_SessionEventParams implements _SessionEventParams { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SessionEventParams && + other is _$SessionEventParamsImpl && (identical(other.name, name) || other.name == name) && const DeepCollectionEquality().equals(other.data, data)); } @@ -2361,13 +2384,13 @@ class _$_SessionEventParams implements _SessionEventParams { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SessionEventParamsCopyWith<_$_SessionEventParams> get copyWith => - __$$_SessionEventParamsCopyWithImpl<_$_SessionEventParams>( + _$$SessionEventParamsImplCopyWith<_$SessionEventParamsImpl> get copyWith => + __$$SessionEventParamsImplCopyWithImpl<_$SessionEventParamsImpl>( this, _$identity); @override Map toJson() { - return _$$_SessionEventParamsToJson( + return _$$SessionEventParamsImplToJson( this, ); } @@ -2376,10 +2399,10 @@ class _$_SessionEventParams implements _SessionEventParams { abstract class _SessionEventParams implements SessionEventParams { const factory _SessionEventParams( {required final String name, - required final dynamic data}) = _$_SessionEventParams; + required final dynamic data}) = _$SessionEventParamsImpl; factory _SessionEventParams.fromJson(Map json) = - _$_SessionEventParams.fromJson; + _$SessionEventParamsImpl.fromJson; @override String get name; @@ -2387,6 +2410,6 @@ abstract class _SessionEventParams implements SessionEventParams { dynamic get data; @override @JsonKey(ignore: true) - _$$_SessionEventParamsCopyWith<_$_SessionEventParams> get copyWith => + _$$SessionEventParamsImplCopyWith<_$SessionEventParamsImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/apis/sign_api/models/json_rpc_models.g.dart b/lib/apis/sign_api/models/json_rpc_models.g.dart index 0a891e6a..c86c93c5 100644 --- a/lib/apis/sign_api/models/json_rpc_models.g.dart +++ b/lib/apis/sign_api/models/json_rpc_models.g.dart @@ -6,35 +6,35 @@ part of 'json_rpc_models.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_WcPairingDeleteRequest _$$_WcPairingDeleteRequestFromJson( +_$WcPairingDeleteRequestImpl _$$WcPairingDeleteRequestImplFromJson( Map json) => - _$_WcPairingDeleteRequest( + _$WcPairingDeleteRequestImpl( code: json['code'] as int, message: json['message'] as String, ); -Map _$$_WcPairingDeleteRequestToJson( - _$_WcPairingDeleteRequest instance) => +Map _$$WcPairingDeleteRequestImplToJson( + _$WcPairingDeleteRequestImpl instance) => { 'code': instance.code, 'message': instance.message, }; -_$_WcPairingPingRequest _$$_WcPairingPingRequestFromJson( +_$WcPairingPingRequestImpl _$$WcPairingPingRequestImplFromJson( Map json) => - _$_WcPairingPingRequest( + _$WcPairingPingRequestImpl( data: json['data'] as Map, ); -Map _$$_WcPairingPingRequestToJson( - _$_WcPairingPingRequest instance) => +Map _$$WcPairingPingRequestImplToJson( + _$WcPairingPingRequestImpl instance) => { 'data': instance.data, }; -_$_WcSessionProposeRequest _$$_WcSessionProposeRequestFromJson( +_$WcSessionProposeRequestImpl _$$WcSessionProposeRequestImplFromJson( Map json) => - _$_WcSessionProposeRequest( + _$WcSessionProposeRequestImpl( relays: (json['relays'] as List) .map((e) => Relay.fromJson(e as Map)) .toList(), @@ -56,8 +56,8 @@ _$_WcSessionProposeRequest _$$_WcSessionProposeRequestFromJson( ConnectionMetadata.fromJson(json['proposer'] as Map), ); -Map _$$_WcSessionProposeRequestToJson( - _$_WcSessionProposeRequest instance) { +Map _$$WcSessionProposeRequestImplToJson( + _$WcSessionProposeRequestImpl instance) { final val = { 'relays': instance.relays.map((e) => e.toJson()).toList(), 'requiredNamespaces': @@ -77,23 +77,23 @@ Map _$$_WcSessionProposeRequestToJson( return val; } -_$_WcSessionProposeResponse _$$_WcSessionProposeResponseFromJson( +_$WcSessionProposeResponseImpl _$$WcSessionProposeResponseImplFromJson( Map json) => - _$_WcSessionProposeResponse( + _$WcSessionProposeResponseImpl( relay: Relay.fromJson(json['relay'] as Map), responderPublicKey: json['responderPublicKey'] as String, ); -Map _$$_WcSessionProposeResponseToJson( - _$_WcSessionProposeResponse instance) => +Map _$$WcSessionProposeResponseImplToJson( + _$WcSessionProposeResponseImpl instance) => { 'relay': instance.relay.toJson(), 'responderPublicKey': instance.responderPublicKey, }; -_$_WcSessionSettleRequest _$$_WcSessionSettleRequestFromJson( +_$WcSessionSettleRequestImpl _$$WcSessionSettleRequestImplFromJson( Map json) => - _$_WcSessionSettleRequest( + _$WcSessionSettleRequestImpl( relay: Relay.fromJson(json['relay'] as Map), namespaces: (json['namespaces'] as Map).map( (k, e) => MapEntry(k, Namespace.fromJson(e as Map)), @@ -117,8 +117,8 @@ _$_WcSessionSettleRequest _$$_WcSessionSettleRequestFromJson( json['controller'] as Map), ); -Map _$$_WcSessionSettleRequestToJson( - _$_WcSessionSettleRequest instance) { +Map _$$WcSessionSettleRequestImplToJson( + _$WcSessionSettleRequestImpl instance) { final val = { 'relay': instance.relay.toJson(), 'namespaces': instance.namespaces.map((k, e) => MapEntry(k, e.toJson())), @@ -140,28 +140,28 @@ Map _$$_WcSessionSettleRequestToJson( return val; } -_$_WcSessionUpdateRequest _$$_WcSessionUpdateRequestFromJson( +_$WcSessionUpdateRequestImpl _$$WcSessionUpdateRequestImplFromJson( Map json) => - _$_WcSessionUpdateRequest( + _$WcSessionUpdateRequestImpl( namespaces: (json['namespaces'] as Map).map( (k, e) => MapEntry(k, Namespace.fromJson(e as Map)), ), ); -Map _$$_WcSessionUpdateRequestToJson( - _$_WcSessionUpdateRequest instance) => +Map _$$WcSessionUpdateRequestImplToJson( + _$WcSessionUpdateRequestImpl instance) => { 'namespaces': instance.namespaces.map((k, e) => MapEntry(k, e.toJson())), }; -_$_WcSessionExtendRequest _$$_WcSessionExtendRequestFromJson( +_$WcSessionExtendRequestImpl _$$WcSessionExtendRequestImplFromJson( Map json) => - _$_WcSessionExtendRequest( + _$WcSessionExtendRequestImpl( data: json['data'] as Map?, ); -Map _$$_WcSessionExtendRequestToJson( - _$_WcSessionExtendRequest instance) { +Map _$$WcSessionExtendRequestImplToJson( + _$WcSessionExtendRequestImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -174,16 +174,16 @@ Map _$$_WcSessionExtendRequestToJson( return val; } -_$_WcSessionDeleteRequest _$$_WcSessionDeleteRequestFromJson( +_$WcSessionDeleteRequestImpl _$$WcSessionDeleteRequestImplFromJson( Map json) => - _$_WcSessionDeleteRequest( + _$WcSessionDeleteRequestImpl( code: json['code'] as int, message: json['message'] as String, data: json['data'] as String?, ); -Map _$$_WcSessionDeleteRequestToJson( - _$_WcSessionDeleteRequest instance) { +Map _$$WcSessionDeleteRequestImplToJson( + _$WcSessionDeleteRequestImpl instance) { final val = { 'code': instance.code, 'message': instance.message, @@ -199,14 +199,14 @@ Map _$$_WcSessionDeleteRequestToJson( return val; } -_$_WcSessionPingRequest _$$_WcSessionPingRequestFromJson( +_$WcSessionPingRequestImpl _$$WcSessionPingRequestImplFromJson( Map json) => - _$_WcSessionPingRequest( + _$WcSessionPingRequestImpl( data: json['data'] as Map?, ); -Map _$$_WcSessionPingRequestToJson( - _$_WcSessionPingRequest instance) { +Map _$$WcSessionPingRequestImplToJson( + _$WcSessionPingRequestImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -219,58 +219,58 @@ Map _$$_WcSessionPingRequestToJson( return val; } -_$_WcSessionRequestRequest _$$_WcSessionRequestRequestFromJson( +_$WcSessionRequestRequestImpl _$$WcSessionRequestRequestImplFromJson( Map json) => - _$_WcSessionRequestRequest( + _$WcSessionRequestRequestImpl( chainId: json['chainId'] as String, request: SessionRequestParams.fromJson( json['request'] as Map), ); -Map _$$_WcSessionRequestRequestToJson( - _$_WcSessionRequestRequest instance) => +Map _$$WcSessionRequestRequestImplToJson( + _$WcSessionRequestRequestImpl instance) => { 'chainId': instance.chainId, 'request': instance.request.toJson(), }; -_$_SessionRequestParams _$$_SessionRequestParamsFromJson( +_$SessionRequestParamsImpl _$$SessionRequestParamsImplFromJson( Map json) => - _$_SessionRequestParams( + _$SessionRequestParamsImpl( method: json['method'] as String, params: json['params'], ); -Map _$$_SessionRequestParamsToJson( - _$_SessionRequestParams instance) => +Map _$$SessionRequestParamsImplToJson( + _$SessionRequestParamsImpl instance) => { 'method': instance.method, 'params': instance.params, }; -_$_WcSessionEventRequest _$$_WcSessionEventRequestFromJson( +_$WcSessionEventRequestImpl _$$WcSessionEventRequestImplFromJson( Map json) => - _$_WcSessionEventRequest( + _$WcSessionEventRequestImpl( chainId: json['chainId'] as String, event: SessionEventParams.fromJson(json['event'] as Map), ); -Map _$$_WcSessionEventRequestToJson( - _$_WcSessionEventRequest instance) => +Map _$$WcSessionEventRequestImplToJson( + _$WcSessionEventRequestImpl instance) => { 'chainId': instance.chainId, 'event': instance.event.toJson(), }; -_$_SessionEventParams _$$_SessionEventParamsFromJson( +_$SessionEventParamsImpl _$$SessionEventParamsImplFromJson( Map json) => - _$_SessionEventParams( + _$SessionEventParamsImpl( name: json['name'] as String, data: json['data'], ); -Map _$$_SessionEventParamsToJson( - _$_SessionEventParams instance) => +Map _$$SessionEventParamsImplToJson( + _$SessionEventParamsImpl instance) => { 'name': instance.name, 'data': instance.data, diff --git a/lib/apis/sign_api/models/proposal_models.freezed.dart b/lib/apis/sign_api/models/proposal_models.freezed.dart index ce8252e9..a516bba7 100644 --- a/lib/apis/sign_api/models/proposal_models.freezed.dart +++ b/lib/apis/sign_api/models/proposal_models.freezed.dart @@ -74,22 +74,22 @@ class _$RequiredNamespaceCopyWithImpl<$Res, $Val extends RequiredNamespace> } /// @nodoc -abstract class _$$_RequiredNamespaceCopyWith<$Res> +abstract class _$$RequiredNamespaceImplCopyWith<$Res> implements $RequiredNamespaceCopyWith<$Res> { - factory _$$_RequiredNamespaceCopyWith(_$_RequiredNamespace value, - $Res Function(_$_RequiredNamespace) then) = - __$$_RequiredNamespaceCopyWithImpl<$Res>; + factory _$$RequiredNamespaceImplCopyWith(_$RequiredNamespaceImpl value, + $Res Function(_$RequiredNamespaceImpl) then) = + __$$RequiredNamespaceImplCopyWithImpl<$Res>; @override @useResult $Res call({List? chains, List methods, List events}); } /// @nodoc -class __$$_RequiredNamespaceCopyWithImpl<$Res> - extends _$RequiredNamespaceCopyWithImpl<$Res, _$_RequiredNamespace> - implements _$$_RequiredNamespaceCopyWith<$Res> { - __$$_RequiredNamespaceCopyWithImpl( - _$_RequiredNamespace _value, $Res Function(_$_RequiredNamespace) _then) +class __$$RequiredNamespaceImplCopyWithImpl<$Res> + extends _$RequiredNamespaceCopyWithImpl<$Res, _$RequiredNamespaceImpl> + implements _$$RequiredNamespaceImplCopyWith<$Res> { + __$$RequiredNamespaceImplCopyWithImpl(_$RequiredNamespaceImpl _value, + $Res Function(_$RequiredNamespaceImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -99,7 +99,7 @@ class __$$_RequiredNamespaceCopyWithImpl<$Res> Object? methods = null, Object? events = null, }) { - return _then(_$_RequiredNamespace( + return _then(_$RequiredNamespaceImpl( chains: freezed == chains ? _value._chains : chains // ignore: cast_nullable_to_non_nullable @@ -119,8 +119,8 @@ class __$$_RequiredNamespaceCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_RequiredNamespace implements _RequiredNamespace { - const _$_RequiredNamespace( +class _$RequiredNamespaceImpl implements _RequiredNamespace { + const _$RequiredNamespaceImpl( {final List? chains, required final List methods, required final List events}) @@ -128,8 +128,8 @@ class _$_RequiredNamespace implements _RequiredNamespace { _methods = methods, _events = events; - factory _$_RequiredNamespace.fromJson(Map json) => - _$$_RequiredNamespaceFromJson(json); + factory _$RequiredNamespaceImpl.fromJson(Map json) => + _$$RequiredNamespaceImplFromJson(json); final List? _chains; @override @@ -166,7 +166,7 @@ class _$_RequiredNamespace implements _RequiredNamespace { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_RequiredNamespace && + other is _$RequiredNamespaceImpl && const DeepCollectionEquality().equals(other._chains, _chains) && const DeepCollectionEquality().equals(other._methods, _methods) && const DeepCollectionEquality().equals(other._events, _events)); @@ -183,13 +183,13 @@ class _$_RequiredNamespace implements _RequiredNamespace { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_RequiredNamespaceCopyWith<_$_RequiredNamespace> get copyWith => - __$$_RequiredNamespaceCopyWithImpl<_$_RequiredNamespace>( + _$$RequiredNamespaceImplCopyWith<_$RequiredNamespaceImpl> get copyWith => + __$$RequiredNamespaceImplCopyWithImpl<_$RequiredNamespaceImpl>( this, _$identity); @override Map toJson() { - return _$$_RequiredNamespaceToJson( + return _$$RequiredNamespaceImplToJson( this, ); } @@ -199,10 +199,10 @@ abstract class _RequiredNamespace implements RequiredNamespace { const factory _RequiredNamespace( {final List? chains, required final List methods, - required final List events}) = _$_RequiredNamespace; + required final List events}) = _$RequiredNamespaceImpl; factory _RequiredNamespace.fromJson(Map json) = - _$_RequiredNamespace.fromJson; + _$RequiredNamespaceImpl.fromJson; @override List? get chains; @@ -212,7 +212,7 @@ abstract class _RequiredNamespace implements RequiredNamespace { List get events; @override @JsonKey(ignore: true) - _$$_RequiredNamespaceCopyWith<_$_RequiredNamespace> get copyWith => + _$$RequiredNamespaceImplCopyWith<_$RequiredNamespaceImpl> get copyWith => throw _privateConstructorUsedError; } @@ -280,11 +280,11 @@ class _$SessionProposalCopyWithImpl<$Res, $Val extends SessionProposal> } /// @nodoc -abstract class _$$_SessionProposalCopyWith<$Res> +abstract class _$$SessionProposalImplCopyWith<$Res> implements $SessionProposalCopyWith<$Res> { - factory _$$_SessionProposalCopyWith( - _$_SessionProposal value, $Res Function(_$_SessionProposal) then) = - __$$_SessionProposalCopyWithImpl<$Res>; + factory _$$SessionProposalImplCopyWith(_$SessionProposalImpl value, + $Res Function(_$SessionProposalImpl) then) = + __$$SessionProposalImplCopyWithImpl<$Res>; @override @useResult $Res call({int id, ProposalData params}); @@ -294,11 +294,11 @@ abstract class _$$_SessionProposalCopyWith<$Res> } /// @nodoc -class __$$_SessionProposalCopyWithImpl<$Res> - extends _$SessionProposalCopyWithImpl<$Res, _$_SessionProposal> - implements _$$_SessionProposalCopyWith<$Res> { - __$$_SessionProposalCopyWithImpl( - _$_SessionProposal _value, $Res Function(_$_SessionProposal) _then) +class __$$SessionProposalImplCopyWithImpl<$Res> + extends _$SessionProposalCopyWithImpl<$Res, _$SessionProposalImpl> + implements _$$SessionProposalImplCopyWith<$Res> { + __$$SessionProposalImplCopyWithImpl( + _$SessionProposalImpl _value, $Res Function(_$SessionProposalImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -307,7 +307,7 @@ class __$$_SessionProposalCopyWithImpl<$Res> Object? id = null, Object? params = null, }) { - return _then(_$_SessionProposal( + return _then(_$SessionProposalImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -323,11 +323,11 @@ class __$$_SessionProposalCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SessionProposal implements _SessionProposal { - const _$_SessionProposal({required this.id, required this.params}); +class _$SessionProposalImpl implements _SessionProposal { + const _$SessionProposalImpl({required this.id, required this.params}); - factory _$_SessionProposal.fromJson(Map json) => - _$$_SessionProposalFromJson(json); + factory _$SessionProposalImpl.fromJson(Map json) => + _$$SessionProposalImplFromJson(json); @override final int id; @@ -343,7 +343,7 @@ class _$_SessionProposal implements _SessionProposal { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SessionProposal && + other is _$SessionProposalImpl && (identical(other.id, id) || other.id == id) && (identical(other.params, params) || other.params == params)); } @@ -355,12 +355,13 @@ class _$_SessionProposal implements _SessionProposal { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SessionProposalCopyWith<_$_SessionProposal> get copyWith => - __$$_SessionProposalCopyWithImpl<_$_SessionProposal>(this, _$identity); + _$$SessionProposalImplCopyWith<_$SessionProposalImpl> get copyWith => + __$$SessionProposalImplCopyWithImpl<_$SessionProposalImpl>( + this, _$identity); @override Map toJson() { - return _$$_SessionProposalToJson( + return _$$SessionProposalImplToJson( this, ); } @@ -369,10 +370,10 @@ class _$_SessionProposal implements _SessionProposal { abstract class _SessionProposal implements SessionProposal { const factory _SessionProposal( {required final int id, - required final ProposalData params}) = _$_SessionProposal; + required final ProposalData params}) = _$SessionProposalImpl; factory _SessionProposal.fromJson(Map json) = - _$_SessionProposal.fromJson; + _$SessionProposalImpl.fromJson; @override int get id; @@ -380,7 +381,7 @@ abstract class _SessionProposal implements SessionProposal { ProposalData get params; @override @JsonKey(ignore: true) - _$$_SessionProposalCopyWith<_$_SessionProposal> get copyWith => + _$$SessionProposalImplCopyWith<_$SessionProposalImpl> get copyWith => throw _privateConstructorUsedError; } @@ -503,11 +504,11 @@ class _$ProposalDataCopyWithImpl<$Res, $Val extends ProposalData> } /// @nodoc -abstract class _$$_ProposalDataCopyWith<$Res> +abstract class _$$ProposalDataImplCopyWith<$Res> implements $ProposalDataCopyWith<$Res> { - factory _$$_ProposalDataCopyWith( - _$_ProposalData value, $Res Function(_$_ProposalData) then) = - __$$_ProposalDataCopyWithImpl<$Res>; + factory _$$ProposalDataImplCopyWith( + _$ProposalDataImpl value, $Res Function(_$ProposalDataImpl) then) = + __$$ProposalDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -526,11 +527,11 @@ abstract class _$$_ProposalDataCopyWith<$Res> } /// @nodoc -class __$$_ProposalDataCopyWithImpl<$Res> - extends _$ProposalDataCopyWithImpl<$Res, _$_ProposalData> - implements _$$_ProposalDataCopyWith<$Res> { - __$$_ProposalDataCopyWithImpl( - _$_ProposalData _value, $Res Function(_$_ProposalData) _then) +class __$$ProposalDataImplCopyWithImpl<$Res> + extends _$ProposalDataCopyWithImpl<$Res, _$ProposalDataImpl> + implements _$$ProposalDataImplCopyWith<$Res> { + __$$ProposalDataImplCopyWithImpl( + _$ProposalDataImpl _value, $Res Function(_$ProposalDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -546,7 +547,7 @@ class __$$_ProposalDataCopyWithImpl<$Res> Object? sessionProperties = freezed, Object? generatedNamespaces = freezed, }) { - return _then(_$_ProposalData( + return _then(_$ProposalDataImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -590,8 +591,8 @@ class __$$_ProposalDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_ProposalData implements _ProposalData { - const _$_ProposalData( +class _$ProposalDataImpl implements _ProposalData { + const _$ProposalDataImpl( {required this.id, required this.expiry, required final List relays, @@ -607,8 +608,8 @@ class _$_ProposalData implements _ProposalData { _sessionProperties = sessionProperties, _generatedNamespaces = generatedNamespaces; - factory _$_ProposalData.fromJson(Map json) => - _$$_ProposalDataFromJson(json); + factory _$ProposalDataImpl.fromJson(Map json) => + _$$ProposalDataImplFromJson(json); @override final int id; @@ -675,7 +676,7 @@ class _$_ProposalData implements _ProposalData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ProposalData && + other is _$ProposalDataImpl && (identical(other.id, id) || other.id == id) && (identical(other.expiry, expiry) || other.expiry == expiry) && const DeepCollectionEquality().equals(other._relays, _relays) && @@ -710,12 +711,12 @@ class _$_ProposalData implements _ProposalData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ProposalDataCopyWith<_$_ProposalData> get copyWith => - __$$_ProposalDataCopyWithImpl<_$_ProposalData>(this, _$identity); + _$$ProposalDataImplCopyWith<_$ProposalDataImpl> get copyWith => + __$$ProposalDataImplCopyWithImpl<_$ProposalDataImpl>(this, _$identity); @override Map toJson() { - return _$$_ProposalDataToJson( + return _$$ProposalDataImplToJson( this, ); } @@ -731,10 +732,10 @@ abstract class _ProposalData implements ProposalData { required final Map optionalNamespaces, required final String pairingTopic, final Map? sessionProperties, - final Map? generatedNamespaces}) = _$_ProposalData; + final Map? generatedNamespaces}) = _$ProposalDataImpl; factory _ProposalData.fromJson(Map json) = - _$_ProposalData.fromJson; + _$ProposalDataImpl.fromJson; @override int get id; @@ -756,6 +757,6 @@ abstract class _ProposalData implements ProposalData { Map? get generatedNamespaces; @override @JsonKey(ignore: true) - _$$_ProposalDataCopyWith<_$_ProposalData> get copyWith => + _$$ProposalDataImplCopyWith<_$ProposalDataImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/apis/sign_api/models/proposal_models.g.dart b/lib/apis/sign_api/models/proposal_models.g.dart index 47ae9228..e63f97a3 100644 --- a/lib/apis/sign_api/models/proposal_models.g.dart +++ b/lib/apis/sign_api/models/proposal_models.g.dart @@ -6,8 +6,9 @@ part of 'proposal_models.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_RequiredNamespace _$$_RequiredNamespaceFromJson(Map json) => - _$_RequiredNamespace( +_$RequiredNamespaceImpl _$$RequiredNamespaceImplFromJson( + Map json) => + _$RequiredNamespaceImpl( chains: (json['chains'] as List?)?.map((e) => e as String).toList(), methods: @@ -16,8 +17,8 @@ _$_RequiredNamespace _$$_RequiredNamespaceFromJson(Map json) => (json['events'] as List).map((e) => e as String).toList(), ); -Map _$$_RequiredNamespaceToJson( - _$_RequiredNamespace instance) { +Map _$$RequiredNamespaceImplToJson( + _$RequiredNamespaceImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { @@ -32,20 +33,22 @@ Map _$$_RequiredNamespaceToJson( return val; } -_$_SessionProposal _$$_SessionProposalFromJson(Map json) => - _$_SessionProposal( +_$SessionProposalImpl _$$SessionProposalImplFromJson( + Map json) => + _$SessionProposalImpl( id: json['id'] as int, params: ProposalData.fromJson(json['params'] as Map), ); -Map _$$_SessionProposalToJson(_$_SessionProposal instance) => +Map _$$SessionProposalImplToJson( + _$SessionProposalImpl instance) => { 'id': instance.id, 'params': instance.params.toJson(), }; -_$_ProposalData _$$_ProposalDataFromJson(Map json) => - _$_ProposalData( +_$ProposalDataImpl _$$ProposalDataImplFromJson(Map json) => + _$ProposalDataImpl( id: json['id'] as int, expiry: json['expiry'] as int, relays: (json['relays'] as List) @@ -74,7 +77,7 @@ _$_ProposalData _$$_ProposalDataFromJson(Map json) => ), ); -Map _$$_ProposalDataToJson(_$_ProposalData instance) { +Map _$$ProposalDataImplToJson(_$ProposalDataImpl instance) { final val = { 'id': instance.id, 'expiry': instance.expiry, diff --git a/lib/apis/sign_api/models/session_models.freezed.dart b/lib/apis/sign_api/models/session_models.freezed.dart index 1a1a360a..4e8b8c56 100644 --- a/lib/apis/sign_api/models/session_models.freezed.dart +++ b/lib/apis/sign_api/models/session_models.freezed.dart @@ -73,21 +73,22 @@ class _$NamespaceCopyWithImpl<$Res, $Val extends Namespace> } /// @nodoc -abstract class _$$_NamespaceCopyWith<$Res> implements $NamespaceCopyWith<$Res> { - factory _$$_NamespaceCopyWith( - _$_Namespace value, $Res Function(_$_Namespace) then) = - __$$_NamespaceCopyWithImpl<$Res>; +abstract class _$$NamespaceImplCopyWith<$Res> + implements $NamespaceCopyWith<$Res> { + factory _$$NamespaceImplCopyWith( + _$NamespaceImpl value, $Res Function(_$NamespaceImpl) then) = + __$$NamespaceImplCopyWithImpl<$Res>; @override @useResult $Res call({List accounts, List methods, List events}); } /// @nodoc -class __$$_NamespaceCopyWithImpl<$Res> - extends _$NamespaceCopyWithImpl<$Res, _$_Namespace> - implements _$$_NamespaceCopyWith<$Res> { - __$$_NamespaceCopyWithImpl( - _$_Namespace _value, $Res Function(_$_Namespace) _then) +class __$$NamespaceImplCopyWithImpl<$Res> + extends _$NamespaceCopyWithImpl<$Res, _$NamespaceImpl> + implements _$$NamespaceImplCopyWith<$Res> { + __$$NamespaceImplCopyWithImpl( + _$NamespaceImpl _value, $Res Function(_$NamespaceImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -97,7 +98,7 @@ class __$$_NamespaceCopyWithImpl<$Res> Object? methods = null, Object? events = null, }) { - return _then(_$_Namespace( + return _then(_$NamespaceImpl( accounts: null == accounts ? _value._accounts : accounts // ignore: cast_nullable_to_non_nullable @@ -117,8 +118,8 @@ class __$$_NamespaceCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_Namespace implements _Namespace { - const _$_Namespace( +class _$NamespaceImpl implements _Namespace { + const _$NamespaceImpl( {required final List accounts, required final List methods, required final List events}) @@ -126,8 +127,8 @@ class _$_Namespace implements _Namespace { _methods = methods, _events = events; - factory _$_Namespace.fromJson(Map json) => - _$$_NamespaceFromJson(json); + factory _$NamespaceImpl.fromJson(Map json) => + _$$NamespaceImplFromJson(json); final List _accounts; @override @@ -162,7 +163,7 @@ class _$_Namespace implements _Namespace { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_Namespace && + other is _$NamespaceImpl && const DeepCollectionEquality().equals(other._accounts, _accounts) && const DeepCollectionEquality().equals(other._methods, _methods) && const DeepCollectionEquality().equals(other._events, _events)); @@ -179,12 +180,12 @@ class _$_Namespace implements _Namespace { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_NamespaceCopyWith<_$_Namespace> get copyWith => - __$$_NamespaceCopyWithImpl<_$_Namespace>(this, _$identity); + _$$NamespaceImplCopyWith<_$NamespaceImpl> get copyWith => + __$$NamespaceImplCopyWithImpl<_$NamespaceImpl>(this, _$identity); @override Map toJson() { - return _$$_NamespaceToJson( + return _$$NamespaceImplToJson( this, ); } @@ -194,10 +195,10 @@ abstract class _Namespace implements Namespace { const factory _Namespace( {required final List accounts, required final List methods, - required final List events}) = _$_Namespace; + required final List events}) = _$NamespaceImpl; factory _Namespace.fromJson(Map json) = - _$_Namespace.fromJson; + _$NamespaceImpl.fromJson; @override List get accounts; @@ -207,7 +208,7 @@ abstract class _Namespace implements Namespace { List get events; @override @JsonKey(ignore: true) - _$$_NamespaceCopyWith<_$_Namespace> get copyWith => + _$$NamespaceImplCopyWith<_$NamespaceImpl> get copyWith => throw _privateConstructorUsedError; } @@ -359,11 +360,11 @@ class _$SessionDataCopyWithImpl<$Res, $Val extends SessionData> } /// @nodoc -abstract class _$$_SessionDataCopyWith<$Res> +abstract class _$$SessionDataImplCopyWith<$Res> implements $SessionDataCopyWith<$Res> { - factory _$$_SessionDataCopyWith( - _$_SessionData value, $Res Function(_$_SessionData) then) = - __$$_SessionDataCopyWithImpl<$Res>; + factory _$$SessionDataImplCopyWith( + _$SessionDataImpl value, $Res Function(_$SessionDataImpl) then) = + __$$SessionDataImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -387,11 +388,11 @@ abstract class _$$_SessionDataCopyWith<$Res> } /// @nodoc -class __$$_SessionDataCopyWithImpl<$Res> - extends _$SessionDataCopyWithImpl<$Res, _$_SessionData> - implements _$$_SessionDataCopyWith<$Res> { - __$$_SessionDataCopyWithImpl( - _$_SessionData _value, $Res Function(_$_SessionData) _then) +class __$$SessionDataImplCopyWithImpl<$Res> + extends _$SessionDataCopyWithImpl<$Res, _$SessionDataImpl> + implements _$$SessionDataImplCopyWith<$Res> { + __$$SessionDataImplCopyWithImpl( + _$SessionDataImpl _value, $Res Function(_$SessionDataImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -410,7 +411,7 @@ class __$$_SessionDataCopyWithImpl<$Res> Object? self = null, Object? peer = null, }) { - return _then(_$_SessionData( + return _then(_$SessionDataImpl( topic: null == topic ? _value.topic : topic // ignore: cast_nullable_to_non_nullable @@ -466,8 +467,8 @@ class __$$_SessionDataCopyWithImpl<$Res> /// @nodoc @JsonSerializable(includeIfNull: false) -class _$_SessionData implements _SessionData { - const _$_SessionData( +class _$SessionDataImpl implements _SessionData { + const _$SessionDataImpl( {required this.topic, required this.pairingTopic, required this.relay, @@ -485,8 +486,8 @@ class _$_SessionData implements _SessionData { _optionalNamespaces = optionalNamespaces, _sessionProperties = sessionProperties; - factory _$_SessionData.fromJson(Map json) => - _$$_SessionDataFromJson(json); + factory _$SessionDataImpl.fromJson(Map json) => + _$$SessionDataImplFromJson(json); @override final String topic; @@ -555,7 +556,7 @@ class _$_SessionData implements _SessionData { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SessionData && + other is _$SessionDataImpl && (identical(other.topic, topic) || other.topic == topic) && (identical(other.pairingTopic, pairingTopic) || other.pairingTopic == pairingTopic) && @@ -597,12 +598,12 @@ class _$_SessionData implements _SessionData { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SessionDataCopyWith<_$_SessionData> get copyWith => - __$$_SessionDataCopyWithImpl<_$_SessionData>(this, _$identity); + _$$SessionDataImplCopyWith<_$SessionDataImpl> get copyWith => + __$$SessionDataImplCopyWithImpl<_$SessionDataImpl>(this, _$identity); @override Map toJson() { - return _$$_SessionDataToJson( + return _$$SessionDataImplToJson( this, ); } @@ -621,10 +622,10 @@ abstract class _SessionData implements SessionData { final Map? optionalNamespaces, final Map? sessionProperties, required final ConnectionMetadata self, - required final ConnectionMetadata peer}) = _$_SessionData; + required final ConnectionMetadata peer}) = _$SessionDataImpl; factory _SessionData.fromJson(Map json) = - _$_SessionData.fromJson; + _$SessionDataImpl.fromJson; @override String get topic; @@ -652,7 +653,7 @@ abstract class _SessionData implements SessionData { ConnectionMetadata get peer; @override @JsonKey(ignore: true) - _$$_SessionDataCopyWith<_$_SessionData> get copyWith => + _$$SessionDataImplCopyWith<_$SessionDataImpl> get copyWith => throw _privateConstructorUsedError; } @@ -750,11 +751,11 @@ class _$SessionRequestCopyWithImpl<$Res, $Val extends SessionRequest> } /// @nodoc -abstract class _$$_SessionRequestCopyWith<$Res> +abstract class _$$SessionRequestImplCopyWith<$Res> implements $SessionRequestCopyWith<$Res> { - factory _$$_SessionRequestCopyWith( - _$_SessionRequest value, $Res Function(_$_SessionRequest) then) = - __$$_SessionRequestCopyWithImpl<$Res>; + factory _$$SessionRequestImplCopyWith(_$SessionRequestImpl value, + $Res Function(_$SessionRequestImpl) then) = + __$$SessionRequestImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -770,11 +771,11 @@ abstract class _$$_SessionRequestCopyWith<$Res> } /// @nodoc -class __$$_SessionRequestCopyWithImpl<$Res> - extends _$SessionRequestCopyWithImpl<$Res, _$_SessionRequest> - implements _$$_SessionRequestCopyWith<$Res> { - __$$_SessionRequestCopyWithImpl( - _$_SessionRequest _value, $Res Function(_$_SessionRequest) _then) +class __$$SessionRequestImplCopyWithImpl<$Res> + extends _$SessionRequestCopyWithImpl<$Res, _$SessionRequestImpl> + implements _$$SessionRequestImplCopyWith<$Res> { + __$$SessionRequestImplCopyWithImpl( + _$SessionRequestImpl _value, $Res Function(_$SessionRequestImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -787,7 +788,7 @@ class __$$_SessionRequestCopyWithImpl<$Res> Object? params = freezed, Object? verifyContext = null, }) { - return _then(_$_SessionRequest( + return _then(_$SessionRequestImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable @@ -819,8 +820,8 @@ class __$$_SessionRequestCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_SessionRequest implements _SessionRequest { - const _$_SessionRequest( +class _$SessionRequestImpl implements _SessionRequest { + const _$SessionRequestImpl( {required this.id, required this.topic, required this.method, @@ -828,8 +829,8 @@ class _$_SessionRequest implements _SessionRequest { required this.params, required this.verifyContext}); - factory _$_SessionRequest.fromJson(Map json) => - _$$_SessionRequestFromJson(json); + factory _$SessionRequestImpl.fromJson(Map json) => + _$$SessionRequestImplFromJson(json); @override final int id; @@ -853,7 +854,7 @@ class _$_SessionRequest implements _SessionRequest { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_SessionRequest && + other is _$SessionRequestImpl && (identical(other.id, id) || other.id == id) && (identical(other.topic, topic) || other.topic == topic) && (identical(other.method, method) || other.method == method) && @@ -871,12 +872,13 @@ class _$_SessionRequest implements _SessionRequest { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_SessionRequestCopyWith<_$_SessionRequest> get copyWith => - __$$_SessionRequestCopyWithImpl<_$_SessionRequest>(this, _$identity); + _$$SessionRequestImplCopyWith<_$SessionRequestImpl> get copyWith => + __$$SessionRequestImplCopyWithImpl<_$SessionRequestImpl>( + this, _$identity); @override Map toJson() { - return _$$_SessionRequestToJson( + return _$$SessionRequestImplToJson( this, ); } @@ -889,10 +891,10 @@ abstract class _SessionRequest implements SessionRequest { required final String method, required final String chainId, required final dynamic params, - required final VerifyContext verifyContext}) = _$_SessionRequest; + required final VerifyContext verifyContext}) = _$SessionRequestImpl; factory _SessionRequest.fromJson(Map json) = - _$_SessionRequest.fromJson; + _$SessionRequestImpl.fromJson; @override int get id; @@ -908,6 +910,6 @@ abstract class _SessionRequest implements SessionRequest { VerifyContext get verifyContext; @override @JsonKey(ignore: true) - _$$_SessionRequestCopyWith<_$_SessionRequest> get copyWith => + _$$SessionRequestImplCopyWith<_$SessionRequestImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/apis/sign_api/models/session_models.g.dart b/lib/apis/sign_api/models/session_models.g.dart index aa8ba731..30d48c78 100644 --- a/lib/apis/sign_api/models/session_models.g.dart +++ b/lib/apis/sign_api/models/session_models.g.dart @@ -6,7 +6,8 @@ part of 'session_models.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_Namespace _$$_NamespaceFromJson(Map json) => _$_Namespace( +_$NamespaceImpl _$$NamespaceImplFromJson(Map json) => + _$NamespaceImpl( accounts: (json['accounts'] as List).map((e) => e as String).toList(), methods: @@ -15,15 +16,15 @@ _$_Namespace _$$_NamespaceFromJson(Map json) => _$_Namespace( (json['events'] as List).map((e) => e as String).toList(), ); -Map _$$_NamespaceToJson(_$_Namespace instance) => +Map _$$NamespaceImplToJson(_$NamespaceImpl instance) => { 'accounts': instance.accounts, 'methods': instance.methods, 'events': instance.events, }; -_$_SessionData _$$_SessionDataFromJson(Map json) => - _$_SessionData( +_$SessionDataImpl _$$SessionDataImplFromJson(Map json) => + _$SessionDataImpl( topic: json['topic'] as String, pairingTopic: json['pairingTopic'] as String, relay: Relay.fromJson(json['relay'] as Map), @@ -51,7 +52,7 @@ _$_SessionData _$$_SessionDataFromJson(Map json) => peer: ConnectionMetadata.fromJson(json['peer'] as Map), ); -Map _$$_SessionDataToJson(_$_SessionData instance) { +Map _$$SessionDataImplToJson(_$SessionDataImpl instance) { final val = { 'topic': instance.topic, 'pairingTopic': instance.pairingTopic, @@ -78,8 +79,8 @@ Map _$$_SessionDataToJson(_$_SessionData instance) { return val; } -_$_SessionRequest _$$_SessionRequestFromJson(Map json) => - _$_SessionRequest( +_$SessionRequestImpl _$$SessionRequestImplFromJson(Map json) => + _$SessionRequestImpl( id: json['id'] as int, topic: json['topic'] as String, method: json['method'] as String, @@ -89,7 +90,8 @@ _$_SessionRequest _$$_SessionRequestFromJson(Map json) => VerifyContext.fromJson(json['verifyContext'] as Map), ); -Map _$$_SessionRequestToJson(_$_SessionRequest instance) => +Map _$$SessionRequestImplToJson( + _$SessionRequestImpl instance) => { 'id': instance.id, 'topic': instance.topic, diff --git a/lib/apis/utils/constants.dart b/lib/apis/utils/constants.dart index 53701997..739f3bd2 100644 --- a/lib/apis/utils/constants.dart +++ b/lib/apis/utils/constants.dart @@ -1,5 +1,5 @@ class WalletConnectConstants { - static const SDK_VERSION = '2.1.9'; + static const SDK_VERSION = '2.1.10'; static const CORE_PROTOCOL = 'wc'; static const CORE_VERSION = 2; diff --git a/lib/src/version.dart b/lib/src/version.dart index 3a7829ac..71ae6bf6 100644 --- a/lib/src/version.dart +++ b/lib/src/version.dart @@ -1,2 +1,2 @@ // Generated code. Do not modify. -const packageVersion = '2.1.9'; +const packageVersion = '2.1.10'; diff --git a/pubspec.yaml b/pubspec.yaml index 1cf63b27..184f8f84 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: walletconnect_flutter_v2 description: This repository contains oficial implementation of WalletConnect v2 protocols for Flutter applications. The communications protocol for web3. -version: 2.1.9 +version: 2.1.10 repository: https://github.com/WalletConnect/WalletConnectFlutterV2 environment: diff --git a/test/shared/shared_test_utils.mocks.dart b/test/shared/shared_test_utils.mocks.dart index 1350ef56..f2f7f851 100644 --- a/test/shared/shared_test_utils.mocks.dart +++ b/test/shared/shared_test_utils.mocks.dart @@ -1,17 +1,18 @@ -// Mocks generated by Mockito 5.4.2 from annotations +// Mocks generated by Mockito 5.4.3 from annotations // in walletconnect_flutter_v2/test/shared/shared_test_utils.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i20; +import 'dart:async' as _i21; import 'dart:typed_data' as _i19; import 'package:event/event.dart' as _i8; import 'package:http/http.dart' as _i9; import 'package:logger/logger.dart' as _i17; import 'package:mockito/mockito.dart' as _i1; -import 'package:walletconnect_flutter_v2/apis/core/core.dart' as _i25; -import 'package:walletconnect_flutter_v2/apis/core/crypto/crypto.dart' as _i21; +import 'package:mockito/src/dummies.dart' as _i20; +import 'package:walletconnect_flutter_v2/apis/core/core.dart' as _i26; +import 'package:walletconnect_flutter_v2/apis/core/crypto/crypto.dart' as _i22; import 'package:walletconnect_flutter_v2/apis/core/crypto/crypto_models.dart' as _i2; import 'package:walletconnect_flutter_v2/apis/core/crypto/crypto_utils.dart' @@ -33,16 +34,16 @@ import 'package:walletconnect_flutter_v2/apis/core/relay_auth/i_relay_auth.dart' import 'package:walletconnect_flutter_v2/apis/core/relay_client/i_relay_client.dart' as _i11; import 'package:walletconnect_flutter_v2/apis/core/relay_client/message_tracker.dart' - as _i22; + as _i23; import 'package:walletconnect_flutter_v2/apis/core/relay_client/websocket/http_client.dart' - as _i24; + as _i25; import 'package:walletconnect_flutter_v2/apis/core/relay_client/websocket/websocket_handler.dart' - as _i26; + as _i27; import 'package:walletconnect_flutter_v2/apis/core/store/i_generic_store.dart' as _i4; import 'package:walletconnect_flutter_v2/apis/core/store/i_store.dart' as _i7; import 'package:walletconnect_flutter_v2/apis/core/store/store_models.dart' - as _i23; + as _i24; import 'package:walletconnect_flutter_v2/apis/core/verify/i_verify.dart' as _i16; @@ -50,6 +51,8 @@ import 'package:walletconnect_flutter_v2/apis/core/verify/i_verify.dart' // 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 @@ -263,6 +266,7 @@ class MockCryptoUtils extends _i1.Mock implements _i18.CryptoUtils { ), ), ) as _i2.CryptoKeyPair); + @override _i19.Uint8List randomBytes(int? length) => (super.noSuchMethod( Invocation.method( @@ -271,16 +275,24 @@ class MockCryptoUtils extends _i1.Mock implements _i18.CryptoUtils { ), returnValue: _i19.Uint8List(0), ) as _i19.Uint8List); + @override String generateRandomBytes32() => (super.noSuchMethod( Invocation.method( #generateRandomBytes32, [], ), - returnValue: '', + returnValue: _i20.dummyValue( + this, + Invocation.method( + #generateRandomBytes32, + [], + ), + ), ) as String); + @override - _i20.Future deriveSymKey( + _i21.Future deriveSymKey( String? privKeyA, String? pubKeyB, ) => @@ -292,26 +304,50 @@ class MockCryptoUtils extends _i1.Mock implements _i18.CryptoUtils { pubKeyB, ], ), - returnValue: _i20.Future.value(''), - ) as _i20.Future); + returnValue: _i21.Future.value(_i20.dummyValue( + this, + Invocation.method( + #deriveSymKey, + [ + privKeyA, + pubKeyB, + ], + ), + )), + ) as _i21.Future); + @override String hashKey(String? key) => (super.noSuchMethod( Invocation.method( #hashKey, [key], ), - returnValue: '', + returnValue: _i20.dummyValue( + this, + Invocation.method( + #hashKey, + [key], + ), + ), ) as String); + @override String hashMessage(String? message) => (super.noSuchMethod( Invocation.method( #hashMessage, [message], ), - returnValue: '', + returnValue: _i20.dummyValue( + this, + Invocation.method( + #hashMessage, + [message], + ), + ), ) as String); + @override - _i20.Future encrypt( + _i21.Future encrypt( String? message, String? symKey, { int? type, @@ -331,10 +367,25 @@ class MockCryptoUtils extends _i1.Mock implements _i18.CryptoUtils { #senderPublicKey: senderPublicKey, }, ), - returnValue: _i20.Future.value(''), - ) as _i20.Future); + returnValue: _i21.Future.value(_i20.dummyValue( + this, + Invocation.method( + #encrypt, + [ + message, + symKey, + ], + { + #type: type, + #iv: iv, + #senderPublicKey: senderPublicKey, + }, + ), + )), + ) as _i21.Future); + @override - _i20.Future decrypt( + _i21.Future decrypt( String? symKey, String? encoded, ) => @@ -346,8 +397,18 @@ class MockCryptoUtils extends _i1.Mock implements _i18.CryptoUtils { encoded, ], ), - returnValue: _i20.Future.value(''), - ) as _i20.Future); + returnValue: _i21.Future.value(_i20.dummyValue( + this, + Invocation.method( + #decrypt, + [ + symKey, + encoded, + ], + ), + )), + ) as _i21.Future); + @override String serialize( int? type, @@ -365,8 +426,20 @@ class MockCryptoUtils extends _i1.Mock implements _i18.CryptoUtils { ], {#senderPublicKey: senderPublicKey}, ), - returnValue: '', + returnValue: _i20.dummyValue( + this, + Invocation.method( + #serialize, + [ + type, + sealed, + iv, + ], + {#senderPublicKey: senderPublicKey}, + ), + ), ) as String); + @override _i2.EncodingParams deserialize(String? encoded) => (super.noSuchMethod( Invocation.method( @@ -381,6 +454,7 @@ class MockCryptoUtils extends _i1.Mock implements _i18.CryptoUtils { ), ), ) as _i2.EncodingParams); + @override _i2.EncodingValidation validateDecoding( String? encoded, { @@ -401,6 +475,7 @@ class MockCryptoUtils extends _i1.Mock implements _i18.CryptoUtils { ), ), ) as _i2.EncodingValidation); + @override _i2.EncodingValidation validateEncoding({ int? type, @@ -430,6 +505,7 @@ class MockCryptoUtils extends _i1.Mock implements _i18.CryptoUtils { ), ), ) as _i2.EncodingValidation); + @override bool isTypeOneEnvelope(_i2.EncodingValidation? result) => (super.noSuchMethod( Invocation.method( @@ -443,7 +519,7 @@ class MockCryptoUtils extends _i1.Mock implements _i18.CryptoUtils { /// A class which mocks [Crypto]. /// /// See the documentation for Mockito's code generation for more information. -class MockCrypto extends _i1.Mock implements _i21.Crypto { +class MockCrypto extends _i1.Mock implements _i22.Crypto { MockCrypto() { _i1.throwOnMissingStub(this); } @@ -456,6 +532,7 @@ class MockCrypto extends _i1.Mock implements _i21.Crypto { Invocation.getter(#core), ), ) as _i3.ICore); + @override _i4.IGenericStore get keyChain => (super.noSuchMethod( Invocation.getter(#keyChain), @@ -464,6 +541,7 @@ class MockCrypto extends _i1.Mock implements _i21.Crypto { Invocation.getter(#keyChain), ), ) as _i4.IGenericStore); + @override set keyChain(_i4.IGenericStore? _keyChain) => super.noSuchMethod( Invocation.setter( @@ -472,6 +550,7 @@ class MockCrypto extends _i1.Mock implements _i21.Crypto { ), returnValueForMissingStub: null, ); + @override _i5.ICryptoUtils get utils => (super.noSuchMethod( Invocation.getter(#utils), @@ -480,6 +559,7 @@ class MockCrypto extends _i1.Mock implements _i21.Crypto { Invocation.getter(#utils), ), ) as _i5.ICryptoUtils); + @override set utils(_i5.ICryptoUtils? _utils) => super.noSuchMethod( Invocation.setter( @@ -488,6 +568,7 @@ class MockCrypto extends _i1.Mock implements _i21.Crypto { ), returnValueForMissingStub: null, ); + @override _i6.IRelayAuth get relayAuth => (super.noSuchMethod( Invocation.getter(#relayAuth), @@ -496,6 +577,7 @@ class MockCrypto extends _i1.Mock implements _i21.Crypto { Invocation.getter(#relayAuth), ), ) as _i6.IRelayAuth); + @override set relayAuth(_i6.IRelayAuth? _relayAuth) => super.noSuchMethod( Invocation.setter( @@ -504,20 +586,26 @@ class MockCrypto extends _i1.Mock implements _i21.Crypto { ), returnValueForMissingStub: null, ); + @override String get name => (super.noSuchMethod( Invocation.getter(#name), - returnValue: '', + returnValue: _i20.dummyValue( + this, + Invocation.getter(#name), + ), ) as String); + @override - _i20.Future init() => (super.noSuchMethod( + _i21.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); + @override bool hasKeys(String? tag) => (super.noSuchMethod( Invocation.method( @@ -526,24 +614,39 @@ class MockCrypto extends _i1.Mock implements _i21.Crypto { ), returnValue: false, ) as bool); + @override - _i20.Future getClientId() => (super.noSuchMethod( + _i21.Future getClientId() => (super.noSuchMethod( Invocation.method( #getClientId, [], ), - returnValue: _i20.Future.value(''), - ) as _i20.Future); + returnValue: _i21.Future.value(_i20.dummyValue( + this, + Invocation.method( + #getClientId, + [], + ), + )), + ) as _i21.Future); + @override - _i20.Future generateKeyPair() => (super.noSuchMethod( + _i21.Future generateKeyPair() => (super.noSuchMethod( Invocation.method( #generateKeyPair, [], ), - returnValue: _i20.Future.value(''), - ) as _i20.Future); + returnValue: _i21.Future.value(_i20.dummyValue( + this, + Invocation.method( + #generateKeyPair, + [], + ), + )), + ) as _i21.Future); + @override - _i20.Future generateSharedKey( + _i21.Future generateSharedKey( String? selfPublicKey, String? peerPublicKey, { String? overrideTopic, @@ -557,10 +660,21 @@ class MockCrypto extends _i1.Mock implements _i21.Crypto { ], {#overrideTopic: overrideTopic}, ), - returnValue: _i20.Future.value(''), - ) as _i20.Future); + returnValue: _i21.Future.value(_i20.dummyValue( + this, + Invocation.method( + #generateSharedKey, + [ + selfPublicKey, + peerPublicKey, + ], + {#overrideTopic: overrideTopic}, + ), + )), + ) as _i21.Future); + @override - _i20.Future setSymKey( + _i21.Future setSymKey( String? symKey, { String? overrideTopic, }) => @@ -570,28 +684,38 @@ class MockCrypto extends _i1.Mock implements _i21.Crypto { [symKey], {#overrideTopic: overrideTopic}, ), - returnValue: _i20.Future.value(''), - ) as _i20.Future); + returnValue: _i21.Future.value(_i20.dummyValue( + this, + Invocation.method( + #setSymKey, + [symKey], + {#overrideTopic: overrideTopic}, + ), + )), + ) as _i21.Future); + @override - _i20.Future deleteKeyPair(String? publicKey) => (super.noSuchMethod( + _i21.Future deleteKeyPair(String? publicKey) => (super.noSuchMethod( Invocation.method( #deleteKeyPair, [publicKey], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); + @override - _i20.Future deleteSymKey(String? topic) => (super.noSuchMethod( + _i21.Future deleteSymKey(String? topic) => (super.noSuchMethod( Invocation.method( #deleteSymKey, [topic], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); + @override - _i20.Future encode( + _i21.Future encode( String? topic, Map? payload, { _i2.EncodeOptions? options, @@ -605,10 +729,11 @@ class MockCrypto extends _i1.Mock implements _i21.Crypto { ], {#options: options}, ), - returnValue: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + ) as _i21.Future); + @override - _i20.Future decode( + _i21.Future decode( String? topic, String? encoded, { _i2.DecodeOptions? options, @@ -622,16 +747,24 @@ class MockCrypto extends _i1.Mock implements _i21.Crypto { ], {#options: options}, ), - returnValue: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + ) as _i21.Future); + @override - _i20.Future signJWT(String? aud) => (super.noSuchMethod( + _i21.Future signJWT(String? aud) => (super.noSuchMethod( Invocation.method( #signJWT, [aud], ), - returnValue: _i20.Future.value(''), - ) as _i20.Future); + returnValue: _i21.Future.value(_i20.dummyValue( + this, + Invocation.method( + #signJWT, + [aud], + ), + )), + ) as _i21.Future); + @override int getPayloadType(String? encoded) => (super.noSuchMethod( Invocation.method( @@ -640,6 +773,7 @@ class MockCrypto extends _i1.Mock implements _i21.Crypto { ), returnValue: 0, ) as int); + @override _i5.ICryptoUtils getUtils() => (super.noSuchMethod( Invocation.method( @@ -659,7 +793,7 @@ class MockCrypto extends _i1.Mock implements _i21.Crypto { /// A class which mocks [MessageTracker]. /// /// See the documentation for Mockito's code generation for more information. -class MockMessageTracker extends _i1.Mock implements _i22.MessageTracker { +class MockMessageTracker extends _i1.Mock implements _i23.MessageTracker { MockMessageTracker() { _i1.throwOnMissingStub(this); } @@ -667,13 +801,21 @@ class MockMessageTracker extends _i1.Mock implements _i22.MessageTracker { @override String get context => (super.noSuchMethod( Invocation.getter(#context), - returnValue: '', + returnValue: _i20.dummyValue( + this, + Invocation.getter(#context), + ), ) as String); + @override String get version => (super.noSuchMethod( Invocation.getter(#version), - returnValue: '', + returnValue: _i20.dummyValue( + this, + Invocation.getter(#version), + ), ) as String); + @override _i7.IStore get storage => (super.noSuchMethod( Invocation.getter(#storage), @@ -682,46 +824,52 @@ class MockMessageTracker extends _i1.Mock implements _i22.MessageTracker { Invocation.getter(#storage), ), ) as _i7.IStore); + @override - _i8.Event<_i23.StoreCreateEvent>> get onCreate => + _i8.Event<_i24.StoreCreateEvent>> get onCreate => (super.noSuchMethod( Invocation.getter(#onCreate), - returnValue: _FakeEvent_8<_i23.StoreCreateEvent>>( + returnValue: _FakeEvent_8<_i24.StoreCreateEvent>>( this, Invocation.getter(#onCreate), ), - ) as _i8.Event<_i23.StoreCreateEvent>>); + ) as _i8.Event<_i24.StoreCreateEvent>>); + @override - _i8.Event<_i23.StoreUpdateEvent>> get onUpdate => + _i8.Event<_i24.StoreUpdateEvent>> get onUpdate => (super.noSuchMethod( Invocation.getter(#onUpdate), - returnValue: _FakeEvent_8<_i23.StoreUpdateEvent>>( + returnValue: _FakeEvent_8<_i24.StoreUpdateEvent>>( this, Invocation.getter(#onUpdate), ), - ) as _i8.Event<_i23.StoreUpdateEvent>>); + ) as _i8.Event<_i24.StoreUpdateEvent>>); + @override - _i8.Event<_i23.StoreDeleteEvent>> get onDelete => + _i8.Event<_i24.StoreDeleteEvent>> get onDelete => (super.noSuchMethod( Invocation.getter(#onDelete), - returnValue: _FakeEvent_8<_i23.StoreDeleteEvent>>( + returnValue: _FakeEvent_8<_i24.StoreDeleteEvent>>( this, Invocation.getter(#onDelete), ), - ) as _i8.Event<_i23.StoreDeleteEvent>>); + ) as _i8.Event<_i24.StoreDeleteEvent>>); + @override - _i8.Event<_i23.StoreSyncEvent> get onSync => (super.noSuchMethod( + _i8.Event<_i24.StoreSyncEvent> get onSync => (super.noSuchMethod( Invocation.getter(#onSync), - returnValue: _FakeEvent_8<_i23.StoreSyncEvent>( + returnValue: _FakeEvent_8<_i24.StoreSyncEvent>( this, Invocation.getter(#onSync), ), - ) as _i8.Event<_i23.StoreSyncEvent>); + ) as _i8.Event<_i24.StoreSyncEvent>); + @override Map> get data => (super.noSuchMethod( Invocation.getter(#data), returnValue: >{}, ) as Map>); + @override set data(Map>? _data) => super.noSuchMethod( Invocation.setter( @@ -730,26 +878,39 @@ class MockMessageTracker extends _i1.Mock implements _i22.MessageTracker { ), returnValueForMissingStub: null, ); + @override Map Function(dynamic) get fromJson => (super.noSuchMethod( Invocation.getter(#fromJson), returnValue: (dynamic __p0) => {}, ) as Map Function(dynamic)); + @override String get storageKey => (super.noSuchMethod( Invocation.getter(#storageKey), - returnValue: '', + returnValue: _i20.dummyValue( + this, + Invocation.getter(#storageKey), + ), ) as String); + @override String hashMessage(String? message) => (super.noSuchMethod( Invocation.method( #hashMessage, [message], ), - returnValue: '', + returnValue: _i20.dummyValue( + this, + Invocation.method( + #hashMessage, + [message], + ), + ), ) as String); + @override - _i20.Future recordMessageEvent( + _i21.Future recordMessageEvent( String? topic, String? message, ) => @@ -761,9 +922,10 @@ class MockMessageTracker extends _i1.Mock implements _i22.MessageTracker { message, ], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); + @override bool messageIsRecorded( String? topic, @@ -779,15 +941,17 @@ class MockMessageTracker extends _i1.Mock implements _i22.MessageTracker { ), returnValue: false, ) as bool); + @override - _i20.Future init() => (super.noSuchMethod( + _i21.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); + @override bool has(String? key) => (super.noSuchMethod( Invocation.method( @@ -796,12 +960,14 @@ class MockMessageTracker extends _i1.Mock implements _i22.MessageTracker { ), returnValue: false, ) as bool); + @override Map? get(String? key) => (super.noSuchMethod(Invocation.method( #get, [key], )) as Map?); + @override List> getAll() => (super.noSuchMethod( Invocation.method( @@ -810,8 +976,9 @@ class MockMessageTracker extends _i1.Mock implements _i22.MessageTracker { ), returnValue: >[], ) as List>); + @override - _i20.Future set( + _i21.Future set( String? key, Map? value, ) => @@ -823,36 +990,40 @@ class MockMessageTracker extends _i1.Mock implements _i22.MessageTracker { value, ], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); + @override - _i20.Future delete(String? key) => (super.noSuchMethod( + _i21.Future delete(String? key) => (super.noSuchMethod( Invocation.method( #delete, [key], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); + @override - _i20.Future persist() => (super.noSuchMethod( + _i21.Future persist() => (super.noSuchMethod( Invocation.method( #persist, [], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); + @override - _i20.Future restore() => (super.noSuchMethod( + _i21.Future restore() => (super.noSuchMethod( Invocation.method( #restore, [], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); + @override void checkInitialized() => super.noSuchMethod( Invocation.method( @@ -866,13 +1037,13 @@ class MockMessageTracker extends _i1.Mock implements _i22.MessageTracker { /// A class which mocks [HttpWrapper]. /// /// See the documentation for Mockito's code generation for more information. -class MockHttpWrapper extends _i1.Mock implements _i24.HttpWrapper { +class MockHttpWrapper extends _i1.Mock implements _i25.HttpWrapper { MockHttpWrapper() { _i1.throwOnMissingStub(this); } @override - _i20.Future<_i9.Response> get( + _i21.Future<_i9.Response> get( Uri? url, { Map? headers, }) => @@ -882,7 +1053,7 @@ class MockHttpWrapper extends _i1.Mock implements _i24.HttpWrapper { [url], {#headers: headers}, ), - returnValue: _i20.Future<_i9.Response>.value(_FakeResponse_9( + returnValue: _i21.Future<_i9.Response>.value(_FakeResponse_9( this, Invocation.method( #get, @@ -890,9 +1061,10 @@ class MockHttpWrapper extends _i1.Mock implements _i24.HttpWrapper { {#headers: headers}, ), )), - ) as _i20.Future<_i9.Response>); + ) as _i21.Future<_i9.Response>); + @override - _i20.Future<_i9.Response> delete( + _i21.Future<_i9.Response> delete( Uri? url, { Map? headers, }) => @@ -902,7 +1074,7 @@ class MockHttpWrapper extends _i1.Mock implements _i24.HttpWrapper { [url], {#headers: headers}, ), - returnValue: _i20.Future<_i9.Response>.value(_FakeResponse_9( + returnValue: _i21.Future<_i9.Response>.value(_FakeResponse_9( this, Invocation.method( #delete, @@ -910,9 +1082,10 @@ class MockHttpWrapper extends _i1.Mock implements _i24.HttpWrapper { {#headers: headers}, ), )), - ) as _i20.Future<_i9.Response>); + ) as _i21.Future<_i9.Response>); + @override - _i20.Future<_i9.Response> post( + _i21.Future<_i9.Response> post( Uri? url, { Map? headers, Object? body, @@ -926,7 +1099,7 @@ class MockHttpWrapper extends _i1.Mock implements _i24.HttpWrapper { #body: body, }, ), - returnValue: _i20.Future<_i9.Response>.value(_FakeResponse_9( + returnValue: _i21.Future<_i9.Response>.value(_FakeResponse_9( this, Invocation.method( #post, @@ -937,13 +1110,13 @@ class MockHttpWrapper extends _i1.Mock implements _i24.HttpWrapper { }, ), )), - ) as _i20.Future<_i9.Response>); + ) as _i21.Future<_i9.Response>); } /// A class which mocks [Core]. /// /// See the documentation for Mockito's code generation for more information. -class MockCore extends _i1.Mock implements _i25.Core { +class MockCore extends _i1.Mock implements _i26.Core { MockCore() { _i1.throwOnMissingStub(this); } @@ -951,13 +1124,21 @@ class MockCore extends _i1.Mock implements _i25.Core { @override String get projectId => (super.noSuchMethod( Invocation.getter(#projectId), - returnValue: '', + returnValue: _i20.dummyValue( + this, + Invocation.getter(#projectId), + ), ) as String); + @override String get relayUrl => (super.noSuchMethod( Invocation.getter(#relayUrl), - returnValue: '', + returnValue: _i20.dummyValue( + this, + Invocation.getter(#relayUrl), + ), ) as String); + @override set relayUrl(String? _relayUrl) => super.noSuchMethod( Invocation.setter( @@ -966,11 +1147,16 @@ class MockCore extends _i1.Mock implements _i25.Core { ), returnValueForMissingStub: null, ); + @override String get pushUrl => (super.noSuchMethod( Invocation.getter(#pushUrl), - returnValue: '', + returnValue: _i20.dummyValue( + this, + Invocation.getter(#pushUrl), + ), ) as String); + @override set pushUrl(String? _pushUrl) => super.noSuchMethod( Invocation.setter( @@ -979,6 +1165,7 @@ class MockCore extends _i1.Mock implements _i25.Core { ), returnValueForMissingStub: null, ); + @override _i10.ICrypto get crypto => (super.noSuchMethod( Invocation.getter(#crypto), @@ -987,6 +1174,7 @@ class MockCore extends _i1.Mock implements _i25.Core { Invocation.getter(#crypto), ), ) as _i10.ICrypto); + @override set crypto(_i10.ICrypto? _crypto) => super.noSuchMethod( Invocation.setter( @@ -995,6 +1183,7 @@ class MockCore extends _i1.Mock implements _i25.Core { ), returnValueForMissingStub: null, ); + @override _i11.IRelayClient get relayClient => (super.noSuchMethod( Invocation.getter(#relayClient), @@ -1003,6 +1192,7 @@ class MockCore extends _i1.Mock implements _i25.Core { Invocation.getter(#relayClient), ), ) as _i11.IRelayClient); + @override set relayClient(_i11.IRelayClient? _relayClient) => super.noSuchMethod( Invocation.setter( @@ -1011,6 +1201,7 @@ class MockCore extends _i1.Mock implements _i25.Core { ), returnValueForMissingStub: null, ); + @override _i12.IExpirer get expirer => (super.noSuchMethod( Invocation.getter(#expirer), @@ -1019,6 +1210,7 @@ class MockCore extends _i1.Mock implements _i25.Core { Invocation.getter(#expirer), ), ) as _i12.IExpirer); + @override set expirer(_i12.IExpirer? _expirer) => super.noSuchMethod( Invocation.setter( @@ -1027,6 +1219,7 @@ class MockCore extends _i1.Mock implements _i25.Core { ), returnValueForMissingStub: null, ); + @override _i13.IPairing get pairing => (super.noSuchMethod( Invocation.getter(#pairing), @@ -1035,6 +1228,7 @@ class MockCore extends _i1.Mock implements _i25.Core { Invocation.getter(#pairing), ), ) as _i13.IPairing); + @override set pairing(_i13.IPairing? _pairing) => super.noSuchMethod( Invocation.setter( @@ -1043,6 +1237,7 @@ class MockCore extends _i1.Mock implements _i25.Core { ), returnValueForMissingStub: null, ); + @override _i14.IEcho get echo => (super.noSuchMethod( Invocation.getter(#echo), @@ -1051,6 +1246,7 @@ class MockCore extends _i1.Mock implements _i25.Core { Invocation.getter(#echo), ), ) as _i14.IEcho); + @override set echo(_i14.IEcho? _echo) => super.noSuchMethod( Invocation.setter( @@ -1059,6 +1255,7 @@ class MockCore extends _i1.Mock implements _i25.Core { ), returnValueForMissingStub: null, ); + @override _i15.IHeartBeat get heartbeat => (super.noSuchMethod( Invocation.getter(#heartbeat), @@ -1067,6 +1264,7 @@ class MockCore extends _i1.Mock implements _i25.Core { Invocation.getter(#heartbeat), ), ) as _i15.IHeartBeat); + @override set heartbeat(_i15.IHeartBeat? _heartbeat) => super.noSuchMethod( Invocation.setter( @@ -1075,6 +1273,7 @@ class MockCore extends _i1.Mock implements _i25.Core { ), returnValueForMissingStub: null, ); + @override _i16.IVerify get verify => (super.noSuchMethod( Invocation.getter(#verify), @@ -1083,6 +1282,7 @@ class MockCore extends _i1.Mock implements _i25.Core { Invocation.getter(#verify), ), ) as _i16.IVerify); + @override set verify(_i16.IVerify? _verify) => super.noSuchMethod( Invocation.setter( @@ -1091,6 +1291,7 @@ class MockCore extends _i1.Mock implements _i25.Core { ), returnValueForMissingStub: null, ); + @override _i7.IStore> get storage => (super.noSuchMethod( Invocation.getter(#storage), @@ -1099,6 +1300,7 @@ class MockCore extends _i1.Mock implements _i25.Core { Invocation.getter(#storage), ), ) as _i7.IStore>); + @override set storage(_i7.IStore>? _storage) => super.noSuchMethod( Invocation.setter( @@ -1107,16 +1309,25 @@ class MockCore extends _i1.Mock implements _i25.Core { ), returnValueForMissingStub: null, ); + @override String get protocol => (super.noSuchMethod( Invocation.getter(#protocol), - returnValue: '', + returnValue: _i20.dummyValue( + this, + Invocation.getter(#protocol), + ), ) as String); + @override String get version => (super.noSuchMethod( Invocation.getter(#version), - returnValue: '', + returnValue: _i20.dummyValue( + this, + Invocation.getter(#version), + ), ) as String); + @override _i17.Logger get logger => (super.noSuchMethod( Invocation.getter(#logger), @@ -1125,56 +1336,60 @@ class MockCore extends _i1.Mock implements _i25.Core { Invocation.getter(#logger), ), ) as _i17.Logger); + @override - _i20.Future start() => (super.noSuchMethod( + _i21.Future start() => (super.noSuchMethod( Invocation.method( #start, [], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); } /// A class which mocks [WebSocketHandler]. /// /// See the documentation for Mockito's code generation for more information. -class MockWebSocketHandler extends _i1.Mock implements _i26.WebSocketHandler { +class MockWebSocketHandler extends _i1.Mock implements _i27.WebSocketHandler { MockWebSocketHandler() { _i1.throwOnMissingStub(this); } @override - _i20.Future get ready => (super.noSuchMethod( + _i21.Future get ready => (super.noSuchMethod( Invocation.getter(#ready), - returnValue: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + ) as _i21.Future); + @override - _i20.Future setup({required String? url}) => (super.noSuchMethod( + _i21.Future setup({required String? url}) => (super.noSuchMethod( Invocation.method( #setup, [], {#url: url}, ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); + @override - _i20.Future connect() => (super.noSuchMethod( + _i21.Future connect() => (super.noSuchMethod( Invocation.method( #connect, [], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); + @override - _i20.Future close() => (super.noSuchMethod( + _i21.Future close() => (super.noSuchMethod( Invocation.method( #close, [], ), - returnValue: _i20.Future.value(), - returnValueForMissingStub: _i20.Future.value(), - ) as _i20.Future); + returnValue: _i21.Future.value(), + returnValueForMissingStub: _i21.Future.value(), + ) as _i21.Future); } From 57c9b2ec53ea115e93b21bbdc51f687647dd962b Mon Sep 17 00:00:00 2001 From: Alfreedom <00tango.bromine@icloud.com> Date: Wed, 22 Nov 2023 11:57:38 +0100 Subject: [PATCH 2/2] minor changes --- README.md | 2 -- example/wallet/test/widget_test.dart | 13 ------------- 2 files changed, 15 deletions(-) diff --git a/README.md b/README.md index 6acef808..cea39b26 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,6 @@ WalletConnect Dart v2 library for Flutter, heavily inspired by the WalletConnect V2 Javascript Monorepo. -Original work for this library is attributed to [Eucalyptus Labs](https://eucalyptuslabs.com/) and Sterling Long for [Koala Wallet](https://koalawallet.io/), a wallet built for the Kadena blockchain. - # To Use ## Pair, Approve, and Sign/Auth diff --git a/example/wallet/test/widget_test.dart b/example/wallet/test/widget_test.dart index f9a693ac..40976231 100644 --- a/example/wallet/test/widget_test.dart +++ b/example/wallet/test/widget_test.dart @@ -16,19 +16,6 @@ void main() async { print(credentials.address); }); // test('Kadena Handler Works', () async { - // // 2. Initiate wcClient - // // const wcKoalaProjectId = TEST_PR 'c993e66665ac416812435c9f1f07a96c'; - // final wcClient = await SignClient.createInstance( - // projectId: 'c993e66665ac416812435c9f1f07a96c', - // memoryStore: true, - // metadata: const PairingMetadata( - // name: 'Koala Wallet', - // description: 'Your Passport to the Kadena Ecosystem', - // url: 'https://koalawallet.io', - // icons: ['https://koalawallet.io/media/png/koala_color.png'], - // ), - // ); - // // For a wallet, setup the proposal handler that will display the proposal to the user after the URI has been scanned. // late int id; // wcClient.onSessionProposal.subscribe((args) async {