diff --git a/lib/nekoton_repository.module.dart b/lib/nekoton_repository.module.dart index d3d3507..db68476 100644 --- a/lib/nekoton_repository.module.dart +++ b/lib/nekoton_repository.module.dart @@ -1,7 +1,6 @@ //@GeneratedMicroModule;NekotonRepositoryPackageModule;package:nekoton_repository/nekoton_repository.module.dart // GENERATED CODE - DO NOT MODIFY BY HAND -// ignore_for_file: unnecessary_lambdas -// ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: type=lint // coverage:ignore-file // ignore_for_file: no_leading_underscores_for_library_prefixes diff --git a/lib/src/models/generic_contract/contract_state_changed_event.freezed.dart b/lib/src/models/generic_contract/contract_state_changed_event.freezed.dart index 187c28c..90c0184 100644 --- a/lib/src/models/generic_contract/contract_state_changed_event.freezed.dart +++ b/lib/src/models/generic_contract/contract_state_changed_event.freezed.dart @@ -89,12 +89,12 @@ class _$ContractStateChangedEventCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ContractStateChangedEventCopyWith<$Res> +abstract class _$$ContractStateChangedEventImplCopyWith<$Res> implements $ContractStateChangedEventCopyWith<$Res> { - factory _$$_ContractStateChangedEventCopyWith( - _$_ContractStateChangedEvent value, - $Res Function(_$_ContractStateChangedEvent) then) = - __$$_ContractStateChangedEventCopyWithImpl<$Res>; + factory _$$ContractStateChangedEventImplCopyWith( + _$ContractStateChangedEventImpl value, + $Res Function(_$ContractStateChangedEventImpl) then) = + __$$ContractStateChangedEventImplCopyWithImpl<$Res>; @override @useResult $Res call({Address address, ContractState state}); @@ -106,13 +106,13 @@ abstract class _$$_ContractStateChangedEventCopyWith<$Res> } /// @nodoc -class __$$_ContractStateChangedEventCopyWithImpl<$Res> +class __$$ContractStateChangedEventImplCopyWithImpl<$Res> extends _$ContractStateChangedEventCopyWithImpl<$Res, - _$_ContractStateChangedEvent> - implements _$$_ContractStateChangedEventCopyWith<$Res> { - __$$_ContractStateChangedEventCopyWithImpl( - _$_ContractStateChangedEvent _value, - $Res Function(_$_ContractStateChangedEvent) _then) + _$ContractStateChangedEventImpl> + implements _$$ContractStateChangedEventImplCopyWith<$Res> { + __$$ContractStateChangedEventImplCopyWithImpl( + _$ContractStateChangedEventImpl _value, + $Res Function(_$ContractStateChangedEventImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -121,7 +121,7 @@ class __$$_ContractStateChangedEventCopyWithImpl<$Res> Object? address = null, Object? state = null, }) { - return _then(_$_ContractStateChangedEvent( + return _then(_$ContractStateChangedEventImpl( address: null == address ? _value.address : address // ignore: cast_nullable_to_non_nullable @@ -136,12 +136,12 @@ class __$$_ContractStateChangedEventCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ContractStateChangedEvent implements _ContractStateChangedEvent { - const _$_ContractStateChangedEvent( +class _$ContractStateChangedEventImpl implements _ContractStateChangedEvent { + const _$ContractStateChangedEventImpl( {required this.address, required this.state}); - factory _$_ContractStateChangedEvent.fromJson(Map json) => - _$$_ContractStateChangedEventFromJson(json); + factory _$ContractStateChangedEventImpl.fromJson(Map json) => + _$$ContractStateChangedEventImplFromJson(json); @override final Address address; @@ -157,7 +157,7 @@ class _$_ContractStateChangedEvent implements _ContractStateChangedEvent { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ContractStateChangedEvent && + other is _$ContractStateChangedEventImpl && (identical(other.address, address) || other.address == address) && (identical(other.state, state) || other.state == state)); } @@ -169,13 +169,13 @@ class _$_ContractStateChangedEvent implements _ContractStateChangedEvent { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ContractStateChangedEventCopyWith<_$_ContractStateChangedEvent> - get copyWith => __$$_ContractStateChangedEventCopyWithImpl< - _$_ContractStateChangedEvent>(this, _$identity); + _$$ContractStateChangedEventImplCopyWith<_$ContractStateChangedEventImpl> + get copyWith => __$$ContractStateChangedEventImplCopyWithImpl< + _$ContractStateChangedEventImpl>(this, _$identity); @override Map toJson() { - return _$$_ContractStateChangedEventToJson( + return _$$ContractStateChangedEventImplToJson( this, ); } @@ -184,10 +184,10 @@ class _$_ContractStateChangedEvent implements _ContractStateChangedEvent { abstract class _ContractStateChangedEvent implements ContractStateChangedEvent { const factory _ContractStateChangedEvent( {required final Address address, - required final ContractState state}) = _$_ContractStateChangedEvent; + required final ContractState state}) = _$ContractStateChangedEventImpl; factory _ContractStateChangedEvent.fromJson(Map json) = - _$_ContractStateChangedEvent.fromJson; + _$ContractStateChangedEventImpl.fromJson; @override Address get address; @@ -195,6 +195,6 @@ abstract class _ContractStateChangedEvent implements ContractStateChangedEvent { ContractState get state; @override @JsonKey(ignore: true) - _$$_ContractStateChangedEventCopyWith<_$_ContractStateChangedEvent> + _$$ContractStateChangedEventImplCopyWith<_$ContractStateChangedEventImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/models/generic_contract/contract_state_changed_event.g.dart b/lib/src/models/generic_contract/contract_state_changed_event.g.dart index 67d2330..baec7d5 100644 --- a/lib/src/models/generic_contract/contract_state_changed_event.g.dart +++ b/lib/src/models/generic_contract/contract_state_changed_event.g.dart @@ -6,15 +6,15 @@ part of 'contract_state_changed_event.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ContractStateChangedEvent _$$_ContractStateChangedEventFromJson( +_$ContractStateChangedEventImpl _$$ContractStateChangedEventImplFromJson( Map json) => - _$_ContractStateChangedEvent( + _$ContractStateChangedEventImpl( address: Address.fromJson(json['address'] as String), state: ContractState.fromJson(json['state'] as Map), ); -Map _$$_ContractStateChangedEventToJson( - _$_ContractStateChangedEvent instance) => +Map _$$ContractStateChangedEventImplToJson( + _$ContractStateChangedEventImpl instance) => { 'address': instance.address.toJson(), 'state': instance.state.toJson(), diff --git a/lib/src/models/generic_contract/contract_transaction_event.freezed.dart b/lib/src/models/generic_contract/contract_transaction_event.freezed.dart index e4fd48e..8e6786a 100644 --- a/lib/src/models/generic_contract/contract_transaction_event.freezed.dart +++ b/lib/src/models/generic_contract/contract_transaction_event.freezed.dart @@ -100,12 +100,12 @@ class _$ContractFoundTransactionEventCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ContractFoundTransactionEventCopyWith<$Res> +abstract class _$$ContractFoundTransactionEventImplCopyWith<$Res> implements $ContractFoundTransactionEventCopyWith<$Res> { - factory _$$_ContractFoundTransactionEventCopyWith( - _$_ContractFoundTransactionEvent value, - $Res Function(_$_ContractFoundTransactionEvent) then) = - __$$_ContractFoundTransactionEventCopyWithImpl<$Res>; + factory _$$ContractFoundTransactionEventImplCopyWith( + _$ContractFoundTransactionEventImpl value, + $Res Function(_$ContractFoundTransactionEventImpl) then) = + __$$ContractFoundTransactionEventImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -120,13 +120,13 @@ abstract class _$$_ContractFoundTransactionEventCopyWith<$Res> } /// @nodoc -class __$$_ContractFoundTransactionEventCopyWithImpl<$Res> +class __$$ContractFoundTransactionEventImplCopyWithImpl<$Res> extends _$ContractFoundTransactionEventCopyWithImpl<$Res, - _$_ContractFoundTransactionEvent> - implements _$$_ContractFoundTransactionEventCopyWith<$Res> { - __$$_ContractFoundTransactionEventCopyWithImpl( - _$_ContractFoundTransactionEvent _value, - $Res Function(_$_ContractFoundTransactionEvent) _then) + _$ContractFoundTransactionEventImpl> + implements _$$ContractFoundTransactionEventImplCopyWith<$Res> { + __$$ContractFoundTransactionEventImplCopyWithImpl( + _$ContractFoundTransactionEventImpl _value, + $Res Function(_$ContractFoundTransactionEventImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -136,7 +136,7 @@ class __$$_ContractFoundTransactionEventCopyWithImpl<$Res> Object? transactions = null, Object? info = null, }) { - return _then(_$_ContractFoundTransactionEvent( + return _then(_$ContractFoundTransactionEventImpl( address: null == address ? _value.address : address // ignore: cast_nullable_to_non_nullable @@ -155,17 +155,17 @@ class __$$_ContractFoundTransactionEventCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ContractFoundTransactionEvent +class _$ContractFoundTransactionEventImpl implements _ContractFoundTransactionEvent { - const _$_ContractFoundTransactionEvent( + const _$ContractFoundTransactionEventImpl( {required this.address, required final List transactions, required this.info}) : _transactions = transactions; - factory _$_ContractFoundTransactionEvent.fromJson( + factory _$ContractFoundTransactionEventImpl.fromJson( Map json) => - _$$_ContractFoundTransactionEventFromJson(json); + _$$ContractFoundTransactionEventImplFromJson(json); @override final Address address; @@ -189,7 +189,7 @@ class _$_ContractFoundTransactionEvent bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ContractFoundTransactionEvent && + other is _$ContractFoundTransactionEventImpl && (identical(other.address, address) || other.address == address) && const DeepCollectionEquality() .equals(other._transactions, _transactions) && @@ -204,13 +204,14 @@ class _$_ContractFoundTransactionEvent @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ContractFoundTransactionEventCopyWith<_$_ContractFoundTransactionEvent> - get copyWith => __$$_ContractFoundTransactionEventCopyWithImpl< - _$_ContractFoundTransactionEvent>(this, _$identity); + _$$ContractFoundTransactionEventImplCopyWith< + _$ContractFoundTransactionEventImpl> + get copyWith => __$$ContractFoundTransactionEventImplCopyWithImpl< + _$ContractFoundTransactionEventImpl>(this, _$identity); @override Map toJson() { - return _$$_ContractFoundTransactionEventToJson( + return _$$ContractFoundTransactionEventImplToJson( this, ); } @@ -222,10 +223,10 @@ abstract class _ContractFoundTransactionEvent {required final Address address, required final List transactions, required final TransactionsBatchInfo info}) = - _$_ContractFoundTransactionEvent; + _$ContractFoundTransactionEventImpl; factory _ContractFoundTransactionEvent.fromJson(Map json) = - _$_ContractFoundTransactionEvent.fromJson; + _$ContractFoundTransactionEventImpl.fromJson; @override Address get address; @@ -235,6 +236,7 @@ abstract class _ContractFoundTransactionEvent TransactionsBatchInfo get info; @override @JsonKey(ignore: true) - _$$_ContractFoundTransactionEventCopyWith<_$_ContractFoundTransactionEvent> + _$$ContractFoundTransactionEventImplCopyWith< + _$ContractFoundTransactionEventImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/models/generic_contract/contract_transaction_event.g.dart b/lib/src/models/generic_contract/contract_transaction_event.g.dart index 013dedb..683026b 100644 --- a/lib/src/models/generic_contract/contract_transaction_event.g.dart +++ b/lib/src/models/generic_contract/contract_transaction_event.g.dart @@ -6,19 +6,19 @@ part of 'contract_transaction_event.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ContractFoundTransactionEvent _$$_ContractFoundTransactionEventFromJson( - Map json) => - _$_ContractFoundTransactionEvent( - address: Address.fromJson(json['address'] as String), - transactions: (json['transactions'] as List) - .map((e) => Transaction.fromJson(e as Map)) - .toList(), - info: - TransactionsBatchInfo.fromJson(json['info'] as Map), - ); +_$ContractFoundTransactionEventImpl + _$$ContractFoundTransactionEventImplFromJson(Map json) => + _$ContractFoundTransactionEventImpl( + address: Address.fromJson(json['address'] as String), + transactions: (json['transactions'] as List) + .map((e) => Transaction.fromJson(e as Map)) + .toList(), + info: TransactionsBatchInfo.fromJson( + json['info'] as Map), + ); -Map _$$_ContractFoundTransactionEventToJson( - _$_ContractFoundTransactionEvent instance) => +Map _$$ContractFoundTransactionEventImplToJson( + _$ContractFoundTransactionEventImpl instance) => { 'address': instance.address.toJson(), 'transactions': instance.transactions.map((e) => e.toJson()).toList(), diff --git a/lib/src/models/generic_contract/contract_updates_subscription.freezed.dart b/lib/src/models/generic_contract/contract_updates_subscription.freezed.dart index 03eedf5..8252e87 100644 --- a/lib/src/models/generic_contract/contract_updates_subscription.freezed.dart +++ b/lib/src/models/generic_contract/contract_updates_subscription.freezed.dart @@ -76,12 +76,12 @@ class _$ContractUpdatesSubscriptionCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_ContractUpdatesSubscriptionCopyWith<$Res> +abstract class _$$ContractUpdatesSubscriptionImplCopyWith<$Res> implements $ContractUpdatesSubscriptionCopyWith<$Res> { - factory _$$_ContractUpdatesSubscriptionCopyWith( - _$_ContractUpdatesSubscription value, - $Res Function(_$_ContractUpdatesSubscription) then) = - __$$_ContractUpdatesSubscriptionCopyWithImpl<$Res>; + factory _$$ContractUpdatesSubscriptionImplCopyWith( + _$ContractUpdatesSubscriptionImpl value, + $Res Function(_$ContractUpdatesSubscriptionImpl) then) = + __$$ContractUpdatesSubscriptionImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -90,13 +90,13 @@ abstract class _$$_ContractUpdatesSubscriptionCopyWith<$Res> } /// @nodoc -class __$$_ContractUpdatesSubscriptionCopyWithImpl<$Res> +class __$$ContractUpdatesSubscriptionImplCopyWithImpl<$Res> extends _$ContractUpdatesSubscriptionCopyWithImpl<$Res, - _$_ContractUpdatesSubscription> - implements _$$_ContractUpdatesSubscriptionCopyWith<$Res> { - __$$_ContractUpdatesSubscriptionCopyWithImpl( - _$_ContractUpdatesSubscription _value, - $Res Function(_$_ContractUpdatesSubscription) _then) + _$ContractUpdatesSubscriptionImpl> + implements _$$ContractUpdatesSubscriptionImplCopyWith<$Res> { + __$$ContractUpdatesSubscriptionImplCopyWithImpl( + _$ContractUpdatesSubscriptionImpl _value, + $Res Function(_$ContractUpdatesSubscriptionImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -105,7 +105,7 @@ class __$$_ContractUpdatesSubscriptionCopyWithImpl<$Res> Object? contractState = freezed, Object? transactions = freezed, }) { - return _then(_$_ContractUpdatesSubscription( + return _then(_$ContractUpdatesSubscriptionImpl( contractState: freezed == contractState ? _value.contractState : contractState // ignore: cast_nullable_to_non_nullable @@ -120,13 +120,15 @@ class __$$_ContractUpdatesSubscriptionCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_ContractUpdatesSubscription implements _ContractUpdatesSubscription { - const _$_ContractUpdatesSubscription( +class _$ContractUpdatesSubscriptionImpl + implements _ContractUpdatesSubscription { + const _$ContractUpdatesSubscriptionImpl( {@JsonKey(includeIfNull: false, name: 'state') this.contractState, @JsonKey(includeIfNull: false) this.transactions}); - factory _$_ContractUpdatesSubscription.fromJson(Map json) => - _$$_ContractUpdatesSubscriptionFromJson(json); + factory _$ContractUpdatesSubscriptionImpl.fromJson( + Map json) => + _$$ContractUpdatesSubscriptionImplFromJson(json); @override @JsonKey(includeIfNull: false, name: 'state') @@ -144,7 +146,7 @@ class _$_ContractUpdatesSubscription implements _ContractUpdatesSubscription { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_ContractUpdatesSubscription && + other is _$ContractUpdatesSubscriptionImpl && (identical(other.contractState, contractState) || other.contractState == contractState) && (identical(other.transactions, transactions) || @@ -158,13 +160,13 @@ class _$_ContractUpdatesSubscription implements _ContractUpdatesSubscription { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_ContractUpdatesSubscriptionCopyWith<_$_ContractUpdatesSubscription> - get copyWith => __$$_ContractUpdatesSubscriptionCopyWithImpl< - _$_ContractUpdatesSubscription>(this, _$identity); + _$$ContractUpdatesSubscriptionImplCopyWith<_$ContractUpdatesSubscriptionImpl> + get copyWith => __$$ContractUpdatesSubscriptionImplCopyWithImpl< + _$ContractUpdatesSubscriptionImpl>(this, _$identity); @override Map toJson() { - return _$$_ContractUpdatesSubscriptionToJson( + return _$$ContractUpdatesSubscriptionImplToJson( this, ); } @@ -175,10 +177,10 @@ abstract class _ContractUpdatesSubscription const factory _ContractUpdatesSubscription( {@JsonKey(includeIfNull: false, name: 'state') final bool? contractState, @JsonKey(includeIfNull: false) - final bool? transactions}) = _$_ContractUpdatesSubscription; + final bool? transactions}) = _$ContractUpdatesSubscriptionImpl; factory _ContractUpdatesSubscription.fromJson(Map json) = - _$_ContractUpdatesSubscription.fromJson; + _$ContractUpdatesSubscriptionImpl.fromJson; @override @JsonKey(includeIfNull: false, name: 'state') @@ -188,6 +190,6 @@ abstract class _ContractUpdatesSubscription bool? get transactions; @override @JsonKey(ignore: true) - _$$_ContractUpdatesSubscriptionCopyWith<_$_ContractUpdatesSubscription> + _$$ContractUpdatesSubscriptionImplCopyWith<_$ContractUpdatesSubscriptionImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/models/generic_contract/contract_updates_subscription.g.dart b/lib/src/models/generic_contract/contract_updates_subscription.g.dart index fa847ed..af0d15d 100644 --- a/lib/src/models/generic_contract/contract_updates_subscription.g.dart +++ b/lib/src/models/generic_contract/contract_updates_subscription.g.dart @@ -6,15 +6,15 @@ part of 'contract_updates_subscription.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_ContractUpdatesSubscription _$$_ContractUpdatesSubscriptionFromJson( +_$ContractUpdatesSubscriptionImpl _$$ContractUpdatesSubscriptionImplFromJson( Map json) => - _$_ContractUpdatesSubscription( + _$ContractUpdatesSubscriptionImpl( contractState: json['state'] as bool?, transactions: json['transactions'] as bool?, ); -Map _$$_ContractUpdatesSubscriptionToJson( - _$_ContractUpdatesSubscription instance) { +Map _$$ContractUpdatesSubscriptionImplToJson( + _$ContractUpdatesSubscriptionImpl instance) { final val = {}; void writeNotNull(String key, dynamic value) { diff --git a/lib/src/models/token_wallet_related/token_wallet_ordinary_transaction.freezed.dart b/lib/src/models/token_wallet_related/token_wallet_ordinary_transaction.freezed.dart index cda0954..31fdff9 100644 --- a/lib/src/models/token_wallet_related/token_wallet_ordinary_transaction.freezed.dart +++ b/lib/src/models/token_wallet_related/token_wallet_ordinary_transaction.freezed.dart @@ -211,12 +211,12 @@ class _$TokenWalletOrdinaryTransactionCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_TokenWalletOrdinaryTransactionCopyWith<$Res> +abstract class _$$TokenWalletOrdinaryTransactionImplCopyWith<$Res> implements $TokenWalletOrdinaryTransactionCopyWith<$Res> { - factory _$$_TokenWalletOrdinaryTransactionCopyWith( - _$_TokenWalletOrdinaryTransaction value, - $Res Function(_$_TokenWalletOrdinaryTransaction) then) = - __$$_TokenWalletOrdinaryTransactionCopyWithImpl<$Res>; + factory _$$TokenWalletOrdinaryTransactionImplCopyWith( + _$TokenWalletOrdinaryTransactionImpl value, + $Res Function(_$TokenWalletOrdinaryTransactionImpl) then) = + __$$TokenWalletOrdinaryTransactionImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -246,13 +246,13 @@ abstract class _$$_TokenWalletOrdinaryTransactionCopyWith<$Res> } /// @nodoc -class __$$_TokenWalletOrdinaryTransactionCopyWithImpl<$Res> +class __$$TokenWalletOrdinaryTransactionImplCopyWithImpl<$Res> extends _$TokenWalletOrdinaryTransactionCopyWithImpl<$Res, - _$_TokenWalletOrdinaryTransaction> - implements _$$_TokenWalletOrdinaryTransactionCopyWith<$Res> { - __$$_TokenWalletOrdinaryTransactionCopyWithImpl( - _$_TokenWalletOrdinaryTransaction _value, - $Res Function(_$_TokenWalletOrdinaryTransaction) _then) + _$TokenWalletOrdinaryTransactionImpl> + implements _$$TokenWalletOrdinaryTransactionImplCopyWith<$Res> { + __$$TokenWalletOrdinaryTransactionImplCopyWithImpl( + _$TokenWalletOrdinaryTransactionImpl _value, + $Res Function(_$TokenWalletOrdinaryTransactionImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -273,7 +273,7 @@ class __$$_TokenWalletOrdinaryTransactionCopyWithImpl<$Res> Object? transferBounced = freezed, Object? swapBackBounced = freezed, }) { - return _then(_$_TokenWalletOrdinaryTransaction( + return _then(_$TokenWalletOrdinaryTransactionImpl( lt: null == lt ? _value.lt : lt // ignore: cast_nullable_to_non_nullable @@ -336,9 +336,9 @@ class __$$_TokenWalletOrdinaryTransactionCopyWithImpl<$Res> /// @nodoc -class _$_TokenWalletOrdinaryTransaction +class _$TokenWalletOrdinaryTransactionImpl implements _TokenWalletOrdinaryTransaction { - const _$_TokenWalletOrdinaryTransaction( + const _$TokenWalletOrdinaryTransactionImpl( {required this.lt, required this.isOutgoing, @amountJsonConverter required this.value, @@ -398,7 +398,7 @@ class _$_TokenWalletOrdinaryTransaction bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_TokenWalletOrdinaryTransaction && + other is _$TokenWalletOrdinaryTransactionImpl && (identical(other.lt, lt) || other.lt == lt) && (identical(other.isOutgoing, isOutgoing) || other.isOutgoing == isOutgoing) && @@ -443,9 +443,10 @@ class _$_TokenWalletOrdinaryTransaction @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_TokenWalletOrdinaryTransactionCopyWith<_$_TokenWalletOrdinaryTransaction> - get copyWith => __$$_TokenWalletOrdinaryTransactionCopyWithImpl< - _$_TokenWalletOrdinaryTransaction>(this, _$identity); + _$$TokenWalletOrdinaryTransactionImplCopyWith< + _$TokenWalletOrdinaryTransactionImpl> + get copyWith => __$$TokenWalletOrdinaryTransactionImplCopyWithImpl< + _$TokenWalletOrdinaryTransactionImpl>(this, _$identity); } abstract class _TokenWalletOrdinaryTransaction @@ -465,7 +466,7 @@ abstract class _TokenWalletOrdinaryTransaction @amountJsonConverter final BigInt? accept, @amountJsonConverter final BigInt? transferBounced, @amountJsonConverter final BigInt? swapBackBounced}) = - _$_TokenWalletOrdinaryTransaction; + _$TokenWalletOrdinaryTransactionImpl; @override String get lt; @@ -503,6 +504,7 @@ abstract class _TokenWalletOrdinaryTransaction BigInt? get swapBackBounced; @override @JsonKey(ignore: true) - _$$_TokenWalletOrdinaryTransactionCopyWith<_$_TokenWalletOrdinaryTransaction> + _$$TokenWalletOrdinaryTransactionImplCopyWith< + _$TokenWalletOrdinaryTransactionImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/models/ton_wallet_related/pending_transaction_with_data.freezed.dart b/lib/src/models/ton_wallet_related/pending_transaction_with_data.freezed.dart index 9231181..3995b55 100644 --- a/lib/src/models/ton_wallet_related/pending_transaction_with_data.freezed.dart +++ b/lib/src/models/ton_wallet_related/pending_transaction_with_data.freezed.dart @@ -107,12 +107,12 @@ class _$PendingTransactionWithDataCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_PendingTransactionWithAdditionalInfoCopyWith<$Res> +abstract class _$$PendingTransactionWithAdditionalInfoImplCopyWith<$Res> implements $PendingTransactionWithDataCopyWith<$Res> { - factory _$$_PendingTransactionWithAdditionalInfoCopyWith( - _$_PendingTransactionWithAdditionalInfo value, - $Res Function(_$_PendingTransactionWithAdditionalInfo) then) = - __$$_PendingTransactionWithAdditionalInfoCopyWithImpl<$Res>; + factory _$$PendingTransactionWithAdditionalInfoImplCopyWith( + _$PendingTransactionWithAdditionalInfoImpl value, + $Res Function(_$PendingTransactionWithAdditionalInfoImpl) then) = + __$$PendingTransactionWithAdditionalInfoImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -128,13 +128,13 @@ abstract class _$$_PendingTransactionWithAdditionalInfoCopyWith<$Res> } /// @nodoc -class __$$_PendingTransactionWithAdditionalInfoCopyWithImpl<$Res> +class __$$PendingTransactionWithAdditionalInfoImplCopyWithImpl<$Res> extends _$PendingTransactionWithDataCopyWithImpl<$Res, - _$_PendingTransactionWithAdditionalInfo> - implements _$$_PendingTransactionWithAdditionalInfoCopyWith<$Res> { - __$$_PendingTransactionWithAdditionalInfoCopyWithImpl( - _$_PendingTransactionWithAdditionalInfo _value, - $Res Function(_$_PendingTransactionWithAdditionalInfo) _then) + _$PendingTransactionWithAdditionalInfoImpl> + implements _$$PendingTransactionWithAdditionalInfoImplCopyWith<$Res> { + __$$PendingTransactionWithAdditionalInfoImplCopyWithImpl( + _$PendingTransactionWithAdditionalInfoImpl _value, + $Res Function(_$PendingTransactionWithAdditionalInfoImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -145,7 +145,7 @@ class __$$_PendingTransactionWithAdditionalInfoCopyWithImpl<$Res> Object? amount = null, Object? createdAt = null, }) { - return _then(_$_PendingTransactionWithAdditionalInfo( + return _then(_$PendingTransactionWithAdditionalInfoImpl( transaction: null == transaction ? _value.transaction : transaction // ignore: cast_nullable_to_non_nullable @@ -168,18 +168,18 @@ class __$$_PendingTransactionWithAdditionalInfoCopyWithImpl<$Res> /// @nodoc @JsonSerializable() -class _$_PendingTransactionWithAdditionalInfo +class _$PendingTransactionWithAdditionalInfoImpl extends _PendingTransactionWithAdditionalInfo { - const _$_PendingTransactionWithAdditionalInfo( + const _$PendingTransactionWithAdditionalInfoImpl( {required this.transaction, required this.destination, @amountJsonConverter required this.amount, required this.createdAt}) : super._(); - factory _$_PendingTransactionWithAdditionalInfo.fromJson( + factory _$PendingTransactionWithAdditionalInfoImpl.fromJson( Map json) => - _$$_PendingTransactionWithAdditionalInfoFromJson(json); + _$$PendingTransactionWithAdditionalInfoImplFromJson(json); @override final PendingTransaction transaction; @@ -200,7 +200,7 @@ class _$_PendingTransactionWithAdditionalInfo bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_PendingTransactionWithAdditionalInfo && + other is _$PendingTransactionWithAdditionalInfoImpl && (identical(other.transaction, transaction) || other.transaction == transaction) && (identical(other.destination, destination) || @@ -218,14 +218,14 @@ class _$_PendingTransactionWithAdditionalInfo @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_PendingTransactionWithAdditionalInfoCopyWith< - _$_PendingTransactionWithAdditionalInfo> - get copyWith => __$$_PendingTransactionWithAdditionalInfoCopyWithImpl< - _$_PendingTransactionWithAdditionalInfo>(this, _$identity); + _$$PendingTransactionWithAdditionalInfoImplCopyWith< + _$PendingTransactionWithAdditionalInfoImpl> + get copyWith => __$$PendingTransactionWithAdditionalInfoImplCopyWithImpl< + _$PendingTransactionWithAdditionalInfoImpl>(this, _$identity); @override Map toJson() { - return _$$_PendingTransactionWithAdditionalInfoToJson( + return _$$PendingTransactionWithAdditionalInfoImplToJson( this, ); } @@ -238,12 +238,12 @@ abstract class _PendingTransactionWithAdditionalInfo required final Address destination, @amountJsonConverter required final BigInt amount, required final DateTime createdAt}) = - _$_PendingTransactionWithAdditionalInfo; + _$PendingTransactionWithAdditionalInfoImpl; const _PendingTransactionWithAdditionalInfo._() : super._(); factory _PendingTransactionWithAdditionalInfo.fromJson( Map json) = - _$_PendingTransactionWithAdditionalInfo.fromJson; + _$PendingTransactionWithAdditionalInfoImpl.fromJson; @override PendingTransaction get transaction; @@ -256,7 +256,7 @@ abstract class _PendingTransactionWithAdditionalInfo DateTime get createdAt; @override @JsonKey(ignore: true) - _$$_PendingTransactionWithAdditionalInfoCopyWith< - _$_PendingTransactionWithAdditionalInfo> + _$$PendingTransactionWithAdditionalInfoImplCopyWith< + _$PendingTransactionWithAdditionalInfoImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/models/ton_wallet_related/pending_transaction_with_data.g.dart b/lib/src/models/ton_wallet_related/pending_transaction_with_data.g.dart index 867bac4..b24a7e0 100644 --- a/lib/src/models/ton_wallet_related/pending_transaction_with_data.g.dart +++ b/lib/src/models/ton_wallet_related/pending_transaction_with_data.g.dart @@ -6,10 +6,10 @@ part of 'pending_transaction_with_data.dart'; // JsonSerializableGenerator // ************************************************************************** -_$_PendingTransactionWithAdditionalInfo - _$$_PendingTransactionWithAdditionalInfoFromJson( +_$PendingTransactionWithAdditionalInfoImpl + _$$PendingTransactionWithAdditionalInfoImplFromJson( Map json) => - _$_PendingTransactionWithAdditionalInfo( + _$PendingTransactionWithAdditionalInfoImpl( transaction: PendingTransaction.fromJson( json['transaction'] as Map), destination: Address.fromJson(json['destination'] as String), @@ -17,8 +17,8 @@ _$_PendingTransactionWithAdditionalInfo createdAt: DateTime.parse(json['createdAt'] as String), ); -Map _$$_PendingTransactionWithAdditionalInfoToJson( - _$_PendingTransactionWithAdditionalInfo instance) => +Map _$$PendingTransactionWithAdditionalInfoImplToJson( + _$PendingTransactionWithAdditionalInfoImpl instance) => { 'transaction': instance.transaction.toJson(), 'destination': instance.destination.toJson(), diff --git a/lib/src/models/ton_wallet_related/ton_wallet_expired_transaction.freezed.dart b/lib/src/models/ton_wallet_related/ton_wallet_expired_transaction.freezed.dart index 8a6a60b..f59f4b9 100644 --- a/lib/src/models/ton_wallet_related/ton_wallet_expired_transaction.freezed.dart +++ b/lib/src/models/ton_wallet_related/ton_wallet_expired_transaction.freezed.dart @@ -126,12 +126,12 @@ class _$TonWalletExpiredTransactionCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_TonWalletExpiredTransactionCopyWith<$Res> +abstract class _$$TonWalletExpiredTransactionImplCopyWith<$Res> implements $TonWalletExpiredTransactionCopyWith<$Res> { - factory _$$_TonWalletExpiredTransactionCopyWith( - _$_TonWalletExpiredTransaction value, - $Res Function(_$_TonWalletExpiredTransaction) then) = - __$$_TonWalletExpiredTransactionCopyWithImpl<$Res>; + factory _$$TonWalletExpiredTransactionImplCopyWith( + _$TonWalletExpiredTransactionImpl value, + $Res Function(_$TonWalletExpiredTransactionImpl) then) = + __$$TonWalletExpiredTransactionImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -150,13 +150,13 @@ abstract class _$$_TonWalletExpiredTransactionCopyWith<$Res> } /// @nodoc -class __$$_TonWalletExpiredTransactionCopyWithImpl<$Res> +class __$$TonWalletExpiredTransactionImplCopyWithImpl<$Res> extends _$TonWalletExpiredTransactionCopyWithImpl<$Res, - _$_TonWalletExpiredTransaction> - implements _$$_TonWalletExpiredTransactionCopyWith<$Res> { - __$$_TonWalletExpiredTransactionCopyWithImpl( - _$_TonWalletExpiredTransaction _value, - $Res Function(_$_TonWalletExpiredTransaction) _then) + _$TonWalletExpiredTransactionImpl> + implements _$$TonWalletExpiredTransactionImplCopyWith<$Res> { + __$$TonWalletExpiredTransactionImplCopyWithImpl( + _$TonWalletExpiredTransactionImpl _value, + $Res Function(_$TonWalletExpiredTransactionImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -170,7 +170,7 @@ class __$$_TonWalletExpiredTransactionCopyWithImpl<$Res> Object? messageHash = null, Object? isIncoming = null, }) { - return _then(_$_TonWalletExpiredTransaction( + return _then(_$TonWalletExpiredTransactionImpl( address: null == address ? _value.address : address // ignore: cast_nullable_to_non_nullable @@ -205,8 +205,9 @@ class __$$_TonWalletExpiredTransactionCopyWithImpl<$Res> /// @nodoc -class _$_TonWalletExpiredTransaction implements _TonWalletExpiredTransaction { - const _$_TonWalletExpiredTransaction( +class _$TonWalletExpiredTransactionImpl + implements _TonWalletExpiredTransaction { + const _$TonWalletExpiredTransactionImpl( {required this.address, required this.date, required this.expireAt, @@ -244,7 +245,7 @@ class _$_TonWalletExpiredTransaction implements _TonWalletExpiredTransaction { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_TonWalletExpiredTransaction && + other is _$TonWalletExpiredTransactionImpl && (identical(other.address, address) || other.address == address) && (identical(other.date, date) || other.date == date) && (identical(other.expireAt, expireAt) || @@ -265,9 +266,9 @@ class _$_TonWalletExpiredTransaction implements _TonWalletExpiredTransaction { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_TonWalletExpiredTransactionCopyWith<_$_TonWalletExpiredTransaction> - get copyWith => __$$_TonWalletExpiredTransactionCopyWithImpl< - _$_TonWalletExpiredTransaction>(this, _$identity); + _$$TonWalletExpiredTransactionImplCopyWith<_$TonWalletExpiredTransactionImpl> + get copyWith => __$$TonWalletExpiredTransactionImplCopyWithImpl< + _$TonWalletExpiredTransactionImpl>(this, _$identity); } abstract class _TonWalletExpiredTransaction @@ -279,7 +280,7 @@ abstract class _TonWalletExpiredTransaction required final Address destination, @amountJsonConverter required final BigInt amount, required final String messageHash, - required final bool isIncoming}) = _$_TonWalletExpiredTransaction; + required final bool isIncoming}) = _$TonWalletExpiredTransactionImpl; @override // address of wallet for which this transaction found Address get address; @@ -298,6 +299,6 @@ abstract class _TonWalletExpiredTransaction bool get isIncoming; @override @JsonKey(ignore: true) - _$$_TonWalletExpiredTransactionCopyWith<_$_TonWalletExpiredTransaction> + _$$TonWalletExpiredTransactionImplCopyWith<_$TonWalletExpiredTransactionImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/models/ton_wallet_related/ton_wallet_multisig_expired_transaction.freezed.dart b/lib/src/models/ton_wallet_related/ton_wallet_multisig_expired_transaction.freezed.dart index b191f07..2dae209 100644 --- a/lib/src/models/ton_wallet_related/ton_wallet_multisig_expired_transaction.freezed.dart +++ b/lib/src/models/ton_wallet_related/ton_wallet_multisig_expired_transaction.freezed.dart @@ -266,12 +266,12 @@ class _$TonWalletMultisigExpiredTransactionCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_TonWalletMultisigExpiredTransactionCopyWith<$Res> +abstract class _$$TonWalletMultisigExpiredTransactionImplCopyWith<$Res> implements $TonWalletMultisigExpiredTransactionCopyWith<$Res> { - factory _$$_TonWalletMultisigExpiredTransactionCopyWith( - _$_TonWalletMultisigExpiredTransaction value, - $Res Function(_$_TonWalletMultisigExpiredTransaction) then) = - __$$_TonWalletMultisigExpiredTransactionCopyWithImpl<$Res>; + factory _$$TonWalletMultisigExpiredTransactionImplCopyWith( + _$TonWalletMultisigExpiredTransactionImpl value, + $Res Function(_$TonWalletMultisigExpiredTransactionImpl) then) = + __$$TonWalletMultisigExpiredTransactionImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -310,13 +310,13 @@ abstract class _$$_TonWalletMultisigExpiredTransactionCopyWith<$Res> } /// @nodoc -class __$$_TonWalletMultisigExpiredTransactionCopyWithImpl<$Res> +class __$$TonWalletMultisigExpiredTransactionImplCopyWithImpl<$Res> extends _$TonWalletMultisigExpiredTransactionCopyWithImpl<$Res, - _$_TonWalletMultisigExpiredTransaction> - implements _$$_TonWalletMultisigExpiredTransactionCopyWith<$Res> { - __$$_TonWalletMultisigExpiredTransactionCopyWithImpl( - _$_TonWalletMultisigExpiredTransaction _value, - $Res Function(_$_TonWalletMultisigExpiredTransaction) _then) + _$TonWalletMultisigExpiredTransactionImpl> + implements _$$TonWalletMultisigExpiredTransactionImplCopyWith<$Res> { + __$$TonWalletMultisigExpiredTransactionImplCopyWithImpl( + _$TonWalletMultisigExpiredTransactionImpl _value, + $Res Function(_$TonWalletMultisigExpiredTransactionImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -339,7 +339,7 @@ class __$$_TonWalletMultisigExpiredTransactionCopyWithImpl<$Res> Object? tokenWalletDeployedNotification = freezed, Object? walletInteractionInfo = freezed, }) { - return _then(_$_TonWalletMultisigExpiredTransaction( + return _then(_$TonWalletMultisigExpiredTransactionImpl( lt: null == lt ? _value.lt : lt // ignore: cast_nullable_to_non_nullable @@ -413,9 +413,9 @@ class __$$_TonWalletMultisigExpiredTransactionCopyWithImpl<$Res> /// @nodoc -class _$_TonWalletMultisigExpiredTransaction +class _$TonWalletMultisigExpiredTransactionImpl implements _TonWalletMultisigExpiredTransaction { - const _$_TonWalletMultisigExpiredTransaction( + const _$TonWalletMultisigExpiredTransactionImpl( {required this.lt, required this.creator, required final List confirmations, @@ -499,7 +499,7 @@ class _$_TonWalletMultisigExpiredTransaction bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_TonWalletMultisigExpiredTransaction && + other is _$TonWalletMultisigExpiredTransactionImpl && (identical(other.lt, lt) || other.lt == lt) && (identical(other.creator, creator) || other.creator == creator) && const DeepCollectionEquality() @@ -555,10 +555,10 @@ class _$_TonWalletMultisigExpiredTransaction @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_TonWalletMultisigExpiredTransactionCopyWith< - _$_TonWalletMultisigExpiredTransaction> - get copyWith => __$$_TonWalletMultisigExpiredTransactionCopyWithImpl< - _$_TonWalletMultisigExpiredTransaction>(this, _$identity); + _$$TonWalletMultisigExpiredTransactionImplCopyWith< + _$TonWalletMultisigExpiredTransactionImpl> + get copyWith => __$$TonWalletMultisigExpiredTransactionImplCopyWithImpl< + _$TonWalletMultisigExpiredTransactionImpl>(this, _$identity); } abstract class _TonWalletMultisigExpiredTransaction @@ -581,7 +581,7 @@ abstract class _TonWalletMultisigExpiredTransaction final DePoolReceiveAnswerNotification? dePoolReceiveAnswerNotification, final TokenWalletDeployedNotification? tokenWalletDeployedNotification, final WalletInteractionInfo? - walletInteractionInfo}) = _$_TonWalletMultisigExpiredTransaction; + walletInteractionInfo}) = _$TonWalletMultisigExpiredTransactionImpl; @override String get lt; @@ -620,7 +620,7 @@ abstract class _TonWalletMultisigExpiredTransaction WalletInteractionInfo? get walletInteractionInfo; @override @JsonKey(ignore: true) - _$$_TonWalletMultisigExpiredTransactionCopyWith< - _$_TonWalletMultisigExpiredTransaction> + _$$TonWalletMultisigExpiredTransactionImplCopyWith< + _$TonWalletMultisigExpiredTransactionImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/models/ton_wallet_related/ton_wallet_multisig_ordinary_transaction.freezed.dart b/lib/src/models/ton_wallet_related/ton_wallet_multisig_ordinary_transaction.freezed.dart index 7f107e8..d250f4d 100644 --- a/lib/src/models/ton_wallet_related/ton_wallet_multisig_ordinary_transaction.freezed.dart +++ b/lib/src/models/ton_wallet_related/ton_wallet_multisig_ordinary_transaction.freezed.dart @@ -266,12 +266,12 @@ class _$TonWalletMultisigOrdinaryTransactionCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_TonWalletMultisigOrdinaryTransactionCopyWith<$Res> +abstract class _$$TonWalletMultisigOrdinaryTransactionImplCopyWith<$Res> implements $TonWalletMultisigOrdinaryTransactionCopyWith<$Res> { - factory _$$_TonWalletMultisigOrdinaryTransactionCopyWith( - _$_TonWalletMultisigOrdinaryTransaction value, - $Res Function(_$_TonWalletMultisigOrdinaryTransaction) then) = - __$$_TonWalletMultisigOrdinaryTransactionCopyWithImpl<$Res>; + factory _$$TonWalletMultisigOrdinaryTransactionImplCopyWith( + _$TonWalletMultisigOrdinaryTransactionImpl value, + $Res Function(_$TonWalletMultisigOrdinaryTransactionImpl) then) = + __$$TonWalletMultisigOrdinaryTransactionImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -310,13 +310,13 @@ abstract class _$$_TonWalletMultisigOrdinaryTransactionCopyWith<$Res> } /// @nodoc -class __$$_TonWalletMultisigOrdinaryTransactionCopyWithImpl<$Res> +class __$$TonWalletMultisigOrdinaryTransactionImplCopyWithImpl<$Res> extends _$TonWalletMultisigOrdinaryTransactionCopyWithImpl<$Res, - _$_TonWalletMultisigOrdinaryTransaction> - implements _$$_TonWalletMultisigOrdinaryTransactionCopyWith<$Res> { - __$$_TonWalletMultisigOrdinaryTransactionCopyWithImpl( - _$_TonWalletMultisigOrdinaryTransaction _value, - $Res Function(_$_TonWalletMultisigOrdinaryTransaction) _then) + _$TonWalletMultisigOrdinaryTransactionImpl> + implements _$$TonWalletMultisigOrdinaryTransactionImplCopyWith<$Res> { + __$$TonWalletMultisigOrdinaryTransactionImplCopyWithImpl( + _$TonWalletMultisigOrdinaryTransactionImpl _value, + $Res Function(_$TonWalletMultisigOrdinaryTransactionImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -339,7 +339,7 @@ class __$$_TonWalletMultisigOrdinaryTransactionCopyWithImpl<$Res> Object? tokenWalletDeployedNotification = freezed, Object? walletInteractionInfo = freezed, }) { - return _then(_$_TonWalletMultisigOrdinaryTransaction( + return _then(_$TonWalletMultisigOrdinaryTransactionImpl( lt: null == lt ? _value.lt : lt // ignore: cast_nullable_to_non_nullable @@ -413,9 +413,9 @@ class __$$_TonWalletMultisigOrdinaryTransactionCopyWithImpl<$Res> /// @nodoc -class _$_TonWalletMultisigOrdinaryTransaction +class _$TonWalletMultisigOrdinaryTransactionImpl implements _TonWalletMultisigOrdinaryTransaction { - const _$_TonWalletMultisigOrdinaryTransaction( + const _$TonWalletMultisigOrdinaryTransactionImpl( {required this.lt, required this.creator, required final List confirmations, @@ -499,7 +499,7 @@ class _$_TonWalletMultisigOrdinaryTransaction bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_TonWalletMultisigOrdinaryTransaction && + other is _$TonWalletMultisigOrdinaryTransactionImpl && (identical(other.lt, lt) || other.lt == lt) && (identical(other.creator, creator) || other.creator == creator) && const DeepCollectionEquality() @@ -555,10 +555,10 @@ class _$_TonWalletMultisigOrdinaryTransaction @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_TonWalletMultisigOrdinaryTransactionCopyWith< - _$_TonWalletMultisigOrdinaryTransaction> - get copyWith => __$$_TonWalletMultisigOrdinaryTransactionCopyWithImpl< - _$_TonWalletMultisigOrdinaryTransaction>(this, _$identity); + _$$TonWalletMultisigOrdinaryTransactionImplCopyWith< + _$TonWalletMultisigOrdinaryTransactionImpl> + get copyWith => __$$TonWalletMultisigOrdinaryTransactionImplCopyWithImpl< + _$TonWalletMultisigOrdinaryTransactionImpl>(this, _$identity); } abstract class _TonWalletMultisigOrdinaryTransaction @@ -581,7 +581,7 @@ abstract class _TonWalletMultisigOrdinaryTransaction final DePoolReceiveAnswerNotification? dePoolReceiveAnswerNotification, final TokenWalletDeployedNotification? tokenWalletDeployedNotification, final WalletInteractionInfo? - walletInteractionInfo}) = _$_TonWalletMultisigOrdinaryTransaction; + walletInteractionInfo}) = _$TonWalletMultisigOrdinaryTransactionImpl; @override String get lt; @@ -620,7 +620,7 @@ abstract class _TonWalletMultisigOrdinaryTransaction WalletInteractionInfo? get walletInteractionInfo; @override @JsonKey(ignore: true) - _$$_TonWalletMultisigOrdinaryTransactionCopyWith< - _$_TonWalletMultisigOrdinaryTransaction> + _$$TonWalletMultisigOrdinaryTransactionImplCopyWith< + _$TonWalletMultisigOrdinaryTransactionImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/models/ton_wallet_related/ton_wallet_multisig_pending_transaction.freezed.dart b/lib/src/models/ton_wallet_related/ton_wallet_multisig_pending_transaction.freezed.dart index 8c9fb4d..83c5d23 100644 --- a/lib/src/models/ton_wallet_related/ton_wallet_multisig_pending_transaction.freezed.dart +++ b/lib/src/models/ton_wallet_related/ton_wallet_multisig_pending_transaction.freezed.dart @@ -327,12 +327,12 @@ class _$TonWalletMultisigPendingTransactionCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_TonWalletMultisigPendingTransactionCopyWith<$Res> +abstract class _$$TonWalletMultisigPendingTransactionImplCopyWith<$Res> implements $TonWalletMultisigPendingTransactionCopyWith<$Res> { - factory _$$_TonWalletMultisigPendingTransactionCopyWith( - _$_TonWalletMultisigPendingTransaction value, - $Res Function(_$_TonWalletMultisigPendingTransaction) then) = - __$$_TonWalletMultisigPendingTransactionCopyWithImpl<$Res>; + factory _$$TonWalletMultisigPendingTransactionImplCopyWith( + _$TonWalletMultisigPendingTransactionImpl value, + $Res Function(_$TonWalletMultisigPendingTransactionImpl) then) = + __$$TonWalletMultisigPendingTransactionImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -380,13 +380,13 @@ abstract class _$$_TonWalletMultisigPendingTransactionCopyWith<$Res> } /// @nodoc -class __$$_TonWalletMultisigPendingTransactionCopyWithImpl<$Res> +class __$$TonWalletMultisigPendingTransactionImplCopyWithImpl<$Res> extends _$TonWalletMultisigPendingTransactionCopyWithImpl<$Res, - _$_TonWalletMultisigPendingTransaction> - implements _$$_TonWalletMultisigPendingTransactionCopyWith<$Res> { - __$$_TonWalletMultisigPendingTransactionCopyWithImpl( - _$_TonWalletMultisigPendingTransaction _value, - $Res Function(_$_TonWalletMultisigPendingTransaction) _then) + _$TonWalletMultisigPendingTransactionImpl> + implements _$$TonWalletMultisigPendingTransactionImplCopyWith<$Res> { + __$$TonWalletMultisigPendingTransactionImplCopyWithImpl( + _$TonWalletMultisigPendingTransactionImpl _value, + $Res Function(_$TonWalletMultisigPendingTransactionImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -416,7 +416,7 @@ class __$$_TonWalletMultisigPendingTransactionCopyWithImpl<$Res> Object? tokenWalletDeployedNotification = freezed, Object? walletInteractionInfo = freezed, }) { - return _then(_$_TonWalletMultisigPendingTransaction( + return _then(_$TonWalletMultisigPendingTransactionImpl( lt: null == lt ? _value.lt : lt // ignore: cast_nullable_to_non_nullable @@ -518,9 +518,9 @@ class __$$_TonWalletMultisigPendingTransactionCopyWithImpl<$Res> /// @nodoc -class _$_TonWalletMultisigPendingTransaction +class _$TonWalletMultisigPendingTransactionImpl implements _TonWalletMultisigPendingTransaction { - const _$_TonWalletMultisigPendingTransaction( + const _$TonWalletMultisigPendingTransactionImpl( {required this.lt, required this.creator, required final List confirmations, @@ -637,7 +637,7 @@ class _$_TonWalletMultisigPendingTransaction bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_TonWalletMultisigPendingTransaction && + other is _$TonWalletMultisigPendingTransactionImpl && (identical(other.lt, lt) || other.lt == lt) && (identical(other.creator, creator) || other.creator == creator) && const DeepCollectionEquality() @@ -716,10 +716,10 @@ class _$_TonWalletMultisigPendingTransaction @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_TonWalletMultisigPendingTransactionCopyWith< - _$_TonWalletMultisigPendingTransaction> - get copyWith => __$$_TonWalletMultisigPendingTransactionCopyWithImpl< - _$_TonWalletMultisigPendingTransaction>(this, _$identity); + _$$TonWalletMultisigPendingTransactionImplCopyWith< + _$TonWalletMultisigPendingTransactionImpl> + get copyWith => __$$TonWalletMultisigPendingTransactionImplCopyWithImpl< + _$TonWalletMultisigPendingTransactionImpl>(this, _$identity); } abstract class _TonWalletMultisigPendingTransaction @@ -749,7 +749,7 @@ abstract class _TonWalletMultisigPendingTransaction final DePoolReceiveAnswerNotification? dePoolReceiveAnswerNotification, final TokenWalletDeployedNotification? tokenWalletDeployedNotification, final WalletInteractionInfo? - walletInteractionInfo}) = _$_TonWalletMultisigPendingTransaction; + walletInteractionInfo}) = _$TonWalletMultisigPendingTransactionImpl; @override String get lt; @@ -801,7 +801,7 @@ abstract class _TonWalletMultisigPendingTransaction WalletInteractionInfo? get walletInteractionInfo; @override @JsonKey(ignore: true) - _$$_TonWalletMultisigPendingTransactionCopyWith< - _$_TonWalletMultisigPendingTransaction> + _$$TonWalletMultisigPendingTransactionImplCopyWith< + _$TonWalletMultisigPendingTransactionImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/models/ton_wallet_related/ton_wallet_ordinary_transaction.freezed.dart b/lib/src/models/ton_wallet_related/ton_wallet_ordinary_transaction.freezed.dart index aad4e72..0d89028 100644 --- a/lib/src/models/ton_wallet_related/ton_wallet_ordinary_transaction.freezed.dart +++ b/lib/src/models/ton_wallet_related/ton_wallet_ordinary_transaction.freezed.dart @@ -230,12 +230,12 @@ class _$TonWalletOrdinaryTransactionCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_TonWalletOrdinaryTransactionCopyWith<$Res> +abstract class _$$TonWalletOrdinaryTransactionImplCopyWith<$Res> implements $TonWalletOrdinaryTransactionCopyWith<$Res> { - factory _$$_TonWalletOrdinaryTransactionCopyWith( - _$_TonWalletOrdinaryTransaction value, - $Res Function(_$_TonWalletOrdinaryTransaction) then) = - __$$_TonWalletOrdinaryTransactionCopyWithImpl<$Res>; + factory _$$TonWalletOrdinaryTransactionImplCopyWith( + _$TonWalletOrdinaryTransactionImpl value, + $Res Function(_$TonWalletOrdinaryTransactionImpl) then) = + __$$TonWalletOrdinaryTransactionImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -269,13 +269,13 @@ abstract class _$$_TonWalletOrdinaryTransactionCopyWith<$Res> } /// @nodoc -class __$$_TonWalletOrdinaryTransactionCopyWithImpl<$Res> +class __$$TonWalletOrdinaryTransactionImplCopyWithImpl<$Res> extends _$TonWalletOrdinaryTransactionCopyWithImpl<$Res, - _$_TonWalletOrdinaryTransaction> - implements _$$_TonWalletOrdinaryTransactionCopyWith<$Res> { - __$$_TonWalletOrdinaryTransactionCopyWithImpl( - _$_TonWalletOrdinaryTransaction _value, - $Res Function(_$_TonWalletOrdinaryTransaction) _then) + _$TonWalletOrdinaryTransactionImpl> + implements _$$TonWalletOrdinaryTransactionImplCopyWith<$Res> { + __$$TonWalletOrdinaryTransactionImplCopyWithImpl( + _$TonWalletOrdinaryTransactionImpl _value, + $Res Function(_$TonWalletOrdinaryTransactionImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -295,7 +295,7 @@ class __$$_TonWalletOrdinaryTransactionCopyWithImpl<$Res> Object? tokenWalletDeployedNotification = freezed, Object? walletInteractionInfo = freezed, }) { - return _then(_$_TonWalletOrdinaryTransaction( + return _then(_$TonWalletOrdinaryTransactionImpl( lt: null == lt ? _value.lt : lt // ignore: cast_nullable_to_non_nullable @@ -357,8 +357,9 @@ class __$$_TonWalletOrdinaryTransactionCopyWithImpl<$Res> /// @nodoc -class _$_TonWalletOrdinaryTransaction implements _TonWalletOrdinaryTransaction { - const _$_TonWalletOrdinaryTransaction( +class _$TonWalletOrdinaryTransactionImpl + implements _TonWalletOrdinaryTransaction { + const _$TonWalletOrdinaryTransactionImpl( {required this.lt, required this.isOutgoing, @amountJsonConverter required this.value, @@ -412,7 +413,7 @@ class _$_TonWalletOrdinaryTransaction implements _TonWalletOrdinaryTransaction { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_TonWalletOrdinaryTransaction && + other is _$TonWalletOrdinaryTransactionImpl && (identical(other.lt, lt) || other.lt == lt) && (identical(other.isOutgoing, isOutgoing) || other.isOutgoing == isOutgoing) && @@ -460,9 +461,10 @@ class _$_TonWalletOrdinaryTransaction implements _TonWalletOrdinaryTransaction { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_TonWalletOrdinaryTransactionCopyWith<_$_TonWalletOrdinaryTransaction> - get copyWith => __$$_TonWalletOrdinaryTransactionCopyWithImpl< - _$_TonWalletOrdinaryTransaction>(this, _$identity); + _$$TonWalletOrdinaryTransactionImplCopyWith< + _$TonWalletOrdinaryTransactionImpl> + get copyWith => __$$TonWalletOrdinaryTransactionImplCopyWithImpl< + _$TonWalletOrdinaryTransactionImpl>(this, _$identity); } abstract class _TonWalletOrdinaryTransaction @@ -482,7 +484,7 @@ abstract class _TonWalletOrdinaryTransaction final DePoolReceiveAnswerNotification? dePoolReceiveAnswerNotification, final TokenWalletDeployedNotification? tokenWalletDeployedNotification, final WalletInteractionInfo? - walletInteractionInfo}) = _$_TonWalletOrdinaryTransaction; + walletInteractionInfo}) = _$TonWalletOrdinaryTransactionImpl; @override String get lt; @@ -515,6 +517,7 @@ abstract class _TonWalletOrdinaryTransaction WalletInteractionInfo? get walletInteractionInfo; @override @JsonKey(ignore: true) - _$$_TonWalletOrdinaryTransactionCopyWith<_$_TonWalletOrdinaryTransaction> + _$$TonWalletOrdinaryTransactionImplCopyWith< + _$TonWalletOrdinaryTransactionImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/models/ton_wallet_related/ton_wallet_pending_transaction.freezed.dart b/lib/src/models/ton_wallet_related/ton_wallet_pending_transaction.freezed.dart index b9afc77..651e261 100644 --- a/lib/src/models/ton_wallet_related/ton_wallet_pending_transaction.freezed.dart +++ b/lib/src/models/ton_wallet_related/ton_wallet_pending_transaction.freezed.dart @@ -126,12 +126,12 @@ class _$TonWalletPendingTransactionCopyWithImpl<$Res, } /// @nodoc -abstract class _$$_TonWalletPendingTransactionCopyWith<$Res> +abstract class _$$TonWalletPendingTransactionImplCopyWith<$Res> implements $TonWalletPendingTransactionCopyWith<$Res> { - factory _$$_TonWalletPendingTransactionCopyWith( - _$_TonWalletPendingTransaction value, - $Res Function(_$_TonWalletPendingTransaction) then) = - __$$_TonWalletPendingTransactionCopyWithImpl<$Res>; + factory _$$TonWalletPendingTransactionImplCopyWith( + _$TonWalletPendingTransactionImpl value, + $Res Function(_$TonWalletPendingTransactionImpl) then) = + __$$TonWalletPendingTransactionImplCopyWithImpl<$Res>; @override @useResult $Res call( @@ -150,13 +150,13 @@ abstract class _$$_TonWalletPendingTransactionCopyWith<$Res> } /// @nodoc -class __$$_TonWalletPendingTransactionCopyWithImpl<$Res> +class __$$TonWalletPendingTransactionImplCopyWithImpl<$Res> extends _$TonWalletPendingTransactionCopyWithImpl<$Res, - _$_TonWalletPendingTransaction> - implements _$$_TonWalletPendingTransactionCopyWith<$Res> { - __$$_TonWalletPendingTransactionCopyWithImpl( - _$_TonWalletPendingTransaction _value, - $Res Function(_$_TonWalletPendingTransaction) _then) + _$TonWalletPendingTransactionImpl> + implements _$$TonWalletPendingTransactionImplCopyWith<$Res> { + __$$TonWalletPendingTransactionImplCopyWithImpl( + _$TonWalletPendingTransactionImpl _value, + $Res Function(_$TonWalletPendingTransactionImpl) _then) : super(_value, _then); @pragma('vm:prefer-inline') @@ -170,7 +170,7 @@ class __$$_TonWalletPendingTransactionCopyWithImpl<$Res> Object? messageHash = null, Object? isIncoming = null, }) { - return _then(_$_TonWalletPendingTransaction( + return _then(_$TonWalletPendingTransactionImpl( address: null == address ? _value.address : address // ignore: cast_nullable_to_non_nullable @@ -205,8 +205,9 @@ class __$$_TonWalletPendingTransactionCopyWithImpl<$Res> /// @nodoc -class _$_TonWalletPendingTransaction implements _TonWalletPendingTransaction { - const _$_TonWalletPendingTransaction( +class _$TonWalletPendingTransactionImpl + implements _TonWalletPendingTransaction { + const _$TonWalletPendingTransactionImpl( {required this.address, required this.date, required this.expireAt, @@ -244,7 +245,7 @@ class _$_TonWalletPendingTransaction implements _TonWalletPendingTransaction { bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && - other is _$_TonWalletPendingTransaction && + other is _$TonWalletPendingTransactionImpl && (identical(other.address, address) || other.address == address) && (identical(other.date, date) || other.date == date) && (identical(other.expireAt, expireAt) || @@ -265,9 +266,9 @@ class _$_TonWalletPendingTransaction implements _TonWalletPendingTransaction { @JsonKey(ignore: true) @override @pragma('vm:prefer-inline') - _$$_TonWalletPendingTransactionCopyWith<_$_TonWalletPendingTransaction> - get copyWith => __$$_TonWalletPendingTransactionCopyWithImpl< - _$_TonWalletPendingTransaction>(this, _$identity); + _$$TonWalletPendingTransactionImplCopyWith<_$TonWalletPendingTransactionImpl> + get copyWith => __$$TonWalletPendingTransactionImplCopyWithImpl< + _$TonWalletPendingTransactionImpl>(this, _$identity); } abstract class _TonWalletPendingTransaction @@ -279,7 +280,7 @@ abstract class _TonWalletPendingTransaction required final Address destination, @amountJsonConverter required final BigInt amount, required final String messageHash, - required final bool isIncoming}) = _$_TonWalletPendingTransaction; + required final bool isIncoming}) = _$TonWalletPendingTransactionImpl; @override // address of wallet for which this transaction found Address get address; @@ -298,6 +299,6 @@ abstract class _TonWalletPendingTransaction bool get isIncoming; @override @JsonKey(ignore: true) - _$$_TonWalletPendingTransactionCopyWith<_$_TonWalletPendingTransaction> + _$$TonWalletPendingTransactionImplCopyWith<_$TonWalletPendingTransactionImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/repositories/repositories.dart b/lib/src/repositories/repositories.dart index 1663c39..4814149 100644 --- a/lib/src/repositories/repositories.dart +++ b/lib/src/repositories/repositories.dart @@ -2,6 +2,7 @@ export './account_repository/account_repository.dart'; export './generic_contract_repository/generic_contract_repository.dart'; export './nekoton_storage_repository/nekoton_storage_repository.dart'; +export './refresh_polling_queue/cancellable_operation_awaited.dart'; export './refresh_polling_queue/refresh_polling_queue.dart'; export './seed_repository/seed_repository.dart'; export './token_wallet_repository/token_wallet_repository.dart'; diff --git a/lib/src/repositories/token_wallet_repository/token_wallet_repository_impl.dart b/lib/src/repositories/token_wallet_repository/token_wallet_repository_impl.dart index 235df68..f0f975f 100644 --- a/lib/src/repositories/token_wallet_repository/token_wallet_repository_impl.dart +++ b/lib/src/repositories/token_wallet_repository/token_wallet_repository_impl.dart @@ -2,7 +2,7 @@ import 'package:collection/collection.dart'; import 'package:flutter/foundation.dart'; import 'package:logging/logging.dart'; import 'package:nekoton_repository/nekoton_repository.dart'; -import 'package:nekoton_repository/src/repositories/refresh_polling_queue/cancellable_operation_awaited.dart'; +import 'package:quiver/iterables.dart'; import 'package:rxdart/rxdart.dart'; /// Polling interval for token wallet refresh @@ -20,6 +20,15 @@ mixin TokenWalletRepositoryImpl implements TokenWalletRepository { final _tokenWalletsSubject = BehaviorSubject>.seeded({}); + /// How many tokens can be subscribed at time for one cycle in + /// [TokenWalletRepositoryImpl._updateTokenSubscriptionsPairs]. + /// This variable can be changed if you need expand/reduce amount of subscribed + /// token for one cycle. This means, that if you often calls methods to update + /// subscriptions such as [TokenWalletRepositoryImpl.updateTokenSubscriptions] + /// or [TokenWalletRepositoryImpl.updateTokenTransportSubscriptions] it may + /// takes more time while the cycle will be completed. + int tokenSubscribeAtTimeAmount = 8; + /// Last assets that were used for subscription. /// This value is used during [updateTokenTransportSubscriptions] to create /// new subscriptions after transport was changed. @@ -201,12 +210,23 @@ mixin TokenWalletRepositoryImpl implements TokenWalletRepository { late CancelableOperationAwaited operation; operation = CancelableOperationAwaited.fromFuture(() async { - for (final wallet in toSubscribe) { - try { - await subscribeToken(owner: wallet.$1, rootTokenContract: wallet.$2); - } catch (e, t) { - _logger.severe('_updateTokenSubscriptionsPairs', e, t); - } + // Split all tokens to sublists to allow loading multiple tokens + // simultaneously. + final parts = partition(toSubscribe, tokenSubscribeAtTimeAmount); + + for (final part in parts) { + await Future.wait( + part.map((wallet) async { + try { + await subscribeToken( + owner: wallet.$1, + rootTokenContract: wallet.$2, + ); + } catch (e, t) { + _logger.severe('_updateTokenSubscriptionsPairs', e, t); + } + }), + ); // Make this pseudo event to allow other operations in event loop // to be executed diff --git a/lib/src/repositories/ton_wallet_repository/ton_wallet_repository_impl.dart b/lib/src/repositories/ton_wallet_repository/ton_wallet_repository_impl.dart index 5f80841..b70d7f8 100644 --- a/lib/src/repositories/ton_wallet_repository/ton_wallet_repository_impl.dart +++ b/lib/src/repositories/ton_wallet_repository/ton_wallet_repository_impl.dart @@ -5,9 +5,9 @@ import 'package:flutter/foundation.dart'; import 'package:get_it/get_it.dart'; import 'package:logging/logging.dart'; import 'package:nekoton_repository/nekoton_repository.dart'; -import 'package:nekoton_repository/src/repositories/refresh_polling_queue/cancellable_operation_awaited.dart'; import 'package:nekoton_repository/src/repositories/ton_wallet_repository/ton_wallet_gql_block_poller.dart'; import 'package:nekoton_repository/src/utils/utils.dart'; +import 'package:quiver/iterables.dart'; import 'package:rxdart/rxdart.dart'; /// Polling interval for [TonWallet.refresh] @@ -27,6 +27,15 @@ mixin TonWalletRepositoryImpl implements TonWalletRepository { /// Current transport of application TransportStrategy get currentTransport; + /// How many tokens can be subscribed at time for one cycle in + /// [TonWalletRepositoryImpl.updateSubscriptions]. + /// This variable can be changed if you need expand/reduce amount of subscribed + /// token for one cycle. This means, that if you often calls methods to update + /// subscriptions such as [TonWalletRepositoryImpl.updateSubscriptions] + /// or [TonWalletRepositoryImpl.updateTransportSubscriptions] it may + /// takes more time while the cycle will be completed. + int tonSubscribeAtTimeAmount = 5; + /// Last assets that were used for subscription. /// This value is used during [updateTransportSubscriptions] to create /// new subscriptions after transport was changed. @@ -200,12 +209,20 @@ mixin TonWalletRepositoryImpl implements TonWalletRepository { late CancelableOperationAwaited operation; operation = CancelableOperationAwaited.fromFuture(() async { - for (final asset in toSubscribe) { - try { - await subscribe(asset); - } catch (e, t) { - _logger.severe('updateSubscriptions', e, t); - } + // Split all tokens to sublists to allow loading multiple tokens + // simultaneously. + final parts = partition(toSubscribe, tonSubscribeAtTimeAmount); + + for (final part in parts) { + await Future.wait( + part.map((asset) async { + try { + await subscribe(asset); + } catch (e, t) { + _logger.severe('updateSubscriptions', e, t); + } + }), + ); // Make this pseudo event to allow other operations in event loop // to be executed diff --git a/pubspec.yaml b/pubspec.yaml index a9163b7..9a3ce2c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -19,6 +19,7 @@ dependencies: injectable: ^2.1.0 json_serializable: ^6.6.1 logging: ^1.1.1 + quiver: ^3.2.1 rxdart: ^0.27.7 dev_dependencies: