Skip to content

Commit

Permalink
fix: allow subscribing multiple tokens at time (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-A4 authored Oct 26, 2023
1 parent 0f21673 commit 61fe43e
Show file tree
Hide file tree
Showing 20 changed files with 334 additions and 285 deletions.
3 changes: 1 addition & 2 deletions lib/nekoton_repository.module.dart
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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});
Expand All @@ -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')
Expand All @@ -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
Expand All @@ -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<String, dynamic> json) =>
_$$_ContractStateChangedEventFromJson(json);
factory _$ContractStateChangedEventImpl.fromJson(Map<String, dynamic> json) =>
_$$ContractStateChangedEventImplFromJson(json);

@override
final Address address;
Expand All @@ -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));
}
Expand All @@ -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<String, dynamic> toJson() {
return _$$_ContractStateChangedEventToJson(
return _$$ContractStateChangedEventImplToJson(
this,
);
}
Expand All @@ -184,17 +184,17 @@ 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<String, dynamic> json) =
_$_ContractStateChangedEvent.fromJson;
_$ContractStateChangedEventImpl.fromJson;

@override
Address get address;
@override
ContractState get state;
@override
@JsonKey(ignore: true)
_$$_ContractStateChangedEventCopyWith<_$_ContractStateChangedEvent>
_$$ContractStateChangedEventImplCopyWith<_$ContractStateChangedEventImpl>
get copyWith => throw _privateConstructorUsedError;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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')
Expand All @@ -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
Expand All @@ -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<Transaction> transactions,
required this.info})
: _transactions = transactions;

factory _$_ContractFoundTransactionEvent.fromJson(
factory _$ContractFoundTransactionEventImpl.fromJson(
Map<String, dynamic> json) =>
_$$_ContractFoundTransactionEventFromJson(json);
_$$ContractFoundTransactionEventImplFromJson(json);

@override
final Address address;
Expand All @@ -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) &&
Expand All @@ -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<String, dynamic> toJson() {
return _$$_ContractFoundTransactionEventToJson(
return _$$ContractFoundTransactionEventImplToJson(
this,
);
}
Expand All @@ -222,10 +223,10 @@ abstract class _ContractFoundTransactionEvent
{required final Address address,
required final List<Transaction> transactions,
required final TransactionsBatchInfo info}) =
_$_ContractFoundTransactionEvent;
_$ContractFoundTransactionEventImpl;

factory _ContractFoundTransactionEvent.fromJson(Map<String, dynamic> json) =
_$_ContractFoundTransactionEvent.fromJson;
_$ContractFoundTransactionEventImpl.fromJson;

@override
Address get address;
Expand All @@ -235,6 +236,7 @@ abstract class _ContractFoundTransactionEvent
TransactionsBatchInfo get info;
@override
@JsonKey(ignore: true)
_$$_ContractFoundTransactionEventCopyWith<_$_ContractFoundTransactionEvent>
_$$ContractFoundTransactionEventImplCopyWith<
_$ContractFoundTransactionEventImpl>
get copyWith => throw _privateConstructorUsedError;
}
24 changes: 12 additions & 12 deletions lib/src/models/generic_contract/contract_transaction_event.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 61fe43e

Please sign in to comment.