diff --git a/analysis_options.yaml b/analysis_options.yaml
deleted file mode 100644
index a5744c1cfbe77ae2daba29c74156c617b5f09b77..0000000000000000000000000000000000000000
--- a/analysis_options.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
-include: package:flutter_lints/flutter.yaml
-
-# Additional information about this file can be found at
-# https://dart.dev/guides/language/analysis-options
diff --git a/build.yaml b/build.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..560f89d4bfb8beeecfd72294e39d2310183ca840
--- /dev/null
+++ b/build.yaml
@@ -0,0 +1,20 @@
+targets:
+  $default:
+    builders:
+      graphql_codegen:
+        options:
+          clients:
+            - graphql
+          schema: lib/models/graphql/queries/schema.graphql
+          output_dir: lib/models/graphql/
+          scalars:
+            numeric:
+              type: int
+            timestamptz:
+              type: DateTime
+            bytea:
+              type: Uint8List
+            jsonb:
+              type: Map<String, dynamic>
+          # https://github.com/heftapp/graphql_codegen/issues/22
+          addTypenameExcludedPaths: ["subscription", "subscription.foobar"]
diff --git a/config/duniter_endpoints.json b/config/duniter_endpoints.json
new file mode 100644
index 0000000000000000000000000000000000000000..9ef514f41c05ec91a6aa545d28b629d44dc96d48
--- /dev/null
+++ b/config/duniter_endpoints.json
@@ -0,0 +1,15 @@
+{
+  "gdev": [
+    "wss://gdev.p2p.legal/ws",
+    "wss://gdev.coinduf.eu/ws",
+    "wss://vit.fdn.org/ws",
+    "wss://gdev.cgeek.fr/ws",
+    "wss://gdev.pini.fr/ws"
+  ],
+  "gtest": [
+    "wss://gtest.p2p.legal/ws"
+  ],
+  "g1": [
+    "wss://g1.p2p.legal/ws"
+  ]
+}
diff --git a/config/squid_endpoints.json b/config/squid_endpoints.json
new file mode 100644
index 0000000000000000000000000000000000000000..dec1a66c8178cf42543bc81e2683701d4977c8f7
--- /dev/null
+++ b/config/squid_endpoints.json
@@ -0,0 +1,11 @@
+{
+    "gdev": [
+      "wss://gdev-squid.axiom-team.fr/v1beta1/relay"
+    ],
+    "gtest": [
+        "wss://gtest-squid.axiom-team.fr/v1beta1/relay"
+    ],
+    "g1": [
+        "wss://g1-squid.axiom-team.fr/v1beta1/relay"
+    ]
+  }
diff --git a/lib/durt2.dart b/lib/durt2.dart
index 9f7cd567a5e7547c4550f01da7f9618757adc102..45859ee6f40f5303413dd05f5e054c6f1c208f84 100644
--- a/lib/durt2.dart
+++ b/lib/durt2.dart
@@ -1,7 +1,55 @@
 library durt2;
 
-/// A Calculator.
-class Calculator {
-  /// Returns [value] plus 1.
-  int addOne(int value) => value + 1;
+import 'dart:convert';
+import 'dart:io';
+import 'package:durt2/src/services/hive_service.dart';
+import 'package:durt2/src/models/networks.dart';
+import 'package:durt2/src/services/api_service.dart';
+import 'package:durt2/src/services/graphql_service.dart';
+
+export 'src/models/generated/duniter/duniter.dart' show Duniter;
+export 'src/models/generated/duniter/types/sp_runtime/multiaddress/multi_address.dart'
+    show $MultiAddress;
+export 'src/global.dart' show walletInfoBox;
+export 'src/services/wallet_service.dart' show walletService;
+export 'src/models/networks.dart' show Networks;
+
+class Durt2 {
+  static Future<void> init(
+      {required Networks network,
+      String? duniterEndpointsJson,
+      String? squidEndpointsJson}) async {
+    late List<String> endpointsDuniter;
+    late List<String> endpointsSquid;
+
+    if (duniterEndpointsJson != null) {
+      final endpointsMap =
+          json.decode(duniterEndpointsJson) as Map<String, dynamic>;
+      endpointsDuniter = List<String>.from(endpointsMap[network.name] ?? []);
+    } else {
+      final directory = Directory.current;
+      final filePath = '${directory.path}/config/duniter_endpoints.json';
+      final file = File(filePath);
+      final jsonString = await file.readAsString();
+      final endpointsMap = json.decode(jsonString) as Map<String, dynamic>;
+      endpointsDuniter = List<String>.from(endpointsMap[network.name] ?? []);
+    }
+
+    if (squidEndpointsJson != null) {
+      final endpointsMap =
+          json.decode(squidEndpointsJson) as Map<String, dynamic>;
+      endpointsSquid = List<String>.from(endpointsMap[network.name] ?? []);
+    } else {
+      final directory = Directory.current;
+      final filePath = '${directory.path}/config/squid_endpoints.json';
+      final file = File(filePath);
+      final jsonString = await file.readAsString();
+      final endpointsMap = json.decode(jsonString) as Map<String, dynamic>;
+      endpointsSquid = List<String>.from(endpointsMap[network.name] ?? []);
+    }
+
+    await HiveService.init();
+    await apiService.init(endpoints: endpointsDuniter);
+    await GraphQLService.init(endpointsSquid);
+  }
 }
diff --git a/lib/src/global.dart b/lib/src/global.dart
new file mode 100644
index 0000000000000000000000000000000000000000..59ec1bb919b875cbff14de8a28e989f82aefa01b
--- /dev/null
+++ b/lib/src/global.dart
@@ -0,0 +1,6 @@
+import 'package:durt2/src/models/wallet_info.dart';
+import 'package:hive/hive.dart';
+import 'package:logger/logger.dart';
+
+final log = Logger();
+late Box<WalletInfo> walletInfoBox;
diff --git a/lib/src/models/encrypted_mnemonic.dart b/lib/src/models/encrypted_mnemonic.dart
new file mode 100644
index 0000000000000000000000000000000000000000..467e416b6488495b1e0f794860c5350619692900
--- /dev/null
+++ b/lib/src/models/encrypted_mnemonic.dart
@@ -0,0 +1,18 @@
+import 'dart:typed_data';
+import 'package:hive/hive.dart';
+
+part 'encrypted_mnemonic.g.dart';
+
+@HiveType(typeId: 0)
+class EncryptedMnemonic {
+  @HiveField(0)
+  final String cipherText;
+
+  @HiveField(1)
+  final Uint8List iv;
+
+  EncryptedMnemonic({
+    required this.cipherText,
+    required this.iv,
+  });
+}
diff --git a/lib/src/models/encrypted_mnemonic.g.dart b/lib/src/models/encrypted_mnemonic.g.dart
new file mode 100644
index 0000000000000000000000000000000000000000..863bd19389dc3b6e1af78404f8b5cb4e128c8eba
--- /dev/null
+++ b/lib/src/models/encrypted_mnemonic.g.dart
@@ -0,0 +1,44 @@
+// GENERATED CODE - DO NOT MODIFY BY HAND
+
+part of 'encrypted_mnemonic.dart';
+
+// **************************************************************************
+// TypeAdapterGenerator
+// **************************************************************************
+
+class EncryptedMnemonicAdapter extends TypeAdapter<EncryptedMnemonic> {
+  @override
+  final int typeId = 0;
+
+  @override
+  EncryptedMnemonic read(BinaryReader reader) {
+    final numOfFields = reader.readByte();
+    final fields = <int, dynamic>{
+      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
+    };
+    return EncryptedMnemonic(
+      cipherText: fields[0] as String,
+      iv: fields[1] as Uint8List,
+    );
+  }
+
+  @override
+  void write(BinaryWriter writer, EncryptedMnemonic obj) {
+    writer
+      ..writeByte(2)
+      ..writeByte(0)
+      ..write(obj.cipherText)
+      ..writeByte(1)
+      ..write(obj.iv);
+  }
+
+  @override
+  int get hashCode => typeId.hashCode;
+
+  @override
+  bool operator ==(Object other) =>
+      identical(this, other) ||
+      other is EncryptedMnemonicAdapter &&
+          runtimeType == other.runtimeType &&
+          typeId == other.typeId;
+}
diff --git a/lib/src/models/generated/duniter/duniter.dart b/lib/src/models/generated/duniter/duniter.dart
new file mode 100644
index 0000000000000000000000000000000000000000..376575e5614fb0f1f2646d4cc909fa7873befe58
--- /dev/null
+++ b/lib/src/models/generated/duniter/duniter.dart
@@ -0,0 +1,321 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i37;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+
+import 'pallets/account.dart' as _i33;
+import 'pallets/atomic_swap.dart' as _i28;
+import 'pallets/authority_discovery.dart' as _i19;
+import 'pallets/authority_members.dart' as _i12;
+import 'pallets/authorship.dart' as _i13;
+import 'pallets/babe.dart' as _i4;
+import 'pallets/balances.dart' as _i7;
+import 'pallets/certification.dart' as _i26;
+import 'pallets/distance.dart' as _i27;
+import 'pallets/grandpa.dart' as _i17;
+import 'pallets/historical.dart' as _i15;
+import 'pallets/identity.dart' as _i24;
+import 'pallets/im_online.dart' as _i18;
+import 'pallets/membership.dart' as _i25;
+import 'pallets/multisig.dart' as _i29;
+import 'pallets/offences.dart' as _i14;
+import 'pallets/oneshot_account.dart' as _i9;
+import 'pallets/parameters.dart' as _i6;
+import 'pallets/preimage.dart' as _i21;
+import 'pallets/provide_randomness.dart' as _i30;
+import 'pallets/proxy.dart' as _i31;
+import 'pallets/quota.dart' as _i10;
+import 'pallets/scheduler.dart' as _i3;
+import 'pallets/session.dart' as _i16;
+import 'pallets/smith_members.dart' as _i11;
+import 'pallets/sudo.dart' as _i20;
+import 'pallets/system.dart' as _i2;
+import 'pallets/technical_committee.dart' as _i22;
+import 'pallets/timestamp.dart' as _i5;
+import 'pallets/transaction_payment.dart' as _i8;
+import 'pallets/treasury.dart' as _i32;
+import 'pallets/universal_dividend.dart' as _i23;
+import 'pallets/upgrade_origin.dart' as _i34;
+import 'pallets/utility.dart' as _i35;
+import 'pallets/wot.dart' as _i36;
+
+class Queries {
+  Queries(_i1.StateApi api)
+      : system = _i2.Queries(api),
+        scheduler = _i3.Queries(api),
+        babe = _i4.Queries(api),
+        timestamp = _i5.Queries(api),
+        parameters = _i6.Queries(api),
+        balances = _i7.Queries(api),
+        transactionPayment = _i8.Queries(api),
+        oneshotAccount = _i9.Queries(api),
+        quota = _i10.Queries(api),
+        smithMembers = _i11.Queries(api),
+        authorityMembers = _i12.Queries(api),
+        authorship = _i13.Queries(api),
+        offences = _i14.Queries(api),
+        historical = _i15.Queries(api),
+        session = _i16.Queries(api),
+        grandpa = _i17.Queries(api),
+        imOnline = _i18.Queries(api),
+        authorityDiscovery = _i19.Queries(api),
+        sudo = _i20.Queries(api),
+        preimage = _i21.Queries(api),
+        technicalCommittee = _i22.Queries(api),
+        universalDividend = _i23.Queries(api),
+        identity = _i24.Queries(api),
+        membership = _i25.Queries(api),
+        certification = _i26.Queries(api),
+        distance = _i27.Queries(api),
+        atomicSwap = _i28.Queries(api),
+        multisig = _i29.Queries(api),
+        provideRandomness = _i30.Queries(api),
+        proxy = _i31.Queries(api),
+        treasury = _i32.Queries(api);
+
+  final _i2.Queries system;
+
+  final _i3.Queries scheduler;
+
+  final _i4.Queries babe;
+
+  final _i5.Queries timestamp;
+
+  final _i6.Queries parameters;
+
+  final _i7.Queries balances;
+
+  final _i8.Queries transactionPayment;
+
+  final _i9.Queries oneshotAccount;
+
+  final _i10.Queries quota;
+
+  final _i11.Queries smithMembers;
+
+  final _i12.Queries authorityMembers;
+
+  final _i13.Queries authorship;
+
+  final _i14.Queries offences;
+
+  final _i15.Queries historical;
+
+  final _i16.Queries session;
+
+  final _i17.Queries grandpa;
+
+  final _i18.Queries imOnline;
+
+  final _i19.Queries authorityDiscovery;
+
+  final _i20.Queries sudo;
+
+  final _i21.Queries preimage;
+
+  final _i22.Queries technicalCommittee;
+
+  final _i23.Queries universalDividend;
+
+  final _i24.Queries identity;
+
+  final _i25.Queries membership;
+
+  final _i26.Queries certification;
+
+  final _i27.Queries distance;
+
+  final _i28.Queries atomicSwap;
+
+  final _i29.Queries multisig;
+
+  final _i30.Queries provideRandomness;
+
+  final _i31.Queries proxy;
+
+  final _i32.Queries treasury;
+}
+
+class Extrinsics {
+  Extrinsics();
+
+  final _i2.Txs system = const _i2.Txs();
+
+  final _i33.Txs account = const _i33.Txs();
+
+  final _i3.Txs scheduler = const _i3.Txs();
+
+  final _i4.Txs babe = const _i4.Txs();
+
+  final _i5.Txs timestamp = const _i5.Txs();
+
+  final _i7.Txs balances = const _i7.Txs();
+
+  final _i9.Txs oneshotAccount = const _i9.Txs();
+
+  final _i11.Txs smithMembers = const _i11.Txs();
+
+  final _i12.Txs authorityMembers = const _i12.Txs();
+
+  final _i16.Txs session = const _i16.Txs();
+
+  final _i17.Txs grandpa = const _i17.Txs();
+
+  final _i18.Txs imOnline = const _i18.Txs();
+
+  final _i20.Txs sudo = const _i20.Txs();
+
+  final _i34.Txs upgradeOrigin = const _i34.Txs();
+
+  final _i21.Txs preimage = const _i21.Txs();
+
+  final _i22.Txs technicalCommittee = const _i22.Txs();
+
+  final _i23.Txs universalDividend = const _i23.Txs();
+
+  final _i24.Txs identity = const _i24.Txs();
+
+  final _i26.Txs certification = const _i26.Txs();
+
+  final _i27.Txs distance = const _i27.Txs();
+
+  final _i28.Txs atomicSwap = const _i28.Txs();
+
+  final _i29.Txs multisig = const _i29.Txs();
+
+  final _i30.Txs provideRandomness = const _i30.Txs();
+
+  final _i31.Txs proxy = const _i31.Txs();
+
+  final _i35.Txs utility = const _i35.Txs();
+
+  final _i32.Txs treasury = const _i32.Txs();
+}
+
+class Constants {
+  Constants();
+
+  final _i2.Constants system = _i2.Constants();
+
+  final _i3.Constants scheduler = _i3.Constants();
+
+  final _i4.Constants babe = _i4.Constants();
+
+  final _i5.Constants timestamp = _i5.Constants();
+
+  final _i7.Constants balances = _i7.Constants();
+
+  final _i8.Constants transactionPayment = _i8.Constants();
+
+  final _i10.Constants quota = _i10.Constants();
+
+  final _i11.Constants smithMembers = _i11.Constants();
+
+  final _i12.Constants authorityMembers = _i12.Constants();
+
+  final _i17.Constants grandpa = _i17.Constants();
+
+  final _i18.Constants imOnline = _i18.Constants();
+
+  final _i22.Constants technicalCommittee = _i22.Constants();
+
+  final _i23.Constants universalDividend = _i23.Constants();
+
+  final _i36.Constants wot = _i36.Constants();
+
+  final _i24.Constants identity = _i24.Constants();
+
+  final _i25.Constants membership = _i25.Constants();
+
+  final _i26.Constants certification = _i26.Constants();
+
+  final _i27.Constants distance = _i27.Constants();
+
+  final _i28.Constants atomicSwap = _i28.Constants();
+
+  final _i29.Constants multisig = _i29.Constants();
+
+  final _i30.Constants provideRandomness = _i30.Constants();
+
+  final _i31.Constants proxy = _i31.Constants();
+
+  final _i35.Constants utility = _i35.Constants();
+
+  final _i32.Constants treasury = _i32.Constants();
+}
+
+class Rpc {
+  const Rpc({
+    required this.state,
+    required this.system,
+  });
+
+  final _i1.StateApi state;
+
+  final _i1.SystemApi system;
+}
+
+class Registry {
+  Registry();
+
+  final int extrinsicVersion = 4;
+
+  List getSignedExtensionTypes() {
+    return ['CheckMortality', 'CheckNonce', 'ChargeTransactionPayment'];
+  }
+
+  List getSignedExtensionExtra() {
+    return [
+      'CheckSpecVersion',
+      'CheckTxVersion',
+      'CheckGenesis',
+      'CheckMortality'
+    ];
+  }
+}
+
+class Duniter {
+  Duniter._(
+    this._provider,
+    this.rpc,
+  )   : query = Queries(rpc.state),
+        constant = Constants(),
+        tx = Extrinsics(),
+        registry = Registry();
+
+  factory Duniter(_i1.Provider provider) {
+    final rpc = Rpc(
+      state: _i1.StateApi(provider),
+      system: _i1.SystemApi(provider),
+    );
+    return Duniter._(
+      provider,
+      rpc,
+    );
+  }
+
+  factory Duniter.url(Uri url) {
+    final provider = _i1.Provider.fromUri(url);
+    return Duniter(provider);
+  }
+
+  final _i1.Provider _provider;
+
+  final Queries query;
+
+  final Constants constant;
+
+  final Rpc rpc;
+
+  final Extrinsics tx;
+
+  final Registry registry;
+
+  _i37.Future connect() async {
+    return await _provider.connect();
+  }
+
+  _i37.Future disconnect() async {
+    return await _provider.disconnect();
+  }
+}
diff --git a/lib/src/models/generated/duniter/pallets/account.dart b/lib/src/models/generated/duniter/pallets/account.dart
new file mode 100644
index 0000000000000000000000000000000000000000..644a7a95c194de2fb1e33907e1a1a1b01c1bd5c5
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/account.dart
@@ -0,0 +1,13 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import '../types/gdev_runtime/runtime_call.dart' as _i1;
+import '../types/pallet_duniter_account/pallet/call.dart' as _i2;
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::unlink_identity`].
+  _i1.RuntimeCall unlinkIdentity() {
+    const call = _i2.Call.unlinkIdentity;
+    return _i1.RuntimeCall.values.account(call);
+  }
+}
diff --git a/lib/src/models/generated/duniter/pallets/atomic_swap.dart b/lib/src/models/generated/duniter/pallets/atomic_swap.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4e33c9d14899320b02fc7f44edcfcb3208d4417a
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/atomic_swap.dart
@@ -0,0 +1,125 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i5;
+import 'dart:typed_data' as _i6;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i4;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i7;
+import '../types/pallet_atomic_swap/balance_swap_action.dart' as _i8;
+import '../types/pallet_atomic_swap/pallet/call.dart' as _i9;
+import '../types/pallet_atomic_swap/pending_swap.dart' as _i3;
+import '../types/sp_core/crypto/account_id32.dart' as _i2;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageDoubleMap<_i2.AccountId32, List<int>, _i3.PendingSwap>
+      _pendingSwaps =
+      const _i1.StorageDoubleMap<_i2.AccountId32, List<int>, _i3.PendingSwap>(
+    prefix: 'AtomicSwap',
+    storage: 'PendingSwaps',
+    valueCodec: _i3.PendingSwap.codec,
+    hasher1: _i1.StorageHasher.twoxx64Concat(_i2.AccountId32Codec()),
+    hasher2: _i1.StorageHasher.blake2b128Concat(_i4.U8ArrayCodec(32)),
+  );
+
+  _i5.Future<_i3.PendingSwap?> pendingSwaps(
+    _i2.AccountId32 key1,
+    List<int> key2, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _pendingSwaps.hashedKeyFor(
+      key1,
+      key2,
+    );
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _pendingSwaps.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Returns the storage key for `pendingSwaps`.
+  _i6.Uint8List pendingSwapsKey(
+    _i2.AccountId32 key1,
+    List<int> key2,
+  ) {
+    final hashedKey = _pendingSwaps.hashedKeyFor(
+      key1,
+      key2,
+    );
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `pendingSwaps`.
+  _i6.Uint8List pendingSwapsMapPrefix(_i2.AccountId32 key1) {
+    final hashedKey = _pendingSwaps.mapPrefix(key1);
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::create_swap`].
+  _i7.RuntimeCall createSwap({
+    required _i2.AccountId32 target,
+    required List<int> hashedProof,
+    required _i8.BalanceSwapAction action,
+    required int duration,
+  }) {
+    final call = _i9.Call.values.createSwap(
+      target: target,
+      hashedProof: hashedProof,
+      action: action,
+      duration: duration,
+    );
+    return _i7.RuntimeCall.values.atomicSwap(call);
+  }
+
+  /// See [`Pallet::claim_swap`].
+  _i7.RuntimeCall claimSwap({
+    required List<int> proof,
+    required _i8.BalanceSwapAction action,
+  }) {
+    final call = _i9.Call.values.claimSwap(
+      proof: proof,
+      action: action,
+    );
+    return _i7.RuntimeCall.values.atomicSwap(call);
+  }
+
+  /// See [`Pallet::cancel_swap`].
+  _i7.RuntimeCall cancelSwap({
+    required _i2.AccountId32 target,
+    required List<int> hashedProof,
+  }) {
+    final call = _i9.Call.values.cancelSwap(
+      target: target,
+      hashedProof: hashedProof,
+    );
+    return _i7.RuntimeCall.values.atomicSwap(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// Limit of proof size.
+  ///
+  /// Atomic swap is only atomic if once the proof is revealed, both parties can submit the
+  /// proofs on-chain. If A is the one that generates the proof, then it requires that either:
+  /// - A's blockchain has the same proof length limit as B's blockchain.
+  /// - Or A's blockchain has shorter proof length limit as B's blockchain.
+  ///
+  /// If B sees A is on a blockchain with larger proof length limit, then it should kindly
+  /// refuse to accept the atomic swap request if A generates the proof, and asks that B
+  /// generates the proof instead.
+  final int proofLimit = 1024;
+}
diff --git a/lib/src/models/generated/duniter/pallets/authority_discovery.dart b/lib/src/models/generated/duniter/pallets/authority_discovery.dart
new file mode 100644
index 0000000000000000000000000000000000000000..bae5d420ac28b6936bb2c370cc2568c4e8fbe526
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/authority_discovery.dart
@@ -0,0 +1,66 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i4;
+import 'dart:typed_data' as _i5;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i3;
+
+import '../types/sp_authority_discovery/app/public.dart' as _i2;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<List<_i2.Public>> _keys =
+      const _i1.StorageValue<List<_i2.Public>>(
+    prefix: 'AuthorityDiscovery',
+    storage: 'Keys',
+    valueCodec: _i3.SequenceCodec<_i2.Public>(_i2.PublicCodec()),
+  );
+
+  final _i1.StorageValue<List<_i2.Public>> _nextKeys =
+      const _i1.StorageValue<List<_i2.Public>>(
+    prefix: 'AuthorityDiscovery',
+    storage: 'NextKeys',
+    valueCodec: _i3.SequenceCodec<_i2.Public>(_i2.PublicCodec()),
+  );
+
+  /// Keys of the current authority set.
+  _i4.Future<List<_i2.Public>> keys({_i1.BlockHash? at}) async {
+    final hashedKey = _keys.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _keys.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Keys of the next authority set.
+  _i4.Future<List<_i2.Public>> nextKeys({_i1.BlockHash? at}) async {
+    final hashedKey = _nextKeys.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _nextKeys.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Returns the storage key for `keys`.
+  _i5.Uint8List keysKey() {
+    final hashedKey = _keys.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `nextKeys`.
+  _i5.Uint8List nextKeysKey() {
+    final hashedKey = _nextKeys.hashedKey();
+    return hashedKey;
+  }
+}
diff --git a/lib/src/models/generated/duniter/pallets/authority_members.dart b/lib/src/models/generated/duniter/pallets/authority_members.dart
new file mode 100644
index 0000000000000000000000000000000000000000..95bd277da72730bc35e818e3463a46b14803d62f
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/authority_members.dart
@@ -0,0 +1,213 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i4;
+import 'dart:typed_data' as _i5;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../types/gdev_runtime/opaque/session_keys.dart' as _i8;
+import '../types/gdev_runtime/runtime_call.dart' as _i6;
+import '../types/pallet_authority_members/pallet/call.dart' as _i7;
+import '../types/pallet_authority_members/types/member_data.dart' as _i3;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<List<int>> _incomingAuthorities =
+      const _i1.StorageValue<List<int>>(
+    prefix: 'AuthorityMembers',
+    storage: 'IncomingAuthorities',
+    valueCodec: _i2.U32SequenceCodec.codec,
+  );
+
+  final _i1.StorageValue<List<int>> _onlineAuthorities =
+      const _i1.StorageValue<List<int>>(
+    prefix: 'AuthorityMembers',
+    storage: 'OnlineAuthorities',
+    valueCodec: _i2.U32SequenceCodec.codec,
+  );
+
+  final _i1.StorageValue<List<int>> _outgoingAuthorities =
+      const _i1.StorageValue<List<int>>(
+    prefix: 'AuthorityMembers',
+    storage: 'OutgoingAuthorities',
+    valueCodec: _i2.U32SequenceCodec.codec,
+  );
+
+  final _i1.StorageMap<int, _i3.MemberData> _members =
+      const _i1.StorageMap<int, _i3.MemberData>(
+    prefix: 'AuthorityMembers',
+    storage: 'Members',
+    valueCodec: _i3.MemberData.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i2.U32Codec.codec),
+  );
+
+  final _i1.StorageValue<List<int>> _blacklist =
+      const _i1.StorageValue<List<int>>(
+    prefix: 'AuthorityMembers',
+    storage: 'Blacklist',
+    valueCodec: _i2.U32SequenceCodec.codec,
+  );
+
+  /// list incoming authorities
+  _i4.Future<List<int>> incomingAuthorities({_i1.BlockHash? at}) async {
+    final hashedKey = _incomingAuthorities.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _incomingAuthorities.decodeValue(bytes);
+    }
+    return List<int>.filled(
+      0,
+      0,
+      growable: true,
+    ); /* Default */
+  }
+
+  /// list online authorities
+  _i4.Future<List<int>> onlineAuthorities({_i1.BlockHash? at}) async {
+    final hashedKey = _onlineAuthorities.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _onlineAuthorities.decodeValue(bytes);
+    }
+    return List<int>.filled(
+      0,
+      0,
+      growable: true,
+    ); /* Default */
+  }
+
+  /// list outgoing authorities
+  _i4.Future<List<int>> outgoingAuthorities({_i1.BlockHash? at}) async {
+    final hashedKey = _outgoingAuthorities.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _outgoingAuthorities.decodeValue(bytes);
+    }
+    return List<int>.filled(
+      0,
+      0,
+      growable: true,
+    ); /* Default */
+  }
+
+  /// maps member id to member data
+  _i4.Future<_i3.MemberData?> members(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _members.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _members.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  _i4.Future<List<int>> blacklist({_i1.BlockHash? at}) async {
+    final hashedKey = _blacklist.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _blacklist.decodeValue(bytes);
+    }
+    return List<int>.filled(
+      0,
+      0,
+      growable: true,
+    ); /* Default */
+  }
+
+  /// Returns the storage key for `incomingAuthorities`.
+  _i5.Uint8List incomingAuthoritiesKey() {
+    final hashedKey = _incomingAuthorities.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `onlineAuthorities`.
+  _i5.Uint8List onlineAuthoritiesKey() {
+    final hashedKey = _onlineAuthorities.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `outgoingAuthorities`.
+  _i5.Uint8List outgoingAuthoritiesKey() {
+    final hashedKey = _outgoingAuthorities.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `members`.
+  _i5.Uint8List membersKey(int key1) {
+    final hashedKey = _members.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `blacklist`.
+  _i5.Uint8List blacklistKey() {
+    final hashedKey = _blacklist.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `members`.
+  _i5.Uint8List membersMapPrefix() {
+    final hashedKey = _members.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::go_offline`].
+  _i6.RuntimeCall goOffline() {
+    final call = _i7.Call.values.goOffline();
+    return _i6.RuntimeCall.values.authorityMembers(call);
+  }
+
+  /// See [`Pallet::go_online`].
+  _i6.RuntimeCall goOnline() {
+    final call = _i7.Call.values.goOnline();
+    return _i6.RuntimeCall.values.authorityMembers(call);
+  }
+
+  /// See [`Pallet::set_session_keys`].
+  _i6.RuntimeCall setSessionKeys({required _i8.SessionKeys keys}) {
+    final call = _i7.Call.values.setSessionKeys(keys: keys);
+    return _i6.RuntimeCall.values.authorityMembers(call);
+  }
+
+  /// See [`Pallet::remove_member`].
+  _i6.RuntimeCall removeMember({required int memberId}) {
+    final call = _i7.Call.values.removeMember(memberId: memberId);
+    return _i6.RuntimeCall.values.authorityMembers(call);
+  }
+
+  /// See [`Pallet::remove_member_from_blacklist`].
+  _i6.RuntimeCall removeMemberFromBlacklist({required int memberId}) {
+    final call = _i7.Call.values.removeMemberFromBlacklist(memberId: memberId);
+    return _i6.RuntimeCall.values.authorityMembers(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// Max number of authorities allowed
+  final int maxAuthorities = 32;
+}
diff --git a/lib/src/models/generated/duniter/pallets/authorship.dart b/lib/src/models/generated/duniter/pallets/authorship.dart
new file mode 100644
index 0000000000000000000000000000000000000000..0f02dbfbe26d7a651c059bd6251f4691fdc562d2
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/authorship.dart
@@ -0,0 +1,39 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i3;
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+
+import '../types/sp_core/crypto/account_id32.dart' as _i2;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<_i2.AccountId32> _author =
+      const _i1.StorageValue<_i2.AccountId32>(
+    prefix: 'Authorship',
+    storage: 'Author',
+    valueCodec: _i2.AccountId32Codec(),
+  );
+
+  /// Author of current block.
+  _i3.Future<_i2.AccountId32?> author({_i1.BlockHash? at}) async {
+    final hashedKey = _author.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _author.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Returns the storage key for `author`.
+  _i4.Uint8List authorKey() {
+    final hashedKey = _author.hashedKey();
+    return hashedKey;
+  }
+}
diff --git a/lib/src/models/generated/duniter/pallets/babe.dart b/lib/src/models/generated/duniter/pallets/babe.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d8ab1578161db70d15806a971564c4ad2d1cd689
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/babe.dart
@@ -0,0 +1,602 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i10;
+import 'dart:typed_data' as _i11;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i12;
+import '../types/pallet_babe/pallet/call.dart' as _i15;
+import '../types/sp_consensus_babe/app/public.dart' as _i4;
+import '../types/sp_consensus_babe/babe_epoch_configuration.dart' as _i9;
+import '../types/sp_consensus_babe/digests/next_config_descriptor.dart' as _i6;
+import '../types/sp_consensus_babe/digests/pre_digest.dart' as _i7;
+import '../types/sp_consensus_slots/equivocation_proof.dart' as _i13;
+import '../types/sp_consensus_slots/slot.dart' as _i5;
+import '../types/sp_session/membership_proof.dart' as _i14;
+import '../types/tuples.dart' as _i3;
+import '../types/tuples_1.dart' as _i8;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<BigInt> _epochIndex = const _i1.StorageValue<BigInt>(
+    prefix: 'Babe',
+    storage: 'EpochIndex',
+    valueCodec: _i2.U64Codec.codec,
+  );
+
+  final _i1.StorageValue<List<_i3.Tuple2<_i4.Public, BigInt>>> _authorities =
+      const _i1.StorageValue<List<_i3.Tuple2<_i4.Public, BigInt>>>(
+    prefix: 'Babe',
+    storage: 'Authorities',
+    valueCodec: _i2.SequenceCodec<_i3.Tuple2<_i4.Public, BigInt>>(
+        _i3.Tuple2Codec<_i4.Public, BigInt>(
+      _i4.PublicCodec(),
+      _i2.U64Codec.codec,
+    )),
+  );
+
+  final _i1.StorageValue<_i5.Slot> _genesisSlot =
+      const _i1.StorageValue<_i5.Slot>(
+    prefix: 'Babe',
+    storage: 'GenesisSlot',
+    valueCodec: _i5.SlotCodec(),
+  );
+
+  final _i1.StorageValue<_i5.Slot> _currentSlot =
+      const _i1.StorageValue<_i5.Slot>(
+    prefix: 'Babe',
+    storage: 'CurrentSlot',
+    valueCodec: _i5.SlotCodec(),
+  );
+
+  final _i1.StorageValue<List<int>> _randomness =
+      const _i1.StorageValue<List<int>>(
+    prefix: 'Babe',
+    storage: 'Randomness',
+    valueCodec: _i2.U8ArrayCodec(32),
+  );
+
+  final _i1.StorageValue<_i6.NextConfigDescriptor> _pendingEpochConfigChange =
+      const _i1.StorageValue<_i6.NextConfigDescriptor>(
+    prefix: 'Babe',
+    storage: 'PendingEpochConfigChange',
+    valueCodec: _i6.NextConfigDescriptor.codec,
+  );
+
+  final _i1.StorageValue<List<int>> _nextRandomness =
+      const _i1.StorageValue<List<int>>(
+    prefix: 'Babe',
+    storage: 'NextRandomness',
+    valueCodec: _i2.U8ArrayCodec(32),
+  );
+
+  final _i1.StorageValue<List<_i3.Tuple2<_i4.Public, BigInt>>>
+      _nextAuthorities =
+      const _i1.StorageValue<List<_i3.Tuple2<_i4.Public, BigInt>>>(
+    prefix: 'Babe',
+    storage: 'NextAuthorities',
+    valueCodec: _i2.SequenceCodec<_i3.Tuple2<_i4.Public, BigInt>>(
+        _i3.Tuple2Codec<_i4.Public, BigInt>(
+      _i4.PublicCodec(),
+      _i2.U64Codec.codec,
+    )),
+  );
+
+  final _i1.StorageValue<int> _segmentIndex = const _i1.StorageValue<int>(
+    prefix: 'Babe',
+    storage: 'SegmentIndex',
+    valueCodec: _i2.U32Codec.codec,
+  );
+
+  final _i1.StorageMap<int, List<List<int>>> _underConstruction =
+      const _i1.StorageMap<int, List<List<int>>>(
+    prefix: 'Babe',
+    storage: 'UnderConstruction',
+    valueCodec: _i2.SequenceCodec<List<int>>(_i2.U8ArrayCodec(32)),
+    hasher: _i1.StorageHasher.twoxx64Concat(_i2.U32Codec.codec),
+  );
+
+  final _i1.StorageValue<_i7.PreDigest?> _initialized =
+      const _i1.StorageValue<_i7.PreDigest?>(
+    prefix: 'Babe',
+    storage: 'Initialized',
+    valueCodec: _i2.OptionCodec<_i7.PreDigest>(_i7.PreDigest.codec),
+  );
+
+  final _i1.StorageValue<List<int>?> _authorVrfRandomness =
+      const _i1.StorageValue<List<int>?>(
+    prefix: 'Babe',
+    storage: 'AuthorVrfRandomness',
+    valueCodec: _i2.OptionCodec<List<int>>(_i2.U8ArrayCodec(32)),
+  );
+
+  final _i1.StorageValue<_i8.Tuple2<int, int>> _epochStart =
+      const _i1.StorageValue<_i8.Tuple2<int, int>>(
+    prefix: 'Babe',
+    storage: 'EpochStart',
+    valueCodec: _i8.Tuple2Codec<int, int>(
+      _i2.U32Codec.codec,
+      _i2.U32Codec.codec,
+    ),
+  );
+
+  final _i1.StorageValue<int> _lateness = const _i1.StorageValue<int>(
+    prefix: 'Babe',
+    storage: 'Lateness',
+    valueCodec: _i2.U32Codec.codec,
+  );
+
+  final _i1.StorageValue<_i9.BabeEpochConfiguration> _epochConfig =
+      const _i1.StorageValue<_i9.BabeEpochConfiguration>(
+    prefix: 'Babe',
+    storage: 'EpochConfig',
+    valueCodec: _i9.BabeEpochConfiguration.codec,
+  );
+
+  final _i1.StorageValue<_i9.BabeEpochConfiguration> _nextEpochConfig =
+      const _i1.StorageValue<_i9.BabeEpochConfiguration>(
+    prefix: 'Babe',
+    storage: 'NextEpochConfig',
+    valueCodec: _i9.BabeEpochConfiguration.codec,
+  );
+
+  final _i1.StorageValue<List<_i3.Tuple2<BigInt, int>>> _skippedEpochs =
+      const _i1.StorageValue<List<_i3.Tuple2<BigInt, int>>>(
+    prefix: 'Babe',
+    storage: 'SkippedEpochs',
+    valueCodec:
+        _i2.SequenceCodec<_i3.Tuple2<BigInt, int>>(_i3.Tuple2Codec<BigInt, int>(
+      _i2.U64Codec.codec,
+      _i2.U32Codec.codec,
+    )),
+  );
+
+  /// Current epoch index.
+  _i10.Future<BigInt> epochIndex({_i1.BlockHash? at}) async {
+    final hashedKey = _epochIndex.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _epochIndex.decodeValue(bytes);
+    }
+    return BigInt.zero; /* Default */
+  }
+
+  /// Current epoch authorities.
+  _i10.Future<List<_i3.Tuple2<_i4.Public, BigInt>>> authorities(
+      {_i1.BlockHash? at}) async {
+    final hashedKey = _authorities.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _authorities.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// The slot at which the first epoch actually started. This is 0
+  /// until the first block of the chain.
+  _i10.Future<_i5.Slot> genesisSlot({_i1.BlockHash? at}) async {
+    final hashedKey = _genesisSlot.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _genesisSlot.decodeValue(bytes);
+    }
+    return BigInt.zero; /* Default */
+  }
+
+  /// Current slot number.
+  _i10.Future<_i5.Slot> currentSlot({_i1.BlockHash? at}) async {
+    final hashedKey = _currentSlot.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _currentSlot.decodeValue(bytes);
+    }
+    return BigInt.zero; /* Default */
+  }
+
+  /// The epoch randomness for the *current* epoch.
+  ///
+  /// # Security
+  ///
+  /// This MUST NOT be used for gambling, as it can be influenced by a
+  /// malicious validator in the short term. It MAY be used in many
+  /// cryptographic protocols, however, so long as one remembers that this
+  /// (like everything else on-chain) it is public. For example, it can be
+  /// used where a number is needed that cannot have been chosen by an
+  /// adversary, for purposes such as public-coin zero-knowledge proofs.
+  _i10.Future<List<int>> randomness({_i1.BlockHash? at}) async {
+    final hashedKey = _randomness.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _randomness.decodeValue(bytes);
+    }
+    return List<int>.filled(
+      32,
+      0,
+      growable: false,
+    ); /* Default */
+  }
+
+  /// Pending epoch configuration change that will be applied when the next epoch is enacted.
+  _i10.Future<_i6.NextConfigDescriptor?> pendingEpochConfigChange(
+      {_i1.BlockHash? at}) async {
+    final hashedKey = _pendingEpochConfigChange.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _pendingEpochConfigChange.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Next epoch randomness.
+  _i10.Future<List<int>> nextRandomness({_i1.BlockHash? at}) async {
+    final hashedKey = _nextRandomness.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _nextRandomness.decodeValue(bytes);
+    }
+    return List<int>.filled(
+      32,
+      0,
+      growable: false,
+    ); /* Default */
+  }
+
+  /// Next epoch authorities.
+  _i10.Future<List<_i3.Tuple2<_i4.Public, BigInt>>> nextAuthorities(
+      {_i1.BlockHash? at}) async {
+    final hashedKey = _nextAuthorities.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _nextAuthorities.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Randomness under construction.
+  ///
+  /// We make a trade-off between storage accesses and list length.
+  /// We store the under-construction randomness in segments of up to
+  /// `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
+  ///
+  /// Once a segment reaches this length, we begin the next one.
+  /// We reset all segments and return to `0` at the beginning of every
+  /// epoch.
+  _i10.Future<int> segmentIndex({_i1.BlockHash? at}) async {
+    final hashedKey = _segmentIndex.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _segmentIndex.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  /// TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
+  _i10.Future<List<List<int>>> underConstruction(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _underConstruction.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _underConstruction.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Temporary value (cleared at block finalization) which is `Some`
+  /// if per-block initialization has already been called for current block.
+  _i10.Future<_i7.PreDigest?> initialized({_i1.BlockHash? at}) async {
+    final hashedKey = _initialized.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _initialized.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// This field should always be populated during block processing unless
+  /// secondary plain slots are enabled (which don't contain a VRF output).
+  ///
+  /// It is set in `on_finalize`, before it will contain the value from the last block.
+  _i10.Future<List<int>?> authorVrfRandomness({_i1.BlockHash? at}) async {
+    final hashedKey = _authorVrfRandomness.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _authorVrfRandomness.decodeValue(bytes);
+    }
+    return null; /* Default */
+  }
+
+  /// The block numbers when the last and current epoch have started, respectively `N-1` and
+  /// `N`.
+  /// NOTE: We track this is in order to annotate the block number when a given pool of
+  /// entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in
+  /// slots, which may be skipped, the block numbers may not line up with the slot numbers.
+  _i10.Future<_i8.Tuple2<int, int>> epochStart({_i1.BlockHash? at}) async {
+    final hashedKey = _epochStart.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _epochStart.decodeValue(bytes);
+    }
+    return const _i8.Tuple2<int, int>(
+      0,
+      0,
+    ); /* Default */
+  }
+
+  /// How late the current block is compared to its parent.
+  ///
+  /// This entry is populated as part of block execution and is cleaned up
+  /// on block finalization. Querying this storage entry outside of block
+  /// execution context should always yield zero.
+  _i10.Future<int> lateness({_i1.BlockHash? at}) async {
+    final hashedKey = _lateness.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _lateness.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  /// The configuration for the current epoch. Should never be `None` as it is initialized in
+  /// genesis.
+  _i10.Future<_i9.BabeEpochConfiguration?> epochConfig(
+      {_i1.BlockHash? at}) async {
+    final hashedKey = _epochConfig.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _epochConfig.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// The configuration for the next epoch, `None` if the config will not change
+  /// (you can fallback to `EpochConfig` instead in that case).
+  _i10.Future<_i9.BabeEpochConfiguration?> nextEpochConfig(
+      {_i1.BlockHash? at}) async {
+    final hashedKey = _nextEpochConfig.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _nextEpochConfig.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// A list of the last 100 skipped epochs and the corresponding session index
+  /// when the epoch was skipped.
+  ///
+  /// This is only used for validating equivocation proofs. An equivocation proof
+  /// must contains a key-ownership proof for a given session, therefore we need a
+  /// way to tie together sessions and epoch indices, i.e. we need to validate that
+  /// a validator was the owner of a given key on a given session, and what the
+  /// active epoch index was during that session.
+  _i10.Future<List<_i3.Tuple2<BigInt, int>>> skippedEpochs(
+      {_i1.BlockHash? at}) async {
+    final hashedKey = _skippedEpochs.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _skippedEpochs.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Returns the storage key for `epochIndex`.
+  _i11.Uint8List epochIndexKey() {
+    final hashedKey = _epochIndex.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `authorities`.
+  _i11.Uint8List authoritiesKey() {
+    final hashedKey = _authorities.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `genesisSlot`.
+  _i11.Uint8List genesisSlotKey() {
+    final hashedKey = _genesisSlot.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `currentSlot`.
+  _i11.Uint8List currentSlotKey() {
+    final hashedKey = _currentSlot.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `randomness`.
+  _i11.Uint8List randomnessKey() {
+    final hashedKey = _randomness.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `pendingEpochConfigChange`.
+  _i11.Uint8List pendingEpochConfigChangeKey() {
+    final hashedKey = _pendingEpochConfigChange.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `nextRandomness`.
+  _i11.Uint8List nextRandomnessKey() {
+    final hashedKey = _nextRandomness.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `nextAuthorities`.
+  _i11.Uint8List nextAuthoritiesKey() {
+    final hashedKey = _nextAuthorities.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `segmentIndex`.
+  _i11.Uint8List segmentIndexKey() {
+    final hashedKey = _segmentIndex.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `underConstruction`.
+  _i11.Uint8List underConstructionKey(int key1) {
+    final hashedKey = _underConstruction.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `initialized`.
+  _i11.Uint8List initializedKey() {
+    final hashedKey = _initialized.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `authorVrfRandomness`.
+  _i11.Uint8List authorVrfRandomnessKey() {
+    final hashedKey = _authorVrfRandomness.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `epochStart`.
+  _i11.Uint8List epochStartKey() {
+    final hashedKey = _epochStart.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `lateness`.
+  _i11.Uint8List latenessKey() {
+    final hashedKey = _lateness.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `epochConfig`.
+  _i11.Uint8List epochConfigKey() {
+    final hashedKey = _epochConfig.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `nextEpochConfig`.
+  _i11.Uint8List nextEpochConfigKey() {
+    final hashedKey = _nextEpochConfig.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `skippedEpochs`.
+  _i11.Uint8List skippedEpochsKey() {
+    final hashedKey = _skippedEpochs.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `underConstruction`.
+  _i11.Uint8List underConstructionMapPrefix() {
+    final hashedKey = _underConstruction.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::report_equivocation`].
+  _i12.RuntimeCall reportEquivocation({
+    required _i13.EquivocationProof equivocationProof,
+    required _i14.MembershipProof keyOwnerProof,
+  }) {
+    final call = _i15.Call.values.reportEquivocation(
+      equivocationProof: equivocationProof,
+      keyOwnerProof: keyOwnerProof,
+    );
+    return _i12.RuntimeCall.values.babe(call);
+  }
+
+  /// See [`Pallet::report_equivocation_unsigned`].
+  _i12.RuntimeCall reportEquivocationUnsigned({
+    required _i13.EquivocationProof equivocationProof,
+    required _i14.MembershipProof keyOwnerProof,
+  }) {
+    final call = _i15.Call.values.reportEquivocationUnsigned(
+      equivocationProof: equivocationProof,
+      keyOwnerProof: keyOwnerProof,
+    );
+    return _i12.RuntimeCall.values.babe(call);
+  }
+
+  /// See [`Pallet::plan_config_change`].
+  _i12.RuntimeCall planConfigChange(
+      {required _i6.NextConfigDescriptor config}) {
+    final call = _i15.Call.values.planConfigChange(config: config);
+    return _i12.RuntimeCall.values.babe(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// The amount of time, in slots, that each epoch should last.
+  /// NOTE: Currently it is not possible to change the epoch duration after
+  /// the chain has started. Attempting to do so will brick block production.
+  final BigInt epochDuration = BigInt.from(600);
+
+  /// The expected average block time at which BABE should be creating
+  /// blocks. Since BABE is probabilistic it is not trivial to figure out
+  /// what the expected average block time should be based on the slot
+  /// duration and the security parameter `c` (where `1 - c` represents
+  /// the probability of a slot being empty).
+  final BigInt expectedBlockTime = BigInt.from(6000);
+
+  /// Max number of authorities allowed
+  final int maxAuthorities = 32;
+
+  /// The maximum number of nominators for each validator.
+  final int maxNominators = 64;
+}
diff --git a/lib/src/models/generated/duniter/pallets/balances.dart b/lib/src/models/generated/duniter/pallets/balances.dart
new file mode 100644
index 0000000000000000000000000000000000000000..bbb6db5b3008460853dfce3568d023d2920973e0
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/balances.dart
@@ -0,0 +1,390 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i8;
+import 'dart:typed_data' as _i9;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i10;
+import '../types/pallet_balances/pallet/call.dart' as _i12;
+import '../types/pallet_balances/types/account_data.dart' as _i4;
+import '../types/pallet_balances/types/balance_lock.dart' as _i5;
+import '../types/pallet_balances/types/id_amount.dart' as _i7;
+import '../types/pallet_balances/types/reserve_data.dart' as _i6;
+import '../types/sp_core/crypto/account_id32.dart' as _i3;
+import '../types/sp_runtime/multiaddress/multi_address.dart' as _i11;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<BigInt> _totalIssuance =
+      const _i1.StorageValue<BigInt>(
+    prefix: 'Balances',
+    storage: 'TotalIssuance',
+    valueCodec: _i2.U64Codec.codec,
+  );
+
+  final _i1.StorageValue<BigInt> _inactiveIssuance =
+      const _i1.StorageValue<BigInt>(
+    prefix: 'Balances',
+    storage: 'InactiveIssuance',
+    valueCodec: _i2.U64Codec.codec,
+  );
+
+  final _i1.StorageMap<_i3.AccountId32, _i4.AccountData> _account =
+      const _i1.StorageMap<_i3.AccountId32, _i4.AccountData>(
+    prefix: 'Balances',
+    storage: 'Account',
+    valueCodec: _i4.AccountData.codec,
+    hasher: _i1.StorageHasher.blake2b128Concat(_i3.AccountId32Codec()),
+  );
+
+  final _i1.StorageMap<_i3.AccountId32, List<_i5.BalanceLock>> _locks =
+      const _i1.StorageMap<_i3.AccountId32, List<_i5.BalanceLock>>(
+    prefix: 'Balances',
+    storage: 'Locks',
+    valueCodec: _i2.SequenceCodec<_i5.BalanceLock>(_i5.BalanceLock.codec),
+    hasher: _i1.StorageHasher.blake2b128Concat(_i3.AccountId32Codec()),
+  );
+
+  final _i1.StorageMap<_i3.AccountId32, List<_i6.ReserveData>> _reserves =
+      const _i1.StorageMap<_i3.AccountId32, List<_i6.ReserveData>>(
+    prefix: 'Balances',
+    storage: 'Reserves',
+    valueCodec: _i2.SequenceCodec<_i6.ReserveData>(_i6.ReserveData.codec),
+    hasher: _i1.StorageHasher.blake2b128Concat(_i3.AccountId32Codec()),
+  );
+
+  final _i1.StorageMap<_i3.AccountId32, List<_i7.IdAmount>> _holds =
+      const _i1.StorageMap<_i3.AccountId32, List<_i7.IdAmount>>(
+    prefix: 'Balances',
+    storage: 'Holds',
+    valueCodec: _i2.SequenceCodec<_i7.IdAmount>(_i7.IdAmount.codec),
+    hasher: _i1.StorageHasher.blake2b128Concat(_i3.AccountId32Codec()),
+  );
+
+  final _i1.StorageMap<_i3.AccountId32, List<_i7.IdAmount>> _freezes =
+      const _i1.StorageMap<_i3.AccountId32, List<_i7.IdAmount>>(
+    prefix: 'Balances',
+    storage: 'Freezes',
+    valueCodec: _i2.SequenceCodec<_i7.IdAmount>(_i7.IdAmount.codec),
+    hasher: _i1.StorageHasher.blake2b128Concat(_i3.AccountId32Codec()),
+  );
+
+  /// The total units issued in the system.
+  _i8.Future<BigInt> totalIssuance({_i1.BlockHash? at}) async {
+    final hashedKey = _totalIssuance.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _totalIssuance.decodeValue(bytes);
+    }
+    return BigInt.zero; /* Default */
+  }
+
+  /// The total units of outstanding deactivated balance in the system.
+  _i8.Future<BigInt> inactiveIssuance({_i1.BlockHash? at}) async {
+    final hashedKey = _inactiveIssuance.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _inactiveIssuance.decodeValue(bytes);
+    }
+    return BigInt.zero; /* Default */
+  }
+
+  /// The Balances pallet example of storing the balance of an account.
+  ///
+  /// # Example
+  ///
+  /// ```nocompile
+  ///  impl pallet_balances::Config for Runtime {
+  ///    type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
+  ///  }
+  /// ```
+  ///
+  /// You can also store the balance of an account in the `System` pallet.
+  ///
+  /// # Example
+  ///
+  /// ```nocompile
+  ///  impl pallet_balances::Config for Runtime {
+  ///   type AccountStore = System
+  ///  }
+  /// ```
+  ///
+  /// But this comes with tradeoffs, storing account balances in the system pallet stores
+  /// `frame_system` data alongside the account data contrary to storing account balances in the
+  /// `Balances` pallet, which uses a `StorageMap` to store balances data only.
+  /// NOTE: This is only used in the case that this pallet is used to store balances.
+  _i8.Future<_i4.AccountData> account(
+    _i3.AccountId32 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _account.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _account.decodeValue(bytes);
+    }
+    return _i4.AccountData(
+      free: BigInt.zero,
+      reserved: BigInt.zero,
+      frozen: BigInt.zero,
+      flags: BigInt.parse(
+        '170141183460469231731687303715884105728',
+        radix: 10,
+      ),
+    ); /* Default */
+  }
+
+  /// Any liquidity locks on some account balances.
+  /// NOTE: Should only be accessed when setting, changing and freeing a lock.
+  _i8.Future<List<_i5.BalanceLock>> locks(
+    _i3.AccountId32 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _locks.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _locks.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Named reserves on some account balances.
+  _i8.Future<List<_i6.ReserveData>> reserves(
+    _i3.AccountId32 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _reserves.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _reserves.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Holds on account balances.
+  _i8.Future<List<_i7.IdAmount>> holds(
+    _i3.AccountId32 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _holds.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _holds.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Freeze locks on account balances.
+  _i8.Future<List<_i7.IdAmount>> freezes(
+    _i3.AccountId32 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _freezes.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _freezes.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Returns the storage key for `totalIssuance`.
+  _i9.Uint8List totalIssuanceKey() {
+    final hashedKey = _totalIssuance.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `inactiveIssuance`.
+  _i9.Uint8List inactiveIssuanceKey() {
+    final hashedKey = _inactiveIssuance.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `account`.
+  _i9.Uint8List accountKey(_i3.AccountId32 key1) {
+    final hashedKey = _account.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `locks`.
+  _i9.Uint8List locksKey(_i3.AccountId32 key1) {
+    final hashedKey = _locks.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `reserves`.
+  _i9.Uint8List reservesKey(_i3.AccountId32 key1) {
+    final hashedKey = _reserves.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `holds`.
+  _i9.Uint8List holdsKey(_i3.AccountId32 key1) {
+    final hashedKey = _holds.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `freezes`.
+  _i9.Uint8List freezesKey(_i3.AccountId32 key1) {
+    final hashedKey = _freezes.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `account`.
+  _i9.Uint8List accountMapPrefix() {
+    final hashedKey = _account.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `locks`.
+  _i9.Uint8List locksMapPrefix() {
+    final hashedKey = _locks.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `reserves`.
+  _i9.Uint8List reservesMapPrefix() {
+    final hashedKey = _reserves.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `holds`.
+  _i9.Uint8List holdsMapPrefix() {
+    final hashedKey = _holds.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `freezes`.
+  _i9.Uint8List freezesMapPrefix() {
+    final hashedKey = _freezes.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::transfer_allow_death`].
+  _i10.RuntimeCall transferAllowDeath({
+    required _i11.MultiAddress dest,
+    required BigInt value,
+  }) {
+    final call = _i12.Call.values.transferAllowDeath(
+      dest: dest,
+      value: value,
+    );
+    return _i10.RuntimeCall.values.balances(call);
+  }
+
+  /// See [`Pallet::force_transfer`].
+  _i10.RuntimeCall forceTransfer({
+    required _i11.MultiAddress source,
+    required _i11.MultiAddress dest,
+    required BigInt value,
+  }) {
+    final call = _i12.Call.values.forceTransfer(
+      source: source,
+      dest: dest,
+      value: value,
+    );
+    return _i10.RuntimeCall.values.balances(call);
+  }
+
+  /// See [`Pallet::transfer_keep_alive`].
+  _i10.RuntimeCall transferKeepAlive({
+    required _i11.MultiAddress dest,
+    required BigInt value,
+  }) {
+    final call = _i12.Call.values.transferKeepAlive(
+      dest: dest,
+      value: value,
+    );
+    return _i10.RuntimeCall.values.balances(call);
+  }
+
+  /// See [`Pallet::transfer_all`].
+  _i10.RuntimeCall transferAll({
+    required _i11.MultiAddress dest,
+    required bool keepAlive,
+  }) {
+    final call = _i12.Call.values.transferAll(
+      dest: dest,
+      keepAlive: keepAlive,
+    );
+    return _i10.RuntimeCall.values.balances(call);
+  }
+
+  /// See [`Pallet::force_unreserve`].
+  _i10.RuntimeCall forceUnreserve({
+    required _i11.MultiAddress who,
+    required BigInt amount,
+  }) {
+    final call = _i12.Call.values.forceUnreserve(
+      who: who,
+      amount: amount,
+    );
+    return _i10.RuntimeCall.values.balances(call);
+  }
+
+  /// See [`Pallet::force_set_balance`].
+  _i10.RuntimeCall forceSetBalance({
+    required _i11.MultiAddress who,
+    required BigInt newFree,
+  }) {
+    final call = _i12.Call.values.forceSetBalance(
+      who: who,
+      newFree: newFree,
+    );
+    return _i10.RuntimeCall.values.balances(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
+  ///
+  /// If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
+  /// this pallet. However, you do so at your own risk: this will open up a major DoS vector.
+  /// In case you have multiple sources of provider references, you may also get unexpected
+  /// behaviour if you set this to zero.
+  ///
+  /// Bottom line: Do yourself a favour and make it at least one!
+  final BigInt existentialDeposit = BigInt.from(100);
+
+  /// The maximum number of locks that should exist on an account.
+  /// Not strictly enforced, but used for weight estimation.
+  final int maxLocks = 50;
+
+  /// The maximum number of named reserves that can exist on an account.
+  final int maxReserves = 5;
+
+  /// The maximum number of holds that can exist on an account at any time.
+  final int maxHolds = 0;
+
+  /// The maximum number of individual freeze locks that can exist on an account at any time.
+  final int maxFreezes = 0;
+}
diff --git a/lib/src/models/generated/duniter/pallets/certification.dart b/lib/src/models/generated/duniter/pallets/certification.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6296823f64befd4838a7b1560b98729f5113f287
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/certification.dart
@@ -0,0 +1,187 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i5;
+import 'dart:typed_data' as _i6;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i3;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i7;
+import '../types/pallet_certification/pallet/call.dart' as _i8;
+import '../types/pallet_certification/types/idty_cert_meta.dart' as _i2;
+import '../types/tuples_1.dart' as _i4;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageMap<int, _i2.IdtyCertMeta> _storageIdtyCertMeta =
+      const _i1.StorageMap<int, _i2.IdtyCertMeta>(
+    prefix: 'Certification',
+    storage: 'StorageIdtyCertMeta',
+    valueCodec: _i2.IdtyCertMeta.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i3.U32Codec.codec),
+  );
+
+  final _i1.StorageMap<int, List<_i4.Tuple2<int, int>>> _certsByReceiver =
+      const _i1.StorageMap<int, List<_i4.Tuple2<int, int>>>(
+    prefix: 'Certification',
+    storage: 'CertsByReceiver',
+    valueCodec:
+        _i3.SequenceCodec<_i4.Tuple2<int, int>>(_i4.Tuple2Codec<int, int>(
+      _i3.U32Codec.codec,
+      _i3.U32Codec.codec,
+    )),
+    hasher: _i1.StorageHasher.twoxx64Concat(_i3.U32Codec.codec),
+  );
+
+  final _i1.StorageMap<int, List<_i4.Tuple2<int, int>>> _certsRemovableOn =
+      const _i1.StorageMap<int, List<_i4.Tuple2<int, int>>>(
+    prefix: 'Certification',
+    storage: 'CertsRemovableOn',
+    valueCodec:
+        _i3.SequenceCodec<_i4.Tuple2<int, int>>(_i4.Tuple2Codec<int, int>(
+      _i3.U32Codec.codec,
+      _i3.U32Codec.codec,
+    )),
+    hasher: _i1.StorageHasher.twoxx64Concat(_i3.U32Codec.codec),
+  );
+
+  /// Certifications metada by issuer.
+  _i5.Future<_i2.IdtyCertMeta> storageIdtyCertMeta(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _storageIdtyCertMeta.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _storageIdtyCertMeta.decodeValue(bytes);
+    }
+    return const _i2.IdtyCertMeta(
+      issuedCount: 0,
+      nextIssuableOn: 0,
+      receivedCount: 0,
+    ); /* Default */
+  }
+
+  /// Certifications by receiver.
+  _i5.Future<List<_i4.Tuple2<int, int>>> certsByReceiver(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _certsByReceiver.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _certsByReceiver.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Certifications removable on.
+  _i5.Future<List<_i4.Tuple2<int, int>>?> certsRemovableOn(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _certsRemovableOn.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _certsRemovableOn.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Returns the storage key for `storageIdtyCertMeta`.
+  _i6.Uint8List storageIdtyCertMetaKey(int key1) {
+    final hashedKey = _storageIdtyCertMeta.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `certsByReceiver`.
+  _i6.Uint8List certsByReceiverKey(int key1) {
+    final hashedKey = _certsByReceiver.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `certsRemovableOn`.
+  _i6.Uint8List certsRemovableOnKey(int key1) {
+    final hashedKey = _certsRemovableOn.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `storageIdtyCertMeta`.
+  _i6.Uint8List storageIdtyCertMetaMapPrefix() {
+    final hashedKey = _storageIdtyCertMeta.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `certsByReceiver`.
+  _i6.Uint8List certsByReceiverMapPrefix() {
+    final hashedKey = _certsByReceiver.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `certsRemovableOn`.
+  _i6.Uint8List certsRemovableOnMapPrefix() {
+    final hashedKey = _certsRemovableOn.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::add_cert`].
+  _i7.RuntimeCall addCert({required int receiver}) {
+    final call = _i8.Call.values.addCert(receiver: receiver);
+    return _i7.RuntimeCall.values.certification(call);
+  }
+
+  /// See [`Pallet::renew_cert`].
+  _i7.RuntimeCall renewCert({required int receiver}) {
+    final call = _i8.Call.values.renewCert(receiver: receiver);
+    return _i7.RuntimeCall.values.certification(call);
+  }
+
+  /// See [`Pallet::del_cert`].
+  _i7.RuntimeCall delCert({
+    required int issuer,
+    required int receiver,
+  }) {
+    final call = _i8.Call.values.delCert(
+      issuer: issuer,
+      receiver: receiver,
+    );
+    return _i7.RuntimeCall.values.certification(call);
+  }
+
+  /// See [`Pallet::remove_all_certs_received_by`].
+  _i7.RuntimeCall removeAllCertsReceivedBy({required int idtyIndex}) {
+    final call = _i8.Call.values.removeAllCertsReceivedBy(idtyIndex: idtyIndex);
+    return _i7.RuntimeCall.values.certification(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// Minimum duration between two certifications issued by the same issuer.
+  final int certPeriod = 14400;
+
+  /// Maximum number of active certifications by issuer.
+  final int maxByIssuer = 100;
+
+  /// Minimum number of certifications received to be allowed to issue a certification.
+  final int minReceivedCertToBeAbleToIssueCert = 3;
+
+  /// Duration of validity of a certification.
+  final int validityPeriod = 2102400;
+}
diff --git a/lib/src/models/generated/duniter/pallets/distance.dart b/lib/src/models/generated/duniter/pallets/distance.dart
new file mode 100644
index 0000000000000000000000000000000000000000..9a68904e4d52144e25ac0676b513daf54b44fdd1
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/distance.dart
@@ -0,0 +1,257 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i6;
+import 'dart:typed_data' as _i7;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i5;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i8;
+import '../types/pallet_distance/pallet/call.dart' as _i9;
+import '../types/pallet_distance/types/evaluation_pool.dart' as _i2;
+import '../types/primitive_types/h256.dart' as _i3;
+import '../types/sp_arithmetic/per_things/perbill.dart' as _i11;
+import '../types/sp_core/crypto/account_id32.dart' as _i4;
+import '../types/sp_distance/computation_result.dart' as _i10;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<_i2.EvaluationPool> _evaluationPool0 =
+      const _i1.StorageValue<_i2.EvaluationPool>(
+    prefix: 'Distance',
+    storage: 'EvaluationPool0',
+    valueCodec: _i2.EvaluationPool.codec,
+  );
+
+  final _i1.StorageValue<_i2.EvaluationPool> _evaluationPool1 =
+      const _i1.StorageValue<_i2.EvaluationPool>(
+    prefix: 'Distance',
+    storage: 'EvaluationPool1',
+    valueCodec: _i2.EvaluationPool.codec,
+  );
+
+  final _i1.StorageValue<_i2.EvaluationPool> _evaluationPool2 =
+      const _i1.StorageValue<_i2.EvaluationPool>(
+    prefix: 'Distance',
+    storage: 'EvaluationPool2',
+    valueCodec: _i2.EvaluationPool.codec,
+  );
+
+  final _i1.StorageValue<_i3.H256> _evaluationBlock =
+      const _i1.StorageValue<_i3.H256>(
+    prefix: 'Distance',
+    storage: 'EvaluationBlock',
+    valueCodec: _i3.H256Codec(),
+  );
+
+  final _i1.StorageMap<int, _i4.AccountId32> _pendingEvaluationRequest =
+      const _i1.StorageMap<int, _i4.AccountId32>(
+    prefix: 'Distance',
+    storage: 'PendingEvaluationRequest',
+    valueCodec: _i4.AccountId32Codec(),
+    hasher: _i1.StorageHasher.twoxx64Concat(_i5.U32Codec.codec),
+  );
+
+  final _i1.StorageValue<bool> _didUpdate = const _i1.StorageValue<bool>(
+    prefix: 'Distance',
+    storage: 'DidUpdate',
+    valueCodec: _i5.BoolCodec.codec,
+  );
+
+  /// Identities queued for distance evaluation
+  _i6.Future<_i2.EvaluationPool> evaluationPool0({_i1.BlockHash? at}) async {
+    final hashedKey = _evaluationPool0.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _evaluationPool0.decodeValue(bytes);
+    }
+    return const _i2.EvaluationPool(
+      evaluations: [],
+      evaluators: [],
+    ); /* Default */
+  }
+
+  /// Identities queued for distance evaluation
+  _i6.Future<_i2.EvaluationPool> evaluationPool1({_i1.BlockHash? at}) async {
+    final hashedKey = _evaluationPool1.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _evaluationPool1.decodeValue(bytes);
+    }
+    return const _i2.EvaluationPool(
+      evaluations: [],
+      evaluators: [],
+    ); /* Default */
+  }
+
+  /// Identities queued for distance evaluation
+  _i6.Future<_i2.EvaluationPool> evaluationPool2({_i1.BlockHash? at}) async {
+    final hashedKey = _evaluationPool2.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _evaluationPool2.decodeValue(bytes);
+    }
+    return const _i2.EvaluationPool(
+      evaluations: [],
+      evaluators: [],
+    ); /* Default */
+  }
+
+  /// Block for which the distance rule must be checked
+  _i6.Future<_i3.H256> evaluationBlock({_i1.BlockHash? at}) async {
+    final hashedKey = _evaluationBlock.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _evaluationBlock.decodeValue(bytes);
+    }
+    return List<int>.filled(
+      32,
+      0,
+      growable: false,
+    ); /* Default */
+  }
+
+  /// Pending evaluation requesters
+  ///
+  /// account who requested an evaluation and reserved the price,
+  ///   for whom the price will be unreserved or slashed when the evaluation completes.
+  _i6.Future<_i4.AccountId32?> pendingEvaluationRequest(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _pendingEvaluationRequest.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _pendingEvaluationRequest.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Did evaluation get updated in this block?
+  _i6.Future<bool> didUpdate({_i1.BlockHash? at}) async {
+    final hashedKey = _didUpdate.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _didUpdate.decodeValue(bytes);
+    }
+    return false; /* Default */
+  }
+
+  /// Returns the storage key for `evaluationPool0`.
+  _i7.Uint8List evaluationPool0Key() {
+    final hashedKey = _evaluationPool0.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `evaluationPool1`.
+  _i7.Uint8List evaluationPool1Key() {
+    final hashedKey = _evaluationPool1.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `evaluationPool2`.
+  _i7.Uint8List evaluationPool2Key() {
+    final hashedKey = _evaluationPool2.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `evaluationBlock`.
+  _i7.Uint8List evaluationBlockKey() {
+    final hashedKey = _evaluationBlock.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `pendingEvaluationRequest`.
+  _i7.Uint8List pendingEvaluationRequestKey(int key1) {
+    final hashedKey = _pendingEvaluationRequest.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `didUpdate`.
+  _i7.Uint8List didUpdateKey() {
+    final hashedKey = _didUpdate.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `pendingEvaluationRequest`.
+  _i7.Uint8List pendingEvaluationRequestMapPrefix() {
+    final hashedKey = _pendingEvaluationRequest.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::request_distance_evaluation`].
+  _i8.RuntimeCall requestDistanceEvaluation() {
+    final call = _i9.Call.values.requestDistanceEvaluation();
+    return _i8.RuntimeCall.values.distance(call);
+  }
+
+  /// See [`Pallet::request_distance_evaluation_for`].
+  _i8.RuntimeCall requestDistanceEvaluationFor({required int target}) {
+    final call = _i9.Call.values.requestDistanceEvaluationFor(target: target);
+    return _i8.RuntimeCall.values.distance(call);
+  }
+
+  /// See [`Pallet::update_evaluation`].
+  _i8.RuntimeCall updateEvaluation(
+      {required _i10.ComputationResult computationResult}) {
+    final call =
+        _i9.Call.values.updateEvaluation(computationResult: computationResult);
+    return _i8.RuntimeCall.values.distance(call);
+  }
+
+  /// See [`Pallet::force_update_evaluation`].
+  _i8.RuntimeCall forceUpdateEvaluation({
+    required _i4.AccountId32 evaluator,
+    required _i10.ComputationResult computationResult,
+  }) {
+    final call = _i9.Call.values.forceUpdateEvaluation(
+      evaluator: evaluator,
+      computationResult: computationResult,
+    );
+    return _i8.RuntimeCall.values.distance(call);
+  }
+
+  /// See [`Pallet::force_valid_distance_status`].
+  _i8.RuntimeCall forceValidDistanceStatus({required int identity}) {
+    final call = _i9.Call.values.forceValidDistanceStatus(identity: identity);
+    return _i8.RuntimeCall.values.distance(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// Amount reserved during evaluation
+  final BigInt evaluationPrice = BigInt.from(1000);
+
+  /// Maximum distance used to define referee's accessibility
+  /// Unused by runtime but needed by client distance oracle
+  final int maxRefereeDistance = 5;
+
+  /// Minimum ratio of accessible referees
+  final _i11.Perbill minAccessibleReferees = 800000000;
+}
diff --git a/lib/src/models/generated/duniter/pallets/grandpa.dart b/lib/src/models/generated/duniter/pallets/grandpa.dart
new file mode 100644
index 0000000000000000000000000000000000000000..668e85f93253382fa26a958e469fbdb7e235bf55
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/grandpa.dart
@@ -0,0 +1,289 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i8;
+import 'dart:typed_data' as _i9;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i4;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i10;
+import '../types/pallet_grandpa/pallet/call.dart' as _i13;
+import '../types/pallet_grandpa/stored_pending_change.dart' as _i3;
+import '../types/pallet_grandpa/stored_state.dart' as _i2;
+import '../types/sp_consensus_grandpa/app/public.dart' as _i7;
+import '../types/sp_consensus_grandpa/equivocation_proof.dart' as _i11;
+import '../types/sp_session/membership_proof.dart' as _i12;
+import '../types/tuples.dart' as _i6;
+import '../types/tuples_1.dart' as _i5;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<_i2.StoredState> _state =
+      const _i1.StorageValue<_i2.StoredState>(
+    prefix: 'Grandpa',
+    storage: 'State',
+    valueCodec: _i2.StoredState.codec,
+  );
+
+  final _i1.StorageValue<_i3.StoredPendingChange> _pendingChange =
+      const _i1.StorageValue<_i3.StoredPendingChange>(
+    prefix: 'Grandpa',
+    storage: 'PendingChange',
+    valueCodec: _i3.StoredPendingChange.codec,
+  );
+
+  final _i1.StorageValue<int> _nextForced = const _i1.StorageValue<int>(
+    prefix: 'Grandpa',
+    storage: 'NextForced',
+    valueCodec: _i4.U32Codec.codec,
+  );
+
+  final _i1.StorageValue<_i5.Tuple2<int, int>> _stalled =
+      const _i1.StorageValue<_i5.Tuple2<int, int>>(
+    prefix: 'Grandpa',
+    storage: 'Stalled',
+    valueCodec: _i5.Tuple2Codec<int, int>(
+      _i4.U32Codec.codec,
+      _i4.U32Codec.codec,
+    ),
+  );
+
+  final _i1.StorageValue<BigInt> _currentSetId = const _i1.StorageValue<BigInt>(
+    prefix: 'Grandpa',
+    storage: 'CurrentSetId',
+    valueCodec: _i4.U64Codec.codec,
+  );
+
+  final _i1.StorageMap<BigInt, int> _setIdSession =
+      const _i1.StorageMap<BigInt, int>(
+    prefix: 'Grandpa',
+    storage: 'SetIdSession',
+    valueCodec: _i4.U32Codec.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i4.U64Codec.codec),
+  );
+
+  final _i1.StorageValue<List<_i6.Tuple2<_i7.Public, BigInt>>> _authorities =
+      const _i1.StorageValue<List<_i6.Tuple2<_i7.Public, BigInt>>>(
+    prefix: 'Grandpa',
+    storage: 'Authorities',
+    valueCodec: _i4.SequenceCodec<_i6.Tuple2<_i7.Public, BigInt>>(
+        _i6.Tuple2Codec<_i7.Public, BigInt>(
+      _i7.PublicCodec(),
+      _i4.U64Codec.codec,
+    )),
+  );
+
+  /// State of the current authority set.
+  _i8.Future<_i2.StoredState> state({_i1.BlockHash? at}) async {
+    final hashedKey = _state.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _state.decodeValue(bytes);
+    }
+    return const _i2.Live(); /* Default */
+  }
+
+  /// Pending change: (signaled at, scheduled change).
+  _i8.Future<_i3.StoredPendingChange?> pendingChange(
+      {_i1.BlockHash? at}) async {
+    final hashedKey = _pendingChange.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _pendingChange.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// next block number where we can force a change.
+  _i8.Future<int?> nextForced({_i1.BlockHash? at}) async {
+    final hashedKey = _nextForced.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _nextForced.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// `true` if we are currently stalled.
+  _i8.Future<_i5.Tuple2<int, int>?> stalled({_i1.BlockHash? at}) async {
+    final hashedKey = _stalled.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _stalled.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// The number of changes (both in terms of keys and underlying economic responsibilities)
+  /// in the "set" of Grandpa validators from genesis.
+  _i8.Future<BigInt> currentSetId({_i1.BlockHash? at}) async {
+    final hashedKey = _currentSetId.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _currentSetId.decodeValue(bytes);
+    }
+    return BigInt.zero; /* Default */
+  }
+
+  /// A mapping from grandpa set ID to the index of the *most recent* session for which its
+  /// members were responsible.
+  ///
+  /// This is only used for validating equivocation proofs. An equivocation proof must
+  /// contains a key-ownership proof for a given session, therefore we need a way to tie
+  /// together sessions and GRANDPA set ids, i.e. we need to validate that a validator
+  /// was the owner of a given key on a given session, and what the active set ID was
+  /// during that session.
+  ///
+  /// TWOX-NOTE: `SetId` is not under user control.
+  _i8.Future<int?> setIdSession(
+    BigInt key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _setIdSession.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _setIdSession.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// The current list of authorities.
+  _i8.Future<List<_i6.Tuple2<_i7.Public, BigInt>>> authorities(
+      {_i1.BlockHash? at}) async {
+    final hashedKey = _authorities.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _authorities.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Returns the storage key for `state`.
+  _i9.Uint8List stateKey() {
+    final hashedKey = _state.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `pendingChange`.
+  _i9.Uint8List pendingChangeKey() {
+    final hashedKey = _pendingChange.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `nextForced`.
+  _i9.Uint8List nextForcedKey() {
+    final hashedKey = _nextForced.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `stalled`.
+  _i9.Uint8List stalledKey() {
+    final hashedKey = _stalled.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `currentSetId`.
+  _i9.Uint8List currentSetIdKey() {
+    final hashedKey = _currentSetId.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `setIdSession`.
+  _i9.Uint8List setIdSessionKey(BigInt key1) {
+    final hashedKey = _setIdSession.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `authorities`.
+  _i9.Uint8List authoritiesKey() {
+    final hashedKey = _authorities.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `setIdSession`.
+  _i9.Uint8List setIdSessionMapPrefix() {
+    final hashedKey = _setIdSession.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::report_equivocation`].
+  _i10.RuntimeCall reportEquivocation({
+    required _i11.EquivocationProof equivocationProof,
+    required _i12.MembershipProof keyOwnerProof,
+  }) {
+    final call = _i13.Call.values.reportEquivocation(
+      equivocationProof: equivocationProof,
+      keyOwnerProof: keyOwnerProof,
+    );
+    return _i10.RuntimeCall.values.grandpa(call);
+  }
+
+  /// See [`Pallet::report_equivocation_unsigned`].
+  _i10.RuntimeCall reportEquivocationUnsigned({
+    required _i11.EquivocationProof equivocationProof,
+    required _i12.MembershipProof keyOwnerProof,
+  }) {
+    final call = _i13.Call.values.reportEquivocationUnsigned(
+      equivocationProof: equivocationProof,
+      keyOwnerProof: keyOwnerProof,
+    );
+    return _i10.RuntimeCall.values.grandpa(call);
+  }
+
+  /// See [`Pallet::note_stalled`].
+  _i10.RuntimeCall noteStalled({
+    required int delay,
+    required int bestFinalizedBlockNumber,
+  }) {
+    final call = _i13.Call.values.noteStalled(
+      delay: delay,
+      bestFinalizedBlockNumber: bestFinalizedBlockNumber,
+    );
+    return _i10.RuntimeCall.values.grandpa(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// Max Authorities in use
+  final int maxAuthorities = 32;
+
+  /// The maximum number of nominators for each validator.
+  final int maxNominators = 64;
+
+  /// The maximum number of entries to keep in the set id to session index mapping.
+  ///
+  /// Since the `SetIdSession` map is only used for validating equivocations this
+  /// value should relate to the bonding duration of whatever staking system is
+  /// being used (if any). If equivocation handling is not enabled then this value
+  /// can be zero.
+  final BigInt maxSetIdSessionEntries = BigInt.from(1000);
+}
diff --git a/lib/src/models/generated/duniter/pallets/historical.dart b/lib/src/models/generated/duniter/pallets/historical.dart
new file mode 100644
index 0000000000000000000000000000000000000000..ca79b53c0120f7a6a632c1357606a300405575be
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/historical.dart
@@ -0,0 +1,84 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i6;
+import 'dart:typed_data' as _i7;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i4;
+
+import '../types/primitive_types/h256.dart' as _i3;
+import '../types/tuples.dart' as _i2;
+import '../types/tuples_1.dart' as _i5;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageMap<int, _i2.Tuple2<_i3.H256, int>> _historicalSessions =
+      const _i1.StorageMap<int, _i2.Tuple2<_i3.H256, int>>(
+    prefix: 'Historical',
+    storage: 'HistoricalSessions',
+    valueCodec: _i2.Tuple2Codec<_i3.H256, int>(
+      _i3.H256Codec(),
+      _i4.U32Codec.codec,
+    ),
+    hasher: _i1.StorageHasher.twoxx64Concat(_i4.U32Codec.codec),
+  );
+
+  final _i1.StorageValue<_i5.Tuple2<int, int>> _storedRange =
+      const _i1.StorageValue<_i5.Tuple2<int, int>>(
+    prefix: 'Historical',
+    storage: 'StoredRange',
+    valueCodec: _i5.Tuple2Codec<int, int>(
+      _i4.U32Codec.codec,
+      _i4.U32Codec.codec,
+    ),
+  );
+
+  /// Mapping from historical session indices to session-data root hash and validator count.
+  _i6.Future<_i2.Tuple2<_i3.H256, int>?> historicalSessions(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _historicalSessions.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _historicalSessions.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// The range of historical sessions we store. [first, last)
+  _i6.Future<_i5.Tuple2<int, int>?> storedRange({_i1.BlockHash? at}) async {
+    final hashedKey = _storedRange.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _storedRange.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Returns the storage key for `historicalSessions`.
+  _i7.Uint8List historicalSessionsKey(int key1) {
+    final hashedKey = _historicalSessions.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `storedRange`.
+  _i7.Uint8List storedRangeKey() {
+    final hashedKey = _storedRange.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `historicalSessions`.
+  _i7.Uint8List historicalSessionsMapPrefix() {
+    final hashedKey = _historicalSessions.mapPrefix();
+    return hashedKey;
+  }
+}
diff --git a/lib/src/models/generated/duniter/pallets/identity.dart b/lib/src/models/generated/duniter/pallets/identity.dart
new file mode 100644
index 0000000000000000000000000000000000000000..0c95de3c611f87f899127d387197aa70a06853fb
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/identity.dart
@@ -0,0 +1,313 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i6;
+import 'dart:typed_data' as _i7;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i3;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i8;
+import '../types/pallet_identity/pallet/call.dart' as _i9;
+import '../types/pallet_identity/types/idty_name.dart' as _i5;
+import '../types/pallet_identity/types/idty_value.dart' as _i2;
+import '../types/sp_core/crypto/account_id32.dart' as _i4;
+import '../types/sp_runtime/multi_signature.dart' as _i10;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageMap<int, _i2.IdtyValue> _identities =
+      const _i1.StorageMap<int, _i2.IdtyValue>(
+    prefix: 'Identity',
+    storage: 'Identities',
+    valueCodec: _i2.IdtyValue.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i3.U32Codec.codec),
+  );
+
+  final _i1.StorageValue<int> _counterForIdentities =
+      const _i1.StorageValue<int>(
+    prefix: 'Identity',
+    storage: 'CounterForIdentities',
+    valueCodec: _i3.U32Codec.codec,
+  );
+
+  final _i1.StorageMap<_i4.AccountId32, int> _identityIndexOf =
+      const _i1.StorageMap<_i4.AccountId32, int>(
+    prefix: 'Identity',
+    storage: 'IdentityIndexOf',
+    valueCodec: _i3.U32Codec.codec,
+    hasher: _i1.StorageHasher.blake2b128Concat(_i4.AccountId32Codec()),
+  );
+
+  final _i1.StorageMap<_i5.IdtyName, int> _identitiesNames =
+      const _i1.StorageMap<_i5.IdtyName, int>(
+    prefix: 'Identity',
+    storage: 'IdentitiesNames',
+    valueCodec: _i3.U32Codec.codec,
+    hasher: _i1.StorageHasher.blake2b128Concat(_i5.IdtyNameCodec()),
+  );
+
+  final _i1.StorageValue<int> _nextIdtyIndex = const _i1.StorageValue<int>(
+    prefix: 'Identity',
+    storage: 'NextIdtyIndex',
+    valueCodec: _i3.U32Codec.codec,
+  );
+
+  final _i1.StorageMap<int, List<int>> _identityChangeSchedule =
+      const _i1.StorageMap<int, List<int>>(
+    prefix: 'Identity',
+    storage: 'IdentityChangeSchedule',
+    valueCodec: _i3.U32SequenceCodec.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i3.U32Codec.codec),
+  );
+
+  /// maps identity index to identity value
+  _i6.Future<_i2.IdtyValue?> identities(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _identities.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _identities.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Counter for the related counted storage map
+  _i6.Future<int> counterForIdentities({_i1.BlockHash? at}) async {
+    final hashedKey = _counterForIdentities.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _counterForIdentities.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  /// maps account id to identity index
+  _i6.Future<int?> identityIndexOf(
+    _i4.AccountId32 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _identityIndexOf.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _identityIndexOf.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// maps identity name to identity index (simply a set)
+  _i6.Future<int?> identitiesNames(
+    _i5.IdtyName key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _identitiesNames.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _identitiesNames.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// counter of the identity index to give to the next identity
+  _i6.Future<int> nextIdtyIndex({_i1.BlockHash? at}) async {
+    final hashedKey = _nextIdtyIndex.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _nextIdtyIndex.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  /// maps block number to the list of identities set to be removed at this bloc
+  _i6.Future<List<int>> identityChangeSchedule(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _identityChangeSchedule.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _identityChangeSchedule.decodeValue(bytes);
+    }
+    return List<int>.filled(
+      0,
+      0,
+      growable: true,
+    ); /* Default */
+  }
+
+  /// Returns the storage key for `identities`.
+  _i7.Uint8List identitiesKey(int key1) {
+    final hashedKey = _identities.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `counterForIdentities`.
+  _i7.Uint8List counterForIdentitiesKey() {
+    final hashedKey = _counterForIdentities.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `identityIndexOf`.
+  _i7.Uint8List identityIndexOfKey(_i4.AccountId32 key1) {
+    final hashedKey = _identityIndexOf.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `identitiesNames`.
+  _i7.Uint8List identitiesNamesKey(_i5.IdtyName key1) {
+    final hashedKey = _identitiesNames.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `nextIdtyIndex`.
+  _i7.Uint8List nextIdtyIndexKey() {
+    final hashedKey = _nextIdtyIndex.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `identityChangeSchedule`.
+  _i7.Uint8List identityChangeScheduleKey(int key1) {
+    final hashedKey = _identityChangeSchedule.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `identities`.
+  _i7.Uint8List identitiesMapPrefix() {
+    final hashedKey = _identities.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `identityIndexOf`.
+  _i7.Uint8List identityIndexOfMapPrefix() {
+    final hashedKey = _identityIndexOf.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `identitiesNames`.
+  _i7.Uint8List identitiesNamesMapPrefix() {
+    final hashedKey = _identitiesNames.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `identityChangeSchedule`.
+  _i7.Uint8List identityChangeScheduleMapPrefix() {
+    final hashedKey = _identityChangeSchedule.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::create_identity`].
+  _i8.RuntimeCall createIdentity({required _i4.AccountId32 ownerKey}) {
+    final call = _i9.Call.values.createIdentity(ownerKey: ownerKey);
+    return _i8.RuntimeCall.values.identity(call);
+  }
+
+  /// See [`Pallet::confirm_identity`].
+  _i8.RuntimeCall confirmIdentity({required _i5.IdtyName idtyName}) {
+    final call = _i9.Call.values.confirmIdentity(idtyName: idtyName);
+    return _i8.RuntimeCall.values.identity(call);
+  }
+
+  /// See [`Pallet::change_owner_key`].
+  _i8.RuntimeCall changeOwnerKey({
+    required _i4.AccountId32 newKey,
+    required _i10.MultiSignature newKeySig,
+  }) {
+    final call = _i9.Call.values.changeOwnerKey(
+      newKey: newKey,
+      newKeySig: newKeySig,
+    );
+    return _i8.RuntimeCall.values.identity(call);
+  }
+
+  /// See [`Pallet::revoke_identity`].
+  _i8.RuntimeCall revokeIdentity({
+    required int idtyIndex,
+    required _i4.AccountId32 revocationKey,
+    required _i10.MultiSignature revocationSig,
+  }) {
+    final call = _i9.Call.values.revokeIdentity(
+      idtyIndex: idtyIndex,
+      revocationKey: revocationKey,
+      revocationSig: revocationSig,
+    );
+    return _i8.RuntimeCall.values.identity(call);
+  }
+
+  /// See [`Pallet::prune_item_identities_names`].
+  _i8.RuntimeCall pruneItemIdentitiesNames(
+      {required List<_i5.IdtyName> names}) {
+    final call = _i9.Call.values.pruneItemIdentitiesNames(names: names);
+    return _i8.RuntimeCall.values.identity(call);
+  }
+
+  /// See [`Pallet::fix_sufficients`].
+  _i8.RuntimeCall fixSufficients({
+    required _i4.AccountId32 ownerKey,
+    required bool inc,
+  }) {
+    final call = _i9.Call.values.fixSufficients(
+      ownerKey: ownerKey,
+      inc: inc,
+    );
+    return _i8.RuntimeCall.values.identity(call);
+  }
+
+  /// See [`Pallet::link_account`].
+  _i8.RuntimeCall linkAccount({
+    required _i4.AccountId32 accountId,
+    required _i10.MultiSignature payloadSig,
+  }) {
+    final call = _i9.Call.values.linkAccount(
+      accountId: accountId,
+      payloadSig: payloadSig,
+    );
+    return _i8.RuntimeCall.values.identity(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// Period during which the owner can confirm the new identity.
+  final int confirmPeriod = 14400;
+
+  /// Period before which the identity has to be validated (become member).
+  final int validationPeriod = 876600;
+
+  /// Period before which an identity who lost membership is automatically revoked.
+  final int autorevocationPeriod = 5259600;
+
+  /// Period after which a revoked identity is removed and the keys are freed.
+  final int deletionPeriod = 52596000;
+
+  /// Minimum duration between two owner key changes.
+  final int changeOwnerKeyPeriod = 100800;
+
+  /// Minimum duration between the creation of 2 identities by the same creator.
+  final int idtyCreationPeriod = 14400;
+}
diff --git a/lib/src/models/generated/duniter/pallets/im_online.dart b/lib/src/models/generated/duniter/pallets/im_online.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e20e1aeb4142d414faed5ed9f43c84263f20c625
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/im_online.dart
@@ -0,0 +1,204 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i5;
+import 'dart:typed_data' as _i6;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i7;
+import '../types/pallet_im_online/heartbeat.dart' as _i8;
+import '../types/pallet_im_online/pallet/call.dart' as _i10;
+import '../types/pallet_im_online/sr25519/app_sr25519/public.dart' as _i3;
+import '../types/pallet_im_online/sr25519/app_sr25519/signature.dart' as _i9;
+import '../types/sp_core/crypto/account_id32.dart' as _i4;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<int> _heartbeatAfter = const _i1.StorageValue<int>(
+    prefix: 'ImOnline',
+    storage: 'HeartbeatAfter',
+    valueCodec: _i2.U32Codec.codec,
+  );
+
+  final _i1.StorageValue<List<_i3.Public>> _keys =
+      const _i1.StorageValue<List<_i3.Public>>(
+    prefix: 'ImOnline',
+    storage: 'Keys',
+    valueCodec: _i2.SequenceCodec<_i3.Public>(_i3.PublicCodec()),
+  );
+
+  final _i1.StorageDoubleMap<int, int, bool> _receivedHeartbeats =
+      const _i1.StorageDoubleMap<int, int, bool>(
+    prefix: 'ImOnline',
+    storage: 'ReceivedHeartbeats',
+    valueCodec: _i2.BoolCodec.codec,
+    hasher1: _i1.StorageHasher.twoxx64Concat(_i2.U32Codec.codec),
+    hasher2: _i1.StorageHasher.twoxx64Concat(_i2.U32Codec.codec),
+  );
+
+  final _i1.StorageDoubleMap<int, _i4.AccountId32, int> _authoredBlocks =
+      const _i1.StorageDoubleMap<int, _i4.AccountId32, int>(
+    prefix: 'ImOnline',
+    storage: 'AuthoredBlocks',
+    valueCodec: _i2.U32Codec.codec,
+    hasher1: _i1.StorageHasher.twoxx64Concat(_i2.U32Codec.codec),
+    hasher2: _i1.StorageHasher.twoxx64Concat(_i4.AccountId32Codec()),
+  );
+
+  /// The block number after which it's ok to send heartbeats in the current
+  /// session.
+  ///
+  /// At the beginning of each session we set this to a value that should fall
+  /// roughly in the middle of the session duration. The idea is to first wait for
+  /// the validators to produce a block in the current session, so that the
+  /// heartbeat later on will not be necessary.
+  ///
+  /// This value will only be used as a fallback if we fail to get a proper session
+  /// progress estimate from `NextSessionRotation`, as those estimates should be
+  /// more accurate then the value we calculate for `HeartbeatAfter`.
+  _i5.Future<int> heartbeatAfter({_i1.BlockHash? at}) async {
+    final hashedKey = _heartbeatAfter.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _heartbeatAfter.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  /// The current set of keys that may issue a heartbeat.
+  _i5.Future<List<_i3.Public>> keys({_i1.BlockHash? at}) async {
+    final hashedKey = _keys.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _keys.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// For each session index, we keep a mapping of `SessionIndex` and `AuthIndex`.
+  _i5.Future<bool?> receivedHeartbeats(
+    int key1,
+    int key2, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _receivedHeartbeats.hashedKeyFor(
+      key1,
+      key2,
+    );
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _receivedHeartbeats.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// For each session index, we keep a mapping of `ValidatorId<T>` to the
+  /// number of blocks authored by the given authority.
+  _i5.Future<int> authoredBlocks(
+    int key1,
+    _i4.AccountId32 key2, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _authoredBlocks.hashedKeyFor(
+      key1,
+      key2,
+    );
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _authoredBlocks.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  /// Returns the storage key for `heartbeatAfter`.
+  _i6.Uint8List heartbeatAfterKey() {
+    final hashedKey = _heartbeatAfter.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `keys`.
+  _i6.Uint8List keysKey() {
+    final hashedKey = _keys.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `receivedHeartbeats`.
+  _i6.Uint8List receivedHeartbeatsKey(
+    int key1,
+    int key2,
+  ) {
+    final hashedKey = _receivedHeartbeats.hashedKeyFor(
+      key1,
+      key2,
+    );
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `authoredBlocks`.
+  _i6.Uint8List authoredBlocksKey(
+    int key1,
+    _i4.AccountId32 key2,
+  ) {
+    final hashedKey = _authoredBlocks.hashedKeyFor(
+      key1,
+      key2,
+    );
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `receivedHeartbeats`.
+  _i6.Uint8List receivedHeartbeatsMapPrefix(int key1) {
+    final hashedKey = _receivedHeartbeats.mapPrefix(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `authoredBlocks`.
+  _i6.Uint8List authoredBlocksMapPrefix(int key1) {
+    final hashedKey = _authoredBlocks.mapPrefix(key1);
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::heartbeat`].
+  _i7.RuntimeCall heartbeat({
+    required _i8.Heartbeat heartbeat,
+    required _i9.Signature signature,
+  }) {
+    final call = _i10.Call.values.heartbeat(
+      heartbeat: heartbeat,
+      signature: signature,
+    );
+    return _i7.RuntimeCall.values.imOnline(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// A configuration for base priority of unsigned transactions.
+  ///
+  /// This is exposed so that it can be tuned for particular runtime, when
+  /// multiple pallets send unsigned transactions.
+  final BigInt unsignedPriority = BigInt.parse(
+    '18446744073709551615',
+    radix: 10,
+  );
+}
diff --git a/lib/src/models/generated/duniter/pallets/membership.dart b/lib/src/models/generated/duniter/pallets/membership.dart
new file mode 100644
index 0000000000000000000000000000000000000000..049f77a691be48042626c868e9ebd7fb62efd249
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/membership.dart
@@ -0,0 +1,126 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i4;
+import 'dart:typed_data' as _i5;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i3;
+
+import '../types/sp_membership/membership_data.dart' as _i2;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageMap<int, _i2.MembershipData> _membership =
+      const _i1.StorageMap<int, _i2.MembershipData>(
+    prefix: 'Membership',
+    storage: 'Membership',
+    valueCodec: _i2.MembershipData.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i3.U32Codec.codec),
+  );
+
+  final _i1.StorageValue<int> _counterForMembership =
+      const _i1.StorageValue<int>(
+    prefix: 'Membership',
+    storage: 'CounterForMembership',
+    valueCodec: _i3.U32Codec.codec,
+  );
+
+  final _i1.StorageMap<int, List<int>> _membershipsExpireOn =
+      const _i1.StorageMap<int, List<int>>(
+    prefix: 'Membership',
+    storage: 'MembershipsExpireOn',
+    valueCodec: _i3.U32SequenceCodec.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i3.U32Codec.codec),
+  );
+
+  /// maps identity id to membership data
+  _i4.Future<_i2.MembershipData?> membership(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _membership.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _membership.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Counter for the related counted storage map
+  _i4.Future<int> counterForMembership({_i1.BlockHash? at}) async {
+    final hashedKey = _counterForMembership.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _counterForMembership.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  /// maps block number to the list of identity id set to expire at this block
+  _i4.Future<List<int>> membershipsExpireOn(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _membershipsExpireOn.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _membershipsExpireOn.decodeValue(bytes);
+    }
+    return List<int>.filled(
+      0,
+      0,
+      growable: true,
+    ); /* Default */
+  }
+
+  /// Returns the storage key for `membership`.
+  _i5.Uint8List membershipKey(int key1) {
+    final hashedKey = _membership.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `counterForMembership`.
+  _i5.Uint8List counterForMembershipKey() {
+    final hashedKey = _counterForMembership.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `membershipsExpireOn`.
+  _i5.Uint8List membershipsExpireOnKey(int key1) {
+    final hashedKey = _membershipsExpireOn.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `membership`.
+  _i5.Uint8List membershipMapPrefix() {
+    final hashedKey = _membership.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `membershipsExpireOn`.
+  _i5.Uint8List membershipsExpireOnMapPrefix() {
+    final hashedKey = _membershipsExpireOn.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// Maximum life span of a single membership (in number of blocks)
+  final int membershipPeriod = 1051200;
+
+  /// Minimum delay to wait before renewing membership
+  final int membershipRenewalPeriod = 14400;
+}
diff --git a/lib/src/models/generated/duniter/pallets/multisig.dart b/lib/src/models/generated/duniter/pallets/multisig.dart
new file mode 100644
index 0000000000000000000000000000000000000000..3b9746b9236bd55f1650ace8369bca5c96773e76
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/multisig.dart
@@ -0,0 +1,155 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i5;
+import 'dart:typed_data' as _i6;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i4;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i7;
+import '../types/pallet_multisig/multisig.dart' as _i3;
+import '../types/pallet_multisig/pallet/call.dart' as _i8;
+import '../types/pallet_multisig/timepoint.dart' as _i9;
+import '../types/sp_core/crypto/account_id32.dart' as _i2;
+import '../types/sp_weights/weight_v2/weight.dart' as _i10;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageDoubleMap<_i2.AccountId32, List<int>, _i3.Multisig>
+      _multisigs =
+      const _i1.StorageDoubleMap<_i2.AccountId32, List<int>, _i3.Multisig>(
+    prefix: 'Multisig',
+    storage: 'Multisigs',
+    valueCodec: _i3.Multisig.codec,
+    hasher1: _i1.StorageHasher.twoxx64Concat(_i2.AccountId32Codec()),
+    hasher2: _i1.StorageHasher.blake2b128Concat(_i4.U8ArrayCodec(32)),
+  );
+
+  /// The set of open multisig operations.
+  _i5.Future<_i3.Multisig?> multisigs(
+    _i2.AccountId32 key1,
+    List<int> key2, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _multisigs.hashedKeyFor(
+      key1,
+      key2,
+    );
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _multisigs.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Returns the storage key for `multisigs`.
+  _i6.Uint8List multisigsKey(
+    _i2.AccountId32 key1,
+    List<int> key2,
+  ) {
+    final hashedKey = _multisigs.hashedKeyFor(
+      key1,
+      key2,
+    );
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `multisigs`.
+  _i6.Uint8List multisigsMapPrefix(_i2.AccountId32 key1) {
+    final hashedKey = _multisigs.mapPrefix(key1);
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::as_multi_threshold_1`].
+  _i7.RuntimeCall asMultiThreshold1({
+    required List<_i2.AccountId32> otherSignatories,
+    required _i7.RuntimeCall call,
+  }) {
+    final call0 = _i8.Call.values.asMultiThreshold1(
+      otherSignatories: otherSignatories,
+      call: call,
+    );
+    return _i7.RuntimeCall.values.multisig(call0);
+  }
+
+  /// See [`Pallet::as_multi`].
+  _i7.RuntimeCall asMulti({
+    required int threshold,
+    required List<_i2.AccountId32> otherSignatories,
+    _i9.Timepoint? maybeTimepoint,
+    required _i7.RuntimeCall call,
+    required _i10.Weight maxWeight,
+  }) {
+    final call0 = _i8.Call.values.asMulti(
+      threshold: threshold,
+      otherSignatories: otherSignatories,
+      maybeTimepoint: maybeTimepoint,
+      call: call,
+      maxWeight: maxWeight,
+    );
+    return _i7.RuntimeCall.values.multisig(call0);
+  }
+
+  /// See [`Pallet::approve_as_multi`].
+  _i7.RuntimeCall approveAsMulti({
+    required int threshold,
+    required List<_i2.AccountId32> otherSignatories,
+    _i9.Timepoint? maybeTimepoint,
+    required List<int> callHash,
+    required _i10.Weight maxWeight,
+  }) {
+    final call = _i8.Call.values.approveAsMulti(
+      threshold: threshold,
+      otherSignatories: otherSignatories,
+      maybeTimepoint: maybeTimepoint,
+      callHash: callHash,
+      maxWeight: maxWeight,
+    );
+    return _i7.RuntimeCall.values.multisig(call);
+  }
+
+  /// See [`Pallet::cancel_as_multi`].
+  _i7.RuntimeCall cancelAsMulti({
+    required int threshold,
+    required List<_i2.AccountId32> otherSignatories,
+    required _i9.Timepoint timepoint,
+    required List<int> callHash,
+  }) {
+    final call = _i8.Call.values.cancelAsMulti(
+      threshold: threshold,
+      otherSignatories: otherSignatories,
+      timepoint: timepoint,
+      callHash: callHash,
+    );
+    return _i7.RuntimeCall.values.multisig(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// The base amount of currency needed to reserve for creating a multisig execution or to
+  /// store a dispatch call for later.
+  ///
+  /// This is held for an additional storage item whose value size is
+  /// `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
+  /// `32 + sizeof(AccountId)` bytes.
+  final BigInt depositBase = BigInt.from(100);
+
+  /// The amount of currency needed per unit threshold when creating a multisig execution.
+  ///
+  /// This is held for adding 32 bytes more into a pre-existing storage value.
+  final BigInt depositFactor = BigInt.from(32);
+
+  /// The maximum amount of signatories allowed in the multisig.
+  final int maxSignatories = 10;
+}
diff --git a/lib/src/models/generated/duniter/pallets/offences.dart b/lib/src/models/generated/duniter/pallets/offences.dart
new file mode 100644
index 0000000000000000000000000000000000000000..40c879bd094009828eddabdfd98ba5879fa6a435
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/offences.dart
@@ -0,0 +1,99 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i5;
+import 'dart:typed_data' as _i6;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i4;
+
+import '../types/primitive_types/h256.dart' as _i2;
+import '../types/sp_staking/offence/offence_details.dart' as _i3;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageMap<_i2.H256, _i3.OffenceDetails> _reports =
+      const _i1.StorageMap<_i2.H256, _i3.OffenceDetails>(
+    prefix: 'Offences',
+    storage: 'Reports',
+    valueCodec: _i3.OffenceDetails.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i2.H256Codec()),
+  );
+
+  final _i1.StorageDoubleMap<List<int>, List<int>, List<_i2.H256>>
+      _concurrentReportsIndex =
+      const _i1.StorageDoubleMap<List<int>, List<int>, List<_i2.H256>>(
+    prefix: 'Offences',
+    storage: 'ConcurrentReportsIndex',
+    valueCodec: _i4.SequenceCodec<_i2.H256>(_i2.H256Codec()),
+    hasher1: _i1.StorageHasher.twoxx64Concat(_i4.U8ArrayCodec(16)),
+    hasher2: _i1.StorageHasher.twoxx64Concat(_i4.U8SequenceCodec.codec),
+  );
+
+  /// The primary structure that holds all offence records keyed by report identifiers.
+  _i5.Future<_i3.OffenceDetails?> reports(
+    _i2.H256 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _reports.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _reports.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// A vector of reports of the same kind that happened at the same time slot.
+  _i5.Future<List<_i2.H256>> concurrentReportsIndex(
+    List<int> key1,
+    List<int> key2, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _concurrentReportsIndex.hashedKeyFor(
+      key1,
+      key2,
+    );
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _concurrentReportsIndex.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Returns the storage key for `reports`.
+  _i6.Uint8List reportsKey(_i2.H256 key1) {
+    final hashedKey = _reports.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `concurrentReportsIndex`.
+  _i6.Uint8List concurrentReportsIndexKey(
+    List<int> key1,
+    List<int> key2,
+  ) {
+    final hashedKey = _concurrentReportsIndex.hashedKeyFor(
+      key1,
+      key2,
+    );
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `reports`.
+  _i6.Uint8List reportsMapPrefix() {
+    final hashedKey = _reports.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `concurrentReportsIndex`.
+  _i6.Uint8List concurrentReportsIndexMapPrefix(List<int> key1) {
+    final hashedKey = _concurrentReportsIndex.mapPrefix(key1);
+    return hashedKey;
+  }
+}
diff --git a/lib/src/models/generated/duniter/pallets/oneshot_account.dart b/lib/src/models/generated/duniter/pallets/oneshot_account.dart
new file mode 100644
index 0000000000000000000000000000000000000000..43855dde14392b3785425789a1dfbac8cd3a077a
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/oneshot_account.dart
@@ -0,0 +1,97 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i4;
+import 'dart:typed_data' as _i5;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i3;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i6;
+import '../types/pallet_oneshot_account/pallet/call.dart' as _i8;
+import '../types/pallet_oneshot_account/types/account.dart' as _i9;
+import '../types/sp_core/crypto/account_id32.dart' as _i2;
+import '../types/sp_runtime/multiaddress/multi_address.dart' as _i7;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageMap<_i2.AccountId32, BigInt> _oneshotAccounts =
+      const _i1.StorageMap<_i2.AccountId32, BigInt>(
+    prefix: 'OneshotAccount',
+    storage: 'OneshotAccounts',
+    valueCodec: _i3.U64Codec.codec,
+    hasher: _i1.StorageHasher.blake2b128Concat(_i2.AccountId32Codec()),
+  );
+
+  _i4.Future<BigInt?> oneshotAccounts(
+    _i2.AccountId32 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _oneshotAccounts.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _oneshotAccounts.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Returns the storage key for `oneshotAccounts`.
+  _i5.Uint8List oneshotAccountsKey(_i2.AccountId32 key1) {
+    final hashedKey = _oneshotAccounts.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `oneshotAccounts`.
+  _i5.Uint8List oneshotAccountsMapPrefix() {
+    final hashedKey = _oneshotAccounts.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::create_oneshot_account`].
+  _i6.RuntimeCall createOneshotAccount({
+    required _i7.MultiAddress dest,
+    required BigInt value,
+  }) {
+    final call = _i8.Call.values.createOneshotAccount(
+      dest: dest,
+      value: value,
+    );
+    return _i6.RuntimeCall.values.oneshotAccount(call);
+  }
+
+  /// See [`Pallet::consume_oneshot_account`].
+  _i6.RuntimeCall consumeOneshotAccount({
+    required int blockHeight,
+    required _i9.Account dest,
+  }) {
+    final call = _i8.Call.values.consumeOneshotAccount(
+      blockHeight: blockHeight,
+      dest: dest,
+    );
+    return _i6.RuntimeCall.values.oneshotAccount(call);
+  }
+
+  /// See [`Pallet::consume_oneshot_account_with_remaining`].
+  _i6.RuntimeCall consumeOneshotAccountWithRemaining({
+    required int blockHeight,
+    required _i9.Account dest,
+    required _i9.Account remainingTo,
+    required BigInt balance,
+  }) {
+    final call = _i8.Call.values.consumeOneshotAccountWithRemaining(
+      blockHeight: blockHeight,
+      dest: dest,
+      remainingTo: remainingTo,
+      balance: balance,
+    );
+    return _i6.RuntimeCall.values.oneshotAccount(call);
+  }
+}
diff --git a/lib/src/models/generated/duniter/pallets/parameters.dart b/lib/src/models/generated/duniter/pallets/parameters.dart
new file mode 100644
index 0000000000000000000000000000000000000000..9ef01133fdfe7998892eaaef4bee5b1a6279fa91
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/parameters.dart
@@ -0,0 +1,56 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i3;
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+
+import '../types/pallet_duniter_test_parameters/types/parameters.dart' as _i2;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<_i2.Parameters> _parametersStorage =
+      const _i1.StorageValue<_i2.Parameters>(
+    prefix: 'Parameters',
+    storage: 'ParametersStorage',
+    valueCodec: _i2.Parameters.codec,
+  );
+
+  _i3.Future<_i2.Parameters> parametersStorage({_i1.BlockHash? at}) async {
+    final hashedKey = _parametersStorage.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _parametersStorage.decodeValue(bytes);
+    }
+    return _i2.Parameters(
+      babeEpochDuration: BigInt.zero,
+      certPeriod: 0,
+      certMaxByIssuer: 0,
+      certMinReceivedCertToIssueCert: 0,
+      certValidityPeriod: 0,
+      idtyConfirmPeriod: 0,
+      idtyCreationPeriod: 0,
+      membershipPeriod: 0,
+      membershipRenewalPeriod: 0,
+      udCreationPeriod: BigInt.zero,
+      udReevalPeriod: BigInt.zero,
+      smithCertMaxByIssuer: 0,
+      smithWotMinCertForMembership: 0,
+      smithInactivityMaxDuration: 0,
+      wotFirstCertIssuableOn: 0,
+      wotMinCertForCreateIdtyRight: 0,
+      wotMinCertForMembership: 0,
+    ); /* Default */
+  }
+
+  /// Returns the storage key for `parametersStorage`.
+  _i4.Uint8List parametersStorageKey() {
+    final hashedKey = _parametersStorage.hashedKey();
+    return hashedKey;
+  }
+}
diff --git a/lib/src/models/generated/duniter/pallets/preimage.dart b/lib/src/models/generated/duniter/pallets/preimage.dart
new file mode 100644
index 0000000000000000000000000000000000000000..416363f5d56e78cbbbfec5ba321ed77e1f3d27f5
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/preimage.dart
@@ -0,0 +1,163 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i7;
+import 'dart:typed_data' as _i8;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i6;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i9;
+import '../types/pallet_preimage/old_request_status.dart' as _i3;
+import '../types/pallet_preimage/pallet/call.dart' as _i10;
+import '../types/pallet_preimage/request_status.dart' as _i4;
+import '../types/primitive_types/h256.dart' as _i2;
+import '../types/tuples.dart' as _i5;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageMap<_i2.H256, _i3.OldRequestStatus> _statusFor =
+      const _i1.StorageMap<_i2.H256, _i3.OldRequestStatus>(
+    prefix: 'Preimage',
+    storage: 'StatusFor',
+    valueCodec: _i3.OldRequestStatus.codec,
+    hasher: _i1.StorageHasher.identity(_i2.H256Codec()),
+  );
+
+  final _i1.StorageMap<_i2.H256, _i4.RequestStatus> _requestStatusFor =
+      const _i1.StorageMap<_i2.H256, _i4.RequestStatus>(
+    prefix: 'Preimage',
+    storage: 'RequestStatusFor',
+    valueCodec: _i4.RequestStatus.codec,
+    hasher: _i1.StorageHasher.identity(_i2.H256Codec()),
+  );
+
+  final _i1.StorageMap<_i5.Tuple2<_i2.H256, int>, List<int>> _preimageFor =
+      const _i1.StorageMap<_i5.Tuple2<_i2.H256, int>, List<int>>(
+    prefix: 'Preimage',
+    storage: 'PreimageFor',
+    valueCodec: _i6.U8SequenceCodec.codec,
+    hasher: _i1.StorageHasher.identity(_i5.Tuple2Codec<_i2.H256, int>(
+      _i2.H256Codec(),
+      _i6.U32Codec.codec,
+    )),
+  );
+
+  /// The request status of a given hash.
+  _i7.Future<_i3.OldRequestStatus?> statusFor(
+    _i2.H256 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _statusFor.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _statusFor.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// The request status of a given hash.
+  _i7.Future<_i4.RequestStatus?> requestStatusFor(
+    _i2.H256 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _requestStatusFor.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _requestStatusFor.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  _i7.Future<List<int>?> preimageFor(
+    _i5.Tuple2<_i2.H256, int> key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _preimageFor.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _preimageFor.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Returns the storage key for `statusFor`.
+  _i8.Uint8List statusForKey(_i2.H256 key1) {
+    final hashedKey = _statusFor.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `requestStatusFor`.
+  _i8.Uint8List requestStatusForKey(_i2.H256 key1) {
+    final hashedKey = _requestStatusFor.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `preimageFor`.
+  _i8.Uint8List preimageForKey(_i5.Tuple2<_i2.H256, int> key1) {
+    final hashedKey = _preimageFor.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `statusFor`.
+  _i8.Uint8List statusForMapPrefix() {
+    final hashedKey = _statusFor.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `requestStatusFor`.
+  _i8.Uint8List requestStatusForMapPrefix() {
+    final hashedKey = _requestStatusFor.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `preimageFor`.
+  _i8.Uint8List preimageForMapPrefix() {
+    final hashedKey = _preimageFor.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::note_preimage`].
+  _i9.RuntimeCall notePreimage({required List<int> bytes}) {
+    final call = _i10.Call.values.notePreimage(bytes: bytes);
+    return _i9.RuntimeCall.values.preimage(call);
+  }
+
+  /// See [`Pallet::unnote_preimage`].
+  _i9.RuntimeCall unnotePreimage({required _i2.H256 hash}) {
+    final call = _i10.Call.values.unnotePreimage(hash: hash);
+    return _i9.RuntimeCall.values.preimage(call);
+  }
+
+  /// See [`Pallet::request_preimage`].
+  _i9.RuntimeCall requestPreimage({required _i2.H256 hash}) {
+    final call = _i10.Call.values.requestPreimage(hash: hash);
+    return _i9.RuntimeCall.values.preimage(call);
+  }
+
+  /// See [`Pallet::unrequest_preimage`].
+  _i9.RuntimeCall unrequestPreimage({required _i2.H256 hash}) {
+    final call = _i10.Call.values.unrequestPreimage(hash: hash);
+    return _i9.RuntimeCall.values.preimage(call);
+  }
+
+  /// See [`Pallet::ensure_updated`].
+  _i9.RuntimeCall ensureUpdated({required List<_i2.H256> hashes}) {
+    final call = _i10.Call.values.ensureUpdated(hashes: hashes);
+    return _i9.RuntimeCall.values.preimage(call);
+  }
+}
diff --git a/lib/src/models/generated/duniter/pallets/provide_randomness.dart b/lib/src/models/generated/duniter/pallets/provide_randomness.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c511eafb333358a749b643217bd3367d84fb2fae
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/provide_randomness.dart
@@ -0,0 +1,215 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i4;
+import 'dart:typed_data' as _i5;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i6;
+import '../types/pallet_provide_randomness/pallet/call.dart' as _i9;
+import '../types/pallet_provide_randomness/types/randomness_type.dart' as _i7;
+import '../types/pallet_provide_randomness/types/request.dart' as _i3;
+import '../types/primitive_types/h256.dart' as _i8;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<int> _nexEpochHookIn = const _i1.StorageValue<int>(
+    prefix: 'ProvideRandomness',
+    storage: 'NexEpochHookIn',
+    valueCodec: _i2.U8Codec.codec,
+  );
+
+  final _i1.StorageValue<BigInt> _requestIdProvider =
+      const _i1.StorageValue<BigInt>(
+    prefix: 'ProvideRandomness',
+    storage: 'RequestIdProvider',
+    valueCodec: _i2.U64Codec.codec,
+  );
+
+  final _i1.StorageValue<List<_i3.Request>> _requestsReadyAtNextBlock =
+      const _i1.StorageValue<List<_i3.Request>>(
+    prefix: 'ProvideRandomness',
+    storage: 'RequestsReadyAtNextBlock',
+    valueCodec: _i2.SequenceCodec<_i3.Request>(_i3.Request.codec),
+  );
+
+  final _i1.StorageMap<BigInt, List<_i3.Request>> _requestsReadyAtEpoch =
+      const _i1.StorageMap<BigInt, List<_i3.Request>>(
+    prefix: 'ProvideRandomness',
+    storage: 'RequestsReadyAtEpoch',
+    valueCodec: _i2.SequenceCodec<_i3.Request>(_i3.Request.codec),
+    hasher: _i1.StorageHasher.twoxx64Concat(_i2.U64Codec.codec),
+  );
+
+  final _i1.StorageMap<BigInt, dynamic> _requestsIds =
+      const _i1.StorageMap<BigInt, dynamic>(
+    prefix: 'ProvideRandomness',
+    storage: 'RequestsIds',
+    valueCodec: _i2.NullCodec.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i2.U64Codec.codec),
+  );
+
+  final _i1.StorageValue<int> _counterForRequestsIds =
+      const _i1.StorageValue<int>(
+    prefix: 'ProvideRandomness',
+    storage: 'CounterForRequestsIds',
+    valueCodec: _i2.U32Codec.codec,
+  );
+
+  _i4.Future<int> nexEpochHookIn({_i1.BlockHash? at}) async {
+    final hashedKey = _nexEpochHookIn.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _nexEpochHookIn.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  _i4.Future<BigInt> requestIdProvider({_i1.BlockHash? at}) async {
+    final hashedKey = _requestIdProvider.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _requestIdProvider.decodeValue(bytes);
+    }
+    return BigInt.zero; /* Default */
+  }
+
+  _i4.Future<List<_i3.Request>> requestsReadyAtNextBlock(
+      {_i1.BlockHash? at}) async {
+    final hashedKey = _requestsReadyAtNextBlock.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _requestsReadyAtNextBlock.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  _i4.Future<List<_i3.Request>> requestsReadyAtEpoch(
+    BigInt key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _requestsReadyAtEpoch.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _requestsReadyAtEpoch.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  _i4.Future<dynamic> requestsIds(
+    BigInt key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _requestsIds.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _requestsIds.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Counter for the related counted storage map
+  _i4.Future<int> counterForRequestsIds({_i1.BlockHash? at}) async {
+    final hashedKey = _counterForRequestsIds.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _counterForRequestsIds.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  /// Returns the storage key for `nexEpochHookIn`.
+  _i5.Uint8List nexEpochHookInKey() {
+    final hashedKey = _nexEpochHookIn.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `requestIdProvider`.
+  _i5.Uint8List requestIdProviderKey() {
+    final hashedKey = _requestIdProvider.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `requestsReadyAtNextBlock`.
+  _i5.Uint8List requestsReadyAtNextBlockKey() {
+    final hashedKey = _requestsReadyAtNextBlock.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `requestsReadyAtEpoch`.
+  _i5.Uint8List requestsReadyAtEpochKey(BigInt key1) {
+    final hashedKey = _requestsReadyAtEpoch.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `requestsIds`.
+  _i5.Uint8List requestsIdsKey(BigInt key1) {
+    final hashedKey = _requestsIds.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `counterForRequestsIds`.
+  _i5.Uint8List counterForRequestsIdsKey() {
+    final hashedKey = _counterForRequestsIds.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `requestsReadyAtEpoch`.
+  _i5.Uint8List requestsReadyAtEpochMapPrefix() {
+    final hashedKey = _requestsReadyAtEpoch.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `requestsIds`.
+  _i5.Uint8List requestsIdsMapPrefix() {
+    final hashedKey = _requestsIds.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::request`].
+  _i6.RuntimeCall request({
+    required _i7.RandomnessType randomnessType,
+    required _i8.H256 salt,
+  }) {
+    final call = _i9.Call.values.request(
+      randomnessType: randomnessType,
+      salt: salt,
+    );
+    return _i6.RuntimeCall.values.provideRandomness(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// Maximum number of not yet filled requests
+  final int maxRequests = 100;
+
+  /// The price of a request
+  final BigInt requestPrice = BigInt.from(2000);
+}
diff --git a/lib/src/models/generated/duniter/pallets/proxy.dart b/lib/src/models/generated/duniter/pallets/proxy.dart
new file mode 100644
index 0000000000000000000000000000000000000000..209e952dd6ba096371fda2f536d19691ae820013
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/proxy.dart
@@ -0,0 +1,282 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i7;
+import 'dart:typed_data' as _i8;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i5;
+
+import '../types/gdev_runtime/proxy_type.dart' as _i11;
+import '../types/gdev_runtime/runtime_call.dart' as _i9;
+import '../types/pallet_proxy/announcement.dart' as _i6;
+import '../types/pallet_proxy/pallet/call.dart' as _i12;
+import '../types/pallet_proxy/proxy_definition.dart' as _i4;
+import '../types/primitive_types/h256.dart' as _i13;
+import '../types/sp_core/crypto/account_id32.dart' as _i2;
+import '../types/sp_runtime/multiaddress/multi_address.dart' as _i10;
+import '../types/tuples.dart' as _i3;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageMap<_i2.AccountId32,
+          _i3.Tuple2<List<_i4.ProxyDefinition>, BigInt>> _proxies =
+      const _i1.StorageMap<_i2.AccountId32,
+          _i3.Tuple2<List<_i4.ProxyDefinition>, BigInt>>(
+    prefix: 'Proxy',
+    storage: 'Proxies',
+    valueCodec: _i3.Tuple2Codec<List<_i4.ProxyDefinition>, BigInt>(
+      _i5.SequenceCodec<_i4.ProxyDefinition>(_i4.ProxyDefinition.codec),
+      _i5.U64Codec.codec,
+    ),
+    hasher: _i1.StorageHasher.twoxx64Concat(_i2.AccountId32Codec()),
+  );
+
+  final _i1
+      .StorageMap<_i2.AccountId32, _i3.Tuple2<List<_i6.Announcement>, BigInt>>
+      _announcements = const _i1.StorageMap<_i2.AccountId32,
+          _i3.Tuple2<List<_i6.Announcement>, BigInt>>(
+    prefix: 'Proxy',
+    storage: 'Announcements',
+    valueCodec: _i3.Tuple2Codec<List<_i6.Announcement>, BigInt>(
+      _i5.SequenceCodec<_i6.Announcement>(_i6.Announcement.codec),
+      _i5.U64Codec.codec,
+    ),
+    hasher: _i1.StorageHasher.twoxx64Concat(_i2.AccountId32Codec()),
+  );
+
+  /// The set of account proxies. Maps the account which has delegated to the accounts
+  /// which are being delegated to, together with the amount held on deposit.
+  _i7.Future<_i3.Tuple2<List<_i4.ProxyDefinition>, BigInt>> proxies(
+    _i2.AccountId32 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _proxies.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _proxies.decodeValue(bytes);
+    }
+    return _i3.Tuple2<List<_i4.ProxyDefinition>, BigInt>(
+      [],
+      BigInt.zero,
+    ); /* Default */
+  }
+
+  /// The announcements made by the proxy (key).
+  _i7.Future<_i3.Tuple2<List<_i6.Announcement>, BigInt>> announcements(
+    _i2.AccountId32 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _announcements.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _announcements.decodeValue(bytes);
+    }
+    return _i3.Tuple2<List<_i6.Announcement>, BigInt>(
+      [],
+      BigInt.zero,
+    ); /* Default */
+  }
+
+  /// Returns the storage key for `proxies`.
+  _i8.Uint8List proxiesKey(_i2.AccountId32 key1) {
+    final hashedKey = _proxies.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `announcements`.
+  _i8.Uint8List announcementsKey(_i2.AccountId32 key1) {
+    final hashedKey = _announcements.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `proxies`.
+  _i8.Uint8List proxiesMapPrefix() {
+    final hashedKey = _proxies.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `announcements`.
+  _i8.Uint8List announcementsMapPrefix() {
+    final hashedKey = _announcements.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::proxy`].
+  _i9.RuntimeCall proxy({
+    required _i10.MultiAddress real,
+    _i11.ProxyType? forceProxyType,
+    required _i9.RuntimeCall call,
+  }) {
+    final call0 = _i12.Call.values.proxy(
+      real: real,
+      forceProxyType: forceProxyType,
+      call: call,
+    );
+    return _i9.RuntimeCall.values.proxy(call0);
+  }
+
+  /// See [`Pallet::add_proxy`].
+  _i9.RuntimeCall addProxy({
+    required _i10.MultiAddress delegate,
+    required _i11.ProxyType proxyType,
+    required int delay,
+  }) {
+    final call = _i12.Call.values.addProxy(
+      delegate: delegate,
+      proxyType: proxyType,
+      delay: delay,
+    );
+    return _i9.RuntimeCall.values.proxy(call);
+  }
+
+  /// See [`Pallet::remove_proxy`].
+  _i9.RuntimeCall removeProxy({
+    required _i10.MultiAddress delegate,
+    required _i11.ProxyType proxyType,
+    required int delay,
+  }) {
+    final call = _i12.Call.values.removeProxy(
+      delegate: delegate,
+      proxyType: proxyType,
+      delay: delay,
+    );
+    return _i9.RuntimeCall.values.proxy(call);
+  }
+
+  /// See [`Pallet::remove_proxies`].
+  _i9.RuntimeCall removeProxies() {
+    final call = _i12.Call.values.removeProxies();
+    return _i9.RuntimeCall.values.proxy(call);
+  }
+
+  /// See [`Pallet::create_pure`].
+  _i9.RuntimeCall createPure({
+    required _i11.ProxyType proxyType,
+    required int delay,
+    required int index,
+  }) {
+    final call = _i12.Call.values.createPure(
+      proxyType: proxyType,
+      delay: delay,
+      index: index,
+    );
+    return _i9.RuntimeCall.values.proxy(call);
+  }
+
+  /// See [`Pallet::kill_pure`].
+  _i9.RuntimeCall killPure({
+    required _i10.MultiAddress spawner,
+    required _i11.ProxyType proxyType,
+    required int index,
+    required BigInt height,
+    required BigInt extIndex,
+  }) {
+    final call = _i12.Call.values.killPure(
+      spawner: spawner,
+      proxyType: proxyType,
+      index: index,
+      height: height,
+      extIndex: extIndex,
+    );
+    return _i9.RuntimeCall.values.proxy(call);
+  }
+
+  /// See [`Pallet::announce`].
+  _i9.RuntimeCall announce({
+    required _i10.MultiAddress real,
+    required _i13.H256 callHash,
+  }) {
+    final call = _i12.Call.values.announce(
+      real: real,
+      callHash: callHash,
+    );
+    return _i9.RuntimeCall.values.proxy(call);
+  }
+
+  /// See [`Pallet::remove_announcement`].
+  _i9.RuntimeCall removeAnnouncement({
+    required _i10.MultiAddress real,
+    required _i13.H256 callHash,
+  }) {
+    final call = _i12.Call.values.removeAnnouncement(
+      real: real,
+      callHash: callHash,
+    );
+    return _i9.RuntimeCall.values.proxy(call);
+  }
+
+  /// See [`Pallet::reject_announcement`].
+  _i9.RuntimeCall rejectAnnouncement({
+    required _i10.MultiAddress delegate,
+    required _i13.H256 callHash,
+  }) {
+    final call = _i12.Call.values.rejectAnnouncement(
+      delegate: delegate,
+      callHash: callHash,
+    );
+    return _i9.RuntimeCall.values.proxy(call);
+  }
+
+  /// See [`Pallet::proxy_announced`].
+  _i9.RuntimeCall proxyAnnounced({
+    required _i10.MultiAddress delegate,
+    required _i10.MultiAddress real,
+    _i11.ProxyType? forceProxyType,
+    required _i9.RuntimeCall call,
+  }) {
+    final call0 = _i12.Call.values.proxyAnnounced(
+      delegate: delegate,
+      real: real,
+      forceProxyType: forceProxyType,
+      call: call,
+    );
+    return _i9.RuntimeCall.values.proxy(call0);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// The base amount of currency needed to reserve for creating a proxy.
+  ///
+  /// This is held for an additional storage item whose value size is
+  /// `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
+  final BigInt proxyDepositBase = BigInt.from(108);
+
+  /// The amount of currency needed per proxy added.
+  ///
+  /// This is held for adding 32 bytes plus an instance of `ProxyType` more into a
+  /// pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
+  /// into account `32 + proxy_type.encode().len()` bytes of data.
+  final BigInt proxyDepositFactor = BigInt.from(33);
+
+  /// The maximum amount of proxies allowed for a single account.
+  final int maxProxies = 32;
+
+  /// The maximum amount of time-delayed announcements that are allowed to be pending.
+  final int maxPending = 32;
+
+  /// The base amount of currency needed to reserve for creating an announcement.
+  ///
+  /// This is held when a new storage item holding a `Balance` is created (typically 16
+  /// bytes).
+  final BigInt announcementDepositBase = BigInt.from(108);
+
+  /// The amount of currency needed per announcement made.
+  ///
+  /// This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
+  /// into a pre-existing storage value.
+  final BigInt announcementDepositFactor = BigInt.from(66);
+}
diff --git a/lib/src/models/generated/duniter/pallets/quota.dart b/lib/src/models/generated/duniter/pallets/quota.dart
new file mode 100644
index 0000000000000000000000000000000000000000..baf825b01840a429a7e9650df33ea2a6e2ebc212
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/quota.dart
@@ -0,0 +1,118 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i5;
+import 'dart:typed_data' as _i6;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i3;
+
+import '../types/pallet_quota/pallet/quota.dart' as _i2;
+import '../types/pallet_quota/pallet/refund.dart' as _i4;
+import '../types/sp_core/crypto/account_id32.dart' as _i7;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageMap<int, _i2.Quota> _idtyQuota =
+      const _i1.StorageMap<int, _i2.Quota>(
+    prefix: 'Quota',
+    storage: 'IdtyQuota',
+    valueCodec: _i2.Quota.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i3.U32Codec.codec),
+  );
+
+  final _i1.StorageValue<List<_i4.Refund>> _refundQueue =
+      const _i1.StorageValue<List<_i4.Refund>>(
+    prefix: 'Quota',
+    storage: 'RefundQueue',
+    valueCodec: _i3.SequenceCodec<_i4.Refund>(_i4.Refund.codec),
+  );
+
+  /// maps identity index to quota
+  _i5.Future<_i2.Quota?> idtyQuota(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _idtyQuota.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _idtyQuota.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// fees waiting for refund
+  _i5.Future<List<_i4.Refund>> refundQueue({_i1.BlockHash? at}) async {
+    final hashedKey = _refundQueue.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _refundQueue.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Returns the storage key for `idtyQuota`.
+  _i6.Uint8List idtyQuotaKey(int key1) {
+    final hashedKey = _idtyQuota.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `refundQueue`.
+  _i6.Uint8List refundQueueKey() {
+    final hashedKey = _refundQueue.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `idtyQuota`.
+  _i6.Uint8List idtyQuotaMapPrefix() {
+    final hashedKey = _idtyQuota.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// Account used to refund fee
+  final _i7.AccountId32 refundAccount = const <int>[
+    109,
+    111,
+    100,
+    108,
+    112,
+    121,
+    47,
+    116,
+    114,
+    115,
+    114,
+    121,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+    0,
+  ];
+}
diff --git a/lib/src/models/generated/duniter/pallets/scheduler.dart b/lib/src/models/generated/duniter/pallets/scheduler.dart
new file mode 100644
index 0000000000000000000000000000000000000000..1c120a99a0448cad19ebef70aea120c8b5d72835
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/scheduler.dart
@@ -0,0 +1,228 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i5;
+import 'dart:typed_data' as _i6;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i7;
+import '../types/pallet_scheduler/pallet/call.dart' as _i8;
+import '../types/pallet_scheduler/scheduled.dart' as _i3;
+import '../types/sp_weights/weight_v2/weight.dart' as _i9;
+import '../types/tuples_1.dart' as _i4;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<int> _incompleteSince = const _i1.StorageValue<int>(
+    prefix: 'Scheduler',
+    storage: 'IncompleteSince',
+    valueCodec: _i2.U32Codec.codec,
+  );
+
+  final _i1.StorageMap<int, List<_i3.Scheduled?>> _agenda =
+      const _i1.StorageMap<int, List<_i3.Scheduled?>>(
+    prefix: 'Scheduler',
+    storage: 'Agenda',
+    valueCodec: _i2.SequenceCodec<_i3.Scheduled?>(
+        _i2.OptionCodec<_i3.Scheduled>(_i3.Scheduled.codec)),
+    hasher: _i1.StorageHasher.twoxx64Concat(_i2.U32Codec.codec),
+  );
+
+  final _i1.StorageMap<List<int>, _i4.Tuple2<int, int>> _lookup =
+      const _i1.StorageMap<List<int>, _i4.Tuple2<int, int>>(
+    prefix: 'Scheduler',
+    storage: 'Lookup',
+    valueCodec: _i4.Tuple2Codec<int, int>(
+      _i2.U32Codec.codec,
+      _i2.U32Codec.codec,
+    ),
+    hasher: _i1.StorageHasher.twoxx64Concat(_i2.U8ArrayCodec(32)),
+  );
+
+  _i5.Future<int?> incompleteSince({_i1.BlockHash? at}) async {
+    final hashedKey = _incompleteSince.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _incompleteSince.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Items to be executed, indexed by the block number that they should be executed on.
+  _i5.Future<List<_i3.Scheduled?>> agenda(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _agenda.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _agenda.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Lookup from a name to the block number and index of the task.
+  ///
+  /// For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
+  /// identities.
+  _i5.Future<_i4.Tuple2<int, int>?> lookup(
+    List<int> key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _lookup.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _lookup.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Returns the storage key for `incompleteSince`.
+  _i6.Uint8List incompleteSinceKey() {
+    final hashedKey = _incompleteSince.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `agenda`.
+  _i6.Uint8List agendaKey(int key1) {
+    final hashedKey = _agenda.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `lookup`.
+  _i6.Uint8List lookupKey(List<int> key1) {
+    final hashedKey = _lookup.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `agenda`.
+  _i6.Uint8List agendaMapPrefix() {
+    final hashedKey = _agenda.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `lookup`.
+  _i6.Uint8List lookupMapPrefix() {
+    final hashedKey = _lookup.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::schedule`].
+  _i7.RuntimeCall schedule({
+    required int when,
+    _i4.Tuple2<int, int>? maybePeriodic,
+    required int priority,
+    required _i7.RuntimeCall call,
+  }) {
+    final call0 = _i8.Call.values.schedule(
+      when: when,
+      maybePeriodic: maybePeriodic,
+      priority: priority,
+      call: call,
+    );
+    return _i7.RuntimeCall.values.scheduler(call0);
+  }
+
+  /// See [`Pallet::cancel`].
+  _i7.RuntimeCall cancel({
+    required int when,
+    required int index,
+  }) {
+    final call = _i8.Call.values.cancel(
+      when: when,
+      index: index,
+    );
+    return _i7.RuntimeCall.values.scheduler(call);
+  }
+
+  /// See [`Pallet::schedule_named`].
+  _i7.RuntimeCall scheduleNamed({
+    required List<int> id,
+    required int when,
+    _i4.Tuple2<int, int>? maybePeriodic,
+    required int priority,
+    required _i7.RuntimeCall call,
+  }) {
+    final call0 = _i8.Call.values.scheduleNamed(
+      id: id,
+      when: when,
+      maybePeriodic: maybePeriodic,
+      priority: priority,
+      call: call,
+    );
+    return _i7.RuntimeCall.values.scheduler(call0);
+  }
+
+  /// See [`Pallet::cancel_named`].
+  _i7.RuntimeCall cancelNamed({required List<int> id}) {
+    final call = _i8.Call.values.cancelNamed(id: id);
+    return _i7.RuntimeCall.values.scheduler(call);
+  }
+
+  /// See [`Pallet::schedule_after`].
+  _i7.RuntimeCall scheduleAfter({
+    required int after,
+    _i4.Tuple2<int, int>? maybePeriodic,
+    required int priority,
+    required _i7.RuntimeCall call,
+  }) {
+    final call0 = _i8.Call.values.scheduleAfter(
+      after: after,
+      maybePeriodic: maybePeriodic,
+      priority: priority,
+      call: call,
+    );
+    return _i7.RuntimeCall.values.scheduler(call0);
+  }
+
+  /// See [`Pallet::schedule_named_after`].
+  _i7.RuntimeCall scheduleNamedAfter({
+    required List<int> id,
+    required int after,
+    _i4.Tuple2<int, int>? maybePeriodic,
+    required int priority,
+    required _i7.RuntimeCall call,
+  }) {
+    final call0 = _i8.Call.values.scheduleNamedAfter(
+      id: id,
+      after: after,
+      maybePeriodic: maybePeriodic,
+      priority: priority,
+      call: call,
+    );
+    return _i7.RuntimeCall.values.scheduler(call0);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// The maximum weight that may be scheduled per block for any dispatchables.
+  final _i9.Weight maximumWeight = _i9.Weight(
+    refTime: BigInt.from(1600000000000),
+    proofSize: BigInt.from(4194304),
+  );
+
+  /// The maximum number of scheduled calls in the queue for a single block.
+  ///
+  /// NOTE:
+  /// + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
+  /// higher limit under `runtime-benchmarks` feature.
+  final int maxScheduledPerBlock = 50;
+}
diff --git a/lib/src/models/generated/duniter/pallets/session.dart b/lib/src/models/generated/duniter/pallets/session.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c073268294ccf801953cdf29d0614983c021a585
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/session.dart
@@ -0,0 +1,262 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i7;
+import 'dart:typed_data' as _i8;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i3;
+
+import '../types/gdev_runtime/opaque/session_keys.dart' as _i5;
+import '../types/gdev_runtime/runtime_call.dart' as _i9;
+import '../types/pallet_session/pallet/call.dart' as _i10;
+import '../types/sp_core/crypto/account_id32.dart' as _i2;
+import '../types/sp_core/crypto/key_type_id.dart' as _i6;
+import '../types/tuples.dart' as _i4;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<List<_i2.AccountId32>> _validators =
+      const _i1.StorageValue<List<_i2.AccountId32>>(
+    prefix: 'Session',
+    storage: 'Validators',
+    valueCodec: _i3.SequenceCodec<_i2.AccountId32>(_i2.AccountId32Codec()),
+  );
+
+  final _i1.StorageValue<int> _currentIndex = const _i1.StorageValue<int>(
+    prefix: 'Session',
+    storage: 'CurrentIndex',
+    valueCodec: _i3.U32Codec.codec,
+  );
+
+  final _i1.StorageValue<bool> _queuedChanged = const _i1.StorageValue<bool>(
+    prefix: 'Session',
+    storage: 'QueuedChanged',
+    valueCodec: _i3.BoolCodec.codec,
+  );
+
+  final _i1.StorageValue<List<_i4.Tuple2<_i2.AccountId32, _i5.SessionKeys>>>
+      _queuedKeys = const _i1
+          .StorageValue<List<_i4.Tuple2<_i2.AccountId32, _i5.SessionKeys>>>(
+    prefix: 'Session',
+    storage: 'QueuedKeys',
+    valueCodec: _i3.SequenceCodec<_i4.Tuple2<_i2.AccountId32, _i5.SessionKeys>>(
+        _i4.Tuple2Codec<_i2.AccountId32, _i5.SessionKeys>(
+      _i2.AccountId32Codec(),
+      _i5.SessionKeys.codec,
+    )),
+  );
+
+  final _i1.StorageValue<List<int>> _disabledValidators =
+      const _i1.StorageValue<List<int>>(
+    prefix: 'Session',
+    storage: 'DisabledValidators',
+    valueCodec: _i3.U32SequenceCodec.codec,
+  );
+
+  final _i1.StorageMap<_i2.AccountId32, _i5.SessionKeys> _nextKeys =
+      const _i1.StorageMap<_i2.AccountId32, _i5.SessionKeys>(
+    prefix: 'Session',
+    storage: 'NextKeys',
+    valueCodec: _i5.SessionKeys.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i2.AccountId32Codec()),
+  );
+
+  final _i1.StorageMap<_i4.Tuple2<_i6.KeyTypeId, List<int>>, _i2.AccountId32>
+      _keyOwner = const _i1
+          .StorageMap<_i4.Tuple2<_i6.KeyTypeId, List<int>>, _i2.AccountId32>(
+    prefix: 'Session',
+    storage: 'KeyOwner',
+    valueCodec: _i2.AccountId32Codec(),
+    hasher: _i1.StorageHasher.twoxx64Concat(
+        _i4.Tuple2Codec<_i6.KeyTypeId, List<int>>(
+      _i6.KeyTypeIdCodec(),
+      _i3.U8SequenceCodec.codec,
+    )),
+  );
+
+  /// The current set of validators.
+  _i7.Future<List<_i2.AccountId32>> validators({_i1.BlockHash? at}) async {
+    final hashedKey = _validators.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _validators.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Current index of the session.
+  _i7.Future<int> currentIndex({_i1.BlockHash? at}) async {
+    final hashedKey = _currentIndex.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _currentIndex.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  /// True if the underlying economic identities or weighting behind the validators
+  /// has changed in the queued validator set.
+  _i7.Future<bool> queuedChanged({_i1.BlockHash? at}) async {
+    final hashedKey = _queuedChanged.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _queuedChanged.decodeValue(bytes);
+    }
+    return false; /* Default */
+  }
+
+  /// The queued keys for the next session. When the next session begins, these keys
+  /// will be used to determine the validator's session keys.
+  _i7.Future<List<_i4.Tuple2<_i2.AccountId32, _i5.SessionKeys>>> queuedKeys(
+      {_i1.BlockHash? at}) async {
+    final hashedKey = _queuedKeys.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _queuedKeys.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Indices of disabled validators.
+  ///
+  /// The vec is always kept sorted so that we can find whether a given validator is
+  /// disabled using binary search. It gets cleared when `on_session_ending` returns
+  /// a new set of identities.
+  _i7.Future<List<int>> disabledValidators({_i1.BlockHash? at}) async {
+    final hashedKey = _disabledValidators.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _disabledValidators.decodeValue(bytes);
+    }
+    return List<int>.filled(
+      0,
+      0,
+      growable: true,
+    ); /* Default */
+  }
+
+  /// The next session keys for a validator.
+  _i7.Future<_i5.SessionKeys?> nextKeys(
+    _i2.AccountId32 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _nextKeys.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _nextKeys.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// The owner of a key. The key is the `KeyTypeId` + the encoded key.
+  _i7.Future<_i2.AccountId32?> keyOwner(
+    _i4.Tuple2<_i6.KeyTypeId, List<int>> key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _keyOwner.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _keyOwner.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Returns the storage key for `validators`.
+  _i8.Uint8List validatorsKey() {
+    final hashedKey = _validators.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `currentIndex`.
+  _i8.Uint8List currentIndexKey() {
+    final hashedKey = _currentIndex.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `queuedChanged`.
+  _i8.Uint8List queuedChangedKey() {
+    final hashedKey = _queuedChanged.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `queuedKeys`.
+  _i8.Uint8List queuedKeysKey() {
+    final hashedKey = _queuedKeys.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `disabledValidators`.
+  _i8.Uint8List disabledValidatorsKey() {
+    final hashedKey = _disabledValidators.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `nextKeys`.
+  _i8.Uint8List nextKeysKey(_i2.AccountId32 key1) {
+    final hashedKey = _nextKeys.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `keyOwner`.
+  _i8.Uint8List keyOwnerKey(_i4.Tuple2<_i6.KeyTypeId, List<int>> key1) {
+    final hashedKey = _keyOwner.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `nextKeys`.
+  _i8.Uint8List nextKeysMapPrefix() {
+    final hashedKey = _nextKeys.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `keyOwner`.
+  _i8.Uint8List keyOwnerMapPrefix() {
+    final hashedKey = _keyOwner.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::set_keys`].
+  _i9.RuntimeCall setKeys({
+    required _i5.SessionKeys keys,
+    required List<int> proof,
+  }) {
+    final call = _i10.Call.values.setKeys(
+      keys: keys,
+      proof: proof,
+    );
+    return _i9.RuntimeCall.values.session(call);
+  }
+
+  /// See [`Pallet::purge_keys`].
+  _i9.RuntimeCall purgeKeys() {
+    final call = _i10.Call.values.purgeKeys();
+    return _i9.RuntimeCall.values.session(call);
+  }
+}
diff --git a/lib/src/models/generated/duniter/pallets/smith_members.dart b/lib/src/models/generated/duniter/pallets/smith_members.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7332c17de9968c9b8bbc154513ea2a03d45e198f
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/smith_members.dart
@@ -0,0 +1,148 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i4;
+import 'dart:typed_data' as _i5;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i3;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i6;
+import '../types/pallet_smith_members/pallet/call.dart' as _i7;
+import '../types/pallet_smith_members/types/smith_meta.dart' as _i2;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageMap<int, _i2.SmithMeta> _smiths =
+      const _i1.StorageMap<int, _i2.SmithMeta>(
+    prefix: 'SmithMembers',
+    storage: 'Smiths',
+    valueCodec: _i2.SmithMeta.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i3.U32Codec.codec),
+  );
+
+  final _i1.StorageMap<int, List<int>> _expiresOn =
+      const _i1.StorageMap<int, List<int>>(
+    prefix: 'SmithMembers',
+    storage: 'ExpiresOn',
+    valueCodec: _i3.U32SequenceCodec.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i3.U32Codec.codec),
+  );
+
+  final _i1.StorageValue<int> _currentSession = const _i1.StorageValue<int>(
+    prefix: 'SmithMembers',
+    storage: 'CurrentSession',
+    valueCodec: _i3.U32Codec.codec,
+  );
+
+  /// maps identity index to smith status
+  _i4.Future<_i2.SmithMeta?> smiths(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _smiths.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _smiths.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// maps session index to possible smith removals
+  _i4.Future<List<int>?> expiresOn(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _expiresOn.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _expiresOn.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// stores the current session index
+  _i4.Future<int> currentSession({_i1.BlockHash? at}) async {
+    final hashedKey = _currentSession.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _currentSession.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  /// Returns the storage key for `smiths`.
+  _i5.Uint8List smithsKey(int key1) {
+    final hashedKey = _smiths.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `expiresOn`.
+  _i5.Uint8List expiresOnKey(int key1) {
+    final hashedKey = _expiresOn.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `currentSession`.
+  _i5.Uint8List currentSessionKey() {
+    final hashedKey = _currentSession.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `smiths`.
+  _i5.Uint8List smithsMapPrefix() {
+    final hashedKey = _smiths.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `expiresOn`.
+  _i5.Uint8List expiresOnMapPrefix() {
+    final hashedKey = _expiresOn.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::invite_smith`].
+  _i6.RuntimeCall inviteSmith({required int receiver}) {
+    final call = _i7.Call.values.inviteSmith(receiver: receiver);
+    return _i6.RuntimeCall.values.smithMembers(call);
+  }
+
+  /// See [`Pallet::accept_invitation`].
+  _i6.RuntimeCall acceptInvitation() {
+    final call = _i7.Call.values.acceptInvitation();
+    return _i6.RuntimeCall.values.smithMembers(call);
+  }
+
+  /// See [`Pallet::certify_smith`].
+  _i6.RuntimeCall certifySmith({required int receiver}) {
+    final call = _i7.Call.values.certifySmith(receiver: receiver);
+    return _i6.RuntimeCall.values.smithMembers(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// Maximum number of active certifications by issuer
+  final int maxByIssuer = 15;
+
+  /// Minimum number of certifications to become a Smith
+  final int minCertForMembership = 2;
+
+  /// Maximum duration of inactivity before a smith is removed
+  final int smithInactivityMaxDuration = 336;
+}
diff --git a/lib/src/models/generated/duniter/pallets/sudo.dart b/lib/src/models/generated/duniter/pallets/sudo.dart
new file mode 100644
index 0000000000000000000000000000000000000000..9d4a14c239e4f75f45ff3831a809a63d1c5f6ce4
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/sudo.dart
@@ -0,0 +1,89 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i3;
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i5;
+import '../types/pallet_sudo/pallet/call.dart' as _i6;
+import '../types/sp_core/crypto/account_id32.dart' as _i2;
+import '../types/sp_runtime/multiaddress/multi_address.dart' as _i8;
+import '../types/sp_weights/weight_v2/weight.dart' as _i7;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<_i2.AccountId32> _key =
+      const _i1.StorageValue<_i2.AccountId32>(
+    prefix: 'Sudo',
+    storage: 'Key',
+    valueCodec: _i2.AccountId32Codec(),
+  );
+
+  /// The `AccountId` of the sudo key.
+  _i3.Future<_i2.AccountId32?> key({_i1.BlockHash? at}) async {
+    final hashedKey = _key.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _key.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Returns the storage key for `key`.
+  _i4.Uint8List keyKey() {
+    final hashedKey = _key.hashedKey();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::sudo`].
+  _i5.RuntimeCall sudo({required _i5.RuntimeCall call}) {
+    final call0 = _i6.Call.values.sudo(call: call);
+    return _i5.RuntimeCall.values.sudo(call0);
+  }
+
+  /// See [`Pallet::sudo_unchecked_weight`].
+  _i5.RuntimeCall sudoUncheckedWeight({
+    required _i5.RuntimeCall call,
+    required _i7.Weight weight,
+  }) {
+    final call0 = _i6.Call.values.sudoUncheckedWeight(
+      call: call,
+      weight: weight,
+    );
+    return _i5.RuntimeCall.values.sudo(call0);
+  }
+
+  /// See [`Pallet::set_key`].
+  _i5.RuntimeCall setKey({required _i8.MultiAddress new_}) {
+    final call = _i6.Call.values.setKey(new_: new_);
+    return _i5.RuntimeCall.values.sudo(call);
+  }
+
+  /// See [`Pallet::sudo_as`].
+  _i5.RuntimeCall sudoAs({
+    required _i8.MultiAddress who,
+    required _i5.RuntimeCall call,
+  }) {
+    final call0 = _i6.Call.values.sudoAs(
+      who: who,
+      call: call,
+    );
+    return _i5.RuntimeCall.values.sudo(call0);
+  }
+
+  /// See [`Pallet::remove_key`].
+  _i5.RuntimeCall removeKey() {
+    final call = _i6.Call.values.removeKey();
+    return _i5.RuntimeCall.values.sudo(call);
+  }
+}
diff --git a/lib/src/models/generated/duniter/pallets/system.dart b/lib/src/models/generated/duniter/pallets/system.dart
new file mode 100644
index 0000000000000000000000000000000000000000..372123e3e7852ce0f8670b9a89869b42ebf69368
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/system.dart
@@ -0,0 +1,905 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i13;
+import 'dart:typed_data' as _i16;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i4;
+
+import '../types/frame_support/dispatch/per_dispatch_class_1.dart' as _i5;
+import '../types/frame_support/dispatch/per_dispatch_class_2.dart' as _i21;
+import '../types/frame_support/dispatch/per_dispatch_class_3.dart' as _i24;
+import '../types/frame_system/account_info.dart' as _i3;
+import '../types/frame_system/code_upgrade_authorization.dart' as _i12;
+import '../types/frame_system/event_record.dart' as _i8;
+import '../types/frame_system/last_runtime_upgrade_info.dart' as _i10;
+import '../types/frame_system/limits/block_length.dart' as _i23;
+import '../types/frame_system/limits/block_weights.dart' as _i20;
+import '../types/frame_system/limits/weights_per_class.dart' as _i22;
+import '../types/frame_system/pallet/call.dart' as _i18;
+import '../types/frame_system/phase.dart' as _i11;
+import '../types/gdev_runtime/runtime_call.dart' as _i17;
+import '../types/pallet_duniter_account/types/account_data.dart' as _i14;
+import '../types/primitive_types/h256.dart' as _i6;
+import '../types/sp_core/crypto/account_id32.dart' as _i2;
+import '../types/sp_runtime/generic/digest/digest.dart' as _i7;
+import '../types/sp_version/runtime_version.dart' as _i26;
+import '../types/sp_weights/runtime_db_weight.dart' as _i25;
+import '../types/sp_weights/weight_v2/weight.dart' as _i15;
+import '../types/tuples.dart' as _i19;
+import '../types/tuples_1.dart' as _i9;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageMap<_i2.AccountId32, _i3.AccountInfo> _account =
+      const _i1.StorageMap<_i2.AccountId32, _i3.AccountInfo>(
+    prefix: 'System',
+    storage: 'Account',
+    valueCodec: _i3.AccountInfo.codec,
+    hasher: _i1.StorageHasher.blake2b128Concat(_i2.AccountId32Codec()),
+  );
+
+  final _i1.StorageValue<int> _extrinsicCount = const _i1.StorageValue<int>(
+    prefix: 'System',
+    storage: 'ExtrinsicCount',
+    valueCodec: _i4.U32Codec.codec,
+  );
+
+  final _i1.StorageValue<_i5.PerDispatchClass> _blockWeight =
+      const _i1.StorageValue<_i5.PerDispatchClass>(
+    prefix: 'System',
+    storage: 'BlockWeight',
+    valueCodec: _i5.PerDispatchClass.codec,
+  );
+
+  final _i1.StorageValue<int> _allExtrinsicsLen = const _i1.StorageValue<int>(
+    prefix: 'System',
+    storage: 'AllExtrinsicsLen',
+    valueCodec: _i4.U32Codec.codec,
+  );
+
+  final _i1.StorageMap<int, _i6.H256> _blockHash =
+      const _i1.StorageMap<int, _i6.H256>(
+    prefix: 'System',
+    storage: 'BlockHash',
+    valueCodec: _i6.H256Codec(),
+    hasher: _i1.StorageHasher.twoxx64Concat(_i4.U32Codec.codec),
+  );
+
+  final _i1.StorageMap<int, List<int>> _extrinsicData =
+      const _i1.StorageMap<int, List<int>>(
+    prefix: 'System',
+    storage: 'ExtrinsicData',
+    valueCodec: _i4.U8SequenceCodec.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i4.U32Codec.codec),
+  );
+
+  final _i1.StorageValue<int> _number = const _i1.StorageValue<int>(
+    prefix: 'System',
+    storage: 'Number',
+    valueCodec: _i4.U32Codec.codec,
+  );
+
+  final _i1.StorageValue<_i6.H256> _parentHash =
+      const _i1.StorageValue<_i6.H256>(
+    prefix: 'System',
+    storage: 'ParentHash',
+    valueCodec: _i6.H256Codec(),
+  );
+
+  final _i1.StorageValue<_i7.Digest> _digest =
+      const _i1.StorageValue<_i7.Digest>(
+    prefix: 'System',
+    storage: 'Digest',
+    valueCodec: _i7.Digest.codec,
+  );
+
+  final _i1.StorageValue<List<_i8.EventRecord>> _events =
+      const _i1.StorageValue<List<_i8.EventRecord>>(
+    prefix: 'System',
+    storage: 'Events',
+    valueCodec: _i4.SequenceCodec<_i8.EventRecord>(_i8.EventRecord.codec),
+  );
+
+  final _i1.StorageValue<int> _eventCount = const _i1.StorageValue<int>(
+    prefix: 'System',
+    storage: 'EventCount',
+    valueCodec: _i4.U32Codec.codec,
+  );
+
+  final _i1.StorageMap<_i6.H256, List<_i9.Tuple2<int, int>>> _eventTopics =
+      const _i1.StorageMap<_i6.H256, List<_i9.Tuple2<int, int>>>(
+    prefix: 'System',
+    storage: 'EventTopics',
+    valueCodec:
+        _i4.SequenceCodec<_i9.Tuple2<int, int>>(_i9.Tuple2Codec<int, int>(
+      _i4.U32Codec.codec,
+      _i4.U32Codec.codec,
+    )),
+    hasher: _i1.StorageHasher.blake2b128Concat(_i6.H256Codec()),
+  );
+
+  final _i1.StorageValue<_i10.LastRuntimeUpgradeInfo> _lastRuntimeUpgrade =
+      const _i1.StorageValue<_i10.LastRuntimeUpgradeInfo>(
+    prefix: 'System',
+    storage: 'LastRuntimeUpgrade',
+    valueCodec: _i10.LastRuntimeUpgradeInfo.codec,
+  );
+
+  final _i1.StorageValue<bool> _upgradedToU32RefCount =
+      const _i1.StorageValue<bool>(
+    prefix: 'System',
+    storage: 'UpgradedToU32RefCount',
+    valueCodec: _i4.BoolCodec.codec,
+  );
+
+  final _i1.StorageValue<bool> _upgradedToTripleRefCount =
+      const _i1.StorageValue<bool>(
+    prefix: 'System',
+    storage: 'UpgradedToTripleRefCount',
+    valueCodec: _i4.BoolCodec.codec,
+  );
+
+  final _i1.StorageValue<_i11.Phase> _executionPhase =
+      const _i1.StorageValue<_i11.Phase>(
+    prefix: 'System',
+    storage: 'ExecutionPhase',
+    valueCodec: _i11.Phase.codec,
+  );
+
+  final _i1.StorageValue<_i12.CodeUpgradeAuthorization> _authorizedUpgrade =
+      const _i1.StorageValue<_i12.CodeUpgradeAuthorization>(
+    prefix: 'System',
+    storage: 'AuthorizedUpgrade',
+    valueCodec: _i12.CodeUpgradeAuthorization.codec,
+  );
+
+  /// The full account information for a particular account ID.
+  _i13.Future<_i3.AccountInfo> account(
+    _i2.AccountId32 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _account.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _account.decodeValue(bytes);
+    }
+    return _i3.AccountInfo(
+      nonce: 0,
+      consumers: 0,
+      providers: 0,
+      sufficients: 0,
+      data: _i14.AccountData(
+        free: BigInt.zero,
+        reserved: BigInt.zero,
+        feeFrozen: BigInt.zero,
+        linkedIdty: null,
+      ),
+    ); /* Default */
+  }
+
+  /// Total extrinsics count for the current block.
+  _i13.Future<int?> extrinsicCount({_i1.BlockHash? at}) async {
+    final hashedKey = _extrinsicCount.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _extrinsicCount.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// The current weight for the block.
+  _i13.Future<_i5.PerDispatchClass> blockWeight({_i1.BlockHash? at}) async {
+    final hashedKey = _blockWeight.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _blockWeight.decodeValue(bytes);
+    }
+    return _i5.PerDispatchClass(
+      normal: _i15.Weight(
+        refTime: BigInt.zero,
+        proofSize: BigInt.zero,
+      ),
+      operational: _i15.Weight(
+        refTime: BigInt.zero,
+        proofSize: BigInt.zero,
+      ),
+      mandatory: _i15.Weight(
+        refTime: BigInt.zero,
+        proofSize: BigInt.zero,
+      ),
+    ); /* Default */
+  }
+
+  /// Total length (in bytes) for all extrinsics put together, for the current block.
+  _i13.Future<int?> allExtrinsicsLen({_i1.BlockHash? at}) async {
+    final hashedKey = _allExtrinsicsLen.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _allExtrinsicsLen.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Map of block numbers to block hashes.
+  _i13.Future<_i6.H256> blockHash(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _blockHash.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _blockHash.decodeValue(bytes);
+    }
+    return List<int>.filled(
+      32,
+      0,
+      growable: false,
+    ); /* Default */
+  }
+
+  /// Extrinsics data for the current block (maps an extrinsic's index to its data).
+  _i13.Future<List<int>> extrinsicData(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _extrinsicData.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _extrinsicData.decodeValue(bytes);
+    }
+    return List<int>.filled(
+      0,
+      0,
+      growable: true,
+    ); /* Default */
+  }
+
+  /// The current block number being processed. Set by `execute_block`.
+  _i13.Future<int> number({_i1.BlockHash? at}) async {
+    final hashedKey = _number.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _number.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  /// Hash of the previous block.
+  _i13.Future<_i6.H256> parentHash({_i1.BlockHash? at}) async {
+    final hashedKey = _parentHash.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _parentHash.decodeValue(bytes);
+    }
+    return List<int>.filled(
+      32,
+      0,
+      growable: false,
+    ); /* Default */
+  }
+
+  /// Digest of the current block, also part of the block header.
+  _i13.Future<_i7.Digest> digest({_i1.BlockHash? at}) async {
+    final hashedKey = _digest.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _digest.decodeValue(bytes);
+    }
+    return const _i7.Digest(logs: []); /* Default */
+  }
+
+  /// Events deposited for the current block.
+  ///
+  /// NOTE: The item is unbound and should therefore never be read on chain.
+  /// It could otherwise inflate the PoV size of a block.
+  ///
+  /// Events have a large in-memory size. Box the events to not go out-of-memory
+  /// just in case someone still reads them from within the runtime.
+  _i13.Future<List<_i8.EventRecord>> events({_i1.BlockHash? at}) async {
+    final hashedKey = _events.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _events.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// The number of events in the `Events<T>` list.
+  _i13.Future<int> eventCount({_i1.BlockHash? at}) async {
+    final hashedKey = _eventCount.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _eventCount.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  /// Mapping between a topic (represented by T::Hash) and a vector of indexes
+  /// of events in the `<Events<T>>` list.
+  ///
+  /// All topic vectors have deterministic storage locations depending on the topic. This
+  /// allows light-clients to leverage the changes trie storage tracking mechanism and
+  /// in case of changes fetch the list of events of interest.
+  ///
+  /// The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
+  /// the `EventIndex` then in case if the topic has the same contents on the next block
+  /// no notification will be triggered thus the event might be lost.
+  _i13.Future<List<_i9.Tuple2<int, int>>> eventTopics(
+    _i6.H256 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _eventTopics.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _eventTopics.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
+  _i13.Future<_i10.LastRuntimeUpgradeInfo?> lastRuntimeUpgrade(
+      {_i1.BlockHash? at}) async {
+    final hashedKey = _lastRuntimeUpgrade.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _lastRuntimeUpgrade.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
+  _i13.Future<bool> upgradedToU32RefCount({_i1.BlockHash? at}) async {
+    final hashedKey = _upgradedToU32RefCount.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _upgradedToU32RefCount.decodeValue(bytes);
+    }
+    return false; /* Default */
+  }
+
+  /// True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
+  /// (default) if not.
+  _i13.Future<bool> upgradedToTripleRefCount({_i1.BlockHash? at}) async {
+    final hashedKey = _upgradedToTripleRefCount.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _upgradedToTripleRefCount.decodeValue(bytes);
+    }
+    return false; /* Default */
+  }
+
+  /// The execution phase of the block.
+  _i13.Future<_i11.Phase?> executionPhase({_i1.BlockHash? at}) async {
+    final hashedKey = _executionPhase.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _executionPhase.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// `Some` if a code upgrade has been authorized.
+  _i13.Future<_i12.CodeUpgradeAuthorization?> authorizedUpgrade(
+      {_i1.BlockHash? at}) async {
+    final hashedKey = _authorizedUpgrade.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _authorizedUpgrade.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Returns the storage key for `account`.
+  _i16.Uint8List accountKey(_i2.AccountId32 key1) {
+    final hashedKey = _account.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `extrinsicCount`.
+  _i16.Uint8List extrinsicCountKey() {
+    final hashedKey = _extrinsicCount.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `blockWeight`.
+  _i16.Uint8List blockWeightKey() {
+    final hashedKey = _blockWeight.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `allExtrinsicsLen`.
+  _i16.Uint8List allExtrinsicsLenKey() {
+    final hashedKey = _allExtrinsicsLen.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `blockHash`.
+  _i16.Uint8List blockHashKey(int key1) {
+    final hashedKey = _blockHash.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `extrinsicData`.
+  _i16.Uint8List extrinsicDataKey(int key1) {
+    final hashedKey = _extrinsicData.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `number`.
+  _i16.Uint8List numberKey() {
+    final hashedKey = _number.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `parentHash`.
+  _i16.Uint8List parentHashKey() {
+    final hashedKey = _parentHash.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `digest`.
+  _i16.Uint8List digestKey() {
+    final hashedKey = _digest.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `events`.
+  _i16.Uint8List eventsKey() {
+    final hashedKey = _events.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `eventCount`.
+  _i16.Uint8List eventCountKey() {
+    final hashedKey = _eventCount.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `eventTopics`.
+  _i16.Uint8List eventTopicsKey(_i6.H256 key1) {
+    final hashedKey = _eventTopics.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `lastRuntimeUpgrade`.
+  _i16.Uint8List lastRuntimeUpgradeKey() {
+    final hashedKey = _lastRuntimeUpgrade.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `upgradedToU32RefCount`.
+  _i16.Uint8List upgradedToU32RefCountKey() {
+    final hashedKey = _upgradedToU32RefCount.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `upgradedToTripleRefCount`.
+  _i16.Uint8List upgradedToTripleRefCountKey() {
+    final hashedKey = _upgradedToTripleRefCount.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `executionPhase`.
+  _i16.Uint8List executionPhaseKey() {
+    final hashedKey = _executionPhase.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `authorizedUpgrade`.
+  _i16.Uint8List authorizedUpgradeKey() {
+    final hashedKey = _authorizedUpgrade.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `account`.
+  _i16.Uint8List accountMapPrefix() {
+    final hashedKey = _account.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `blockHash`.
+  _i16.Uint8List blockHashMapPrefix() {
+    final hashedKey = _blockHash.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `extrinsicData`.
+  _i16.Uint8List extrinsicDataMapPrefix() {
+    final hashedKey = _extrinsicData.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `eventTopics`.
+  _i16.Uint8List eventTopicsMapPrefix() {
+    final hashedKey = _eventTopics.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::remark`].
+  _i17.RuntimeCall remark({required List<int> remark}) {
+    final call = _i18.Call.values.remark(remark: remark);
+    return _i17.RuntimeCall.values.system(call);
+  }
+
+  /// See [`Pallet::set_heap_pages`].
+  _i17.RuntimeCall setHeapPages({required BigInt pages}) {
+    final call = _i18.Call.values.setHeapPages(pages: pages);
+    return _i17.RuntimeCall.values.system(call);
+  }
+
+  /// See [`Pallet::set_code`].
+  _i17.RuntimeCall setCode({required List<int> code}) {
+    final call = _i18.Call.values.setCode(code: code);
+    return _i17.RuntimeCall.values.system(call);
+  }
+
+  /// See [`Pallet::set_code_without_checks`].
+  _i17.RuntimeCall setCodeWithoutChecks({required List<int> code}) {
+    final call = _i18.Call.values.setCodeWithoutChecks(code: code);
+    return _i17.RuntimeCall.values.system(call);
+  }
+
+  /// See [`Pallet::set_storage`].
+  _i17.RuntimeCall setStorage(
+      {required List<_i19.Tuple2<List<int>, List<int>>> items}) {
+    final call = _i18.Call.values.setStorage(items: items);
+    return _i17.RuntimeCall.values.system(call);
+  }
+
+  /// See [`Pallet::kill_storage`].
+  _i17.RuntimeCall killStorage({required List<List<int>> keys}) {
+    final call = _i18.Call.values.killStorage(keys: keys);
+    return _i17.RuntimeCall.values.system(call);
+  }
+
+  /// See [`Pallet::kill_prefix`].
+  _i17.RuntimeCall killPrefix({
+    required List<int> prefix,
+    required int subkeys,
+  }) {
+    final call = _i18.Call.values.killPrefix(
+      prefix: prefix,
+      subkeys: subkeys,
+    );
+    return _i17.RuntimeCall.values.system(call);
+  }
+
+  /// See [`Pallet::remark_with_event`].
+  _i17.RuntimeCall remarkWithEvent({required List<int> remark}) {
+    final call = _i18.Call.values.remarkWithEvent(remark: remark);
+    return _i17.RuntimeCall.values.system(call);
+  }
+
+  /// See [`Pallet::authorize_upgrade`].
+  _i17.RuntimeCall authorizeUpgrade({required _i6.H256 codeHash}) {
+    final call = _i18.Call.values.authorizeUpgrade(codeHash: codeHash);
+    return _i17.RuntimeCall.values.system(call);
+  }
+
+  /// See [`Pallet::authorize_upgrade_without_checks`].
+  _i17.RuntimeCall authorizeUpgradeWithoutChecks({required _i6.H256 codeHash}) {
+    final call =
+        _i18.Call.values.authorizeUpgradeWithoutChecks(codeHash: codeHash);
+    return _i17.RuntimeCall.values.system(call);
+  }
+
+  /// See [`Pallet::apply_authorized_upgrade`].
+  _i17.RuntimeCall applyAuthorizedUpgrade({required List<int> code}) {
+    final call = _i18.Call.values.applyAuthorizedUpgrade(code: code);
+    return _i17.RuntimeCall.values.system(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// Block & extrinsics weights: base values and limits.
+  final _i20.BlockWeights blockWeights = _i20.BlockWeights(
+    baseBlock: _i15.Weight(
+      refTime: BigInt.from(130621000),
+      proofSize: BigInt.zero,
+    ),
+    maxBlock: _i15.Weight(
+      refTime: BigInt.from(2000000000000),
+      proofSize: BigInt.from(5242880),
+    ),
+    perClass: _i21.PerDispatchClass(
+      normal: _i22.WeightsPerClass(
+        baseExtrinsic: _i15.Weight(
+          refTime: BigInt.from(78235000),
+          proofSize: BigInt.zero,
+        ),
+        maxExtrinsic: _i15.Weight(
+          refTime: BigInt.from(1299921765000),
+          proofSize: BigInt.from(3407872),
+        ),
+        maxTotal: _i15.Weight(
+          refTime: BigInt.from(1500000000000),
+          proofSize: BigInt.from(3932160),
+        ),
+        reserved: _i15.Weight(
+          refTime: BigInt.zero,
+          proofSize: BigInt.zero,
+        ),
+      ),
+      operational: _i22.WeightsPerClass(
+        baseExtrinsic: _i15.Weight(
+          refTime: BigInt.from(78235000),
+          proofSize: BigInt.zero,
+        ),
+        maxExtrinsic: _i15.Weight(
+          refTime: BigInt.from(1799921765000),
+          proofSize: BigInt.from(4718592),
+        ),
+        maxTotal: _i15.Weight(
+          refTime: BigInt.from(2000000000000),
+          proofSize: BigInt.from(5242880),
+        ),
+        reserved: _i15.Weight(
+          refTime: BigInt.from(500000000000),
+          proofSize: BigInt.from(1310720),
+        ),
+      ),
+      mandatory: _i22.WeightsPerClass(
+        baseExtrinsic: _i15.Weight(
+          refTime: BigInt.from(78235000),
+          proofSize: BigInt.zero,
+        ),
+        maxExtrinsic: null,
+        maxTotal: null,
+        reserved: null,
+      ),
+    ),
+  );
+
+  /// The maximum length of a block (in bytes).
+  final _i23.BlockLength blockLength = const _i23.BlockLength(
+      max: _i24.PerDispatchClass(
+    normal: 3932160,
+    operational: 5242880,
+    mandatory: 5242880,
+  ));
+
+  /// Maximum number of block number to block hash mappings to keep (oldest pruned first).
+  final int blockHashCount = 2400;
+
+  /// The weight of runtime database operations the runtime can invoke.
+  final _i25.RuntimeDbWeight dbWeight = _i25.RuntimeDbWeight(
+    read: BigInt.from(30120000),
+    write: BigInt.from(121522000),
+  );
+
+  /// Get the chain's current version.
+  final _i26.RuntimeVersion version = const _i26.RuntimeVersion(
+    specName: 'gdev',
+    implName: 'duniter-gdev',
+    authoringVersion: 1,
+    specVersion: 801,
+    implVersion: 1,
+    apis: [
+      _i19.Tuple2<List<int>, int>(
+        <int>[
+          104,
+          122,
+          212,
+          74,
+          211,
+          127,
+          3,
+          194,
+        ],
+        1,
+      ),
+      _i19.Tuple2<List<int>, int>(
+        <int>[
+          203,
+          202,
+          37,
+          227,
+          159,
+          20,
+          35,
+          135,
+        ],
+        2,
+      ),
+      _i19.Tuple2<List<int>, int>(
+        <int>[
+          223,
+          106,
+          203,
+          104,
+          153,
+          7,
+          96,
+          155,
+        ],
+        4,
+      ),
+      _i19.Tuple2<List<int>, int>(
+        <int>[
+          55,
+          227,
+          151,
+          252,
+          124,
+          145,
+          245,
+          228,
+        ],
+        2,
+      ),
+      _i19.Tuple2<List<int>, int>(
+        <int>[
+          64,
+          254,
+          58,
+          212,
+          1,
+          248,
+          149,
+          154,
+        ],
+        6,
+      ),
+      _i19.Tuple2<List<int>, int>(
+        <int>[
+          210,
+          188,
+          152,
+          151,
+          238,
+          208,
+          143,
+          21,
+        ],
+        3,
+      ),
+      _i19.Tuple2<List<int>, int>(
+        <int>[
+          247,
+          139,
+          39,
+          139,
+          229,
+          63,
+          69,
+          76,
+        ],
+        2,
+      ),
+      _i19.Tuple2<List<int>, int>(
+        <int>[
+          171,
+          60,
+          5,
+          114,
+          41,
+          31,
+          235,
+          139,
+        ],
+        1,
+      ),
+      _i19.Tuple2<List<int>, int>(
+        <int>[
+          237,
+          153,
+          197,
+          172,
+          178,
+          94,
+          237,
+          245,
+        ],
+        3,
+      ),
+      _i19.Tuple2<List<int>, int>(
+        <int>[
+          188,
+          157,
+          137,
+          144,
+          79,
+          91,
+          146,
+          63,
+        ],
+        1,
+      ),
+      _i19.Tuple2<List<int>, int>(
+        <int>[
+          55,
+          200,
+          187,
+          19,
+          80,
+          169,
+          162,
+          168,
+        ],
+        4,
+      ),
+      _i19.Tuple2<List<int>, int>(
+        <int>[
+          251,
+          197,
+          119,
+          185,
+          215,
+          71,
+          239,
+          214,
+        ],
+        1,
+      ),
+    ],
+    transactionVersion: 1,
+    stateVersion: 1,
+  );
+
+  /// The designated SS58 prefix of this chain.
+  ///
+  /// This replaces the "ss58Format" property declared in the chain spec. Reason is
+  /// that the runtime should know about the prefix in order to make use of it as
+  /// an identifier of the chain.
+  final int sS58Prefix = 42;
+}
diff --git a/lib/src/models/generated/duniter/pallets/technical_committee.dart b/lib/src/models/generated/duniter/pallets/technical_committee.dart
new file mode 100644
index 0000000000000000000000000000000000000000..9968e88ac8c869dfab6f38e4013757d47936523e
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/technical_committee.dart
@@ -0,0 +1,284 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i7;
+import 'dart:typed_data' as _i8;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i3;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i4;
+import '../types/pallet_collective/pallet/call.dart' as _i9;
+import '../types/pallet_collective/votes.dart' as _i5;
+import '../types/primitive_types/h256.dart' as _i2;
+import '../types/sp_core/crypto/account_id32.dart' as _i6;
+import '../types/sp_weights/weight_v2/weight.dart' as _i10;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<List<_i2.H256>> _proposals =
+      const _i1.StorageValue<List<_i2.H256>>(
+    prefix: 'TechnicalCommittee',
+    storage: 'Proposals',
+    valueCodec: _i3.SequenceCodec<_i2.H256>(_i2.H256Codec()),
+  );
+
+  final _i1.StorageMap<_i2.H256, _i4.RuntimeCall> _proposalOf =
+      const _i1.StorageMap<_i2.H256, _i4.RuntimeCall>(
+    prefix: 'TechnicalCommittee',
+    storage: 'ProposalOf',
+    valueCodec: _i4.RuntimeCall.codec,
+    hasher: _i1.StorageHasher.identity(_i2.H256Codec()),
+  );
+
+  final _i1.StorageMap<_i2.H256, _i5.Votes> _voting =
+      const _i1.StorageMap<_i2.H256, _i5.Votes>(
+    prefix: 'TechnicalCommittee',
+    storage: 'Voting',
+    valueCodec: _i5.Votes.codec,
+    hasher: _i1.StorageHasher.identity(_i2.H256Codec()),
+  );
+
+  final _i1.StorageValue<int> _proposalCount = const _i1.StorageValue<int>(
+    prefix: 'TechnicalCommittee',
+    storage: 'ProposalCount',
+    valueCodec: _i3.U32Codec.codec,
+  );
+
+  final _i1.StorageValue<List<_i6.AccountId32>> _members =
+      const _i1.StorageValue<List<_i6.AccountId32>>(
+    prefix: 'TechnicalCommittee',
+    storage: 'Members',
+    valueCodec: _i3.SequenceCodec<_i6.AccountId32>(_i6.AccountId32Codec()),
+  );
+
+  final _i1.StorageValue<_i6.AccountId32> _prime =
+      const _i1.StorageValue<_i6.AccountId32>(
+    prefix: 'TechnicalCommittee',
+    storage: 'Prime',
+    valueCodec: _i6.AccountId32Codec(),
+  );
+
+  /// The hashes of the active proposals.
+  _i7.Future<List<_i2.H256>> proposals({_i1.BlockHash? at}) async {
+    final hashedKey = _proposals.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _proposals.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Actual proposal for a given hash, if it's current.
+  _i7.Future<_i4.RuntimeCall?> proposalOf(
+    _i2.H256 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _proposalOf.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _proposalOf.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Votes on a given proposal, if it is ongoing.
+  _i7.Future<_i5.Votes?> voting(
+    _i2.H256 key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _voting.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _voting.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Proposals so far.
+  _i7.Future<int> proposalCount({_i1.BlockHash? at}) async {
+    final hashedKey = _proposalCount.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _proposalCount.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  /// The current members of the collective. This is stored sorted (just by value).
+  _i7.Future<List<_i6.AccountId32>> members({_i1.BlockHash? at}) async {
+    final hashedKey = _members.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _members.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// The prime member that helps determine the default vote behavior in case of absentations.
+  _i7.Future<_i6.AccountId32?> prime({_i1.BlockHash? at}) async {
+    final hashedKey = _prime.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _prime.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Returns the storage key for `proposals`.
+  _i8.Uint8List proposalsKey() {
+    final hashedKey = _proposals.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `proposalOf`.
+  _i8.Uint8List proposalOfKey(_i2.H256 key1) {
+    final hashedKey = _proposalOf.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `voting`.
+  _i8.Uint8List votingKey(_i2.H256 key1) {
+    final hashedKey = _voting.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `proposalCount`.
+  _i8.Uint8List proposalCountKey() {
+    final hashedKey = _proposalCount.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `members`.
+  _i8.Uint8List membersKey() {
+    final hashedKey = _members.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `prime`.
+  _i8.Uint8List primeKey() {
+    final hashedKey = _prime.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `proposalOf`.
+  _i8.Uint8List proposalOfMapPrefix() {
+    final hashedKey = _proposalOf.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `voting`.
+  _i8.Uint8List votingMapPrefix() {
+    final hashedKey = _voting.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::set_members`].
+  _i4.RuntimeCall setMembers({
+    required List<_i6.AccountId32> newMembers,
+    _i6.AccountId32? prime,
+    required int oldCount,
+  }) {
+    final call = _i9.Call.values.setMembers(
+      newMembers: newMembers,
+      prime: prime,
+      oldCount: oldCount,
+    );
+    return _i4.RuntimeCall.values.technicalCommittee(call);
+  }
+
+  /// See [`Pallet::execute`].
+  _i4.RuntimeCall execute({
+    required _i4.RuntimeCall proposal,
+    required BigInt lengthBound,
+  }) {
+    final call = _i9.Call.values.execute(
+      proposal: proposal,
+      lengthBound: lengthBound,
+    );
+    return _i4.RuntimeCall.values.technicalCommittee(call);
+  }
+
+  /// See [`Pallet::propose`].
+  _i4.RuntimeCall propose({
+    required BigInt threshold,
+    required _i4.RuntimeCall proposal,
+    required BigInt lengthBound,
+  }) {
+    final call = _i9.Call.values.propose(
+      threshold: threshold,
+      proposal: proposal,
+      lengthBound: lengthBound,
+    );
+    return _i4.RuntimeCall.values.technicalCommittee(call);
+  }
+
+  /// See [`Pallet::vote`].
+  _i4.RuntimeCall vote({
+    required _i2.H256 proposal,
+    required BigInt index,
+    required bool approve,
+  }) {
+    final call = _i9.Call.values.vote(
+      proposal: proposal,
+      index: index,
+      approve: approve,
+    );
+    return _i4.RuntimeCall.values.technicalCommittee(call);
+  }
+
+  /// See [`Pallet::disapprove_proposal`].
+  _i4.RuntimeCall disapproveProposal({required _i2.H256 proposalHash}) {
+    final call = _i9.Call.values.disapproveProposal(proposalHash: proposalHash);
+    return _i4.RuntimeCall.values.technicalCommittee(call);
+  }
+
+  /// See [`Pallet::close`].
+  _i4.RuntimeCall close({
+    required _i2.H256 proposalHash,
+    required BigInt index,
+    required _i10.Weight proposalWeightBound,
+    required BigInt lengthBound,
+  }) {
+    final call = _i9.Call.values.close(
+      proposalHash: proposalHash,
+      index: index,
+      proposalWeightBound: proposalWeightBound,
+      lengthBound: lengthBound,
+    );
+    return _i4.RuntimeCall.values.technicalCommittee(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// The maximum weight of a dispatch call that can be proposed and executed.
+  final _i10.Weight maxProposalWeight = _i10.Weight(
+    refTime: BigInt.from(1000000000000),
+    proofSize: BigInt.from(2621440),
+  );
+}
diff --git a/lib/src/models/generated/duniter/pallets/timestamp.dart b/lib/src/models/generated/duniter/pallets/timestamp.dart
new file mode 100644
index 0000000000000000000000000000000000000000..b8e7d9dc7265f49c833a3040934c00551254e2ff
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/timestamp.dart
@@ -0,0 +1,90 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i3;
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i5;
+import '../types/pallet_timestamp/pallet/call.dart' as _i6;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<BigInt> _now = const _i1.StorageValue<BigInt>(
+    prefix: 'Timestamp',
+    storage: 'Now',
+    valueCodec: _i2.U64Codec.codec,
+  );
+
+  final _i1.StorageValue<bool> _didUpdate = const _i1.StorageValue<bool>(
+    prefix: 'Timestamp',
+    storage: 'DidUpdate',
+    valueCodec: _i2.BoolCodec.codec,
+  );
+
+  /// The current time for the current block.
+  _i3.Future<BigInt> now({_i1.BlockHash? at}) async {
+    final hashedKey = _now.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _now.decodeValue(bytes);
+    }
+    return BigInt.zero; /* Default */
+  }
+
+  /// Whether the timestamp has been updated in this block.
+  ///
+  /// This value is updated to `true` upon successful submission of a timestamp by a node.
+  /// It is then checked at the end of each block execution in the `on_finalize` hook.
+  _i3.Future<bool> didUpdate({_i1.BlockHash? at}) async {
+    final hashedKey = _didUpdate.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _didUpdate.decodeValue(bytes);
+    }
+    return false; /* Default */
+  }
+
+  /// Returns the storage key for `now`.
+  _i4.Uint8List nowKey() {
+    final hashedKey = _now.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `didUpdate`.
+  _i4.Uint8List didUpdateKey() {
+    final hashedKey = _didUpdate.hashedKey();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::set`].
+  _i5.RuntimeCall set({required BigInt now}) {
+    final call = _i6.Call.values.set(now: now);
+    return _i5.RuntimeCall.values.timestamp(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// The minimum period between blocks.
+  ///
+  /// Be aware that this is different to the *expected* period that the block production
+  /// apparatus provides. Your chosen consensus system will generally work with this to
+  /// determine a sensible block time. For example, in the Aura pallet it will be double this
+  /// period on default settings.
+  final BigInt minimumPeriod = BigInt.from(3000);
+}
diff --git a/lib/src/models/generated/duniter/pallets/transaction_payment.dart b/lib/src/models/generated/duniter/pallets/transaction_payment.dart
new file mode 100644
index 0000000000000000000000000000000000000000..43f6af1b1fa43c2be6f89e0670f9c84bae30ac39
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/transaction_payment.dart
@@ -0,0 +1,94 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i4;
+import 'dart:typed_data' as _i5;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+
+import '../types/pallet_transaction_payment/releases.dart' as _i3;
+import '../types/sp_arithmetic/fixed_point/fixed_u128.dart' as _i2;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<_i2.FixedU128> _nextFeeMultiplier =
+      const _i1.StorageValue<_i2.FixedU128>(
+    prefix: 'TransactionPayment',
+    storage: 'NextFeeMultiplier',
+    valueCodec: _i2.FixedU128Codec(),
+  );
+
+  final _i1.StorageValue<_i3.Releases> _storageVersion =
+      const _i1.StorageValue<_i3.Releases>(
+    prefix: 'TransactionPayment',
+    storage: 'StorageVersion',
+    valueCodec: _i3.Releases.codec,
+  );
+
+  _i4.Future<_i2.FixedU128> nextFeeMultiplier({_i1.BlockHash? at}) async {
+    final hashedKey = _nextFeeMultiplier.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _nextFeeMultiplier.decodeValue(bytes);
+    }
+    return BigInt.parse(
+      '1000000000000000000',
+      radix: 10,
+    ); /* Default */
+  }
+
+  _i4.Future<_i3.Releases> storageVersion({_i1.BlockHash? at}) async {
+    final hashedKey = _storageVersion.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _storageVersion.decodeValue(bytes);
+    }
+    return _i3.Releases.v1Ancient; /* Default */
+  }
+
+  /// Returns the storage key for `nextFeeMultiplier`.
+  _i5.Uint8List nextFeeMultiplierKey() {
+    final hashedKey = _nextFeeMultiplier.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `storageVersion`.
+  _i5.Uint8List storageVersionKey() {
+    final hashedKey = _storageVersion.hashedKey();
+    return hashedKey;
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
+  /// `priority`
+  ///
+  /// This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
+  /// added to a tip component in regular `priority` calculations.
+  /// It means that a `Normal` transaction can front-run a similarly-sized `Operational`
+  /// extrinsic (with no tip), by including a tip value greater than the virtual tip.
+  ///
+  /// ```rust,ignore
+  /// // For `Normal`
+  /// let priority = priority_calc(tip);
+  ///
+  /// // For `Operational`
+  /// let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
+  /// let priority = priority_calc(tip + virtual_tip);
+  /// ```
+  ///
+  /// Note that since we use `final_fee` the multiplier applies also to the regular `tip`
+  /// sent with the transaction. So, not only does the transaction get a priority bump based
+  /// on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
+  /// transactions.
+  final int operationalFeeMultiplier = 5;
+}
diff --git a/lib/src/models/generated/duniter/pallets/treasury.dart b/lib/src/models/generated/duniter/pallets/treasury.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d3168c7b29b92370587ff5e4a8fd2348a31689b0
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/treasury.dart
@@ -0,0 +1,317 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i5;
+import 'dart:typed_data' as _i6;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../types/frame_support/pallet_id.dart' as _i11;
+import '../types/gdev_runtime/runtime_call.dart' as _i7;
+import '../types/pallet_treasury/pallet/call.dart' as _i9;
+import '../types/pallet_treasury/proposal.dart' as _i3;
+import '../types/pallet_treasury/spend_status.dart' as _i4;
+import '../types/sp_arithmetic/per_things/permill.dart' as _i10;
+import '../types/sp_runtime/multiaddress/multi_address.dart' as _i8;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<int> _proposalCount = const _i1.StorageValue<int>(
+    prefix: 'Treasury',
+    storage: 'ProposalCount',
+    valueCodec: _i2.U32Codec.codec,
+  );
+
+  final _i1.StorageMap<int, _i3.Proposal> _proposals =
+      const _i1.StorageMap<int, _i3.Proposal>(
+    prefix: 'Treasury',
+    storage: 'Proposals',
+    valueCodec: _i3.Proposal.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i2.U32Codec.codec),
+  );
+
+  final _i1.StorageValue<BigInt> _deactivated = const _i1.StorageValue<BigInt>(
+    prefix: 'Treasury',
+    storage: 'Deactivated',
+    valueCodec: _i2.U64Codec.codec,
+  );
+
+  final _i1.StorageValue<List<int>> _approvals =
+      const _i1.StorageValue<List<int>>(
+    prefix: 'Treasury',
+    storage: 'Approvals',
+    valueCodec: _i2.U32SequenceCodec.codec,
+  );
+
+  final _i1.StorageValue<int> _spendCount = const _i1.StorageValue<int>(
+    prefix: 'Treasury',
+    storage: 'SpendCount',
+    valueCodec: _i2.U32Codec.codec,
+  );
+
+  final _i1.StorageMap<int, _i4.SpendStatus> _spends =
+      const _i1.StorageMap<int, _i4.SpendStatus>(
+    prefix: 'Treasury',
+    storage: 'Spends',
+    valueCodec: _i4.SpendStatus.codec,
+    hasher: _i1.StorageHasher.twoxx64Concat(_i2.U32Codec.codec),
+  );
+
+  /// Number of proposals that have been made.
+  _i5.Future<int> proposalCount({_i1.BlockHash? at}) async {
+    final hashedKey = _proposalCount.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _proposalCount.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  /// Proposals that have been made.
+  _i5.Future<_i3.Proposal?> proposals(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _proposals.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _proposals.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// The amount which has been reported as inactive to Currency.
+  _i5.Future<BigInt> deactivated({_i1.BlockHash? at}) async {
+    final hashedKey = _deactivated.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _deactivated.decodeValue(bytes);
+    }
+    return BigInt.zero; /* Default */
+  }
+
+  /// Proposal indices that have been approved but not yet awarded.
+  _i5.Future<List<int>> approvals({_i1.BlockHash? at}) async {
+    final hashedKey = _approvals.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _approvals.decodeValue(bytes);
+    }
+    return List<int>.filled(
+      0,
+      0,
+      growable: true,
+    ); /* Default */
+  }
+
+  /// The count of spends that have been made.
+  _i5.Future<int> spendCount({_i1.BlockHash? at}) async {
+    final hashedKey = _spendCount.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _spendCount.decodeValue(bytes);
+    }
+    return 0; /* Default */
+  }
+
+  /// Spends that have been approved and being processed.
+  _i5.Future<_i4.SpendStatus?> spends(
+    int key1, {
+    _i1.BlockHash? at,
+  }) async {
+    final hashedKey = _spends.hashedKeyFor(key1);
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _spends.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Returns the storage key for `proposalCount`.
+  _i6.Uint8List proposalCountKey() {
+    final hashedKey = _proposalCount.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `proposals`.
+  _i6.Uint8List proposalsKey(int key1) {
+    final hashedKey = _proposals.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `deactivated`.
+  _i6.Uint8List deactivatedKey() {
+    final hashedKey = _deactivated.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `approvals`.
+  _i6.Uint8List approvalsKey() {
+    final hashedKey = _approvals.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `spendCount`.
+  _i6.Uint8List spendCountKey() {
+    final hashedKey = _spendCount.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `spends`.
+  _i6.Uint8List spendsKey(int key1) {
+    final hashedKey = _spends.hashedKeyFor(key1);
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `proposals`.
+  _i6.Uint8List proposalsMapPrefix() {
+    final hashedKey = _proposals.mapPrefix();
+    return hashedKey;
+  }
+
+  /// Returns the storage map key prefix for `spends`.
+  _i6.Uint8List spendsMapPrefix() {
+    final hashedKey = _spends.mapPrefix();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::propose_spend`].
+  _i7.RuntimeCall proposeSpend({
+    required BigInt value,
+    required _i8.MultiAddress beneficiary,
+  }) {
+    final call = _i9.Call.values.proposeSpend(
+      value: value,
+      beneficiary: beneficiary,
+    );
+    return _i7.RuntimeCall.values.treasury(call);
+  }
+
+  /// See [`Pallet::reject_proposal`].
+  _i7.RuntimeCall rejectProposal({required BigInt proposalId}) {
+    final call = _i9.Call.values.rejectProposal(proposalId: proposalId);
+    return _i7.RuntimeCall.values.treasury(call);
+  }
+
+  /// See [`Pallet::approve_proposal`].
+  _i7.RuntimeCall approveProposal({required BigInt proposalId}) {
+    final call = _i9.Call.values.approveProposal(proposalId: proposalId);
+    return _i7.RuntimeCall.values.treasury(call);
+  }
+
+  /// See [`Pallet::spend_local`].
+  _i7.RuntimeCall spendLocal({
+    required BigInt amount,
+    required _i8.MultiAddress beneficiary,
+  }) {
+    final call = _i9.Call.values.spendLocal(
+      amount: amount,
+      beneficiary: beneficiary,
+    );
+    return _i7.RuntimeCall.values.treasury(call);
+  }
+
+  /// See [`Pallet::remove_approval`].
+  _i7.RuntimeCall removeApproval({required BigInt proposalId}) {
+    final call = _i9.Call.values.removeApproval(proposalId: proposalId);
+    return _i7.RuntimeCall.values.treasury(call);
+  }
+
+  /// See [`Pallet::spend`].
+  _i7.RuntimeCall spend({
+    required dynamic assetKind,
+    required BigInt amount,
+    required _i8.MultiAddress beneficiary,
+    int? validFrom,
+  }) {
+    final call = _i9.Call.values.spend(
+      assetKind: assetKind,
+      amount: amount,
+      beneficiary: beneficiary,
+      validFrom: validFrom,
+    );
+    return _i7.RuntimeCall.values.treasury(call);
+  }
+
+  /// See [`Pallet::payout`].
+  _i7.RuntimeCall payout({required int index}) {
+    final call = _i9.Call.values.payout(index: index);
+    return _i7.RuntimeCall.values.treasury(call);
+  }
+
+  /// See [`Pallet::check_status`].
+  _i7.RuntimeCall checkStatus({required int index}) {
+    final call = _i9.Call.values.checkStatus(index: index);
+    return _i7.RuntimeCall.values.treasury(call);
+  }
+
+  /// See [`Pallet::void_spend`].
+  _i7.RuntimeCall voidSpend({required int index}) {
+    final call = _i9.Call.values.voidSpend(index: index);
+    return _i7.RuntimeCall.values.treasury(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// Fraction of a proposal's value that should be bonded in order to place the proposal.
+  /// An accepted proposal gets these back. A rejected proposal does not.
+  final _i10.Permill proposalBond = 10000;
+
+  /// Minimum amount of funds that should be placed in a deposit for making a proposal.
+  final BigInt proposalBondMinimum = BigInt.from(10000);
+
+  /// Maximum amount of funds that should be placed in a deposit for making a proposal.
+  final BigInt? proposalBondMaximum = null;
+
+  /// Period between successive spends.
+  final int spendPeriod = 14400;
+
+  /// Percentage of spare funds (if any) that are burnt per spend period.
+  final _i10.Permill burn = 0;
+
+  /// The treasury's pallet id, used for deriving its sovereign account ID.
+  final _i11.PalletId palletId = const <int>[
+    112,
+    121,
+    47,
+    116,
+    114,
+    115,
+    114,
+    121,
+  ];
+
+  /// The maximum number of approvals that can wait in the spending queue.
+  ///
+  /// NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
+  final int maxApprovals = 100;
+
+  /// The period during which an approved treasury spend has to be claimed.
+  final int payoutPeriod = 10;
+}
diff --git a/lib/src/models/generated/duniter/pallets/universal_dividend.dart b/lib/src/models/generated/duniter/pallets/universal_dividend.dart
new file mode 100644
index 0000000000000000000000000000000000000000..967c689396bf9e32b8a2b939ec3227c5884b5025
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/universal_dividend.dart
@@ -0,0 +1,229 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:async' as _i4;
+import 'dart:typed_data' as _i5;
+
+import 'package:polkadart/polkadart.dart' as _i1;
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../types/gdev_runtime/runtime_call.dart' as _i6;
+import '../types/pallet_universal_dividend/pallet/call.dart' as _i7;
+import '../types/sp_arithmetic/per_things/perbill.dart' as _i9;
+import '../types/sp_runtime/multiaddress/multi_address.dart' as _i8;
+import '../types/tuples.dart' as _i3;
+
+class Queries {
+  const Queries(this.__api);
+
+  final _i1.StateApi __api;
+
+  final _i1.StorageValue<BigInt> _currentUd = const _i1.StorageValue<BigInt>(
+    prefix: 'UniversalDividend',
+    storage: 'CurrentUd',
+    valueCodec: _i2.U64Codec.codec,
+  );
+
+  final _i1.StorageValue<int> _currentUdIndex = const _i1.StorageValue<int>(
+    prefix: 'UniversalDividend',
+    storage: 'CurrentUdIndex',
+    valueCodec: _i2.U16Codec.codec,
+  );
+
+  final _i1.StorageValue<BigInt> _monetaryMass = const _i1.StorageValue<BigInt>(
+    prefix: 'UniversalDividend',
+    storage: 'MonetaryMass',
+    valueCodec: _i2.U64Codec.codec,
+  );
+
+  final _i1.StorageValue<BigInt> _nextReeval = const _i1.StorageValue<BigInt>(
+    prefix: 'UniversalDividend',
+    storage: 'NextReeval',
+    valueCodec: _i2.U64Codec.codec,
+  );
+
+  final _i1.StorageValue<BigInt> _nextUd = const _i1.StorageValue<BigInt>(
+    prefix: 'UniversalDividend',
+    storage: 'NextUd',
+    valueCodec: _i2.U64Codec.codec,
+  );
+
+  final _i1.StorageValue<List<_i3.Tuple2<int, BigInt>>> _pastReevals =
+      const _i1.StorageValue<List<_i3.Tuple2<int, BigInt>>>(
+    prefix: 'UniversalDividend',
+    storage: 'PastReevals',
+    valueCodec:
+        _i2.SequenceCodec<_i3.Tuple2<int, BigInt>>(_i3.Tuple2Codec<int, BigInt>(
+      _i2.U16Codec.codec,
+      _i2.U64Codec.codec,
+    )),
+  );
+
+  /// Current UD amount
+  _i4.Future<BigInt> currentUd({_i1.BlockHash? at}) async {
+    final hashedKey = _currentUd.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _currentUd.decodeValue(bytes);
+    }
+    return BigInt.zero; /* Default */
+  }
+
+  /// Current UD index
+  _i4.Future<int> currentUdIndex({_i1.BlockHash? at}) async {
+    final hashedKey = _currentUdIndex.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _currentUdIndex.decodeValue(bytes);
+    }
+    return 1; /* Default */
+  }
+
+  /// Total quantity of money created by universal dividend (does not take into account the possible destruction of money)
+  _i4.Future<BigInt> monetaryMass({_i1.BlockHash? at}) async {
+    final hashedKey = _monetaryMass.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _monetaryMass.decodeValue(bytes);
+    }
+    return BigInt.zero; /* Default */
+  }
+
+  /// Next UD reevaluation
+  _i4.Future<BigInt?> nextReeval({_i1.BlockHash? at}) async {
+    final hashedKey = _nextReeval.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _nextReeval.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Next UD creation
+  _i4.Future<BigInt?> nextUd({_i1.BlockHash? at}) async {
+    final hashedKey = _nextUd.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _nextUd.decodeValue(bytes);
+    }
+    return null; /* Nullable */
+  }
+
+  /// Past UD reevaluations
+  _i4.Future<List<_i3.Tuple2<int, BigInt>>> pastReevals(
+      {_i1.BlockHash? at}) async {
+    final hashedKey = _pastReevals.hashedKey();
+    final bytes = await __api.getStorage(
+      hashedKey,
+      at: at,
+    );
+    if (bytes != null) {
+      return _pastReevals.decodeValue(bytes);
+    }
+    return []; /* Default */
+  }
+
+  /// Returns the storage key for `currentUd`.
+  _i5.Uint8List currentUdKey() {
+    final hashedKey = _currentUd.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `currentUdIndex`.
+  _i5.Uint8List currentUdIndexKey() {
+    final hashedKey = _currentUdIndex.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `monetaryMass`.
+  _i5.Uint8List monetaryMassKey() {
+    final hashedKey = _monetaryMass.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `nextReeval`.
+  _i5.Uint8List nextReevalKey() {
+    final hashedKey = _nextReeval.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `nextUd`.
+  _i5.Uint8List nextUdKey() {
+    final hashedKey = _nextUd.hashedKey();
+    return hashedKey;
+  }
+
+  /// Returns the storage key for `pastReevals`.
+  _i5.Uint8List pastReevalsKey() {
+    final hashedKey = _pastReevals.hashedKey();
+    return hashedKey;
+  }
+}
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::claim_uds`].
+  _i6.RuntimeCall claimUds() {
+    final call = _i7.Call.values.claimUds();
+    return _i6.RuntimeCall.values.universalDividend(call);
+  }
+
+  /// See [`Pallet::transfer_ud`].
+  _i6.RuntimeCall transferUd({
+    required _i8.MultiAddress dest,
+    required BigInt value,
+  }) {
+    final call = _i7.Call.values.transferUd(
+      dest: dest,
+      value: value,
+    );
+    return _i6.RuntimeCall.values.universalDividend(call);
+  }
+
+  /// See [`Pallet::transfer_ud_keep_alive`].
+  _i6.RuntimeCall transferUdKeepAlive({
+    required _i8.MultiAddress dest,
+    required BigInt value,
+  }) {
+    final call = _i7.Call.values.transferUdKeepAlive(
+      dest: dest,
+      value: value,
+    );
+    return _i6.RuntimeCall.values.universalDividend(call);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// Maximum number of past UD revaluations to keep in storage.
+  final int maxPastReeval = 160;
+
+  /// Square of the money growth rate per ud reevaluation period
+  final _i9.Perbill squareMoneyGrowthRate = 2381440;
+
+  /// Universal dividend creation period (ms)
+  final BigInt udCreationPeriod = BigInt.from(14400000);
+
+  /// Universal dividend reevaluation period (ms)
+  final BigInt udReevalPeriod = BigInt.from(86400000);
+
+  /// The number of units to divide the amounts expressed in number of UDs
+  /// Example: If you wish to express the UD amounts with a maximum precision of the order
+  /// of the milliUD, choose 1000
+  final BigInt unitsPerUd = BigInt.from(1000);
+}
diff --git a/lib/src/models/generated/duniter/pallets/upgrade_origin.dart b/lib/src/models/generated/duniter/pallets/upgrade_origin.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d4c6043c3488155dbcfd9c64322bf99052a846b6
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/upgrade_origin.dart
@@ -0,0 +1,26 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import '../types/gdev_runtime/runtime_call.dart' as _i1;
+import '../types/pallet_upgrade_origin/pallet/call.dart' as _i2;
+import '../types/sp_weights/weight_v2/weight.dart' as _i3;
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::dispatch_as_root`].
+  _i1.RuntimeCall dispatchAsRoot({required _i1.RuntimeCall call}) {
+    final call0 = _i2.Call.values.dispatchAsRoot(call: call);
+    return _i1.RuntimeCall.values.upgradeOrigin(call0);
+  }
+
+  /// See [`Pallet::dispatch_as_root_unchecked_weight`].
+  _i1.RuntimeCall dispatchAsRootUncheckedWeight({
+    required _i1.RuntimeCall call,
+    required _i3.Weight weight,
+  }) {
+    final call0 = _i2.Call.values.dispatchAsRootUncheckedWeight(
+      call: call,
+      weight: weight,
+    );
+    return _i1.RuntimeCall.values.upgradeOrigin(call0);
+  }
+}
diff --git a/lib/src/models/generated/duniter/pallets/utility.dart b/lib/src/models/generated/duniter/pallets/utility.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8306fd033fd7b61c395d07b46c8f7b48980b1f7b
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/utility.dart
@@ -0,0 +1,70 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import '../types/gdev_runtime/origin_caller.dart' as _i3;
+import '../types/gdev_runtime/runtime_call.dart' as _i1;
+import '../types/pallet_utility/pallet/call.dart' as _i2;
+import '../types/sp_weights/weight_v2/weight.dart' as _i4;
+
+class Txs {
+  const Txs();
+
+  /// See [`Pallet::batch`].
+  _i1.RuntimeCall batch({required List<_i1.RuntimeCall> calls}) {
+    final call = _i2.Call.values.batch(calls: calls);
+    return _i1.RuntimeCall.values.utility(call);
+  }
+
+  /// See [`Pallet::as_derivative`].
+  _i1.RuntimeCall asDerivative({
+    required int index,
+    required _i1.RuntimeCall call,
+  }) {
+    final call0 = _i2.Call.values.asDerivative(
+      index: index,
+      call: call,
+    );
+    return _i1.RuntimeCall.values.utility(call0);
+  }
+
+  /// See [`Pallet::batch_all`].
+  _i1.RuntimeCall batchAll({required List<_i1.RuntimeCall> calls}) {
+    final call = _i2.Call.values.batchAll(calls: calls);
+    return _i1.RuntimeCall.values.utility(call);
+  }
+
+  /// See [`Pallet::dispatch_as`].
+  _i1.RuntimeCall dispatchAs({
+    required _i3.OriginCaller asOrigin,
+    required _i1.RuntimeCall call,
+  }) {
+    final call0 = _i2.Call.values.dispatchAs(
+      asOrigin: asOrigin,
+      call: call,
+    );
+    return _i1.RuntimeCall.values.utility(call0);
+  }
+
+  /// See [`Pallet::force_batch`].
+  _i1.RuntimeCall forceBatch({required List<_i1.RuntimeCall> calls}) {
+    final call = _i2.Call.values.forceBatch(calls: calls);
+    return _i1.RuntimeCall.values.utility(call);
+  }
+
+  /// See [`Pallet::with_weight`].
+  _i1.RuntimeCall withWeight({
+    required _i1.RuntimeCall call,
+    required _i4.Weight weight,
+  }) {
+    final call0 = _i2.Call.values.withWeight(
+      call: call,
+      weight: weight,
+    );
+    return _i1.RuntimeCall.values.utility(call0);
+  }
+}
+
+class Constants {
+  Constants();
+
+  /// The limit on the number of batched calls.
+  final int batchedCallsLimit = 10922;
+}
diff --git a/lib/src/models/generated/duniter/pallets/wot.dart b/lib/src/models/generated/duniter/pallets/wot.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6bd75c95f1aea7db80195dc2171dff1224fc5477
--- /dev/null
+++ b/lib/src/models/generated/duniter/pallets/wot.dart
@@ -0,0 +1,9 @@
+class Constants {
+  Constants();
+
+  final int firstIssuableOn = 0;
+
+  final int minCertForMembership = 3;
+
+  final int minCertForCreateIdtyRight = 3;
+}
diff --git a/lib/src/models/generated/duniter/types/b_tree_set.dart b/lib/src/models/generated/duniter/types/b_tree_set.dart
new file mode 100644
index 0000000000000000000000000000000000000000..1f8554a182365ced0af07c081716fcc78e31a77b
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/b_tree_set.dart
@@ -0,0 +1,33 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import 'sp_core/crypto/account_id32.dart' as _i1;
+
+typedef BTreeSet = List<_i1.AccountId32>;
+
+class BTreeSetCodec with _i2.Codec<BTreeSet> {
+  const BTreeSetCodec();
+
+  @override
+  BTreeSet decode(_i2.Input input) {
+    return const _i2.SequenceCodec<_i1.AccountId32>(_i1.AccountId32Codec())
+        .decode(input);
+  }
+
+  @override
+  void encodeTo(
+    BTreeSet value,
+    _i2.Output output,
+  ) {
+    const _i2.SequenceCodec<_i1.AccountId32>(_i1.AccountId32Codec()).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(BTreeSet value) {
+    return const _i2.SequenceCodec<_i1.AccountId32>(_i1.AccountId32Codec())
+        .sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/bounded_collections/bounded_btree_set/bounded_b_tree_set.dart b/lib/src/models/generated/duniter/types/bounded_collections/bounded_btree_set/bounded_b_tree_set.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e905a67ed25d4b3b5656a5aa293b77b87576cdc2
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/bounded_collections/bounded_btree_set/bounded_b_tree_set.dart
@@ -0,0 +1,33 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../../b_tree_set.dart' as _i1;
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+
+typedef BoundedBTreeSet = _i1.BTreeSet;
+
+class BoundedBTreeSetCodec with _i2.Codec<BoundedBTreeSet> {
+  const BoundedBTreeSetCodec();
+
+  @override
+  BoundedBTreeSet decode(_i2.Input input) {
+    return const _i2.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+        .decode(input);
+  }
+
+  @override
+  void encodeTo(
+    BoundedBTreeSet value,
+    _i2.Output output,
+  ) {
+    const _i2.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec()).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(BoundedBTreeSet value) {
+    return const _i1.BTreeSetCodec().sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/common_runtime/entities/idty_data.dart b/lib/src/models/generated/duniter/types/common_runtime/entities/idty_data.dart
new file mode 100644
index 0000000000000000000000000000000000000000..32ebf072201608ec4cba2dd0378682bd3352a3c3
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/common_runtime/entities/idty_data.dart
@@ -0,0 +1,61 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class IdtyData {
+  const IdtyData({required this.firstEligibleUd});
+
+  factory IdtyData.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// pallet_universal_dividend::FirstEligibleUd
+  final int firstEligibleUd;
+
+  static const $IdtyDataCodec codec = $IdtyDataCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, int> toJson() => {'firstEligibleUd': firstEligibleUd};
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is IdtyData && other.firstEligibleUd == firstEligibleUd;
+
+  @override
+  int get hashCode => firstEligibleUd.hashCode;
+}
+
+class $IdtyDataCodec with _i1.Codec<IdtyData> {
+  const $IdtyDataCodec();
+
+  @override
+  void encodeTo(
+    IdtyData obj,
+    _i1.Output output,
+  ) {
+    _i1.U16Codec.codec.encodeTo(
+      obj.firstEligibleUd,
+      output,
+    );
+  }
+
+  @override
+  IdtyData decode(_i1.Input input) {
+    return IdtyData(firstEligibleUd: _i1.U16Codec.codec.decode(input));
+  }
+
+  @override
+  int sizeHint(IdtyData obj) {
+    int size = 0;
+    size = size + _i1.U16Codec.codec.sizeHint(obj.firstEligibleUd);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/common_runtime/entities/validator_full_identification.dart b/lib/src/models/generated/duniter/types/common_runtime/entities/validator_full_identification.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f4e605963793e335754f68057c36a9f3518a2be3
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/common_runtime/entities/validator_full_identification.dart
@@ -0,0 +1,30 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef ValidatorFullIdentification = dynamic;
+
+class ValidatorFullIdentificationCodec
+    with _i1.Codec<ValidatorFullIdentification> {
+  const ValidatorFullIdentificationCodec();
+
+  @override
+  ValidatorFullIdentification decode(_i1.Input input) {
+    return _i1.NullCodec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    ValidatorFullIdentification value,
+    _i1.Output output,
+  ) {
+    _i1.NullCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(ValidatorFullIdentification value) {
+    return _i1.NullCodec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/cow.dart b/lib/src/models/generated/duniter/types/cow.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c1e00c6b174794e945c98a643d5226b657f9e63c
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/cow.dart
@@ -0,0 +1,43 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import 'tuples.dart' as _i1;
+
+typedef Cow = List<_i1.Tuple2<List<int>, int>>;
+
+class CowCodec with _i2.Codec<Cow> {
+  const CowCodec();
+
+  @override
+  Cow decode(_i2.Input input) {
+    return const _i2.SequenceCodec<_i1.Tuple2<List<int>, int>>(
+        _i1.Tuple2Codec<List<int>, int>(
+      _i2.U8ArrayCodec(8),
+      _i2.U32Codec.codec,
+    )).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Cow value,
+    _i2.Output output,
+  ) {
+    const _i2.SequenceCodec<_i1.Tuple2<List<int>, int>>(
+        _i1.Tuple2Codec<List<int>, int>(
+      _i2.U8ArrayCodec(8),
+      _i2.U32Codec.codec,
+    )).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Cow value) {
+    return const _i2.SequenceCodec<_i1.Tuple2<List<int>, int>>(
+        _i1.Tuple2Codec<List<int>, int>(
+      _i2.U8ArrayCodec(8),
+      _i2.U32Codec.codec,
+    )).sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/finality_grandpa/equivocation_1.dart b/lib/src/models/generated/duniter/types/finality_grandpa/equivocation_1.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7341b45bab960d71f860c3e808dcc8686e3ca5c9
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/finality_grandpa/equivocation_1.dart
@@ -0,0 +1,140 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i6;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../sp_consensus_grandpa/app/public.dart' as _i2;
+import '../sp_consensus_grandpa/app/signature.dart' as _i5;
+import '../tuples.dart' as _i3;
+import 'prevote.dart' as _i4;
+
+class Equivocation {
+  const Equivocation({
+    required this.roundNumber,
+    required this.identity,
+    required this.first,
+    required this.second,
+  });
+
+  factory Equivocation.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// u64
+  final BigInt roundNumber;
+
+  /// Id
+  final _i2.Public identity;
+
+  /// (V, S)
+  final _i3.Tuple2<_i4.Prevote, _i5.Signature> first;
+
+  /// (V, S)
+  final _i3.Tuple2<_i4.Prevote, _i5.Signature> second;
+
+  static const $EquivocationCodec codec = $EquivocationCodec();
+
+  _i6.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'roundNumber': roundNumber,
+        'identity': identity.toList(),
+        'first': [
+          first.value0.toJson(),
+          first.value1.toList(),
+        ],
+        'second': [
+          second.value0.toJson(),
+          second.value1.toList(),
+        ],
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Equivocation &&
+          other.roundNumber == roundNumber &&
+          other.identity == identity &&
+          other.first == first &&
+          other.second == second;
+
+  @override
+  int get hashCode => Object.hash(
+        roundNumber,
+        identity,
+        first,
+        second,
+      );
+}
+
+class $EquivocationCodec with _i1.Codec<Equivocation> {
+  const $EquivocationCodec();
+
+  @override
+  void encodeTo(
+    Equivocation obj,
+    _i1.Output output,
+  ) {
+    _i1.U64Codec.codec.encodeTo(
+      obj.roundNumber,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.identity,
+      output,
+    );
+    const _i3.Tuple2Codec<_i4.Prevote, _i5.Signature>(
+      _i4.Prevote.codec,
+      _i5.SignatureCodec(),
+    ).encodeTo(
+      obj.first,
+      output,
+    );
+    const _i3.Tuple2Codec<_i4.Prevote, _i5.Signature>(
+      _i4.Prevote.codec,
+      _i5.SignatureCodec(),
+    ).encodeTo(
+      obj.second,
+      output,
+    );
+  }
+
+  @override
+  Equivocation decode(_i1.Input input) {
+    return Equivocation(
+      roundNumber: _i1.U64Codec.codec.decode(input),
+      identity: const _i1.U8ArrayCodec(32).decode(input),
+      first: const _i3.Tuple2Codec<_i4.Prevote, _i5.Signature>(
+        _i4.Prevote.codec,
+        _i5.SignatureCodec(),
+      ).decode(input),
+      second: const _i3.Tuple2Codec<_i4.Prevote, _i5.Signature>(
+        _i4.Prevote.codec,
+        _i5.SignatureCodec(),
+      ).decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Equivocation obj) {
+    int size = 0;
+    size = size + _i1.U64Codec.codec.sizeHint(obj.roundNumber);
+    size = size + const _i2.PublicCodec().sizeHint(obj.identity);
+    size = size +
+        const _i3.Tuple2Codec<_i4.Prevote, _i5.Signature>(
+          _i4.Prevote.codec,
+          _i5.SignatureCodec(),
+        ).sizeHint(obj.first);
+    size = size +
+        const _i3.Tuple2Codec<_i4.Prevote, _i5.Signature>(
+          _i4.Prevote.codec,
+          _i5.SignatureCodec(),
+        ).sizeHint(obj.second);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/finality_grandpa/equivocation_2.dart b/lib/src/models/generated/duniter/types/finality_grandpa/equivocation_2.dart
new file mode 100644
index 0000000000000000000000000000000000000000..0f3d42128f85ffa78e6c2e5ba4aa65aadf21a9d2
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/finality_grandpa/equivocation_2.dart
@@ -0,0 +1,140 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i6;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../sp_consensus_grandpa/app/public.dart' as _i2;
+import '../sp_consensus_grandpa/app/signature.dart' as _i5;
+import '../tuples.dart' as _i3;
+import 'precommit.dart' as _i4;
+
+class Equivocation {
+  const Equivocation({
+    required this.roundNumber,
+    required this.identity,
+    required this.first,
+    required this.second,
+  });
+
+  factory Equivocation.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// u64
+  final BigInt roundNumber;
+
+  /// Id
+  final _i2.Public identity;
+
+  /// (V, S)
+  final _i3.Tuple2<_i4.Precommit, _i5.Signature> first;
+
+  /// (V, S)
+  final _i3.Tuple2<_i4.Precommit, _i5.Signature> second;
+
+  static const $EquivocationCodec codec = $EquivocationCodec();
+
+  _i6.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'roundNumber': roundNumber,
+        'identity': identity.toList(),
+        'first': [
+          first.value0.toJson(),
+          first.value1.toList(),
+        ],
+        'second': [
+          second.value0.toJson(),
+          second.value1.toList(),
+        ],
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Equivocation &&
+          other.roundNumber == roundNumber &&
+          other.identity == identity &&
+          other.first == first &&
+          other.second == second;
+
+  @override
+  int get hashCode => Object.hash(
+        roundNumber,
+        identity,
+        first,
+        second,
+      );
+}
+
+class $EquivocationCodec with _i1.Codec<Equivocation> {
+  const $EquivocationCodec();
+
+  @override
+  void encodeTo(
+    Equivocation obj,
+    _i1.Output output,
+  ) {
+    _i1.U64Codec.codec.encodeTo(
+      obj.roundNumber,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.identity,
+      output,
+    );
+    const _i3.Tuple2Codec<_i4.Precommit, _i5.Signature>(
+      _i4.Precommit.codec,
+      _i5.SignatureCodec(),
+    ).encodeTo(
+      obj.first,
+      output,
+    );
+    const _i3.Tuple2Codec<_i4.Precommit, _i5.Signature>(
+      _i4.Precommit.codec,
+      _i5.SignatureCodec(),
+    ).encodeTo(
+      obj.second,
+      output,
+    );
+  }
+
+  @override
+  Equivocation decode(_i1.Input input) {
+    return Equivocation(
+      roundNumber: _i1.U64Codec.codec.decode(input),
+      identity: const _i1.U8ArrayCodec(32).decode(input),
+      first: const _i3.Tuple2Codec<_i4.Precommit, _i5.Signature>(
+        _i4.Precommit.codec,
+        _i5.SignatureCodec(),
+      ).decode(input),
+      second: const _i3.Tuple2Codec<_i4.Precommit, _i5.Signature>(
+        _i4.Precommit.codec,
+        _i5.SignatureCodec(),
+      ).decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Equivocation obj) {
+    int size = 0;
+    size = size + _i1.U64Codec.codec.sizeHint(obj.roundNumber);
+    size = size + const _i2.PublicCodec().sizeHint(obj.identity);
+    size = size +
+        const _i3.Tuple2Codec<_i4.Precommit, _i5.Signature>(
+          _i4.Precommit.codec,
+          _i5.SignatureCodec(),
+        ).sizeHint(obj.first);
+    size = size +
+        const _i3.Tuple2Codec<_i4.Precommit, _i5.Signature>(
+          _i4.Precommit.codec,
+          _i5.SignatureCodec(),
+        ).sizeHint(obj.second);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/finality_grandpa/precommit.dart b/lib/src/models/generated/duniter/types/finality_grandpa/precommit.dart
new file mode 100644
index 0000000000000000000000000000000000000000..1de5403f3dda3419e4920e6d732b8b7f6513388e
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/finality_grandpa/precommit.dart
@@ -0,0 +1,89 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../primitive_types/h256.dart' as _i2;
+
+class Precommit {
+  const Precommit({
+    required this.targetHash,
+    required this.targetNumber,
+  });
+
+  factory Precommit.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// H
+  final _i2.H256 targetHash;
+
+  /// N
+  final int targetNumber;
+
+  static const $PrecommitCodec codec = $PrecommitCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'targetHash': targetHash.toList(),
+        'targetNumber': targetNumber,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Precommit &&
+          _i4.listsEqual(
+            other.targetHash,
+            targetHash,
+          ) &&
+          other.targetNumber == targetNumber;
+
+  @override
+  int get hashCode => Object.hash(
+        targetHash,
+        targetNumber,
+      );
+}
+
+class $PrecommitCodec with _i1.Codec<Precommit> {
+  const $PrecommitCodec();
+
+  @override
+  void encodeTo(
+    Precommit obj,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.targetHash,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.targetNumber,
+      output,
+    );
+  }
+
+  @override
+  Precommit decode(_i1.Input input) {
+    return Precommit(
+      targetHash: const _i1.U8ArrayCodec(32).decode(input),
+      targetNumber: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Precommit obj) {
+    int size = 0;
+    size = size + const _i2.H256Codec().sizeHint(obj.targetHash);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.targetNumber);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/finality_grandpa/prevote.dart b/lib/src/models/generated/duniter/types/finality_grandpa/prevote.dart
new file mode 100644
index 0000000000000000000000000000000000000000..78696e4a0eac64fdbc07ae681d7dc91388e0a927
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/finality_grandpa/prevote.dart
@@ -0,0 +1,89 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../primitive_types/h256.dart' as _i2;
+
+class Prevote {
+  const Prevote({
+    required this.targetHash,
+    required this.targetNumber,
+  });
+
+  factory Prevote.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// H
+  final _i2.H256 targetHash;
+
+  /// N
+  final int targetNumber;
+
+  static const $PrevoteCodec codec = $PrevoteCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'targetHash': targetHash.toList(),
+        'targetNumber': targetNumber,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Prevote &&
+          _i4.listsEqual(
+            other.targetHash,
+            targetHash,
+          ) &&
+          other.targetNumber == targetNumber;
+
+  @override
+  int get hashCode => Object.hash(
+        targetHash,
+        targetNumber,
+      );
+}
+
+class $PrevoteCodec with _i1.Codec<Prevote> {
+  const $PrevoteCodec();
+
+  @override
+  void encodeTo(
+    Prevote obj,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.targetHash,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.targetNumber,
+      output,
+    );
+  }
+
+  @override
+  Prevote decode(_i1.Input input) {
+    return Prevote(
+      targetHash: const _i1.U8ArrayCodec(32).decode(input),
+      targetNumber: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Prevote obj) {
+    int size = 0;
+    size = size + const _i2.H256Codec().sizeHint(obj.targetHash);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.targetNumber);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_support/dispatch/dispatch_class.dart b/lib/src/models/generated/duniter/types/frame_support/dispatch/dispatch_class.dart
new file mode 100644
index 0000000000000000000000000000000000000000..3c2ba5bee412db5bfba96ef7d244c284055a19bd
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_support/dispatch/dispatch_class.dart
@@ -0,0 +1,60 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum DispatchClass {
+  normal('Normal', 0),
+  operational('Operational', 1),
+  mandatory('Mandatory', 2);
+
+  const DispatchClass(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory DispatchClass.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $DispatchClassCodec codec = $DispatchClassCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $DispatchClassCodec with _i1.Codec<DispatchClass> {
+  const $DispatchClassCodec();
+
+  @override
+  DispatchClass decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return DispatchClass.normal;
+      case 1:
+        return DispatchClass.operational;
+      case 2:
+        return DispatchClass.mandatory;
+      default:
+        throw Exception('DispatchClass: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    DispatchClass value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_support/dispatch/dispatch_info.dart b/lib/src/models/generated/duniter/types/frame_support/dispatch/dispatch_info.dart
new file mode 100644
index 0000000000000000000000000000000000000000..0a955b661c045f90f3e3eec54a46fbcfb323b062
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_support/dispatch/dispatch_info.dart
@@ -0,0 +1,100 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i5;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_weights/weight_v2/weight.dart' as _i2;
+import 'dispatch_class.dart' as _i3;
+import 'pays.dart' as _i4;
+
+class DispatchInfo {
+  const DispatchInfo({
+    required this.weight,
+    required this.class_,
+    required this.paysFee,
+  });
+
+  factory DispatchInfo.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// Weight
+  final _i2.Weight weight;
+
+  /// DispatchClass
+  final _i3.DispatchClass class_;
+
+  /// Pays
+  final _i4.Pays paysFee;
+
+  static const $DispatchInfoCodec codec = $DispatchInfoCodec();
+
+  _i5.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'weight': weight.toJson(),
+        'class': class_.toJson(),
+        'paysFee': paysFee.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is DispatchInfo &&
+          other.weight == weight &&
+          other.class_ == class_ &&
+          other.paysFee == paysFee;
+
+  @override
+  int get hashCode => Object.hash(
+        weight,
+        class_,
+        paysFee,
+      );
+}
+
+class $DispatchInfoCodec with _i1.Codec<DispatchInfo> {
+  const $DispatchInfoCodec();
+
+  @override
+  void encodeTo(
+    DispatchInfo obj,
+    _i1.Output output,
+  ) {
+    _i2.Weight.codec.encodeTo(
+      obj.weight,
+      output,
+    );
+    _i3.DispatchClass.codec.encodeTo(
+      obj.class_,
+      output,
+    );
+    _i4.Pays.codec.encodeTo(
+      obj.paysFee,
+      output,
+    );
+  }
+
+  @override
+  DispatchInfo decode(_i1.Input input) {
+    return DispatchInfo(
+      weight: _i2.Weight.codec.decode(input),
+      class_: _i3.DispatchClass.codec.decode(input),
+      paysFee: _i4.Pays.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(DispatchInfo obj) {
+    int size = 0;
+    size = size + _i2.Weight.codec.sizeHint(obj.weight);
+    size = size + _i3.DispatchClass.codec.sizeHint(obj.class_);
+    size = size + _i4.Pays.codec.sizeHint(obj.paysFee);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_support/dispatch/pays.dart b/lib/src/models/generated/duniter/types/frame_support/dispatch/pays.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e05bac53a5f775a3256edaba21ab7f23e4be708b
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_support/dispatch/pays.dart
@@ -0,0 +1,57 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum Pays {
+  yes('Yes', 0),
+  no('No', 1);
+
+  const Pays(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Pays.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $PaysCodec codec = $PaysCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $PaysCodec with _i1.Codec<Pays> {
+  const $PaysCodec();
+
+  @override
+  Pays decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Pays.yes;
+      case 1:
+        return Pays.no;
+      default:
+        throw Exception('Pays: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Pays value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_support/dispatch/per_dispatch_class_1.dart b/lib/src/models/generated/duniter/types/frame_support/dispatch/per_dispatch_class_1.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5a6fe514329934b4241f4499cccde1c69bb0c105
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_support/dispatch/per_dispatch_class_1.dart
@@ -0,0 +1,98 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_weights/weight_v2/weight.dart' as _i2;
+
+class PerDispatchClass {
+  const PerDispatchClass({
+    required this.normal,
+    required this.operational,
+    required this.mandatory,
+  });
+
+  factory PerDispatchClass.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// T
+  final _i2.Weight normal;
+
+  /// T
+  final _i2.Weight operational;
+
+  /// T
+  final _i2.Weight mandatory;
+
+  static const $PerDispatchClassCodec codec = $PerDispatchClassCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, Map<String, BigInt>> toJson() => {
+        'normal': normal.toJson(),
+        'operational': operational.toJson(),
+        'mandatory': mandatory.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is PerDispatchClass &&
+          other.normal == normal &&
+          other.operational == operational &&
+          other.mandatory == mandatory;
+
+  @override
+  int get hashCode => Object.hash(
+        normal,
+        operational,
+        mandatory,
+      );
+}
+
+class $PerDispatchClassCodec with _i1.Codec<PerDispatchClass> {
+  const $PerDispatchClassCodec();
+
+  @override
+  void encodeTo(
+    PerDispatchClass obj,
+    _i1.Output output,
+  ) {
+    _i2.Weight.codec.encodeTo(
+      obj.normal,
+      output,
+    );
+    _i2.Weight.codec.encodeTo(
+      obj.operational,
+      output,
+    );
+    _i2.Weight.codec.encodeTo(
+      obj.mandatory,
+      output,
+    );
+  }
+
+  @override
+  PerDispatchClass decode(_i1.Input input) {
+    return PerDispatchClass(
+      normal: _i2.Weight.codec.decode(input),
+      operational: _i2.Weight.codec.decode(input),
+      mandatory: _i2.Weight.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(PerDispatchClass obj) {
+    int size = 0;
+    size = size + _i2.Weight.codec.sizeHint(obj.normal);
+    size = size + _i2.Weight.codec.sizeHint(obj.operational);
+    size = size + _i2.Weight.codec.sizeHint(obj.mandatory);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_support/dispatch/per_dispatch_class_2.dart b/lib/src/models/generated/duniter/types/frame_support/dispatch/per_dispatch_class_2.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7b98dfe96801d85c4b711e40fc6f0ffc5c3a39b6
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_support/dispatch/per_dispatch_class_2.dart
@@ -0,0 +1,98 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../frame_system/limits/weights_per_class.dart' as _i2;
+
+class PerDispatchClass {
+  const PerDispatchClass({
+    required this.normal,
+    required this.operational,
+    required this.mandatory,
+  });
+
+  factory PerDispatchClass.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// T
+  final _i2.WeightsPerClass normal;
+
+  /// T
+  final _i2.WeightsPerClass operational;
+
+  /// T
+  final _i2.WeightsPerClass mandatory;
+
+  static const $PerDispatchClassCodec codec = $PerDispatchClassCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, Map<String, Map<String, BigInt>?>> toJson() => {
+        'normal': normal.toJson(),
+        'operational': operational.toJson(),
+        'mandatory': mandatory.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is PerDispatchClass &&
+          other.normal == normal &&
+          other.operational == operational &&
+          other.mandatory == mandatory;
+
+  @override
+  int get hashCode => Object.hash(
+        normal,
+        operational,
+        mandatory,
+      );
+}
+
+class $PerDispatchClassCodec with _i1.Codec<PerDispatchClass> {
+  const $PerDispatchClassCodec();
+
+  @override
+  void encodeTo(
+    PerDispatchClass obj,
+    _i1.Output output,
+  ) {
+    _i2.WeightsPerClass.codec.encodeTo(
+      obj.normal,
+      output,
+    );
+    _i2.WeightsPerClass.codec.encodeTo(
+      obj.operational,
+      output,
+    );
+    _i2.WeightsPerClass.codec.encodeTo(
+      obj.mandatory,
+      output,
+    );
+  }
+
+  @override
+  PerDispatchClass decode(_i1.Input input) {
+    return PerDispatchClass(
+      normal: _i2.WeightsPerClass.codec.decode(input),
+      operational: _i2.WeightsPerClass.codec.decode(input),
+      mandatory: _i2.WeightsPerClass.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(PerDispatchClass obj) {
+    int size = 0;
+    size = size + _i2.WeightsPerClass.codec.sizeHint(obj.normal);
+    size = size + _i2.WeightsPerClass.codec.sizeHint(obj.operational);
+    size = size + _i2.WeightsPerClass.codec.sizeHint(obj.mandatory);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_support/dispatch/per_dispatch_class_3.dart b/lib/src/models/generated/duniter/types/frame_support/dispatch/per_dispatch_class_3.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f442b028bfca1fc5d34d053f8dc5a5f8e3c621db
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_support/dispatch/per_dispatch_class_3.dart
@@ -0,0 +1,96 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class PerDispatchClass {
+  const PerDispatchClass({
+    required this.normal,
+    required this.operational,
+    required this.mandatory,
+  });
+
+  factory PerDispatchClass.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// T
+  final int normal;
+
+  /// T
+  final int operational;
+
+  /// T
+  final int mandatory;
+
+  static const $PerDispatchClassCodec codec = $PerDispatchClassCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, int> toJson() => {
+        'normal': normal,
+        'operational': operational,
+        'mandatory': mandatory,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is PerDispatchClass &&
+          other.normal == normal &&
+          other.operational == operational &&
+          other.mandatory == mandatory;
+
+  @override
+  int get hashCode => Object.hash(
+        normal,
+        operational,
+        mandatory,
+      );
+}
+
+class $PerDispatchClassCodec with _i1.Codec<PerDispatchClass> {
+  const $PerDispatchClassCodec();
+
+  @override
+  void encodeTo(
+    PerDispatchClass obj,
+    _i1.Output output,
+  ) {
+    _i1.U32Codec.codec.encodeTo(
+      obj.normal,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.operational,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.mandatory,
+      output,
+    );
+  }
+
+  @override
+  PerDispatchClass decode(_i1.Input input) {
+    return PerDispatchClass(
+      normal: _i1.U32Codec.codec.decode(input),
+      operational: _i1.U32Codec.codec.decode(input),
+      mandatory: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(PerDispatchClass obj) {
+    int size = 0;
+    size = size + _i1.U32Codec.codec.sizeHint(obj.normal);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.operational);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.mandatory);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_support/dispatch/raw_origin.dart b/lib/src/models/generated/duniter/types/frame_support/dispatch/raw_origin.dart
new file mode 100644
index 0000000000000000000000000000000000000000..9154c4c7becb366e63d6675400c1a628f957d9e8
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_support/dispatch/raw_origin.dart
@@ -0,0 +1,188 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+
+abstract class RawOrigin {
+  const RawOrigin();
+
+  factory RawOrigin.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $RawOriginCodec codec = $RawOriginCodec();
+
+  static const $RawOrigin values = $RawOrigin();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $RawOrigin {
+  const $RawOrigin();
+
+  Root root() {
+    return const Root();
+  }
+
+  Signed signed(_i3.AccountId32 value0) {
+    return Signed(value0);
+  }
+
+  None none() {
+    return const None();
+  }
+}
+
+class $RawOriginCodec with _i1.Codec<RawOrigin> {
+  const $RawOriginCodec();
+
+  @override
+  RawOrigin decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return const Root();
+      case 1:
+        return Signed._decode(input);
+      case 2:
+        return const None();
+      default:
+        throw Exception('RawOrigin: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    RawOrigin value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Root:
+        (value as Root).encodeTo(output);
+        break;
+      case Signed:
+        (value as Signed).encodeTo(output);
+        break;
+      case None:
+        (value as None).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'RawOrigin: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(RawOrigin value) {
+    switch (value.runtimeType) {
+      case Root:
+        return 1;
+      case Signed:
+        return (value as Signed)._sizeHint();
+      case None:
+        return 1;
+      default:
+        throw Exception(
+            'RawOrigin: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class Root extends RawOrigin {
+  const Root();
+
+  @override
+  Map<String, dynamic> toJson() => {'Root': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is Root;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+class Signed extends RawOrigin {
+  const Signed(this.value0);
+
+  factory Signed._decode(_i1.Input input) {
+    return Signed(const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// AccountId
+  final _i3.AccountId32 value0;
+
+  @override
+  Map<String, List<int>> toJson() => {'Signed': value0.toList()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Signed &&
+          _i4.listsEqual(
+            other.value0,
+            value0,
+          );
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class None extends RawOrigin {
+  const None();
+
+  @override
+  Map<String, dynamic> toJson() => {'None': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is None;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/frame_support/pallet_id.dart b/lib/src/models/generated/duniter/types/frame_support/pallet_id.dart
new file mode 100644
index 0000000000000000000000000000000000000000..9c862f63cce27c150fe30ca87c0aaf5edcb473f0
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_support/pallet_id.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef PalletId = List<int>;
+
+class PalletIdCodec with _i1.Codec<PalletId> {
+  const PalletIdCodec();
+
+  @override
+  PalletId decode(_i1.Input input) {
+    return const _i1.U8ArrayCodec(8).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    PalletId value,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(8).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(PalletId value) {
+    return const _i1.U8ArrayCodec(8).sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_support/traits/preimages/bounded.dart b/lib/src/models/generated/duniter/types/frame_support/traits/preimages/bounded.dart
new file mode 100644
index 0000000000000000000000000000000000000000..3588d6517d5c61b13a32bac0649704bc780a4865
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_support/traits/preimages/bounded.dart
@@ -0,0 +1,271 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../../../primitive_types/h256.dart' as _i3;
+
+abstract class Bounded {
+  const Bounded();
+
+  factory Bounded.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $BoundedCodec codec = $BoundedCodec();
+
+  static const $Bounded values = $Bounded();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Bounded {
+  const $Bounded();
+
+  Legacy legacy({required _i3.H256 hash}) {
+    return Legacy(hash: hash);
+  }
+
+  Inline inline(List<int> value0) {
+    return Inline(value0);
+  }
+
+  Lookup lookup({
+    required _i3.H256 hash,
+    required int len,
+  }) {
+    return Lookup(
+      hash: hash,
+      len: len,
+    );
+  }
+}
+
+class $BoundedCodec with _i1.Codec<Bounded> {
+  const $BoundedCodec();
+
+  @override
+  Bounded decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Legacy._decode(input);
+      case 1:
+        return Inline._decode(input);
+      case 2:
+        return Lookup._decode(input);
+      default:
+        throw Exception('Bounded: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Bounded value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Legacy:
+        (value as Legacy).encodeTo(output);
+        break;
+      case Inline:
+        (value as Inline).encodeTo(output);
+        break;
+      case Lookup:
+        (value as Lookup).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Bounded: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Bounded value) {
+    switch (value.runtimeType) {
+      case Legacy:
+        return (value as Legacy)._sizeHint();
+      case Inline:
+        return (value as Inline)._sizeHint();
+      case Lookup:
+        return (value as Lookup)._sizeHint();
+      default:
+        throw Exception(
+            'Bounded: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class Legacy extends Bounded {
+  const Legacy({required this.hash});
+
+  factory Legacy._decode(_i1.Input input) {
+    return Legacy(hash: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// H::Output
+  final _i3.H256 hash;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'Legacy': {'hash': hash.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.H256Codec().sizeHint(hash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      hash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Legacy &&
+          _i4.listsEqual(
+            other.hash,
+            hash,
+          );
+
+  @override
+  int get hashCode => hash.hashCode;
+}
+
+class Inline extends Bounded {
+  const Inline(this.value0);
+
+  factory Inline._decode(_i1.Input input) {
+    return Inline(_i1.U8SequenceCodec.codec.decode(input));
+  }
+
+  /// BoundedInline
+  final List<int> value0;
+
+  @override
+  Map<String, List<int>> toJson() => {'Inline': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Inline &&
+          _i4.listsEqual(
+            other.value0,
+            value0,
+          );
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Lookup extends Bounded {
+  const Lookup({
+    required this.hash,
+    required this.len,
+  });
+
+  factory Lookup._decode(_i1.Input input) {
+    return Lookup(
+      hash: const _i1.U8ArrayCodec(32).decode(input),
+      len: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// H::Output
+  final _i3.H256 hash;
+
+  /// u32
+  final int len;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Lookup': {
+          'hash': hash.toList(),
+          'len': len,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.H256Codec().sizeHint(hash);
+    size = size + _i1.U32Codec.codec.sizeHint(len);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      hash,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      len,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Lookup &&
+          _i4.listsEqual(
+            other.hash,
+            hash,
+          ) &&
+          other.len == len;
+
+  @override
+  int get hashCode => Object.hash(
+        hash,
+        len,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/frame_support/traits/tokens/misc/balance_status.dart b/lib/src/models/generated/duniter/types/frame_support/traits/tokens/misc/balance_status.dart
new file mode 100644
index 0000000000000000000000000000000000000000..0b510a6d255f88109bfc932fec27fe2da0a11e52
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_support/traits/tokens/misc/balance_status.dart
@@ -0,0 +1,57 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum BalanceStatus {
+  free('Free', 0),
+  reserved('Reserved', 1);
+
+  const BalanceStatus(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory BalanceStatus.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $BalanceStatusCodec codec = $BalanceStatusCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $BalanceStatusCodec with _i1.Codec<BalanceStatus> {
+  const $BalanceStatusCodec();
+
+  @override
+  BalanceStatus decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return BalanceStatus.free;
+      case 1:
+        return BalanceStatus.reserved;
+      default:
+        throw Exception('BalanceStatus: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    BalanceStatus value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/account_info.dart b/lib/src/models/generated/duniter/types/frame_system/account_info.dart
new file mode 100644
index 0000000000000000000000000000000000000000..71de59557cc297625c4f3874b8140fe899cabb0c
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/account_info.dart
@@ -0,0 +1,124 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../pallet_duniter_account/types/account_data.dart' as _i2;
+
+class AccountInfo {
+  const AccountInfo({
+    required this.nonce,
+    required this.consumers,
+    required this.providers,
+    required this.sufficients,
+    required this.data,
+  });
+
+  factory AccountInfo.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// Nonce
+  final int nonce;
+
+  /// RefCount
+  final int consumers;
+
+  /// RefCount
+  final int providers;
+
+  /// RefCount
+  final int sufficients;
+
+  /// AccountData
+  final _i2.AccountData data;
+
+  static const $AccountInfoCodec codec = $AccountInfoCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'nonce': nonce,
+        'consumers': consumers,
+        'providers': providers,
+        'sufficients': sufficients,
+        'data': data.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AccountInfo &&
+          other.nonce == nonce &&
+          other.consumers == consumers &&
+          other.providers == providers &&
+          other.sufficients == sufficients &&
+          other.data == data;
+
+  @override
+  int get hashCode => Object.hash(
+        nonce,
+        consumers,
+        providers,
+        sufficients,
+        data,
+      );
+}
+
+class $AccountInfoCodec with _i1.Codec<AccountInfo> {
+  const $AccountInfoCodec();
+
+  @override
+  void encodeTo(
+    AccountInfo obj,
+    _i1.Output output,
+  ) {
+    _i1.U32Codec.codec.encodeTo(
+      obj.nonce,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.consumers,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.providers,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.sufficients,
+      output,
+    );
+    _i2.AccountData.codec.encodeTo(
+      obj.data,
+      output,
+    );
+  }
+
+  @override
+  AccountInfo decode(_i1.Input input) {
+    return AccountInfo(
+      nonce: _i1.U32Codec.codec.decode(input),
+      consumers: _i1.U32Codec.codec.decode(input),
+      providers: _i1.U32Codec.codec.decode(input),
+      sufficients: _i1.U32Codec.codec.decode(input),
+      data: _i2.AccountData.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(AccountInfo obj) {
+    int size = 0;
+    size = size + _i1.U32Codec.codec.sizeHint(obj.nonce);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.consumers);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.providers);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.sufficients);
+    size = size + _i2.AccountData.codec.sizeHint(obj.data);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/code_upgrade_authorization.dart b/lib/src/models/generated/duniter/types/frame_system/code_upgrade_authorization.dart
new file mode 100644
index 0000000000000000000000000000000000000000..cc29ab5dcf784f97c68d680431dd91f542682f95
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/code_upgrade_authorization.dart
@@ -0,0 +1,90 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../primitive_types/h256.dart' as _i2;
+
+class CodeUpgradeAuthorization {
+  const CodeUpgradeAuthorization({
+    required this.codeHash,
+    required this.checkVersion,
+  });
+
+  factory CodeUpgradeAuthorization.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// T::Hash
+  final _i2.H256 codeHash;
+
+  /// bool
+  final bool checkVersion;
+
+  static const $CodeUpgradeAuthorizationCodec codec =
+      $CodeUpgradeAuthorizationCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'codeHash': codeHash.toList(),
+        'checkVersion': checkVersion,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is CodeUpgradeAuthorization &&
+          _i4.listsEqual(
+            other.codeHash,
+            codeHash,
+          ) &&
+          other.checkVersion == checkVersion;
+
+  @override
+  int get hashCode => Object.hash(
+        codeHash,
+        checkVersion,
+      );
+}
+
+class $CodeUpgradeAuthorizationCodec with _i1.Codec<CodeUpgradeAuthorization> {
+  const $CodeUpgradeAuthorizationCodec();
+
+  @override
+  void encodeTo(
+    CodeUpgradeAuthorization obj,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.codeHash,
+      output,
+    );
+    _i1.BoolCodec.codec.encodeTo(
+      obj.checkVersion,
+      output,
+    );
+  }
+
+  @override
+  CodeUpgradeAuthorization decode(_i1.Input input) {
+    return CodeUpgradeAuthorization(
+      codeHash: const _i1.U8ArrayCodec(32).decode(input),
+      checkVersion: _i1.BoolCodec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(CodeUpgradeAuthorization obj) {
+    int size = 0;
+    size = size + const _i2.H256Codec().sizeHint(obj.codeHash);
+    size = size + _i1.BoolCodec.codec.sizeHint(obj.checkVersion);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/event_record.dart b/lib/src/models/generated/duniter/types/frame_system/event_record.dart
new file mode 100644
index 0000000000000000000000000000000000000000..658dd9539ead6e7df60e6235a83b7bd0cfed2f33
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/event_record.dart
@@ -0,0 +1,105 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i5;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i6;
+
+import '../gdev_runtime/runtime_event.dart' as _i3;
+import '../primitive_types/h256.dart' as _i4;
+import 'phase.dart' as _i2;
+
+class EventRecord {
+  const EventRecord({
+    required this.phase,
+    required this.event,
+    required this.topics,
+  });
+
+  factory EventRecord.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// Phase
+  final _i2.Phase phase;
+
+  /// E
+  final _i3.RuntimeEvent event;
+
+  /// Vec<T>
+  final List<_i4.H256> topics;
+
+  static const $EventRecordCodec codec = $EventRecordCodec();
+
+  _i5.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'phase': phase.toJson(),
+        'event': event.toJson(),
+        'topics': topics.map((value) => value.toList()).toList(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is EventRecord &&
+          other.phase == phase &&
+          other.event == event &&
+          _i6.listsEqual(
+            other.topics,
+            topics,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        phase,
+        event,
+        topics,
+      );
+}
+
+class $EventRecordCodec with _i1.Codec<EventRecord> {
+  const $EventRecordCodec();
+
+  @override
+  void encodeTo(
+    EventRecord obj,
+    _i1.Output output,
+  ) {
+    _i2.Phase.codec.encodeTo(
+      obj.phase,
+      output,
+    );
+    _i3.RuntimeEvent.codec.encodeTo(
+      obj.event,
+      output,
+    );
+    const _i1.SequenceCodec<_i4.H256>(_i4.H256Codec()).encodeTo(
+      obj.topics,
+      output,
+    );
+  }
+
+  @override
+  EventRecord decode(_i1.Input input) {
+    return EventRecord(
+      phase: _i2.Phase.codec.decode(input),
+      event: _i3.RuntimeEvent.codec.decode(input),
+      topics: const _i1.SequenceCodec<_i4.H256>(_i4.H256Codec()).decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(EventRecord obj) {
+    int size = 0;
+    size = size + _i2.Phase.codec.sizeHint(obj.phase);
+    size = size + _i3.RuntimeEvent.codec.sizeHint(obj.event);
+    size = size +
+        const _i1.SequenceCodec<_i4.H256>(_i4.H256Codec()).sizeHint(obj.topics);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/extensions/check_genesis/check_genesis.dart b/lib/src/models/generated/duniter/types/frame_system/extensions/check_genesis/check_genesis.dart
new file mode 100644
index 0000000000000000000000000000000000000000..dfb8d9aa06e4d9fa437d8535eeae1d915f18aa6f
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/extensions/check_genesis/check_genesis.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef CheckGenesis = dynamic;
+
+class CheckGenesisCodec with _i1.Codec<CheckGenesis> {
+  const CheckGenesisCodec();
+
+  @override
+  CheckGenesis decode(_i1.Input input) {
+    return _i1.NullCodec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    CheckGenesis value,
+    _i1.Output output,
+  ) {
+    _i1.NullCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(CheckGenesis value) {
+    return _i1.NullCodec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/extensions/check_mortality/check_mortality.dart b/lib/src/models/generated/duniter/types/frame_system/extensions/check_mortality/check_mortality.dart
new file mode 100644
index 0000000000000000000000000000000000000000..74bb6a2b67e417cddb2454763ace4e5af3662739
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/extensions/check_mortality/check_mortality.dart
@@ -0,0 +1,31 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../../../sp_runtime/generic/era/era.dart' as _i1;
+
+typedef CheckMortality = _i1.Era;
+
+class CheckMortalityCodec with _i2.Codec<CheckMortality> {
+  const CheckMortalityCodec();
+
+  @override
+  CheckMortality decode(_i2.Input input) {
+    return _i1.Era.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    CheckMortality value,
+    _i2.Output output,
+  ) {
+    _i1.Era.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(CheckMortality value) {
+    return _i1.Era.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/extensions/check_non_zero_sender/check_non_zero_sender.dart b/lib/src/models/generated/duniter/types/frame_system/extensions/check_non_zero_sender/check_non_zero_sender.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e6bd60e1da814c7214d63ff99d846213a6516c67
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/extensions/check_non_zero_sender/check_non_zero_sender.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef CheckNonZeroSender = dynamic;
+
+class CheckNonZeroSenderCodec with _i1.Codec<CheckNonZeroSender> {
+  const CheckNonZeroSenderCodec();
+
+  @override
+  CheckNonZeroSender decode(_i1.Input input) {
+    return _i1.NullCodec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    CheckNonZeroSender value,
+    _i1.Output output,
+  ) {
+    _i1.NullCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(CheckNonZeroSender value) {
+    return _i1.NullCodec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/extensions/check_nonce/check_nonce.dart b/lib/src/models/generated/duniter/types/frame_system/extensions/check_nonce/check_nonce.dart
new file mode 100644
index 0000000000000000000000000000000000000000..2b7e417d5e7bec47828a2ace2792b75b9f84f94d
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/extensions/check_nonce/check_nonce.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef CheckNonce = BigInt;
+
+class CheckNonceCodec with _i1.Codec<CheckNonce> {
+  const CheckNonceCodec();
+
+  @override
+  CheckNonce decode(_i1.Input input) {
+    return _i1.CompactBigIntCodec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    CheckNonce value,
+    _i1.Output output,
+  ) {
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(CheckNonce value) {
+    return _i1.CompactBigIntCodec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/extensions/check_spec_version/check_spec_version.dart b/lib/src/models/generated/duniter/types/frame_system/extensions/check_spec_version/check_spec_version.dart
new file mode 100644
index 0000000000000000000000000000000000000000..54164051e7ac2c6e845a14b3b3249b50f481b307
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/extensions/check_spec_version/check_spec_version.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef CheckSpecVersion = dynamic;
+
+class CheckSpecVersionCodec with _i1.Codec<CheckSpecVersion> {
+  const CheckSpecVersionCodec();
+
+  @override
+  CheckSpecVersion decode(_i1.Input input) {
+    return _i1.NullCodec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    CheckSpecVersion value,
+    _i1.Output output,
+  ) {
+    _i1.NullCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(CheckSpecVersion value) {
+    return _i1.NullCodec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/extensions/check_tx_version/check_tx_version.dart b/lib/src/models/generated/duniter/types/frame_system/extensions/check_tx_version/check_tx_version.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8c1617d2b5a8b28204fcfb8dd9711dfb85bb0b74
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/extensions/check_tx_version/check_tx_version.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef CheckTxVersion = dynamic;
+
+class CheckTxVersionCodec with _i1.Codec<CheckTxVersion> {
+  const CheckTxVersionCodec();
+
+  @override
+  CheckTxVersion decode(_i1.Input input) {
+    return _i1.NullCodec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    CheckTxVersion value,
+    _i1.Output output,
+  ) {
+    _i1.NullCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(CheckTxVersion value) {
+    return _i1.NullCodec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/extensions/check_weight/check_weight.dart b/lib/src/models/generated/duniter/types/frame_system/extensions/check_weight/check_weight.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5fc6a462547e5b21c1eea39b90530bcc0330d0b9
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/extensions/check_weight/check_weight.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef CheckWeight = dynamic;
+
+class CheckWeightCodec with _i1.Codec<CheckWeight> {
+  const CheckWeightCodec();
+
+  @override
+  CheckWeight decode(_i1.Input input) {
+    return _i1.NullCodec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    CheckWeight value,
+    _i1.Output output,
+  ) {
+    _i1.NullCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(CheckWeight value) {
+    return _i1.NullCodec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/last_runtime_upgrade_info.dart b/lib/src/models/generated/duniter/types/frame_system/last_runtime_upgrade_info.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d582defbb85c3d60015c36d49fa26a04f8356c8f
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/last_runtime_upgrade_info.dart
@@ -0,0 +1,84 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class LastRuntimeUpgradeInfo {
+  const LastRuntimeUpgradeInfo({
+    required this.specVersion,
+    required this.specName,
+  });
+
+  factory LastRuntimeUpgradeInfo.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// codec::Compact<u32>
+  final BigInt specVersion;
+
+  /// sp_runtime::RuntimeString
+  final String specName;
+
+  static const $LastRuntimeUpgradeInfoCodec codec =
+      $LastRuntimeUpgradeInfoCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'specVersion': specVersion,
+        'specName': specName,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is LastRuntimeUpgradeInfo &&
+          other.specVersion == specVersion &&
+          other.specName == specName;
+
+  @override
+  int get hashCode => Object.hash(
+        specVersion,
+        specName,
+      );
+}
+
+class $LastRuntimeUpgradeInfoCodec with _i1.Codec<LastRuntimeUpgradeInfo> {
+  const $LastRuntimeUpgradeInfoCodec();
+
+  @override
+  void encodeTo(
+    LastRuntimeUpgradeInfo obj,
+    _i1.Output output,
+  ) {
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      obj.specVersion,
+      output,
+    );
+    _i1.StrCodec.codec.encodeTo(
+      obj.specName,
+      output,
+    );
+  }
+
+  @override
+  LastRuntimeUpgradeInfo decode(_i1.Input input) {
+    return LastRuntimeUpgradeInfo(
+      specVersion: _i1.CompactBigIntCodec.codec.decode(input),
+      specName: _i1.StrCodec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(LastRuntimeUpgradeInfo obj) {
+    int size = 0;
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(obj.specVersion);
+    size = size + _i1.StrCodec.codec.sizeHint(obj.specName);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/limits/block_length.dart b/lib/src/models/generated/duniter/types/frame_system/limits/block_length.dart
new file mode 100644
index 0000000000000000000000000000000000000000..b5a0a476009aaa9e5f7d0b02c8fc96e4c29221f4
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/limits/block_length.dart
@@ -0,0 +1,63 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../frame_support/dispatch/per_dispatch_class_3.dart' as _i2;
+
+class BlockLength {
+  const BlockLength({required this.max});
+
+  factory BlockLength.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// PerDispatchClass<u32>
+  final _i2.PerDispatchClass max;
+
+  static const $BlockLengthCodec codec = $BlockLengthCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, Map<String, int>> toJson() => {'max': max.toJson()};
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is BlockLength && other.max == max;
+
+  @override
+  int get hashCode => max.hashCode;
+}
+
+class $BlockLengthCodec with _i1.Codec<BlockLength> {
+  const $BlockLengthCodec();
+
+  @override
+  void encodeTo(
+    BlockLength obj,
+    _i1.Output output,
+  ) {
+    _i2.PerDispatchClass.codec.encodeTo(
+      obj.max,
+      output,
+    );
+  }
+
+  @override
+  BlockLength decode(_i1.Input input) {
+    return BlockLength(max: _i2.PerDispatchClass.codec.decode(input));
+  }
+
+  @override
+  int sizeHint(BlockLength obj) {
+    int size = 0;
+    size = size + _i2.PerDispatchClass.codec.sizeHint(obj.max);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/limits/block_weights.dart b/lib/src/models/generated/duniter/types/frame_system/limits/block_weights.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e0ff79bbffda5d3eaab81a8a1f83b31e85a73374
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/limits/block_weights.dart
@@ -0,0 +1,99 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../frame_support/dispatch/per_dispatch_class_2.dart' as _i3;
+import '../../sp_weights/weight_v2/weight.dart' as _i2;
+
+class BlockWeights {
+  const BlockWeights({
+    required this.baseBlock,
+    required this.maxBlock,
+    required this.perClass,
+  });
+
+  factory BlockWeights.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// Weight
+  final _i2.Weight baseBlock;
+
+  /// Weight
+  final _i2.Weight maxBlock;
+
+  /// PerDispatchClass<WeightsPerClass>
+  final _i3.PerDispatchClass perClass;
+
+  static const $BlockWeightsCodec codec = $BlockWeightsCodec();
+
+  _i4.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson() => {
+        'baseBlock': baseBlock.toJson(),
+        'maxBlock': maxBlock.toJson(),
+        'perClass': perClass.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is BlockWeights &&
+          other.baseBlock == baseBlock &&
+          other.maxBlock == maxBlock &&
+          other.perClass == perClass;
+
+  @override
+  int get hashCode => Object.hash(
+        baseBlock,
+        maxBlock,
+        perClass,
+      );
+}
+
+class $BlockWeightsCodec with _i1.Codec<BlockWeights> {
+  const $BlockWeightsCodec();
+
+  @override
+  void encodeTo(
+    BlockWeights obj,
+    _i1.Output output,
+  ) {
+    _i2.Weight.codec.encodeTo(
+      obj.baseBlock,
+      output,
+    );
+    _i2.Weight.codec.encodeTo(
+      obj.maxBlock,
+      output,
+    );
+    _i3.PerDispatchClass.codec.encodeTo(
+      obj.perClass,
+      output,
+    );
+  }
+
+  @override
+  BlockWeights decode(_i1.Input input) {
+    return BlockWeights(
+      baseBlock: _i2.Weight.codec.decode(input),
+      maxBlock: _i2.Weight.codec.decode(input),
+      perClass: _i3.PerDispatchClass.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(BlockWeights obj) {
+    int size = 0;
+    size = size + _i2.Weight.codec.sizeHint(obj.baseBlock);
+    size = size + _i2.Weight.codec.sizeHint(obj.maxBlock);
+    size = size + _i3.PerDispatchClass.codec.sizeHint(obj.perClass);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/limits/weights_per_class.dart b/lib/src/models/generated/duniter/types/frame_system/limits/weights_per_class.dart
new file mode 100644
index 0000000000000000000000000000000000000000..0a830e75d684f4d0a339e7e08d1d6802baa05996
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/limits/weights_per_class.dart
@@ -0,0 +1,120 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_weights/weight_v2/weight.dart' as _i2;
+
+class WeightsPerClass {
+  const WeightsPerClass({
+    required this.baseExtrinsic,
+    this.maxExtrinsic,
+    this.maxTotal,
+    this.reserved,
+  });
+
+  factory WeightsPerClass.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// Weight
+  final _i2.Weight baseExtrinsic;
+
+  /// Option<Weight>
+  final _i2.Weight? maxExtrinsic;
+
+  /// Option<Weight>
+  final _i2.Weight? maxTotal;
+
+  /// Option<Weight>
+  final _i2.Weight? reserved;
+
+  static const $WeightsPerClassCodec codec = $WeightsPerClassCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, Map<String, BigInt>?> toJson() => {
+        'baseExtrinsic': baseExtrinsic.toJson(),
+        'maxExtrinsic': maxExtrinsic?.toJson(),
+        'maxTotal': maxTotal?.toJson(),
+        'reserved': reserved?.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is WeightsPerClass &&
+          other.baseExtrinsic == baseExtrinsic &&
+          other.maxExtrinsic == maxExtrinsic &&
+          other.maxTotal == maxTotal &&
+          other.reserved == reserved;
+
+  @override
+  int get hashCode => Object.hash(
+        baseExtrinsic,
+        maxExtrinsic,
+        maxTotal,
+        reserved,
+      );
+}
+
+class $WeightsPerClassCodec with _i1.Codec<WeightsPerClass> {
+  const $WeightsPerClassCodec();
+
+  @override
+  void encodeTo(
+    WeightsPerClass obj,
+    _i1.Output output,
+  ) {
+    _i2.Weight.codec.encodeTo(
+      obj.baseExtrinsic,
+      output,
+    );
+    const _i1.OptionCodec<_i2.Weight>(_i2.Weight.codec).encodeTo(
+      obj.maxExtrinsic,
+      output,
+    );
+    const _i1.OptionCodec<_i2.Weight>(_i2.Weight.codec).encodeTo(
+      obj.maxTotal,
+      output,
+    );
+    const _i1.OptionCodec<_i2.Weight>(_i2.Weight.codec).encodeTo(
+      obj.reserved,
+      output,
+    );
+  }
+
+  @override
+  WeightsPerClass decode(_i1.Input input) {
+    return WeightsPerClass(
+      baseExtrinsic: _i2.Weight.codec.decode(input),
+      maxExtrinsic:
+          const _i1.OptionCodec<_i2.Weight>(_i2.Weight.codec).decode(input),
+      maxTotal:
+          const _i1.OptionCodec<_i2.Weight>(_i2.Weight.codec).decode(input),
+      reserved:
+          const _i1.OptionCodec<_i2.Weight>(_i2.Weight.codec).decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(WeightsPerClass obj) {
+    int size = 0;
+    size = size + _i2.Weight.codec.sizeHint(obj.baseExtrinsic);
+    size = size +
+        const _i1.OptionCodec<_i2.Weight>(_i2.Weight.codec)
+            .sizeHint(obj.maxExtrinsic);
+    size = size +
+        const _i1.OptionCodec<_i2.Weight>(_i2.Weight.codec)
+            .sizeHint(obj.maxTotal);
+    size = size +
+        const _i1.OptionCodec<_i2.Weight>(_i2.Weight.codec)
+            .sizeHint(obj.reserved);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/pallet/call.dart b/lib/src/models/generated/duniter/types/frame_system/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d114fb0e537c4d0ca0a0bf686030da73d8ed2219
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/pallet/call.dart
@@ -0,0 +1,783 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../../primitive_types/h256.dart' as _i4;
+import '../../tuples.dart' as _i3;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  Remark remark({required List<int> remark}) {
+    return Remark(remark: remark);
+  }
+
+  SetHeapPages setHeapPages({required BigInt pages}) {
+    return SetHeapPages(pages: pages);
+  }
+
+  SetCode setCode({required List<int> code}) {
+    return SetCode(code: code);
+  }
+
+  SetCodeWithoutChecks setCodeWithoutChecks({required List<int> code}) {
+    return SetCodeWithoutChecks(code: code);
+  }
+
+  SetStorage setStorage(
+      {required List<_i3.Tuple2<List<int>, List<int>>> items}) {
+    return SetStorage(items: items);
+  }
+
+  KillStorage killStorage({required List<List<int>> keys}) {
+    return KillStorage(keys: keys);
+  }
+
+  KillPrefix killPrefix({
+    required List<int> prefix,
+    required int subkeys,
+  }) {
+    return KillPrefix(
+      prefix: prefix,
+      subkeys: subkeys,
+    );
+  }
+
+  RemarkWithEvent remarkWithEvent({required List<int> remark}) {
+    return RemarkWithEvent(remark: remark);
+  }
+
+  AuthorizeUpgrade authorizeUpgrade({required _i4.H256 codeHash}) {
+    return AuthorizeUpgrade(codeHash: codeHash);
+  }
+
+  AuthorizeUpgradeWithoutChecks authorizeUpgradeWithoutChecks(
+      {required _i4.H256 codeHash}) {
+    return AuthorizeUpgradeWithoutChecks(codeHash: codeHash);
+  }
+
+  ApplyAuthorizedUpgrade applyAuthorizedUpgrade({required List<int> code}) {
+    return ApplyAuthorizedUpgrade(code: code);
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Remark._decode(input);
+      case 1:
+        return SetHeapPages._decode(input);
+      case 2:
+        return SetCode._decode(input);
+      case 3:
+        return SetCodeWithoutChecks._decode(input);
+      case 4:
+        return SetStorage._decode(input);
+      case 5:
+        return KillStorage._decode(input);
+      case 6:
+        return KillPrefix._decode(input);
+      case 7:
+        return RemarkWithEvent._decode(input);
+      case 9:
+        return AuthorizeUpgrade._decode(input);
+      case 10:
+        return AuthorizeUpgradeWithoutChecks._decode(input);
+      case 11:
+        return ApplyAuthorizedUpgrade._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Remark:
+        (value as Remark).encodeTo(output);
+        break;
+      case SetHeapPages:
+        (value as SetHeapPages).encodeTo(output);
+        break;
+      case SetCode:
+        (value as SetCode).encodeTo(output);
+        break;
+      case SetCodeWithoutChecks:
+        (value as SetCodeWithoutChecks).encodeTo(output);
+        break;
+      case SetStorage:
+        (value as SetStorage).encodeTo(output);
+        break;
+      case KillStorage:
+        (value as KillStorage).encodeTo(output);
+        break;
+      case KillPrefix:
+        (value as KillPrefix).encodeTo(output);
+        break;
+      case RemarkWithEvent:
+        (value as RemarkWithEvent).encodeTo(output);
+        break;
+      case AuthorizeUpgrade:
+        (value as AuthorizeUpgrade).encodeTo(output);
+        break;
+      case AuthorizeUpgradeWithoutChecks:
+        (value as AuthorizeUpgradeWithoutChecks).encodeTo(output);
+        break;
+      case ApplyAuthorizedUpgrade:
+        (value as ApplyAuthorizedUpgrade).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case Remark:
+        return (value as Remark)._sizeHint();
+      case SetHeapPages:
+        return (value as SetHeapPages)._sizeHint();
+      case SetCode:
+        return (value as SetCode)._sizeHint();
+      case SetCodeWithoutChecks:
+        return (value as SetCodeWithoutChecks)._sizeHint();
+      case SetStorage:
+        return (value as SetStorage)._sizeHint();
+      case KillStorage:
+        return (value as KillStorage)._sizeHint();
+      case KillPrefix:
+        return (value as KillPrefix)._sizeHint();
+      case RemarkWithEvent:
+        return (value as RemarkWithEvent)._sizeHint();
+      case AuthorizeUpgrade:
+        return (value as AuthorizeUpgrade)._sizeHint();
+      case AuthorizeUpgradeWithoutChecks:
+        return (value as AuthorizeUpgradeWithoutChecks)._sizeHint();
+      case ApplyAuthorizedUpgrade:
+        return (value as ApplyAuthorizedUpgrade)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::remark`].
+class Remark extends Call {
+  const Remark({required this.remark});
+
+  factory Remark._decode(_i1.Input input) {
+    return Remark(remark: _i1.U8SequenceCodec.codec.decode(input));
+  }
+
+  /// Vec<u8>
+  final List<int> remark;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'remark': {'remark': remark}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(remark);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      remark,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Remark &&
+          _i5.listsEqual(
+            other.remark,
+            remark,
+          );
+
+  @override
+  int get hashCode => remark.hashCode;
+}
+
+/// See [`Pallet::set_heap_pages`].
+class SetHeapPages extends Call {
+  const SetHeapPages({required this.pages});
+
+  factory SetHeapPages._decode(_i1.Input input) {
+    return SetHeapPages(pages: _i1.U64Codec.codec.decode(input));
+  }
+
+  /// u64
+  final BigInt pages;
+
+  @override
+  Map<String, Map<String, BigInt>> toJson() => {
+        'set_heap_pages': {'pages': pages}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U64Codec.codec.sizeHint(pages);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      pages,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SetHeapPages && other.pages == pages;
+
+  @override
+  int get hashCode => pages.hashCode;
+}
+
+/// See [`Pallet::set_code`].
+class SetCode extends Call {
+  const SetCode({required this.code});
+
+  factory SetCode._decode(_i1.Input input) {
+    return SetCode(code: _i1.U8SequenceCodec.codec.decode(input));
+  }
+
+  /// Vec<u8>
+  final List<int> code;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'set_code': {'code': code}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(code);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      code,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SetCode &&
+          _i5.listsEqual(
+            other.code,
+            code,
+          );
+
+  @override
+  int get hashCode => code.hashCode;
+}
+
+/// See [`Pallet::set_code_without_checks`].
+class SetCodeWithoutChecks extends Call {
+  const SetCodeWithoutChecks({required this.code});
+
+  factory SetCodeWithoutChecks._decode(_i1.Input input) {
+    return SetCodeWithoutChecks(code: _i1.U8SequenceCodec.codec.decode(input));
+  }
+
+  /// Vec<u8>
+  final List<int> code;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'set_code_without_checks': {'code': code}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(code);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      code,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SetCodeWithoutChecks &&
+          _i5.listsEqual(
+            other.code,
+            code,
+          );
+
+  @override
+  int get hashCode => code.hashCode;
+}
+
+/// See [`Pallet::set_storage`].
+class SetStorage extends Call {
+  const SetStorage({required this.items});
+
+  factory SetStorage._decode(_i1.Input input) {
+    return SetStorage(
+        items: const _i1.SequenceCodec<_i3.Tuple2<List<int>, List<int>>>(
+            _i3.Tuple2Codec<List<int>, List<int>>(
+      _i1.U8SequenceCodec.codec,
+      _i1.U8SequenceCodec.codec,
+    )).decode(input));
+  }
+
+  /// Vec<KeyValue>
+  final List<_i3.Tuple2<List<int>, List<int>>> items;
+
+  @override
+  Map<String, Map<String, List<List<List<int>>>>> toJson() => {
+        'set_storage': {
+          'items': items
+              .map((value) => [
+                    value.value0,
+                    value.value1,
+                  ])
+              .toList()
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.SequenceCodec<_i3.Tuple2<List<int>, List<int>>>(
+            _i3.Tuple2Codec<List<int>, List<int>>(
+          _i1.U8SequenceCodec.codec,
+          _i1.U8SequenceCodec.codec,
+        )).sizeHint(items);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    const _i1.SequenceCodec<_i3.Tuple2<List<int>, List<int>>>(
+        _i3.Tuple2Codec<List<int>, List<int>>(
+      _i1.U8SequenceCodec.codec,
+      _i1.U8SequenceCodec.codec,
+    )).encodeTo(
+      items,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SetStorage &&
+          _i5.listsEqual(
+            other.items,
+            items,
+          );
+
+  @override
+  int get hashCode => items.hashCode;
+}
+
+/// See [`Pallet::kill_storage`].
+class KillStorage extends Call {
+  const KillStorage({required this.keys});
+
+  factory KillStorage._decode(_i1.Input input) {
+    return KillStorage(
+        keys: const _i1.SequenceCodec<List<int>>(_i1.U8SequenceCodec.codec)
+            .decode(input));
+  }
+
+  /// Vec<Key>
+  final List<List<int>> keys;
+
+  @override
+  Map<String, Map<String, List<List<int>>>> toJson() => {
+        'kill_storage': {'keys': keys.map((value) => value).toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.SequenceCodec<List<int>>(_i1.U8SequenceCodec.codec)
+            .sizeHint(keys);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    const _i1.SequenceCodec<List<int>>(_i1.U8SequenceCodec.codec).encodeTo(
+      keys,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is KillStorage &&
+          _i5.listsEqual(
+            other.keys,
+            keys,
+          );
+
+  @override
+  int get hashCode => keys.hashCode;
+}
+
+/// See [`Pallet::kill_prefix`].
+class KillPrefix extends Call {
+  const KillPrefix({
+    required this.prefix,
+    required this.subkeys,
+  });
+
+  factory KillPrefix._decode(_i1.Input input) {
+    return KillPrefix(
+      prefix: _i1.U8SequenceCodec.codec.decode(input),
+      subkeys: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// Key
+  final List<int> prefix;
+
+  /// u32
+  final int subkeys;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'kill_prefix': {
+          'prefix': prefix,
+          'subkeys': subkeys,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(prefix);
+    size = size + _i1.U32Codec.codec.sizeHint(subkeys);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      6,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      prefix,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      subkeys,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is KillPrefix &&
+          _i5.listsEqual(
+            other.prefix,
+            prefix,
+          ) &&
+          other.subkeys == subkeys;
+
+  @override
+  int get hashCode => Object.hash(
+        prefix,
+        subkeys,
+      );
+}
+
+/// See [`Pallet::remark_with_event`].
+class RemarkWithEvent extends Call {
+  const RemarkWithEvent({required this.remark});
+
+  factory RemarkWithEvent._decode(_i1.Input input) {
+    return RemarkWithEvent(remark: _i1.U8SequenceCodec.codec.decode(input));
+  }
+
+  /// Vec<u8>
+  final List<int> remark;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'remark_with_event': {'remark': remark}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(remark);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      7,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      remark,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RemarkWithEvent &&
+          _i5.listsEqual(
+            other.remark,
+            remark,
+          );
+
+  @override
+  int get hashCode => remark.hashCode;
+}
+
+/// See [`Pallet::authorize_upgrade`].
+class AuthorizeUpgrade extends Call {
+  const AuthorizeUpgrade({required this.codeHash});
+
+  factory AuthorizeUpgrade._decode(_i1.Input input) {
+    return AuthorizeUpgrade(codeHash: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::Hash
+  final _i4.H256 codeHash;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'authorize_upgrade': {'codeHash': codeHash.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i4.H256Codec().sizeHint(codeHash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      9,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      codeHash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AuthorizeUpgrade &&
+          _i5.listsEqual(
+            other.codeHash,
+            codeHash,
+          );
+
+  @override
+  int get hashCode => codeHash.hashCode;
+}
+
+/// See [`Pallet::authorize_upgrade_without_checks`].
+class AuthorizeUpgradeWithoutChecks extends Call {
+  const AuthorizeUpgradeWithoutChecks({required this.codeHash});
+
+  factory AuthorizeUpgradeWithoutChecks._decode(_i1.Input input) {
+    return AuthorizeUpgradeWithoutChecks(
+        codeHash: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::Hash
+  final _i4.H256 codeHash;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'authorize_upgrade_without_checks': {'codeHash': codeHash.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i4.H256Codec().sizeHint(codeHash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      10,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      codeHash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AuthorizeUpgradeWithoutChecks &&
+          _i5.listsEqual(
+            other.codeHash,
+            codeHash,
+          );
+
+  @override
+  int get hashCode => codeHash.hashCode;
+}
+
+/// See [`Pallet::apply_authorized_upgrade`].
+class ApplyAuthorizedUpgrade extends Call {
+  const ApplyAuthorizedUpgrade({required this.code});
+
+  factory ApplyAuthorizedUpgrade._decode(_i1.Input input) {
+    return ApplyAuthorizedUpgrade(
+        code: _i1.U8SequenceCodec.codec.decode(input));
+  }
+
+  /// Vec<u8>
+  final List<int> code;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'apply_authorized_upgrade': {'code': code}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(code);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      11,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      code,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ApplyAuthorizedUpgrade &&
+          _i5.listsEqual(
+            other.code,
+            code,
+          );
+
+  @override
+  int get hashCode => code.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/pallet/error.dart b/lib/src/models/generated/duniter/types/frame_system/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4cd910bbc21c1bfc2bb926fe6ade06e5c3bf00c9
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/pallet/error.dart
@@ -0,0 +1,95 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// Error for the System pallet
+enum Error {
+  /// The name of specification does not match between the current runtime
+  /// and the new runtime.
+  invalidSpecName('InvalidSpecName', 0),
+
+  /// The specification version is not allowed to decrease between the current runtime
+  /// and the new runtime.
+  specVersionNeedsToIncrease('SpecVersionNeedsToIncrease', 1),
+
+  /// Failed to extract the runtime version from the new runtime.
+  ///
+  /// Either calling `Core_version` or decoding `RuntimeVersion` failed.
+  failedToExtractRuntimeVersion('FailedToExtractRuntimeVersion', 2),
+
+  /// Suicide called when the account has non-default composite data.
+  nonDefaultComposite('NonDefaultComposite', 3),
+
+  /// There is a non-zero reference count preventing the account from being purged.
+  nonZeroRefCount('NonZeroRefCount', 4),
+
+  /// The origin filter prevent the call to be dispatched.
+  callFiltered('CallFiltered', 5),
+
+  /// No upgrade authorized.
+  nothingAuthorized('NothingAuthorized', 6),
+
+  /// The submitted code is not authorized.
+  unauthorized('Unauthorized', 7);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.invalidSpecName;
+      case 1:
+        return Error.specVersionNeedsToIncrease;
+      case 2:
+        return Error.failedToExtractRuntimeVersion;
+      case 3:
+        return Error.nonDefaultComposite;
+      case 4:
+        return Error.nonZeroRefCount;
+      case 5:
+        return Error.callFiltered;
+      case 6:
+        return Error.nothingAuthorized;
+      case 7:
+        return Error.unauthorized;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/pallet/event.dart b/lib/src/models/generated/duniter/types/frame_system/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..1db6e0eb4650c9c9ae4ad48a0ea9439443064ead
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/pallet/event.dart
@@ -0,0 +1,542 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i7;
+
+import '../../frame_support/dispatch/dispatch_info.dart' as _i3;
+import '../../primitive_types/h256.dart' as _i6;
+import '../../sp_core/crypto/account_id32.dart' as _i5;
+import '../../sp_runtime/dispatch_error.dart' as _i4;
+
+/// Event for the System pallet.
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  ExtrinsicSuccess extrinsicSuccess({required _i3.DispatchInfo dispatchInfo}) {
+    return ExtrinsicSuccess(dispatchInfo: dispatchInfo);
+  }
+
+  ExtrinsicFailed extrinsicFailed({
+    required _i4.DispatchError dispatchError,
+    required _i3.DispatchInfo dispatchInfo,
+  }) {
+    return ExtrinsicFailed(
+      dispatchError: dispatchError,
+      dispatchInfo: dispatchInfo,
+    );
+  }
+
+  CodeUpdated codeUpdated() {
+    return const CodeUpdated();
+  }
+
+  NewAccount newAccount({required _i5.AccountId32 account}) {
+    return NewAccount(account: account);
+  }
+
+  KilledAccount killedAccount({required _i5.AccountId32 account}) {
+    return KilledAccount(account: account);
+  }
+
+  Remarked remarked({
+    required _i5.AccountId32 sender,
+    required _i6.H256 hash,
+  }) {
+    return Remarked(
+      sender: sender,
+      hash: hash,
+    );
+  }
+
+  UpgradeAuthorized upgradeAuthorized({
+    required _i6.H256 codeHash,
+    required bool checkVersion,
+  }) {
+    return UpgradeAuthorized(
+      codeHash: codeHash,
+      checkVersion: checkVersion,
+    );
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return ExtrinsicSuccess._decode(input);
+      case 1:
+        return ExtrinsicFailed._decode(input);
+      case 2:
+        return const CodeUpdated();
+      case 3:
+        return NewAccount._decode(input);
+      case 4:
+        return KilledAccount._decode(input);
+      case 5:
+        return Remarked._decode(input);
+      case 6:
+        return UpgradeAuthorized._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case ExtrinsicSuccess:
+        (value as ExtrinsicSuccess).encodeTo(output);
+        break;
+      case ExtrinsicFailed:
+        (value as ExtrinsicFailed).encodeTo(output);
+        break;
+      case CodeUpdated:
+        (value as CodeUpdated).encodeTo(output);
+        break;
+      case NewAccount:
+        (value as NewAccount).encodeTo(output);
+        break;
+      case KilledAccount:
+        (value as KilledAccount).encodeTo(output);
+        break;
+      case Remarked:
+        (value as Remarked).encodeTo(output);
+        break;
+      case UpgradeAuthorized:
+        (value as UpgradeAuthorized).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case ExtrinsicSuccess:
+        return (value as ExtrinsicSuccess)._sizeHint();
+      case ExtrinsicFailed:
+        return (value as ExtrinsicFailed)._sizeHint();
+      case CodeUpdated:
+        return 1;
+      case NewAccount:
+        return (value as NewAccount)._sizeHint();
+      case KilledAccount:
+        return (value as KilledAccount)._sizeHint();
+      case Remarked:
+        return (value as Remarked)._sizeHint();
+      case UpgradeAuthorized:
+        return (value as UpgradeAuthorized)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// An extrinsic completed successfully.
+class ExtrinsicSuccess extends Event {
+  const ExtrinsicSuccess({required this.dispatchInfo});
+
+  factory ExtrinsicSuccess._decode(_i1.Input input) {
+    return ExtrinsicSuccess(dispatchInfo: _i3.DispatchInfo.codec.decode(input));
+  }
+
+  /// DispatchInfo
+  final _i3.DispatchInfo dispatchInfo;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'ExtrinsicSuccess': {'dispatchInfo': dispatchInfo.toJson()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.DispatchInfo.codec.sizeHint(dispatchInfo);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.DispatchInfo.codec.encodeTo(
+      dispatchInfo,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ExtrinsicSuccess && other.dispatchInfo == dispatchInfo;
+
+  @override
+  int get hashCode => dispatchInfo.hashCode;
+}
+
+/// An extrinsic failed.
+class ExtrinsicFailed extends Event {
+  const ExtrinsicFailed({
+    required this.dispatchError,
+    required this.dispatchInfo,
+  });
+
+  factory ExtrinsicFailed._decode(_i1.Input input) {
+    return ExtrinsicFailed(
+      dispatchError: _i4.DispatchError.codec.decode(input),
+      dispatchInfo: _i3.DispatchInfo.codec.decode(input),
+    );
+  }
+
+  /// DispatchError
+  final _i4.DispatchError dispatchError;
+
+  /// DispatchInfo
+  final _i3.DispatchInfo dispatchInfo;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'ExtrinsicFailed': {
+          'dispatchError': dispatchError.toJson(),
+          'dispatchInfo': dispatchInfo.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i4.DispatchError.codec.sizeHint(dispatchError);
+    size = size + _i3.DispatchInfo.codec.sizeHint(dispatchInfo);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i4.DispatchError.codec.encodeTo(
+      dispatchError,
+      output,
+    );
+    _i3.DispatchInfo.codec.encodeTo(
+      dispatchInfo,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ExtrinsicFailed &&
+          other.dispatchError == dispatchError &&
+          other.dispatchInfo == dispatchInfo;
+
+  @override
+  int get hashCode => Object.hash(
+        dispatchError,
+        dispatchInfo,
+      );
+}
+
+/// `:code` was updated.
+class CodeUpdated extends Event {
+  const CodeUpdated();
+
+  @override
+  Map<String, dynamic> toJson() => {'CodeUpdated': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is CodeUpdated;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+/// A new account was created.
+class NewAccount extends Event {
+  const NewAccount({required this.account});
+
+  factory NewAccount._decode(_i1.Input input) {
+    return NewAccount(account: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::AccountId
+  final _i5.AccountId32 account;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'NewAccount': {'account': account.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i5.AccountId32Codec().sizeHint(account);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      account,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is NewAccount &&
+          _i7.listsEqual(
+            other.account,
+            account,
+          );
+
+  @override
+  int get hashCode => account.hashCode;
+}
+
+/// An account was reaped.
+class KilledAccount extends Event {
+  const KilledAccount({required this.account});
+
+  factory KilledAccount._decode(_i1.Input input) {
+    return KilledAccount(account: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::AccountId
+  final _i5.AccountId32 account;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'KilledAccount': {'account': account.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i5.AccountId32Codec().sizeHint(account);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      account,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is KilledAccount &&
+          _i7.listsEqual(
+            other.account,
+            account,
+          );
+
+  @override
+  int get hashCode => account.hashCode;
+}
+
+/// On on-chain remark happened.
+class Remarked extends Event {
+  const Remarked({
+    required this.sender,
+    required this.hash,
+  });
+
+  factory Remarked._decode(_i1.Input input) {
+    return Remarked(
+      sender: const _i1.U8ArrayCodec(32).decode(input),
+      hash: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i5.AccountId32 sender;
+
+  /// T::Hash
+  final _i6.H256 hash;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'Remarked': {
+          'sender': sender.toList(),
+          'hash': hash.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i5.AccountId32Codec().sizeHint(sender);
+    size = size + const _i6.H256Codec().sizeHint(hash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      sender,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      hash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Remarked &&
+          _i7.listsEqual(
+            other.sender,
+            sender,
+          ) &&
+          _i7.listsEqual(
+            other.hash,
+            hash,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        sender,
+        hash,
+      );
+}
+
+/// An upgrade was authorized.
+class UpgradeAuthorized extends Event {
+  const UpgradeAuthorized({
+    required this.codeHash,
+    required this.checkVersion,
+  });
+
+  factory UpgradeAuthorized._decode(_i1.Input input) {
+    return UpgradeAuthorized(
+      codeHash: const _i1.U8ArrayCodec(32).decode(input),
+      checkVersion: _i1.BoolCodec.codec.decode(input),
+    );
+  }
+
+  /// T::Hash
+  final _i6.H256 codeHash;
+
+  /// bool
+  final bool checkVersion;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'UpgradeAuthorized': {
+          'codeHash': codeHash.toList(),
+          'checkVersion': checkVersion,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i6.H256Codec().sizeHint(codeHash);
+    size = size + _i1.BoolCodec.codec.sizeHint(checkVersion);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      6,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      codeHash,
+      output,
+    );
+    _i1.BoolCodec.codec.encodeTo(
+      checkVersion,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is UpgradeAuthorized &&
+          _i7.listsEqual(
+            other.codeHash,
+            codeHash,
+          ) &&
+          other.checkVersion == checkVersion;
+
+  @override
+  int get hashCode => Object.hash(
+        codeHash,
+        checkVersion,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/frame_system/phase.dart b/lib/src/models/generated/duniter/types/frame_system/phase.dart
new file mode 100644
index 0000000000000000000000000000000000000000..869ab09632f33601a0caf158fb8d03f8288362ed
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/frame_system/phase.dart
@@ -0,0 +1,181 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+abstract class Phase {
+  const Phase();
+
+  factory Phase.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $PhaseCodec codec = $PhaseCodec();
+
+  static const $Phase values = $Phase();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Phase {
+  const $Phase();
+
+  ApplyExtrinsic applyExtrinsic(int value0) {
+    return ApplyExtrinsic(value0);
+  }
+
+  Finalization finalization() {
+    return const Finalization();
+  }
+
+  Initialization initialization() {
+    return const Initialization();
+  }
+}
+
+class $PhaseCodec with _i1.Codec<Phase> {
+  const $PhaseCodec();
+
+  @override
+  Phase decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return ApplyExtrinsic._decode(input);
+      case 1:
+        return const Finalization();
+      case 2:
+        return const Initialization();
+      default:
+        throw Exception('Phase: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Phase value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case ApplyExtrinsic:
+        (value as ApplyExtrinsic).encodeTo(output);
+        break;
+      case Finalization:
+        (value as Finalization).encodeTo(output);
+        break;
+      case Initialization:
+        (value as Initialization).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Phase: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Phase value) {
+    switch (value.runtimeType) {
+      case ApplyExtrinsic:
+        return (value as ApplyExtrinsic)._sizeHint();
+      case Finalization:
+        return 1;
+      case Initialization:
+        return 1;
+      default:
+        throw Exception(
+            'Phase: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class ApplyExtrinsic extends Phase {
+  const ApplyExtrinsic(this.value0);
+
+  factory ApplyExtrinsic._decode(_i1.Input input) {
+    return ApplyExtrinsic(_i1.U32Codec.codec.decode(input));
+  }
+
+  /// u32
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'ApplyExtrinsic': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ApplyExtrinsic && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Finalization extends Phase {
+  const Finalization();
+
+  @override
+  Map<String, dynamic> toJson() => {'Finalization': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is Finalization;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+class Initialization extends Phase {
+  const Initialization();
+
+  @override
+  Map<String, dynamic> toJson() => {'Initialization': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is Initialization;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/gdev_runtime/opaque/session_keys.dart b/lib/src/models/generated/duniter/types/gdev_runtime/opaque/session_keys.dart
new file mode 100644
index 0000000000000000000000000000000000000000..2bd2abebc0652f7310c4fe6b23d55dd464b94b43
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/gdev_runtime/opaque/session_keys.dart
@@ -0,0 +1,114 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i6;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../pallet_im_online/sr25519/app_sr25519/public.dart' as _i4;
+import '../../sp_authority_discovery/app/public.dart' as _i5;
+import '../../sp_consensus_babe/app/public.dart' as _i3;
+import '../../sp_consensus_grandpa/app/public.dart' as _i2;
+
+class SessionKeys {
+  const SessionKeys({
+    required this.grandpa,
+    required this.babe,
+    required this.imOnline,
+    required this.authorityDiscovery,
+  });
+
+  factory SessionKeys.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// <Grandpa as $crate::BoundToRuntimeAppPublic>::Public
+  final _i2.Public grandpa;
+
+  /// <Babe as $crate::BoundToRuntimeAppPublic>::Public
+  final _i3.Public babe;
+
+  /// <ImOnline as $crate::BoundToRuntimeAppPublic>::Public
+  final _i4.Public imOnline;
+
+  /// <AuthorityDiscovery as $crate::BoundToRuntimeAppPublic>::Public
+  final _i5.Public authorityDiscovery;
+
+  static const $SessionKeysCodec codec = $SessionKeysCodec();
+
+  _i6.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, List<int>> toJson() => {
+        'grandpa': grandpa.toList(),
+        'babe': babe.toList(),
+        'imOnline': imOnline.toList(),
+        'authorityDiscovery': authorityDiscovery.toList(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SessionKeys &&
+          other.grandpa == grandpa &&
+          other.babe == babe &&
+          other.imOnline == imOnline &&
+          other.authorityDiscovery == authorityDiscovery;
+
+  @override
+  int get hashCode => Object.hash(
+        grandpa,
+        babe,
+        imOnline,
+        authorityDiscovery,
+      );
+}
+
+class $SessionKeysCodec with _i1.Codec<SessionKeys> {
+  const $SessionKeysCodec();
+
+  @override
+  void encodeTo(
+    SessionKeys obj,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.grandpa,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.babe,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.imOnline,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.authorityDiscovery,
+      output,
+    );
+  }
+
+  @override
+  SessionKeys decode(_i1.Input input) {
+    return SessionKeys(
+      grandpa: const _i1.U8ArrayCodec(32).decode(input),
+      babe: const _i1.U8ArrayCodec(32).decode(input),
+      imOnline: const _i1.U8ArrayCodec(32).decode(input),
+      authorityDiscovery: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(SessionKeys obj) {
+    int size = 0;
+    size = size + const _i2.PublicCodec().sizeHint(obj.grandpa);
+    size = size + const _i3.PublicCodec().sizeHint(obj.babe);
+    size = size + const _i4.PublicCodec().sizeHint(obj.imOnline);
+    size = size + const _i5.PublicCodec().sizeHint(obj.authorityDiscovery);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/gdev_runtime/origin_caller.dart b/lib/src/models/generated/duniter/types/gdev_runtime/origin_caller.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7086907d223cca17bcb6801838b2d0fb3a84fe30
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/gdev_runtime/origin_caller.dart
@@ -0,0 +1,231 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../frame_support/dispatch/raw_origin.dart' as _i3;
+import '../pallet_collective/raw_origin.dart' as _i4;
+import '../sp_core/void.dart' as _i5;
+
+abstract class OriginCaller {
+  const OriginCaller();
+
+  factory OriginCaller.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $OriginCallerCodec codec = $OriginCallerCodec();
+
+  static const $OriginCaller values = $OriginCaller();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $OriginCaller {
+  const $OriginCaller();
+
+  System system(_i3.RawOrigin value0) {
+    return System(value0);
+  }
+
+  TechnicalCommittee technicalCommittee(_i4.RawOrigin value0) {
+    return TechnicalCommittee(value0);
+  }
+
+  Void void_(_i5.Void value0) {
+    return Void(value0);
+  }
+}
+
+class $OriginCallerCodec with _i1.Codec<OriginCaller> {
+  const $OriginCallerCodec();
+
+  @override
+  OriginCaller decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return System._decode(input);
+      case 23:
+        return TechnicalCommittee._decode(input);
+      case 2:
+        return Void._decode(input);
+      default:
+        throw Exception('OriginCaller: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    OriginCaller value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case System:
+        (value as System).encodeTo(output);
+        break;
+      case TechnicalCommittee:
+        (value as TechnicalCommittee).encodeTo(output);
+        break;
+      case Void:
+        (value as Void).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'OriginCaller: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(OriginCaller value) {
+    switch (value.runtimeType) {
+      case System:
+        return (value as System)._sizeHint();
+      case TechnicalCommittee:
+        return (value as TechnicalCommittee)._sizeHint();
+      case Void:
+        return (value as Void)._sizeHint();
+      default:
+        throw Exception(
+            'OriginCaller: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class System extends OriginCaller {
+  const System(this.value0);
+
+  factory System._decode(_i1.Input input) {
+    return System(_i3.RawOrigin.codec.decode(input));
+  }
+
+  /// frame_system::Origin<Runtime>
+  final _i3.RawOrigin value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'system': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.RawOrigin.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.RawOrigin.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is System && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class TechnicalCommittee extends OriginCaller {
+  const TechnicalCommittee(this.value0);
+
+  factory TechnicalCommittee._decode(_i1.Input input) {
+    return TechnicalCommittee(_i4.RawOrigin.codec.decode(input));
+  }
+
+  /// pallet_collective::Origin<Runtime, pallet_collective::Instance2>
+  final _i4.RawOrigin value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() =>
+      {'TechnicalCommittee': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i4.RawOrigin.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      23,
+      output,
+    );
+    _i4.RawOrigin.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is TechnicalCommittee && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Void extends OriginCaller {
+  const Void(this.value0);
+
+  factory Void._decode(_i1.Input input) {
+    return Void(_i1.NullCodec.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::
+  ///__private::Void
+  final _i5.Void value0;
+
+  @override
+  Map<String, dynamic> toJson() => {'Void': null};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i5.VoidCodec().sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.NullCodec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Void && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/gdev_runtime/proxy_type.dart b/lib/src/models/generated/duniter/types/gdev_runtime/proxy_type.dart
new file mode 100644
index 0000000000000000000000000000000000000000..ad4d4e6ffd66a0af72ea9e121885f5fbabc2e817
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/gdev_runtime/proxy_type.dart
@@ -0,0 +1,63 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum ProxyType {
+  almostAny('AlmostAny', 0),
+  transferOnly('TransferOnly', 1),
+  cancelProxy('CancelProxy', 2),
+  technicalCommitteePropose('TechnicalCommitteePropose', 3);
+
+  const ProxyType(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory ProxyType.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ProxyTypeCodec codec = $ProxyTypeCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ProxyTypeCodec with _i1.Codec<ProxyType> {
+  const $ProxyTypeCodec();
+
+  @override
+  ProxyType decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return ProxyType.almostAny;
+      case 1:
+        return ProxyType.transferOnly;
+      case 2:
+        return ProxyType.cancelProxy;
+      case 3:
+        return ProxyType.technicalCommitteePropose;
+      default:
+        throw Exception('ProxyType: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    ProxyType value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/gdev_runtime/runtime.dart b/lib/src/models/generated/duniter/types/gdev_runtime/runtime.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4c026b0aa8bfd8769eaae65f84421a14fe35cda4
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/gdev_runtime/runtime.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef Runtime = dynamic;
+
+class RuntimeCodec with _i1.Codec<Runtime> {
+  const RuntimeCodec();
+
+  @override
+  Runtime decode(_i1.Input input) {
+    return _i1.NullCodec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Runtime value,
+    _i1.Output output,
+  ) {
+    _i1.NullCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Runtime value) {
+    return _i1.NullCodec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/gdev_runtime/runtime_call.dart b/lib/src/models/generated/duniter/types/gdev_runtime/runtime_call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..3494675adef98c108da5e8a1ae3b6ece16947d8b
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/gdev_runtime/runtime_call.dart
@@ -0,0 +1,1518 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../frame_system/pallet/call.dart' as _i3;
+import '../pallet_atomic_swap/pallet/call.dart' as _i23;
+import '../pallet_authority_members/pallet/call.dart' as _i11;
+import '../pallet_babe/pallet/call.dart' as _i6;
+import '../pallet_balances/pallet/call.dart' as _i8;
+import '../pallet_certification/pallet/call.dart' as _i21;
+import '../pallet_collective/pallet/call.dart' as _i18;
+import '../pallet_distance/pallet/call.dart' as _i22;
+import '../pallet_duniter_account/pallet/call.dart' as _i4;
+import '../pallet_grandpa/pallet/call.dart' as _i13;
+import '../pallet_identity/pallet/call.dart' as _i20;
+import '../pallet_im_online/pallet/call.dart' as _i14;
+import '../pallet_multisig/pallet/call.dart' as _i24;
+import '../pallet_oneshot_account/pallet/call.dart' as _i9;
+import '../pallet_preimage/pallet/call.dart' as _i17;
+import '../pallet_provide_randomness/pallet/call.dart' as _i25;
+import '../pallet_proxy/pallet/call.dart' as _i26;
+import '../pallet_scheduler/pallet/call.dart' as _i5;
+import '../pallet_session/pallet/call.dart' as _i12;
+import '../pallet_smith_members/pallet/call.dart' as _i10;
+import '../pallet_sudo/pallet/call.dart' as _i15;
+import '../pallet_timestamp/pallet/call.dart' as _i7;
+import '../pallet_treasury/pallet/call.dart' as _i28;
+import '../pallet_universal_dividend/pallet/call.dart' as _i19;
+import '../pallet_upgrade_origin/pallet/call.dart' as _i16;
+import '../pallet_utility/pallet/call.dart' as _i27;
+
+abstract class RuntimeCall {
+  const RuntimeCall();
+
+  factory RuntimeCall.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $RuntimeCallCodec codec = $RuntimeCallCodec();
+
+  static const $RuntimeCall values = $RuntimeCall();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $RuntimeCall {
+  const $RuntimeCall();
+
+  System system(_i3.Call value0) {
+    return System(value0);
+  }
+
+  Account account(_i4.Call value0) {
+    return Account(value0);
+  }
+
+  Scheduler scheduler(_i5.Call value0) {
+    return Scheduler(value0);
+  }
+
+  Babe babe(_i6.Call value0) {
+    return Babe(value0);
+  }
+
+  Timestamp timestamp(_i7.Call value0) {
+    return Timestamp(value0);
+  }
+
+  Balances balances(_i8.Call value0) {
+    return Balances(value0);
+  }
+
+  OneshotAccount oneshotAccount(_i9.Call value0) {
+    return OneshotAccount(value0);
+  }
+
+  SmithMembers smithMembers(_i10.Call value0) {
+    return SmithMembers(value0);
+  }
+
+  AuthorityMembers authorityMembers(_i11.Call value0) {
+    return AuthorityMembers(value0);
+  }
+
+  Session session(_i12.Call value0) {
+    return Session(value0);
+  }
+
+  Grandpa grandpa(_i13.Call value0) {
+    return Grandpa(value0);
+  }
+
+  ImOnline imOnline(_i14.Call value0) {
+    return ImOnline(value0);
+  }
+
+  Sudo sudo(_i15.Call value0) {
+    return Sudo(value0);
+  }
+
+  UpgradeOrigin upgradeOrigin(_i16.Call value0) {
+    return UpgradeOrigin(value0);
+  }
+
+  Preimage preimage(_i17.Call value0) {
+    return Preimage(value0);
+  }
+
+  TechnicalCommittee technicalCommittee(_i18.Call value0) {
+    return TechnicalCommittee(value0);
+  }
+
+  UniversalDividend universalDividend(_i19.Call value0) {
+    return UniversalDividend(value0);
+  }
+
+  Identity identity(_i20.Call value0) {
+    return Identity(value0);
+  }
+
+  Certification certification(_i21.Call value0) {
+    return Certification(value0);
+  }
+
+  Distance distance(_i22.Call value0) {
+    return Distance(value0);
+  }
+
+  AtomicSwap atomicSwap(_i23.Call value0) {
+    return AtomicSwap(value0);
+  }
+
+  Multisig multisig(_i24.Call value0) {
+    return Multisig(value0);
+  }
+
+  ProvideRandomness provideRandomness(_i25.Call value0) {
+    return ProvideRandomness(value0);
+  }
+
+  Proxy proxy(_i26.Call value0) {
+    return Proxy(value0);
+  }
+
+  Utility utility(_i27.Call value0) {
+    return Utility(value0);
+  }
+
+  Treasury treasury(_i28.Call value0) {
+    return Treasury(value0);
+  }
+}
+
+class $RuntimeCallCodec with _i1.Codec<RuntimeCall> {
+  const $RuntimeCallCodec();
+
+  @override
+  RuntimeCall decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return System._decode(input);
+      case 1:
+        return Account._decode(input);
+      case 2:
+        return Scheduler._decode(input);
+      case 3:
+        return Babe._decode(input);
+      case 4:
+        return Timestamp._decode(input);
+      case 6:
+        return Balances._decode(input);
+      case 7:
+        return OneshotAccount._decode(input);
+      case 10:
+        return SmithMembers._decode(input);
+      case 11:
+        return AuthorityMembers._decode(input);
+      case 15:
+        return Session._decode(input);
+      case 16:
+        return Grandpa._decode(input);
+      case 17:
+        return ImOnline._decode(input);
+      case 20:
+        return Sudo._decode(input);
+      case 21:
+        return UpgradeOrigin._decode(input);
+      case 22:
+        return Preimage._decode(input);
+      case 23:
+        return TechnicalCommittee._decode(input);
+      case 30:
+        return UniversalDividend._decode(input);
+      case 41:
+        return Identity._decode(input);
+      case 43:
+        return Certification._decode(input);
+      case 44:
+        return Distance._decode(input);
+      case 50:
+        return AtomicSwap._decode(input);
+      case 51:
+        return Multisig._decode(input);
+      case 52:
+        return ProvideRandomness._decode(input);
+      case 53:
+        return Proxy._decode(input);
+      case 54:
+        return Utility._decode(input);
+      case 55:
+        return Treasury._decode(input);
+      default:
+        throw Exception('RuntimeCall: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    RuntimeCall value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case System:
+        (value as System).encodeTo(output);
+        break;
+      case Account:
+        (value as Account).encodeTo(output);
+        break;
+      case Scheduler:
+        (value as Scheduler).encodeTo(output);
+        break;
+      case Babe:
+        (value as Babe).encodeTo(output);
+        break;
+      case Timestamp:
+        (value as Timestamp).encodeTo(output);
+        break;
+      case Balances:
+        (value as Balances).encodeTo(output);
+        break;
+      case OneshotAccount:
+        (value as OneshotAccount).encodeTo(output);
+        break;
+      case SmithMembers:
+        (value as SmithMembers).encodeTo(output);
+        break;
+      case AuthorityMembers:
+        (value as AuthorityMembers).encodeTo(output);
+        break;
+      case Session:
+        (value as Session).encodeTo(output);
+        break;
+      case Grandpa:
+        (value as Grandpa).encodeTo(output);
+        break;
+      case ImOnline:
+        (value as ImOnline).encodeTo(output);
+        break;
+      case Sudo:
+        (value as Sudo).encodeTo(output);
+        break;
+      case UpgradeOrigin:
+        (value as UpgradeOrigin).encodeTo(output);
+        break;
+      case Preimage:
+        (value as Preimage).encodeTo(output);
+        break;
+      case TechnicalCommittee:
+        (value as TechnicalCommittee).encodeTo(output);
+        break;
+      case UniversalDividend:
+        (value as UniversalDividend).encodeTo(output);
+        break;
+      case Identity:
+        (value as Identity).encodeTo(output);
+        break;
+      case Certification:
+        (value as Certification).encodeTo(output);
+        break;
+      case Distance:
+        (value as Distance).encodeTo(output);
+        break;
+      case AtomicSwap:
+        (value as AtomicSwap).encodeTo(output);
+        break;
+      case Multisig:
+        (value as Multisig).encodeTo(output);
+        break;
+      case ProvideRandomness:
+        (value as ProvideRandomness).encodeTo(output);
+        break;
+      case Proxy:
+        (value as Proxy).encodeTo(output);
+        break;
+      case Utility:
+        (value as Utility).encodeTo(output);
+        break;
+      case Treasury:
+        (value as Treasury).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'RuntimeCall: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(RuntimeCall value) {
+    switch (value.runtimeType) {
+      case System:
+        return (value as System)._sizeHint();
+      case Account:
+        return (value as Account)._sizeHint();
+      case Scheduler:
+        return (value as Scheduler)._sizeHint();
+      case Babe:
+        return (value as Babe)._sizeHint();
+      case Timestamp:
+        return (value as Timestamp)._sizeHint();
+      case Balances:
+        return (value as Balances)._sizeHint();
+      case OneshotAccount:
+        return (value as OneshotAccount)._sizeHint();
+      case SmithMembers:
+        return (value as SmithMembers)._sizeHint();
+      case AuthorityMembers:
+        return (value as AuthorityMembers)._sizeHint();
+      case Session:
+        return (value as Session)._sizeHint();
+      case Grandpa:
+        return (value as Grandpa)._sizeHint();
+      case ImOnline:
+        return (value as ImOnline)._sizeHint();
+      case Sudo:
+        return (value as Sudo)._sizeHint();
+      case UpgradeOrigin:
+        return (value as UpgradeOrigin)._sizeHint();
+      case Preimage:
+        return (value as Preimage)._sizeHint();
+      case TechnicalCommittee:
+        return (value as TechnicalCommittee)._sizeHint();
+      case UniversalDividend:
+        return (value as UniversalDividend)._sizeHint();
+      case Identity:
+        return (value as Identity)._sizeHint();
+      case Certification:
+        return (value as Certification)._sizeHint();
+      case Distance:
+        return (value as Distance)._sizeHint();
+      case AtomicSwap:
+        return (value as AtomicSwap)._sizeHint();
+      case Multisig:
+        return (value as Multisig)._sizeHint();
+      case ProvideRandomness:
+        return (value as ProvideRandomness)._sizeHint();
+      case Proxy:
+        return (value as Proxy)._sizeHint();
+      case Utility:
+        return (value as Utility)._sizeHint();
+      case Treasury:
+        return (value as Treasury)._sizeHint();
+      default:
+        throw Exception(
+            'RuntimeCall: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class System extends RuntimeCall {
+  const System(this.value0);
+
+  factory System._decode(_i1.Input input) {
+    return System(_i3.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<System, Runtime>
+  final _i3.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'System': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is System && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Account extends RuntimeCall {
+  const Account(this.value0);
+
+  factory Account._decode(_i1.Input input) {
+    return Account(_i4.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Account, Runtime>
+  final _i4.Call value0;
+
+  @override
+  Map<String, String> toJson() => {'Account': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i4.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i4.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Account && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Scheduler extends RuntimeCall {
+  const Scheduler(this.value0);
+
+  factory Scheduler._decode(_i1.Input input) {
+    return Scheduler(_i5.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Scheduler, Runtime>
+  final _i5.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Scheduler': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i5.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i5.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Scheduler && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Babe extends RuntimeCall {
+  const Babe(this.value0);
+
+  factory Babe._decode(_i1.Input input) {
+    return Babe(_i6.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Babe, Runtime>
+  final _i6.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, Map<String, dynamic>>>> toJson() =>
+      {'Babe': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i6.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i6.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Babe && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Timestamp extends RuntimeCall {
+  const Timestamp(this.value0);
+
+  factory Timestamp._decode(_i1.Input input) {
+    return Timestamp(_i7.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Timestamp, Runtime>
+  final _i7.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, BigInt>>> toJson() =>
+      {'Timestamp': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i7.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    _i7.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Timestamp && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Balances extends RuntimeCall {
+  const Balances(this.value0);
+
+  factory Balances._decode(_i1.Input input) {
+    return Balances(_i8.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Balances, Runtime>
+  final _i8.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Balances': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i8.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      6,
+      output,
+    );
+    _i8.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Balances && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class OneshotAccount extends RuntimeCall {
+  const OneshotAccount(this.value0);
+
+  factory OneshotAccount._decode(_i1.Input input) {
+    return OneshotAccount(_i9.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<OneshotAccount, Runtime>
+  final _i9.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'OneshotAccount': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i9.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      7,
+      output,
+    );
+    _i9.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is OneshotAccount && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class SmithMembers extends RuntimeCall {
+  const SmithMembers(this.value0);
+
+  factory SmithMembers._decode(_i1.Input input) {
+    return SmithMembers(_i10.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<SmithMembers, Runtime>
+  final _i10.Call value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() =>
+      {'SmithMembers': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i10.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      10,
+      output,
+    );
+    _i10.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SmithMembers && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class AuthorityMembers extends RuntimeCall {
+  const AuthorityMembers(this.value0);
+
+  factory AuthorityMembers._decode(_i1.Input input) {
+    return AuthorityMembers(_i11.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<AuthorityMembers, Runtime>
+  final _i11.Call value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() =>
+      {'AuthorityMembers': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i11.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      11,
+      output,
+    );
+    _i11.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AuthorityMembers && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Session extends RuntimeCall {
+  const Session(this.value0);
+
+  factory Session._decode(_i1.Input input) {
+    return Session(_i12.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Session, Runtime>
+  final _i12.Call value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'Session': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i12.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      15,
+      output,
+    );
+    _i12.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Session && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Grandpa extends RuntimeCall {
+  const Grandpa(this.value0);
+
+  factory Grandpa._decode(_i1.Input input) {
+    return Grandpa(_i13.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Grandpa, Runtime>
+  final _i13.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Grandpa': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i13.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      16,
+      output,
+    );
+    _i13.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Grandpa && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class ImOnline extends RuntimeCall {
+  const ImOnline(this.value0);
+
+  factory ImOnline._decode(_i1.Input input) {
+    return ImOnline(_i14.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<ImOnline, Runtime>
+  final _i14.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'ImOnline': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i14.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      17,
+      output,
+    );
+    _i14.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ImOnline && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Sudo extends RuntimeCall {
+  const Sudo(this.value0);
+
+  factory Sudo._decode(_i1.Input input) {
+    return Sudo(_i15.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Sudo, Runtime>
+  final _i15.Call value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'Sudo': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i15.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      20,
+      output,
+    );
+    _i15.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Sudo && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class UpgradeOrigin extends RuntimeCall {
+  const UpgradeOrigin(this.value0);
+
+  factory UpgradeOrigin._decode(_i1.Input input) {
+    return UpgradeOrigin(_i16.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<UpgradeOrigin, Runtime>
+  final _i16.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, Map<String, dynamic>>>> toJson() =>
+      {'UpgradeOrigin': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i16.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      21,
+      output,
+    );
+    _i16.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is UpgradeOrigin && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Preimage extends RuntimeCall {
+  const Preimage(this.value0);
+
+  factory Preimage._decode(_i1.Input input) {
+    return Preimage(_i17.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Preimage, Runtime>
+  final _i17.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, List<dynamic>>>> toJson() =>
+      {'Preimage': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i17.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      22,
+      output,
+    );
+    _i17.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Preimage && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class TechnicalCommittee extends RuntimeCall {
+  const TechnicalCommittee(this.value0);
+
+  factory TechnicalCommittee._decode(_i1.Input input) {
+    return TechnicalCommittee(_i18.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<TechnicalCommittee, Runtime>
+  final _i18.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'TechnicalCommittee': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i18.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      23,
+      output,
+    );
+    _i18.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is TechnicalCommittee && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class UniversalDividend extends RuntimeCall {
+  const UniversalDividend(this.value0);
+
+  factory UniversalDividend._decode(_i1.Input input) {
+    return UniversalDividend(_i19.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<UniversalDividend, Runtime>
+  final _i19.Call value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() =>
+      {'UniversalDividend': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i19.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      30,
+      output,
+    );
+    _i19.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is UniversalDividend && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Identity extends RuntimeCall {
+  const Identity(this.value0);
+
+  factory Identity._decode(_i1.Input input) {
+    return Identity(_i20.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Identity, Runtime>
+  final _i20.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Identity': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i20.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      41,
+      output,
+    );
+    _i20.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Identity && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Certification extends RuntimeCall {
+  const Certification(this.value0);
+
+  factory Certification._decode(_i1.Input input) {
+    return Certification(_i21.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Certification, Runtime>
+  final _i21.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, int>>> toJson() =>
+      {'Certification': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i21.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      43,
+      output,
+    );
+    _i21.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Certification && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Distance extends RuntimeCall {
+  const Distance(this.value0);
+
+  factory Distance._decode(_i1.Input input) {
+    return Distance(_i22.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Distance, Runtime>
+  final _i22.Call value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'Distance': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i22.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      44,
+      output,
+    );
+    _i22.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Distance && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class AtomicSwap extends RuntimeCall {
+  const AtomicSwap(this.value0);
+
+  factory AtomicSwap._decode(_i1.Input input) {
+    return AtomicSwap(_i23.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<AtomicSwap, Runtime>
+  final _i23.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'AtomicSwap': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i23.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      50,
+      output,
+    );
+    _i23.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AtomicSwap && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Multisig extends RuntimeCall {
+  const Multisig(this.value0);
+
+  factory Multisig._decode(_i1.Input input) {
+    return Multisig(_i24.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Multisig, Runtime>
+  final _i24.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Multisig': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i24.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      51,
+      output,
+    );
+    _i24.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Multisig && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class ProvideRandomness extends RuntimeCall {
+  const ProvideRandomness(this.value0);
+
+  factory ProvideRandomness._decode(_i1.Input input) {
+    return ProvideRandomness(_i25.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<ProvideRandomness, Runtime>
+  final _i25.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'ProvideRandomness': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i25.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      52,
+      output,
+    );
+    _i25.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ProvideRandomness && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Proxy extends RuntimeCall {
+  const Proxy(this.value0);
+
+  factory Proxy._decode(_i1.Input input) {
+    return Proxy(_i26.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Proxy, Runtime>
+  final _i26.Call value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'Proxy': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i26.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      53,
+      output,
+    );
+    _i26.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Proxy && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Utility extends RuntimeCall {
+  const Utility(this.value0);
+
+  factory Utility._decode(_i1.Input input) {
+    return Utility(_i27.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Utility, Runtime>
+  final _i27.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Utility': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i27.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      54,
+      output,
+    );
+    _i27.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Utility && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Treasury extends RuntimeCall {
+  const Treasury(this.value0);
+
+  factory Treasury._decode(_i1.Input input) {
+    return Treasury(_i28.Call.codec.decode(input));
+  }
+
+  /// self::sp_api_hidden_includes_construct_runtime::hidden_include::dispatch
+  ///::CallableCallFor<Treasury, Runtime>
+  final _i28.Call value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Treasury': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i28.Call.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      55,
+      output,
+    );
+    _i28.Call.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Treasury && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/gdev_runtime/runtime_event.dart b/lib/src/models/generated/duniter/types/gdev_runtime/runtime_event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..9998f1874708a52000de4a633ade33e1e9f115db
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/gdev_runtime/runtime_event.dart
@@ -0,0 +1,1600 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../frame_system/pallet/event.dart' as _i3;
+import '../pallet_atomic_swap/pallet/event.dart' as _i25;
+import '../pallet_authority_members/pallet/event.dart' as _i11;
+import '../pallet_balances/pallet/event.dart' as _i6;
+import '../pallet_certification/pallet/event.dart' as _i23;
+import '../pallet_collective/pallet/event.dart' as _i19;
+import '../pallet_distance/pallet/event.dart' as _i24;
+import '../pallet_duniter_account/pallet/event.dart' as _i4;
+import '../pallet_grandpa/pallet/event.dart' as _i14;
+import '../pallet_identity/pallet/event.dart' as _i21;
+import '../pallet_im_online/pallet/event.dart' as _i15;
+import '../pallet_membership/pallet/event.dart' as _i22;
+import '../pallet_multisig/pallet/event.dart' as _i26;
+import '../pallet_offences/pallet/event.dart' as _i12;
+import '../pallet_oneshot_account/pallet/event.dart' as _i8;
+import '../pallet_preimage/pallet/event.dart' as _i18;
+import '../pallet_provide_randomness/pallet/event.dart' as _i27;
+import '../pallet_proxy/pallet/event.dart' as _i28;
+import '../pallet_quota/pallet/event.dart' as _i9;
+import '../pallet_scheduler/pallet/event.dart' as _i5;
+import '../pallet_session/pallet/event.dart' as _i13;
+import '../pallet_smith_members/pallet/event.dart' as _i10;
+import '../pallet_sudo/pallet/event.dart' as _i16;
+import '../pallet_transaction_payment/pallet/event.dart' as _i7;
+import '../pallet_treasury/pallet/event.dart' as _i30;
+import '../pallet_universal_dividend/pallet/event.dart' as _i20;
+import '../pallet_upgrade_origin/pallet/event.dart' as _i17;
+import '../pallet_utility/pallet/event.dart' as _i29;
+
+abstract class RuntimeEvent {
+  const RuntimeEvent();
+
+  factory RuntimeEvent.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $RuntimeEventCodec codec = $RuntimeEventCodec();
+
+  static const $RuntimeEvent values = $RuntimeEvent();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $RuntimeEvent {
+  const $RuntimeEvent();
+
+  System system(_i3.Event value0) {
+    return System(value0);
+  }
+
+  Account account(_i4.Event value0) {
+    return Account(value0);
+  }
+
+  Scheduler scheduler(_i5.Event value0) {
+    return Scheduler(value0);
+  }
+
+  Balances balances(_i6.Event value0) {
+    return Balances(value0);
+  }
+
+  TransactionPayment transactionPayment(_i7.Event value0) {
+    return TransactionPayment(value0);
+  }
+
+  OneshotAccount oneshotAccount(_i8.Event value0) {
+    return OneshotAccount(value0);
+  }
+
+  Quota quota(_i9.Event value0) {
+    return Quota(value0);
+  }
+
+  SmithMembers smithMembers(_i10.Event value0) {
+    return SmithMembers(value0);
+  }
+
+  AuthorityMembers authorityMembers(_i11.Event value0) {
+    return AuthorityMembers(value0);
+  }
+
+  Offences offences(_i12.Event value0) {
+    return Offences(value0);
+  }
+
+  Session session(_i13.Event value0) {
+    return Session(value0);
+  }
+
+  Grandpa grandpa(_i14.Event value0) {
+    return Grandpa(value0);
+  }
+
+  ImOnline imOnline(_i15.Event value0) {
+    return ImOnline(value0);
+  }
+
+  Sudo sudo(_i16.Event value0) {
+    return Sudo(value0);
+  }
+
+  UpgradeOrigin upgradeOrigin(_i17.Event value0) {
+    return UpgradeOrigin(value0);
+  }
+
+  Preimage preimage(_i18.Event value0) {
+    return Preimage(value0);
+  }
+
+  TechnicalCommittee technicalCommittee(_i19.Event value0) {
+    return TechnicalCommittee(value0);
+  }
+
+  UniversalDividend universalDividend(_i20.Event value0) {
+    return UniversalDividend(value0);
+  }
+
+  Identity identity(_i21.Event value0) {
+    return Identity(value0);
+  }
+
+  Membership membership(_i22.Event value0) {
+    return Membership(value0);
+  }
+
+  Certification certification(_i23.Event value0) {
+    return Certification(value0);
+  }
+
+  Distance distance(_i24.Event value0) {
+    return Distance(value0);
+  }
+
+  AtomicSwap atomicSwap(_i25.Event value0) {
+    return AtomicSwap(value0);
+  }
+
+  Multisig multisig(_i26.Event value0) {
+    return Multisig(value0);
+  }
+
+  ProvideRandomness provideRandomness(_i27.Event value0) {
+    return ProvideRandomness(value0);
+  }
+
+  Proxy proxy(_i28.Event value0) {
+    return Proxy(value0);
+  }
+
+  Utility utility(_i29.Event value0) {
+    return Utility(value0);
+  }
+
+  Treasury treasury(_i30.Event value0) {
+    return Treasury(value0);
+  }
+}
+
+class $RuntimeEventCodec with _i1.Codec<RuntimeEvent> {
+  const $RuntimeEventCodec();
+
+  @override
+  RuntimeEvent decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return System._decode(input);
+      case 1:
+        return Account._decode(input);
+      case 2:
+        return Scheduler._decode(input);
+      case 6:
+        return Balances._decode(input);
+      case 32:
+        return TransactionPayment._decode(input);
+      case 7:
+        return OneshotAccount._decode(input);
+      case 66:
+        return Quota._decode(input);
+      case 10:
+        return SmithMembers._decode(input);
+      case 11:
+        return AuthorityMembers._decode(input);
+      case 13:
+        return Offences._decode(input);
+      case 15:
+        return Session._decode(input);
+      case 16:
+        return Grandpa._decode(input);
+      case 17:
+        return ImOnline._decode(input);
+      case 20:
+        return Sudo._decode(input);
+      case 21:
+        return UpgradeOrigin._decode(input);
+      case 22:
+        return Preimage._decode(input);
+      case 23:
+        return TechnicalCommittee._decode(input);
+      case 30:
+        return UniversalDividend._decode(input);
+      case 41:
+        return Identity._decode(input);
+      case 42:
+        return Membership._decode(input);
+      case 43:
+        return Certification._decode(input);
+      case 44:
+        return Distance._decode(input);
+      case 50:
+        return AtomicSwap._decode(input);
+      case 51:
+        return Multisig._decode(input);
+      case 52:
+        return ProvideRandomness._decode(input);
+      case 53:
+        return Proxy._decode(input);
+      case 54:
+        return Utility._decode(input);
+      case 55:
+        return Treasury._decode(input);
+      default:
+        throw Exception('RuntimeEvent: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    RuntimeEvent value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case System:
+        (value as System).encodeTo(output);
+        break;
+      case Account:
+        (value as Account).encodeTo(output);
+        break;
+      case Scheduler:
+        (value as Scheduler).encodeTo(output);
+        break;
+      case Balances:
+        (value as Balances).encodeTo(output);
+        break;
+      case TransactionPayment:
+        (value as TransactionPayment).encodeTo(output);
+        break;
+      case OneshotAccount:
+        (value as OneshotAccount).encodeTo(output);
+        break;
+      case Quota:
+        (value as Quota).encodeTo(output);
+        break;
+      case SmithMembers:
+        (value as SmithMembers).encodeTo(output);
+        break;
+      case AuthorityMembers:
+        (value as AuthorityMembers).encodeTo(output);
+        break;
+      case Offences:
+        (value as Offences).encodeTo(output);
+        break;
+      case Session:
+        (value as Session).encodeTo(output);
+        break;
+      case Grandpa:
+        (value as Grandpa).encodeTo(output);
+        break;
+      case ImOnline:
+        (value as ImOnline).encodeTo(output);
+        break;
+      case Sudo:
+        (value as Sudo).encodeTo(output);
+        break;
+      case UpgradeOrigin:
+        (value as UpgradeOrigin).encodeTo(output);
+        break;
+      case Preimage:
+        (value as Preimage).encodeTo(output);
+        break;
+      case TechnicalCommittee:
+        (value as TechnicalCommittee).encodeTo(output);
+        break;
+      case UniversalDividend:
+        (value as UniversalDividend).encodeTo(output);
+        break;
+      case Identity:
+        (value as Identity).encodeTo(output);
+        break;
+      case Membership:
+        (value as Membership).encodeTo(output);
+        break;
+      case Certification:
+        (value as Certification).encodeTo(output);
+        break;
+      case Distance:
+        (value as Distance).encodeTo(output);
+        break;
+      case AtomicSwap:
+        (value as AtomicSwap).encodeTo(output);
+        break;
+      case Multisig:
+        (value as Multisig).encodeTo(output);
+        break;
+      case ProvideRandomness:
+        (value as ProvideRandomness).encodeTo(output);
+        break;
+      case Proxy:
+        (value as Proxy).encodeTo(output);
+        break;
+      case Utility:
+        (value as Utility).encodeTo(output);
+        break;
+      case Treasury:
+        (value as Treasury).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'RuntimeEvent: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(RuntimeEvent value) {
+    switch (value.runtimeType) {
+      case System:
+        return (value as System)._sizeHint();
+      case Account:
+        return (value as Account)._sizeHint();
+      case Scheduler:
+        return (value as Scheduler)._sizeHint();
+      case Balances:
+        return (value as Balances)._sizeHint();
+      case TransactionPayment:
+        return (value as TransactionPayment)._sizeHint();
+      case OneshotAccount:
+        return (value as OneshotAccount)._sizeHint();
+      case Quota:
+        return (value as Quota)._sizeHint();
+      case SmithMembers:
+        return (value as SmithMembers)._sizeHint();
+      case AuthorityMembers:
+        return (value as AuthorityMembers)._sizeHint();
+      case Offences:
+        return (value as Offences)._sizeHint();
+      case Session:
+        return (value as Session)._sizeHint();
+      case Grandpa:
+        return (value as Grandpa)._sizeHint();
+      case ImOnline:
+        return (value as ImOnline)._sizeHint();
+      case Sudo:
+        return (value as Sudo)._sizeHint();
+      case UpgradeOrigin:
+        return (value as UpgradeOrigin)._sizeHint();
+      case Preimage:
+        return (value as Preimage)._sizeHint();
+      case TechnicalCommittee:
+        return (value as TechnicalCommittee)._sizeHint();
+      case UniversalDividend:
+        return (value as UniversalDividend)._sizeHint();
+      case Identity:
+        return (value as Identity)._sizeHint();
+      case Membership:
+        return (value as Membership)._sizeHint();
+      case Certification:
+        return (value as Certification)._sizeHint();
+      case Distance:
+        return (value as Distance)._sizeHint();
+      case AtomicSwap:
+        return (value as AtomicSwap)._sizeHint();
+      case Multisig:
+        return (value as Multisig)._sizeHint();
+      case ProvideRandomness:
+        return (value as ProvideRandomness)._sizeHint();
+      case Proxy:
+        return (value as Proxy)._sizeHint();
+      case Utility:
+        return (value as Utility)._sizeHint();
+      case Treasury:
+        return (value as Treasury)._sizeHint();
+      default:
+        throw Exception(
+            'RuntimeEvent: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class System extends RuntimeEvent {
+  const System(this.value0);
+
+  factory System._decode(_i1.Input input) {
+    return System(_i3.Event.codec.decode(input));
+  }
+
+  /// frame_system::Event<Runtime>
+  final _i3.Event value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'System': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is System && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Account extends RuntimeEvent {
+  const Account(this.value0);
+
+  factory Account._decode(_i1.Input input) {
+    return Account(_i4.Event.codec.decode(input));
+  }
+
+  /// pallet_duniter_account::Event<Runtime>
+  final _i4.Event value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'Account': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i4.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i4.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Account && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Scheduler extends RuntimeEvent {
+  const Scheduler(this.value0);
+
+  factory Scheduler._decode(_i1.Input input) {
+    return Scheduler(_i5.Event.codec.decode(input));
+  }
+
+  /// pallet_scheduler::Event<Runtime>
+  final _i5.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Scheduler': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i5.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i5.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Scheduler && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Balances extends RuntimeEvent {
+  const Balances(this.value0);
+
+  factory Balances._decode(_i1.Input input) {
+    return Balances(_i6.Event.codec.decode(input));
+  }
+
+  /// pallet_balances::Event<Runtime>
+  final _i6.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Balances': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i6.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      6,
+      output,
+    );
+    _i6.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Balances && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class TransactionPayment extends RuntimeEvent {
+  const TransactionPayment(this.value0);
+
+  factory TransactionPayment._decode(_i1.Input input) {
+    return TransactionPayment(_i7.Event.codec.decode(input));
+  }
+
+  /// pallet_transaction_payment::Event<Runtime>
+  final _i7.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'TransactionPayment': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i7.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      32,
+      output,
+    );
+    _i7.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is TransactionPayment && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class OneshotAccount extends RuntimeEvent {
+  const OneshotAccount(this.value0);
+
+  factory OneshotAccount._decode(_i1.Input input) {
+    return OneshotAccount(_i8.Event.codec.decode(input));
+  }
+
+  /// pallet_oneshot_account::Event<Runtime>
+  final _i8.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'OneshotAccount': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i8.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      7,
+      output,
+    );
+    _i8.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is OneshotAccount && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Quota extends RuntimeEvent {
+  const Quota(this.value0);
+
+  factory Quota._decode(_i1.Input input) {
+    return Quota(_i9.Event.codec.decode(input));
+  }
+
+  /// pallet_quota::Event<Runtime>
+  final _i9.Event value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'Quota': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i9.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      66,
+      output,
+    );
+    _i9.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Quota && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class SmithMembers extends RuntimeEvent {
+  const SmithMembers(this.value0);
+
+  factory SmithMembers._decode(_i1.Input input) {
+    return SmithMembers(_i10.Event.codec.decode(input));
+  }
+
+  /// pallet_smith_members::Event<Runtime>
+  final _i10.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, int>>> toJson() =>
+      {'SmithMembers': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i10.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      10,
+      output,
+    );
+    _i10.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SmithMembers && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class AuthorityMembers extends RuntimeEvent {
+  const AuthorityMembers(this.value0);
+
+  factory AuthorityMembers._decode(_i1.Input input) {
+    return AuthorityMembers(_i11.Event.codec.decode(input));
+  }
+
+  /// pallet_authority_members::Event<Runtime>
+  final _i11.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'AuthorityMembers': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i11.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      11,
+      output,
+    );
+    _i11.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AuthorityMembers && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Offences extends RuntimeEvent {
+  const Offences(this.value0);
+
+  factory Offences._decode(_i1.Input input) {
+    return Offences(_i12.Event.codec.decode(input));
+  }
+
+  /// pallet_offences::Event
+  final _i12.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, List<int>>>> toJson() =>
+      {'Offences': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i12.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      13,
+      output,
+    );
+    _i12.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Offences && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Session extends RuntimeEvent {
+  const Session(this.value0);
+
+  factory Session._decode(_i1.Input input) {
+    return Session(_i13.Event.codec.decode(input));
+  }
+
+  /// pallet_session::Event
+  final _i13.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, int>>> toJson() =>
+      {'Session': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i13.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      15,
+      output,
+    );
+    _i13.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Session && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Grandpa extends RuntimeEvent {
+  const Grandpa(this.value0);
+
+  factory Grandpa._decode(_i1.Input input) {
+    return Grandpa(_i14.Event.codec.decode(input));
+  }
+
+  /// pallet_grandpa::Event
+  final _i14.Event value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'Grandpa': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i14.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      16,
+      output,
+    );
+    _i14.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Grandpa && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class ImOnline extends RuntimeEvent {
+  const ImOnline(this.value0);
+
+  factory ImOnline._decode(_i1.Input input) {
+    return ImOnline(_i15.Event.codec.decode(input));
+  }
+
+  /// pallet_im_online::Event<Runtime>
+  final _i15.Event value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'ImOnline': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i15.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      17,
+      output,
+    );
+    _i15.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ImOnline && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Sudo extends RuntimeEvent {
+  const Sudo(this.value0);
+
+  factory Sudo._decode(_i1.Input input) {
+    return Sudo(_i16.Event.codec.decode(input));
+  }
+
+  /// pallet_sudo::Event<Runtime>
+  final _i16.Event value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'Sudo': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i16.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      20,
+      output,
+    );
+    _i16.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Sudo && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class UpgradeOrigin extends RuntimeEvent {
+  const UpgradeOrigin(this.value0);
+
+  factory UpgradeOrigin._decode(_i1.Input input) {
+    return UpgradeOrigin(_i17.Event.codec.decode(input));
+  }
+
+  /// pallet_upgrade_origin::Event
+  final _i17.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, Map<String, dynamic>>>> toJson() =>
+      {'UpgradeOrigin': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i17.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      21,
+      output,
+    );
+    _i17.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is UpgradeOrigin && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Preimage extends RuntimeEvent {
+  const Preimage(this.value0);
+
+  factory Preimage._decode(_i1.Input input) {
+    return Preimage(_i18.Event.codec.decode(input));
+  }
+
+  /// pallet_preimage::Event<Runtime>
+  final _i18.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, List<int>>>> toJson() =>
+      {'Preimage': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i18.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      22,
+      output,
+    );
+    _i18.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Preimage && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class TechnicalCommittee extends RuntimeEvent {
+  const TechnicalCommittee(this.value0);
+
+  factory TechnicalCommittee._decode(_i1.Input input) {
+    return TechnicalCommittee(_i19.Event.codec.decode(input));
+  }
+
+  /// pallet_collective::Event<Runtime, pallet_collective::Instance2>
+  final _i19.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'TechnicalCommittee': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i19.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      23,
+      output,
+    );
+    _i19.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is TechnicalCommittee && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class UniversalDividend extends RuntimeEvent {
+  const UniversalDividend(this.value0);
+
+  factory UniversalDividend._decode(_i1.Input input) {
+    return UniversalDividend(_i20.Event.codec.decode(input));
+  }
+
+  /// pallet_universal_dividend::Event<Runtime>
+  final _i20.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'UniversalDividend': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i20.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      30,
+      output,
+    );
+    _i20.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is UniversalDividend && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Identity extends RuntimeEvent {
+  const Identity(this.value0);
+
+  factory Identity._decode(_i1.Input input) {
+    return Identity(_i21.Event.codec.decode(input));
+  }
+
+  /// pallet_identity::Event<Runtime>
+  final _i21.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Identity': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i21.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      41,
+      output,
+    );
+    _i21.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Identity && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Membership extends RuntimeEvent {
+  const Membership(this.value0);
+
+  factory Membership._decode(_i1.Input input) {
+    return Membership(_i22.Event.codec.decode(input));
+  }
+
+  /// pallet_membership::Event<Runtime>
+  final _i22.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Membership': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i22.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      42,
+      output,
+    );
+    _i22.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Membership && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Certification extends RuntimeEvent {
+  const Certification(this.value0);
+
+  factory Certification._decode(_i1.Input input) {
+    return Certification(_i23.Event.codec.decode(input));
+  }
+
+  /// pallet_certification::Event<Runtime>
+  final _i23.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Certification': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i23.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      43,
+      output,
+    );
+    _i23.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Certification && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Distance extends RuntimeEvent {
+  const Distance(this.value0);
+
+  factory Distance._decode(_i1.Input input) {
+    return Distance(_i24.Event.codec.decode(input));
+  }
+
+  /// pallet_distance::Event<Runtime>
+  final _i24.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Distance': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i24.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      44,
+      output,
+    );
+    _i24.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Distance && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class AtomicSwap extends RuntimeEvent {
+  const AtomicSwap(this.value0);
+
+  factory AtomicSwap._decode(_i1.Input input) {
+    return AtomicSwap(_i25.Event.codec.decode(input));
+  }
+
+  /// pallet_atomic_swap::Event<Runtime>
+  final _i25.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'AtomicSwap': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i25.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      50,
+      output,
+    );
+    _i25.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AtomicSwap && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Multisig extends RuntimeEvent {
+  const Multisig(this.value0);
+
+  factory Multisig._decode(_i1.Input input) {
+    return Multisig(_i26.Event.codec.decode(input));
+  }
+
+  /// pallet_multisig::Event<Runtime>
+  final _i26.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Multisig': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i26.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      51,
+      output,
+    );
+    _i26.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Multisig && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class ProvideRandomness extends RuntimeEvent {
+  const ProvideRandomness(this.value0);
+
+  factory ProvideRandomness._decode(_i1.Input input) {
+    return ProvideRandomness(_i27.Event.codec.decode(input));
+  }
+
+  /// pallet_provide_randomness::Event
+  final _i27.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'ProvideRandomness': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i27.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      52,
+      output,
+    );
+    _i27.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ProvideRandomness && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Proxy extends RuntimeEvent {
+  const Proxy(this.value0);
+
+  factory Proxy._decode(_i1.Input input) {
+    return Proxy(_i28.Event.codec.decode(input));
+  }
+
+  /// pallet_proxy::Event<Runtime>
+  final _i28.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Proxy': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i28.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      53,
+      output,
+    );
+    _i28.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Proxy && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Utility extends RuntimeEvent {
+  const Utility(this.value0);
+
+  factory Utility._decode(_i1.Input input) {
+    return Utility(_i29.Event.codec.decode(input));
+  }
+
+  /// pallet_utility::Event
+  final _i29.Event value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'Utility': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i29.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      54,
+      output,
+    );
+    _i29.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Utility && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Treasury extends RuntimeEvent {
+  const Treasury(this.value0);
+
+  factory Treasury._decode(_i1.Input input) {
+    return Treasury(_i30.Event.codec.decode(input));
+  }
+
+  /// pallet_treasury::Event<Runtime>
+  final _i30.Event value0;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() =>
+      {'Treasury': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i30.Event.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      55,
+      output,
+    );
+    _i30.Event.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Treasury && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_atomic_swap/balance_swap_action.dart b/lib/src/models/generated/duniter/types/pallet_atomic_swap/balance_swap_action.dart
new file mode 100644
index 0000000000000000000000000000000000000000..24af1214976a16dc18384f9e3e6b00059d4be7a0
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_atomic_swap/balance_swap_action.dart
@@ -0,0 +1,61 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class BalanceSwapAction {
+  const BalanceSwapAction({required this.value});
+
+  factory BalanceSwapAction.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// <C as Currency<AccountId>>::Balance
+  final BigInt value;
+
+  static const $BalanceSwapActionCodec codec = $BalanceSwapActionCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, BigInt> toJson() => {'value': value};
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is BalanceSwapAction && other.value == value;
+
+  @override
+  int get hashCode => value.hashCode;
+}
+
+class $BalanceSwapActionCodec with _i1.Codec<BalanceSwapAction> {
+  const $BalanceSwapActionCodec();
+
+  @override
+  void encodeTo(
+    BalanceSwapAction obj,
+    _i1.Output output,
+  ) {
+    _i1.U64Codec.codec.encodeTo(
+      obj.value,
+      output,
+    );
+  }
+
+  @override
+  BalanceSwapAction decode(_i1.Input input) {
+    return BalanceSwapAction(value: _i1.U64Codec.codec.decode(input));
+  }
+
+  @override
+  int sizeHint(BalanceSwapAction obj) {
+    int size = 0;
+    size = size + _i1.U64Codec.codec.sizeHint(obj.value);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_atomic_swap/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_atomic_swap/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..fb2a8370bc641fe1213ca3c081effff06ef6f50a
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_atomic_swap/pallet/call.dart
@@ -0,0 +1,368 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+import '../balance_swap_action.dart' as _i4;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  CreateSwap createSwap({
+    required _i3.AccountId32 target,
+    required List<int> hashedProof,
+    required _i4.BalanceSwapAction action,
+    required int duration,
+  }) {
+    return CreateSwap(
+      target: target,
+      hashedProof: hashedProof,
+      action: action,
+      duration: duration,
+    );
+  }
+
+  ClaimSwap claimSwap({
+    required List<int> proof,
+    required _i4.BalanceSwapAction action,
+  }) {
+    return ClaimSwap(
+      proof: proof,
+      action: action,
+    );
+  }
+
+  CancelSwap cancelSwap({
+    required _i3.AccountId32 target,
+    required List<int> hashedProof,
+  }) {
+    return CancelSwap(
+      target: target,
+      hashedProof: hashedProof,
+    );
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return CreateSwap._decode(input);
+      case 1:
+        return ClaimSwap._decode(input);
+      case 2:
+        return CancelSwap._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case CreateSwap:
+        (value as CreateSwap).encodeTo(output);
+        break;
+      case ClaimSwap:
+        (value as ClaimSwap).encodeTo(output);
+        break;
+      case CancelSwap:
+        (value as CancelSwap).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case CreateSwap:
+        return (value as CreateSwap)._sizeHint();
+      case ClaimSwap:
+        return (value as ClaimSwap)._sizeHint();
+      case CancelSwap:
+        return (value as CancelSwap)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::create_swap`].
+class CreateSwap extends Call {
+  const CreateSwap({
+    required this.target,
+    required this.hashedProof,
+    required this.action,
+    required this.duration,
+  });
+
+  factory CreateSwap._decode(_i1.Input input) {
+    return CreateSwap(
+      target: const _i1.U8ArrayCodec(32).decode(input),
+      hashedProof: const _i1.U8ArrayCodec(32).decode(input),
+      action: _i4.BalanceSwapAction.codec.decode(input),
+      duration: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 target;
+
+  /// HashedProof
+  final List<int> hashedProof;
+
+  /// T::SwapAction
+  final _i4.BalanceSwapAction action;
+
+  /// BlockNumberFor<T>
+  final int duration;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'create_swap': {
+          'target': target.toList(),
+          'hashedProof': hashedProof.toList(),
+          'action': action.toJson(),
+          'duration': duration,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(target);
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(hashedProof);
+    size = size + _i4.BalanceSwapAction.codec.sizeHint(action);
+    size = size + _i1.U32Codec.codec.sizeHint(duration);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      target,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      hashedProof,
+      output,
+    );
+    _i4.BalanceSwapAction.codec.encodeTo(
+      action,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      duration,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is CreateSwap &&
+          _i5.listsEqual(
+            other.target,
+            target,
+          ) &&
+          _i5.listsEqual(
+            other.hashedProof,
+            hashedProof,
+          ) &&
+          other.action == action &&
+          other.duration == duration;
+
+  @override
+  int get hashCode => Object.hash(
+        target,
+        hashedProof,
+        action,
+        duration,
+      );
+}
+
+/// See [`Pallet::claim_swap`].
+class ClaimSwap extends Call {
+  const ClaimSwap({
+    required this.proof,
+    required this.action,
+  });
+
+  factory ClaimSwap._decode(_i1.Input input) {
+    return ClaimSwap(
+      proof: _i1.U8SequenceCodec.codec.decode(input),
+      action: _i4.BalanceSwapAction.codec.decode(input),
+    );
+  }
+
+  /// Vec<u8>
+  final List<int> proof;
+
+  /// T::SwapAction
+  final _i4.BalanceSwapAction action;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'claim_swap': {
+          'proof': proof,
+          'action': action.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(proof);
+    size = size + _i4.BalanceSwapAction.codec.sizeHint(action);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      proof,
+      output,
+    );
+    _i4.BalanceSwapAction.codec.encodeTo(
+      action,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ClaimSwap &&
+          _i5.listsEqual(
+            other.proof,
+            proof,
+          ) &&
+          other.action == action;
+
+  @override
+  int get hashCode => Object.hash(
+        proof,
+        action,
+      );
+}
+
+/// See [`Pallet::cancel_swap`].
+class CancelSwap extends Call {
+  const CancelSwap({
+    required this.target,
+    required this.hashedProof,
+  });
+
+  factory CancelSwap._decode(_i1.Input input) {
+    return CancelSwap(
+      target: const _i1.U8ArrayCodec(32).decode(input),
+      hashedProof: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 target;
+
+  /// HashedProof
+  final List<int> hashedProof;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'cancel_swap': {
+          'target': target.toList(),
+          'hashedProof': hashedProof.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(target);
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(hashedProof);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      target,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      hashedProof,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is CancelSwap &&
+          _i5.listsEqual(
+            other.target,
+            target,
+          ) &&
+          _i5.listsEqual(
+            other.hashedProof,
+            hashedProof,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        target,
+        hashedProof,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_atomic_swap/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_atomic_swap/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6e13d1cb33578c8903bf1149d946246bb78c6d19
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_atomic_swap/pallet/error.dart
@@ -0,0 +1,91 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Swap already exists.
+  alreadyExist('AlreadyExist', 0),
+
+  /// Swap proof is invalid.
+  invalidProof('InvalidProof', 1),
+
+  /// Proof is too large.
+  proofTooLarge('ProofTooLarge', 2),
+
+  /// Source does not match.
+  sourceMismatch('SourceMismatch', 3),
+
+  /// Swap has already been claimed.
+  alreadyClaimed('AlreadyClaimed', 4),
+
+  /// Swap does not exist.
+  notExist('NotExist', 5),
+
+  /// Claim action mismatch.
+  claimActionMismatch('ClaimActionMismatch', 6),
+
+  /// Duration has not yet passed for the swap to be cancelled.
+  durationNotPassed('DurationNotPassed', 7);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.alreadyExist;
+      case 1:
+        return Error.invalidProof;
+      case 2:
+        return Error.proofTooLarge;
+      case 3:
+        return Error.sourceMismatch;
+      case 4:
+        return Error.alreadyClaimed;
+      case 5:
+        return Error.notExist;
+      case 6:
+        return Error.claimActionMismatch;
+      case 7:
+        return Error.durationNotPassed;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_atomic_swap/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_atomic_swap/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a03780786835e335834bdbbefb86e066084475ef
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_atomic_swap/pallet/event.dart
@@ -0,0 +1,371 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+import '../pending_swap.dart' as _i4;
+
+/// Event of atomic swap pallet.
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  NewSwap newSwap({
+    required _i3.AccountId32 account,
+    required List<int> proof,
+    required _i4.PendingSwap swap,
+  }) {
+    return NewSwap(
+      account: account,
+      proof: proof,
+      swap: swap,
+    );
+  }
+
+  SwapClaimed swapClaimed({
+    required _i3.AccountId32 account,
+    required List<int> proof,
+    required bool success,
+  }) {
+    return SwapClaimed(
+      account: account,
+      proof: proof,
+      success: success,
+    );
+  }
+
+  SwapCancelled swapCancelled({
+    required _i3.AccountId32 account,
+    required List<int> proof,
+  }) {
+    return SwapCancelled(
+      account: account,
+      proof: proof,
+    );
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return NewSwap._decode(input);
+      case 1:
+        return SwapClaimed._decode(input);
+      case 2:
+        return SwapCancelled._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case NewSwap:
+        (value as NewSwap).encodeTo(output);
+        break;
+      case SwapClaimed:
+        (value as SwapClaimed).encodeTo(output);
+        break;
+      case SwapCancelled:
+        (value as SwapCancelled).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case NewSwap:
+        return (value as NewSwap)._sizeHint();
+      case SwapClaimed:
+        return (value as SwapClaimed)._sizeHint();
+      case SwapCancelled:
+        return (value as SwapCancelled)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// Swap created.
+class NewSwap extends Event {
+  const NewSwap({
+    required this.account,
+    required this.proof,
+    required this.swap,
+  });
+
+  factory NewSwap._decode(_i1.Input input) {
+    return NewSwap(
+      account: const _i1.U8ArrayCodec(32).decode(input),
+      proof: const _i1.U8ArrayCodec(32).decode(input),
+      swap: _i4.PendingSwap.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 account;
+
+  /// HashedProof
+  final List<int> proof;
+
+  /// PendingSwap<T>
+  final _i4.PendingSwap swap;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'NewSwap': {
+          'account': account.toList(),
+          'proof': proof.toList(),
+          'swap': swap.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(account);
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(proof);
+    size = size + _i4.PendingSwap.codec.sizeHint(swap);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      account,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      proof,
+      output,
+    );
+    _i4.PendingSwap.codec.encodeTo(
+      swap,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is NewSwap &&
+          _i5.listsEqual(
+            other.account,
+            account,
+          ) &&
+          _i5.listsEqual(
+            other.proof,
+            proof,
+          ) &&
+          other.swap == swap;
+
+  @override
+  int get hashCode => Object.hash(
+        account,
+        proof,
+        swap,
+      );
+}
+
+/// Swap claimed. The last parameter indicates whether the execution succeeds.
+class SwapClaimed extends Event {
+  const SwapClaimed({
+    required this.account,
+    required this.proof,
+    required this.success,
+  });
+
+  factory SwapClaimed._decode(_i1.Input input) {
+    return SwapClaimed(
+      account: const _i1.U8ArrayCodec(32).decode(input),
+      proof: const _i1.U8ArrayCodec(32).decode(input),
+      success: _i1.BoolCodec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 account;
+
+  /// HashedProof
+  final List<int> proof;
+
+  /// bool
+  final bool success;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'SwapClaimed': {
+          'account': account.toList(),
+          'proof': proof.toList(),
+          'success': success,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(account);
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(proof);
+    size = size + _i1.BoolCodec.codec.sizeHint(success);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      account,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      proof,
+      output,
+    );
+    _i1.BoolCodec.codec.encodeTo(
+      success,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SwapClaimed &&
+          _i5.listsEqual(
+            other.account,
+            account,
+          ) &&
+          _i5.listsEqual(
+            other.proof,
+            proof,
+          ) &&
+          other.success == success;
+
+  @override
+  int get hashCode => Object.hash(
+        account,
+        proof,
+        success,
+      );
+}
+
+/// Swap cancelled.
+class SwapCancelled extends Event {
+  const SwapCancelled({
+    required this.account,
+    required this.proof,
+  });
+
+  factory SwapCancelled._decode(_i1.Input input) {
+    return SwapCancelled(
+      account: const _i1.U8ArrayCodec(32).decode(input),
+      proof: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 account;
+
+  /// HashedProof
+  final List<int> proof;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'SwapCancelled': {
+          'account': account.toList(),
+          'proof': proof.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(account);
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(proof);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      account,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      proof,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SwapCancelled &&
+          _i5.listsEqual(
+            other.account,
+            account,
+          ) &&
+          _i5.listsEqual(
+            other.proof,
+            proof,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        account,
+        proof,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_atomic_swap/pending_swap.dart b/lib/src/models/generated/duniter/types/pallet_atomic_swap/pending_swap.dart
new file mode 100644
index 0000000000000000000000000000000000000000..dadc316a242f55399548af40c030818043758ca3
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_atomic_swap/pending_swap.dart
@@ -0,0 +1,103 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../sp_core/crypto/account_id32.dart' as _i2;
+import 'balance_swap_action.dart' as _i3;
+
+class PendingSwap {
+  const PendingSwap({
+    required this.source,
+    required this.action,
+    required this.endBlock,
+  });
+
+  factory PendingSwap.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// T::AccountId
+  final _i2.AccountId32 source;
+
+  /// T::SwapAction
+  final _i3.BalanceSwapAction action;
+
+  /// BlockNumberFor<T>
+  final int endBlock;
+
+  static const $PendingSwapCodec codec = $PendingSwapCodec();
+
+  _i4.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'source': source.toList(),
+        'action': action.toJson(),
+        'endBlock': endBlock,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is PendingSwap &&
+          _i5.listsEqual(
+            other.source,
+            source,
+          ) &&
+          other.action == action &&
+          other.endBlock == endBlock;
+
+  @override
+  int get hashCode => Object.hash(
+        source,
+        action,
+        endBlock,
+      );
+}
+
+class $PendingSwapCodec with _i1.Codec<PendingSwap> {
+  const $PendingSwapCodec();
+
+  @override
+  void encodeTo(
+    PendingSwap obj,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.source,
+      output,
+    );
+    _i3.BalanceSwapAction.codec.encodeTo(
+      obj.action,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.endBlock,
+      output,
+    );
+  }
+
+  @override
+  PendingSwap decode(_i1.Input input) {
+    return PendingSwap(
+      source: const _i1.U8ArrayCodec(32).decode(input),
+      action: _i3.BalanceSwapAction.codec.decode(input),
+      endBlock: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(PendingSwap obj) {
+    int size = 0;
+    size = size + const _i2.AccountId32Codec().sizeHint(obj.source);
+    size = size + _i3.BalanceSwapAction.codec.sizeHint(obj.action);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.endBlock);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_authority_members/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_authority_members/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..137015b36855419bb71a0dfba06576d1f97d6dc1
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_authority_members/pallet/call.dart
@@ -0,0 +1,302 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../gdev_runtime/opaque/session_keys.dart' as _i3;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  GoOffline goOffline() {
+    return const GoOffline();
+  }
+
+  GoOnline goOnline() {
+    return const GoOnline();
+  }
+
+  SetSessionKeys setSessionKeys({required _i3.SessionKeys keys}) {
+    return SetSessionKeys(keys: keys);
+  }
+
+  RemoveMember removeMember({required int memberId}) {
+    return RemoveMember(memberId: memberId);
+  }
+
+  RemoveMemberFromBlacklist removeMemberFromBlacklist({required int memberId}) {
+    return RemoveMemberFromBlacklist(memberId: memberId);
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return const GoOffline();
+      case 1:
+        return const GoOnline();
+      case 2:
+        return SetSessionKeys._decode(input);
+      case 3:
+        return RemoveMember._decode(input);
+      case 4:
+        return RemoveMemberFromBlacklist._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case GoOffline:
+        (value as GoOffline).encodeTo(output);
+        break;
+      case GoOnline:
+        (value as GoOnline).encodeTo(output);
+        break;
+      case SetSessionKeys:
+        (value as SetSessionKeys).encodeTo(output);
+        break;
+      case RemoveMember:
+        (value as RemoveMember).encodeTo(output);
+        break;
+      case RemoveMemberFromBlacklist:
+        (value as RemoveMemberFromBlacklist).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case GoOffline:
+        return 1;
+      case GoOnline:
+        return 1;
+      case SetSessionKeys:
+        return (value as SetSessionKeys)._sizeHint();
+      case RemoveMember:
+        return (value as RemoveMember)._sizeHint();
+      case RemoveMemberFromBlacklist:
+        return (value as RemoveMemberFromBlacklist)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::go_offline`].
+class GoOffline extends Call {
+  const GoOffline();
+
+  @override
+  Map<String, dynamic> toJson() => {'go_offline': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is GoOffline;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+/// See [`Pallet::go_online`].
+class GoOnline extends Call {
+  const GoOnline();
+
+  @override
+  Map<String, dynamic> toJson() => {'go_online': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is GoOnline;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+/// See [`Pallet::set_session_keys`].
+class SetSessionKeys extends Call {
+  const SetSessionKeys({required this.keys});
+
+  factory SetSessionKeys._decode(_i1.Input input) {
+    return SetSessionKeys(keys: _i3.SessionKeys.codec.decode(input));
+  }
+
+  /// T::Keys
+  final _i3.SessionKeys keys;
+
+  @override
+  Map<String, Map<String, Map<String, List<int>>>> toJson() => {
+        'set_session_keys': {'keys': keys.toJson()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.SessionKeys.codec.sizeHint(keys);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i3.SessionKeys.codec.encodeTo(
+      keys,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SetSessionKeys && other.keys == keys;
+
+  @override
+  int get hashCode => keys.hashCode;
+}
+
+/// See [`Pallet::remove_member`].
+class RemoveMember extends Call {
+  const RemoveMember({required this.memberId});
+
+  factory RemoveMember._decode(_i1.Input input) {
+    return RemoveMember(memberId: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::MemberId
+  final int memberId;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'remove_member': {'memberId': memberId}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(memberId);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      memberId,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RemoveMember && other.memberId == memberId;
+
+  @override
+  int get hashCode => memberId.hashCode;
+}
+
+/// See [`Pallet::remove_member_from_blacklist`].
+class RemoveMemberFromBlacklist extends Call {
+  const RemoveMemberFromBlacklist({required this.memberId});
+
+  factory RemoveMemberFromBlacklist._decode(_i1.Input input) {
+    return RemoveMemberFromBlacklist(
+        memberId: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::MemberId
+  final int memberId;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'remove_member_from_blacklist': {'memberId': memberId}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(memberId);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      memberId,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RemoveMemberFromBlacklist && other.memberId == memberId;
+
+  @override
+  int get hashCode => memberId.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_authority_members/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_authority_members/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..340db41bce438812dfcc9dbdc0d2817ce57bacbc
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_authority_members/pallet/error.dart
@@ -0,0 +1,106 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Member already incoming.
+  alreadyIncoming('AlreadyIncoming', 0),
+
+  /// Member already online.
+  alreadyOnline('AlreadyOnline', 1),
+
+  /// Member already outgoing.
+  alreadyOutgoing('AlreadyOutgoing', 2),
+
+  /// Owner key is invalid as a member.
+  memberIdNotFound('MemberIdNotFound', 3),
+
+  /// Member is blacklisted.
+  memberBlacklisted('MemberBlacklisted', 4),
+
+  /// Member is not blacklisted.
+  memberNotBlacklisted('MemberNotBlacklisted', 5),
+
+  /// Member not found.
+  memberNotFound('MemberNotFound', 6),
+
+  /// Neither online nor scheduled.
+  notOnlineNorIncoming('NotOnlineNorIncoming', 7),
+
+  /// Not member.
+  notMember('NotMember', 8),
+
+  /// Session keys not provided.
+  sessionKeysNotProvided('SessionKeysNotProvided', 9),
+
+  /// Too many authorities.
+  tooManyAuthorities('TooManyAuthorities', 10);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.alreadyIncoming;
+      case 1:
+        return Error.alreadyOnline;
+      case 2:
+        return Error.alreadyOutgoing;
+      case 3:
+        return Error.memberIdNotFound;
+      case 4:
+        return Error.memberBlacklisted;
+      case 5:
+        return Error.memberNotBlacklisted;
+      case 6:
+        return Error.memberNotFound;
+      case 7:
+        return Error.notOnlineNorIncoming;
+      case 8:
+        return Error.notMember;
+      case 9:
+        return Error.sessionKeysNotProvided;
+      case 10:
+        return Error.tooManyAuthorities;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_authority_members/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_authority_members/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..bf9e772c482e5e8a847d2e5ee8f5c0ead984bfee
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_authority_members/pallet/event.dart
@@ -0,0 +1,470 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  IncomingAuthorities incomingAuthorities({required List<int> members}) {
+    return IncomingAuthorities(members: members);
+  }
+
+  OutgoingAuthorities outgoingAuthorities({required List<int> members}) {
+    return OutgoingAuthorities(members: members);
+  }
+
+  MemberGoOffline memberGoOffline({required int member}) {
+    return MemberGoOffline(member: member);
+  }
+
+  MemberGoOnline memberGoOnline({required int member}) {
+    return MemberGoOnline(member: member);
+  }
+
+  MemberRemoved memberRemoved({required int member}) {
+    return MemberRemoved(member: member);
+  }
+
+  MemberRemovedFromBlacklist memberRemovedFromBlacklist({required int member}) {
+    return MemberRemovedFromBlacklist(member: member);
+  }
+
+  MemberAddedToBlacklist memberAddedToBlacklist({required int member}) {
+    return MemberAddedToBlacklist(member: member);
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return IncomingAuthorities._decode(input);
+      case 1:
+        return OutgoingAuthorities._decode(input);
+      case 2:
+        return MemberGoOffline._decode(input);
+      case 3:
+        return MemberGoOnline._decode(input);
+      case 4:
+        return MemberRemoved._decode(input);
+      case 5:
+        return MemberRemovedFromBlacklist._decode(input);
+      case 6:
+        return MemberAddedToBlacklist._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case IncomingAuthorities:
+        (value as IncomingAuthorities).encodeTo(output);
+        break;
+      case OutgoingAuthorities:
+        (value as OutgoingAuthorities).encodeTo(output);
+        break;
+      case MemberGoOffline:
+        (value as MemberGoOffline).encodeTo(output);
+        break;
+      case MemberGoOnline:
+        (value as MemberGoOnline).encodeTo(output);
+        break;
+      case MemberRemoved:
+        (value as MemberRemoved).encodeTo(output);
+        break;
+      case MemberRemovedFromBlacklist:
+        (value as MemberRemovedFromBlacklist).encodeTo(output);
+        break;
+      case MemberAddedToBlacklist:
+        (value as MemberAddedToBlacklist).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case IncomingAuthorities:
+        return (value as IncomingAuthorities)._sizeHint();
+      case OutgoingAuthorities:
+        return (value as OutgoingAuthorities)._sizeHint();
+      case MemberGoOffline:
+        return (value as MemberGoOffline)._sizeHint();
+      case MemberGoOnline:
+        return (value as MemberGoOnline)._sizeHint();
+      case MemberRemoved:
+        return (value as MemberRemoved)._sizeHint();
+      case MemberRemovedFromBlacklist:
+        return (value as MemberRemovedFromBlacklist)._sizeHint();
+      case MemberAddedToBlacklist:
+        return (value as MemberAddedToBlacklist)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// List of members scheduled to join the set of authorities in the next session.
+class IncomingAuthorities extends Event {
+  const IncomingAuthorities({required this.members});
+
+  factory IncomingAuthorities._decode(_i1.Input input) {
+    return IncomingAuthorities(
+        members: _i1.U32SequenceCodec.codec.decode(input));
+  }
+
+  /// Vec<T::MemberId>
+  final List<int> members;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'IncomingAuthorities': {'members': members}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32SequenceCodec.codec.sizeHint(members);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U32SequenceCodec.codec.encodeTo(
+      members,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is IncomingAuthorities &&
+          _i3.listsEqual(
+            other.members,
+            members,
+          );
+
+  @override
+  int get hashCode => members.hashCode;
+}
+
+/// List of members leaving the set of authorities in the next session.
+class OutgoingAuthorities extends Event {
+  const OutgoingAuthorities({required this.members});
+
+  factory OutgoingAuthorities._decode(_i1.Input input) {
+    return OutgoingAuthorities(
+        members: _i1.U32SequenceCodec.codec.decode(input));
+  }
+
+  /// Vec<T::MemberId>
+  final List<int> members;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'OutgoingAuthorities': {'members': members}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32SequenceCodec.codec.sizeHint(members);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U32SequenceCodec.codec.encodeTo(
+      members,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is OutgoingAuthorities &&
+          _i3.listsEqual(
+            other.members,
+            members,
+          );
+
+  @override
+  int get hashCode => members.hashCode;
+}
+
+/// A member will leave the set of authorities in 2 sessions.
+class MemberGoOffline extends Event {
+  const MemberGoOffline({required this.member});
+
+  factory MemberGoOffline._decode(_i1.Input input) {
+    return MemberGoOffline(member: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::MemberId
+  final int member;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'MemberGoOffline': {'member': member}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(member);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      member,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MemberGoOffline && other.member == member;
+
+  @override
+  int get hashCode => member.hashCode;
+}
+
+/// A member will join the set of authorities in 2 sessions.
+class MemberGoOnline extends Event {
+  const MemberGoOnline({required this.member});
+
+  factory MemberGoOnline._decode(_i1.Input input) {
+    return MemberGoOnline(member: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::MemberId
+  final int member;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'MemberGoOnline': {'member': member}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(member);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      member,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MemberGoOnline && other.member == member;
+
+  @override
+  int get hashCode => member.hashCode;
+}
+
+/// A member, who no longer has authority rights, will be removed from the authority set in 2 sessions.
+class MemberRemoved extends Event {
+  const MemberRemoved({required this.member});
+
+  factory MemberRemoved._decode(_i1.Input input) {
+    return MemberRemoved(member: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::MemberId
+  final int member;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'MemberRemoved': {'member': member}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(member);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      member,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MemberRemoved && other.member == member;
+
+  @override
+  int get hashCode => member.hashCode;
+}
+
+/// A member has been removed from the blacklist.
+class MemberRemovedFromBlacklist extends Event {
+  const MemberRemovedFromBlacklist({required this.member});
+
+  factory MemberRemovedFromBlacklist._decode(_i1.Input input) {
+    return MemberRemovedFromBlacklist(member: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::MemberId
+  final int member;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'MemberRemovedFromBlacklist': {'member': member}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(member);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      member,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MemberRemovedFromBlacklist && other.member == member;
+
+  @override
+  int get hashCode => member.hashCode;
+}
+
+/// A member has been blacklisted.
+class MemberAddedToBlacklist extends Event {
+  const MemberAddedToBlacklist({required this.member});
+
+  factory MemberAddedToBlacklist._decode(_i1.Input input) {
+    return MemberAddedToBlacklist(member: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::MemberId
+  final int member;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'MemberAddedToBlacklist': {'member': member}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(member);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      6,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      member,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MemberAddedToBlacklist && other.member == member;
+
+  @override
+  int get hashCode => member.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_authority_members/types/member_data.dart b/lib/src/models/generated/duniter/types/pallet_authority_members/types/member_data.dart
new file mode 100644
index 0000000000000000000000000000000000000000..17e5e564f5b63861210438a5a036ecbd8321c606
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_authority_members/types/member_data.dart
@@ -0,0 +1,68 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../../sp_core/crypto/account_id32.dart' as _i2;
+
+class MemberData {
+  const MemberData({required this.ownerKey});
+
+  factory MemberData.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// AccountId
+  final _i2.AccountId32 ownerKey;
+
+  static const $MemberDataCodec codec = $MemberDataCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, List<int>> toJson() => {'ownerKey': ownerKey.toList()};
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MemberData &&
+          _i4.listsEqual(
+            other.ownerKey,
+            ownerKey,
+          );
+
+  @override
+  int get hashCode => ownerKey.hashCode;
+}
+
+class $MemberDataCodec with _i1.Codec<MemberData> {
+  const $MemberDataCodec();
+
+  @override
+  void encodeTo(
+    MemberData obj,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.ownerKey,
+      output,
+    );
+  }
+
+  @override
+  MemberData decode(_i1.Input input) {
+    return MemberData(ownerKey: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  @override
+  int sizeHint(MemberData obj) {
+    int size = 0;
+    size = size + const _i2.AccountId32Codec().sizeHint(obj.ownerKey);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_babe/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_babe/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8b2fd418f8ea75fc54e1a4c39fdd090886fd7fb4
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_babe/pallet/call.dart
@@ -0,0 +1,297 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_consensus_babe/digests/next_config_descriptor.dart' as _i5;
+import '../../sp_consensus_slots/equivocation_proof.dart' as _i3;
+import '../../sp_session/membership_proof.dart' as _i4;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, Map<String, dynamic>>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  ReportEquivocation reportEquivocation({
+    required _i3.EquivocationProof equivocationProof,
+    required _i4.MembershipProof keyOwnerProof,
+  }) {
+    return ReportEquivocation(
+      equivocationProof: equivocationProof,
+      keyOwnerProof: keyOwnerProof,
+    );
+  }
+
+  ReportEquivocationUnsigned reportEquivocationUnsigned({
+    required _i3.EquivocationProof equivocationProof,
+    required _i4.MembershipProof keyOwnerProof,
+  }) {
+    return ReportEquivocationUnsigned(
+      equivocationProof: equivocationProof,
+      keyOwnerProof: keyOwnerProof,
+    );
+  }
+
+  PlanConfigChange planConfigChange(
+      {required _i5.NextConfigDescriptor config}) {
+    return PlanConfigChange(config: config);
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return ReportEquivocation._decode(input);
+      case 1:
+        return ReportEquivocationUnsigned._decode(input);
+      case 2:
+        return PlanConfigChange._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case ReportEquivocation:
+        (value as ReportEquivocation).encodeTo(output);
+        break;
+      case ReportEquivocationUnsigned:
+        (value as ReportEquivocationUnsigned).encodeTo(output);
+        break;
+      case PlanConfigChange:
+        (value as PlanConfigChange).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case ReportEquivocation:
+        return (value as ReportEquivocation)._sizeHint();
+      case ReportEquivocationUnsigned:
+        return (value as ReportEquivocationUnsigned)._sizeHint();
+      case PlanConfigChange:
+        return (value as PlanConfigChange)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::report_equivocation`].
+class ReportEquivocation extends Call {
+  const ReportEquivocation({
+    required this.equivocationProof,
+    required this.keyOwnerProof,
+  });
+
+  factory ReportEquivocation._decode(_i1.Input input) {
+    return ReportEquivocation(
+      equivocationProof: _i3.EquivocationProof.codec.decode(input),
+      keyOwnerProof: _i4.MembershipProof.codec.decode(input),
+    );
+  }
+
+  /// Box<EquivocationProof<HeaderFor<T>>>
+  final _i3.EquivocationProof equivocationProof;
+
+  /// T::KeyOwnerProof
+  final _i4.MembershipProof keyOwnerProof;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'report_equivocation': {
+          'equivocationProof': equivocationProof.toJson(),
+          'keyOwnerProof': keyOwnerProof.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.EquivocationProof.codec.sizeHint(equivocationProof);
+    size = size + _i4.MembershipProof.codec.sizeHint(keyOwnerProof);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.EquivocationProof.codec.encodeTo(
+      equivocationProof,
+      output,
+    );
+    _i4.MembershipProof.codec.encodeTo(
+      keyOwnerProof,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ReportEquivocation &&
+          other.equivocationProof == equivocationProof &&
+          other.keyOwnerProof == keyOwnerProof;
+
+  @override
+  int get hashCode => Object.hash(
+        equivocationProof,
+        keyOwnerProof,
+      );
+}
+
+/// See [`Pallet::report_equivocation_unsigned`].
+class ReportEquivocationUnsigned extends Call {
+  const ReportEquivocationUnsigned({
+    required this.equivocationProof,
+    required this.keyOwnerProof,
+  });
+
+  factory ReportEquivocationUnsigned._decode(_i1.Input input) {
+    return ReportEquivocationUnsigned(
+      equivocationProof: _i3.EquivocationProof.codec.decode(input),
+      keyOwnerProof: _i4.MembershipProof.codec.decode(input),
+    );
+  }
+
+  /// Box<EquivocationProof<HeaderFor<T>>>
+  final _i3.EquivocationProof equivocationProof;
+
+  /// T::KeyOwnerProof
+  final _i4.MembershipProof keyOwnerProof;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'report_equivocation_unsigned': {
+          'equivocationProof': equivocationProof.toJson(),
+          'keyOwnerProof': keyOwnerProof.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.EquivocationProof.codec.sizeHint(equivocationProof);
+    size = size + _i4.MembershipProof.codec.sizeHint(keyOwnerProof);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i3.EquivocationProof.codec.encodeTo(
+      equivocationProof,
+      output,
+    );
+    _i4.MembershipProof.codec.encodeTo(
+      keyOwnerProof,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ReportEquivocationUnsigned &&
+          other.equivocationProof == equivocationProof &&
+          other.keyOwnerProof == keyOwnerProof;
+
+  @override
+  int get hashCode => Object.hash(
+        equivocationProof,
+        keyOwnerProof,
+      );
+}
+
+/// See [`Pallet::plan_config_change`].
+class PlanConfigChange extends Call {
+  const PlanConfigChange({required this.config});
+
+  factory PlanConfigChange._decode(_i1.Input input) {
+    return PlanConfigChange(
+        config: _i5.NextConfigDescriptor.codec.decode(input));
+  }
+
+  /// NextConfigDescriptor
+  final _i5.NextConfigDescriptor config;
+
+  @override
+  Map<String, Map<String, Map<String, Map<String, dynamic>>>> toJson() => {
+        'plan_config_change': {'config': config.toJson()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i5.NextConfigDescriptor.codec.sizeHint(config);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i5.NextConfigDescriptor.codec.encodeTo(
+      config,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is PlanConfigChange && other.config == config;
+
+  @override
+  int get hashCode => config.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_babe/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_babe/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6f234a5fb23b05e9e7666692120d6f72ddeecc17
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_babe/pallet/error.dart
@@ -0,0 +1,71 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// An equivocation proof provided as part of an equivocation report is invalid.
+  invalidEquivocationProof('InvalidEquivocationProof', 0),
+
+  /// A key ownership proof provided as part of an equivocation report is invalid.
+  invalidKeyOwnershipProof('InvalidKeyOwnershipProof', 1),
+
+  /// A given equivocation report is valid but already previously reported.
+  duplicateOffenceReport('DuplicateOffenceReport', 2),
+
+  /// Submitted configuration is invalid.
+  invalidConfiguration('InvalidConfiguration', 3);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.invalidEquivocationProof;
+      case 1:
+        return Error.invalidKeyOwnershipProof;
+      case 2:
+        return Error.duplicateOffenceReport;
+      case 3:
+        return Error.invalidConfiguration;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_balances/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_balances/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c124d3a6ed54d5e626f90e598e81f008b9a29830
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_balances/pallet/call.dart
@@ -0,0 +1,580 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_runtime/multiaddress/multi_address.dart' as _i3;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  TransferAllowDeath transferAllowDeath({
+    required _i3.MultiAddress dest,
+    required BigInt value,
+  }) {
+    return TransferAllowDeath(
+      dest: dest,
+      value: value,
+    );
+  }
+
+  ForceTransfer forceTransfer({
+    required _i3.MultiAddress source,
+    required _i3.MultiAddress dest,
+    required BigInt value,
+  }) {
+    return ForceTransfer(
+      source: source,
+      dest: dest,
+      value: value,
+    );
+  }
+
+  TransferKeepAlive transferKeepAlive({
+    required _i3.MultiAddress dest,
+    required BigInt value,
+  }) {
+    return TransferKeepAlive(
+      dest: dest,
+      value: value,
+    );
+  }
+
+  TransferAll transferAll({
+    required _i3.MultiAddress dest,
+    required bool keepAlive,
+  }) {
+    return TransferAll(
+      dest: dest,
+      keepAlive: keepAlive,
+    );
+  }
+
+  ForceUnreserve forceUnreserve({
+    required _i3.MultiAddress who,
+    required BigInt amount,
+  }) {
+    return ForceUnreserve(
+      who: who,
+      amount: amount,
+    );
+  }
+
+  ForceSetBalance forceSetBalance({
+    required _i3.MultiAddress who,
+    required BigInt newFree,
+  }) {
+    return ForceSetBalance(
+      who: who,
+      newFree: newFree,
+    );
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return TransferAllowDeath._decode(input);
+      case 2:
+        return ForceTransfer._decode(input);
+      case 3:
+        return TransferKeepAlive._decode(input);
+      case 4:
+        return TransferAll._decode(input);
+      case 5:
+        return ForceUnreserve._decode(input);
+      case 8:
+        return ForceSetBalance._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case TransferAllowDeath:
+        (value as TransferAllowDeath).encodeTo(output);
+        break;
+      case ForceTransfer:
+        (value as ForceTransfer).encodeTo(output);
+        break;
+      case TransferKeepAlive:
+        (value as TransferKeepAlive).encodeTo(output);
+        break;
+      case TransferAll:
+        (value as TransferAll).encodeTo(output);
+        break;
+      case ForceUnreserve:
+        (value as ForceUnreserve).encodeTo(output);
+        break;
+      case ForceSetBalance:
+        (value as ForceSetBalance).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case TransferAllowDeath:
+        return (value as TransferAllowDeath)._sizeHint();
+      case ForceTransfer:
+        return (value as ForceTransfer)._sizeHint();
+      case TransferKeepAlive:
+        return (value as TransferKeepAlive)._sizeHint();
+      case TransferAll:
+        return (value as TransferAll)._sizeHint();
+      case ForceUnreserve:
+        return (value as ForceUnreserve)._sizeHint();
+      case ForceSetBalance:
+        return (value as ForceSetBalance)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::transfer_allow_death`].
+class TransferAllowDeath extends Call {
+  const TransferAllowDeath({
+    required this.dest,
+    required this.value,
+  });
+
+  factory TransferAllowDeath._decode(_i1.Input input) {
+    return TransferAllowDeath(
+      dest: _i3.MultiAddress.codec.decode(input),
+      value: _i1.CompactBigIntCodec.codec.decode(input),
+    );
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress dest;
+
+  /// T::Balance
+  final BigInt value;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'transfer_allow_death': {
+          'dest': dest.toJson(),
+          'value': value,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(dest);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(value);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      dest,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is TransferAllowDeath && other.dest == dest && other.value == value;
+
+  @override
+  int get hashCode => Object.hash(
+        dest,
+        value,
+      );
+}
+
+/// See [`Pallet::force_transfer`].
+class ForceTransfer extends Call {
+  const ForceTransfer({
+    required this.source,
+    required this.dest,
+    required this.value,
+  });
+
+  factory ForceTransfer._decode(_i1.Input input) {
+    return ForceTransfer(
+      source: _i3.MultiAddress.codec.decode(input),
+      dest: _i3.MultiAddress.codec.decode(input),
+      value: _i1.CompactBigIntCodec.codec.decode(input),
+    );
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress source;
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress dest;
+
+  /// T::Balance
+  final BigInt value;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'force_transfer': {
+          'source': source.toJson(),
+          'dest': dest.toJson(),
+          'value': value,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(source);
+    size = size + _i3.MultiAddress.codec.sizeHint(dest);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(value);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      source,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      dest,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ForceTransfer &&
+          other.source == source &&
+          other.dest == dest &&
+          other.value == value;
+
+  @override
+  int get hashCode => Object.hash(
+        source,
+        dest,
+        value,
+      );
+}
+
+/// See [`Pallet::transfer_keep_alive`].
+class TransferKeepAlive extends Call {
+  const TransferKeepAlive({
+    required this.dest,
+    required this.value,
+  });
+
+  factory TransferKeepAlive._decode(_i1.Input input) {
+    return TransferKeepAlive(
+      dest: _i3.MultiAddress.codec.decode(input),
+      value: _i1.CompactBigIntCodec.codec.decode(input),
+    );
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress dest;
+
+  /// T::Balance
+  final BigInt value;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'transfer_keep_alive': {
+          'dest': dest.toJson(),
+          'value': value,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(dest);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(value);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      dest,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is TransferKeepAlive && other.dest == dest && other.value == value;
+
+  @override
+  int get hashCode => Object.hash(
+        dest,
+        value,
+      );
+}
+
+/// See [`Pallet::transfer_all`].
+class TransferAll extends Call {
+  const TransferAll({
+    required this.dest,
+    required this.keepAlive,
+  });
+
+  factory TransferAll._decode(_i1.Input input) {
+    return TransferAll(
+      dest: _i3.MultiAddress.codec.decode(input),
+      keepAlive: _i1.BoolCodec.codec.decode(input),
+    );
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress dest;
+
+  /// bool
+  final bool keepAlive;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'transfer_all': {
+          'dest': dest.toJson(),
+          'keepAlive': keepAlive,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(dest);
+    size = size + _i1.BoolCodec.codec.sizeHint(keepAlive);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      dest,
+      output,
+    );
+    _i1.BoolCodec.codec.encodeTo(
+      keepAlive,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is TransferAll &&
+          other.dest == dest &&
+          other.keepAlive == keepAlive;
+
+  @override
+  int get hashCode => Object.hash(
+        dest,
+        keepAlive,
+      );
+}
+
+/// See [`Pallet::force_unreserve`].
+class ForceUnreserve extends Call {
+  const ForceUnreserve({
+    required this.who,
+    required this.amount,
+  });
+
+  factory ForceUnreserve._decode(_i1.Input input) {
+    return ForceUnreserve(
+      who: _i3.MultiAddress.codec.decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress who;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'force_unreserve': {
+          'who': who.toJson(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ForceUnreserve && other.who == who && other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        amount,
+      );
+}
+
+/// See [`Pallet::force_set_balance`].
+class ForceSetBalance extends Call {
+  const ForceSetBalance({
+    required this.who,
+    required this.newFree,
+  });
+
+  factory ForceSetBalance._decode(_i1.Input input) {
+    return ForceSetBalance(
+      who: _i3.MultiAddress.codec.decode(input),
+      newFree: _i1.CompactBigIntCodec.codec.decode(input),
+    );
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress who;
+
+  /// T::Balance
+  final BigInt newFree;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'force_set_balance': {
+          'who': who.toJson(),
+          'newFree': newFree,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(who);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(newFree);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      8,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      who,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      newFree,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ForceSetBalance && other.who == who && other.newFree == newFree;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        newFree,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_balances/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_balances/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a0652eb579dbd87a7218d7d8477465f216b04dad
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_balances/pallet/error.dart
@@ -0,0 +1,101 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Vesting balance too high to send value.
+  vestingBalance('VestingBalance', 0),
+
+  /// Account liquidity restrictions prevent withdrawal.
+  liquidityRestrictions('LiquidityRestrictions', 1),
+
+  /// Balance too low to send value.
+  insufficientBalance('InsufficientBalance', 2),
+
+  /// Value too low to create account due to existential deposit.
+  existentialDeposit('ExistentialDeposit', 3),
+
+  /// Transfer/payment would kill account.
+  expendability('Expendability', 4),
+
+  /// A vesting schedule already exists for this account.
+  existingVestingSchedule('ExistingVestingSchedule', 5),
+
+  /// Beneficiary account must pre-exist.
+  deadAccount('DeadAccount', 6),
+
+  /// Number of named reserves exceed `MaxReserves`.
+  tooManyReserves('TooManyReserves', 7),
+
+  /// Number of holds exceed `MaxHolds`.
+  tooManyHolds('TooManyHolds', 8),
+
+  /// Number of freezes exceed `MaxFreezes`.
+  tooManyFreezes('TooManyFreezes', 9);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.vestingBalance;
+      case 1:
+        return Error.liquidityRestrictions;
+      case 2:
+        return Error.insufficientBalance;
+      case 3:
+        return Error.existentialDeposit;
+      case 4:
+        return Error.expendability;
+      case 5:
+        return Error.existingVestingSchedule;
+      case 6:
+        return Error.deadAccount;
+      case 7:
+        return Error.tooManyReserves;
+      case 8:
+        return Error.tooManyHolds;
+      case 9:
+        return Error.tooManyFreezes;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_balances/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_balances/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d21269066cb6d21af170be1152e877506e538982
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_balances/pallet/event.dart
@@ -0,0 +1,1862 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../../frame_support/traits/tokens/misc/balance_status.dart' as _i4;
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  Endowed endowed({
+    required _i3.AccountId32 account,
+    required BigInt freeBalance,
+  }) {
+    return Endowed(
+      account: account,
+      freeBalance: freeBalance,
+    );
+  }
+
+  DustLost dustLost({
+    required _i3.AccountId32 account,
+    required BigInt amount,
+  }) {
+    return DustLost(
+      account: account,
+      amount: amount,
+    );
+  }
+
+  Transfer transfer({
+    required _i3.AccountId32 from,
+    required _i3.AccountId32 to,
+    required BigInt amount,
+  }) {
+    return Transfer(
+      from: from,
+      to: to,
+      amount: amount,
+    );
+  }
+
+  BalanceSet balanceSet({
+    required _i3.AccountId32 who,
+    required BigInt free,
+  }) {
+    return BalanceSet(
+      who: who,
+      free: free,
+    );
+  }
+
+  Reserved reserved({
+    required _i3.AccountId32 who,
+    required BigInt amount,
+  }) {
+    return Reserved(
+      who: who,
+      amount: amount,
+    );
+  }
+
+  Unreserved unreserved({
+    required _i3.AccountId32 who,
+    required BigInt amount,
+  }) {
+    return Unreserved(
+      who: who,
+      amount: amount,
+    );
+  }
+
+  ReserveRepatriated reserveRepatriated({
+    required _i3.AccountId32 from,
+    required _i3.AccountId32 to,
+    required BigInt amount,
+    required _i4.BalanceStatus destinationStatus,
+  }) {
+    return ReserveRepatriated(
+      from: from,
+      to: to,
+      amount: amount,
+      destinationStatus: destinationStatus,
+    );
+  }
+
+  Deposit deposit({
+    required _i3.AccountId32 who,
+    required BigInt amount,
+  }) {
+    return Deposit(
+      who: who,
+      amount: amount,
+    );
+  }
+
+  Withdraw withdraw({
+    required _i3.AccountId32 who,
+    required BigInt amount,
+  }) {
+    return Withdraw(
+      who: who,
+      amount: amount,
+    );
+  }
+
+  Slashed slashed({
+    required _i3.AccountId32 who,
+    required BigInt amount,
+  }) {
+    return Slashed(
+      who: who,
+      amount: amount,
+    );
+  }
+
+  Minted minted({
+    required _i3.AccountId32 who,
+    required BigInt amount,
+  }) {
+    return Minted(
+      who: who,
+      amount: amount,
+    );
+  }
+
+  Burned burned({
+    required _i3.AccountId32 who,
+    required BigInt amount,
+  }) {
+    return Burned(
+      who: who,
+      amount: amount,
+    );
+  }
+
+  Suspended suspended({
+    required _i3.AccountId32 who,
+    required BigInt amount,
+  }) {
+    return Suspended(
+      who: who,
+      amount: amount,
+    );
+  }
+
+  Restored restored({
+    required _i3.AccountId32 who,
+    required BigInt amount,
+  }) {
+    return Restored(
+      who: who,
+      amount: amount,
+    );
+  }
+
+  Upgraded upgraded({required _i3.AccountId32 who}) {
+    return Upgraded(who: who);
+  }
+
+  Issued issued({required BigInt amount}) {
+    return Issued(amount: amount);
+  }
+
+  Rescinded rescinded({required BigInt amount}) {
+    return Rescinded(amount: amount);
+  }
+
+  Locked locked({
+    required _i3.AccountId32 who,
+    required BigInt amount,
+  }) {
+    return Locked(
+      who: who,
+      amount: amount,
+    );
+  }
+
+  Unlocked unlocked({
+    required _i3.AccountId32 who,
+    required BigInt amount,
+  }) {
+    return Unlocked(
+      who: who,
+      amount: amount,
+    );
+  }
+
+  Frozen frozen({
+    required _i3.AccountId32 who,
+    required BigInt amount,
+  }) {
+    return Frozen(
+      who: who,
+      amount: amount,
+    );
+  }
+
+  Thawed thawed({
+    required _i3.AccountId32 who,
+    required BigInt amount,
+  }) {
+    return Thawed(
+      who: who,
+      amount: amount,
+    );
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Endowed._decode(input);
+      case 1:
+        return DustLost._decode(input);
+      case 2:
+        return Transfer._decode(input);
+      case 3:
+        return BalanceSet._decode(input);
+      case 4:
+        return Reserved._decode(input);
+      case 5:
+        return Unreserved._decode(input);
+      case 6:
+        return ReserveRepatriated._decode(input);
+      case 7:
+        return Deposit._decode(input);
+      case 8:
+        return Withdraw._decode(input);
+      case 9:
+        return Slashed._decode(input);
+      case 10:
+        return Minted._decode(input);
+      case 11:
+        return Burned._decode(input);
+      case 12:
+        return Suspended._decode(input);
+      case 13:
+        return Restored._decode(input);
+      case 14:
+        return Upgraded._decode(input);
+      case 15:
+        return Issued._decode(input);
+      case 16:
+        return Rescinded._decode(input);
+      case 17:
+        return Locked._decode(input);
+      case 18:
+        return Unlocked._decode(input);
+      case 19:
+        return Frozen._decode(input);
+      case 20:
+        return Thawed._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Endowed:
+        (value as Endowed).encodeTo(output);
+        break;
+      case DustLost:
+        (value as DustLost).encodeTo(output);
+        break;
+      case Transfer:
+        (value as Transfer).encodeTo(output);
+        break;
+      case BalanceSet:
+        (value as BalanceSet).encodeTo(output);
+        break;
+      case Reserved:
+        (value as Reserved).encodeTo(output);
+        break;
+      case Unreserved:
+        (value as Unreserved).encodeTo(output);
+        break;
+      case ReserveRepatriated:
+        (value as ReserveRepatriated).encodeTo(output);
+        break;
+      case Deposit:
+        (value as Deposit).encodeTo(output);
+        break;
+      case Withdraw:
+        (value as Withdraw).encodeTo(output);
+        break;
+      case Slashed:
+        (value as Slashed).encodeTo(output);
+        break;
+      case Minted:
+        (value as Minted).encodeTo(output);
+        break;
+      case Burned:
+        (value as Burned).encodeTo(output);
+        break;
+      case Suspended:
+        (value as Suspended).encodeTo(output);
+        break;
+      case Restored:
+        (value as Restored).encodeTo(output);
+        break;
+      case Upgraded:
+        (value as Upgraded).encodeTo(output);
+        break;
+      case Issued:
+        (value as Issued).encodeTo(output);
+        break;
+      case Rescinded:
+        (value as Rescinded).encodeTo(output);
+        break;
+      case Locked:
+        (value as Locked).encodeTo(output);
+        break;
+      case Unlocked:
+        (value as Unlocked).encodeTo(output);
+        break;
+      case Frozen:
+        (value as Frozen).encodeTo(output);
+        break;
+      case Thawed:
+        (value as Thawed).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case Endowed:
+        return (value as Endowed)._sizeHint();
+      case DustLost:
+        return (value as DustLost)._sizeHint();
+      case Transfer:
+        return (value as Transfer)._sizeHint();
+      case BalanceSet:
+        return (value as BalanceSet)._sizeHint();
+      case Reserved:
+        return (value as Reserved)._sizeHint();
+      case Unreserved:
+        return (value as Unreserved)._sizeHint();
+      case ReserveRepatriated:
+        return (value as ReserveRepatriated)._sizeHint();
+      case Deposit:
+        return (value as Deposit)._sizeHint();
+      case Withdraw:
+        return (value as Withdraw)._sizeHint();
+      case Slashed:
+        return (value as Slashed)._sizeHint();
+      case Minted:
+        return (value as Minted)._sizeHint();
+      case Burned:
+        return (value as Burned)._sizeHint();
+      case Suspended:
+        return (value as Suspended)._sizeHint();
+      case Restored:
+        return (value as Restored)._sizeHint();
+      case Upgraded:
+        return (value as Upgraded)._sizeHint();
+      case Issued:
+        return (value as Issued)._sizeHint();
+      case Rescinded:
+        return (value as Rescinded)._sizeHint();
+      case Locked:
+        return (value as Locked)._sizeHint();
+      case Unlocked:
+        return (value as Unlocked)._sizeHint();
+      case Frozen:
+        return (value as Frozen)._sizeHint();
+      case Thawed:
+        return (value as Thawed)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// An account was created with some free balance.
+class Endowed extends Event {
+  const Endowed({
+    required this.account,
+    required this.freeBalance,
+  });
+
+  factory Endowed._decode(_i1.Input input) {
+    return Endowed(
+      account: const _i1.U8ArrayCodec(32).decode(input),
+      freeBalance: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 account;
+
+  /// T::Balance
+  final BigInt freeBalance;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Endowed': {
+          'account': account.toList(),
+          'freeBalance': freeBalance,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(account);
+    size = size + _i1.U64Codec.codec.sizeHint(freeBalance);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      account,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      freeBalance,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Endowed &&
+          _i5.listsEqual(
+            other.account,
+            account,
+          ) &&
+          other.freeBalance == freeBalance;
+
+  @override
+  int get hashCode => Object.hash(
+        account,
+        freeBalance,
+      );
+}
+
+/// An account was removed whose balance was non-zero but below ExistentialDeposit,
+/// resulting in an outright loss.
+class DustLost extends Event {
+  const DustLost({
+    required this.account,
+    required this.amount,
+  });
+
+  factory DustLost._decode(_i1.Input input) {
+    return DustLost(
+      account: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 account;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'DustLost': {
+          'account': account.toList(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(account);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      account,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is DustLost &&
+          _i5.listsEqual(
+            other.account,
+            account,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        account,
+        amount,
+      );
+}
+
+/// Transfer succeeded.
+class Transfer extends Event {
+  const Transfer({
+    required this.from,
+    required this.to,
+    required this.amount,
+  });
+
+  factory Transfer._decode(_i1.Input input) {
+    return Transfer(
+      from: const _i1.U8ArrayCodec(32).decode(input),
+      to: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 from;
+
+  /// T::AccountId
+  final _i3.AccountId32 to;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Transfer': {
+          'from': from.toList(),
+          'to': to.toList(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(from);
+    size = size + const _i3.AccountId32Codec().sizeHint(to);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      from,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      to,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Transfer &&
+          _i5.listsEqual(
+            other.from,
+            from,
+          ) &&
+          _i5.listsEqual(
+            other.to,
+            to,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        from,
+        to,
+        amount,
+      );
+}
+
+/// A balance was set by root.
+class BalanceSet extends Event {
+  const BalanceSet({
+    required this.who,
+    required this.free,
+  });
+
+  factory BalanceSet._decode(_i1.Input input) {
+    return BalanceSet(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      free: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// T::Balance
+  final BigInt free;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'BalanceSet': {
+          'who': who.toList(),
+          'free': free,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(free);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      free,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is BalanceSet &&
+          _i5.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.free == free;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        free,
+      );
+}
+
+/// Some balance was reserved (moved from free to reserved).
+class Reserved extends Event {
+  const Reserved({
+    required this.who,
+    required this.amount,
+  });
+
+  factory Reserved._decode(_i1.Input input) {
+    return Reserved(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Reserved': {
+          'who': who.toList(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Reserved &&
+          _i5.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        amount,
+      );
+}
+
+/// Some balance was unreserved (moved from reserved to free).
+class Unreserved extends Event {
+  const Unreserved({
+    required this.who,
+    required this.amount,
+  });
+
+  factory Unreserved._decode(_i1.Input input) {
+    return Unreserved(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Unreserved': {
+          'who': who.toList(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Unreserved &&
+          _i5.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        amount,
+      );
+}
+
+/// Some balance was moved from the reserve of the first account to the second account.
+/// Final argument indicates the destination balance type.
+class ReserveRepatriated extends Event {
+  const ReserveRepatriated({
+    required this.from,
+    required this.to,
+    required this.amount,
+    required this.destinationStatus,
+  });
+
+  factory ReserveRepatriated._decode(_i1.Input input) {
+    return ReserveRepatriated(
+      from: const _i1.U8ArrayCodec(32).decode(input),
+      to: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+      destinationStatus: _i4.BalanceStatus.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 from;
+
+  /// T::AccountId
+  final _i3.AccountId32 to;
+
+  /// T::Balance
+  final BigInt amount;
+
+  /// Status
+  final _i4.BalanceStatus destinationStatus;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'ReserveRepatriated': {
+          'from': from.toList(),
+          'to': to.toList(),
+          'amount': amount,
+          'destinationStatus': destinationStatus.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(from);
+    size = size + const _i3.AccountId32Codec().sizeHint(to);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    size = size + _i4.BalanceStatus.codec.sizeHint(destinationStatus);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      6,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      from,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      to,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+    _i4.BalanceStatus.codec.encodeTo(
+      destinationStatus,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ReserveRepatriated &&
+          _i5.listsEqual(
+            other.from,
+            from,
+          ) &&
+          _i5.listsEqual(
+            other.to,
+            to,
+          ) &&
+          other.amount == amount &&
+          other.destinationStatus == destinationStatus;
+
+  @override
+  int get hashCode => Object.hash(
+        from,
+        to,
+        amount,
+        destinationStatus,
+      );
+}
+
+/// Some amount was deposited (e.g. for transaction fees).
+class Deposit extends Event {
+  const Deposit({
+    required this.who,
+    required this.amount,
+  });
+
+  factory Deposit._decode(_i1.Input input) {
+    return Deposit(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Deposit': {
+          'who': who.toList(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      7,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Deposit &&
+          _i5.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        amount,
+      );
+}
+
+/// Some amount was withdrawn from the account (e.g. for transaction fees).
+class Withdraw extends Event {
+  const Withdraw({
+    required this.who,
+    required this.amount,
+  });
+
+  factory Withdraw._decode(_i1.Input input) {
+    return Withdraw(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Withdraw': {
+          'who': who.toList(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      8,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Withdraw &&
+          _i5.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        amount,
+      );
+}
+
+/// Some amount was removed from the account (e.g. for misbehavior).
+class Slashed extends Event {
+  const Slashed({
+    required this.who,
+    required this.amount,
+  });
+
+  factory Slashed._decode(_i1.Input input) {
+    return Slashed(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Slashed': {
+          'who': who.toList(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      9,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Slashed &&
+          _i5.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        amount,
+      );
+}
+
+/// Some amount was minted into an account.
+class Minted extends Event {
+  const Minted({
+    required this.who,
+    required this.amount,
+  });
+
+  factory Minted._decode(_i1.Input input) {
+    return Minted(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Minted': {
+          'who': who.toList(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      10,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Minted &&
+          _i5.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        amount,
+      );
+}
+
+/// Some amount was burned from an account.
+class Burned extends Event {
+  const Burned({
+    required this.who,
+    required this.amount,
+  });
+
+  factory Burned._decode(_i1.Input input) {
+    return Burned(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Burned': {
+          'who': who.toList(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      11,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Burned &&
+          _i5.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        amount,
+      );
+}
+
+/// Some amount was suspended from an account (it can be restored later).
+class Suspended extends Event {
+  const Suspended({
+    required this.who,
+    required this.amount,
+  });
+
+  factory Suspended._decode(_i1.Input input) {
+    return Suspended(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Suspended': {
+          'who': who.toList(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      12,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Suspended &&
+          _i5.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        amount,
+      );
+}
+
+/// Some amount was restored into an account.
+class Restored extends Event {
+  const Restored({
+    required this.who,
+    required this.amount,
+  });
+
+  factory Restored._decode(_i1.Input input) {
+    return Restored(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Restored': {
+          'who': who.toList(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      13,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Restored &&
+          _i5.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        amount,
+      );
+}
+
+/// An account was upgraded.
+class Upgraded extends Event {
+  const Upgraded({required this.who});
+
+  factory Upgraded._decode(_i1.Input input) {
+    return Upgraded(who: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'Upgraded': {'who': who.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      14,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Upgraded &&
+          _i5.listsEqual(
+            other.who,
+            who,
+          );
+
+  @override
+  int get hashCode => who.hashCode;
+}
+
+/// Total issuance was increased by `amount`, creating a credit to be balanced.
+class Issued extends Event {
+  const Issued({required this.amount});
+
+  factory Issued._decode(_i1.Input input) {
+    return Issued(amount: _i1.U64Codec.codec.decode(input));
+  }
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, BigInt>> toJson() => {
+        'Issued': {'amount': amount}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      15,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Issued && other.amount == amount;
+
+  @override
+  int get hashCode => amount.hashCode;
+}
+
+/// Total issuance was decreased by `amount`, creating a debt to be balanced.
+class Rescinded extends Event {
+  const Rescinded({required this.amount});
+
+  factory Rescinded._decode(_i1.Input input) {
+    return Rescinded(amount: _i1.U64Codec.codec.decode(input));
+  }
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, BigInt>> toJson() => {
+        'Rescinded': {'amount': amount}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      16,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Rescinded && other.amount == amount;
+
+  @override
+  int get hashCode => amount.hashCode;
+}
+
+/// Some balance was locked.
+class Locked extends Event {
+  const Locked({
+    required this.who,
+    required this.amount,
+  });
+
+  factory Locked._decode(_i1.Input input) {
+    return Locked(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Locked': {
+          'who': who.toList(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      17,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Locked &&
+          _i5.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        amount,
+      );
+}
+
+/// Some balance was unlocked.
+class Unlocked extends Event {
+  const Unlocked({
+    required this.who,
+    required this.amount,
+  });
+
+  factory Unlocked._decode(_i1.Input input) {
+    return Unlocked(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Unlocked': {
+          'who': who.toList(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      18,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Unlocked &&
+          _i5.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        amount,
+      );
+}
+
+/// Some balance was frozen.
+class Frozen extends Event {
+  const Frozen({
+    required this.who,
+    required this.amount,
+  });
+
+  factory Frozen._decode(_i1.Input input) {
+    return Frozen(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Frozen': {
+          'who': who.toList(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      19,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Frozen &&
+          _i5.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        amount,
+      );
+}
+
+/// Some balance was thawed.
+class Thawed extends Event {
+  const Thawed({
+    required this.who,
+    required this.amount,
+  });
+
+  factory Thawed._decode(_i1.Input input) {
+    return Thawed(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// T::Balance
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Thawed': {
+          'who': who.toList(),
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      20,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Thawed &&
+          _i5.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        amount,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_balances/types/account_data.dart b/lib/src/models/generated/duniter/types/pallet_balances/types/account_data.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7630573aeaa09915e3f11f59e65ace620ee5c542
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_balances/types/account_data.dart
@@ -0,0 +1,111 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import 'extra_flags.dart' as _i2;
+
+class AccountData {
+  const AccountData({
+    required this.free,
+    required this.reserved,
+    required this.frozen,
+    required this.flags,
+  });
+
+  factory AccountData.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// Balance
+  final BigInt free;
+
+  /// Balance
+  final BigInt reserved;
+
+  /// Balance
+  final BigInt frozen;
+
+  /// ExtraFlags
+  final _i2.ExtraFlags flags;
+
+  static const $AccountDataCodec codec = $AccountDataCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, BigInt> toJson() => {
+        'free': free,
+        'reserved': reserved,
+        'frozen': frozen,
+        'flags': flags,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AccountData &&
+          other.free == free &&
+          other.reserved == reserved &&
+          other.frozen == frozen &&
+          other.flags == flags;
+
+  @override
+  int get hashCode => Object.hash(
+        free,
+        reserved,
+        frozen,
+        flags,
+      );
+}
+
+class $AccountDataCodec with _i1.Codec<AccountData> {
+  const $AccountDataCodec();
+
+  @override
+  void encodeTo(
+    AccountData obj,
+    _i1.Output output,
+  ) {
+    _i1.U64Codec.codec.encodeTo(
+      obj.free,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.reserved,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.frozen,
+      output,
+    );
+    _i1.U128Codec.codec.encodeTo(
+      obj.flags,
+      output,
+    );
+  }
+
+  @override
+  AccountData decode(_i1.Input input) {
+    return AccountData(
+      free: _i1.U64Codec.codec.decode(input),
+      reserved: _i1.U64Codec.codec.decode(input),
+      frozen: _i1.U64Codec.codec.decode(input),
+      flags: _i1.U128Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(AccountData obj) {
+    int size = 0;
+    size = size + _i1.U64Codec.codec.sizeHint(obj.free);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.reserved);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.frozen);
+    size = size + const _i2.ExtraFlagsCodec().sizeHint(obj.flags);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_balances/types/balance_lock.dart b/lib/src/models/generated/duniter/types/pallet_balances/types/balance_lock.dart
new file mode 100644
index 0000000000000000000000000000000000000000..92b2a8d04002a2c9a07e5628cb6bf1ea8015eb93
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_balances/types/balance_lock.dart
@@ -0,0 +1,102 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import 'reasons.dart' as _i2;
+
+class BalanceLock {
+  const BalanceLock({
+    required this.id,
+    required this.amount,
+    required this.reasons,
+  });
+
+  factory BalanceLock.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// LockIdentifier
+  final List<int> id;
+
+  /// Balance
+  final BigInt amount;
+
+  /// Reasons
+  final _i2.Reasons reasons;
+
+  static const $BalanceLockCodec codec = $BalanceLockCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'id': id.toList(),
+        'amount': amount,
+        'reasons': reasons.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is BalanceLock &&
+          _i4.listsEqual(
+            other.id,
+            id,
+          ) &&
+          other.amount == amount &&
+          other.reasons == reasons;
+
+  @override
+  int get hashCode => Object.hash(
+        id,
+        amount,
+        reasons,
+      );
+}
+
+class $BalanceLockCodec with _i1.Codec<BalanceLock> {
+  const $BalanceLockCodec();
+
+  @override
+  void encodeTo(
+    BalanceLock obj,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(8).encodeTo(
+      obj.id,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.amount,
+      output,
+    );
+    _i2.Reasons.codec.encodeTo(
+      obj.reasons,
+      output,
+    );
+  }
+
+  @override
+  BalanceLock decode(_i1.Input input) {
+    return BalanceLock(
+      id: const _i1.U8ArrayCodec(8).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+      reasons: _i2.Reasons.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(BalanceLock obj) {
+    int size = 0;
+    size = size + const _i1.U8ArrayCodec(8).sizeHint(obj.id);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.amount);
+    size = size + _i2.Reasons.codec.sizeHint(obj.reasons);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_balances/types/extra_flags.dart b/lib/src/models/generated/duniter/types/pallet_balances/types/extra_flags.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d4ef898aff27b09aff5cd7aad0e4282ceee13e7b
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_balances/types/extra_flags.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef ExtraFlags = BigInt;
+
+class ExtraFlagsCodec with _i1.Codec<ExtraFlags> {
+  const ExtraFlagsCodec();
+
+  @override
+  ExtraFlags decode(_i1.Input input) {
+    return _i1.U128Codec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    ExtraFlags value,
+    _i1.Output output,
+  ) {
+    _i1.U128Codec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(ExtraFlags value) {
+    return _i1.U128Codec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_balances/types/id_amount.dart b/lib/src/models/generated/duniter/types/pallet_balances/types/id_amount.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4bdee9c4324e1eb38466baa74c497193f2f49f60
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_balances/types/id_amount.dart
@@ -0,0 +1,81 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class IdAmount {
+  const IdAmount({
+    required this.id,
+    required this.amount,
+  });
+
+  factory IdAmount.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// Id
+  final dynamic id;
+
+  /// Balance
+  final BigInt amount;
+
+  static const $IdAmountCodec codec = $IdAmountCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'id': null,
+        'amount': amount,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is IdAmount && other.id == id && other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        id,
+        amount,
+      );
+}
+
+class $IdAmountCodec with _i1.Codec<IdAmount> {
+  const $IdAmountCodec();
+
+  @override
+  void encodeTo(
+    IdAmount obj,
+    _i1.Output output,
+  ) {
+    _i1.NullCodec.codec.encodeTo(
+      obj.id,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.amount,
+      output,
+    );
+  }
+
+  @override
+  IdAmount decode(_i1.Input input) {
+    return IdAmount(
+      id: _i1.NullCodec.codec.decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(IdAmount obj) {
+    int size = 0;
+    size = size + _i1.NullCodec.codec.sizeHint(obj.id);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.amount);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_balances/types/reasons.dart b/lib/src/models/generated/duniter/types/pallet_balances/types/reasons.dart
new file mode 100644
index 0000000000000000000000000000000000000000..03ea61182e02a80214a797f3651924ed0b150472
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_balances/types/reasons.dart
@@ -0,0 +1,60 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum Reasons {
+  fee('Fee', 0),
+  misc('Misc', 1),
+  all('All', 2);
+
+  const Reasons(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Reasons.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ReasonsCodec codec = $ReasonsCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ReasonsCodec with _i1.Codec<Reasons> {
+  const $ReasonsCodec();
+
+  @override
+  Reasons decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Reasons.fee;
+      case 1:
+        return Reasons.misc;
+      case 2:
+        return Reasons.all;
+      default:
+        throw Exception('Reasons: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Reasons value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_balances/types/reserve_data.dart b/lib/src/models/generated/duniter/types/pallet_balances/types/reserve_data.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8f60bb9521847be02eaf1ae13fa8944b22e92185
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_balances/types/reserve_data.dart
@@ -0,0 +1,87 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i3;
+
+class ReserveData {
+  const ReserveData({
+    required this.id,
+    required this.amount,
+  });
+
+  factory ReserveData.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// ReserveIdentifier
+  final List<int> id;
+
+  /// Balance
+  final BigInt amount;
+
+  static const $ReserveDataCodec codec = $ReserveDataCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'id': id.toList(),
+        'amount': amount,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ReserveData &&
+          _i3.listsEqual(
+            other.id,
+            id,
+          ) &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        id,
+        amount,
+      );
+}
+
+class $ReserveDataCodec with _i1.Codec<ReserveData> {
+  const $ReserveDataCodec();
+
+  @override
+  void encodeTo(
+    ReserveData obj,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(8).encodeTo(
+      obj.id,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.amount,
+      output,
+    );
+  }
+
+  @override
+  ReserveData decode(_i1.Input input) {
+    return ReserveData(
+      id: const _i1.U8ArrayCodec(8).decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(ReserveData obj) {
+    int size = 0;
+    size = size + const _i1.U8ArrayCodec(8).sizeHint(obj.id);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.amount);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_certification/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_certification/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d692d7d2ee94667007669376f4370f7384966859
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_certification/pallet/call.dart
@@ -0,0 +1,318 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, int>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  AddCert addCert({required int receiver}) {
+    return AddCert(receiver: receiver);
+  }
+
+  RenewCert renewCert({required int receiver}) {
+    return RenewCert(receiver: receiver);
+  }
+
+  DelCert delCert({
+    required int issuer,
+    required int receiver,
+  }) {
+    return DelCert(
+      issuer: issuer,
+      receiver: receiver,
+    );
+  }
+
+  RemoveAllCertsReceivedBy removeAllCertsReceivedBy({required int idtyIndex}) {
+    return RemoveAllCertsReceivedBy(idtyIndex: idtyIndex);
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return AddCert._decode(input);
+      case 3:
+        return RenewCert._decode(input);
+      case 1:
+        return DelCert._decode(input);
+      case 2:
+        return RemoveAllCertsReceivedBy._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case AddCert:
+        (value as AddCert).encodeTo(output);
+        break;
+      case RenewCert:
+        (value as RenewCert).encodeTo(output);
+        break;
+      case DelCert:
+        (value as DelCert).encodeTo(output);
+        break;
+      case RemoveAllCertsReceivedBy:
+        (value as RemoveAllCertsReceivedBy).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case AddCert:
+        return (value as AddCert)._sizeHint();
+      case RenewCert:
+        return (value as RenewCert)._sizeHint();
+      case DelCert:
+        return (value as DelCert)._sizeHint();
+      case RemoveAllCertsReceivedBy:
+        return (value as RemoveAllCertsReceivedBy)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::add_cert`].
+class AddCert extends Call {
+  const AddCert({required this.receiver});
+
+  factory AddCert._decode(_i1.Input input) {
+    return AddCert(receiver: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::IdtyIndex
+  final int receiver;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'add_cert': {'receiver': receiver}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(receiver);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      receiver,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AddCert && other.receiver == receiver;
+
+  @override
+  int get hashCode => receiver.hashCode;
+}
+
+/// See [`Pallet::renew_cert`].
+class RenewCert extends Call {
+  const RenewCert({required this.receiver});
+
+  factory RenewCert._decode(_i1.Input input) {
+    return RenewCert(receiver: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::IdtyIndex
+  final int receiver;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'renew_cert': {'receiver': receiver}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(receiver);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      receiver,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RenewCert && other.receiver == receiver;
+
+  @override
+  int get hashCode => receiver.hashCode;
+}
+
+/// See [`Pallet::del_cert`].
+class DelCert extends Call {
+  const DelCert({
+    required this.issuer,
+    required this.receiver,
+  });
+
+  factory DelCert._decode(_i1.Input input) {
+    return DelCert(
+      issuer: _i1.U32Codec.codec.decode(input),
+      receiver: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// T::IdtyIndex
+  final int issuer;
+
+  /// T::IdtyIndex
+  final int receiver;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'del_cert': {
+          'issuer': issuer,
+          'receiver': receiver,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(issuer);
+    size = size + _i1.U32Codec.codec.sizeHint(receiver);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      issuer,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      receiver,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is DelCert && other.issuer == issuer && other.receiver == receiver;
+
+  @override
+  int get hashCode => Object.hash(
+        issuer,
+        receiver,
+      );
+}
+
+/// See [`Pallet::remove_all_certs_received_by`].
+class RemoveAllCertsReceivedBy extends Call {
+  const RemoveAllCertsReceivedBy({required this.idtyIndex});
+
+  factory RemoveAllCertsReceivedBy._decode(_i1.Input input) {
+    return RemoveAllCertsReceivedBy(
+        idtyIndex: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::IdtyIndex
+  final int idtyIndex;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'remove_all_certs_received_by': {'idtyIndex': idtyIndex}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(idtyIndex);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      idtyIndex,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RemoveAllCertsReceivedBy && other.idtyIndex == idtyIndex;
+
+  @override
+  int get hashCode => idtyIndex.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_certification/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_certification/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f4cac4d0d49c6b984c944260e3a8ba4f1f074550
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_certification/pallet/error.dart
@@ -0,0 +1,86 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Issuer of a certification must have an identity
+  originMustHaveAnIdentity('OriginMustHaveAnIdentity', 0),
+
+  /// Identity cannot certify itself.
+  cannotCertifySelf('CannotCertifySelf', 1),
+
+  /// Identity has already issued the maximum number of certifications.
+  issuedTooManyCert('IssuedTooManyCert', 2),
+
+  /// Insufficient certifications received.
+  notEnoughCertReceived('NotEnoughCertReceived', 3),
+
+  /// Identity has issued a certification too recently.
+  notRespectCertPeriod('NotRespectCertPeriod', 4),
+
+  /// Can not add an already-existing cert
+  certAlreadyExists('CertAlreadyExists', 5),
+
+  /// Can not renew a non-existing cert
+  certDoesNotExist('CertDoesNotExist', 6);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.originMustHaveAnIdentity;
+      case 1:
+        return Error.cannotCertifySelf;
+      case 2:
+        return Error.issuedTooManyCert;
+      case 3:
+        return Error.notEnoughCertReceived;
+      case 4:
+        return Error.notRespectCertPeriod;
+      case 5:
+        return Error.certAlreadyExists;
+      case 6:
+        return Error.certDoesNotExist;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_certification/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_certification/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c51f247f5b9ec4337e7e93f691ebf975d940e846
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_certification/pallet/event.dart
@@ -0,0 +1,334 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  CertAdded certAdded({
+    required int issuer,
+    required int receiver,
+  }) {
+    return CertAdded(
+      issuer: issuer,
+      receiver: receiver,
+    );
+  }
+
+  CertRemoved certRemoved({
+    required int issuer,
+    required int receiver,
+    required bool expiration,
+  }) {
+    return CertRemoved(
+      issuer: issuer,
+      receiver: receiver,
+      expiration: expiration,
+    );
+  }
+
+  CertRenewed certRenewed({
+    required int issuer,
+    required int receiver,
+  }) {
+    return CertRenewed(
+      issuer: issuer,
+      receiver: receiver,
+    );
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return CertAdded._decode(input);
+      case 1:
+        return CertRemoved._decode(input);
+      case 2:
+        return CertRenewed._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case CertAdded:
+        (value as CertAdded).encodeTo(output);
+        break;
+      case CertRemoved:
+        (value as CertRemoved).encodeTo(output);
+        break;
+      case CertRenewed:
+        (value as CertRenewed).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case CertAdded:
+        return (value as CertAdded)._sizeHint();
+      case CertRemoved:
+        return (value as CertRemoved)._sizeHint();
+      case CertRenewed:
+        return (value as CertRenewed)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// A new certification was added.
+class CertAdded extends Event {
+  const CertAdded({
+    required this.issuer,
+    required this.receiver,
+  });
+
+  factory CertAdded._decode(_i1.Input input) {
+    return CertAdded(
+      issuer: _i1.U32Codec.codec.decode(input),
+      receiver: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// T::IdtyIndex
+  final int issuer;
+
+  /// T::IdtyIndex
+  final int receiver;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'CertAdded': {
+          'issuer': issuer,
+          'receiver': receiver,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(issuer);
+    size = size + _i1.U32Codec.codec.sizeHint(receiver);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      issuer,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      receiver,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is CertAdded &&
+          other.issuer == issuer &&
+          other.receiver == receiver;
+
+  @override
+  int get hashCode => Object.hash(
+        issuer,
+        receiver,
+      );
+}
+
+/// A certification was removed.
+class CertRemoved extends Event {
+  const CertRemoved({
+    required this.issuer,
+    required this.receiver,
+    required this.expiration,
+  });
+
+  factory CertRemoved._decode(_i1.Input input) {
+    return CertRemoved(
+      issuer: _i1.U32Codec.codec.decode(input),
+      receiver: _i1.U32Codec.codec.decode(input),
+      expiration: _i1.BoolCodec.codec.decode(input),
+    );
+  }
+
+  /// T::IdtyIndex
+  final int issuer;
+
+  /// T::IdtyIndex
+  final int receiver;
+
+  /// bool
+  final bool expiration;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'CertRemoved': {
+          'issuer': issuer,
+          'receiver': receiver,
+          'expiration': expiration,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(issuer);
+    size = size + _i1.U32Codec.codec.sizeHint(receiver);
+    size = size + _i1.BoolCodec.codec.sizeHint(expiration);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      issuer,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      receiver,
+      output,
+    );
+    _i1.BoolCodec.codec.encodeTo(
+      expiration,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is CertRemoved &&
+          other.issuer == issuer &&
+          other.receiver == receiver &&
+          other.expiration == expiration;
+
+  @override
+  int get hashCode => Object.hash(
+        issuer,
+        receiver,
+        expiration,
+      );
+}
+
+/// A certification was renewed.
+class CertRenewed extends Event {
+  const CertRenewed({
+    required this.issuer,
+    required this.receiver,
+  });
+
+  factory CertRenewed._decode(_i1.Input input) {
+    return CertRenewed(
+      issuer: _i1.U32Codec.codec.decode(input),
+      receiver: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// T::IdtyIndex
+  final int issuer;
+
+  /// T::IdtyIndex
+  final int receiver;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'CertRenewed': {
+          'issuer': issuer,
+          'receiver': receiver,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(issuer);
+    size = size + _i1.U32Codec.codec.sizeHint(receiver);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      issuer,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      receiver,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is CertRenewed &&
+          other.issuer == issuer &&
+          other.receiver == receiver;
+
+  @override
+  int get hashCode => Object.hash(
+        issuer,
+        receiver,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_certification/types/idty_cert_meta.dart b/lib/src/models/generated/duniter/types/pallet_certification/types/idty_cert_meta.dart
new file mode 100644
index 0000000000000000000000000000000000000000..388f7577e3f7897fd5cf74bc651eefbbe2761047
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_certification/types/idty_cert_meta.dart
@@ -0,0 +1,96 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class IdtyCertMeta {
+  const IdtyCertMeta({
+    required this.issuedCount,
+    required this.nextIssuableOn,
+    required this.receivedCount,
+  });
+
+  factory IdtyCertMeta.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// u32
+  final int issuedCount;
+
+  /// BlockNumber
+  final int nextIssuableOn;
+
+  /// u32
+  final int receivedCount;
+
+  static const $IdtyCertMetaCodec codec = $IdtyCertMetaCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, int> toJson() => {
+        'issuedCount': issuedCount,
+        'nextIssuableOn': nextIssuableOn,
+        'receivedCount': receivedCount,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is IdtyCertMeta &&
+          other.issuedCount == issuedCount &&
+          other.nextIssuableOn == nextIssuableOn &&
+          other.receivedCount == receivedCount;
+
+  @override
+  int get hashCode => Object.hash(
+        issuedCount,
+        nextIssuableOn,
+        receivedCount,
+      );
+}
+
+class $IdtyCertMetaCodec with _i1.Codec<IdtyCertMeta> {
+  const $IdtyCertMetaCodec();
+
+  @override
+  void encodeTo(
+    IdtyCertMeta obj,
+    _i1.Output output,
+  ) {
+    _i1.U32Codec.codec.encodeTo(
+      obj.issuedCount,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.nextIssuableOn,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.receivedCount,
+      output,
+    );
+  }
+
+  @override
+  IdtyCertMeta decode(_i1.Input input) {
+    return IdtyCertMeta(
+      issuedCount: _i1.U32Codec.codec.decode(input),
+      nextIssuableOn: _i1.U32Codec.codec.decode(input),
+      receivedCount: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(IdtyCertMeta obj) {
+    int size = 0;
+    size = size + _i1.U32Codec.codec.sizeHint(obj.issuedCount);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.nextIssuableOn);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.receivedCount);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_collective/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_collective/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4e4297a823485a95edcc5430b33aa9f817bb889c
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_collective/pallet/call.dart
@@ -0,0 +1,645 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i7;
+
+import '../../gdev_runtime/runtime_call.dart' as _i4;
+import '../../primitive_types/h256.dart' as _i5;
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+import '../../sp_weights/weight_v2/weight.dart' as _i6;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  SetMembers setMembers({
+    required List<_i3.AccountId32> newMembers,
+    _i3.AccountId32? prime,
+    required int oldCount,
+  }) {
+    return SetMembers(
+      newMembers: newMembers,
+      prime: prime,
+      oldCount: oldCount,
+    );
+  }
+
+  Execute execute({
+    required _i4.RuntimeCall proposal,
+    required BigInt lengthBound,
+  }) {
+    return Execute(
+      proposal: proposal,
+      lengthBound: lengthBound,
+    );
+  }
+
+  Propose propose({
+    required BigInt threshold,
+    required _i4.RuntimeCall proposal,
+    required BigInt lengthBound,
+  }) {
+    return Propose(
+      threshold: threshold,
+      proposal: proposal,
+      lengthBound: lengthBound,
+    );
+  }
+
+  Vote vote({
+    required _i5.H256 proposal,
+    required BigInt index,
+    required bool approve,
+  }) {
+    return Vote(
+      proposal: proposal,
+      index: index,
+      approve: approve,
+    );
+  }
+
+  DisapproveProposal disapproveProposal({required _i5.H256 proposalHash}) {
+    return DisapproveProposal(proposalHash: proposalHash);
+  }
+
+  Close close({
+    required _i5.H256 proposalHash,
+    required BigInt index,
+    required _i6.Weight proposalWeightBound,
+    required BigInt lengthBound,
+  }) {
+    return Close(
+      proposalHash: proposalHash,
+      index: index,
+      proposalWeightBound: proposalWeightBound,
+      lengthBound: lengthBound,
+    );
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return SetMembers._decode(input);
+      case 1:
+        return Execute._decode(input);
+      case 2:
+        return Propose._decode(input);
+      case 3:
+        return Vote._decode(input);
+      case 5:
+        return DisapproveProposal._decode(input);
+      case 6:
+        return Close._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case SetMembers:
+        (value as SetMembers).encodeTo(output);
+        break;
+      case Execute:
+        (value as Execute).encodeTo(output);
+        break;
+      case Propose:
+        (value as Propose).encodeTo(output);
+        break;
+      case Vote:
+        (value as Vote).encodeTo(output);
+        break;
+      case DisapproveProposal:
+        (value as DisapproveProposal).encodeTo(output);
+        break;
+      case Close:
+        (value as Close).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case SetMembers:
+        return (value as SetMembers)._sizeHint();
+      case Execute:
+        return (value as Execute)._sizeHint();
+      case Propose:
+        return (value as Propose)._sizeHint();
+      case Vote:
+        return (value as Vote)._sizeHint();
+      case DisapproveProposal:
+        return (value as DisapproveProposal)._sizeHint();
+      case Close:
+        return (value as Close)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::set_members`].
+class SetMembers extends Call {
+  const SetMembers({
+    required this.newMembers,
+    this.prime,
+    required this.oldCount,
+  });
+
+  factory SetMembers._decode(_i1.Input input) {
+    return SetMembers(
+      newMembers:
+          const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+              .decode(input),
+      prime: const _i1.OptionCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+          .decode(input),
+      oldCount: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// Vec<T::AccountId>
+  final List<_i3.AccountId32> newMembers;
+
+  /// Option<T::AccountId>
+  final _i3.AccountId32? prime;
+
+  /// MemberCount
+  final int oldCount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'set_members': {
+          'newMembers': newMembers.map((value) => value.toList()).toList(),
+          'prime': prime?.toList(),
+          'oldCount': oldCount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+            .sizeHint(newMembers);
+    size = size +
+        const _i1.OptionCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+            .sizeHint(prime);
+    size = size + _i1.U32Codec.codec.sizeHint(oldCount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec()).encodeTo(
+      newMembers,
+      output,
+    );
+    const _i1.OptionCodec<_i3.AccountId32>(_i3.AccountId32Codec()).encodeTo(
+      prime,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      oldCount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SetMembers &&
+          _i7.listsEqual(
+            other.newMembers,
+            newMembers,
+          ) &&
+          other.prime == prime &&
+          other.oldCount == oldCount;
+
+  @override
+  int get hashCode => Object.hash(
+        newMembers,
+        prime,
+        oldCount,
+      );
+}
+
+/// See [`Pallet::execute`].
+class Execute extends Call {
+  const Execute({
+    required this.proposal,
+    required this.lengthBound,
+  });
+
+  factory Execute._decode(_i1.Input input) {
+    return Execute(
+      proposal: _i4.RuntimeCall.codec.decode(input),
+      lengthBound: _i1.CompactBigIntCodec.codec.decode(input),
+    );
+  }
+
+  /// Box<<T as Config<I>>::Proposal>
+  final _i4.RuntimeCall proposal;
+
+  /// u32
+  final BigInt lengthBound;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'execute': {
+          'proposal': proposal.toJson(),
+          'lengthBound': lengthBound,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i4.RuntimeCall.codec.sizeHint(proposal);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(lengthBound);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i4.RuntimeCall.codec.encodeTo(
+      proposal,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      lengthBound,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Execute &&
+          other.proposal == proposal &&
+          other.lengthBound == lengthBound;
+
+  @override
+  int get hashCode => Object.hash(
+        proposal,
+        lengthBound,
+      );
+}
+
+/// See [`Pallet::propose`].
+class Propose extends Call {
+  const Propose({
+    required this.threshold,
+    required this.proposal,
+    required this.lengthBound,
+  });
+
+  factory Propose._decode(_i1.Input input) {
+    return Propose(
+      threshold: _i1.CompactBigIntCodec.codec.decode(input),
+      proposal: _i4.RuntimeCall.codec.decode(input),
+      lengthBound: _i1.CompactBigIntCodec.codec.decode(input),
+    );
+  }
+
+  /// MemberCount
+  final BigInt threshold;
+
+  /// Box<<T as Config<I>>::Proposal>
+  final _i4.RuntimeCall proposal;
+
+  /// u32
+  final BigInt lengthBound;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'propose': {
+          'threshold': threshold,
+          'proposal': proposal.toJson(),
+          'lengthBound': lengthBound,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(threshold);
+    size = size + _i4.RuntimeCall.codec.sizeHint(proposal);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(lengthBound);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      threshold,
+      output,
+    );
+    _i4.RuntimeCall.codec.encodeTo(
+      proposal,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      lengthBound,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Propose &&
+          other.threshold == threshold &&
+          other.proposal == proposal &&
+          other.lengthBound == lengthBound;
+
+  @override
+  int get hashCode => Object.hash(
+        threshold,
+        proposal,
+        lengthBound,
+      );
+}
+
+/// See [`Pallet::vote`].
+class Vote extends Call {
+  const Vote({
+    required this.proposal,
+    required this.index,
+    required this.approve,
+  });
+
+  factory Vote._decode(_i1.Input input) {
+    return Vote(
+      proposal: const _i1.U8ArrayCodec(32).decode(input),
+      index: _i1.CompactBigIntCodec.codec.decode(input),
+      approve: _i1.BoolCodec.codec.decode(input),
+    );
+  }
+
+  /// T::Hash
+  final _i5.H256 proposal;
+
+  /// ProposalIndex
+  final BigInt index;
+
+  /// bool
+  final bool approve;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'vote': {
+          'proposal': proposal.toList(),
+          'index': index,
+          'approve': approve,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i5.H256Codec().sizeHint(proposal);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(index);
+    size = size + _i1.BoolCodec.codec.sizeHint(approve);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      proposal,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      index,
+      output,
+    );
+    _i1.BoolCodec.codec.encodeTo(
+      approve,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Vote &&
+          _i7.listsEqual(
+            other.proposal,
+            proposal,
+          ) &&
+          other.index == index &&
+          other.approve == approve;
+
+  @override
+  int get hashCode => Object.hash(
+        proposal,
+        index,
+        approve,
+      );
+}
+
+/// See [`Pallet::disapprove_proposal`].
+class DisapproveProposal extends Call {
+  const DisapproveProposal({required this.proposalHash});
+
+  factory DisapproveProposal._decode(_i1.Input input) {
+    return DisapproveProposal(
+        proposalHash: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::Hash
+  final _i5.H256 proposalHash;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'disapprove_proposal': {'proposalHash': proposalHash.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i5.H256Codec().sizeHint(proposalHash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      proposalHash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is DisapproveProposal &&
+          _i7.listsEqual(
+            other.proposalHash,
+            proposalHash,
+          );
+
+  @override
+  int get hashCode => proposalHash.hashCode;
+}
+
+/// See [`Pallet::close`].
+class Close extends Call {
+  const Close({
+    required this.proposalHash,
+    required this.index,
+    required this.proposalWeightBound,
+    required this.lengthBound,
+  });
+
+  factory Close._decode(_i1.Input input) {
+    return Close(
+      proposalHash: const _i1.U8ArrayCodec(32).decode(input),
+      index: _i1.CompactBigIntCodec.codec.decode(input),
+      proposalWeightBound: _i6.Weight.codec.decode(input),
+      lengthBound: _i1.CompactBigIntCodec.codec.decode(input),
+    );
+  }
+
+  /// T::Hash
+  final _i5.H256 proposalHash;
+
+  /// ProposalIndex
+  final BigInt index;
+
+  /// Weight
+  final _i6.Weight proposalWeightBound;
+
+  /// u32
+  final BigInt lengthBound;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'close': {
+          'proposalHash': proposalHash.toList(),
+          'index': index,
+          'proposalWeightBound': proposalWeightBound.toJson(),
+          'lengthBound': lengthBound,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i5.H256Codec().sizeHint(proposalHash);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(index);
+    size = size + _i6.Weight.codec.sizeHint(proposalWeightBound);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(lengthBound);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      6,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      proposalHash,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      index,
+      output,
+    );
+    _i6.Weight.codec.encodeTo(
+      proposalWeightBound,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      lengthBound,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Close &&
+          _i7.listsEqual(
+            other.proposalHash,
+            proposalHash,
+          ) &&
+          other.index == index &&
+          other.proposalWeightBound == proposalWeightBound &&
+          other.lengthBound == lengthBound;
+
+  @override
+  int get hashCode => Object.hash(
+        proposalHash,
+        index,
+        proposalWeightBound,
+        lengthBound,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_collective/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_collective/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..857106844f83656ccb043ad6683a0a6b59347958
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_collective/pallet/error.dart
@@ -0,0 +1,106 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Account is not a member
+  notMember('NotMember', 0),
+
+  /// Duplicate proposals not allowed
+  duplicateProposal('DuplicateProposal', 1),
+
+  /// Proposal must exist
+  proposalMissing('ProposalMissing', 2),
+
+  /// Mismatched index
+  wrongIndex('WrongIndex', 3),
+
+  /// Duplicate vote ignored
+  duplicateVote('DuplicateVote', 4),
+
+  /// Members are already initialized!
+  alreadyInitialized('AlreadyInitialized', 5),
+
+  /// The close call was made too early, before the end of the voting.
+  tooEarly('TooEarly', 6),
+
+  /// There can only be a maximum of `MaxProposals` active proposals.
+  tooManyProposals('TooManyProposals', 7),
+
+  /// The given weight bound for the proposal was too low.
+  wrongProposalWeight('WrongProposalWeight', 8),
+
+  /// The given length bound for the proposal was too low.
+  wrongProposalLength('WrongProposalLength', 9),
+
+  /// Prime account is not a member
+  primeAccountNotMember('PrimeAccountNotMember', 10);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.notMember;
+      case 1:
+        return Error.duplicateProposal;
+      case 2:
+        return Error.proposalMissing;
+      case 3:
+        return Error.wrongIndex;
+      case 4:
+        return Error.duplicateVote;
+      case 5:
+        return Error.alreadyInitialized;
+      case 6:
+        return Error.tooEarly;
+      case 7:
+        return Error.tooManyProposals;
+      case 8:
+        return Error.wrongProposalWeight;
+      case 9:
+        return Error.wrongProposalLength;
+      case 10:
+        return Error.primeAccountNotMember;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_collective/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_collective/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..021d8d83fa0f0a223b0bca9b9bf501cac8bf159b
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_collective/pallet/event.dart
@@ -0,0 +1,745 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i6;
+
+import '../../primitive_types/h256.dart' as _i4;
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+import '../../sp_runtime/dispatch_error.dart' as _i5;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  Proposed proposed({
+    required _i3.AccountId32 account,
+    required int proposalIndex,
+    required _i4.H256 proposalHash,
+    required int threshold,
+  }) {
+    return Proposed(
+      account: account,
+      proposalIndex: proposalIndex,
+      proposalHash: proposalHash,
+      threshold: threshold,
+    );
+  }
+
+  Voted voted({
+    required _i3.AccountId32 account,
+    required _i4.H256 proposalHash,
+    required bool voted,
+    required int yes,
+    required int no,
+  }) {
+    return Voted(
+      account: account,
+      proposalHash: proposalHash,
+      voted: voted,
+      yes: yes,
+      no: no,
+    );
+  }
+
+  Approved approved({required _i4.H256 proposalHash}) {
+    return Approved(proposalHash: proposalHash);
+  }
+
+  Disapproved disapproved({required _i4.H256 proposalHash}) {
+    return Disapproved(proposalHash: proposalHash);
+  }
+
+  Executed executed({
+    required _i4.H256 proposalHash,
+    required _i1.Result<dynamic, _i5.DispatchError> result,
+  }) {
+    return Executed(
+      proposalHash: proposalHash,
+      result: result,
+    );
+  }
+
+  MemberExecuted memberExecuted({
+    required _i4.H256 proposalHash,
+    required _i1.Result<dynamic, _i5.DispatchError> result,
+  }) {
+    return MemberExecuted(
+      proposalHash: proposalHash,
+      result: result,
+    );
+  }
+
+  Closed closed({
+    required _i4.H256 proposalHash,
+    required int yes,
+    required int no,
+  }) {
+    return Closed(
+      proposalHash: proposalHash,
+      yes: yes,
+      no: no,
+    );
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Proposed._decode(input);
+      case 1:
+        return Voted._decode(input);
+      case 2:
+        return Approved._decode(input);
+      case 3:
+        return Disapproved._decode(input);
+      case 4:
+        return Executed._decode(input);
+      case 5:
+        return MemberExecuted._decode(input);
+      case 6:
+        return Closed._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Proposed:
+        (value as Proposed).encodeTo(output);
+        break;
+      case Voted:
+        (value as Voted).encodeTo(output);
+        break;
+      case Approved:
+        (value as Approved).encodeTo(output);
+        break;
+      case Disapproved:
+        (value as Disapproved).encodeTo(output);
+        break;
+      case Executed:
+        (value as Executed).encodeTo(output);
+        break;
+      case MemberExecuted:
+        (value as MemberExecuted).encodeTo(output);
+        break;
+      case Closed:
+        (value as Closed).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case Proposed:
+        return (value as Proposed)._sizeHint();
+      case Voted:
+        return (value as Voted)._sizeHint();
+      case Approved:
+        return (value as Approved)._sizeHint();
+      case Disapproved:
+        return (value as Disapproved)._sizeHint();
+      case Executed:
+        return (value as Executed)._sizeHint();
+      case MemberExecuted:
+        return (value as MemberExecuted)._sizeHint();
+      case Closed:
+        return (value as Closed)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// A motion (given hash) has been proposed (by given account) with a threshold (given
+/// `MemberCount`).
+class Proposed extends Event {
+  const Proposed({
+    required this.account,
+    required this.proposalIndex,
+    required this.proposalHash,
+    required this.threshold,
+  });
+
+  factory Proposed._decode(_i1.Input input) {
+    return Proposed(
+      account: const _i1.U8ArrayCodec(32).decode(input),
+      proposalIndex: _i1.U32Codec.codec.decode(input),
+      proposalHash: const _i1.U8ArrayCodec(32).decode(input),
+      threshold: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 account;
+
+  /// ProposalIndex
+  final int proposalIndex;
+
+  /// T::Hash
+  final _i4.H256 proposalHash;
+
+  /// MemberCount
+  final int threshold;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Proposed': {
+          'account': account.toList(),
+          'proposalIndex': proposalIndex,
+          'proposalHash': proposalHash.toList(),
+          'threshold': threshold,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(account);
+    size = size + _i1.U32Codec.codec.sizeHint(proposalIndex);
+    size = size + const _i4.H256Codec().sizeHint(proposalHash);
+    size = size + _i1.U32Codec.codec.sizeHint(threshold);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      account,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      proposalIndex,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      proposalHash,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      threshold,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Proposed &&
+          _i6.listsEqual(
+            other.account,
+            account,
+          ) &&
+          other.proposalIndex == proposalIndex &&
+          _i6.listsEqual(
+            other.proposalHash,
+            proposalHash,
+          ) &&
+          other.threshold == threshold;
+
+  @override
+  int get hashCode => Object.hash(
+        account,
+        proposalIndex,
+        proposalHash,
+        threshold,
+      );
+}
+
+/// A motion (given hash) has been voted on by given account, leaving
+/// a tally (yes votes and no votes given respectively as `MemberCount`).
+class Voted extends Event {
+  const Voted({
+    required this.account,
+    required this.proposalHash,
+    required this.voted,
+    required this.yes,
+    required this.no,
+  });
+
+  factory Voted._decode(_i1.Input input) {
+    return Voted(
+      account: const _i1.U8ArrayCodec(32).decode(input),
+      proposalHash: const _i1.U8ArrayCodec(32).decode(input),
+      voted: _i1.BoolCodec.codec.decode(input),
+      yes: _i1.U32Codec.codec.decode(input),
+      no: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 account;
+
+  /// T::Hash
+  final _i4.H256 proposalHash;
+
+  /// bool
+  final bool voted;
+
+  /// MemberCount
+  final int yes;
+
+  /// MemberCount
+  final int no;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Voted': {
+          'account': account.toList(),
+          'proposalHash': proposalHash.toList(),
+          'voted': voted,
+          'yes': yes,
+          'no': no,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(account);
+    size = size + const _i4.H256Codec().sizeHint(proposalHash);
+    size = size + _i1.BoolCodec.codec.sizeHint(voted);
+    size = size + _i1.U32Codec.codec.sizeHint(yes);
+    size = size + _i1.U32Codec.codec.sizeHint(no);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      account,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      proposalHash,
+      output,
+    );
+    _i1.BoolCodec.codec.encodeTo(
+      voted,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      yes,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      no,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Voted &&
+          _i6.listsEqual(
+            other.account,
+            account,
+          ) &&
+          _i6.listsEqual(
+            other.proposalHash,
+            proposalHash,
+          ) &&
+          other.voted == voted &&
+          other.yes == yes &&
+          other.no == no;
+
+  @override
+  int get hashCode => Object.hash(
+        account,
+        proposalHash,
+        voted,
+        yes,
+        no,
+      );
+}
+
+/// A motion was approved by the required threshold.
+class Approved extends Event {
+  const Approved({required this.proposalHash});
+
+  factory Approved._decode(_i1.Input input) {
+    return Approved(proposalHash: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::Hash
+  final _i4.H256 proposalHash;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'Approved': {'proposalHash': proposalHash.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i4.H256Codec().sizeHint(proposalHash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      proposalHash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Approved &&
+          _i6.listsEqual(
+            other.proposalHash,
+            proposalHash,
+          );
+
+  @override
+  int get hashCode => proposalHash.hashCode;
+}
+
+/// A motion was not approved by the required threshold.
+class Disapproved extends Event {
+  const Disapproved({required this.proposalHash});
+
+  factory Disapproved._decode(_i1.Input input) {
+    return Disapproved(proposalHash: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::Hash
+  final _i4.H256 proposalHash;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'Disapproved': {'proposalHash': proposalHash.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i4.H256Codec().sizeHint(proposalHash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      proposalHash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Disapproved &&
+          _i6.listsEqual(
+            other.proposalHash,
+            proposalHash,
+          );
+
+  @override
+  int get hashCode => proposalHash.hashCode;
+}
+
+/// A motion was executed; result will be `Ok` if it returned without error.
+class Executed extends Event {
+  const Executed({
+    required this.proposalHash,
+    required this.result,
+  });
+
+  factory Executed._decode(_i1.Input input) {
+    return Executed(
+      proposalHash: const _i1.U8ArrayCodec(32).decode(input),
+      result: const _i1.ResultCodec<dynamic, _i5.DispatchError>(
+        _i1.NullCodec.codec,
+        _i5.DispatchError.codec,
+      ).decode(input),
+    );
+  }
+
+  /// T::Hash
+  final _i4.H256 proposalHash;
+
+  /// DispatchResult
+  final _i1.Result<dynamic, _i5.DispatchError> result;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Executed': {
+          'proposalHash': proposalHash.toList(),
+          'result': result.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i4.H256Codec().sizeHint(proposalHash);
+    size = size +
+        const _i1.ResultCodec<dynamic, _i5.DispatchError>(
+          _i1.NullCodec.codec,
+          _i5.DispatchError.codec,
+        ).sizeHint(result);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      proposalHash,
+      output,
+    );
+    const _i1.ResultCodec<dynamic, _i5.DispatchError>(
+      _i1.NullCodec.codec,
+      _i5.DispatchError.codec,
+    ).encodeTo(
+      result,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Executed &&
+          _i6.listsEqual(
+            other.proposalHash,
+            proposalHash,
+          ) &&
+          other.result == result;
+
+  @override
+  int get hashCode => Object.hash(
+        proposalHash,
+        result,
+      );
+}
+
+/// A single member did some action; result will be `Ok` if it returned without error.
+class MemberExecuted extends Event {
+  const MemberExecuted({
+    required this.proposalHash,
+    required this.result,
+  });
+
+  factory MemberExecuted._decode(_i1.Input input) {
+    return MemberExecuted(
+      proposalHash: const _i1.U8ArrayCodec(32).decode(input),
+      result: const _i1.ResultCodec<dynamic, _i5.DispatchError>(
+        _i1.NullCodec.codec,
+        _i5.DispatchError.codec,
+      ).decode(input),
+    );
+  }
+
+  /// T::Hash
+  final _i4.H256 proposalHash;
+
+  /// DispatchResult
+  final _i1.Result<dynamic, _i5.DispatchError> result;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'MemberExecuted': {
+          'proposalHash': proposalHash.toList(),
+          'result': result.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i4.H256Codec().sizeHint(proposalHash);
+    size = size +
+        const _i1.ResultCodec<dynamic, _i5.DispatchError>(
+          _i1.NullCodec.codec,
+          _i5.DispatchError.codec,
+        ).sizeHint(result);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      proposalHash,
+      output,
+    );
+    const _i1.ResultCodec<dynamic, _i5.DispatchError>(
+      _i1.NullCodec.codec,
+      _i5.DispatchError.codec,
+    ).encodeTo(
+      result,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MemberExecuted &&
+          _i6.listsEqual(
+            other.proposalHash,
+            proposalHash,
+          ) &&
+          other.result == result;
+
+  @override
+  int get hashCode => Object.hash(
+        proposalHash,
+        result,
+      );
+}
+
+/// A proposal was closed because its threshold was reached or after its duration was up.
+class Closed extends Event {
+  const Closed({
+    required this.proposalHash,
+    required this.yes,
+    required this.no,
+  });
+
+  factory Closed._decode(_i1.Input input) {
+    return Closed(
+      proposalHash: const _i1.U8ArrayCodec(32).decode(input),
+      yes: _i1.U32Codec.codec.decode(input),
+      no: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// T::Hash
+  final _i4.H256 proposalHash;
+
+  /// MemberCount
+  final int yes;
+
+  /// MemberCount
+  final int no;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Closed': {
+          'proposalHash': proposalHash.toList(),
+          'yes': yes,
+          'no': no,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i4.H256Codec().sizeHint(proposalHash);
+    size = size + _i1.U32Codec.codec.sizeHint(yes);
+    size = size + _i1.U32Codec.codec.sizeHint(no);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      6,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      proposalHash,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      yes,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      no,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Closed &&
+          _i6.listsEqual(
+            other.proposalHash,
+            proposalHash,
+          ) &&
+          other.yes == yes &&
+          other.no == no;
+
+  @override
+  int get hashCode => Object.hash(
+        proposalHash,
+        yes,
+        no,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_collective/raw_origin.dart b/lib/src/models/generated/duniter/types/pallet_collective/raw_origin.dart
new file mode 100644
index 0000000000000000000000000000000000000000..288a98f8681e42ecb1320bb56abef88519343f85
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_collective/raw_origin.dart
@@ -0,0 +1,238 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../sp_core/crypto/account_id32.dart' as _i3;
+
+abstract class RawOrigin {
+  const RawOrigin();
+
+  factory RawOrigin.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $RawOriginCodec codec = $RawOriginCodec();
+
+  static const $RawOrigin values = $RawOrigin();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $RawOrigin {
+  const $RawOrigin();
+
+  Members members(
+    int value0,
+    int value1,
+  ) {
+    return Members(
+      value0,
+      value1,
+    );
+  }
+
+  Member member(_i3.AccountId32 value0) {
+    return Member(value0);
+  }
+
+  Phantom phantom() {
+    return const Phantom();
+  }
+}
+
+class $RawOriginCodec with _i1.Codec<RawOrigin> {
+  const $RawOriginCodec();
+
+  @override
+  RawOrigin decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Members._decode(input);
+      case 1:
+        return Member._decode(input);
+      case 2:
+        return const Phantom();
+      default:
+        throw Exception('RawOrigin: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    RawOrigin value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Members:
+        (value as Members).encodeTo(output);
+        break;
+      case Member:
+        (value as Member).encodeTo(output);
+        break;
+      case Phantom:
+        (value as Phantom).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'RawOrigin: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(RawOrigin value) {
+    switch (value.runtimeType) {
+      case Members:
+        return (value as Members)._sizeHint();
+      case Member:
+        return (value as Member)._sizeHint();
+      case Phantom:
+        return 1;
+      default:
+        throw Exception(
+            'RawOrigin: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class Members extends RawOrigin {
+  const Members(
+    this.value0,
+    this.value1,
+  );
+
+  factory Members._decode(_i1.Input input) {
+    return Members(
+      _i1.U32Codec.codec.decode(input),
+      _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// MemberCount
+  final int value0;
+
+  /// MemberCount
+  final int value1;
+
+  @override
+  Map<String, List<int>> toJson() => {
+        'Members': [
+          value0,
+          value1,
+        ]
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(value0);
+    size = size + _i1.U32Codec.codec.sizeHint(value1);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      value1,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Members && other.value0 == value0 && other.value1 == value1;
+
+  @override
+  int get hashCode => Object.hash(
+        value0,
+        value1,
+      );
+}
+
+class Member extends RawOrigin {
+  const Member(this.value0);
+
+  factory Member._decode(_i1.Input input) {
+    return Member(const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// AccountId
+  final _i3.AccountId32 value0;
+
+  @override
+  Map<String, List<int>> toJson() => {'Member': value0.toList()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Member &&
+          _i4.listsEqual(
+            other.value0,
+            value0,
+          );
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Phantom extends RawOrigin {
+  const Phantom();
+
+  @override
+  Map<String, dynamic> toJson() => {'_Phantom': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is Phantom;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_collective/votes.dart b/lib/src/models/generated/duniter/types/pallet_collective/votes.dart
new file mode 100644
index 0000000000000000000000000000000000000000..37340931b5d01da2b8ea93180de819f5186787fc
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_collective/votes.dart
@@ -0,0 +1,137 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../sp_core/crypto/account_id32.dart' as _i2;
+
+class Votes {
+  const Votes({
+    required this.index,
+    required this.threshold,
+    required this.ayes,
+    required this.nays,
+    required this.end,
+  });
+
+  factory Votes.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// ProposalIndex
+  final int index;
+
+  /// MemberCount
+  final int threshold;
+
+  /// Vec<AccountId>
+  final List<_i2.AccountId32> ayes;
+
+  /// Vec<AccountId>
+  final List<_i2.AccountId32> nays;
+
+  /// BlockNumber
+  final int end;
+
+  static const $VotesCodec codec = $VotesCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'index': index,
+        'threshold': threshold,
+        'ayes': ayes.map((value) => value.toList()).toList(),
+        'nays': nays.map((value) => value.toList()).toList(),
+        'end': end,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Votes &&
+          other.index == index &&
+          other.threshold == threshold &&
+          _i4.listsEqual(
+            other.ayes,
+            ayes,
+          ) &&
+          _i4.listsEqual(
+            other.nays,
+            nays,
+          ) &&
+          other.end == end;
+
+  @override
+  int get hashCode => Object.hash(
+        index,
+        threshold,
+        ayes,
+        nays,
+        end,
+      );
+}
+
+class $VotesCodec with _i1.Codec<Votes> {
+  const $VotesCodec();
+
+  @override
+  void encodeTo(
+    Votes obj,
+    _i1.Output output,
+  ) {
+    _i1.U32Codec.codec.encodeTo(
+      obj.index,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.threshold,
+      output,
+    );
+    const _i1.SequenceCodec<_i2.AccountId32>(_i2.AccountId32Codec()).encodeTo(
+      obj.ayes,
+      output,
+    );
+    const _i1.SequenceCodec<_i2.AccountId32>(_i2.AccountId32Codec()).encodeTo(
+      obj.nays,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.end,
+      output,
+    );
+  }
+
+  @override
+  Votes decode(_i1.Input input) {
+    return Votes(
+      index: _i1.U32Codec.codec.decode(input),
+      threshold: _i1.U32Codec.codec.decode(input),
+      ayes: const _i1.SequenceCodec<_i2.AccountId32>(_i2.AccountId32Codec())
+          .decode(input),
+      nays: const _i1.SequenceCodec<_i2.AccountId32>(_i2.AccountId32Codec())
+          .decode(input),
+      end: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Votes obj) {
+    int size = 0;
+    size = size + _i1.U32Codec.codec.sizeHint(obj.index);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.threshold);
+    size = size +
+        const _i1.SequenceCodec<_i2.AccountId32>(_i2.AccountId32Codec())
+            .sizeHint(obj.ayes);
+    size = size +
+        const _i1.SequenceCodec<_i2.AccountId32>(_i2.AccountId32Codec())
+            .sizeHint(obj.nays);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.end);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_distance/median/median_acc.dart b/lib/src/models/generated/duniter/types/pallet_distance/median/median_acc.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d1b4d368ea47340f6f641a88695bee2a52c38bb4
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_distance/median/median_acc.dart
@@ -0,0 +1,123 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../../sp_arithmetic/per_things/perbill.dart' as _i3;
+import '../../tuples.dart' as _i2;
+
+class MedianAcc {
+  const MedianAcc({
+    required this.samples,
+    this.medianIndex,
+    required this.medianSubindex,
+  });
+
+  factory MedianAcc.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// BoundedVec<(T, u32), ConstU32<S>>
+  final List<_i2.Tuple2<_i3.Perbill, int>> samples;
+
+  /// Option<u32>
+  final int? medianIndex;
+
+  /// u32
+  final int medianSubindex;
+
+  static const $MedianAccCodec codec = $MedianAccCodec();
+
+  _i4.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'samples': samples
+            .map((value) => [
+                  value.value0,
+                  value.value1,
+                ])
+            .toList(),
+        'medianIndex': medianIndex,
+        'medianSubindex': medianSubindex,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MedianAcc &&
+          _i5.listsEqual(
+            other.samples,
+            samples,
+          ) &&
+          other.medianIndex == medianIndex &&
+          other.medianSubindex == medianSubindex;
+
+  @override
+  int get hashCode => Object.hash(
+        samples,
+        medianIndex,
+        medianSubindex,
+      );
+}
+
+class $MedianAccCodec with _i1.Codec<MedianAcc> {
+  const $MedianAccCodec();
+
+  @override
+  void encodeTo(
+    MedianAcc obj,
+    _i1.Output output,
+  ) {
+    const _i1.SequenceCodec<_i2.Tuple2<_i3.Perbill, int>>(
+        _i2.Tuple2Codec<_i3.Perbill, int>(
+      _i3.PerbillCodec(),
+      _i1.U32Codec.codec,
+    )).encodeTo(
+      obj.samples,
+      output,
+    );
+    const _i1.OptionCodec<int>(_i1.U32Codec.codec).encodeTo(
+      obj.medianIndex,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.medianSubindex,
+      output,
+    );
+  }
+
+  @override
+  MedianAcc decode(_i1.Input input) {
+    return MedianAcc(
+      samples: const _i1.SequenceCodec<_i2.Tuple2<_i3.Perbill, int>>(
+          _i2.Tuple2Codec<_i3.Perbill, int>(
+        _i3.PerbillCodec(),
+        _i1.U32Codec.codec,
+      )).decode(input),
+      medianIndex: const _i1.OptionCodec<int>(_i1.U32Codec.codec).decode(input),
+      medianSubindex: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(MedianAcc obj) {
+    int size = 0;
+    size = size +
+        const _i1.SequenceCodec<_i2.Tuple2<_i3.Perbill, int>>(
+            _i2.Tuple2Codec<_i3.Perbill, int>(
+          _i3.PerbillCodec(),
+          _i1.U32Codec.codec,
+        )).sizeHint(obj.samples);
+    size = size +
+        const _i1.OptionCodec<int>(_i1.U32Codec.codec)
+            .sizeHint(obj.medianIndex);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.medianSubindex);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_distance/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_distance/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..eee1a1d15fffa7cb820dd549c2d18f72abb5849e
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_distance/pallet/call.dart
@@ -0,0 +1,362 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../../sp_core/crypto/account_id32.dart' as _i4;
+import '../../sp_distance/computation_result.dart' as _i3;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  RequestDistanceEvaluation requestDistanceEvaluation() {
+    return const RequestDistanceEvaluation();
+  }
+
+  RequestDistanceEvaluationFor requestDistanceEvaluationFor(
+      {required int target}) {
+    return RequestDistanceEvaluationFor(target: target);
+  }
+
+  UpdateEvaluation updateEvaluation(
+      {required _i3.ComputationResult computationResult}) {
+    return UpdateEvaluation(computationResult: computationResult);
+  }
+
+  ForceUpdateEvaluation forceUpdateEvaluation({
+    required _i4.AccountId32 evaluator,
+    required _i3.ComputationResult computationResult,
+  }) {
+    return ForceUpdateEvaluation(
+      evaluator: evaluator,
+      computationResult: computationResult,
+    );
+  }
+
+  ForceValidDistanceStatus forceValidDistanceStatus({required int identity}) {
+    return ForceValidDistanceStatus(identity: identity);
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return const RequestDistanceEvaluation();
+      case 4:
+        return RequestDistanceEvaluationFor._decode(input);
+      case 1:
+        return UpdateEvaluation._decode(input);
+      case 2:
+        return ForceUpdateEvaluation._decode(input);
+      case 3:
+        return ForceValidDistanceStatus._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case RequestDistanceEvaluation:
+        (value as RequestDistanceEvaluation).encodeTo(output);
+        break;
+      case RequestDistanceEvaluationFor:
+        (value as RequestDistanceEvaluationFor).encodeTo(output);
+        break;
+      case UpdateEvaluation:
+        (value as UpdateEvaluation).encodeTo(output);
+        break;
+      case ForceUpdateEvaluation:
+        (value as ForceUpdateEvaluation).encodeTo(output);
+        break;
+      case ForceValidDistanceStatus:
+        (value as ForceValidDistanceStatus).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case RequestDistanceEvaluation:
+        return 1;
+      case RequestDistanceEvaluationFor:
+        return (value as RequestDistanceEvaluationFor)._sizeHint();
+      case UpdateEvaluation:
+        return (value as UpdateEvaluation)._sizeHint();
+      case ForceUpdateEvaluation:
+        return (value as ForceUpdateEvaluation)._sizeHint();
+      case ForceValidDistanceStatus:
+        return (value as ForceValidDistanceStatus)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::request_distance_evaluation`].
+class RequestDistanceEvaluation extends Call {
+  const RequestDistanceEvaluation();
+
+  @override
+  Map<String, dynamic> toJson() => {'request_distance_evaluation': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is RequestDistanceEvaluation;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+/// See [`Pallet::request_distance_evaluation_for`].
+class RequestDistanceEvaluationFor extends Call {
+  const RequestDistanceEvaluationFor({required this.target});
+
+  factory RequestDistanceEvaluationFor._decode(_i1.Input input) {
+    return RequestDistanceEvaluationFor(
+        target: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::IdtyIndex
+  final int target;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'request_distance_evaluation_for': {'target': target}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(target);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      target,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RequestDistanceEvaluationFor && other.target == target;
+
+  @override
+  int get hashCode => target.hashCode;
+}
+
+/// See [`Pallet::update_evaluation`].
+class UpdateEvaluation extends Call {
+  const UpdateEvaluation({required this.computationResult});
+
+  factory UpdateEvaluation._decode(_i1.Input input) {
+    return UpdateEvaluation(
+        computationResult: _i3.ComputationResult.codec.decode(input));
+  }
+
+  /// ComputationResult
+  final _i3.ComputationResult computationResult;
+
+  @override
+  Map<String, Map<String, Map<String, List<int>>>> toJson() => {
+        'update_evaluation': {'computationResult': computationResult.toJson()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.ComputationResult.codec.sizeHint(computationResult);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i3.ComputationResult.codec.encodeTo(
+      computationResult,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is UpdateEvaluation && other.computationResult == computationResult;
+
+  @override
+  int get hashCode => computationResult.hashCode;
+}
+
+/// See [`Pallet::force_update_evaluation`].
+class ForceUpdateEvaluation extends Call {
+  const ForceUpdateEvaluation({
+    required this.evaluator,
+    required this.computationResult,
+  });
+
+  factory ForceUpdateEvaluation._decode(_i1.Input input) {
+    return ForceUpdateEvaluation(
+      evaluator: const _i1.U8ArrayCodec(32).decode(input),
+      computationResult: _i3.ComputationResult.codec.decode(input),
+    );
+  }
+
+  /// <T as frame_system::Config>::AccountId
+  final _i4.AccountId32 evaluator;
+
+  /// ComputationResult
+  final _i3.ComputationResult computationResult;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'force_update_evaluation': {
+          'evaluator': evaluator.toList(),
+          'computationResult': computationResult.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i4.AccountId32Codec().sizeHint(evaluator);
+    size = size + _i3.ComputationResult.codec.sizeHint(computationResult);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      evaluator,
+      output,
+    );
+    _i3.ComputationResult.codec.encodeTo(
+      computationResult,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ForceUpdateEvaluation &&
+          _i5.listsEqual(
+            other.evaluator,
+            evaluator,
+          ) &&
+          other.computationResult == computationResult;
+
+  @override
+  int get hashCode => Object.hash(
+        evaluator,
+        computationResult,
+      );
+}
+
+/// See [`Pallet::force_valid_distance_status`].
+class ForceValidDistanceStatus extends Call {
+  const ForceValidDistanceStatus({required this.identity});
+
+  factory ForceValidDistanceStatus._decode(_i1.Input input) {
+    return ForceValidDistanceStatus(identity: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// <T as pallet_identity::Config>::IdtyIndex
+  final int identity;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'force_valid_distance_status': {'identity': identity}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(identity);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      identity,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ForceValidDistanceStatus && other.identity == identity;
+
+  @override
+  int get hashCode => identity.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_distance/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_distance/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..bcdd330347fdc905c587991c23dd2d1a4fb5c0b1
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_distance/pallet/error.dart
@@ -0,0 +1,114 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Distance is already under evaluation.
+  alreadyInEvaluation('AlreadyInEvaluation', 0),
+
+  /// Too many evaluations requested by author.
+  tooManyEvaluationsByAuthor('TooManyEvaluationsByAuthor', 1),
+
+  /// Too many evaluations for this block.
+  tooManyEvaluationsInBlock('TooManyEvaluationsInBlock', 2),
+
+  /// No author for this block.
+  noAuthor('NoAuthor', 3),
+
+  /// Caller has no identity.
+  callerHasNoIdentity('CallerHasNoIdentity', 4),
+
+  /// Caller identity not found.
+  callerIdentityNotFound('CallerIdentityNotFound', 5),
+
+  /// Caller not member.
+  callerNotMember('CallerNotMember', 6),
+  callerStatusInvalid('CallerStatusInvalid', 7),
+
+  /// Target identity not found.
+  targetIdentityNotFound('TargetIdentityNotFound', 8),
+
+  /// Evaluation queue is full.
+  queueFull('QueueFull', 9),
+
+  /// Too many evaluators in the current evaluation pool.
+  tooManyEvaluators('TooManyEvaluators', 10),
+
+  /// Evaluation result has a wrong length.
+  wrongResultLength('WrongResultLength', 11),
+
+  /// Targeted distance evaluation request is only possible for an unvalidated identity.
+  targetMustBeUnvalidated('TargetMustBeUnvalidated', 12);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.alreadyInEvaluation;
+      case 1:
+        return Error.tooManyEvaluationsByAuthor;
+      case 2:
+        return Error.tooManyEvaluationsInBlock;
+      case 3:
+        return Error.noAuthor;
+      case 4:
+        return Error.callerHasNoIdentity;
+      case 5:
+        return Error.callerIdentityNotFound;
+      case 6:
+        return Error.callerNotMember;
+      case 7:
+        return Error.callerStatusInvalid;
+      case 8:
+        return Error.targetIdentityNotFound;
+      case 9:
+        return Error.queueFull;
+      case 10:
+        return Error.tooManyEvaluators;
+      case 11:
+        return Error.wrongResultLength;
+      case 12:
+        return Error.targetMustBeUnvalidated;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_distance/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_distance/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..0d85cb7ef1f2a5c10225d8c8bd09016d1aafeccb
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_distance/pallet/event.dart
@@ -0,0 +1,269 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  EvaluationRequested evaluationRequested({
+    required int idtyIndex,
+    required _i3.AccountId32 who,
+  }) {
+    return EvaluationRequested(
+      idtyIndex: idtyIndex,
+      who: who,
+    );
+  }
+
+  EvaluatedValid evaluatedValid({required int idtyIndex}) {
+    return EvaluatedValid(idtyIndex: idtyIndex);
+  }
+
+  EvaluatedInvalid evaluatedInvalid({required int idtyIndex}) {
+    return EvaluatedInvalid(idtyIndex: idtyIndex);
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return EvaluationRequested._decode(input);
+      case 1:
+        return EvaluatedValid._decode(input);
+      case 2:
+        return EvaluatedInvalid._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case EvaluationRequested:
+        (value as EvaluationRequested).encodeTo(output);
+        break;
+      case EvaluatedValid:
+        (value as EvaluatedValid).encodeTo(output);
+        break;
+      case EvaluatedInvalid:
+        (value as EvaluatedInvalid).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case EvaluationRequested:
+        return (value as EvaluationRequested)._sizeHint();
+      case EvaluatedValid:
+        return (value as EvaluatedValid)._sizeHint();
+      case EvaluatedInvalid:
+        return (value as EvaluatedInvalid)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// A distance evaluation was requested.
+class EvaluationRequested extends Event {
+  const EvaluationRequested({
+    required this.idtyIndex,
+    required this.who,
+  });
+
+  factory EvaluationRequested._decode(_i1.Input input) {
+    return EvaluationRequested(
+      idtyIndex: _i1.U32Codec.codec.decode(input),
+      who: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// T::IdtyIndex
+  final int idtyIndex;
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'EvaluationRequested': {
+          'idtyIndex': idtyIndex,
+          'who': who.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(idtyIndex);
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      idtyIndex,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is EvaluationRequested &&
+          other.idtyIndex == idtyIndex &&
+          _i4.listsEqual(
+            other.who,
+            who,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        idtyIndex,
+        who,
+      );
+}
+
+/// Distance rule was found valid.
+class EvaluatedValid extends Event {
+  const EvaluatedValid({required this.idtyIndex});
+
+  factory EvaluatedValid._decode(_i1.Input input) {
+    return EvaluatedValid(idtyIndex: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::IdtyIndex
+  final int idtyIndex;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'EvaluatedValid': {'idtyIndex': idtyIndex}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(idtyIndex);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      idtyIndex,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is EvaluatedValid && other.idtyIndex == idtyIndex;
+
+  @override
+  int get hashCode => idtyIndex.hashCode;
+}
+
+/// Distance rule was found invalid.
+class EvaluatedInvalid extends Event {
+  const EvaluatedInvalid({required this.idtyIndex});
+
+  factory EvaluatedInvalid._decode(_i1.Input input) {
+    return EvaluatedInvalid(idtyIndex: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::IdtyIndex
+  final int idtyIndex;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'EvaluatedInvalid': {'idtyIndex': idtyIndex}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(idtyIndex);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      idtyIndex,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is EvaluatedInvalid && other.idtyIndex == idtyIndex;
+
+  @override
+  int get hashCode => idtyIndex.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_distance/types/evaluation_pool.dart b/lib/src/models/generated/duniter/types/pallet_distance/types/evaluation_pool.dart
new file mode 100644
index 0000000000000000000000000000000000000000..117219d55898f2211b76e76a9a79df3166d2281d
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_distance/types/evaluation_pool.dart
@@ -0,0 +1,114 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i5;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i6;
+
+import '../../bounded_collections/bounded_btree_set/bounded_b_tree_set.dart'
+    as _i4;
+import '../../sp_core/crypto/account_id32.dart' as _i7;
+import '../../tuples.dart' as _i2;
+import '../median/median_acc.dart' as _i3;
+
+class EvaluationPool {
+  const EvaluationPool({
+    required this.evaluations,
+    required this.evaluators,
+  });
+
+  factory EvaluationPool.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// BoundedVec<(IdtyIndex, MedianAcc<Perbill, MAX_EVALUATORS_PER_SESSION>),
+  ///ConstU32<MAX_EVALUATIONS_PER_SESSION>,>
+  final List<_i2.Tuple2<int, _i3.MedianAcc>> evaluations;
+
+  /// BoundedBTreeSet<AccountId, ConstU32<MAX_EVALUATORS_PER_SESSION>>
+  final _i4.BoundedBTreeSet evaluators;
+
+  static const $EvaluationPoolCodec codec = $EvaluationPoolCodec();
+
+  _i5.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, List<List<dynamic>>> toJson() => {
+        'evaluations': evaluations
+            .map((value) => [
+                  value.value0,
+                  value.value1.toJson(),
+                ])
+            .toList(),
+        'evaluators': evaluators.map((value) => value.toList()).toList(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is EvaluationPool &&
+          _i6.listsEqual(
+            other.evaluations,
+            evaluations,
+          ) &&
+          other.evaluators == evaluators;
+
+  @override
+  int get hashCode => Object.hash(
+        evaluations,
+        evaluators,
+      );
+}
+
+class $EvaluationPoolCodec with _i1.Codec<EvaluationPool> {
+  const $EvaluationPoolCodec();
+
+  @override
+  void encodeTo(
+    EvaluationPool obj,
+    _i1.Output output,
+  ) {
+    const _i1.SequenceCodec<_i2.Tuple2<int, _i3.MedianAcc>>(
+        _i2.Tuple2Codec<int, _i3.MedianAcc>(
+      _i1.U32Codec.codec,
+      _i3.MedianAcc.codec,
+    )).encodeTo(
+      obj.evaluations,
+      output,
+    );
+    const _i1.SequenceCodec<_i7.AccountId32>(_i7.AccountId32Codec()).encodeTo(
+      obj.evaluators,
+      output,
+    );
+  }
+
+  @override
+  EvaluationPool decode(_i1.Input input) {
+    return EvaluationPool(
+      evaluations: const _i1.SequenceCodec<_i2.Tuple2<int, _i3.MedianAcc>>(
+          _i2.Tuple2Codec<int, _i3.MedianAcc>(
+        _i1.U32Codec.codec,
+        _i3.MedianAcc.codec,
+      )).decode(input),
+      evaluators:
+          const _i1.SequenceCodec<_i7.AccountId32>(_i7.AccountId32Codec())
+              .decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(EvaluationPool obj) {
+    int size = 0;
+    size = size +
+        const _i1.SequenceCodec<_i2.Tuple2<int, _i3.MedianAcc>>(
+            _i2.Tuple2Codec<int, _i3.MedianAcc>(
+          _i1.U32Codec.codec,
+          _i3.MedianAcc.codec,
+        )).sizeHint(obj.evaluations);
+    size = size + const _i4.BoundedBTreeSetCodec().sizeHint(obj.evaluators);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_duniter_account/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_duniter_account/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..29e2f4affd054918820b8c615d88ad47f4072f25
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_duniter_account/pallet/call.dart
@@ -0,0 +1,56 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+enum Call {
+  /// See [`Pallet::unlink_identity`].
+  unlinkIdentity('unlink_identity', 0);
+
+  const Call(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $CallCodec codec = $CallCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Call.unlinkIdentity;
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_duniter_account/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_duniter_account/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5aa8913a9b6ac9fd0ace85732776338415e54e3e
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_duniter_account/pallet/event.dart
@@ -0,0 +1,215 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  AccountLinked accountLinked({
+    required _i3.AccountId32 who,
+    required int identity,
+  }) {
+    return AccountLinked(
+      who: who,
+      identity: identity,
+    );
+  }
+
+  AccountUnlinked accountUnlinked(_i3.AccountId32 value0) {
+    return AccountUnlinked(value0);
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return AccountLinked._decode(input);
+      case 1:
+        return AccountUnlinked._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case AccountLinked:
+        (value as AccountLinked).encodeTo(output);
+        break;
+      case AccountUnlinked:
+        (value as AccountUnlinked).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case AccountLinked:
+        return (value as AccountLinked)._sizeHint();
+      case AccountUnlinked:
+        return (value as AccountUnlinked)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// account linked to identity
+class AccountLinked extends Event {
+  const AccountLinked({
+    required this.who,
+    required this.identity,
+  });
+
+  factory AccountLinked._decode(_i1.Input input) {
+    return AccountLinked(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      identity: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// IdtyIdOf<T>
+  final int identity;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'AccountLinked': {
+          'who': who.toList(),
+          'identity': identity,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U32Codec.codec.sizeHint(identity);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      identity,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AccountLinked &&
+          _i4.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.identity == identity;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        identity,
+      );
+}
+
+/// The account was unlinked from its identity.
+class AccountUnlinked extends Event {
+  const AccountUnlinked(this.value0);
+
+  factory AccountUnlinked._decode(_i1.Input input) {
+    return AccountUnlinked(const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 value0;
+
+  @override
+  Map<String, List<int>> toJson() => {'AccountUnlinked': value0.toList()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AccountUnlinked &&
+          _i4.listsEqual(
+            other.value0,
+            value0,
+          );
+
+  @override
+  int get hashCode => value0.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_duniter_account/types/account_data.dart b/lib/src/models/generated/duniter/types/pallet_duniter_account/types/account_data.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e67dd8ec849a94570f5432adaade5c95b96d91db
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_duniter_account/types/account_data.dart
@@ -0,0 +1,110 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class AccountData {
+  const AccountData({
+    required this.free,
+    required this.reserved,
+    required this.feeFrozen,
+    this.linkedIdty,
+  });
+
+  factory AccountData.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// Balance
+  final BigInt free;
+
+  /// Balance
+  final BigInt reserved;
+
+  /// Balance
+  final BigInt feeFrozen;
+
+  /// Option<IdtyId>
+  final int? linkedIdty;
+
+  static const $AccountDataCodec codec = $AccountDataCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'free': free,
+        'reserved': reserved,
+        'feeFrozen': feeFrozen,
+        'linkedIdty': linkedIdty,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AccountData &&
+          other.free == free &&
+          other.reserved == reserved &&
+          other.feeFrozen == feeFrozen &&
+          other.linkedIdty == linkedIdty;
+
+  @override
+  int get hashCode => Object.hash(
+        free,
+        reserved,
+        feeFrozen,
+        linkedIdty,
+      );
+}
+
+class $AccountDataCodec with _i1.Codec<AccountData> {
+  const $AccountDataCodec();
+
+  @override
+  void encodeTo(
+    AccountData obj,
+    _i1.Output output,
+  ) {
+    _i1.U64Codec.codec.encodeTo(
+      obj.free,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.reserved,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.feeFrozen,
+      output,
+    );
+    const _i1.OptionCodec<int>(_i1.U32Codec.codec).encodeTo(
+      obj.linkedIdty,
+      output,
+    );
+  }
+
+  @override
+  AccountData decode(_i1.Input input) {
+    return AccountData(
+      free: _i1.U64Codec.codec.decode(input),
+      reserved: _i1.U64Codec.codec.decode(input),
+      feeFrozen: _i1.U64Codec.codec.decode(input),
+      linkedIdty: const _i1.OptionCodec<int>(_i1.U32Codec.codec).decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(AccountData obj) {
+    int size = 0;
+    size = size + _i1.U64Codec.codec.sizeHint(obj.free);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.reserved);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.feeFrozen);
+    size = size +
+        const _i1.OptionCodec<int>(_i1.U32Codec.codec).sizeHint(obj.linkedIdty);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_duniter_test_parameters/types/parameters.dart b/lib/src/models/generated/duniter/types/pallet_duniter_test_parameters/types/parameters.dart
new file mode 100644
index 0000000000000000000000000000000000000000..49da835c9ebf850579d7905208e0dd6f58791bba
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_duniter_test_parameters/types/parameters.dart
@@ -0,0 +1,280 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class Parameters {
+  const Parameters({
+    required this.babeEpochDuration,
+    required this.certPeriod,
+    required this.certMaxByIssuer,
+    required this.certMinReceivedCertToIssueCert,
+    required this.certValidityPeriod,
+    required this.idtyConfirmPeriod,
+    required this.idtyCreationPeriod,
+    required this.membershipPeriod,
+    required this.membershipRenewalPeriod,
+    required this.udCreationPeriod,
+    required this.udReevalPeriod,
+    required this.smithCertMaxByIssuer,
+    required this.smithWotMinCertForMembership,
+    required this.smithInactivityMaxDuration,
+    required this.wotFirstCertIssuableOn,
+    required this.wotMinCertForCreateIdtyRight,
+    required this.wotMinCertForMembership,
+  });
+
+  factory Parameters.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// PeriodCount
+  final BigInt babeEpochDuration;
+
+  /// BlockNumber
+  final int certPeriod;
+
+  /// CertCount
+  final int certMaxByIssuer;
+
+  /// CertCount
+  final int certMinReceivedCertToIssueCert;
+
+  /// BlockNumber
+  final int certValidityPeriod;
+
+  /// BlockNumber
+  final int idtyConfirmPeriod;
+
+  /// BlockNumber
+  final int idtyCreationPeriod;
+
+  /// BlockNumber
+  final int membershipPeriod;
+
+  /// BlockNumber
+  final int membershipRenewalPeriod;
+
+  /// PeriodCount
+  final BigInt udCreationPeriod;
+
+  /// PeriodCount
+  final BigInt udReevalPeriod;
+
+  /// CertCount
+  final int smithCertMaxByIssuer;
+
+  /// CertCount
+  final int smithWotMinCertForMembership;
+
+  /// SessionCount
+  final int smithInactivityMaxDuration;
+
+  /// BlockNumber
+  final int wotFirstCertIssuableOn;
+
+  /// CertCount
+  final int wotMinCertForCreateIdtyRight;
+
+  /// CertCount
+  final int wotMinCertForMembership;
+
+  static const $ParametersCodec codec = $ParametersCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'babeEpochDuration': babeEpochDuration,
+        'certPeriod': certPeriod,
+        'certMaxByIssuer': certMaxByIssuer,
+        'certMinReceivedCertToIssueCert': certMinReceivedCertToIssueCert,
+        'certValidityPeriod': certValidityPeriod,
+        'idtyConfirmPeriod': idtyConfirmPeriod,
+        'idtyCreationPeriod': idtyCreationPeriod,
+        'membershipPeriod': membershipPeriod,
+        'membershipRenewalPeriod': membershipRenewalPeriod,
+        'udCreationPeriod': udCreationPeriod,
+        'udReevalPeriod': udReevalPeriod,
+        'smithCertMaxByIssuer': smithCertMaxByIssuer,
+        'smithWotMinCertForMembership': smithWotMinCertForMembership,
+        'smithInactivityMaxDuration': smithInactivityMaxDuration,
+        'wotFirstCertIssuableOn': wotFirstCertIssuableOn,
+        'wotMinCertForCreateIdtyRight': wotMinCertForCreateIdtyRight,
+        'wotMinCertForMembership': wotMinCertForMembership,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Parameters &&
+          other.babeEpochDuration == babeEpochDuration &&
+          other.certPeriod == certPeriod &&
+          other.certMaxByIssuer == certMaxByIssuer &&
+          other.certMinReceivedCertToIssueCert ==
+              certMinReceivedCertToIssueCert &&
+          other.certValidityPeriod == certValidityPeriod &&
+          other.idtyConfirmPeriod == idtyConfirmPeriod &&
+          other.idtyCreationPeriod == idtyCreationPeriod &&
+          other.membershipPeriod == membershipPeriod &&
+          other.membershipRenewalPeriod == membershipRenewalPeriod &&
+          other.udCreationPeriod == udCreationPeriod &&
+          other.udReevalPeriod == udReevalPeriod &&
+          other.smithCertMaxByIssuer == smithCertMaxByIssuer &&
+          other.smithWotMinCertForMembership == smithWotMinCertForMembership &&
+          other.smithInactivityMaxDuration == smithInactivityMaxDuration &&
+          other.wotFirstCertIssuableOn == wotFirstCertIssuableOn &&
+          other.wotMinCertForCreateIdtyRight == wotMinCertForCreateIdtyRight &&
+          other.wotMinCertForMembership == wotMinCertForMembership;
+
+  @override
+  int get hashCode => Object.hash(
+        babeEpochDuration,
+        certPeriod,
+        certMaxByIssuer,
+        certMinReceivedCertToIssueCert,
+        certValidityPeriod,
+        idtyConfirmPeriod,
+        idtyCreationPeriod,
+        membershipPeriod,
+        membershipRenewalPeriod,
+        udCreationPeriod,
+        udReevalPeriod,
+        smithCertMaxByIssuer,
+        smithWotMinCertForMembership,
+        smithInactivityMaxDuration,
+        wotFirstCertIssuableOn,
+        wotMinCertForCreateIdtyRight,
+        wotMinCertForMembership,
+      );
+}
+
+class $ParametersCodec with _i1.Codec<Parameters> {
+  const $ParametersCodec();
+
+  @override
+  void encodeTo(
+    Parameters obj,
+    _i1.Output output,
+  ) {
+    _i1.U64Codec.codec.encodeTo(
+      obj.babeEpochDuration,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.certPeriod,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.certMaxByIssuer,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.certMinReceivedCertToIssueCert,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.certValidityPeriod,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.idtyConfirmPeriod,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.idtyCreationPeriod,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.membershipPeriod,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.membershipRenewalPeriod,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.udCreationPeriod,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.udReevalPeriod,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.smithCertMaxByIssuer,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.smithWotMinCertForMembership,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.smithInactivityMaxDuration,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.wotFirstCertIssuableOn,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.wotMinCertForCreateIdtyRight,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.wotMinCertForMembership,
+      output,
+    );
+  }
+
+  @override
+  Parameters decode(_i1.Input input) {
+    return Parameters(
+      babeEpochDuration: _i1.U64Codec.codec.decode(input),
+      certPeriod: _i1.U32Codec.codec.decode(input),
+      certMaxByIssuer: _i1.U32Codec.codec.decode(input),
+      certMinReceivedCertToIssueCert: _i1.U32Codec.codec.decode(input),
+      certValidityPeriod: _i1.U32Codec.codec.decode(input),
+      idtyConfirmPeriod: _i1.U32Codec.codec.decode(input),
+      idtyCreationPeriod: _i1.U32Codec.codec.decode(input),
+      membershipPeriod: _i1.U32Codec.codec.decode(input),
+      membershipRenewalPeriod: _i1.U32Codec.codec.decode(input),
+      udCreationPeriod: _i1.U64Codec.codec.decode(input),
+      udReevalPeriod: _i1.U64Codec.codec.decode(input),
+      smithCertMaxByIssuer: _i1.U32Codec.codec.decode(input),
+      smithWotMinCertForMembership: _i1.U32Codec.codec.decode(input),
+      smithInactivityMaxDuration: _i1.U32Codec.codec.decode(input),
+      wotFirstCertIssuableOn: _i1.U32Codec.codec.decode(input),
+      wotMinCertForCreateIdtyRight: _i1.U32Codec.codec.decode(input),
+      wotMinCertForMembership: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Parameters obj) {
+    int size = 0;
+    size = size + _i1.U64Codec.codec.sizeHint(obj.babeEpochDuration);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.certPeriod);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.certMaxByIssuer);
+    size =
+        size + _i1.U32Codec.codec.sizeHint(obj.certMinReceivedCertToIssueCert);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.certValidityPeriod);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.idtyConfirmPeriod);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.idtyCreationPeriod);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.membershipPeriod);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.membershipRenewalPeriod);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.udCreationPeriod);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.udReevalPeriod);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.smithCertMaxByIssuer);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.smithWotMinCertForMembership);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.smithInactivityMaxDuration);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.wotFirstCertIssuableOn);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.wotMinCertForCreateIdtyRight);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.wotMinCertForMembership);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_duniter_wot/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_duniter_wot/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..bb8760af973fca24e74eb514fc93b4b2d543e551
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_duniter_wot/pallet/error.dart
@@ -0,0 +1,91 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Insufficient certifications received.
+  notEnoughCerts('NotEnoughCerts', 0),
+
+  /// Target status is incompatible with this operation.
+  targetStatusInvalid('TargetStatusInvalid', 1),
+
+  /// Identity creation period not respected.
+  idtyCreationPeriodNotRespected('IdtyCreationPeriodNotRespected', 2),
+
+  /// Insufficient received certifications to create identity.
+  notEnoughReceivedCertsToCreateIdty('NotEnoughReceivedCertsToCreateIdty', 3),
+
+  /// Maximum number of emitted certifications reached.
+  maxEmittedCertsReached('MaxEmittedCertsReached', 4),
+
+  /// Issuer cannot emit a certification because it is not member.
+  issuerNotMember('IssuerNotMember', 5),
+
+  /// Issuer or receiver not found.
+  idtyNotFound('IdtyNotFound', 6),
+
+  /// Membership can only be renewed after an antispam delay.
+  membershipRenewalPeriodNotRespected('MembershipRenewalPeriodNotRespected', 7);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.notEnoughCerts;
+      case 1:
+        return Error.targetStatusInvalid;
+      case 2:
+        return Error.idtyCreationPeriodNotRespected;
+      case 3:
+        return Error.notEnoughReceivedCertsToCreateIdty;
+      case 4:
+        return Error.maxEmittedCertsReached;
+      case 5:
+        return Error.issuerNotMember;
+      case 6:
+        return Error.idtyNotFound;
+      case 7:
+        return Error.membershipRenewalPeriodNotRespected;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_grandpa/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_grandpa/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..24a4af85fae6706953d02d757edb38ccc39e376c
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_grandpa/pallet/call.dart
@@ -0,0 +1,322 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_consensus_grandpa/equivocation_proof.dart' as _i3;
+import '../../sp_session/membership_proof.dart' as _i4;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  ReportEquivocation reportEquivocation({
+    required _i3.EquivocationProof equivocationProof,
+    required _i4.MembershipProof keyOwnerProof,
+  }) {
+    return ReportEquivocation(
+      equivocationProof: equivocationProof,
+      keyOwnerProof: keyOwnerProof,
+    );
+  }
+
+  ReportEquivocationUnsigned reportEquivocationUnsigned({
+    required _i3.EquivocationProof equivocationProof,
+    required _i4.MembershipProof keyOwnerProof,
+  }) {
+    return ReportEquivocationUnsigned(
+      equivocationProof: equivocationProof,
+      keyOwnerProof: keyOwnerProof,
+    );
+  }
+
+  NoteStalled noteStalled({
+    required int delay,
+    required int bestFinalizedBlockNumber,
+  }) {
+    return NoteStalled(
+      delay: delay,
+      bestFinalizedBlockNumber: bestFinalizedBlockNumber,
+    );
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return ReportEquivocation._decode(input);
+      case 1:
+        return ReportEquivocationUnsigned._decode(input);
+      case 2:
+        return NoteStalled._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case ReportEquivocation:
+        (value as ReportEquivocation).encodeTo(output);
+        break;
+      case ReportEquivocationUnsigned:
+        (value as ReportEquivocationUnsigned).encodeTo(output);
+        break;
+      case NoteStalled:
+        (value as NoteStalled).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case ReportEquivocation:
+        return (value as ReportEquivocation)._sizeHint();
+      case ReportEquivocationUnsigned:
+        return (value as ReportEquivocationUnsigned)._sizeHint();
+      case NoteStalled:
+        return (value as NoteStalled)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::report_equivocation`].
+class ReportEquivocation extends Call {
+  const ReportEquivocation({
+    required this.equivocationProof,
+    required this.keyOwnerProof,
+  });
+
+  factory ReportEquivocation._decode(_i1.Input input) {
+    return ReportEquivocation(
+      equivocationProof: _i3.EquivocationProof.codec.decode(input),
+      keyOwnerProof: _i4.MembershipProof.codec.decode(input),
+    );
+  }
+
+  /// Box<EquivocationProof<T::Hash, BlockNumberFor<T>>>
+  final _i3.EquivocationProof equivocationProof;
+
+  /// T::KeyOwnerProof
+  final _i4.MembershipProof keyOwnerProof;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'report_equivocation': {
+          'equivocationProof': equivocationProof.toJson(),
+          'keyOwnerProof': keyOwnerProof.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.EquivocationProof.codec.sizeHint(equivocationProof);
+    size = size + _i4.MembershipProof.codec.sizeHint(keyOwnerProof);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.EquivocationProof.codec.encodeTo(
+      equivocationProof,
+      output,
+    );
+    _i4.MembershipProof.codec.encodeTo(
+      keyOwnerProof,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ReportEquivocation &&
+          other.equivocationProof == equivocationProof &&
+          other.keyOwnerProof == keyOwnerProof;
+
+  @override
+  int get hashCode => Object.hash(
+        equivocationProof,
+        keyOwnerProof,
+      );
+}
+
+/// See [`Pallet::report_equivocation_unsigned`].
+class ReportEquivocationUnsigned extends Call {
+  const ReportEquivocationUnsigned({
+    required this.equivocationProof,
+    required this.keyOwnerProof,
+  });
+
+  factory ReportEquivocationUnsigned._decode(_i1.Input input) {
+    return ReportEquivocationUnsigned(
+      equivocationProof: _i3.EquivocationProof.codec.decode(input),
+      keyOwnerProof: _i4.MembershipProof.codec.decode(input),
+    );
+  }
+
+  /// Box<EquivocationProof<T::Hash, BlockNumberFor<T>>>
+  final _i3.EquivocationProof equivocationProof;
+
+  /// T::KeyOwnerProof
+  final _i4.MembershipProof keyOwnerProof;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'report_equivocation_unsigned': {
+          'equivocationProof': equivocationProof.toJson(),
+          'keyOwnerProof': keyOwnerProof.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.EquivocationProof.codec.sizeHint(equivocationProof);
+    size = size + _i4.MembershipProof.codec.sizeHint(keyOwnerProof);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i3.EquivocationProof.codec.encodeTo(
+      equivocationProof,
+      output,
+    );
+    _i4.MembershipProof.codec.encodeTo(
+      keyOwnerProof,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ReportEquivocationUnsigned &&
+          other.equivocationProof == equivocationProof &&
+          other.keyOwnerProof == keyOwnerProof;
+
+  @override
+  int get hashCode => Object.hash(
+        equivocationProof,
+        keyOwnerProof,
+      );
+}
+
+/// See [`Pallet::note_stalled`].
+class NoteStalled extends Call {
+  const NoteStalled({
+    required this.delay,
+    required this.bestFinalizedBlockNumber,
+  });
+
+  factory NoteStalled._decode(_i1.Input input) {
+    return NoteStalled(
+      delay: _i1.U32Codec.codec.decode(input),
+      bestFinalizedBlockNumber: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// BlockNumberFor<T>
+  final int delay;
+
+  /// BlockNumberFor<T>
+  final int bestFinalizedBlockNumber;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'note_stalled': {
+          'delay': delay,
+          'bestFinalizedBlockNumber': bestFinalizedBlockNumber,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(delay);
+    size = size + _i1.U32Codec.codec.sizeHint(bestFinalizedBlockNumber);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      delay,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      bestFinalizedBlockNumber,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is NoteStalled &&
+          other.delay == delay &&
+          other.bestFinalizedBlockNumber == bestFinalizedBlockNumber;
+
+  @override
+  int get hashCode => Object.hash(
+        delay,
+        bestFinalizedBlockNumber,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_grandpa/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_grandpa/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8ace26aca83e42e7b49ec79dcd7e273edae11129
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_grandpa/pallet/error.dart
@@ -0,0 +1,88 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Attempt to signal GRANDPA pause when the authority set isn't live
+  /// (either paused or already pending pause).
+  pauseFailed('PauseFailed', 0),
+
+  /// Attempt to signal GRANDPA resume when the authority set isn't paused
+  /// (either live or already pending resume).
+  resumeFailed('ResumeFailed', 1),
+
+  /// Attempt to signal GRANDPA change with one already pending.
+  changePending('ChangePending', 2),
+
+  /// Cannot signal forced change so soon after last.
+  tooSoon('TooSoon', 3),
+
+  /// A key ownership proof provided as part of an equivocation report is invalid.
+  invalidKeyOwnershipProof('InvalidKeyOwnershipProof', 4),
+
+  /// An equivocation proof provided as part of an equivocation report is invalid.
+  invalidEquivocationProof('InvalidEquivocationProof', 5),
+
+  /// A given equivocation report is valid but already previously reported.
+  duplicateOffenceReport('DuplicateOffenceReport', 6);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.pauseFailed;
+      case 1:
+        return Error.resumeFailed;
+      case 2:
+        return Error.changePending;
+      case 3:
+        return Error.tooSoon;
+      case 4:
+        return Error.invalidKeyOwnershipProof;
+      case 5:
+        return Error.invalidEquivocationProof;
+      case 6:
+        return Error.duplicateOffenceReport;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_grandpa/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_grandpa/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..fcc3f245f4bc11c0c92a35650381b685e3a00f31
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_grandpa/pallet/event.dart
@@ -0,0 +1,217 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../../sp_consensus_grandpa/app/public.dart' as _i4;
+import '../../tuples.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  NewAuthorities newAuthorities(
+      {required List<_i3.Tuple2<_i4.Public, BigInt>> authoritySet}) {
+    return NewAuthorities(authoritySet: authoritySet);
+  }
+
+  Paused paused() {
+    return const Paused();
+  }
+
+  Resumed resumed() {
+    return const Resumed();
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return NewAuthorities._decode(input);
+      case 1:
+        return const Paused();
+      case 2:
+        return const Resumed();
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case NewAuthorities:
+        (value as NewAuthorities).encodeTo(output);
+        break;
+      case Paused:
+        (value as Paused).encodeTo(output);
+        break;
+      case Resumed:
+        (value as Resumed).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case NewAuthorities:
+        return (value as NewAuthorities)._sizeHint();
+      case Paused:
+        return 1;
+      case Resumed:
+        return 1;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// New authority set has been applied.
+class NewAuthorities extends Event {
+  const NewAuthorities({required this.authoritySet});
+
+  factory NewAuthorities._decode(_i1.Input input) {
+    return NewAuthorities(
+        authoritySet: const _i1.SequenceCodec<_i3.Tuple2<_i4.Public, BigInt>>(
+            _i3.Tuple2Codec<_i4.Public, BigInt>(
+      _i4.PublicCodec(),
+      _i1.U64Codec.codec,
+    )).decode(input));
+  }
+
+  /// AuthorityList
+  final List<_i3.Tuple2<_i4.Public, BigInt>> authoritySet;
+
+  @override
+  Map<String, Map<String, List<List<dynamic>>>> toJson() => {
+        'NewAuthorities': {
+          'authoritySet': authoritySet
+              .map((value) => [
+                    value.value0.toList(),
+                    value.value1,
+                  ])
+              .toList()
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.SequenceCodec<_i3.Tuple2<_i4.Public, BigInt>>(
+            _i3.Tuple2Codec<_i4.Public, BigInt>(
+          _i4.PublicCodec(),
+          _i1.U64Codec.codec,
+        )).sizeHint(authoritySet);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.SequenceCodec<_i3.Tuple2<_i4.Public, BigInt>>(
+        _i3.Tuple2Codec<_i4.Public, BigInt>(
+      _i4.PublicCodec(),
+      _i1.U64Codec.codec,
+    )).encodeTo(
+      authoritySet,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is NewAuthorities &&
+          _i5.listsEqual(
+            other.authoritySet,
+            authoritySet,
+          );
+
+  @override
+  int get hashCode => authoritySet.hashCode;
+}
+
+/// Current authority set has been paused.
+class Paused extends Event {
+  const Paused();
+
+  @override
+  Map<String, dynamic> toJson() => {'Paused': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is Paused;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+/// Current authority set has been resumed.
+class Resumed extends Event {
+  const Resumed();
+
+  @override
+  Map<String, dynamic> toJson() => {'Resumed': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is Resumed;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_grandpa/stored_pending_change.dart b/lib/src/models/generated/duniter/types/pallet_grandpa/stored_pending_change.dart
new file mode 100644
index 0000000000000000000000000000000000000000..fd8b3beefc53bb401f74784f1e1c1f02080dd459
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_grandpa/stored_pending_change.dart
@@ -0,0 +1,135 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../sp_consensus_grandpa/app/public.dart' as _i3;
+import '../tuples.dart' as _i2;
+
+class StoredPendingChange {
+  const StoredPendingChange({
+    required this.scheduledAt,
+    required this.delay,
+    required this.nextAuthorities,
+    this.forced,
+  });
+
+  factory StoredPendingChange.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// N
+  final int scheduledAt;
+
+  /// N
+  final int delay;
+
+  /// BoundedAuthorityList<Limit>
+  final List<_i2.Tuple2<_i3.Public, BigInt>> nextAuthorities;
+
+  /// Option<N>
+  final int? forced;
+
+  static const $StoredPendingChangeCodec codec = $StoredPendingChangeCodec();
+
+  _i4.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'scheduledAt': scheduledAt,
+        'delay': delay,
+        'nextAuthorities': nextAuthorities
+            .map((value) => [
+                  value.value0.toList(),
+                  value.value1,
+                ])
+            .toList(),
+        'forced': forced,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is StoredPendingChange &&
+          other.scheduledAt == scheduledAt &&
+          other.delay == delay &&
+          _i5.listsEqual(
+            other.nextAuthorities,
+            nextAuthorities,
+          ) &&
+          other.forced == forced;
+
+  @override
+  int get hashCode => Object.hash(
+        scheduledAt,
+        delay,
+        nextAuthorities,
+        forced,
+      );
+}
+
+class $StoredPendingChangeCodec with _i1.Codec<StoredPendingChange> {
+  const $StoredPendingChangeCodec();
+
+  @override
+  void encodeTo(
+    StoredPendingChange obj,
+    _i1.Output output,
+  ) {
+    _i1.U32Codec.codec.encodeTo(
+      obj.scheduledAt,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.delay,
+      output,
+    );
+    const _i1.SequenceCodec<_i2.Tuple2<_i3.Public, BigInt>>(
+        _i2.Tuple2Codec<_i3.Public, BigInt>(
+      _i3.PublicCodec(),
+      _i1.U64Codec.codec,
+    )).encodeTo(
+      obj.nextAuthorities,
+      output,
+    );
+    const _i1.OptionCodec<int>(_i1.U32Codec.codec).encodeTo(
+      obj.forced,
+      output,
+    );
+  }
+
+  @override
+  StoredPendingChange decode(_i1.Input input) {
+    return StoredPendingChange(
+      scheduledAt: _i1.U32Codec.codec.decode(input),
+      delay: _i1.U32Codec.codec.decode(input),
+      nextAuthorities: const _i1.SequenceCodec<_i2.Tuple2<_i3.Public, BigInt>>(
+          _i2.Tuple2Codec<_i3.Public, BigInt>(
+        _i3.PublicCodec(),
+        _i1.U64Codec.codec,
+      )).decode(input),
+      forced: const _i1.OptionCodec<int>(_i1.U32Codec.codec).decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(StoredPendingChange obj) {
+    int size = 0;
+    size = size + _i1.U32Codec.codec.sizeHint(obj.scheduledAt);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.delay);
+    size = size +
+        const _i1.SequenceCodec<_i2.Tuple2<_i3.Public, BigInt>>(
+            _i2.Tuple2Codec<_i3.Public, BigInt>(
+          _i3.PublicCodec(),
+          _i1.U64Codec.codec,
+        )).sizeHint(obj.nextAuthorities);
+    size = size +
+        const _i1.OptionCodec<int>(_i1.U32Codec.codec).sizeHint(obj.forced);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_grandpa/stored_state.dart b/lib/src/models/generated/duniter/types/pallet_grandpa/stored_state.dart
new file mode 100644
index 0000000000000000000000000000000000000000..45653c230b77dd1fad55d2903f266a316dfa3d4b
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_grandpa/stored_state.dart
@@ -0,0 +1,294 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+abstract class StoredState {
+  const StoredState();
+
+  factory StoredState.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $StoredStateCodec codec = $StoredStateCodec();
+
+  static const $StoredState values = $StoredState();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $StoredState {
+  const $StoredState();
+
+  Live live() {
+    return const Live();
+  }
+
+  PendingPause pendingPause({
+    required int scheduledAt,
+    required int delay,
+  }) {
+    return PendingPause(
+      scheduledAt: scheduledAt,
+      delay: delay,
+    );
+  }
+
+  Paused paused() {
+    return const Paused();
+  }
+
+  PendingResume pendingResume({
+    required int scheduledAt,
+    required int delay,
+  }) {
+    return PendingResume(
+      scheduledAt: scheduledAt,
+      delay: delay,
+    );
+  }
+}
+
+class $StoredStateCodec with _i1.Codec<StoredState> {
+  const $StoredStateCodec();
+
+  @override
+  StoredState decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return const Live();
+      case 1:
+        return PendingPause._decode(input);
+      case 2:
+        return const Paused();
+      case 3:
+        return PendingResume._decode(input);
+      default:
+        throw Exception('StoredState: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    StoredState value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Live:
+        (value as Live).encodeTo(output);
+        break;
+      case PendingPause:
+        (value as PendingPause).encodeTo(output);
+        break;
+      case Paused:
+        (value as Paused).encodeTo(output);
+        break;
+      case PendingResume:
+        (value as PendingResume).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'StoredState: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(StoredState value) {
+    switch (value.runtimeType) {
+      case Live:
+        return 1;
+      case PendingPause:
+        return (value as PendingPause)._sizeHint();
+      case Paused:
+        return 1;
+      case PendingResume:
+        return (value as PendingResume)._sizeHint();
+      default:
+        throw Exception(
+            'StoredState: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class Live extends StoredState {
+  const Live();
+
+  @override
+  Map<String, dynamic> toJson() => {'Live': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is Live;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+class PendingPause extends StoredState {
+  const PendingPause({
+    required this.scheduledAt,
+    required this.delay,
+  });
+
+  factory PendingPause._decode(_i1.Input input) {
+    return PendingPause(
+      scheduledAt: _i1.U32Codec.codec.decode(input),
+      delay: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// N
+  final int scheduledAt;
+
+  /// N
+  final int delay;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'PendingPause': {
+          'scheduledAt': scheduledAt,
+          'delay': delay,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(scheduledAt);
+    size = size + _i1.U32Codec.codec.sizeHint(delay);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      scheduledAt,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      delay,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is PendingPause &&
+          other.scheduledAt == scheduledAt &&
+          other.delay == delay;
+
+  @override
+  int get hashCode => Object.hash(
+        scheduledAt,
+        delay,
+      );
+}
+
+class Paused extends StoredState {
+  const Paused();
+
+  @override
+  Map<String, dynamic> toJson() => {'Paused': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is Paused;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+class PendingResume extends StoredState {
+  const PendingResume({
+    required this.scheduledAt,
+    required this.delay,
+  });
+
+  factory PendingResume._decode(_i1.Input input) {
+    return PendingResume(
+      scheduledAt: _i1.U32Codec.codec.decode(input),
+      delay: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// N
+  final int scheduledAt;
+
+  /// N
+  final int delay;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'PendingResume': {
+          'scheduledAt': scheduledAt,
+          'delay': delay,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(scheduledAt);
+    size = size + _i1.U32Codec.codec.sizeHint(delay);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      scheduledAt,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      delay,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is PendingResume &&
+          other.scheduledAt == scheduledAt &&
+          other.delay == delay;
+
+  @override
+  int get hashCode => Object.hash(
+        scheduledAt,
+        delay,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_identity/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_identity/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a9ebd45d2ec68c18bbdcdbd9bd7968aa756eaa46
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_identity/pallet/call.dart
@@ -0,0 +1,622 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i6;
+
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+import '../../sp_runtime/multi_signature.dart' as _i5;
+import '../types/idty_name.dart' as _i4;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  CreateIdentity createIdentity({required _i3.AccountId32 ownerKey}) {
+    return CreateIdentity(ownerKey: ownerKey);
+  }
+
+  ConfirmIdentity confirmIdentity({required _i4.IdtyName idtyName}) {
+    return ConfirmIdentity(idtyName: idtyName);
+  }
+
+  ChangeOwnerKey changeOwnerKey({
+    required _i3.AccountId32 newKey,
+    required _i5.MultiSignature newKeySig,
+  }) {
+    return ChangeOwnerKey(
+      newKey: newKey,
+      newKeySig: newKeySig,
+    );
+  }
+
+  RevokeIdentity revokeIdentity({
+    required int idtyIndex,
+    required _i3.AccountId32 revocationKey,
+    required _i5.MultiSignature revocationSig,
+  }) {
+    return RevokeIdentity(
+      idtyIndex: idtyIndex,
+      revocationKey: revocationKey,
+      revocationSig: revocationSig,
+    );
+  }
+
+  PruneItemIdentitiesNames pruneItemIdentitiesNames(
+      {required List<_i4.IdtyName> names}) {
+    return PruneItemIdentitiesNames(names: names);
+  }
+
+  FixSufficients fixSufficients({
+    required _i3.AccountId32 ownerKey,
+    required bool inc,
+  }) {
+    return FixSufficients(
+      ownerKey: ownerKey,
+      inc: inc,
+    );
+  }
+
+  LinkAccount linkAccount({
+    required _i3.AccountId32 accountId,
+    required _i5.MultiSignature payloadSig,
+  }) {
+    return LinkAccount(
+      accountId: accountId,
+      payloadSig: payloadSig,
+    );
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return CreateIdentity._decode(input);
+      case 1:
+        return ConfirmIdentity._decode(input);
+      case 3:
+        return ChangeOwnerKey._decode(input);
+      case 4:
+        return RevokeIdentity._decode(input);
+      case 6:
+        return PruneItemIdentitiesNames._decode(input);
+      case 7:
+        return FixSufficients._decode(input);
+      case 8:
+        return LinkAccount._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case CreateIdentity:
+        (value as CreateIdentity).encodeTo(output);
+        break;
+      case ConfirmIdentity:
+        (value as ConfirmIdentity).encodeTo(output);
+        break;
+      case ChangeOwnerKey:
+        (value as ChangeOwnerKey).encodeTo(output);
+        break;
+      case RevokeIdentity:
+        (value as RevokeIdentity).encodeTo(output);
+        break;
+      case PruneItemIdentitiesNames:
+        (value as PruneItemIdentitiesNames).encodeTo(output);
+        break;
+      case FixSufficients:
+        (value as FixSufficients).encodeTo(output);
+        break;
+      case LinkAccount:
+        (value as LinkAccount).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case CreateIdentity:
+        return (value as CreateIdentity)._sizeHint();
+      case ConfirmIdentity:
+        return (value as ConfirmIdentity)._sizeHint();
+      case ChangeOwnerKey:
+        return (value as ChangeOwnerKey)._sizeHint();
+      case RevokeIdentity:
+        return (value as RevokeIdentity)._sizeHint();
+      case PruneItemIdentitiesNames:
+        return (value as PruneItemIdentitiesNames)._sizeHint();
+      case FixSufficients:
+        return (value as FixSufficients)._sizeHint();
+      case LinkAccount:
+        return (value as LinkAccount)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::create_identity`].
+class CreateIdentity extends Call {
+  const CreateIdentity({required this.ownerKey});
+
+  factory CreateIdentity._decode(_i1.Input input) {
+    return CreateIdentity(ownerKey: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 ownerKey;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'create_identity': {'ownerKey': ownerKey.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(ownerKey);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      ownerKey,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is CreateIdentity &&
+          _i6.listsEqual(
+            other.ownerKey,
+            ownerKey,
+          );
+
+  @override
+  int get hashCode => ownerKey.hashCode;
+}
+
+/// See [`Pallet::confirm_identity`].
+class ConfirmIdentity extends Call {
+  const ConfirmIdentity({required this.idtyName});
+
+  factory ConfirmIdentity._decode(_i1.Input input) {
+    return ConfirmIdentity(idtyName: _i1.U8SequenceCodec.codec.decode(input));
+  }
+
+  /// IdtyName
+  final _i4.IdtyName idtyName;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'confirm_identity': {'idtyName': idtyName}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i4.IdtyNameCodec().sizeHint(idtyName);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      idtyName,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ConfirmIdentity &&
+          _i6.listsEqual(
+            other.idtyName,
+            idtyName,
+          );
+
+  @override
+  int get hashCode => idtyName.hashCode;
+}
+
+/// See [`Pallet::change_owner_key`].
+class ChangeOwnerKey extends Call {
+  const ChangeOwnerKey({
+    required this.newKey,
+    required this.newKeySig,
+  });
+
+  factory ChangeOwnerKey._decode(_i1.Input input) {
+    return ChangeOwnerKey(
+      newKey: const _i1.U8ArrayCodec(32).decode(input),
+      newKeySig: _i5.MultiSignature.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 newKey;
+
+  /// T::Signature
+  final _i5.MultiSignature newKeySig;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'change_owner_key': {
+          'newKey': newKey.toList(),
+          'newKeySig': newKeySig.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(newKey);
+    size = size + _i5.MultiSignature.codec.sizeHint(newKeySig);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      newKey,
+      output,
+    );
+    _i5.MultiSignature.codec.encodeTo(
+      newKeySig,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ChangeOwnerKey &&
+          _i6.listsEqual(
+            other.newKey,
+            newKey,
+          ) &&
+          other.newKeySig == newKeySig;
+
+  @override
+  int get hashCode => Object.hash(
+        newKey,
+        newKeySig,
+      );
+}
+
+/// See [`Pallet::revoke_identity`].
+class RevokeIdentity extends Call {
+  const RevokeIdentity({
+    required this.idtyIndex,
+    required this.revocationKey,
+    required this.revocationSig,
+  });
+
+  factory RevokeIdentity._decode(_i1.Input input) {
+    return RevokeIdentity(
+      idtyIndex: _i1.U32Codec.codec.decode(input),
+      revocationKey: const _i1.U8ArrayCodec(32).decode(input),
+      revocationSig: _i5.MultiSignature.codec.decode(input),
+    );
+  }
+
+  /// T::IdtyIndex
+  final int idtyIndex;
+
+  /// T::AccountId
+  final _i3.AccountId32 revocationKey;
+
+  /// T::Signature
+  final _i5.MultiSignature revocationSig;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'revoke_identity': {
+          'idtyIndex': idtyIndex,
+          'revocationKey': revocationKey.toList(),
+          'revocationSig': revocationSig.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(idtyIndex);
+    size = size + const _i3.AccountId32Codec().sizeHint(revocationKey);
+    size = size + _i5.MultiSignature.codec.sizeHint(revocationSig);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      idtyIndex,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      revocationKey,
+      output,
+    );
+    _i5.MultiSignature.codec.encodeTo(
+      revocationSig,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RevokeIdentity &&
+          other.idtyIndex == idtyIndex &&
+          _i6.listsEqual(
+            other.revocationKey,
+            revocationKey,
+          ) &&
+          other.revocationSig == revocationSig;
+
+  @override
+  int get hashCode => Object.hash(
+        idtyIndex,
+        revocationKey,
+        revocationSig,
+      );
+}
+
+/// See [`Pallet::prune_item_identities_names`].
+class PruneItemIdentitiesNames extends Call {
+  const PruneItemIdentitiesNames({required this.names});
+
+  factory PruneItemIdentitiesNames._decode(_i1.Input input) {
+    return PruneItemIdentitiesNames(
+        names: const _i1.SequenceCodec<_i4.IdtyName>(_i4.IdtyNameCodec())
+            .decode(input));
+  }
+
+  /// Vec<IdtyName>
+  final List<_i4.IdtyName> names;
+
+  @override
+  Map<String, Map<String, List<List<int>>>> toJson() => {
+        'prune_item_identities_names': {
+          'names': names.map((value) => value).toList()
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.SequenceCodec<_i4.IdtyName>(_i4.IdtyNameCodec())
+            .sizeHint(names);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      6,
+      output,
+    );
+    const _i1.SequenceCodec<_i4.IdtyName>(_i4.IdtyNameCodec()).encodeTo(
+      names,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is PruneItemIdentitiesNames &&
+          _i6.listsEqual(
+            other.names,
+            names,
+          );
+
+  @override
+  int get hashCode => names.hashCode;
+}
+
+/// See [`Pallet::fix_sufficients`].
+class FixSufficients extends Call {
+  const FixSufficients({
+    required this.ownerKey,
+    required this.inc,
+  });
+
+  factory FixSufficients._decode(_i1.Input input) {
+    return FixSufficients(
+      ownerKey: const _i1.U8ArrayCodec(32).decode(input),
+      inc: _i1.BoolCodec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 ownerKey;
+
+  /// bool
+  final bool inc;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'fix_sufficients': {
+          'ownerKey': ownerKey.toList(),
+          'inc': inc,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(ownerKey);
+    size = size + _i1.BoolCodec.codec.sizeHint(inc);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      7,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      ownerKey,
+      output,
+    );
+    _i1.BoolCodec.codec.encodeTo(
+      inc,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is FixSufficients &&
+          _i6.listsEqual(
+            other.ownerKey,
+            ownerKey,
+          ) &&
+          other.inc == inc;
+
+  @override
+  int get hashCode => Object.hash(
+        ownerKey,
+        inc,
+      );
+}
+
+/// See [`Pallet::link_account`].
+class LinkAccount extends Call {
+  const LinkAccount({
+    required this.accountId,
+    required this.payloadSig,
+  });
+
+  factory LinkAccount._decode(_i1.Input input) {
+    return LinkAccount(
+      accountId: const _i1.U8ArrayCodec(32).decode(input),
+      payloadSig: _i5.MultiSignature.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 accountId;
+
+  /// T::Signature
+  final _i5.MultiSignature payloadSig;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'link_account': {
+          'accountId': accountId.toList(),
+          'payloadSig': payloadSig.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(accountId);
+    size = size + _i5.MultiSignature.codec.sizeHint(payloadSig);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      8,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      accountId,
+      output,
+    );
+    _i5.MultiSignature.codec.encodeTo(
+      payloadSig,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is LinkAccount &&
+          _i6.listsEqual(
+            other.accountId,
+            accountId,
+          ) &&
+          other.payloadSig == payloadSig;
+
+  @override
+  int get hashCode => Object.hash(
+        accountId,
+        payloadSig,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_identity/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_identity/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..0e1c97656cff1817808a9515c1666fd73ae4faa9
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_identity/pallet/error.dart
@@ -0,0 +1,136 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Identity already confirmed.
+  idtyAlreadyConfirmed('IdtyAlreadyConfirmed', 0),
+
+  /// Identity already created.
+  idtyAlreadyCreated('IdtyAlreadyCreated', 1),
+
+  /// Identity index not found.
+  idtyIndexNotFound('IdtyIndexNotFound', 2),
+
+  /// Identity name already exists.
+  idtyNameAlreadyExist('IdtyNameAlreadyExist', 3),
+
+  /// Invalid identity name.
+  idtyNameInvalid('IdtyNameInvalid', 4),
+
+  /// Identity not found.
+  idtyNotFound('IdtyNotFound', 5),
+
+  /// Invalid payload signature.
+  invalidSignature('InvalidSignature', 6),
+
+  /// Invalid revocation key.
+  invalidRevocationKey('InvalidRevocationKey', 7),
+
+  /// Issuer is not member and can not perform this action.
+  issuerNotMember('IssuerNotMember', 8),
+
+  /// Identity creation period is not respected.
+  notRespectIdtyCreationPeriod('NotRespectIdtyCreationPeriod', 9),
+
+  /// Owner key already changed recently.
+  ownerKeyAlreadyRecentlyChanged('OwnerKeyAlreadyRecentlyChanged', 10),
+
+  /// Owner key already used.
+  ownerKeyAlreadyUsed('OwnerKeyAlreadyUsed', 11),
+
+  /// Reverting to an old key is prohibited.
+  prohibitedToRevertToAnOldKey('ProhibitedToRevertToAnOldKey', 12),
+
+  /// Already revoked.
+  alreadyRevoked('AlreadyRevoked', 13),
+
+  /// Can not revoke identity that never was member.
+  canNotRevokeUnconfirmed('CanNotRevokeUnconfirmed', 14),
+
+  /// Can not revoke identity that never was member.
+  canNotRevokeUnvalidated('CanNotRevokeUnvalidated', 15),
+
+  /// Cannot link to an inexisting account.
+  accountNotExist('AccountNotExist', 16);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.idtyAlreadyConfirmed;
+      case 1:
+        return Error.idtyAlreadyCreated;
+      case 2:
+        return Error.idtyIndexNotFound;
+      case 3:
+        return Error.idtyNameAlreadyExist;
+      case 4:
+        return Error.idtyNameInvalid;
+      case 5:
+        return Error.idtyNotFound;
+      case 6:
+        return Error.invalidSignature;
+      case 7:
+        return Error.invalidRevocationKey;
+      case 8:
+        return Error.issuerNotMember;
+      case 9:
+        return Error.notRespectIdtyCreationPeriod;
+      case 10:
+        return Error.ownerKeyAlreadyRecentlyChanged;
+      case 11:
+        return Error.ownerKeyAlreadyUsed;
+      case 12:
+        return Error.prohibitedToRevertToAnOldKey;
+      case 13:
+        return Error.alreadyRevoked;
+      case 14:
+        return Error.canNotRevokeUnconfirmed;
+      case 15:
+        return Error.canNotRevokeUnvalidated;
+      case 16:
+        return Error.accountNotExist;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_identity/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_identity/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..549b80bd5a0ffebb4603d0ec3e2fe81bfbfeb058
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_identity/pallet/event.dart
@@ -0,0 +1,575 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i7;
+
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+import '../types/idty_name.dart' as _i4;
+import '../types/removal_reason.dart' as _i6;
+import '../types/revocation_reason.dart' as _i5;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  IdtyCreated idtyCreated({
+    required int idtyIndex,
+    required _i3.AccountId32 ownerKey,
+  }) {
+    return IdtyCreated(
+      idtyIndex: idtyIndex,
+      ownerKey: ownerKey,
+    );
+  }
+
+  IdtyConfirmed idtyConfirmed({
+    required int idtyIndex,
+    required _i3.AccountId32 ownerKey,
+    required _i4.IdtyName name,
+  }) {
+    return IdtyConfirmed(
+      idtyIndex: idtyIndex,
+      ownerKey: ownerKey,
+      name: name,
+    );
+  }
+
+  IdtyValidated idtyValidated({required int idtyIndex}) {
+    return IdtyValidated(idtyIndex: idtyIndex);
+  }
+
+  IdtyChangedOwnerKey idtyChangedOwnerKey({
+    required int idtyIndex,
+    required _i3.AccountId32 newOwnerKey,
+  }) {
+    return IdtyChangedOwnerKey(
+      idtyIndex: idtyIndex,
+      newOwnerKey: newOwnerKey,
+    );
+  }
+
+  IdtyRevoked idtyRevoked({
+    required int idtyIndex,
+    required _i5.RevocationReason reason,
+  }) {
+    return IdtyRevoked(
+      idtyIndex: idtyIndex,
+      reason: reason,
+    );
+  }
+
+  IdtyRemoved idtyRemoved({
+    required int idtyIndex,
+    required _i6.RemovalReason reason,
+  }) {
+    return IdtyRemoved(
+      idtyIndex: idtyIndex,
+      reason: reason,
+    );
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return IdtyCreated._decode(input);
+      case 1:
+        return IdtyConfirmed._decode(input);
+      case 2:
+        return IdtyValidated._decode(input);
+      case 3:
+        return IdtyChangedOwnerKey._decode(input);
+      case 4:
+        return IdtyRevoked._decode(input);
+      case 5:
+        return IdtyRemoved._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case IdtyCreated:
+        (value as IdtyCreated).encodeTo(output);
+        break;
+      case IdtyConfirmed:
+        (value as IdtyConfirmed).encodeTo(output);
+        break;
+      case IdtyValidated:
+        (value as IdtyValidated).encodeTo(output);
+        break;
+      case IdtyChangedOwnerKey:
+        (value as IdtyChangedOwnerKey).encodeTo(output);
+        break;
+      case IdtyRevoked:
+        (value as IdtyRevoked).encodeTo(output);
+        break;
+      case IdtyRemoved:
+        (value as IdtyRemoved).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case IdtyCreated:
+        return (value as IdtyCreated)._sizeHint();
+      case IdtyConfirmed:
+        return (value as IdtyConfirmed)._sizeHint();
+      case IdtyValidated:
+        return (value as IdtyValidated)._sizeHint();
+      case IdtyChangedOwnerKey:
+        return (value as IdtyChangedOwnerKey)._sizeHint();
+      case IdtyRevoked:
+        return (value as IdtyRevoked)._sizeHint();
+      case IdtyRemoved:
+        return (value as IdtyRemoved)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// A new identity has been created.
+class IdtyCreated extends Event {
+  const IdtyCreated({
+    required this.idtyIndex,
+    required this.ownerKey,
+  });
+
+  factory IdtyCreated._decode(_i1.Input input) {
+    return IdtyCreated(
+      idtyIndex: _i1.U32Codec.codec.decode(input),
+      ownerKey: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// T::IdtyIndex
+  final int idtyIndex;
+
+  /// T::AccountId
+  final _i3.AccountId32 ownerKey;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'IdtyCreated': {
+          'idtyIndex': idtyIndex,
+          'ownerKey': ownerKey.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(idtyIndex);
+    size = size + const _i3.AccountId32Codec().sizeHint(ownerKey);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      idtyIndex,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      ownerKey,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is IdtyCreated &&
+          other.idtyIndex == idtyIndex &&
+          _i7.listsEqual(
+            other.ownerKey,
+            ownerKey,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        idtyIndex,
+        ownerKey,
+      );
+}
+
+/// An identity has been confirmed by its owner.
+class IdtyConfirmed extends Event {
+  const IdtyConfirmed({
+    required this.idtyIndex,
+    required this.ownerKey,
+    required this.name,
+  });
+
+  factory IdtyConfirmed._decode(_i1.Input input) {
+    return IdtyConfirmed(
+      idtyIndex: _i1.U32Codec.codec.decode(input),
+      ownerKey: const _i1.U8ArrayCodec(32).decode(input),
+      name: _i1.U8SequenceCodec.codec.decode(input),
+    );
+  }
+
+  /// T::IdtyIndex
+  final int idtyIndex;
+
+  /// T::AccountId
+  final _i3.AccountId32 ownerKey;
+
+  /// IdtyName
+  final _i4.IdtyName name;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'IdtyConfirmed': {
+          'idtyIndex': idtyIndex,
+          'ownerKey': ownerKey.toList(),
+          'name': name,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(idtyIndex);
+    size = size + const _i3.AccountId32Codec().sizeHint(ownerKey);
+    size = size + const _i4.IdtyNameCodec().sizeHint(name);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      idtyIndex,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      ownerKey,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      name,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is IdtyConfirmed &&
+          other.idtyIndex == idtyIndex &&
+          _i7.listsEqual(
+            other.ownerKey,
+            ownerKey,
+          ) &&
+          _i7.listsEqual(
+            other.name,
+            name,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        idtyIndex,
+        ownerKey,
+        name,
+      );
+}
+
+/// An identity has been validated.
+class IdtyValidated extends Event {
+  const IdtyValidated({required this.idtyIndex});
+
+  factory IdtyValidated._decode(_i1.Input input) {
+    return IdtyValidated(idtyIndex: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::IdtyIndex
+  final int idtyIndex;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'IdtyValidated': {'idtyIndex': idtyIndex}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(idtyIndex);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      idtyIndex,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is IdtyValidated && other.idtyIndex == idtyIndex;
+
+  @override
+  int get hashCode => idtyIndex.hashCode;
+}
+
+class IdtyChangedOwnerKey extends Event {
+  const IdtyChangedOwnerKey({
+    required this.idtyIndex,
+    required this.newOwnerKey,
+  });
+
+  factory IdtyChangedOwnerKey._decode(_i1.Input input) {
+    return IdtyChangedOwnerKey(
+      idtyIndex: _i1.U32Codec.codec.decode(input),
+      newOwnerKey: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// T::IdtyIndex
+  final int idtyIndex;
+
+  /// T::AccountId
+  final _i3.AccountId32 newOwnerKey;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'IdtyChangedOwnerKey': {
+          'idtyIndex': idtyIndex,
+          'newOwnerKey': newOwnerKey.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(idtyIndex);
+    size = size + const _i3.AccountId32Codec().sizeHint(newOwnerKey);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      idtyIndex,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      newOwnerKey,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is IdtyChangedOwnerKey &&
+          other.idtyIndex == idtyIndex &&
+          _i7.listsEqual(
+            other.newOwnerKey,
+            newOwnerKey,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        idtyIndex,
+        newOwnerKey,
+      );
+}
+
+/// An identity has been revoked.
+class IdtyRevoked extends Event {
+  const IdtyRevoked({
+    required this.idtyIndex,
+    required this.reason,
+  });
+
+  factory IdtyRevoked._decode(_i1.Input input) {
+    return IdtyRevoked(
+      idtyIndex: _i1.U32Codec.codec.decode(input),
+      reason: _i5.RevocationReason.codec.decode(input),
+    );
+  }
+
+  /// T::IdtyIndex
+  final int idtyIndex;
+
+  /// RevocationReason
+  final _i5.RevocationReason reason;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'IdtyRevoked': {
+          'idtyIndex': idtyIndex,
+          'reason': reason.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(idtyIndex);
+    size = size + _i5.RevocationReason.codec.sizeHint(reason);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      idtyIndex,
+      output,
+    );
+    _i5.RevocationReason.codec.encodeTo(
+      reason,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is IdtyRevoked &&
+          other.idtyIndex == idtyIndex &&
+          other.reason == reason;
+
+  @override
+  int get hashCode => Object.hash(
+        idtyIndex,
+        reason,
+      );
+}
+
+/// An identity has been removed.
+class IdtyRemoved extends Event {
+  const IdtyRemoved({
+    required this.idtyIndex,
+    required this.reason,
+  });
+
+  factory IdtyRemoved._decode(_i1.Input input) {
+    return IdtyRemoved(
+      idtyIndex: _i1.U32Codec.codec.decode(input),
+      reason: _i6.RemovalReason.codec.decode(input),
+    );
+  }
+
+  /// T::IdtyIndex
+  final int idtyIndex;
+
+  /// RemovalReason
+  final _i6.RemovalReason reason;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'IdtyRemoved': {
+          'idtyIndex': idtyIndex,
+          'reason': reason.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(idtyIndex);
+    size = size + _i6.RemovalReason.codec.sizeHint(reason);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      idtyIndex,
+      output,
+    );
+    _i6.RemovalReason.codec.encodeTo(
+      reason,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is IdtyRemoved &&
+          other.idtyIndex == idtyIndex &&
+          other.reason == reason;
+
+  @override
+  int get hashCode => Object.hash(
+        idtyIndex,
+        reason,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_identity/types/idty_name.dart b/lib/src/models/generated/duniter/types/pallet_identity/types/idty_name.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f71faef10001ea949eb1d147be4e409288c95348
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_identity/types/idty_name.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef IdtyName = List<int>;
+
+class IdtyNameCodec with _i1.Codec<IdtyName> {
+  const IdtyNameCodec();
+
+  @override
+  IdtyName decode(_i1.Input input) {
+    return _i1.U8SequenceCodec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    IdtyName value,
+    _i1.Output output,
+  ) {
+    _i1.U8SequenceCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(IdtyName value) {
+    return _i1.U8SequenceCodec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_identity/types/idty_status.dart b/lib/src/models/generated/duniter/types/pallet_identity/types/idty_status.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a2b0728d16413da456c02e5a946892c2d6f0a364
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_identity/types/idty_status.dart
@@ -0,0 +1,66 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum IdtyStatus {
+  unconfirmed('Unconfirmed', 0),
+  unvalidated('Unvalidated', 1),
+  member('Member', 2),
+  notMember('NotMember', 3),
+  revoked('Revoked', 4);
+
+  const IdtyStatus(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory IdtyStatus.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $IdtyStatusCodec codec = $IdtyStatusCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $IdtyStatusCodec with _i1.Codec<IdtyStatus> {
+  const $IdtyStatusCodec();
+
+  @override
+  IdtyStatus decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return IdtyStatus.unconfirmed;
+      case 1:
+        return IdtyStatus.unvalidated;
+      case 2:
+        return IdtyStatus.member;
+      case 3:
+        return IdtyStatus.notMember;
+      case 4:
+        return IdtyStatus.revoked;
+      default:
+        throw Exception('IdtyStatus: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    IdtyStatus value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_identity/types/idty_value.dart b/lib/src/models/generated/duniter/types/pallet_identity/types/idty_value.dart
new file mode 100644
index 0000000000000000000000000000000000000000..2650c659d654c1e332dd577c4c742a6abca05dfc
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_identity/types/idty_value.dart
@@ -0,0 +1,160 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i6;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i7;
+
+import '../../common_runtime/entities/idty_data.dart' as _i2;
+import '../../sp_core/crypto/account_id32.dart' as _i4;
+import '../../tuples.dart' as _i3;
+import 'idty_status.dart' as _i5;
+
+class IdtyValue {
+  const IdtyValue({
+    required this.data,
+    required this.nextCreatableIdentityOn,
+    this.oldOwnerKey,
+    required this.ownerKey,
+    required this.nextScheduled,
+    required this.status,
+  });
+
+  factory IdtyValue.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// IdtyData
+  final _i2.IdtyData data;
+
+  /// BlockNumber
+  final int nextCreatableIdentityOn;
+
+  /// Option<(AccountId, BlockNumber)>
+  final _i3.Tuple2<_i4.AccountId32, int>? oldOwnerKey;
+
+  /// AccountId
+  final _i4.AccountId32 ownerKey;
+
+  /// BlockNumber
+  final int nextScheduled;
+
+  /// IdtyStatus
+  final _i5.IdtyStatus status;
+
+  static const $IdtyValueCodec codec = $IdtyValueCodec();
+
+  _i6.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'data': data.toJson(),
+        'nextCreatableIdentityOn': nextCreatableIdentityOn,
+        'oldOwnerKey': [
+          oldOwnerKey?.value0.toList(),
+          oldOwnerKey?.value1,
+        ],
+        'ownerKey': ownerKey.toList(),
+        'nextScheduled': nextScheduled,
+        'status': status.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is IdtyValue &&
+          other.data == data &&
+          other.nextCreatableIdentityOn == nextCreatableIdentityOn &&
+          other.oldOwnerKey == oldOwnerKey &&
+          _i7.listsEqual(
+            other.ownerKey,
+            ownerKey,
+          ) &&
+          other.nextScheduled == nextScheduled &&
+          other.status == status;
+
+  @override
+  int get hashCode => Object.hash(
+        data,
+        nextCreatableIdentityOn,
+        oldOwnerKey,
+        ownerKey,
+        nextScheduled,
+        status,
+      );
+}
+
+class $IdtyValueCodec with _i1.Codec<IdtyValue> {
+  const $IdtyValueCodec();
+
+  @override
+  void encodeTo(
+    IdtyValue obj,
+    _i1.Output output,
+  ) {
+    _i2.IdtyData.codec.encodeTo(
+      obj.data,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.nextCreatableIdentityOn,
+      output,
+    );
+    const _i1.OptionCodec<_i3.Tuple2<_i4.AccountId32, int>>(
+        _i3.Tuple2Codec<_i4.AccountId32, int>(
+      _i4.AccountId32Codec(),
+      _i1.U32Codec.codec,
+    )).encodeTo(
+      obj.oldOwnerKey,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.ownerKey,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.nextScheduled,
+      output,
+    );
+    _i5.IdtyStatus.codec.encodeTo(
+      obj.status,
+      output,
+    );
+  }
+
+  @override
+  IdtyValue decode(_i1.Input input) {
+    return IdtyValue(
+      data: _i2.IdtyData.codec.decode(input),
+      nextCreatableIdentityOn: _i1.U32Codec.codec.decode(input),
+      oldOwnerKey: const _i1.OptionCodec<_i3.Tuple2<_i4.AccountId32, int>>(
+          _i3.Tuple2Codec<_i4.AccountId32, int>(
+        _i4.AccountId32Codec(),
+        _i1.U32Codec.codec,
+      )).decode(input),
+      ownerKey: const _i1.U8ArrayCodec(32).decode(input),
+      nextScheduled: _i1.U32Codec.codec.decode(input),
+      status: _i5.IdtyStatus.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(IdtyValue obj) {
+    int size = 0;
+    size = size + _i2.IdtyData.codec.sizeHint(obj.data);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.nextCreatableIdentityOn);
+    size = size +
+        const _i1.OptionCodec<_i3.Tuple2<_i4.AccountId32, int>>(
+            _i3.Tuple2Codec<_i4.AccountId32, int>(
+          _i4.AccountId32Codec(),
+          _i1.U32Codec.codec,
+        )).sizeHint(obj.oldOwnerKey);
+    size = size + const _i4.AccountId32Codec().sizeHint(obj.ownerKey);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.nextScheduled);
+    size = size + _i5.IdtyStatus.codec.sizeHint(obj.status);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_identity/types/removal_reason.dart b/lib/src/models/generated/duniter/types/pallet_identity/types/removal_reason.dart
new file mode 100644
index 0000000000000000000000000000000000000000..30655e1e8aaf80f4c52d6287bbc055461ec21b3d
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_identity/types/removal_reason.dart
@@ -0,0 +1,63 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum RemovalReason {
+  root('Root', 0),
+  unconfirmed('Unconfirmed', 1),
+  unvalidated('Unvalidated', 2),
+  revoked('Revoked', 3);
+
+  const RemovalReason(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory RemovalReason.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $RemovalReasonCodec codec = $RemovalReasonCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $RemovalReasonCodec with _i1.Codec<RemovalReason> {
+  const $RemovalReasonCodec();
+
+  @override
+  RemovalReason decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return RemovalReason.root;
+      case 1:
+        return RemovalReason.unconfirmed;
+      case 2:
+        return RemovalReason.unvalidated;
+      case 3:
+        return RemovalReason.revoked;
+      default:
+        throw Exception('RemovalReason: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    RemovalReason value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_identity/types/revocation_reason.dart b/lib/src/models/generated/duniter/types/pallet_identity/types/revocation_reason.dart
new file mode 100644
index 0000000000000000000000000000000000000000..ac6a5565302cc116272d2a78929d1ee5b74976ea
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_identity/types/revocation_reason.dart
@@ -0,0 +1,60 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum RevocationReason {
+  root('Root', 0),
+  user('User', 1),
+  expired('Expired', 2);
+
+  const RevocationReason(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory RevocationReason.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $RevocationReasonCodec codec = $RevocationReasonCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $RevocationReasonCodec with _i1.Codec<RevocationReason> {
+  const $RevocationReasonCodec();
+
+  @override
+  RevocationReason decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return RevocationReason.root;
+      case 1:
+        return RevocationReason.user;
+      case 2:
+        return RevocationReason.expired;
+      default:
+        throw Exception('RevocationReason: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    RevocationReason value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_im_online/heartbeat.dart b/lib/src/models/generated/duniter/types/pallet_im_online/heartbeat.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c6bcf8fa30e7c3cd6f87b9cc52ab8ed81e6e1de2
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_im_online/heartbeat.dart
@@ -0,0 +1,109 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class Heartbeat {
+  const Heartbeat({
+    required this.blockNumber,
+    required this.sessionIndex,
+    required this.authorityIndex,
+    required this.validatorsLen,
+  });
+
+  factory Heartbeat.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// BlockNumber
+  final int blockNumber;
+
+  /// SessionIndex
+  final int sessionIndex;
+
+  /// AuthIndex
+  final int authorityIndex;
+
+  /// u32
+  final int validatorsLen;
+
+  static const $HeartbeatCodec codec = $HeartbeatCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, int> toJson() => {
+        'blockNumber': blockNumber,
+        'sessionIndex': sessionIndex,
+        'authorityIndex': authorityIndex,
+        'validatorsLen': validatorsLen,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Heartbeat &&
+          other.blockNumber == blockNumber &&
+          other.sessionIndex == sessionIndex &&
+          other.authorityIndex == authorityIndex &&
+          other.validatorsLen == validatorsLen;
+
+  @override
+  int get hashCode => Object.hash(
+        blockNumber,
+        sessionIndex,
+        authorityIndex,
+        validatorsLen,
+      );
+}
+
+class $HeartbeatCodec with _i1.Codec<Heartbeat> {
+  const $HeartbeatCodec();
+
+  @override
+  void encodeTo(
+    Heartbeat obj,
+    _i1.Output output,
+  ) {
+    _i1.U32Codec.codec.encodeTo(
+      obj.blockNumber,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.sessionIndex,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.authorityIndex,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.validatorsLen,
+      output,
+    );
+  }
+
+  @override
+  Heartbeat decode(_i1.Input input) {
+    return Heartbeat(
+      blockNumber: _i1.U32Codec.codec.decode(input),
+      sessionIndex: _i1.U32Codec.codec.decode(input),
+      authorityIndex: _i1.U32Codec.codec.decode(input),
+      validatorsLen: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Heartbeat obj) {
+    int size = 0;
+    size = size + _i1.U32Codec.codec.sizeHint(obj.blockNumber);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.sessionIndex);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.authorityIndex);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.validatorsLen);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_im_online/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_im_online/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e6baafabfb9d8e2b4d35035ece9d7326a5d239bb
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_im_online/pallet/call.dart
@@ -0,0 +1,154 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../heartbeat.dart' as _i3;
+import '../sr25519/app_sr25519/signature.dart' as _i4;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  Heartbeat heartbeat({
+    required _i3.Heartbeat heartbeat,
+    required _i4.Signature signature,
+  }) {
+    return Heartbeat(
+      heartbeat: heartbeat,
+      signature: signature,
+    );
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Heartbeat._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Heartbeat:
+        (value as Heartbeat).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case Heartbeat:
+        return (value as Heartbeat)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::heartbeat`].
+class Heartbeat extends Call {
+  const Heartbeat({
+    required this.heartbeat,
+    required this.signature,
+  });
+
+  factory Heartbeat._decode(_i1.Input input) {
+    return Heartbeat(
+      heartbeat: _i3.Heartbeat.codec.decode(input),
+      signature: const _i1.U8ArrayCodec(64).decode(input),
+    );
+  }
+
+  /// Heartbeat<BlockNumberFor<T>>
+  final _i3.Heartbeat heartbeat;
+
+  /// <T::AuthorityId as RuntimeAppPublic>::Signature
+  final _i4.Signature signature;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'heartbeat': {
+          'heartbeat': heartbeat.toJson(),
+          'signature': signature.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.Heartbeat.codec.sizeHint(heartbeat);
+    size = size + const _i4.SignatureCodec().sizeHint(signature);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.Heartbeat.codec.encodeTo(
+      heartbeat,
+      output,
+    );
+    const _i1.U8ArrayCodec(64).encodeTo(
+      signature,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Heartbeat &&
+          other.heartbeat == heartbeat &&
+          other.signature == signature;
+
+  @override
+  int get hashCode => Object.hash(
+        heartbeat,
+        signature,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_im_online/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_im_online/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..00e1d7f9958267e73fd4a41f080c23132f8e7a60
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_im_online/pallet/error.dart
@@ -0,0 +1,61 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Non existent public key.
+  invalidKey('InvalidKey', 0),
+
+  /// Duplicated heartbeat.
+  duplicatedHeartbeat('DuplicatedHeartbeat', 1);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.invalidKey;
+      case 1:
+        return Error.duplicatedHeartbeat;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_im_online/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_im_online/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a569bff90a2a21e63b0d1d5f8e58acefc04cd071
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_im_online/pallet/event.dart
@@ -0,0 +1,251 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i7;
+
+import '../../common_runtime/entities/validator_full_identification.dart'
+    as _i6;
+import '../../sp_core/crypto/account_id32.dart' as _i5;
+import '../../tuples.dart' as _i4;
+import '../sr25519/app_sr25519/public.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  HeartbeatReceived heartbeatReceived({required _i3.Public authorityId}) {
+    return HeartbeatReceived(authorityId: authorityId);
+  }
+
+  AllGood allGood() {
+    return const AllGood();
+  }
+
+  SomeOffline someOffline(
+      {required List<
+              _i4.Tuple2<_i5.AccountId32, _i6.ValidatorFullIdentification>>
+          offline}) {
+    return SomeOffline(offline: offline);
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return HeartbeatReceived._decode(input);
+      case 1:
+        return const AllGood();
+      case 2:
+        return SomeOffline._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case HeartbeatReceived:
+        (value as HeartbeatReceived).encodeTo(output);
+        break;
+      case AllGood:
+        (value as AllGood).encodeTo(output);
+        break;
+      case SomeOffline:
+        (value as SomeOffline).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case HeartbeatReceived:
+        return (value as HeartbeatReceived)._sizeHint();
+      case AllGood:
+        return 1;
+      case SomeOffline:
+        return (value as SomeOffline)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// A new heartbeat was received from `AuthorityId`.
+class HeartbeatReceived extends Event {
+  const HeartbeatReceived({required this.authorityId});
+
+  factory HeartbeatReceived._decode(_i1.Input input) {
+    return HeartbeatReceived(
+        authorityId: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::AuthorityId
+  final _i3.Public authorityId;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'HeartbeatReceived': {'authorityId': authorityId.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.PublicCodec().sizeHint(authorityId);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      authorityId,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is HeartbeatReceived && other.authorityId == authorityId;
+
+  @override
+  int get hashCode => authorityId.hashCode;
+}
+
+/// At the end of the session, no offence was committed.
+class AllGood extends Event {
+  const AllGood();
+
+  @override
+  Map<String, dynamic> toJson() => {'AllGood': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is AllGood;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+/// At the end of the session, at least one validator was found to be offline.
+class SomeOffline extends Event {
+  const SomeOffline({required this.offline});
+
+  factory SomeOffline._decode(_i1.Input input) {
+    return SomeOffline(
+        offline: const _i1.SequenceCodec<
+                _i4.Tuple2<_i5.AccountId32, _i6.ValidatorFullIdentification>>(
+            _i4.Tuple2Codec<_i5.AccountId32, _i6.ValidatorFullIdentification>(
+      _i5.AccountId32Codec(),
+      _i6.ValidatorFullIdentificationCodec(),
+    )).decode(input));
+  }
+
+  /// Vec<IdentificationTuple<T>>
+  final List<_i4.Tuple2<_i5.AccountId32, _i6.ValidatorFullIdentification>>
+      offline;
+
+  @override
+  Map<String, Map<String, List<List<dynamic>>>> toJson() => {
+        'SomeOffline': {
+          'offline': offline
+              .map((value) => [
+                    value.value0.toList(),
+                    null,
+                  ])
+              .toList()
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.SequenceCodec<
+                _i4.Tuple2<_i5.AccountId32, _i6.ValidatorFullIdentification>>(
+            _i4.Tuple2Codec<_i5.AccountId32, _i6.ValidatorFullIdentification>(
+          _i5.AccountId32Codec(),
+          _i6.ValidatorFullIdentificationCodec(),
+        )).sizeHint(offline);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i1.SequenceCodec<
+            _i4.Tuple2<_i5.AccountId32, _i6.ValidatorFullIdentification>>(
+        _i4.Tuple2Codec<_i5.AccountId32, _i6.ValidatorFullIdentification>(
+      _i5.AccountId32Codec(),
+      _i6.ValidatorFullIdentificationCodec(),
+    )).encodeTo(
+      offline,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SomeOffline &&
+          _i7.listsEqual(
+            other.offline,
+            offline,
+          );
+
+  @override
+  int get hashCode => offline.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_im_online/sr25519/app_sr25519/public.dart b/lib/src/models/generated/duniter/types/pallet_im_online/sr25519/app_sr25519/public.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4482f3fa53b6e12f55038a7e785f48788023364d
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_im_online/sr25519/app_sr25519/public.dart
@@ -0,0 +1,31 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../../../sp_core/sr25519/public.dart' as _i1;
+
+typedef Public = _i1.Public;
+
+class PublicCodec with _i2.Codec<Public> {
+  const PublicCodec();
+
+  @override
+  Public decode(_i2.Input input) {
+    return const _i2.U8ArrayCodec(32).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Public value,
+    _i2.Output output,
+  ) {
+    const _i2.U8ArrayCodec(32).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Public value) {
+    return const _i1.PublicCodec().sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_im_online/sr25519/app_sr25519/signature.dart b/lib/src/models/generated/duniter/types/pallet_im_online/sr25519/app_sr25519/signature.dart
new file mode 100644
index 0000000000000000000000000000000000000000..cc9291445ec8a801d11e2a6fc0f20f00d30e3727
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_im_online/sr25519/app_sr25519/signature.dart
@@ -0,0 +1,31 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../../../sp_core/sr25519/signature.dart' as _i1;
+
+typedef Signature = _i1.Signature;
+
+class SignatureCodec with _i2.Codec<Signature> {
+  const SignatureCodec();
+
+  @override
+  Signature decode(_i2.Input input) {
+    return const _i2.U8ArrayCodec(64).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Signature value,
+    _i2.Output output,
+  ) {
+    const _i2.U8ArrayCodec(64).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Signature value) {
+    return const _i1.SignatureCodec().sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_membership/membership_removal_reason.dart b/lib/src/models/generated/duniter/types/pallet_membership/membership_removal_reason.dart
new file mode 100644
index 0000000000000000000000000000000000000000..eb6a466836e2447cdb292d18bd6e8775e0b36ac6
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_membership/membership_removal_reason.dart
@@ -0,0 +1,65 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum MembershipRemovalReason {
+  expired('Expired', 0),
+  revoked('Revoked', 1),
+  notEnoughCerts('NotEnoughCerts', 2),
+  system('System', 3);
+
+  const MembershipRemovalReason(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory MembershipRemovalReason.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $MembershipRemovalReasonCodec codec =
+      $MembershipRemovalReasonCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $MembershipRemovalReasonCodec with _i1.Codec<MembershipRemovalReason> {
+  const $MembershipRemovalReasonCodec();
+
+  @override
+  MembershipRemovalReason decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return MembershipRemovalReason.expired;
+      case 1:
+        return MembershipRemovalReason.revoked;
+      case 2:
+        return MembershipRemovalReason.notEnoughCerts;
+      case 3:
+        return MembershipRemovalReason.system;
+      default:
+        throw Exception(
+            'MembershipRemovalReason: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    MembershipRemovalReason value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_membership/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_membership/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..b4cfb0779aa4ebafff08cf50e5cb97068ea51bf6
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_membership/pallet/error.dart
@@ -0,0 +1,61 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Membership not found, can not renew.
+  membershipNotFound('MembershipNotFound', 0),
+
+  /// Already member, can not add membership.
+  alreadyMember('AlreadyMember', 1);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.membershipNotFound;
+      case 1:
+        return Error.alreadyMember;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_membership/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_membership/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..73974da36178fb06ab90f0105f85093005828c7d
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_membership/pallet/event.dart
@@ -0,0 +1,321 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../membership_removal_reason.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  MembershipAdded membershipAdded({
+    required int member,
+    required int expireOn,
+  }) {
+    return MembershipAdded(
+      member: member,
+      expireOn: expireOn,
+    );
+  }
+
+  MembershipRenewed membershipRenewed({
+    required int member,
+    required int expireOn,
+  }) {
+    return MembershipRenewed(
+      member: member,
+      expireOn: expireOn,
+    );
+  }
+
+  MembershipRemoved membershipRemoved({
+    required int member,
+    required _i3.MembershipRemovalReason reason,
+  }) {
+    return MembershipRemoved(
+      member: member,
+      reason: reason,
+    );
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return MembershipAdded._decode(input);
+      case 1:
+        return MembershipRenewed._decode(input);
+      case 2:
+        return MembershipRemoved._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case MembershipAdded:
+        (value as MembershipAdded).encodeTo(output);
+        break;
+      case MembershipRenewed:
+        (value as MembershipRenewed).encodeTo(output);
+        break;
+      case MembershipRemoved:
+        (value as MembershipRemoved).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case MembershipAdded:
+        return (value as MembershipAdded)._sizeHint();
+      case MembershipRenewed:
+        return (value as MembershipRenewed)._sizeHint();
+      case MembershipRemoved:
+        return (value as MembershipRemoved)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// A membership was added.
+class MembershipAdded extends Event {
+  const MembershipAdded({
+    required this.member,
+    required this.expireOn,
+  });
+
+  factory MembershipAdded._decode(_i1.Input input) {
+    return MembershipAdded(
+      member: _i1.U32Codec.codec.decode(input),
+      expireOn: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// T::IdtyId
+  final int member;
+
+  /// BlockNumberFor<T>
+  final int expireOn;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'MembershipAdded': {
+          'member': member,
+          'expireOn': expireOn,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(member);
+    size = size + _i1.U32Codec.codec.sizeHint(expireOn);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      member,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      expireOn,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MembershipAdded &&
+          other.member == member &&
+          other.expireOn == expireOn;
+
+  @override
+  int get hashCode => Object.hash(
+        member,
+        expireOn,
+      );
+}
+
+/// A membership was renewed.
+class MembershipRenewed extends Event {
+  const MembershipRenewed({
+    required this.member,
+    required this.expireOn,
+  });
+
+  factory MembershipRenewed._decode(_i1.Input input) {
+    return MembershipRenewed(
+      member: _i1.U32Codec.codec.decode(input),
+      expireOn: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// T::IdtyId
+  final int member;
+
+  /// BlockNumberFor<T>
+  final int expireOn;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'MembershipRenewed': {
+          'member': member,
+          'expireOn': expireOn,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(member);
+    size = size + _i1.U32Codec.codec.sizeHint(expireOn);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      member,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      expireOn,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MembershipRenewed &&
+          other.member == member &&
+          other.expireOn == expireOn;
+
+  @override
+  int get hashCode => Object.hash(
+        member,
+        expireOn,
+      );
+}
+
+/// A membership was removed.
+class MembershipRemoved extends Event {
+  const MembershipRemoved({
+    required this.member,
+    required this.reason,
+  });
+
+  factory MembershipRemoved._decode(_i1.Input input) {
+    return MembershipRemoved(
+      member: _i1.U32Codec.codec.decode(input),
+      reason: _i3.MembershipRemovalReason.codec.decode(input),
+    );
+  }
+
+  /// T::IdtyId
+  final int member;
+
+  /// MembershipRemovalReason
+  final _i3.MembershipRemovalReason reason;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'MembershipRemoved': {
+          'member': member,
+          'reason': reason.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(member);
+    size = size + _i3.MembershipRemovalReason.codec.sizeHint(reason);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      member,
+      output,
+    );
+    _i3.MembershipRemovalReason.codec.encodeTo(
+      reason,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MembershipRemoved &&
+          other.member == member &&
+          other.reason == reason;
+
+  @override
+  int get hashCode => Object.hash(
+        member,
+        reason,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_multisig/multisig.dart b/lib/src/models/generated/duniter/types/pallet_multisig/multisig.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a539d9728a227e036fb8842c27bf456f808976be
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_multisig/multisig.dart
@@ -0,0 +1,123 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../sp_core/crypto/account_id32.dart' as _i3;
+import 'timepoint.dart' as _i2;
+
+class Multisig {
+  const Multisig({
+    required this.when,
+    required this.deposit,
+    required this.depositor,
+    required this.approvals,
+  });
+
+  factory Multisig.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// Timepoint<BlockNumber>
+  final _i2.Timepoint when;
+
+  /// Balance
+  final BigInt deposit;
+
+  /// AccountId
+  final _i3.AccountId32 depositor;
+
+  /// BoundedVec<AccountId, MaxApprovals>
+  final List<_i3.AccountId32> approvals;
+
+  static const $MultisigCodec codec = $MultisigCodec();
+
+  _i4.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'when': when.toJson(),
+        'deposit': deposit,
+        'depositor': depositor.toList(),
+        'approvals': approvals.map((value) => value.toList()).toList(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Multisig &&
+          other.when == when &&
+          other.deposit == deposit &&
+          _i5.listsEqual(
+            other.depositor,
+            depositor,
+          ) &&
+          _i5.listsEqual(
+            other.approvals,
+            approvals,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        when,
+        deposit,
+        depositor,
+        approvals,
+      );
+}
+
+class $MultisigCodec with _i1.Codec<Multisig> {
+  const $MultisigCodec();
+
+  @override
+  void encodeTo(
+    Multisig obj,
+    _i1.Output output,
+  ) {
+    _i2.Timepoint.codec.encodeTo(
+      obj.when,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.deposit,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.depositor,
+      output,
+    );
+    const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec()).encodeTo(
+      obj.approvals,
+      output,
+    );
+  }
+
+  @override
+  Multisig decode(_i1.Input input) {
+    return Multisig(
+      when: _i2.Timepoint.codec.decode(input),
+      deposit: _i1.U64Codec.codec.decode(input),
+      depositor: const _i1.U8ArrayCodec(32).decode(input),
+      approvals:
+          const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+              .decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Multisig obj) {
+    int size = 0;
+    size = size + _i2.Timepoint.codec.sizeHint(obj.when);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.deposit);
+    size = size + const _i3.AccountId32Codec().sizeHint(obj.depositor);
+    size = size +
+        const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+            .sizeHint(obj.approvals);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_multisig/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_multisig/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..36d16866bac5c76e89c0f26fb5a4d1dafe5bbb19
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_multisig/pallet/call.dart
@@ -0,0 +1,573 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i7;
+
+import '../../gdev_runtime/runtime_call.dart' as _i4;
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+import '../../sp_weights/weight_v2/weight.dart' as _i6;
+import '../timepoint.dart' as _i5;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  AsMultiThreshold1 asMultiThreshold1({
+    required List<_i3.AccountId32> otherSignatories,
+    required _i4.RuntimeCall call,
+  }) {
+    return AsMultiThreshold1(
+      otherSignatories: otherSignatories,
+      call: call,
+    );
+  }
+
+  AsMulti asMulti({
+    required int threshold,
+    required List<_i3.AccountId32> otherSignatories,
+    _i5.Timepoint? maybeTimepoint,
+    required _i4.RuntimeCall call,
+    required _i6.Weight maxWeight,
+  }) {
+    return AsMulti(
+      threshold: threshold,
+      otherSignatories: otherSignatories,
+      maybeTimepoint: maybeTimepoint,
+      call: call,
+      maxWeight: maxWeight,
+    );
+  }
+
+  ApproveAsMulti approveAsMulti({
+    required int threshold,
+    required List<_i3.AccountId32> otherSignatories,
+    _i5.Timepoint? maybeTimepoint,
+    required List<int> callHash,
+    required _i6.Weight maxWeight,
+  }) {
+    return ApproveAsMulti(
+      threshold: threshold,
+      otherSignatories: otherSignatories,
+      maybeTimepoint: maybeTimepoint,
+      callHash: callHash,
+      maxWeight: maxWeight,
+    );
+  }
+
+  CancelAsMulti cancelAsMulti({
+    required int threshold,
+    required List<_i3.AccountId32> otherSignatories,
+    required _i5.Timepoint timepoint,
+    required List<int> callHash,
+  }) {
+    return CancelAsMulti(
+      threshold: threshold,
+      otherSignatories: otherSignatories,
+      timepoint: timepoint,
+      callHash: callHash,
+    );
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return AsMultiThreshold1._decode(input);
+      case 1:
+        return AsMulti._decode(input);
+      case 2:
+        return ApproveAsMulti._decode(input);
+      case 3:
+        return CancelAsMulti._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case AsMultiThreshold1:
+        (value as AsMultiThreshold1).encodeTo(output);
+        break;
+      case AsMulti:
+        (value as AsMulti).encodeTo(output);
+        break;
+      case ApproveAsMulti:
+        (value as ApproveAsMulti).encodeTo(output);
+        break;
+      case CancelAsMulti:
+        (value as CancelAsMulti).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case AsMultiThreshold1:
+        return (value as AsMultiThreshold1)._sizeHint();
+      case AsMulti:
+        return (value as AsMulti)._sizeHint();
+      case ApproveAsMulti:
+        return (value as ApproveAsMulti)._sizeHint();
+      case CancelAsMulti:
+        return (value as CancelAsMulti)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::as_multi_threshold_1`].
+class AsMultiThreshold1 extends Call {
+  const AsMultiThreshold1({
+    required this.otherSignatories,
+    required this.call,
+  });
+
+  factory AsMultiThreshold1._decode(_i1.Input input) {
+    return AsMultiThreshold1(
+      otherSignatories:
+          const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+              .decode(input),
+      call: _i4.RuntimeCall.codec.decode(input),
+    );
+  }
+
+  /// Vec<T::AccountId>
+  final List<_i3.AccountId32> otherSignatories;
+
+  /// Box<<T as Config>::RuntimeCall>
+  final _i4.RuntimeCall call;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'as_multi_threshold_1': {
+          'otherSignatories':
+              otherSignatories.map((value) => value.toList()).toList(),
+          'call': call.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+            .sizeHint(otherSignatories);
+    size = size + _i4.RuntimeCall.codec.sizeHint(call);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec()).encodeTo(
+      otherSignatories,
+      output,
+    );
+    _i4.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AsMultiThreshold1 &&
+          _i7.listsEqual(
+            other.otherSignatories,
+            otherSignatories,
+          ) &&
+          other.call == call;
+
+  @override
+  int get hashCode => Object.hash(
+        otherSignatories,
+        call,
+      );
+}
+
+/// See [`Pallet::as_multi`].
+class AsMulti extends Call {
+  const AsMulti({
+    required this.threshold,
+    required this.otherSignatories,
+    this.maybeTimepoint,
+    required this.call,
+    required this.maxWeight,
+  });
+
+  factory AsMulti._decode(_i1.Input input) {
+    return AsMulti(
+      threshold: _i1.U16Codec.codec.decode(input),
+      otherSignatories:
+          const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+              .decode(input),
+      maybeTimepoint: const _i1.OptionCodec<_i5.Timepoint>(_i5.Timepoint.codec)
+          .decode(input),
+      call: _i4.RuntimeCall.codec.decode(input),
+      maxWeight: _i6.Weight.codec.decode(input),
+    );
+  }
+
+  /// u16
+  final int threshold;
+
+  /// Vec<T::AccountId>
+  final List<_i3.AccountId32> otherSignatories;
+
+  /// Option<Timepoint<BlockNumberFor<T>>>
+  final _i5.Timepoint? maybeTimepoint;
+
+  /// Box<<T as Config>::RuntimeCall>
+  final _i4.RuntimeCall call;
+
+  /// Weight
+  final _i6.Weight maxWeight;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'as_multi': {
+          'threshold': threshold,
+          'otherSignatories':
+              otherSignatories.map((value) => value.toList()).toList(),
+          'maybeTimepoint': maybeTimepoint?.toJson(),
+          'call': call.toJson(),
+          'maxWeight': maxWeight.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U16Codec.codec.sizeHint(threshold);
+    size = size +
+        const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+            .sizeHint(otherSignatories);
+    size = size +
+        const _i1.OptionCodec<_i5.Timepoint>(_i5.Timepoint.codec)
+            .sizeHint(maybeTimepoint);
+    size = size + _i4.RuntimeCall.codec.sizeHint(call);
+    size = size + _i6.Weight.codec.sizeHint(maxWeight);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U16Codec.codec.encodeTo(
+      threshold,
+      output,
+    );
+    const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec()).encodeTo(
+      otherSignatories,
+      output,
+    );
+    const _i1.OptionCodec<_i5.Timepoint>(_i5.Timepoint.codec).encodeTo(
+      maybeTimepoint,
+      output,
+    );
+    _i4.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+    _i6.Weight.codec.encodeTo(
+      maxWeight,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AsMulti &&
+          other.threshold == threshold &&
+          _i7.listsEqual(
+            other.otherSignatories,
+            otherSignatories,
+          ) &&
+          other.maybeTimepoint == maybeTimepoint &&
+          other.call == call &&
+          other.maxWeight == maxWeight;
+
+  @override
+  int get hashCode => Object.hash(
+        threshold,
+        otherSignatories,
+        maybeTimepoint,
+        call,
+        maxWeight,
+      );
+}
+
+/// See [`Pallet::approve_as_multi`].
+class ApproveAsMulti extends Call {
+  const ApproveAsMulti({
+    required this.threshold,
+    required this.otherSignatories,
+    this.maybeTimepoint,
+    required this.callHash,
+    required this.maxWeight,
+  });
+
+  factory ApproveAsMulti._decode(_i1.Input input) {
+    return ApproveAsMulti(
+      threshold: _i1.U16Codec.codec.decode(input),
+      otherSignatories:
+          const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+              .decode(input),
+      maybeTimepoint: const _i1.OptionCodec<_i5.Timepoint>(_i5.Timepoint.codec)
+          .decode(input),
+      callHash: const _i1.U8ArrayCodec(32).decode(input),
+      maxWeight: _i6.Weight.codec.decode(input),
+    );
+  }
+
+  /// u16
+  final int threshold;
+
+  /// Vec<T::AccountId>
+  final List<_i3.AccountId32> otherSignatories;
+
+  /// Option<Timepoint<BlockNumberFor<T>>>
+  final _i5.Timepoint? maybeTimepoint;
+
+  /// [u8; 32]
+  final List<int> callHash;
+
+  /// Weight
+  final _i6.Weight maxWeight;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'approve_as_multi': {
+          'threshold': threshold,
+          'otherSignatories':
+              otherSignatories.map((value) => value.toList()).toList(),
+          'maybeTimepoint': maybeTimepoint?.toJson(),
+          'callHash': callHash.toList(),
+          'maxWeight': maxWeight.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U16Codec.codec.sizeHint(threshold);
+    size = size +
+        const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+            .sizeHint(otherSignatories);
+    size = size +
+        const _i1.OptionCodec<_i5.Timepoint>(_i5.Timepoint.codec)
+            .sizeHint(maybeTimepoint);
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(callHash);
+    size = size + _i6.Weight.codec.sizeHint(maxWeight);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U16Codec.codec.encodeTo(
+      threshold,
+      output,
+    );
+    const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec()).encodeTo(
+      otherSignatories,
+      output,
+    );
+    const _i1.OptionCodec<_i5.Timepoint>(_i5.Timepoint.codec).encodeTo(
+      maybeTimepoint,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      callHash,
+      output,
+    );
+    _i6.Weight.codec.encodeTo(
+      maxWeight,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ApproveAsMulti &&
+          other.threshold == threshold &&
+          _i7.listsEqual(
+            other.otherSignatories,
+            otherSignatories,
+          ) &&
+          other.maybeTimepoint == maybeTimepoint &&
+          _i7.listsEqual(
+            other.callHash,
+            callHash,
+          ) &&
+          other.maxWeight == maxWeight;
+
+  @override
+  int get hashCode => Object.hash(
+        threshold,
+        otherSignatories,
+        maybeTimepoint,
+        callHash,
+        maxWeight,
+      );
+}
+
+/// See [`Pallet::cancel_as_multi`].
+class CancelAsMulti extends Call {
+  const CancelAsMulti({
+    required this.threshold,
+    required this.otherSignatories,
+    required this.timepoint,
+    required this.callHash,
+  });
+
+  factory CancelAsMulti._decode(_i1.Input input) {
+    return CancelAsMulti(
+      threshold: _i1.U16Codec.codec.decode(input),
+      otherSignatories:
+          const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+              .decode(input),
+      timepoint: _i5.Timepoint.codec.decode(input),
+      callHash: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// u16
+  final int threshold;
+
+  /// Vec<T::AccountId>
+  final List<_i3.AccountId32> otherSignatories;
+
+  /// Timepoint<BlockNumberFor<T>>
+  final _i5.Timepoint timepoint;
+
+  /// [u8; 32]
+  final List<int> callHash;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'cancel_as_multi': {
+          'threshold': threshold,
+          'otherSignatories':
+              otherSignatories.map((value) => value.toList()).toList(),
+          'timepoint': timepoint.toJson(),
+          'callHash': callHash.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U16Codec.codec.sizeHint(threshold);
+    size = size +
+        const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+            .sizeHint(otherSignatories);
+    size = size + _i5.Timepoint.codec.sizeHint(timepoint);
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(callHash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i1.U16Codec.codec.encodeTo(
+      threshold,
+      output,
+    );
+    const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec()).encodeTo(
+      otherSignatories,
+      output,
+    );
+    _i5.Timepoint.codec.encodeTo(
+      timepoint,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      callHash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is CancelAsMulti &&
+          other.threshold == threshold &&
+          _i7.listsEqual(
+            other.otherSignatories,
+            otherSignatories,
+          ) &&
+          other.timepoint == timepoint &&
+          _i7.listsEqual(
+            other.callHash,
+            callHash,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        threshold,
+        otherSignatories,
+        timepoint,
+        callHash,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_multisig/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_multisig/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..0f78b49414db18c991eb2298d6bb2f810a744df3
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_multisig/pallet/error.dart
@@ -0,0 +1,121 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Threshold must be 2 or greater.
+  minimumThreshold('MinimumThreshold', 0),
+
+  /// Call is already approved by this signatory.
+  alreadyApproved('AlreadyApproved', 1),
+
+  /// Call doesn't need any (more) approvals.
+  noApprovalsNeeded('NoApprovalsNeeded', 2),
+
+  /// There are too few signatories in the list.
+  tooFewSignatories('TooFewSignatories', 3),
+
+  /// There are too many signatories in the list.
+  tooManySignatories('TooManySignatories', 4),
+
+  /// The signatories were provided out of order; they should be ordered.
+  signatoriesOutOfOrder('SignatoriesOutOfOrder', 5),
+
+  /// The sender was contained in the other signatories; it shouldn't be.
+  senderInSignatories('SenderInSignatories', 6),
+
+  /// Multisig operation not found when attempting to cancel.
+  notFound('NotFound', 7),
+
+  /// Only the account that originally created the multisig is able to cancel it.
+  notOwner('NotOwner', 8),
+
+  /// No timepoint was given, yet the multisig operation is already underway.
+  noTimepoint('NoTimepoint', 9),
+
+  /// A different timepoint was given to the multisig operation that is underway.
+  wrongTimepoint('WrongTimepoint', 10),
+
+  /// A timepoint was given, yet no multisig operation is underway.
+  unexpectedTimepoint('UnexpectedTimepoint', 11),
+
+  /// The maximum weight information provided was too low.
+  maxWeightTooLow('MaxWeightTooLow', 12),
+
+  /// The data to be stored is already stored.
+  alreadyStored('AlreadyStored', 13);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.minimumThreshold;
+      case 1:
+        return Error.alreadyApproved;
+      case 2:
+        return Error.noApprovalsNeeded;
+      case 3:
+        return Error.tooFewSignatories;
+      case 4:
+        return Error.tooManySignatories;
+      case 5:
+        return Error.signatoriesOutOfOrder;
+      case 6:
+        return Error.senderInSignatories;
+      case 7:
+        return Error.notFound;
+      case 8:
+        return Error.notOwner;
+      case 9:
+        return Error.noTimepoint;
+      case 10:
+        return Error.wrongTimepoint;
+      case 11:
+        return Error.unexpectedTimepoint;
+      case 12:
+        return Error.maxWeightTooLow;
+      case 13:
+        return Error.alreadyStored;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_multisig/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_multisig/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..cd4b459ecb15ee9cafe36336f2c2fc828138092d
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_multisig/pallet/event.dart
@@ -0,0 +1,574 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i6;
+
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+import '../../sp_runtime/dispatch_error.dart' as _i5;
+import '../timepoint.dart' as _i4;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  NewMultisig newMultisig({
+    required _i3.AccountId32 approving,
+    required _i3.AccountId32 multisig,
+    required List<int> callHash,
+  }) {
+    return NewMultisig(
+      approving: approving,
+      multisig: multisig,
+      callHash: callHash,
+    );
+  }
+
+  MultisigApproval multisigApproval({
+    required _i3.AccountId32 approving,
+    required _i4.Timepoint timepoint,
+    required _i3.AccountId32 multisig,
+    required List<int> callHash,
+  }) {
+    return MultisigApproval(
+      approving: approving,
+      timepoint: timepoint,
+      multisig: multisig,
+      callHash: callHash,
+    );
+  }
+
+  MultisigExecuted multisigExecuted({
+    required _i3.AccountId32 approving,
+    required _i4.Timepoint timepoint,
+    required _i3.AccountId32 multisig,
+    required List<int> callHash,
+    required _i1.Result<dynamic, _i5.DispatchError> result,
+  }) {
+    return MultisigExecuted(
+      approving: approving,
+      timepoint: timepoint,
+      multisig: multisig,
+      callHash: callHash,
+      result: result,
+    );
+  }
+
+  MultisigCancelled multisigCancelled({
+    required _i3.AccountId32 cancelling,
+    required _i4.Timepoint timepoint,
+    required _i3.AccountId32 multisig,
+    required List<int> callHash,
+  }) {
+    return MultisigCancelled(
+      cancelling: cancelling,
+      timepoint: timepoint,
+      multisig: multisig,
+      callHash: callHash,
+    );
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return NewMultisig._decode(input);
+      case 1:
+        return MultisigApproval._decode(input);
+      case 2:
+        return MultisigExecuted._decode(input);
+      case 3:
+        return MultisigCancelled._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case NewMultisig:
+        (value as NewMultisig).encodeTo(output);
+        break;
+      case MultisigApproval:
+        (value as MultisigApproval).encodeTo(output);
+        break;
+      case MultisigExecuted:
+        (value as MultisigExecuted).encodeTo(output);
+        break;
+      case MultisigCancelled:
+        (value as MultisigCancelled).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case NewMultisig:
+        return (value as NewMultisig)._sizeHint();
+      case MultisigApproval:
+        return (value as MultisigApproval)._sizeHint();
+      case MultisigExecuted:
+        return (value as MultisigExecuted)._sizeHint();
+      case MultisigCancelled:
+        return (value as MultisigCancelled)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// A new multisig operation has begun.
+class NewMultisig extends Event {
+  const NewMultisig({
+    required this.approving,
+    required this.multisig,
+    required this.callHash,
+  });
+
+  factory NewMultisig._decode(_i1.Input input) {
+    return NewMultisig(
+      approving: const _i1.U8ArrayCodec(32).decode(input),
+      multisig: const _i1.U8ArrayCodec(32).decode(input),
+      callHash: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 approving;
+
+  /// T::AccountId
+  final _i3.AccountId32 multisig;
+
+  /// CallHash
+  final List<int> callHash;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'NewMultisig': {
+          'approving': approving.toList(),
+          'multisig': multisig.toList(),
+          'callHash': callHash.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(approving);
+    size = size + const _i3.AccountId32Codec().sizeHint(multisig);
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(callHash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      approving,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      multisig,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      callHash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is NewMultisig &&
+          _i6.listsEqual(
+            other.approving,
+            approving,
+          ) &&
+          _i6.listsEqual(
+            other.multisig,
+            multisig,
+          ) &&
+          _i6.listsEqual(
+            other.callHash,
+            callHash,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        approving,
+        multisig,
+        callHash,
+      );
+}
+
+/// A multisig operation has been approved by someone.
+class MultisigApproval extends Event {
+  const MultisigApproval({
+    required this.approving,
+    required this.timepoint,
+    required this.multisig,
+    required this.callHash,
+  });
+
+  factory MultisigApproval._decode(_i1.Input input) {
+    return MultisigApproval(
+      approving: const _i1.U8ArrayCodec(32).decode(input),
+      timepoint: _i4.Timepoint.codec.decode(input),
+      multisig: const _i1.U8ArrayCodec(32).decode(input),
+      callHash: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 approving;
+
+  /// Timepoint<BlockNumberFor<T>>
+  final _i4.Timepoint timepoint;
+
+  /// T::AccountId
+  final _i3.AccountId32 multisig;
+
+  /// CallHash
+  final List<int> callHash;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'MultisigApproval': {
+          'approving': approving.toList(),
+          'timepoint': timepoint.toJson(),
+          'multisig': multisig.toList(),
+          'callHash': callHash.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(approving);
+    size = size + _i4.Timepoint.codec.sizeHint(timepoint);
+    size = size + const _i3.AccountId32Codec().sizeHint(multisig);
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(callHash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      approving,
+      output,
+    );
+    _i4.Timepoint.codec.encodeTo(
+      timepoint,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      multisig,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      callHash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MultisigApproval &&
+          _i6.listsEqual(
+            other.approving,
+            approving,
+          ) &&
+          other.timepoint == timepoint &&
+          _i6.listsEqual(
+            other.multisig,
+            multisig,
+          ) &&
+          _i6.listsEqual(
+            other.callHash,
+            callHash,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        approving,
+        timepoint,
+        multisig,
+        callHash,
+      );
+}
+
+/// A multisig operation has been executed.
+class MultisigExecuted extends Event {
+  const MultisigExecuted({
+    required this.approving,
+    required this.timepoint,
+    required this.multisig,
+    required this.callHash,
+    required this.result,
+  });
+
+  factory MultisigExecuted._decode(_i1.Input input) {
+    return MultisigExecuted(
+      approving: const _i1.U8ArrayCodec(32).decode(input),
+      timepoint: _i4.Timepoint.codec.decode(input),
+      multisig: const _i1.U8ArrayCodec(32).decode(input),
+      callHash: const _i1.U8ArrayCodec(32).decode(input),
+      result: const _i1.ResultCodec<dynamic, _i5.DispatchError>(
+        _i1.NullCodec.codec,
+        _i5.DispatchError.codec,
+      ).decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 approving;
+
+  /// Timepoint<BlockNumberFor<T>>
+  final _i4.Timepoint timepoint;
+
+  /// T::AccountId
+  final _i3.AccountId32 multisig;
+
+  /// CallHash
+  final List<int> callHash;
+
+  /// DispatchResult
+  final _i1.Result<dynamic, _i5.DispatchError> result;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'MultisigExecuted': {
+          'approving': approving.toList(),
+          'timepoint': timepoint.toJson(),
+          'multisig': multisig.toList(),
+          'callHash': callHash.toList(),
+          'result': result.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(approving);
+    size = size + _i4.Timepoint.codec.sizeHint(timepoint);
+    size = size + const _i3.AccountId32Codec().sizeHint(multisig);
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(callHash);
+    size = size +
+        const _i1.ResultCodec<dynamic, _i5.DispatchError>(
+          _i1.NullCodec.codec,
+          _i5.DispatchError.codec,
+        ).sizeHint(result);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      approving,
+      output,
+    );
+    _i4.Timepoint.codec.encodeTo(
+      timepoint,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      multisig,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      callHash,
+      output,
+    );
+    const _i1.ResultCodec<dynamic, _i5.DispatchError>(
+      _i1.NullCodec.codec,
+      _i5.DispatchError.codec,
+    ).encodeTo(
+      result,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MultisigExecuted &&
+          _i6.listsEqual(
+            other.approving,
+            approving,
+          ) &&
+          other.timepoint == timepoint &&
+          _i6.listsEqual(
+            other.multisig,
+            multisig,
+          ) &&
+          _i6.listsEqual(
+            other.callHash,
+            callHash,
+          ) &&
+          other.result == result;
+
+  @override
+  int get hashCode => Object.hash(
+        approving,
+        timepoint,
+        multisig,
+        callHash,
+        result,
+      );
+}
+
+/// A multisig operation has been cancelled.
+class MultisigCancelled extends Event {
+  const MultisigCancelled({
+    required this.cancelling,
+    required this.timepoint,
+    required this.multisig,
+    required this.callHash,
+  });
+
+  factory MultisigCancelled._decode(_i1.Input input) {
+    return MultisigCancelled(
+      cancelling: const _i1.U8ArrayCodec(32).decode(input),
+      timepoint: _i4.Timepoint.codec.decode(input),
+      multisig: const _i1.U8ArrayCodec(32).decode(input),
+      callHash: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 cancelling;
+
+  /// Timepoint<BlockNumberFor<T>>
+  final _i4.Timepoint timepoint;
+
+  /// T::AccountId
+  final _i3.AccountId32 multisig;
+
+  /// CallHash
+  final List<int> callHash;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'MultisigCancelled': {
+          'cancelling': cancelling.toList(),
+          'timepoint': timepoint.toJson(),
+          'multisig': multisig.toList(),
+          'callHash': callHash.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(cancelling);
+    size = size + _i4.Timepoint.codec.sizeHint(timepoint);
+    size = size + const _i3.AccountId32Codec().sizeHint(multisig);
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(callHash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      cancelling,
+      output,
+    );
+    _i4.Timepoint.codec.encodeTo(
+      timepoint,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      multisig,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      callHash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MultisigCancelled &&
+          _i6.listsEqual(
+            other.cancelling,
+            cancelling,
+          ) &&
+          other.timepoint == timepoint &&
+          _i6.listsEqual(
+            other.multisig,
+            multisig,
+          ) &&
+          _i6.listsEqual(
+            other.callHash,
+            callHash,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        cancelling,
+        timepoint,
+        multisig,
+        callHash,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_multisig/timepoint.dart b/lib/src/models/generated/duniter/types/pallet_multisig/timepoint.dart
new file mode 100644
index 0000000000000000000000000000000000000000..871425e8e8d8ba42b9e5842864c2fe96c80d1925
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_multisig/timepoint.dart
@@ -0,0 +1,81 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class Timepoint {
+  const Timepoint({
+    required this.height,
+    required this.index,
+  });
+
+  factory Timepoint.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// BlockNumber
+  final int height;
+
+  /// u32
+  final int index;
+
+  static const $TimepointCodec codec = $TimepointCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, int> toJson() => {
+        'height': height,
+        'index': index,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Timepoint && other.height == height && other.index == index;
+
+  @override
+  int get hashCode => Object.hash(
+        height,
+        index,
+      );
+}
+
+class $TimepointCodec with _i1.Codec<Timepoint> {
+  const $TimepointCodec();
+
+  @override
+  void encodeTo(
+    Timepoint obj,
+    _i1.Output output,
+  ) {
+    _i1.U32Codec.codec.encodeTo(
+      obj.height,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.index,
+      output,
+    );
+  }
+
+  @override
+  Timepoint decode(_i1.Input input) {
+    return Timepoint(
+      height: _i1.U32Codec.codec.decode(input),
+      index: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Timepoint obj) {
+    int size = 0;
+    size = size + _i1.U32Codec.codec.sizeHint(obj.height);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.index);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_offences/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_offences/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..bf5f2ea39a21489c157323f1bf883de36bad4e5c
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_offences/pallet/event.dart
@@ -0,0 +1,158 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i3;
+
+/// Events type.
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, List<int>>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  Offence offence({
+    required List<int> kind,
+    required List<int> timeslot,
+  }) {
+    return Offence(
+      kind: kind,
+      timeslot: timeslot,
+    );
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Offence._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Offence:
+        (value as Offence).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case Offence:
+        return (value as Offence)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// An offense was reported during the specified time slot. This event is not deposited for duplicate slashes.
+class Offence extends Event {
+  const Offence({
+    required this.kind,
+    required this.timeslot,
+  });
+
+  factory Offence._decode(_i1.Input input) {
+    return Offence(
+      kind: const _i1.U8ArrayCodec(16).decode(input),
+      timeslot: _i1.U8SequenceCodec.codec.decode(input),
+    );
+  }
+
+  /// Kind
+  final List<int> kind;
+
+  /// OpaqueTimeSlot
+  final List<int> timeslot;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'Offence': {
+          'kind': kind.toList(),
+          'timeslot': timeslot,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i1.U8ArrayCodec(16).sizeHint(kind);
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(timeslot);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(16).encodeTo(
+      kind,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      timeslot,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Offence &&
+          _i3.listsEqual(
+            other.kind,
+            kind,
+          ) &&
+          _i3.listsEqual(
+            other.timeslot,
+            timeslot,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        kind,
+        timeslot,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_oneshot_account/check_nonce/check_nonce.dart b/lib/src/models/generated/duniter/types/pallet_oneshot_account/check_nonce/check_nonce.dart
new file mode 100644
index 0000000000000000000000000000000000000000..67f3e31da3f1a85db50cfefe1c2f317799c4812a
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_oneshot_account/check_nonce/check_nonce.dart
@@ -0,0 +1,31 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../../frame_system/extensions/check_nonce/check_nonce.dart' as _i1;
+
+typedef CheckNonce = _i1.CheckNonce;
+
+class CheckNonceCodec with _i2.Codec<CheckNonce> {
+  const CheckNonceCodec();
+
+  @override
+  CheckNonce decode(_i2.Input input) {
+    return _i2.CompactBigIntCodec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    CheckNonce value,
+    _i2.Output output,
+  ) {
+    _i2.CompactBigIntCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(CheckNonce value) {
+    return const _i1.CheckNonceCodec().sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_oneshot_account/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_oneshot_account/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6fcb828a1f85b206df7c38a7cdb3f105a8e5cda5
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_oneshot_account/pallet/call.dart
@@ -0,0 +1,352 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_runtime/multiaddress/multi_address.dart' as _i3;
+import '../types/account.dart' as _i4;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  CreateOneshotAccount createOneshotAccount({
+    required _i3.MultiAddress dest,
+    required BigInt value,
+  }) {
+    return CreateOneshotAccount(
+      dest: dest,
+      value: value,
+    );
+  }
+
+  ConsumeOneshotAccount consumeOneshotAccount({
+    required int blockHeight,
+    required _i4.Account dest,
+  }) {
+    return ConsumeOneshotAccount(
+      blockHeight: blockHeight,
+      dest: dest,
+    );
+  }
+
+  ConsumeOneshotAccountWithRemaining consumeOneshotAccountWithRemaining({
+    required int blockHeight,
+    required _i4.Account dest,
+    required _i4.Account remainingTo,
+    required BigInt balance,
+  }) {
+    return ConsumeOneshotAccountWithRemaining(
+      blockHeight: blockHeight,
+      dest: dest,
+      remainingTo: remainingTo,
+      balance: balance,
+    );
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return CreateOneshotAccount._decode(input);
+      case 1:
+        return ConsumeOneshotAccount._decode(input);
+      case 2:
+        return ConsumeOneshotAccountWithRemaining._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case CreateOneshotAccount:
+        (value as CreateOneshotAccount).encodeTo(output);
+        break;
+      case ConsumeOneshotAccount:
+        (value as ConsumeOneshotAccount).encodeTo(output);
+        break;
+      case ConsumeOneshotAccountWithRemaining:
+        (value as ConsumeOneshotAccountWithRemaining).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case CreateOneshotAccount:
+        return (value as CreateOneshotAccount)._sizeHint();
+      case ConsumeOneshotAccount:
+        return (value as ConsumeOneshotAccount)._sizeHint();
+      case ConsumeOneshotAccountWithRemaining:
+        return (value as ConsumeOneshotAccountWithRemaining)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::create_oneshot_account`].
+class CreateOneshotAccount extends Call {
+  const CreateOneshotAccount({
+    required this.dest,
+    required this.value,
+  });
+
+  factory CreateOneshotAccount._decode(_i1.Input input) {
+    return CreateOneshotAccount(
+      dest: _i3.MultiAddress.codec.decode(input),
+      value: _i1.CompactBigIntCodec.codec.decode(input),
+    );
+  }
+
+  /// <T::Lookup as StaticLookup>::Source
+  final _i3.MultiAddress dest;
+
+  /// <T::Currency as Currency<T::AccountId>>::Balance
+  final BigInt value;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'create_oneshot_account': {
+          'dest': dest.toJson(),
+          'value': value,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(dest);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(value);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      dest,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is CreateOneshotAccount &&
+          other.dest == dest &&
+          other.value == value;
+
+  @override
+  int get hashCode => Object.hash(
+        dest,
+        value,
+      );
+}
+
+/// See [`Pallet::consume_oneshot_account`].
+class ConsumeOneshotAccount extends Call {
+  const ConsumeOneshotAccount({
+    required this.blockHeight,
+    required this.dest,
+  });
+
+  factory ConsumeOneshotAccount._decode(_i1.Input input) {
+    return ConsumeOneshotAccount(
+      blockHeight: _i1.U32Codec.codec.decode(input),
+      dest: _i4.Account.codec.decode(input),
+    );
+  }
+
+  /// BlockNumberFor<T>
+  final int blockHeight;
+
+  /// Account<<T::Lookup as StaticLookup>::Source>
+  final _i4.Account dest;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'consume_oneshot_account': {
+          'blockHeight': blockHeight,
+          'dest': dest.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(blockHeight);
+    size = size + _i4.Account.codec.sizeHint(dest);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      blockHeight,
+      output,
+    );
+    _i4.Account.codec.encodeTo(
+      dest,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ConsumeOneshotAccount &&
+          other.blockHeight == blockHeight &&
+          other.dest == dest;
+
+  @override
+  int get hashCode => Object.hash(
+        blockHeight,
+        dest,
+      );
+}
+
+/// See [`Pallet::consume_oneshot_account_with_remaining`].
+class ConsumeOneshotAccountWithRemaining extends Call {
+  const ConsumeOneshotAccountWithRemaining({
+    required this.blockHeight,
+    required this.dest,
+    required this.remainingTo,
+    required this.balance,
+  });
+
+  factory ConsumeOneshotAccountWithRemaining._decode(_i1.Input input) {
+    return ConsumeOneshotAccountWithRemaining(
+      blockHeight: _i1.U32Codec.codec.decode(input),
+      dest: _i4.Account.codec.decode(input),
+      remainingTo: _i4.Account.codec.decode(input),
+      balance: _i1.CompactBigIntCodec.codec.decode(input),
+    );
+  }
+
+  /// BlockNumberFor<T>
+  final int blockHeight;
+
+  /// Account<<T::Lookup as StaticLookup>::Source>
+  final _i4.Account dest;
+
+  /// Account<<T::Lookup as StaticLookup>::Source>
+  final _i4.Account remainingTo;
+
+  /// <T::Currency as Currency<T::AccountId>>::Balance
+  final BigInt balance;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'consume_oneshot_account_with_remaining': {
+          'blockHeight': blockHeight,
+          'dest': dest.toJson(),
+          'remainingTo': remainingTo.toJson(),
+          'balance': balance,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(blockHeight);
+    size = size + _i4.Account.codec.sizeHint(dest);
+    size = size + _i4.Account.codec.sizeHint(remainingTo);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(balance);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      blockHeight,
+      output,
+    );
+    _i4.Account.codec.encodeTo(
+      dest,
+      output,
+    );
+    _i4.Account.codec.encodeTo(
+      remainingTo,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      balance,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ConsumeOneshotAccountWithRemaining &&
+          other.blockHeight == blockHeight &&
+          other.dest == dest &&
+          other.remainingTo == remainingTo &&
+          other.balance == balance;
+
+  @override
+  int get hashCode => Object.hash(
+        blockHeight,
+        dest,
+        remainingTo,
+        balance,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_oneshot_account/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_oneshot_account/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..31148696b7f6918b05545dfc450f032f836e6f9b
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_oneshot_account/pallet/error.dart
@@ -0,0 +1,86 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Block height is in the future.
+  blockHeightInFuture('BlockHeightInFuture', 0),
+
+  /// Block height is too old.
+  blockHeightTooOld('BlockHeightTooOld', 1),
+
+  /// Destination account does not exist.
+  destAccountNotExist('DestAccountNotExist', 2),
+
+  /// Destination account has a balance less than the existential deposit.
+  existentialDeposit('ExistentialDeposit', 3),
+
+  /// Source account has insufficient balance.
+  insufficientBalance('InsufficientBalance', 4),
+
+  /// Destination oneshot account already exists.
+  oneshotAccountAlreadyCreated('OneshotAccountAlreadyCreated', 5),
+
+  /// Source oneshot account does not exist.
+  oneshotAccountNotExist('OneshotAccountNotExist', 6);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.blockHeightInFuture;
+      case 1:
+        return Error.blockHeightTooOld;
+      case 2:
+        return Error.destAccountNotExist;
+      case 3:
+        return Error.existentialDeposit;
+      case 4:
+        return Error.insufficientBalance;
+      case 5:
+        return Error.oneshotAccountAlreadyCreated;
+      case 6:
+        return Error.oneshotAccountNotExist;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_oneshot_account/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_oneshot_account/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..100eb593136f6df09d6818b76f3e583e45ce58ab
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_oneshot_account/pallet/event.dart
@@ -0,0 +1,396 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+import '../../tuples.dart' as _i4;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  OneshotAccountCreated oneshotAccountCreated({
+    required _i3.AccountId32 account,
+    required BigInt balance,
+    required _i3.AccountId32 creator,
+  }) {
+    return OneshotAccountCreated(
+      account: account,
+      balance: balance,
+      creator: creator,
+    );
+  }
+
+  OneshotAccountConsumed oneshotAccountConsumed({
+    required _i3.AccountId32 account,
+    required _i4.Tuple2<_i3.AccountId32, BigInt> dest1,
+    _i4.Tuple2<_i3.AccountId32, BigInt>? dest2,
+  }) {
+    return OneshotAccountConsumed(
+      account: account,
+      dest1: dest1,
+      dest2: dest2,
+    );
+  }
+
+  Withdraw withdraw({
+    required _i3.AccountId32 account,
+    required BigInt balance,
+  }) {
+    return Withdraw(
+      account: account,
+      balance: balance,
+    );
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return OneshotAccountCreated._decode(input);
+      case 1:
+        return OneshotAccountConsumed._decode(input);
+      case 2:
+        return Withdraw._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case OneshotAccountCreated:
+        (value as OneshotAccountCreated).encodeTo(output);
+        break;
+      case OneshotAccountConsumed:
+        (value as OneshotAccountConsumed).encodeTo(output);
+        break;
+      case Withdraw:
+        (value as Withdraw).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case OneshotAccountCreated:
+        return (value as OneshotAccountCreated)._sizeHint();
+      case OneshotAccountConsumed:
+        return (value as OneshotAccountConsumed)._sizeHint();
+      case Withdraw:
+        return (value as Withdraw)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// A oneshot account was created.
+class OneshotAccountCreated extends Event {
+  const OneshotAccountCreated({
+    required this.account,
+    required this.balance,
+    required this.creator,
+  });
+
+  factory OneshotAccountCreated._decode(_i1.Input input) {
+    return OneshotAccountCreated(
+      account: const _i1.U8ArrayCodec(32).decode(input),
+      balance: _i1.U64Codec.codec.decode(input),
+      creator: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 account;
+
+  /// <T::Currency as Currency<T::AccountId>>::Balance
+  final BigInt balance;
+
+  /// T::AccountId
+  final _i3.AccountId32 creator;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'OneshotAccountCreated': {
+          'account': account.toList(),
+          'balance': balance,
+          'creator': creator.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(account);
+    size = size + _i1.U64Codec.codec.sizeHint(balance);
+    size = size + const _i3.AccountId32Codec().sizeHint(creator);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      account,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      balance,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      creator,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is OneshotAccountCreated &&
+          _i5.listsEqual(
+            other.account,
+            account,
+          ) &&
+          other.balance == balance &&
+          _i5.listsEqual(
+            other.creator,
+            creator,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        account,
+        balance,
+        creator,
+      );
+}
+
+/// A oneshot account was consumed.
+class OneshotAccountConsumed extends Event {
+  const OneshotAccountConsumed({
+    required this.account,
+    required this.dest1,
+    this.dest2,
+  });
+
+  factory OneshotAccountConsumed._decode(_i1.Input input) {
+    return OneshotAccountConsumed(
+      account: const _i1.U8ArrayCodec(32).decode(input),
+      dest1: const _i4.Tuple2Codec<_i3.AccountId32, BigInt>(
+        _i3.AccountId32Codec(),
+        _i1.U64Codec.codec,
+      ).decode(input),
+      dest2: const _i1.OptionCodec<_i4.Tuple2<_i3.AccountId32, BigInt>>(
+          _i4.Tuple2Codec<_i3.AccountId32, BigInt>(
+        _i3.AccountId32Codec(),
+        _i1.U64Codec.codec,
+      )).decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 account;
+
+  /// (T::AccountId,<T::Currency as Currency<T::AccountId>>::Balance,)
+  final _i4.Tuple2<_i3.AccountId32, BigInt> dest1;
+
+  /// Option<
+  ///(T::AccountId,<T::Currency as Currency<T::AccountId>>::Balance,)
+  ///>
+  final _i4.Tuple2<_i3.AccountId32, BigInt>? dest2;
+
+  @override
+  Map<String, Map<String, List<dynamic>?>> toJson() => {
+        'OneshotAccountConsumed': {
+          'account': account.toList(),
+          'dest1': [
+            dest1.value0.toList(),
+            dest1.value1,
+          ],
+          'dest2': [
+            dest2?.value0.toList(),
+            dest2?.value1,
+          ],
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(account);
+    size = size +
+        const _i4.Tuple2Codec<_i3.AccountId32, BigInt>(
+          _i3.AccountId32Codec(),
+          _i1.U64Codec.codec,
+        ).sizeHint(dest1);
+    size = size +
+        const _i1.OptionCodec<_i4.Tuple2<_i3.AccountId32, BigInt>>(
+            _i4.Tuple2Codec<_i3.AccountId32, BigInt>(
+          _i3.AccountId32Codec(),
+          _i1.U64Codec.codec,
+        )).sizeHint(dest2);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      account,
+      output,
+    );
+    const _i4.Tuple2Codec<_i3.AccountId32, BigInt>(
+      _i3.AccountId32Codec(),
+      _i1.U64Codec.codec,
+    ).encodeTo(
+      dest1,
+      output,
+    );
+    const _i1.OptionCodec<_i4.Tuple2<_i3.AccountId32, BigInt>>(
+        _i4.Tuple2Codec<_i3.AccountId32, BigInt>(
+      _i3.AccountId32Codec(),
+      _i1.U64Codec.codec,
+    )).encodeTo(
+      dest2,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is OneshotAccountConsumed &&
+          _i5.listsEqual(
+            other.account,
+            account,
+          ) &&
+          other.dest1 == dest1 &&
+          other.dest2 == dest2;
+
+  @override
+  int get hashCode => Object.hash(
+        account,
+        dest1,
+        dest2,
+      );
+}
+
+/// A withdrawal was executed on a oneshot account.
+class Withdraw extends Event {
+  const Withdraw({
+    required this.account,
+    required this.balance,
+  });
+
+  factory Withdraw._decode(_i1.Input input) {
+    return Withdraw(
+      account: const _i1.U8ArrayCodec(32).decode(input),
+      balance: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 account;
+
+  /// <T::Currency as Currency<T::AccountId>>::Balance
+  final BigInt balance;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Withdraw': {
+          'account': account.toList(),
+          'balance': balance,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(account);
+    size = size + _i1.U64Codec.codec.sizeHint(balance);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      account,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      balance,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Withdraw &&
+          _i5.listsEqual(
+            other.account,
+            account,
+          ) &&
+          other.balance == balance;
+
+  @override
+  int get hashCode => Object.hash(
+        account,
+        balance,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_oneshot_account/types/account.dart b/lib/src/models/generated/duniter/types/pallet_oneshot_account/types/account.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8a4cfdd15848e7163452bbf27aa27cbcca151c2d
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_oneshot_account/types/account.dart
@@ -0,0 +1,174 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_runtime/multiaddress/multi_address.dart' as _i3;
+
+abstract class Account {
+  const Account();
+
+  factory Account.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $AccountCodec codec = $AccountCodec();
+
+  static const $Account values = $Account();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Account {
+  const $Account();
+
+  Normal normal(_i3.MultiAddress value0) {
+    return Normal(value0);
+  }
+
+  Oneshot oneshot(_i3.MultiAddress value0) {
+    return Oneshot(value0);
+  }
+}
+
+class $AccountCodec with _i1.Codec<Account> {
+  const $AccountCodec();
+
+  @override
+  Account decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Normal._decode(input);
+      case 1:
+        return Oneshot._decode(input);
+      default:
+        throw Exception('Account: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Account value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Normal:
+        (value as Normal).encodeTo(output);
+        break;
+      case Oneshot:
+        (value as Oneshot).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Account: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Account value) {
+    switch (value.runtimeType) {
+      case Normal:
+        return (value as Normal)._sizeHint();
+      case Oneshot:
+        return (value as Oneshot)._sizeHint();
+      default:
+        throw Exception(
+            'Account: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class Normal extends Account {
+  const Normal(this.value0);
+
+  factory Normal._decode(_i1.Input input) {
+    return Normal(_i3.MultiAddress.codec.decode(input));
+  }
+
+  /// AccountId
+  final _i3.MultiAddress value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'Normal': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Normal && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Oneshot extends Account {
+  const Oneshot(this.value0);
+
+  factory Oneshot._decode(_i1.Input input) {
+    return Oneshot(_i3.MultiAddress.codec.decode(input));
+  }
+
+  /// AccountId
+  final _i3.MultiAddress value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'Oneshot': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Oneshot && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_preimage/old_request_status.dart b/lib/src/models/generated/duniter/types/pallet_preimage/old_request_status.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a1a9d58f0e71fcc475a20a30a57951416407806c
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_preimage/old_request_status.dart
@@ -0,0 +1,277 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../sp_core/crypto/account_id32.dart' as _i4;
+import '../tuples.dart' as _i3;
+
+abstract class OldRequestStatus {
+  const OldRequestStatus();
+
+  factory OldRequestStatus.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $OldRequestStatusCodec codec = $OldRequestStatusCodec();
+
+  static const $OldRequestStatus values = $OldRequestStatus();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $OldRequestStatus {
+  const $OldRequestStatus();
+
+  Unrequested unrequested({
+    required _i3.Tuple2<_i4.AccountId32, BigInt> deposit,
+    required int len,
+  }) {
+    return Unrequested(
+      deposit: deposit,
+      len: len,
+    );
+  }
+
+  Requested requested({
+    _i3.Tuple2<_i4.AccountId32, BigInt>? deposit,
+    required int count,
+    int? len,
+  }) {
+    return Requested(
+      deposit: deposit,
+      count: count,
+      len: len,
+    );
+  }
+}
+
+class $OldRequestStatusCodec with _i1.Codec<OldRequestStatus> {
+  const $OldRequestStatusCodec();
+
+  @override
+  OldRequestStatus decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Unrequested._decode(input);
+      case 1:
+        return Requested._decode(input);
+      default:
+        throw Exception('OldRequestStatus: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    OldRequestStatus value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Unrequested:
+        (value as Unrequested).encodeTo(output);
+        break;
+      case Requested:
+        (value as Requested).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'OldRequestStatus: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(OldRequestStatus value) {
+    switch (value.runtimeType) {
+      case Unrequested:
+        return (value as Unrequested)._sizeHint();
+      case Requested:
+        return (value as Requested)._sizeHint();
+      default:
+        throw Exception(
+            'OldRequestStatus: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class Unrequested extends OldRequestStatus {
+  const Unrequested({
+    required this.deposit,
+    required this.len,
+  });
+
+  factory Unrequested._decode(_i1.Input input) {
+    return Unrequested(
+      deposit: const _i3.Tuple2Codec<_i4.AccountId32, BigInt>(
+        _i4.AccountId32Codec(),
+        _i1.U64Codec.codec,
+      ).decode(input),
+      len: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// (AccountId, Balance)
+  final _i3.Tuple2<_i4.AccountId32, BigInt> deposit;
+
+  /// u32
+  final int len;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Unrequested': {
+          'deposit': [
+            deposit.value0.toList(),
+            deposit.value1,
+          ],
+          'len': len,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i3.Tuple2Codec<_i4.AccountId32, BigInt>(
+          _i4.AccountId32Codec(),
+          _i1.U64Codec.codec,
+        ).sizeHint(deposit);
+    size = size + _i1.U32Codec.codec.sizeHint(len);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i3.Tuple2Codec<_i4.AccountId32, BigInt>(
+      _i4.AccountId32Codec(),
+      _i1.U64Codec.codec,
+    ).encodeTo(
+      deposit,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      len,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Unrequested && other.deposit == deposit && other.len == len;
+
+  @override
+  int get hashCode => Object.hash(
+        deposit,
+        len,
+      );
+}
+
+class Requested extends OldRequestStatus {
+  const Requested({
+    this.deposit,
+    required this.count,
+    this.len,
+  });
+
+  factory Requested._decode(_i1.Input input) {
+    return Requested(
+      deposit: const _i1.OptionCodec<_i3.Tuple2<_i4.AccountId32, BigInt>>(
+          _i3.Tuple2Codec<_i4.AccountId32, BigInt>(
+        _i4.AccountId32Codec(),
+        _i1.U64Codec.codec,
+      )).decode(input),
+      count: _i1.U32Codec.codec.decode(input),
+      len: const _i1.OptionCodec<int>(_i1.U32Codec.codec).decode(input),
+    );
+  }
+
+  /// Option<(AccountId, Balance)>
+  final _i3.Tuple2<_i4.AccountId32, BigInt>? deposit;
+
+  /// u32
+  final int count;
+
+  /// Option<u32>
+  final int? len;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Requested': {
+          'deposit': [
+            deposit?.value0.toList(),
+            deposit?.value1,
+          ],
+          'count': count,
+          'len': len,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.OptionCodec<_i3.Tuple2<_i4.AccountId32, BigInt>>(
+            _i3.Tuple2Codec<_i4.AccountId32, BigInt>(
+          _i4.AccountId32Codec(),
+          _i1.U64Codec.codec,
+        )).sizeHint(deposit);
+    size = size + _i1.U32Codec.codec.sizeHint(count);
+    size = size + const _i1.OptionCodec<int>(_i1.U32Codec.codec).sizeHint(len);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i1.OptionCodec<_i3.Tuple2<_i4.AccountId32, BigInt>>(
+        _i3.Tuple2Codec<_i4.AccountId32, BigInt>(
+      _i4.AccountId32Codec(),
+      _i1.U64Codec.codec,
+    )).encodeTo(
+      deposit,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      count,
+      output,
+    );
+    const _i1.OptionCodec<int>(_i1.U32Codec.codec).encodeTo(
+      len,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Requested &&
+          other.deposit == deposit &&
+          other.count == count &&
+          other.len == len;
+
+  @override
+  int get hashCode => Object.hash(
+        deposit,
+        count,
+        len,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_preimage/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_preimage/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8ff7809466315aa3623ea31df25a9f016d5fbc0c
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_preimage/pallet/call.dart
@@ -0,0 +1,375 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../../primitive_types/h256.dart' as _i3;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, List<dynamic>>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  NotePreimage notePreimage({required List<int> bytes}) {
+    return NotePreimage(bytes: bytes);
+  }
+
+  UnnotePreimage unnotePreimage({required _i3.H256 hash}) {
+    return UnnotePreimage(hash: hash);
+  }
+
+  RequestPreimage requestPreimage({required _i3.H256 hash}) {
+    return RequestPreimage(hash: hash);
+  }
+
+  UnrequestPreimage unrequestPreimage({required _i3.H256 hash}) {
+    return UnrequestPreimage(hash: hash);
+  }
+
+  EnsureUpdated ensureUpdated({required List<_i3.H256> hashes}) {
+    return EnsureUpdated(hashes: hashes);
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return NotePreimage._decode(input);
+      case 1:
+        return UnnotePreimage._decode(input);
+      case 2:
+        return RequestPreimage._decode(input);
+      case 3:
+        return UnrequestPreimage._decode(input);
+      case 4:
+        return EnsureUpdated._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case NotePreimage:
+        (value as NotePreimage).encodeTo(output);
+        break;
+      case UnnotePreimage:
+        (value as UnnotePreimage).encodeTo(output);
+        break;
+      case RequestPreimage:
+        (value as RequestPreimage).encodeTo(output);
+        break;
+      case UnrequestPreimage:
+        (value as UnrequestPreimage).encodeTo(output);
+        break;
+      case EnsureUpdated:
+        (value as EnsureUpdated).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case NotePreimage:
+        return (value as NotePreimage)._sizeHint();
+      case UnnotePreimage:
+        return (value as UnnotePreimage)._sizeHint();
+      case RequestPreimage:
+        return (value as RequestPreimage)._sizeHint();
+      case UnrequestPreimage:
+        return (value as UnrequestPreimage)._sizeHint();
+      case EnsureUpdated:
+        return (value as EnsureUpdated)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::note_preimage`].
+class NotePreimage extends Call {
+  const NotePreimage({required this.bytes});
+
+  factory NotePreimage._decode(_i1.Input input) {
+    return NotePreimage(bytes: _i1.U8SequenceCodec.codec.decode(input));
+  }
+
+  /// Vec<u8>
+  final List<int> bytes;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'note_preimage': {'bytes': bytes}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(bytes);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      bytes,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is NotePreimage &&
+          _i4.listsEqual(
+            other.bytes,
+            bytes,
+          );
+
+  @override
+  int get hashCode => bytes.hashCode;
+}
+
+/// See [`Pallet::unnote_preimage`].
+class UnnotePreimage extends Call {
+  const UnnotePreimage({required this.hash});
+
+  factory UnnotePreimage._decode(_i1.Input input) {
+    return UnnotePreimage(hash: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::Hash
+  final _i3.H256 hash;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'unnote_preimage': {'hash': hash.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.H256Codec().sizeHint(hash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      hash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is UnnotePreimage &&
+          _i4.listsEqual(
+            other.hash,
+            hash,
+          );
+
+  @override
+  int get hashCode => hash.hashCode;
+}
+
+/// See [`Pallet::request_preimage`].
+class RequestPreimage extends Call {
+  const RequestPreimage({required this.hash});
+
+  factory RequestPreimage._decode(_i1.Input input) {
+    return RequestPreimage(hash: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::Hash
+  final _i3.H256 hash;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'request_preimage': {'hash': hash.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.H256Codec().sizeHint(hash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      hash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RequestPreimage &&
+          _i4.listsEqual(
+            other.hash,
+            hash,
+          );
+
+  @override
+  int get hashCode => hash.hashCode;
+}
+
+/// See [`Pallet::unrequest_preimage`].
+class UnrequestPreimage extends Call {
+  const UnrequestPreimage({required this.hash});
+
+  factory UnrequestPreimage._decode(_i1.Input input) {
+    return UnrequestPreimage(hash: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::Hash
+  final _i3.H256 hash;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'unrequest_preimage': {'hash': hash.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.H256Codec().sizeHint(hash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      hash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is UnrequestPreimage &&
+          _i4.listsEqual(
+            other.hash,
+            hash,
+          );
+
+  @override
+  int get hashCode => hash.hashCode;
+}
+
+/// See [`Pallet::ensure_updated`].
+class EnsureUpdated extends Call {
+  const EnsureUpdated({required this.hashes});
+
+  factory EnsureUpdated._decode(_i1.Input input) {
+    return EnsureUpdated(
+        hashes:
+            const _i1.SequenceCodec<_i3.H256>(_i3.H256Codec()).decode(input));
+  }
+
+  /// Vec<T::Hash>
+  final List<_i3.H256> hashes;
+
+  @override
+  Map<String, Map<String, List<List<int>>>> toJson() => {
+        'ensure_updated': {
+          'hashes': hashes.map((value) => value.toList()).toList()
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.SequenceCodec<_i3.H256>(_i3.H256Codec()).sizeHint(hashes);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    const _i1.SequenceCodec<_i3.H256>(_i3.H256Codec()).encodeTo(
+      hashes,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is EnsureUpdated &&
+          _i4.listsEqual(
+            other.hashes,
+            hashes,
+          );
+
+  @override
+  int get hashCode => hashes.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_preimage/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_preimage/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e363a05103ddbe1556a0e8df13552b73ff48bad9
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_preimage/pallet/error.dart
@@ -0,0 +1,91 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Preimage is too large to store on-chain.
+  tooBig('TooBig', 0),
+
+  /// Preimage has already been noted on-chain.
+  alreadyNoted('AlreadyNoted', 1),
+
+  /// The user is not authorized to perform this action.
+  notAuthorized('NotAuthorized', 2),
+
+  /// The preimage cannot be removed since it has not yet been noted.
+  notNoted('NotNoted', 3),
+
+  /// A preimage may not be removed when there are outstanding requests.
+  requested('Requested', 4),
+
+  /// The preimage request cannot be removed since no outstanding requests exist.
+  notRequested('NotRequested', 5),
+
+  /// More than `MAX_HASH_UPGRADE_BULK_COUNT` hashes were requested to be upgraded at once.
+  tooMany('TooMany', 6),
+
+  /// Too few hashes were requested to be upgraded (i.e. zero).
+  tooFew('TooFew', 7);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.tooBig;
+      case 1:
+        return Error.alreadyNoted;
+      case 2:
+        return Error.notAuthorized;
+      case 3:
+        return Error.notNoted;
+      case 4:
+        return Error.requested;
+      case 5:
+        return Error.notRequested;
+      case 6:
+        return Error.tooMany;
+      case 7:
+        return Error.tooFew;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_preimage/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_preimage/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f54cb52b43baba2121a2df6bb484956f718ace9b
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_preimage/pallet/event.dart
@@ -0,0 +1,250 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../../primitive_types/h256.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, List<int>>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  Noted noted({required _i3.H256 hash}) {
+    return Noted(hash: hash);
+  }
+
+  Requested requested({required _i3.H256 hash}) {
+    return Requested(hash: hash);
+  }
+
+  Cleared cleared({required _i3.H256 hash}) {
+    return Cleared(hash: hash);
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Noted._decode(input);
+      case 1:
+        return Requested._decode(input);
+      case 2:
+        return Cleared._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Noted:
+        (value as Noted).encodeTo(output);
+        break;
+      case Requested:
+        (value as Requested).encodeTo(output);
+        break;
+      case Cleared:
+        (value as Cleared).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case Noted:
+        return (value as Noted)._sizeHint();
+      case Requested:
+        return (value as Requested)._sizeHint();
+      case Cleared:
+        return (value as Cleared)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// A preimage has been noted.
+class Noted extends Event {
+  const Noted({required this.hash});
+
+  factory Noted._decode(_i1.Input input) {
+    return Noted(hash: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::Hash
+  final _i3.H256 hash;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'Noted': {'hash': hash.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.H256Codec().sizeHint(hash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      hash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Noted &&
+          _i4.listsEqual(
+            other.hash,
+            hash,
+          );
+
+  @override
+  int get hashCode => hash.hashCode;
+}
+
+/// A preimage has been requested.
+class Requested extends Event {
+  const Requested({required this.hash});
+
+  factory Requested._decode(_i1.Input input) {
+    return Requested(hash: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::Hash
+  final _i3.H256 hash;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'Requested': {'hash': hash.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.H256Codec().sizeHint(hash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      hash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Requested &&
+          _i4.listsEqual(
+            other.hash,
+            hash,
+          );
+
+  @override
+  int get hashCode => hash.hashCode;
+}
+
+/// A preimage has ben cleared.
+class Cleared extends Event {
+  const Cleared({required this.hash});
+
+  factory Cleared._decode(_i1.Input input) {
+    return Cleared(hash: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::Hash
+  final _i3.H256 hash;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'Cleared': {'hash': hash.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.H256Codec().sizeHint(hash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      hash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Cleared &&
+          _i4.listsEqual(
+            other.hash,
+            hash,
+          );
+
+  @override
+  int get hashCode => hash.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_preimage/request_status.dart b/lib/src/models/generated/duniter/types/pallet_preimage/request_status.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c2869fdc1a88d78cdcfcb6aeb5fc9da28b723519
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_preimage/request_status.dart
@@ -0,0 +1,278 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../sp_core/crypto/account_id32.dart' as _i4;
+import '../tuples.dart' as _i3;
+
+abstract class RequestStatus {
+  const RequestStatus();
+
+  factory RequestStatus.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $RequestStatusCodec codec = $RequestStatusCodec();
+
+  static const $RequestStatus values = $RequestStatus();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $RequestStatus {
+  const $RequestStatus();
+
+  Unrequested unrequested({
+    required _i3.Tuple2<_i4.AccountId32, dynamic> ticket,
+    required int len,
+  }) {
+    return Unrequested(
+      ticket: ticket,
+      len: len,
+    );
+  }
+
+  Requested requested({
+    _i3.Tuple2<_i4.AccountId32, dynamic>? maybeTicket,
+    required int count,
+    int? maybeLen,
+  }) {
+    return Requested(
+      maybeTicket: maybeTicket,
+      count: count,
+      maybeLen: maybeLen,
+    );
+  }
+}
+
+class $RequestStatusCodec with _i1.Codec<RequestStatus> {
+  const $RequestStatusCodec();
+
+  @override
+  RequestStatus decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Unrequested._decode(input);
+      case 1:
+        return Requested._decode(input);
+      default:
+        throw Exception('RequestStatus: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    RequestStatus value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Unrequested:
+        (value as Unrequested).encodeTo(output);
+        break;
+      case Requested:
+        (value as Requested).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'RequestStatus: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(RequestStatus value) {
+    switch (value.runtimeType) {
+      case Unrequested:
+        return (value as Unrequested)._sizeHint();
+      case Requested:
+        return (value as Requested)._sizeHint();
+      default:
+        throw Exception(
+            'RequestStatus: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class Unrequested extends RequestStatus {
+  const Unrequested({
+    required this.ticket,
+    required this.len,
+  });
+
+  factory Unrequested._decode(_i1.Input input) {
+    return Unrequested(
+      ticket: const _i3.Tuple2Codec<_i4.AccountId32, dynamic>(
+        _i4.AccountId32Codec(),
+        _i1.NullCodec.codec,
+      ).decode(input),
+      len: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// (AccountId, Ticket)
+  final _i3.Tuple2<_i4.AccountId32, dynamic> ticket;
+
+  /// u32
+  final int len;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Unrequested': {
+          'ticket': [
+            ticket.value0.toList(),
+            null,
+          ],
+          'len': len,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i3.Tuple2Codec<_i4.AccountId32, dynamic>(
+          _i4.AccountId32Codec(),
+          _i1.NullCodec.codec,
+        ).sizeHint(ticket);
+    size = size + _i1.U32Codec.codec.sizeHint(len);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i3.Tuple2Codec<_i4.AccountId32, dynamic>(
+      _i4.AccountId32Codec(),
+      _i1.NullCodec.codec,
+    ).encodeTo(
+      ticket,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      len,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Unrequested && other.ticket == ticket && other.len == len;
+
+  @override
+  int get hashCode => Object.hash(
+        ticket,
+        len,
+      );
+}
+
+class Requested extends RequestStatus {
+  const Requested({
+    this.maybeTicket,
+    required this.count,
+    this.maybeLen,
+  });
+
+  factory Requested._decode(_i1.Input input) {
+    return Requested(
+      maybeTicket: const _i1.OptionCodec<_i3.Tuple2<_i4.AccountId32, dynamic>>(
+          _i3.Tuple2Codec<_i4.AccountId32, dynamic>(
+        _i4.AccountId32Codec(),
+        _i1.NullCodec.codec,
+      )).decode(input),
+      count: _i1.U32Codec.codec.decode(input),
+      maybeLen: const _i1.OptionCodec<int>(_i1.U32Codec.codec).decode(input),
+    );
+  }
+
+  /// Option<(AccountId, Ticket)>
+  final _i3.Tuple2<_i4.AccountId32, dynamic>? maybeTicket;
+
+  /// u32
+  final int count;
+
+  /// Option<u32>
+  final int? maybeLen;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Requested': {
+          'maybeTicket': [
+            maybeTicket?.value0.toList(),
+            null,
+          ],
+          'count': count,
+          'maybeLen': maybeLen,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.OptionCodec<_i3.Tuple2<_i4.AccountId32, dynamic>>(
+            _i3.Tuple2Codec<_i4.AccountId32, dynamic>(
+          _i4.AccountId32Codec(),
+          _i1.NullCodec.codec,
+        )).sizeHint(maybeTicket);
+    size = size + _i1.U32Codec.codec.sizeHint(count);
+    size = size +
+        const _i1.OptionCodec<int>(_i1.U32Codec.codec).sizeHint(maybeLen);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i1.OptionCodec<_i3.Tuple2<_i4.AccountId32, dynamic>>(
+        _i3.Tuple2Codec<_i4.AccountId32, dynamic>(
+      _i4.AccountId32Codec(),
+      _i1.NullCodec.codec,
+    )).encodeTo(
+      maybeTicket,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      count,
+      output,
+    );
+    const _i1.OptionCodec<int>(_i1.U32Codec.codec).encodeTo(
+      maybeLen,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Requested &&
+          other.maybeTicket == maybeTicket &&
+          other.count == count &&
+          other.maybeLen == maybeLen;
+
+  @override
+  int get hashCode => Object.hash(
+        maybeTicket,
+        count,
+        maybeLen,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_provide_randomness/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_provide_randomness/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f608fddff5f6323ab983cfd3b09374a1bcb1f126
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_provide_randomness/pallet/call.dart
@@ -0,0 +1,158 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../../primitive_types/h256.dart' as _i4;
+import '../types/randomness_type.dart' as _i3;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  Request request({
+    required _i3.RandomnessType randomnessType,
+    required _i4.H256 salt,
+  }) {
+    return Request(
+      randomnessType: randomnessType,
+      salt: salt,
+    );
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Request._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Request:
+        (value as Request).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case Request:
+        return (value as Request)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::request`].
+class Request extends Call {
+  const Request({
+    required this.randomnessType,
+    required this.salt,
+  });
+
+  factory Request._decode(_i1.Input input) {
+    return Request(
+      randomnessType: _i3.RandomnessType.codec.decode(input),
+      salt: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// RandomnessType
+  final _i3.RandomnessType randomnessType;
+
+  /// H256
+  final _i4.H256 salt;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'request': {
+          'randomnessType': randomnessType.toJson(),
+          'salt': salt.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.RandomnessType.codec.sizeHint(randomnessType);
+    size = size + const _i4.H256Codec().sizeHint(salt);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.RandomnessType.codec.encodeTo(
+      randomnessType,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      salt,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Request &&
+          other.randomnessType == randomnessType &&
+          _i5.listsEqual(
+            other.salt,
+            salt,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        randomnessType,
+        salt,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_provide_randomness/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_provide_randomness/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8ceaf3e762a88978a1611a3ca28703aea5f20e19
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_provide_randomness/pallet/error.dart
@@ -0,0 +1,56 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Request randomness queue is full.
+  queueFull('QueueFull', 0);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.queueFull;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_provide_randomness/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_provide_randomness/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..ce1c01bb9e75b64e7666d52b7e4b465a10b3f101
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_provide_randomness/pallet/event.dart
@@ -0,0 +1,260 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../../primitive_types/h256.dart' as _i3;
+import '../types/randomness_type.dart' as _i4;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  FilledRandomness filledRandomness({
+    required BigInt requestId,
+    required _i3.H256 randomness,
+  }) {
+    return FilledRandomness(
+      requestId: requestId,
+      randomness: randomness,
+    );
+  }
+
+  RequestedRandomness requestedRandomness({
+    required BigInt requestId,
+    required _i3.H256 salt,
+    required _i4.RandomnessType type,
+  }) {
+    return RequestedRandomness(
+      requestId: requestId,
+      salt: salt,
+      type: type,
+    );
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return FilledRandomness._decode(input);
+      case 1:
+        return RequestedRandomness._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case FilledRandomness:
+        (value as FilledRandomness).encodeTo(output);
+        break;
+      case RequestedRandomness:
+        (value as RequestedRandomness).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case FilledRandomness:
+        return (value as FilledRandomness)._sizeHint();
+      case RequestedRandomness:
+        return (value as RequestedRandomness)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// A request for randomness was fulfilled.
+class FilledRandomness extends Event {
+  const FilledRandomness({
+    required this.requestId,
+    required this.randomness,
+  });
+
+  factory FilledRandomness._decode(_i1.Input input) {
+    return FilledRandomness(
+      requestId: _i1.U64Codec.codec.decode(input),
+      randomness: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// RequestId
+  final BigInt requestId;
+
+  /// H256
+  final _i3.H256 randomness;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'FilledRandomness': {
+          'requestId': requestId,
+          'randomness': randomness.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U64Codec.codec.sizeHint(requestId);
+    size = size + const _i3.H256Codec().sizeHint(randomness);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      requestId,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      randomness,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is FilledRandomness &&
+          other.requestId == requestId &&
+          _i5.listsEqual(
+            other.randomness,
+            randomness,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        requestId,
+        randomness,
+      );
+}
+
+/// A request for randomness was made.
+class RequestedRandomness extends Event {
+  const RequestedRandomness({
+    required this.requestId,
+    required this.salt,
+    required this.type,
+  });
+
+  factory RequestedRandomness._decode(_i1.Input input) {
+    return RequestedRandomness(
+      requestId: _i1.U64Codec.codec.decode(input),
+      salt: const _i1.U8ArrayCodec(32).decode(input),
+      type: _i4.RandomnessType.codec.decode(input),
+    );
+  }
+
+  /// RequestId
+  final BigInt requestId;
+
+  /// H256
+  final _i3.H256 salt;
+
+  /// RandomnessType
+  final _i4.RandomnessType type;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'RequestedRandomness': {
+          'requestId': requestId,
+          'salt': salt.toList(),
+          'r#type': type.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U64Codec.codec.sizeHint(requestId);
+    size = size + const _i3.H256Codec().sizeHint(salt);
+    size = size + _i4.RandomnessType.codec.sizeHint(type);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      requestId,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      salt,
+      output,
+    );
+    _i4.RandomnessType.codec.encodeTo(
+      type,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RequestedRandomness &&
+          other.requestId == requestId &&
+          _i5.listsEqual(
+            other.salt,
+            salt,
+          ) &&
+          other.type == type;
+
+  @override
+  int get hashCode => Object.hash(
+        requestId,
+        salt,
+        type,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_provide_randomness/types/randomness_type.dart b/lib/src/models/generated/duniter/types/pallet_provide_randomness/types/randomness_type.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d693afa6e0d05c6354886b77ebd7754f1423ebdf
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_provide_randomness/types/randomness_type.dart
@@ -0,0 +1,60 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum RandomnessType {
+  randomnessFromPreviousBlock('RandomnessFromPreviousBlock', 0),
+  randomnessFromOneEpochAgo('RandomnessFromOneEpochAgo', 1),
+  randomnessFromTwoEpochsAgo('RandomnessFromTwoEpochsAgo', 2);
+
+  const RandomnessType(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory RandomnessType.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $RandomnessTypeCodec codec = $RandomnessTypeCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $RandomnessTypeCodec with _i1.Codec<RandomnessType> {
+  const $RandomnessTypeCodec();
+
+  @override
+  RandomnessType decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return RandomnessType.randomnessFromPreviousBlock;
+      case 1:
+        return RandomnessType.randomnessFromOneEpochAgo;
+      case 2:
+        return RandomnessType.randomnessFromTwoEpochsAgo;
+      default:
+        throw Exception('RandomnessType: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    RandomnessType value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_provide_randomness/types/request.dart b/lib/src/models/generated/duniter/types/pallet_provide_randomness/types/request.dart
new file mode 100644
index 0000000000000000000000000000000000000000..b90ed84fa437885d60b4d344dd4c05bc7d1f61f1
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_provide_randomness/types/request.dart
@@ -0,0 +1,89 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../../primitive_types/h256.dart' as _i2;
+
+class Request {
+  const Request({
+    required this.requestId,
+    required this.salt,
+  });
+
+  factory Request.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// RequestId
+  final BigInt requestId;
+
+  /// H256
+  final _i2.H256 salt;
+
+  static const $RequestCodec codec = $RequestCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'requestId': requestId,
+        'salt': salt.toList(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Request &&
+          other.requestId == requestId &&
+          _i4.listsEqual(
+            other.salt,
+            salt,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        requestId,
+        salt,
+      );
+}
+
+class $RequestCodec with _i1.Codec<Request> {
+  const $RequestCodec();
+
+  @override
+  void encodeTo(
+    Request obj,
+    _i1.Output output,
+  ) {
+    _i1.U64Codec.codec.encodeTo(
+      obj.requestId,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.salt,
+      output,
+    );
+  }
+
+  @override
+  Request decode(_i1.Input input) {
+    return Request(
+      requestId: _i1.U64Codec.codec.decode(input),
+      salt: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Request obj) {
+    int size = 0;
+    size = size + _i1.U64Codec.codec.sizeHint(obj.requestId);
+    size = size + const _i2.H256Codec().sizeHint(obj.salt);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_proxy/announcement.dart b/lib/src/models/generated/duniter/types/pallet_proxy/announcement.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c3f8459cba9e1465b985161c3cbf8dff7f13fc82
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_proxy/announcement.dart
@@ -0,0 +1,106 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../primitive_types/h256.dart' as _i3;
+import '../sp_core/crypto/account_id32.dart' as _i2;
+
+class Announcement {
+  const Announcement({
+    required this.real,
+    required this.callHash,
+    required this.height,
+  });
+
+  factory Announcement.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// AccountId
+  final _i2.AccountId32 real;
+
+  /// Hash
+  final _i3.H256 callHash;
+
+  /// BlockNumber
+  final int height;
+
+  static const $AnnouncementCodec codec = $AnnouncementCodec();
+
+  _i4.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'real': real.toList(),
+        'callHash': callHash.toList(),
+        'height': height,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Announcement &&
+          _i5.listsEqual(
+            other.real,
+            real,
+          ) &&
+          _i5.listsEqual(
+            other.callHash,
+            callHash,
+          ) &&
+          other.height == height;
+
+  @override
+  int get hashCode => Object.hash(
+        real,
+        callHash,
+        height,
+      );
+}
+
+class $AnnouncementCodec with _i1.Codec<Announcement> {
+  const $AnnouncementCodec();
+
+  @override
+  void encodeTo(
+    Announcement obj,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.real,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.callHash,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.height,
+      output,
+    );
+  }
+
+  @override
+  Announcement decode(_i1.Input input) {
+    return Announcement(
+      real: const _i1.U8ArrayCodec(32).decode(input),
+      callHash: const _i1.U8ArrayCodec(32).decode(input),
+      height: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Announcement obj) {
+    int size = 0;
+    size = size + const _i2.AccountId32Codec().sizeHint(obj.real);
+    size = size + const _i3.H256Codec().sizeHint(obj.callHash);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.height);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_proxy/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_proxy/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e7f1d28c4cd4ea81e39946ab04dcb7171776e198
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_proxy/pallet/call.dart
@@ -0,0 +1,1011 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i7;
+
+import '../../gdev_runtime/proxy_type.dart' as _i4;
+import '../../gdev_runtime/runtime_call.dart' as _i5;
+import '../../primitive_types/h256.dart' as _i6;
+import '../../sp_runtime/multiaddress/multi_address.dart' as _i3;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  Proxy proxy({
+    required _i3.MultiAddress real,
+    _i4.ProxyType? forceProxyType,
+    required _i5.RuntimeCall call,
+  }) {
+    return Proxy(
+      real: real,
+      forceProxyType: forceProxyType,
+      call: call,
+    );
+  }
+
+  AddProxy addProxy({
+    required _i3.MultiAddress delegate,
+    required _i4.ProxyType proxyType,
+    required int delay,
+  }) {
+    return AddProxy(
+      delegate: delegate,
+      proxyType: proxyType,
+      delay: delay,
+    );
+  }
+
+  RemoveProxy removeProxy({
+    required _i3.MultiAddress delegate,
+    required _i4.ProxyType proxyType,
+    required int delay,
+  }) {
+    return RemoveProxy(
+      delegate: delegate,
+      proxyType: proxyType,
+      delay: delay,
+    );
+  }
+
+  RemoveProxies removeProxies() {
+    return const RemoveProxies();
+  }
+
+  CreatePure createPure({
+    required _i4.ProxyType proxyType,
+    required int delay,
+    required int index,
+  }) {
+    return CreatePure(
+      proxyType: proxyType,
+      delay: delay,
+      index: index,
+    );
+  }
+
+  KillPure killPure({
+    required _i3.MultiAddress spawner,
+    required _i4.ProxyType proxyType,
+    required int index,
+    required BigInt height,
+    required BigInt extIndex,
+  }) {
+    return KillPure(
+      spawner: spawner,
+      proxyType: proxyType,
+      index: index,
+      height: height,
+      extIndex: extIndex,
+    );
+  }
+
+  Announce announce({
+    required _i3.MultiAddress real,
+    required _i6.H256 callHash,
+  }) {
+    return Announce(
+      real: real,
+      callHash: callHash,
+    );
+  }
+
+  RemoveAnnouncement removeAnnouncement({
+    required _i3.MultiAddress real,
+    required _i6.H256 callHash,
+  }) {
+    return RemoveAnnouncement(
+      real: real,
+      callHash: callHash,
+    );
+  }
+
+  RejectAnnouncement rejectAnnouncement({
+    required _i3.MultiAddress delegate,
+    required _i6.H256 callHash,
+  }) {
+    return RejectAnnouncement(
+      delegate: delegate,
+      callHash: callHash,
+    );
+  }
+
+  ProxyAnnounced proxyAnnounced({
+    required _i3.MultiAddress delegate,
+    required _i3.MultiAddress real,
+    _i4.ProxyType? forceProxyType,
+    required _i5.RuntimeCall call,
+  }) {
+    return ProxyAnnounced(
+      delegate: delegate,
+      real: real,
+      forceProxyType: forceProxyType,
+      call: call,
+    );
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Proxy._decode(input);
+      case 1:
+        return AddProxy._decode(input);
+      case 2:
+        return RemoveProxy._decode(input);
+      case 3:
+        return const RemoveProxies();
+      case 4:
+        return CreatePure._decode(input);
+      case 5:
+        return KillPure._decode(input);
+      case 6:
+        return Announce._decode(input);
+      case 7:
+        return RemoveAnnouncement._decode(input);
+      case 8:
+        return RejectAnnouncement._decode(input);
+      case 9:
+        return ProxyAnnounced._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Proxy:
+        (value as Proxy).encodeTo(output);
+        break;
+      case AddProxy:
+        (value as AddProxy).encodeTo(output);
+        break;
+      case RemoveProxy:
+        (value as RemoveProxy).encodeTo(output);
+        break;
+      case RemoveProxies:
+        (value as RemoveProxies).encodeTo(output);
+        break;
+      case CreatePure:
+        (value as CreatePure).encodeTo(output);
+        break;
+      case KillPure:
+        (value as KillPure).encodeTo(output);
+        break;
+      case Announce:
+        (value as Announce).encodeTo(output);
+        break;
+      case RemoveAnnouncement:
+        (value as RemoveAnnouncement).encodeTo(output);
+        break;
+      case RejectAnnouncement:
+        (value as RejectAnnouncement).encodeTo(output);
+        break;
+      case ProxyAnnounced:
+        (value as ProxyAnnounced).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case Proxy:
+        return (value as Proxy)._sizeHint();
+      case AddProxy:
+        return (value as AddProxy)._sizeHint();
+      case RemoveProxy:
+        return (value as RemoveProxy)._sizeHint();
+      case RemoveProxies:
+        return 1;
+      case CreatePure:
+        return (value as CreatePure)._sizeHint();
+      case KillPure:
+        return (value as KillPure)._sizeHint();
+      case Announce:
+        return (value as Announce)._sizeHint();
+      case RemoveAnnouncement:
+        return (value as RemoveAnnouncement)._sizeHint();
+      case RejectAnnouncement:
+        return (value as RejectAnnouncement)._sizeHint();
+      case ProxyAnnounced:
+        return (value as ProxyAnnounced)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::proxy`].
+class Proxy extends Call {
+  const Proxy({
+    required this.real,
+    this.forceProxyType,
+    required this.call,
+  });
+
+  factory Proxy._decode(_i1.Input input) {
+    return Proxy(
+      real: _i3.MultiAddress.codec.decode(input),
+      forceProxyType: const _i1.OptionCodec<_i4.ProxyType>(_i4.ProxyType.codec)
+          .decode(input),
+      call: _i5.RuntimeCall.codec.decode(input),
+    );
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress real;
+
+  /// Option<T::ProxyType>
+  final _i4.ProxyType? forceProxyType;
+
+  /// Box<<T as Config>::RuntimeCall>
+  final _i5.RuntimeCall call;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'proxy': {
+          'real': real.toJson(),
+          'forceProxyType': forceProxyType?.toJson(),
+          'call': call.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(real);
+    size = size +
+        const _i1.OptionCodec<_i4.ProxyType>(_i4.ProxyType.codec)
+            .sizeHint(forceProxyType);
+    size = size + _i5.RuntimeCall.codec.sizeHint(call);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      real,
+      output,
+    );
+    const _i1.OptionCodec<_i4.ProxyType>(_i4.ProxyType.codec).encodeTo(
+      forceProxyType,
+      output,
+    );
+    _i5.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Proxy &&
+          other.real == real &&
+          other.forceProxyType == forceProxyType &&
+          other.call == call;
+
+  @override
+  int get hashCode => Object.hash(
+        real,
+        forceProxyType,
+        call,
+      );
+}
+
+/// See [`Pallet::add_proxy`].
+class AddProxy extends Call {
+  const AddProxy({
+    required this.delegate,
+    required this.proxyType,
+    required this.delay,
+  });
+
+  factory AddProxy._decode(_i1.Input input) {
+    return AddProxy(
+      delegate: _i3.MultiAddress.codec.decode(input),
+      proxyType: _i4.ProxyType.codec.decode(input),
+      delay: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress delegate;
+
+  /// T::ProxyType
+  final _i4.ProxyType proxyType;
+
+  /// BlockNumberFor<T>
+  final int delay;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'add_proxy': {
+          'delegate': delegate.toJson(),
+          'proxyType': proxyType.toJson(),
+          'delay': delay,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(delegate);
+    size = size + _i4.ProxyType.codec.sizeHint(proxyType);
+    size = size + _i1.U32Codec.codec.sizeHint(delay);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      delegate,
+      output,
+    );
+    _i4.ProxyType.codec.encodeTo(
+      proxyType,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      delay,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AddProxy &&
+          other.delegate == delegate &&
+          other.proxyType == proxyType &&
+          other.delay == delay;
+
+  @override
+  int get hashCode => Object.hash(
+        delegate,
+        proxyType,
+        delay,
+      );
+}
+
+/// See [`Pallet::remove_proxy`].
+class RemoveProxy extends Call {
+  const RemoveProxy({
+    required this.delegate,
+    required this.proxyType,
+    required this.delay,
+  });
+
+  factory RemoveProxy._decode(_i1.Input input) {
+    return RemoveProxy(
+      delegate: _i3.MultiAddress.codec.decode(input),
+      proxyType: _i4.ProxyType.codec.decode(input),
+      delay: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress delegate;
+
+  /// T::ProxyType
+  final _i4.ProxyType proxyType;
+
+  /// BlockNumberFor<T>
+  final int delay;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'remove_proxy': {
+          'delegate': delegate.toJson(),
+          'proxyType': proxyType.toJson(),
+          'delay': delay,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(delegate);
+    size = size + _i4.ProxyType.codec.sizeHint(proxyType);
+    size = size + _i1.U32Codec.codec.sizeHint(delay);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      delegate,
+      output,
+    );
+    _i4.ProxyType.codec.encodeTo(
+      proxyType,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      delay,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RemoveProxy &&
+          other.delegate == delegate &&
+          other.proxyType == proxyType &&
+          other.delay == delay;
+
+  @override
+  int get hashCode => Object.hash(
+        delegate,
+        proxyType,
+        delay,
+      );
+}
+
+/// See [`Pallet::remove_proxies`].
+class RemoveProxies extends Call {
+  const RemoveProxies();
+
+  @override
+  Map<String, dynamic> toJson() => {'remove_proxies': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is RemoveProxies;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+/// See [`Pallet::create_pure`].
+class CreatePure extends Call {
+  const CreatePure({
+    required this.proxyType,
+    required this.delay,
+    required this.index,
+  });
+
+  factory CreatePure._decode(_i1.Input input) {
+    return CreatePure(
+      proxyType: _i4.ProxyType.codec.decode(input),
+      delay: _i1.U32Codec.codec.decode(input),
+      index: _i1.U16Codec.codec.decode(input),
+    );
+  }
+
+  /// T::ProxyType
+  final _i4.ProxyType proxyType;
+
+  /// BlockNumberFor<T>
+  final int delay;
+
+  /// u16
+  final int index;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'create_pure': {
+          'proxyType': proxyType.toJson(),
+          'delay': delay,
+          'index': index,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i4.ProxyType.codec.sizeHint(proxyType);
+    size = size + _i1.U32Codec.codec.sizeHint(delay);
+    size = size + _i1.U16Codec.codec.sizeHint(index);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    _i4.ProxyType.codec.encodeTo(
+      proxyType,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      delay,
+      output,
+    );
+    _i1.U16Codec.codec.encodeTo(
+      index,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is CreatePure &&
+          other.proxyType == proxyType &&
+          other.delay == delay &&
+          other.index == index;
+
+  @override
+  int get hashCode => Object.hash(
+        proxyType,
+        delay,
+        index,
+      );
+}
+
+/// See [`Pallet::kill_pure`].
+class KillPure extends Call {
+  const KillPure({
+    required this.spawner,
+    required this.proxyType,
+    required this.index,
+    required this.height,
+    required this.extIndex,
+  });
+
+  factory KillPure._decode(_i1.Input input) {
+    return KillPure(
+      spawner: _i3.MultiAddress.codec.decode(input),
+      proxyType: _i4.ProxyType.codec.decode(input),
+      index: _i1.U16Codec.codec.decode(input),
+      height: _i1.CompactBigIntCodec.codec.decode(input),
+      extIndex: _i1.CompactBigIntCodec.codec.decode(input),
+    );
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress spawner;
+
+  /// T::ProxyType
+  final _i4.ProxyType proxyType;
+
+  /// u16
+  final int index;
+
+  /// BlockNumberFor<T>
+  final BigInt height;
+
+  /// u32
+  final BigInt extIndex;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'kill_pure': {
+          'spawner': spawner.toJson(),
+          'proxyType': proxyType.toJson(),
+          'index': index,
+          'height': height,
+          'extIndex': extIndex,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(spawner);
+    size = size + _i4.ProxyType.codec.sizeHint(proxyType);
+    size = size + _i1.U16Codec.codec.sizeHint(index);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(height);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(extIndex);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      spawner,
+      output,
+    );
+    _i4.ProxyType.codec.encodeTo(
+      proxyType,
+      output,
+    );
+    _i1.U16Codec.codec.encodeTo(
+      index,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      height,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      extIndex,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is KillPure &&
+          other.spawner == spawner &&
+          other.proxyType == proxyType &&
+          other.index == index &&
+          other.height == height &&
+          other.extIndex == extIndex;
+
+  @override
+  int get hashCode => Object.hash(
+        spawner,
+        proxyType,
+        index,
+        height,
+        extIndex,
+      );
+}
+
+/// See [`Pallet::announce`].
+class Announce extends Call {
+  const Announce({
+    required this.real,
+    required this.callHash,
+  });
+
+  factory Announce._decode(_i1.Input input) {
+    return Announce(
+      real: _i3.MultiAddress.codec.decode(input),
+      callHash: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress real;
+
+  /// CallHashOf<T>
+  final _i6.H256 callHash;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'announce': {
+          'real': real.toJson(),
+          'callHash': callHash.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(real);
+    size = size + const _i6.H256Codec().sizeHint(callHash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      6,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      real,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      callHash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Announce &&
+          other.real == real &&
+          _i7.listsEqual(
+            other.callHash,
+            callHash,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        real,
+        callHash,
+      );
+}
+
+/// See [`Pallet::remove_announcement`].
+class RemoveAnnouncement extends Call {
+  const RemoveAnnouncement({
+    required this.real,
+    required this.callHash,
+  });
+
+  factory RemoveAnnouncement._decode(_i1.Input input) {
+    return RemoveAnnouncement(
+      real: _i3.MultiAddress.codec.decode(input),
+      callHash: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress real;
+
+  /// CallHashOf<T>
+  final _i6.H256 callHash;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'remove_announcement': {
+          'real': real.toJson(),
+          'callHash': callHash.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(real);
+    size = size + const _i6.H256Codec().sizeHint(callHash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      7,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      real,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      callHash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RemoveAnnouncement &&
+          other.real == real &&
+          _i7.listsEqual(
+            other.callHash,
+            callHash,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        real,
+        callHash,
+      );
+}
+
+/// See [`Pallet::reject_announcement`].
+class RejectAnnouncement extends Call {
+  const RejectAnnouncement({
+    required this.delegate,
+    required this.callHash,
+  });
+
+  factory RejectAnnouncement._decode(_i1.Input input) {
+    return RejectAnnouncement(
+      delegate: _i3.MultiAddress.codec.decode(input),
+      callHash: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress delegate;
+
+  /// CallHashOf<T>
+  final _i6.H256 callHash;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'reject_announcement': {
+          'delegate': delegate.toJson(),
+          'callHash': callHash.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(delegate);
+    size = size + const _i6.H256Codec().sizeHint(callHash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      8,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      delegate,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      callHash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RejectAnnouncement &&
+          other.delegate == delegate &&
+          _i7.listsEqual(
+            other.callHash,
+            callHash,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        delegate,
+        callHash,
+      );
+}
+
+/// See [`Pallet::proxy_announced`].
+class ProxyAnnounced extends Call {
+  const ProxyAnnounced({
+    required this.delegate,
+    required this.real,
+    this.forceProxyType,
+    required this.call,
+  });
+
+  factory ProxyAnnounced._decode(_i1.Input input) {
+    return ProxyAnnounced(
+      delegate: _i3.MultiAddress.codec.decode(input),
+      real: _i3.MultiAddress.codec.decode(input),
+      forceProxyType: const _i1.OptionCodec<_i4.ProxyType>(_i4.ProxyType.codec)
+          .decode(input),
+      call: _i5.RuntimeCall.codec.decode(input),
+    );
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress delegate;
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress real;
+
+  /// Option<T::ProxyType>
+  final _i4.ProxyType? forceProxyType;
+
+  /// Box<<T as Config>::RuntimeCall>
+  final _i5.RuntimeCall call;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'proxy_announced': {
+          'delegate': delegate.toJson(),
+          'real': real.toJson(),
+          'forceProxyType': forceProxyType?.toJson(),
+          'call': call.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(delegate);
+    size = size + _i3.MultiAddress.codec.sizeHint(real);
+    size = size +
+        const _i1.OptionCodec<_i4.ProxyType>(_i4.ProxyType.codec)
+            .sizeHint(forceProxyType);
+    size = size + _i5.RuntimeCall.codec.sizeHint(call);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      9,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      delegate,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      real,
+      output,
+    );
+    const _i1.OptionCodec<_i4.ProxyType>(_i4.ProxyType.codec).encodeTo(
+      forceProxyType,
+      output,
+    );
+    _i5.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ProxyAnnounced &&
+          other.delegate == delegate &&
+          other.real == real &&
+          other.forceProxyType == forceProxyType &&
+          other.call == call;
+
+  @override
+  int get hashCode => Object.hash(
+        delegate,
+        real,
+        forceProxyType,
+        call,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_proxy/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_proxy/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..89003035be67d6270751b2cf6a355d3847a084e3
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_proxy/pallet/error.dart
@@ -0,0 +1,91 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// There are too many proxies registered or too many announcements pending.
+  tooMany('TooMany', 0),
+
+  /// Proxy registration not found.
+  notFound('NotFound', 1),
+
+  /// Sender is not a proxy of the account to be proxied.
+  notProxy('NotProxy', 2),
+
+  /// A call which is incompatible with the proxy type's filter was attempted.
+  unproxyable('Unproxyable', 3),
+
+  /// Account is already a proxy.
+  duplicate('Duplicate', 4),
+
+  /// Call may not be made by proxy because it may escalate its privileges.
+  noPermission('NoPermission', 5),
+
+  /// Announcement, if made at all, was made too recently.
+  unannounced('Unannounced', 6),
+
+  /// Cannot add self as proxy.
+  noSelfProxy('NoSelfProxy', 7);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.tooMany;
+      case 1:
+        return Error.notFound;
+      case 2:
+        return Error.notProxy;
+      case 3:
+        return Error.unproxyable;
+      case 4:
+        return Error.duplicate;
+      case 5:
+        return Error.noPermission;
+      case 6:
+        return Error.unannounced;
+      case 7:
+        return Error.noSelfProxy;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_proxy/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_proxy/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7c76a406a6ea0ccba2fdb630b46331ca1d879c47
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_proxy/pallet/event.dart
@@ -0,0 +1,610 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i7;
+
+import '../../gdev_runtime/proxy_type.dart' as _i5;
+import '../../primitive_types/h256.dart' as _i6;
+import '../../sp_core/crypto/account_id32.dart' as _i4;
+import '../../sp_runtime/dispatch_error.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  ProxyExecuted proxyExecuted(
+      {required _i1.Result<dynamic, _i3.DispatchError> result}) {
+    return ProxyExecuted(result: result);
+  }
+
+  PureCreated pureCreated({
+    required _i4.AccountId32 pure,
+    required _i4.AccountId32 who,
+    required _i5.ProxyType proxyType,
+    required int disambiguationIndex,
+  }) {
+    return PureCreated(
+      pure: pure,
+      who: who,
+      proxyType: proxyType,
+      disambiguationIndex: disambiguationIndex,
+    );
+  }
+
+  Announced announced({
+    required _i4.AccountId32 real,
+    required _i4.AccountId32 proxy,
+    required _i6.H256 callHash,
+  }) {
+    return Announced(
+      real: real,
+      proxy: proxy,
+      callHash: callHash,
+    );
+  }
+
+  ProxyAdded proxyAdded({
+    required _i4.AccountId32 delegator,
+    required _i4.AccountId32 delegatee,
+    required _i5.ProxyType proxyType,
+    required int delay,
+  }) {
+    return ProxyAdded(
+      delegator: delegator,
+      delegatee: delegatee,
+      proxyType: proxyType,
+      delay: delay,
+    );
+  }
+
+  ProxyRemoved proxyRemoved({
+    required _i4.AccountId32 delegator,
+    required _i4.AccountId32 delegatee,
+    required _i5.ProxyType proxyType,
+    required int delay,
+  }) {
+    return ProxyRemoved(
+      delegator: delegator,
+      delegatee: delegatee,
+      proxyType: proxyType,
+      delay: delay,
+    );
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return ProxyExecuted._decode(input);
+      case 1:
+        return PureCreated._decode(input);
+      case 2:
+        return Announced._decode(input);
+      case 3:
+        return ProxyAdded._decode(input);
+      case 4:
+        return ProxyRemoved._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case ProxyExecuted:
+        (value as ProxyExecuted).encodeTo(output);
+        break;
+      case PureCreated:
+        (value as PureCreated).encodeTo(output);
+        break;
+      case Announced:
+        (value as Announced).encodeTo(output);
+        break;
+      case ProxyAdded:
+        (value as ProxyAdded).encodeTo(output);
+        break;
+      case ProxyRemoved:
+        (value as ProxyRemoved).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case ProxyExecuted:
+        return (value as ProxyExecuted)._sizeHint();
+      case PureCreated:
+        return (value as PureCreated)._sizeHint();
+      case Announced:
+        return (value as Announced)._sizeHint();
+      case ProxyAdded:
+        return (value as ProxyAdded)._sizeHint();
+      case ProxyRemoved:
+        return (value as ProxyRemoved)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// A proxy was executed correctly, with the given.
+class ProxyExecuted extends Event {
+  const ProxyExecuted({required this.result});
+
+  factory ProxyExecuted._decode(_i1.Input input) {
+    return ProxyExecuted(
+        result: const _i1.ResultCodec<dynamic, _i3.DispatchError>(
+      _i1.NullCodec.codec,
+      _i3.DispatchError.codec,
+    ).decode(input));
+  }
+
+  /// DispatchResult
+  final _i1.Result<dynamic, _i3.DispatchError> result;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'ProxyExecuted': {'result': result.toJson()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.ResultCodec<dynamic, _i3.DispatchError>(
+          _i1.NullCodec.codec,
+          _i3.DispatchError.codec,
+        ).sizeHint(result);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.ResultCodec<dynamic, _i3.DispatchError>(
+      _i1.NullCodec.codec,
+      _i3.DispatchError.codec,
+    ).encodeTo(
+      result,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ProxyExecuted && other.result == result;
+
+  @override
+  int get hashCode => result.hashCode;
+}
+
+/// A pure account has been created by new proxy with given
+/// disambiguation index and proxy type.
+class PureCreated extends Event {
+  const PureCreated({
+    required this.pure,
+    required this.who,
+    required this.proxyType,
+    required this.disambiguationIndex,
+  });
+
+  factory PureCreated._decode(_i1.Input input) {
+    return PureCreated(
+      pure: const _i1.U8ArrayCodec(32).decode(input),
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      proxyType: _i5.ProxyType.codec.decode(input),
+      disambiguationIndex: _i1.U16Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i4.AccountId32 pure;
+
+  /// T::AccountId
+  final _i4.AccountId32 who;
+
+  /// T::ProxyType
+  final _i5.ProxyType proxyType;
+
+  /// u16
+  final int disambiguationIndex;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'PureCreated': {
+          'pure': pure.toList(),
+          'who': who.toList(),
+          'proxyType': proxyType.toJson(),
+          'disambiguationIndex': disambiguationIndex,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i4.AccountId32Codec().sizeHint(pure);
+    size = size + const _i4.AccountId32Codec().sizeHint(who);
+    size = size + _i5.ProxyType.codec.sizeHint(proxyType);
+    size = size + _i1.U16Codec.codec.sizeHint(disambiguationIndex);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      pure,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i5.ProxyType.codec.encodeTo(
+      proxyType,
+      output,
+    );
+    _i1.U16Codec.codec.encodeTo(
+      disambiguationIndex,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is PureCreated &&
+          _i7.listsEqual(
+            other.pure,
+            pure,
+          ) &&
+          _i7.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.proxyType == proxyType &&
+          other.disambiguationIndex == disambiguationIndex;
+
+  @override
+  int get hashCode => Object.hash(
+        pure,
+        who,
+        proxyType,
+        disambiguationIndex,
+      );
+}
+
+/// An announcement was placed to make a call in the future.
+class Announced extends Event {
+  const Announced({
+    required this.real,
+    required this.proxy,
+    required this.callHash,
+  });
+
+  factory Announced._decode(_i1.Input input) {
+    return Announced(
+      real: const _i1.U8ArrayCodec(32).decode(input),
+      proxy: const _i1.U8ArrayCodec(32).decode(input),
+      callHash: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i4.AccountId32 real;
+
+  /// T::AccountId
+  final _i4.AccountId32 proxy;
+
+  /// CallHashOf<T>
+  final _i6.H256 callHash;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'Announced': {
+          'real': real.toList(),
+          'proxy': proxy.toList(),
+          'callHash': callHash.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i4.AccountId32Codec().sizeHint(real);
+    size = size + const _i4.AccountId32Codec().sizeHint(proxy);
+    size = size + const _i6.H256Codec().sizeHint(callHash);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      real,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      proxy,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      callHash,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Announced &&
+          _i7.listsEqual(
+            other.real,
+            real,
+          ) &&
+          _i7.listsEqual(
+            other.proxy,
+            proxy,
+          ) &&
+          _i7.listsEqual(
+            other.callHash,
+            callHash,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        real,
+        proxy,
+        callHash,
+      );
+}
+
+/// A proxy was added.
+class ProxyAdded extends Event {
+  const ProxyAdded({
+    required this.delegator,
+    required this.delegatee,
+    required this.proxyType,
+    required this.delay,
+  });
+
+  factory ProxyAdded._decode(_i1.Input input) {
+    return ProxyAdded(
+      delegator: const _i1.U8ArrayCodec(32).decode(input),
+      delegatee: const _i1.U8ArrayCodec(32).decode(input),
+      proxyType: _i5.ProxyType.codec.decode(input),
+      delay: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i4.AccountId32 delegator;
+
+  /// T::AccountId
+  final _i4.AccountId32 delegatee;
+
+  /// T::ProxyType
+  final _i5.ProxyType proxyType;
+
+  /// BlockNumberFor<T>
+  final int delay;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'ProxyAdded': {
+          'delegator': delegator.toList(),
+          'delegatee': delegatee.toList(),
+          'proxyType': proxyType.toJson(),
+          'delay': delay,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i4.AccountId32Codec().sizeHint(delegator);
+    size = size + const _i4.AccountId32Codec().sizeHint(delegatee);
+    size = size + _i5.ProxyType.codec.sizeHint(proxyType);
+    size = size + _i1.U32Codec.codec.sizeHint(delay);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      delegator,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      delegatee,
+      output,
+    );
+    _i5.ProxyType.codec.encodeTo(
+      proxyType,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      delay,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ProxyAdded &&
+          _i7.listsEqual(
+            other.delegator,
+            delegator,
+          ) &&
+          _i7.listsEqual(
+            other.delegatee,
+            delegatee,
+          ) &&
+          other.proxyType == proxyType &&
+          other.delay == delay;
+
+  @override
+  int get hashCode => Object.hash(
+        delegator,
+        delegatee,
+        proxyType,
+        delay,
+      );
+}
+
+/// A proxy was removed.
+class ProxyRemoved extends Event {
+  const ProxyRemoved({
+    required this.delegator,
+    required this.delegatee,
+    required this.proxyType,
+    required this.delay,
+  });
+
+  factory ProxyRemoved._decode(_i1.Input input) {
+    return ProxyRemoved(
+      delegator: const _i1.U8ArrayCodec(32).decode(input),
+      delegatee: const _i1.U8ArrayCodec(32).decode(input),
+      proxyType: _i5.ProxyType.codec.decode(input),
+      delay: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i4.AccountId32 delegator;
+
+  /// T::AccountId
+  final _i4.AccountId32 delegatee;
+
+  /// T::ProxyType
+  final _i5.ProxyType proxyType;
+
+  /// BlockNumberFor<T>
+  final int delay;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'ProxyRemoved': {
+          'delegator': delegator.toList(),
+          'delegatee': delegatee.toList(),
+          'proxyType': proxyType.toJson(),
+          'delay': delay,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i4.AccountId32Codec().sizeHint(delegator);
+    size = size + const _i4.AccountId32Codec().sizeHint(delegatee);
+    size = size + _i5.ProxyType.codec.sizeHint(proxyType);
+    size = size + _i1.U32Codec.codec.sizeHint(delay);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      delegator,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      delegatee,
+      output,
+    );
+    _i5.ProxyType.codec.encodeTo(
+      proxyType,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      delay,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ProxyRemoved &&
+          _i7.listsEqual(
+            other.delegator,
+            delegator,
+          ) &&
+          _i7.listsEqual(
+            other.delegatee,
+            delegatee,
+          ) &&
+          other.proxyType == proxyType &&
+          other.delay == delay;
+
+  @override
+  int get hashCode => Object.hash(
+        delegator,
+        delegatee,
+        proxyType,
+        delay,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_proxy/proxy_definition.dart b/lib/src/models/generated/duniter/types/pallet_proxy/proxy_definition.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5a453c90320d9a916d3451ae8e591e3efaf43f1d
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_proxy/proxy_definition.dart
@@ -0,0 +1,103 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../gdev_runtime/proxy_type.dart' as _i3;
+import '../sp_core/crypto/account_id32.dart' as _i2;
+
+class ProxyDefinition {
+  const ProxyDefinition({
+    required this.delegate,
+    required this.proxyType,
+    required this.delay,
+  });
+
+  factory ProxyDefinition.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// AccountId
+  final _i2.AccountId32 delegate;
+
+  /// ProxyType
+  final _i3.ProxyType proxyType;
+
+  /// BlockNumber
+  final int delay;
+
+  static const $ProxyDefinitionCodec codec = $ProxyDefinitionCodec();
+
+  _i4.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'delegate': delegate.toList(),
+        'proxyType': proxyType.toJson(),
+        'delay': delay,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ProxyDefinition &&
+          _i5.listsEqual(
+            other.delegate,
+            delegate,
+          ) &&
+          other.proxyType == proxyType &&
+          other.delay == delay;
+
+  @override
+  int get hashCode => Object.hash(
+        delegate,
+        proxyType,
+        delay,
+      );
+}
+
+class $ProxyDefinitionCodec with _i1.Codec<ProxyDefinition> {
+  const $ProxyDefinitionCodec();
+
+  @override
+  void encodeTo(
+    ProxyDefinition obj,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.delegate,
+      output,
+    );
+    _i3.ProxyType.codec.encodeTo(
+      obj.proxyType,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.delay,
+      output,
+    );
+  }
+
+  @override
+  ProxyDefinition decode(_i1.Input input) {
+    return ProxyDefinition(
+      delegate: const _i1.U8ArrayCodec(32).decode(input),
+      proxyType: _i3.ProxyType.codec.decode(input),
+      delay: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(ProxyDefinition obj) {
+    int size = 0;
+    size = size + const _i2.AccountId32Codec().sizeHint(obj.delegate);
+    size = size + _i3.ProxyType.codec.sizeHint(obj.proxyType);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.delay);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_quota/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_quota/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..ae5e109f742bd920dd40eb60fec0057455e81db9
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_quota/pallet/event.dart
@@ -0,0 +1,350 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  Refunded refunded({
+    required _i3.AccountId32 who,
+    required int identity,
+    required BigInt amount,
+  }) {
+    return Refunded(
+      who: who,
+      identity: identity,
+      amount: amount,
+    );
+  }
+
+  NoQuotaForIdty noQuotaForIdty(int value0) {
+    return NoQuotaForIdty(value0);
+  }
+
+  NoMoreCurrencyForRefund noMoreCurrencyForRefund() {
+    return const NoMoreCurrencyForRefund();
+  }
+
+  RefundFailed refundFailed(_i3.AccountId32 value0) {
+    return RefundFailed(value0);
+  }
+
+  RefundQueueFull refundQueueFull() {
+    return const RefundQueueFull();
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Refunded._decode(input);
+      case 1:
+        return NoQuotaForIdty._decode(input);
+      case 2:
+        return const NoMoreCurrencyForRefund();
+      case 3:
+        return RefundFailed._decode(input);
+      case 4:
+        return const RefundQueueFull();
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Refunded:
+        (value as Refunded).encodeTo(output);
+        break;
+      case NoQuotaForIdty:
+        (value as NoQuotaForIdty).encodeTo(output);
+        break;
+      case NoMoreCurrencyForRefund:
+        (value as NoMoreCurrencyForRefund).encodeTo(output);
+        break;
+      case RefundFailed:
+        (value as RefundFailed).encodeTo(output);
+        break;
+      case RefundQueueFull:
+        (value as RefundQueueFull).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case Refunded:
+        return (value as Refunded)._sizeHint();
+      case NoQuotaForIdty:
+        return (value as NoQuotaForIdty)._sizeHint();
+      case NoMoreCurrencyForRefund:
+        return 1;
+      case RefundFailed:
+        return (value as RefundFailed)._sizeHint();
+      case RefundQueueFull:
+        return 1;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// Transaction fees were refunded.
+class Refunded extends Event {
+  const Refunded({
+    required this.who,
+    required this.identity,
+    required this.amount,
+  });
+
+  factory Refunded._decode(_i1.Input input) {
+    return Refunded(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      identity: _i1.U32Codec.codec.decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// IdtyId<T>
+  final int identity;
+
+  /// BalanceOf<T>
+  final BigInt amount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Refunded': {
+          'who': who.toList(),
+          'identity': identity,
+          'amount': amount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U32Codec.codec.sizeHint(identity);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      identity,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Refunded &&
+          _i4.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.identity == identity &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        identity,
+        amount,
+      );
+}
+
+/// No more quota available for refund.
+class NoQuotaForIdty extends Event {
+  const NoQuotaForIdty(this.value0);
+
+  factory NoQuotaForIdty._decode(_i1.Input input) {
+    return NoQuotaForIdty(_i1.U32Codec.codec.decode(input));
+  }
+
+  /// IdtyId<T>
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'NoQuotaForIdty': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is NoQuotaForIdty && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+/// No more currency available for refund.
+/// This scenario should never occur if the fees are intended for the refund account.
+class NoMoreCurrencyForRefund extends Event {
+  const NoMoreCurrencyForRefund();
+
+  @override
+  Map<String, dynamic> toJson() => {'NoMoreCurrencyForRefund': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is NoMoreCurrencyForRefund;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+/// The refund has failed.
+/// This scenario should rarely occur, except when the account was destroyed in the interim between the request and the refund.
+class RefundFailed extends Event {
+  const RefundFailed(this.value0);
+
+  factory RefundFailed._decode(_i1.Input input) {
+    return RefundFailed(const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 value0;
+
+  @override
+  Map<String, List<int>> toJson() => {'RefundFailed': value0.toList()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RefundFailed &&
+          _i4.listsEqual(
+            other.value0,
+            value0,
+          );
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+/// Refund queue was full.
+class RefundQueueFull extends Event {
+  const RefundQueueFull();
+
+  @override
+  Map<String, dynamic> toJson() => {'RefundQueueFull': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is RefundQueueFull;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_quota/pallet/quota.dart b/lib/src/models/generated/duniter/types/pallet_quota/pallet/quota.dart
new file mode 100644
index 0000000000000000000000000000000000000000..15f3793555a2fa1ede6878fab528a2101aa76630
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_quota/pallet/quota.dart
@@ -0,0 +1,81 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class Quota {
+  const Quota({
+    required this.lastUse,
+    required this.amount,
+  });
+
+  factory Quota.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// BlockNumber
+  final int lastUse;
+
+  /// Balance
+  final BigInt amount;
+
+  static const $QuotaCodec codec = $QuotaCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'lastUse': lastUse,
+        'amount': amount,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Quota && other.lastUse == lastUse && other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        lastUse,
+        amount,
+      );
+}
+
+class $QuotaCodec with _i1.Codec<Quota> {
+  const $QuotaCodec();
+
+  @override
+  void encodeTo(
+    Quota obj,
+    _i1.Output output,
+  ) {
+    _i1.U32Codec.codec.encodeTo(
+      obj.lastUse,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.amount,
+      output,
+    );
+  }
+
+  @override
+  Quota decode(_i1.Input input) {
+    return Quota(
+      lastUse: _i1.U32Codec.codec.decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Quota obj) {
+    int size = 0;
+    size = size + _i1.U32Codec.codec.sizeHint(obj.lastUse);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.amount);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_quota/pallet/refund.dart b/lib/src/models/generated/duniter/types/pallet_quota/pallet/refund.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8cac2f5b80dda8327ad7a24bc49a43458f3083cc
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_quota/pallet/refund.dart
@@ -0,0 +1,102 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../../sp_core/crypto/account_id32.dart' as _i2;
+
+class Refund {
+  const Refund({
+    required this.account,
+    required this.identity,
+    required this.amount,
+  });
+
+  factory Refund.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// AccountId
+  final _i2.AccountId32 account;
+
+  /// IdtyId
+  final int identity;
+
+  /// Balance
+  final BigInt amount;
+
+  static const $RefundCodec codec = $RefundCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'account': account.toList(),
+        'identity': identity,
+        'amount': amount,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Refund &&
+          _i4.listsEqual(
+            other.account,
+            account,
+          ) &&
+          other.identity == identity &&
+          other.amount == amount;
+
+  @override
+  int get hashCode => Object.hash(
+        account,
+        identity,
+        amount,
+      );
+}
+
+class $RefundCodec with _i1.Codec<Refund> {
+  const $RefundCodec();
+
+  @override
+  void encodeTo(
+    Refund obj,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.account,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.identity,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.amount,
+      output,
+    );
+  }
+
+  @override
+  Refund decode(_i1.Input input) {
+    return Refund(
+      account: const _i1.U8ArrayCodec(32).decode(input),
+      identity: _i1.U32Codec.codec.decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Refund obj) {
+    int size = 0;
+    size = size + const _i2.AccountId32Codec().sizeHint(obj.account);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.identity);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.amount);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_scheduler/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_scheduler/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4862d47d5e1c73051d6dfc340ad608a4a6467e75
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_scheduler/pallet/call.dart
@@ -0,0 +1,761 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../../gdev_runtime/runtime_call.dart' as _i4;
+import '../../tuples_1.dart' as _i3;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  Schedule schedule({
+    required int when,
+    _i3.Tuple2<int, int>? maybePeriodic,
+    required int priority,
+    required _i4.RuntimeCall call,
+  }) {
+    return Schedule(
+      when: when,
+      maybePeriodic: maybePeriodic,
+      priority: priority,
+      call: call,
+    );
+  }
+
+  Cancel cancel({
+    required int when,
+    required int index,
+  }) {
+    return Cancel(
+      when: when,
+      index: index,
+    );
+  }
+
+  ScheduleNamed scheduleNamed({
+    required List<int> id,
+    required int when,
+    _i3.Tuple2<int, int>? maybePeriodic,
+    required int priority,
+    required _i4.RuntimeCall call,
+  }) {
+    return ScheduleNamed(
+      id: id,
+      when: when,
+      maybePeriodic: maybePeriodic,
+      priority: priority,
+      call: call,
+    );
+  }
+
+  CancelNamed cancelNamed({required List<int> id}) {
+    return CancelNamed(id: id);
+  }
+
+  ScheduleAfter scheduleAfter({
+    required int after,
+    _i3.Tuple2<int, int>? maybePeriodic,
+    required int priority,
+    required _i4.RuntimeCall call,
+  }) {
+    return ScheduleAfter(
+      after: after,
+      maybePeriodic: maybePeriodic,
+      priority: priority,
+      call: call,
+    );
+  }
+
+  ScheduleNamedAfter scheduleNamedAfter({
+    required List<int> id,
+    required int after,
+    _i3.Tuple2<int, int>? maybePeriodic,
+    required int priority,
+    required _i4.RuntimeCall call,
+  }) {
+    return ScheduleNamedAfter(
+      id: id,
+      after: after,
+      maybePeriodic: maybePeriodic,
+      priority: priority,
+      call: call,
+    );
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Schedule._decode(input);
+      case 1:
+        return Cancel._decode(input);
+      case 2:
+        return ScheduleNamed._decode(input);
+      case 3:
+        return CancelNamed._decode(input);
+      case 4:
+        return ScheduleAfter._decode(input);
+      case 5:
+        return ScheduleNamedAfter._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Schedule:
+        (value as Schedule).encodeTo(output);
+        break;
+      case Cancel:
+        (value as Cancel).encodeTo(output);
+        break;
+      case ScheduleNamed:
+        (value as ScheduleNamed).encodeTo(output);
+        break;
+      case CancelNamed:
+        (value as CancelNamed).encodeTo(output);
+        break;
+      case ScheduleAfter:
+        (value as ScheduleAfter).encodeTo(output);
+        break;
+      case ScheduleNamedAfter:
+        (value as ScheduleNamedAfter).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case Schedule:
+        return (value as Schedule)._sizeHint();
+      case Cancel:
+        return (value as Cancel)._sizeHint();
+      case ScheduleNamed:
+        return (value as ScheduleNamed)._sizeHint();
+      case CancelNamed:
+        return (value as CancelNamed)._sizeHint();
+      case ScheduleAfter:
+        return (value as ScheduleAfter)._sizeHint();
+      case ScheduleNamedAfter:
+        return (value as ScheduleNamedAfter)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::schedule`].
+class Schedule extends Call {
+  const Schedule({
+    required this.when,
+    this.maybePeriodic,
+    required this.priority,
+    required this.call,
+  });
+
+  factory Schedule._decode(_i1.Input input) {
+    return Schedule(
+      when: _i1.U32Codec.codec.decode(input),
+      maybePeriodic:
+          const _i1.OptionCodec<_i3.Tuple2<int, int>>(_i3.Tuple2Codec<int, int>(
+        _i1.U32Codec.codec,
+        _i1.U32Codec.codec,
+      )).decode(input),
+      priority: _i1.U8Codec.codec.decode(input),
+      call: _i4.RuntimeCall.codec.decode(input),
+    );
+  }
+
+  /// BlockNumberFor<T>
+  final int when;
+
+  /// Option<schedule::Period<BlockNumberFor<T>>>
+  final _i3.Tuple2<int, int>? maybePeriodic;
+
+  /// schedule::Priority
+  final int priority;
+
+  /// Box<<T as Config>::RuntimeCall>
+  final _i4.RuntimeCall call;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'schedule': {
+          'when': when,
+          'maybePeriodic': [
+            maybePeriodic?.value0,
+            maybePeriodic?.value1,
+          ],
+          'priority': priority,
+          'call': call.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(when);
+    size = size +
+        const _i1.OptionCodec<_i3.Tuple2<int, int>>(_i3.Tuple2Codec<int, int>(
+          _i1.U32Codec.codec,
+          _i1.U32Codec.codec,
+        )).sizeHint(maybePeriodic);
+    size = size + _i1.U8Codec.codec.sizeHint(priority);
+    size = size + _i4.RuntimeCall.codec.sizeHint(call);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      when,
+      output,
+    );
+    const _i1.OptionCodec<_i3.Tuple2<int, int>>(_i3.Tuple2Codec<int, int>(
+      _i1.U32Codec.codec,
+      _i1.U32Codec.codec,
+    )).encodeTo(
+      maybePeriodic,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      priority,
+      output,
+    );
+    _i4.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Schedule &&
+          other.when == when &&
+          other.maybePeriodic == maybePeriodic &&
+          other.priority == priority &&
+          other.call == call;
+
+  @override
+  int get hashCode => Object.hash(
+        when,
+        maybePeriodic,
+        priority,
+        call,
+      );
+}
+
+/// See [`Pallet::cancel`].
+class Cancel extends Call {
+  const Cancel({
+    required this.when,
+    required this.index,
+  });
+
+  factory Cancel._decode(_i1.Input input) {
+    return Cancel(
+      when: _i1.U32Codec.codec.decode(input),
+      index: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// BlockNumberFor<T>
+  final int when;
+
+  /// u32
+  final int index;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'cancel': {
+          'when': when,
+          'index': index,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(when);
+    size = size + _i1.U32Codec.codec.sizeHint(index);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      when,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      index,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Cancel && other.when == when && other.index == index;
+
+  @override
+  int get hashCode => Object.hash(
+        when,
+        index,
+      );
+}
+
+/// See [`Pallet::schedule_named`].
+class ScheduleNamed extends Call {
+  const ScheduleNamed({
+    required this.id,
+    required this.when,
+    this.maybePeriodic,
+    required this.priority,
+    required this.call,
+  });
+
+  factory ScheduleNamed._decode(_i1.Input input) {
+    return ScheduleNamed(
+      id: const _i1.U8ArrayCodec(32).decode(input),
+      when: _i1.U32Codec.codec.decode(input),
+      maybePeriodic:
+          const _i1.OptionCodec<_i3.Tuple2<int, int>>(_i3.Tuple2Codec<int, int>(
+        _i1.U32Codec.codec,
+        _i1.U32Codec.codec,
+      )).decode(input),
+      priority: _i1.U8Codec.codec.decode(input),
+      call: _i4.RuntimeCall.codec.decode(input),
+    );
+  }
+
+  /// TaskName
+  final List<int> id;
+
+  /// BlockNumberFor<T>
+  final int when;
+
+  /// Option<schedule::Period<BlockNumberFor<T>>>
+  final _i3.Tuple2<int, int>? maybePeriodic;
+
+  /// schedule::Priority
+  final int priority;
+
+  /// Box<<T as Config>::RuntimeCall>
+  final _i4.RuntimeCall call;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'schedule_named': {
+          'id': id.toList(),
+          'when': when,
+          'maybePeriodic': [
+            maybePeriodic?.value0,
+            maybePeriodic?.value1,
+          ],
+          'priority': priority,
+          'call': call.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(id);
+    size = size + _i1.U32Codec.codec.sizeHint(when);
+    size = size +
+        const _i1.OptionCodec<_i3.Tuple2<int, int>>(_i3.Tuple2Codec<int, int>(
+          _i1.U32Codec.codec,
+          _i1.U32Codec.codec,
+        )).sizeHint(maybePeriodic);
+    size = size + _i1.U8Codec.codec.sizeHint(priority);
+    size = size + _i4.RuntimeCall.codec.sizeHint(call);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      id,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      when,
+      output,
+    );
+    const _i1.OptionCodec<_i3.Tuple2<int, int>>(_i3.Tuple2Codec<int, int>(
+      _i1.U32Codec.codec,
+      _i1.U32Codec.codec,
+    )).encodeTo(
+      maybePeriodic,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      priority,
+      output,
+    );
+    _i4.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ScheduleNamed &&
+          _i5.listsEqual(
+            other.id,
+            id,
+          ) &&
+          other.when == when &&
+          other.maybePeriodic == maybePeriodic &&
+          other.priority == priority &&
+          other.call == call;
+
+  @override
+  int get hashCode => Object.hash(
+        id,
+        when,
+        maybePeriodic,
+        priority,
+        call,
+      );
+}
+
+/// See [`Pallet::cancel_named`].
+class CancelNamed extends Call {
+  const CancelNamed({required this.id});
+
+  factory CancelNamed._decode(_i1.Input input) {
+    return CancelNamed(id: const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// TaskName
+  final List<int> id;
+
+  @override
+  Map<String, Map<String, List<int>>> toJson() => {
+        'cancel_named': {'id': id.toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(id);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      id,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is CancelNamed &&
+          _i5.listsEqual(
+            other.id,
+            id,
+          );
+
+  @override
+  int get hashCode => id.hashCode;
+}
+
+/// See [`Pallet::schedule_after`].
+class ScheduleAfter extends Call {
+  const ScheduleAfter({
+    required this.after,
+    this.maybePeriodic,
+    required this.priority,
+    required this.call,
+  });
+
+  factory ScheduleAfter._decode(_i1.Input input) {
+    return ScheduleAfter(
+      after: _i1.U32Codec.codec.decode(input),
+      maybePeriodic:
+          const _i1.OptionCodec<_i3.Tuple2<int, int>>(_i3.Tuple2Codec<int, int>(
+        _i1.U32Codec.codec,
+        _i1.U32Codec.codec,
+      )).decode(input),
+      priority: _i1.U8Codec.codec.decode(input),
+      call: _i4.RuntimeCall.codec.decode(input),
+    );
+  }
+
+  /// BlockNumberFor<T>
+  final int after;
+
+  /// Option<schedule::Period<BlockNumberFor<T>>>
+  final _i3.Tuple2<int, int>? maybePeriodic;
+
+  /// schedule::Priority
+  final int priority;
+
+  /// Box<<T as Config>::RuntimeCall>
+  final _i4.RuntimeCall call;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'schedule_after': {
+          'after': after,
+          'maybePeriodic': [
+            maybePeriodic?.value0,
+            maybePeriodic?.value1,
+          ],
+          'priority': priority,
+          'call': call.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(after);
+    size = size +
+        const _i1.OptionCodec<_i3.Tuple2<int, int>>(_i3.Tuple2Codec<int, int>(
+          _i1.U32Codec.codec,
+          _i1.U32Codec.codec,
+        )).sizeHint(maybePeriodic);
+    size = size + _i1.U8Codec.codec.sizeHint(priority);
+    size = size + _i4.RuntimeCall.codec.sizeHint(call);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      after,
+      output,
+    );
+    const _i1.OptionCodec<_i3.Tuple2<int, int>>(_i3.Tuple2Codec<int, int>(
+      _i1.U32Codec.codec,
+      _i1.U32Codec.codec,
+    )).encodeTo(
+      maybePeriodic,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      priority,
+      output,
+    );
+    _i4.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ScheduleAfter &&
+          other.after == after &&
+          other.maybePeriodic == maybePeriodic &&
+          other.priority == priority &&
+          other.call == call;
+
+  @override
+  int get hashCode => Object.hash(
+        after,
+        maybePeriodic,
+        priority,
+        call,
+      );
+}
+
+/// See [`Pallet::schedule_named_after`].
+class ScheduleNamedAfter extends Call {
+  const ScheduleNamedAfter({
+    required this.id,
+    required this.after,
+    this.maybePeriodic,
+    required this.priority,
+    required this.call,
+  });
+
+  factory ScheduleNamedAfter._decode(_i1.Input input) {
+    return ScheduleNamedAfter(
+      id: const _i1.U8ArrayCodec(32).decode(input),
+      after: _i1.U32Codec.codec.decode(input),
+      maybePeriodic:
+          const _i1.OptionCodec<_i3.Tuple2<int, int>>(_i3.Tuple2Codec<int, int>(
+        _i1.U32Codec.codec,
+        _i1.U32Codec.codec,
+      )).decode(input),
+      priority: _i1.U8Codec.codec.decode(input),
+      call: _i4.RuntimeCall.codec.decode(input),
+    );
+  }
+
+  /// TaskName
+  final List<int> id;
+
+  /// BlockNumberFor<T>
+  final int after;
+
+  /// Option<schedule::Period<BlockNumberFor<T>>>
+  final _i3.Tuple2<int, int>? maybePeriodic;
+
+  /// schedule::Priority
+  final int priority;
+
+  /// Box<<T as Config>::RuntimeCall>
+  final _i4.RuntimeCall call;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'schedule_named_after': {
+          'id': id.toList(),
+          'after': after,
+          'maybePeriodic': [
+            maybePeriodic?.value0,
+            maybePeriodic?.value1,
+          ],
+          'priority': priority,
+          'call': call.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(id);
+    size = size + _i1.U32Codec.codec.sizeHint(after);
+    size = size +
+        const _i1.OptionCodec<_i3.Tuple2<int, int>>(_i3.Tuple2Codec<int, int>(
+          _i1.U32Codec.codec,
+          _i1.U32Codec.codec,
+        )).sizeHint(maybePeriodic);
+    size = size + _i1.U8Codec.codec.sizeHint(priority);
+    size = size + _i4.RuntimeCall.codec.sizeHint(call);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      id,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      after,
+      output,
+    );
+    const _i1.OptionCodec<_i3.Tuple2<int, int>>(_i3.Tuple2Codec<int, int>(
+      _i1.U32Codec.codec,
+      _i1.U32Codec.codec,
+    )).encodeTo(
+      maybePeriodic,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      priority,
+      output,
+    );
+    _i4.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ScheduleNamedAfter &&
+          _i5.listsEqual(
+            other.id,
+            id,
+          ) &&
+          other.after == after &&
+          other.maybePeriodic == maybePeriodic &&
+          other.priority == priority &&
+          other.call == call;
+
+  @override
+  int get hashCode => Object.hash(
+        id,
+        after,
+        maybePeriodic,
+        priority,
+        call,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_scheduler/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_scheduler/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..506e125919e88aceea59aef3ddc40d518abc9d05
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_scheduler/pallet/error.dart
@@ -0,0 +1,76 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Failed to schedule a call
+  failedToSchedule('FailedToSchedule', 0),
+
+  /// Cannot find the scheduled call.
+  notFound('NotFound', 1),
+
+  /// Given target block number is in the past.
+  targetBlockNumberInPast('TargetBlockNumberInPast', 2),
+
+  /// Reschedule failed because it does not change scheduled time.
+  rescheduleNoChange('RescheduleNoChange', 3),
+
+  /// Attempt to use a non-named function on a named task.
+  named('Named', 4);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.failedToSchedule;
+      case 1:
+        return Error.notFound;
+      case 2:
+        return Error.targetBlockNumberInPast;
+      case 3:
+        return Error.rescheduleNoChange;
+      case 4:
+        return Error.named;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_scheduler/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_scheduler/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..bd44be90ae02d08b924bb5010e01c979e452a906
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_scheduler/pallet/event.dart
@@ -0,0 +1,645 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_runtime/dispatch_error.dart' as _i4;
+import '../../tuples_1.dart' as _i3;
+
+/// Events type.
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  Scheduled scheduled({
+    required int when,
+    required int index,
+  }) {
+    return Scheduled(
+      when: when,
+      index: index,
+    );
+  }
+
+  Canceled canceled({
+    required int when,
+    required int index,
+  }) {
+    return Canceled(
+      when: when,
+      index: index,
+    );
+  }
+
+  Dispatched dispatched({
+    required _i3.Tuple2<int, int> task,
+    List<int>? id,
+    required _i1.Result<dynamic, _i4.DispatchError> result,
+  }) {
+    return Dispatched(
+      task: task,
+      id: id,
+      result: result,
+    );
+  }
+
+  CallUnavailable callUnavailable({
+    required _i3.Tuple2<int, int> task,
+    List<int>? id,
+  }) {
+    return CallUnavailable(
+      task: task,
+      id: id,
+    );
+  }
+
+  PeriodicFailed periodicFailed({
+    required _i3.Tuple2<int, int> task,
+    List<int>? id,
+  }) {
+    return PeriodicFailed(
+      task: task,
+      id: id,
+    );
+  }
+
+  PermanentlyOverweight permanentlyOverweight({
+    required _i3.Tuple2<int, int> task,
+    List<int>? id,
+  }) {
+    return PermanentlyOverweight(
+      task: task,
+      id: id,
+    );
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Scheduled._decode(input);
+      case 1:
+        return Canceled._decode(input);
+      case 2:
+        return Dispatched._decode(input);
+      case 3:
+        return CallUnavailable._decode(input);
+      case 4:
+        return PeriodicFailed._decode(input);
+      case 5:
+        return PermanentlyOverweight._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Scheduled:
+        (value as Scheduled).encodeTo(output);
+        break;
+      case Canceled:
+        (value as Canceled).encodeTo(output);
+        break;
+      case Dispatched:
+        (value as Dispatched).encodeTo(output);
+        break;
+      case CallUnavailable:
+        (value as CallUnavailable).encodeTo(output);
+        break;
+      case PeriodicFailed:
+        (value as PeriodicFailed).encodeTo(output);
+        break;
+      case PermanentlyOverweight:
+        (value as PermanentlyOverweight).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case Scheduled:
+        return (value as Scheduled)._sizeHint();
+      case Canceled:
+        return (value as Canceled)._sizeHint();
+      case Dispatched:
+        return (value as Dispatched)._sizeHint();
+      case CallUnavailable:
+        return (value as CallUnavailable)._sizeHint();
+      case PeriodicFailed:
+        return (value as PeriodicFailed)._sizeHint();
+      case PermanentlyOverweight:
+        return (value as PermanentlyOverweight)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// Scheduled some task.
+class Scheduled extends Event {
+  const Scheduled({
+    required this.when,
+    required this.index,
+  });
+
+  factory Scheduled._decode(_i1.Input input) {
+    return Scheduled(
+      when: _i1.U32Codec.codec.decode(input),
+      index: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// BlockNumberFor<T>
+  final int when;
+
+  /// u32
+  final int index;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'Scheduled': {
+          'when': when,
+          'index': index,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(when);
+    size = size + _i1.U32Codec.codec.sizeHint(index);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      when,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      index,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Scheduled && other.when == when && other.index == index;
+
+  @override
+  int get hashCode => Object.hash(
+        when,
+        index,
+      );
+}
+
+/// Canceled some task.
+class Canceled extends Event {
+  const Canceled({
+    required this.when,
+    required this.index,
+  });
+
+  factory Canceled._decode(_i1.Input input) {
+    return Canceled(
+      when: _i1.U32Codec.codec.decode(input),
+      index: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// BlockNumberFor<T>
+  final int when;
+
+  /// u32
+  final int index;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'Canceled': {
+          'when': when,
+          'index': index,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(when);
+    size = size + _i1.U32Codec.codec.sizeHint(index);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      when,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      index,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Canceled && other.when == when && other.index == index;
+
+  @override
+  int get hashCode => Object.hash(
+        when,
+        index,
+      );
+}
+
+/// Dispatched some task.
+class Dispatched extends Event {
+  const Dispatched({
+    required this.task,
+    this.id,
+    required this.result,
+  });
+
+  factory Dispatched._decode(_i1.Input input) {
+    return Dispatched(
+      task: const _i3.Tuple2Codec<int, int>(
+        _i1.U32Codec.codec,
+        _i1.U32Codec.codec,
+      ).decode(input),
+      id: const _i1.OptionCodec<List<int>>(_i1.U8ArrayCodec(32)).decode(input),
+      result: const _i1.ResultCodec<dynamic, _i4.DispatchError>(
+        _i1.NullCodec.codec,
+        _i4.DispatchError.codec,
+      ).decode(input),
+    );
+  }
+
+  /// TaskAddress<BlockNumberFor<T>>
+  final _i3.Tuple2<int, int> task;
+
+  /// Option<TaskName>
+  final List<int>? id;
+
+  /// DispatchResult
+  final _i1.Result<dynamic, _i4.DispatchError> result;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Dispatched': {
+          'task': [
+            task.value0,
+            task.value1,
+          ],
+          'id': id?.toList(),
+          'result': result.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i3.Tuple2Codec<int, int>(
+          _i1.U32Codec.codec,
+          _i1.U32Codec.codec,
+        ).sizeHint(task);
+    size = size +
+        const _i1.OptionCodec<List<int>>(_i1.U8ArrayCodec(32)).sizeHint(id);
+    size = size +
+        const _i1.ResultCodec<dynamic, _i4.DispatchError>(
+          _i1.NullCodec.codec,
+          _i4.DispatchError.codec,
+        ).sizeHint(result);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i3.Tuple2Codec<int, int>(
+      _i1.U32Codec.codec,
+      _i1.U32Codec.codec,
+    ).encodeTo(
+      task,
+      output,
+    );
+    const _i1.OptionCodec<List<int>>(_i1.U8ArrayCodec(32)).encodeTo(
+      id,
+      output,
+    );
+    const _i1.ResultCodec<dynamic, _i4.DispatchError>(
+      _i1.NullCodec.codec,
+      _i4.DispatchError.codec,
+    ).encodeTo(
+      result,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Dispatched &&
+          other.task == task &&
+          other.id == id &&
+          other.result == result;
+
+  @override
+  int get hashCode => Object.hash(
+        task,
+        id,
+        result,
+      );
+}
+
+/// The call for the provided hash was not found so the task has been aborted.
+class CallUnavailable extends Event {
+  const CallUnavailable({
+    required this.task,
+    this.id,
+  });
+
+  factory CallUnavailable._decode(_i1.Input input) {
+    return CallUnavailable(
+      task: const _i3.Tuple2Codec<int, int>(
+        _i1.U32Codec.codec,
+        _i1.U32Codec.codec,
+      ).decode(input),
+      id: const _i1.OptionCodec<List<int>>(_i1.U8ArrayCodec(32)).decode(input),
+    );
+  }
+
+  /// TaskAddress<BlockNumberFor<T>>
+  final _i3.Tuple2<int, int> task;
+
+  /// Option<TaskName>
+  final List<int>? id;
+
+  @override
+  Map<String, Map<String, List<int>?>> toJson() => {
+        'CallUnavailable': {
+          'task': [
+            task.value0,
+            task.value1,
+          ],
+          'id': id?.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i3.Tuple2Codec<int, int>(
+          _i1.U32Codec.codec,
+          _i1.U32Codec.codec,
+        ).sizeHint(task);
+    size = size +
+        const _i1.OptionCodec<List<int>>(_i1.U8ArrayCodec(32)).sizeHint(id);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    const _i3.Tuple2Codec<int, int>(
+      _i1.U32Codec.codec,
+      _i1.U32Codec.codec,
+    ).encodeTo(
+      task,
+      output,
+    );
+    const _i1.OptionCodec<List<int>>(_i1.U8ArrayCodec(32)).encodeTo(
+      id,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is CallUnavailable && other.task == task && other.id == id;
+
+  @override
+  int get hashCode => Object.hash(
+        task,
+        id,
+      );
+}
+
+/// The given task was unable to be renewed since the agenda is full at that block.
+class PeriodicFailed extends Event {
+  const PeriodicFailed({
+    required this.task,
+    this.id,
+  });
+
+  factory PeriodicFailed._decode(_i1.Input input) {
+    return PeriodicFailed(
+      task: const _i3.Tuple2Codec<int, int>(
+        _i1.U32Codec.codec,
+        _i1.U32Codec.codec,
+      ).decode(input),
+      id: const _i1.OptionCodec<List<int>>(_i1.U8ArrayCodec(32)).decode(input),
+    );
+  }
+
+  /// TaskAddress<BlockNumberFor<T>>
+  final _i3.Tuple2<int, int> task;
+
+  /// Option<TaskName>
+  final List<int>? id;
+
+  @override
+  Map<String, Map<String, List<int>?>> toJson() => {
+        'PeriodicFailed': {
+          'task': [
+            task.value0,
+            task.value1,
+          ],
+          'id': id?.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i3.Tuple2Codec<int, int>(
+          _i1.U32Codec.codec,
+          _i1.U32Codec.codec,
+        ).sizeHint(task);
+    size = size +
+        const _i1.OptionCodec<List<int>>(_i1.U8ArrayCodec(32)).sizeHint(id);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    const _i3.Tuple2Codec<int, int>(
+      _i1.U32Codec.codec,
+      _i1.U32Codec.codec,
+    ).encodeTo(
+      task,
+      output,
+    );
+    const _i1.OptionCodec<List<int>>(_i1.U8ArrayCodec(32)).encodeTo(
+      id,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is PeriodicFailed && other.task == task && other.id == id;
+
+  @override
+  int get hashCode => Object.hash(
+        task,
+        id,
+      );
+}
+
+/// The given task can never be executed since it is overweight.
+class PermanentlyOverweight extends Event {
+  const PermanentlyOverweight({
+    required this.task,
+    this.id,
+  });
+
+  factory PermanentlyOverweight._decode(_i1.Input input) {
+    return PermanentlyOverweight(
+      task: const _i3.Tuple2Codec<int, int>(
+        _i1.U32Codec.codec,
+        _i1.U32Codec.codec,
+      ).decode(input),
+      id: const _i1.OptionCodec<List<int>>(_i1.U8ArrayCodec(32)).decode(input),
+    );
+  }
+
+  /// TaskAddress<BlockNumberFor<T>>
+  final _i3.Tuple2<int, int> task;
+
+  /// Option<TaskName>
+  final List<int>? id;
+
+  @override
+  Map<String, Map<String, List<int>?>> toJson() => {
+        'PermanentlyOverweight': {
+          'task': [
+            task.value0,
+            task.value1,
+          ],
+          'id': id?.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i3.Tuple2Codec<int, int>(
+          _i1.U32Codec.codec,
+          _i1.U32Codec.codec,
+        ).sizeHint(task);
+    size = size +
+        const _i1.OptionCodec<List<int>>(_i1.U8ArrayCodec(32)).sizeHint(id);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    const _i3.Tuple2Codec<int, int>(
+      _i1.U32Codec.codec,
+      _i1.U32Codec.codec,
+    ).encodeTo(
+      task,
+      output,
+    );
+    const _i1.OptionCodec<List<int>>(_i1.U8ArrayCodec(32)).encodeTo(
+      id,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is PermanentlyOverweight && other.task == task && other.id == id;
+
+  @override
+  int get hashCode => Object.hash(
+        task,
+        id,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_scheduler/scheduled.dart b/lib/src/models/generated/duniter/types/pallet_scheduler/scheduled.dart
new file mode 100644
index 0000000000000000000000000000000000000000..deec25bf96b7b4e0fc0d2beef7957cadd2a19b00
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_scheduler/scheduled.dart
@@ -0,0 +1,143 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i5;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../frame_support/traits/preimages/bounded.dart' as _i2;
+import '../gdev_runtime/origin_caller.dart' as _i4;
+import '../tuples_1.dart' as _i3;
+
+class Scheduled {
+  const Scheduled({
+    this.maybeId,
+    required this.priority,
+    required this.call,
+    this.maybePeriodic,
+    required this.origin,
+  });
+
+  factory Scheduled.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// Option<Name>
+  final List<int>? maybeId;
+
+  /// schedule::Priority
+  final int priority;
+
+  /// Call
+  final _i2.Bounded call;
+
+  /// Option<schedule::Period<BlockNumber>>
+  final _i3.Tuple2<int, int>? maybePeriodic;
+
+  /// PalletsOrigin
+  final _i4.OriginCaller origin;
+
+  static const $ScheduledCodec codec = $ScheduledCodec();
+
+  _i5.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'maybeId': maybeId?.toList(),
+        'priority': priority,
+        'call': call.toJson(),
+        'maybePeriodic': [
+          maybePeriodic?.value0,
+          maybePeriodic?.value1,
+        ],
+        'origin': origin.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Scheduled &&
+          other.maybeId == maybeId &&
+          other.priority == priority &&
+          other.call == call &&
+          other.maybePeriodic == maybePeriodic &&
+          other.origin == origin;
+
+  @override
+  int get hashCode => Object.hash(
+        maybeId,
+        priority,
+        call,
+        maybePeriodic,
+        origin,
+      );
+}
+
+class $ScheduledCodec with _i1.Codec<Scheduled> {
+  const $ScheduledCodec();
+
+  @override
+  void encodeTo(
+    Scheduled obj,
+    _i1.Output output,
+  ) {
+    const _i1.OptionCodec<List<int>>(_i1.U8ArrayCodec(32)).encodeTo(
+      obj.maybeId,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      obj.priority,
+      output,
+    );
+    _i2.Bounded.codec.encodeTo(
+      obj.call,
+      output,
+    );
+    const _i1.OptionCodec<_i3.Tuple2<int, int>>(_i3.Tuple2Codec<int, int>(
+      _i1.U32Codec.codec,
+      _i1.U32Codec.codec,
+    )).encodeTo(
+      obj.maybePeriodic,
+      output,
+    );
+    _i4.OriginCaller.codec.encodeTo(
+      obj.origin,
+      output,
+    );
+  }
+
+  @override
+  Scheduled decode(_i1.Input input) {
+    return Scheduled(
+      maybeId:
+          const _i1.OptionCodec<List<int>>(_i1.U8ArrayCodec(32)).decode(input),
+      priority: _i1.U8Codec.codec.decode(input),
+      call: _i2.Bounded.codec.decode(input),
+      maybePeriodic:
+          const _i1.OptionCodec<_i3.Tuple2<int, int>>(_i3.Tuple2Codec<int, int>(
+        _i1.U32Codec.codec,
+        _i1.U32Codec.codec,
+      )).decode(input),
+      origin: _i4.OriginCaller.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Scheduled obj) {
+    int size = 0;
+    size = size +
+        const _i1.OptionCodec<List<int>>(_i1.U8ArrayCodec(32))
+            .sizeHint(obj.maybeId);
+    size = size + _i1.U8Codec.codec.sizeHint(obj.priority);
+    size = size + _i2.Bounded.codec.sizeHint(obj.call);
+    size = size +
+        const _i1.OptionCodec<_i3.Tuple2<int, int>>(_i3.Tuple2Codec<int, int>(
+          _i1.U32Codec.codec,
+          _i1.U32Codec.codec,
+        )).sizeHint(obj.maybePeriodic);
+    size = size + _i4.OriginCaller.codec.sizeHint(obj.origin);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_session/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_session/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5a855beb5203331a30da46874571dcce1d86f7a3
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_session/pallet/call.dart
@@ -0,0 +1,189 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../../gdev_runtime/opaque/session_keys.dart' as _i3;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  SetKeys setKeys({
+    required _i3.SessionKeys keys,
+    required List<int> proof,
+  }) {
+    return SetKeys(
+      keys: keys,
+      proof: proof,
+    );
+  }
+
+  PurgeKeys purgeKeys() {
+    return const PurgeKeys();
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return SetKeys._decode(input);
+      case 1:
+        return const PurgeKeys();
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case SetKeys:
+        (value as SetKeys).encodeTo(output);
+        break;
+      case PurgeKeys:
+        (value as PurgeKeys).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case SetKeys:
+        return (value as SetKeys)._sizeHint();
+      case PurgeKeys:
+        return 1;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::set_keys`].
+class SetKeys extends Call {
+  const SetKeys({
+    required this.keys,
+    required this.proof,
+  });
+
+  factory SetKeys._decode(_i1.Input input) {
+    return SetKeys(
+      keys: _i3.SessionKeys.codec.decode(input),
+      proof: _i1.U8SequenceCodec.codec.decode(input),
+    );
+  }
+
+  /// T::Keys
+  final _i3.SessionKeys keys;
+
+  /// Vec<u8>
+  final List<int> proof;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'set_keys': {
+          'keys': keys.toJson(),
+          'proof': proof,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.SessionKeys.codec.sizeHint(keys);
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(proof);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.SessionKeys.codec.encodeTo(
+      keys,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      proof,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SetKeys &&
+          other.keys == keys &&
+          _i4.listsEqual(
+            other.proof,
+            proof,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        keys,
+        proof,
+      );
+}
+
+/// See [`Pallet::purge_keys`].
+class PurgeKeys extends Call {
+  const PurgeKeys();
+
+  @override
+  Map<String, dynamic> toJson() => {'purge_keys': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is PurgeKeys;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_session/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_session/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..157246601de43abc5f7a95ed6ebe63239c61c410
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_session/pallet/error.dart
@@ -0,0 +1,76 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// Error for the session pallet.
+enum Error {
+  /// Invalid ownership proof.
+  invalidProof('InvalidProof', 0),
+
+  /// No associated validator ID for account.
+  noAssociatedValidatorId('NoAssociatedValidatorId', 1),
+
+  /// Registered duplicate key.
+  duplicatedKey('DuplicatedKey', 2),
+
+  /// No keys are associated with this account.
+  noKeys('NoKeys', 3),
+
+  /// Key setting account is not live, so it's impossible to associate keys.
+  noAccount('NoAccount', 4);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.invalidProof;
+      case 1:
+        return Error.noAssociatedValidatorId;
+      case 2:
+        return Error.duplicatedKey;
+      case 3:
+        return Error.noKeys;
+      case 4:
+        return Error.noAccount;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_session/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_session/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..11945f3b302cb08d7f539f9e3ee928fdce715c30
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_session/pallet/event.dart
@@ -0,0 +1,124 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, int>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  NewSession newSession({required int sessionIndex}) {
+    return NewSession(sessionIndex: sessionIndex);
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return NewSession._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case NewSession:
+        (value as NewSession).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case NewSession:
+        return (value as NewSession)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// New session has happened. Note that the argument is the session index, not the
+/// block number as the type might suggest.
+class NewSession extends Event {
+  const NewSession({required this.sessionIndex});
+
+  factory NewSession._decode(_i1.Input input) {
+    return NewSession(sessionIndex: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// SessionIndex
+  final int sessionIndex;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'NewSession': {'sessionIndex': sessionIndex}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(sessionIndex);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      sessionIndex,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is NewSession && other.sessionIndex == sessionIndex;
+
+  @override
+  int get hashCode => sessionIndex.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_smith_members/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_smith_members/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..0e18c135518d838cf9d3ce6f419937e61b60b2d3
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_smith_members/pallet/call.dart
@@ -0,0 +1,211 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  InviteSmith inviteSmith({required int receiver}) {
+    return InviteSmith(receiver: receiver);
+  }
+
+  AcceptInvitation acceptInvitation() {
+    return const AcceptInvitation();
+  }
+
+  CertifySmith certifySmith({required int receiver}) {
+    return CertifySmith(receiver: receiver);
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return InviteSmith._decode(input);
+      case 1:
+        return const AcceptInvitation();
+      case 2:
+        return CertifySmith._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case InviteSmith:
+        (value as InviteSmith).encodeTo(output);
+        break;
+      case AcceptInvitation:
+        (value as AcceptInvitation).encodeTo(output);
+        break;
+      case CertifySmith:
+        (value as CertifySmith).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case InviteSmith:
+        return (value as InviteSmith)._sizeHint();
+      case AcceptInvitation:
+        return 1;
+      case CertifySmith:
+        return (value as CertifySmith)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::invite_smith`].
+class InviteSmith extends Call {
+  const InviteSmith({required this.receiver});
+
+  factory InviteSmith._decode(_i1.Input input) {
+    return InviteSmith(receiver: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::IdtyIndex
+  final int receiver;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'invite_smith': {'receiver': receiver}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(receiver);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      receiver,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is InviteSmith && other.receiver == receiver;
+
+  @override
+  int get hashCode => receiver.hashCode;
+}
+
+/// See [`Pallet::accept_invitation`].
+class AcceptInvitation extends Call {
+  const AcceptInvitation();
+
+  @override
+  Map<String, dynamic> toJson() => {'accept_invitation': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is AcceptInvitation;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+/// See [`Pallet::certify_smith`].
+class CertifySmith extends Call {
+  const CertifySmith({required this.receiver});
+
+  factory CertifySmith._decode(_i1.Input input) {
+    return CertifySmith(receiver: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::IdtyIndex
+  final int receiver;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'certify_smith': {'receiver': receiver}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(receiver);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      receiver,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is CertifySmith && other.receiver == receiver;
+
+  @override
+  int get hashCode => receiver.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_smith_members/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_smith_members/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5e6de4176c9cc819889501c150c9483263ac8f6a
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_smith_members/pallet/error.dart
@@ -0,0 +1,128 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Issuer of anything (invitation, acceptance, certification) must have an identity ID
+  originMustHaveAnIdentity('OriginMustHaveAnIdentity', 0),
+
+  /// Issuer must be known as a potential smith
+  originHasNeverBeenInvited('OriginHasNeverBeenInvited', 1),
+
+  /// Invitation is reseverd to smiths
+  invitationIsASmithPrivilege('InvitationIsASmithPrivilege', 2),
+
+  /// Invitation is reseverd to online smiths
+  invitationIsAOnlineSmithPrivilege('InvitationIsAOnlineSmithPrivilege', 3),
+
+  /// Invitation must not have been accepted yet
+  invitationAlreadyAccepted('InvitationAlreadyAccepted', 4),
+
+  /// Invitation of an already known smith is forbidden except if it has been excluded
+  invitationOfExistingNonExcluded('InvitationOfExistingNonExcluded', 5),
+
+  /// Invitation of a non-member (of the WoT) is forbidden
+  invitationOfNonMember('InvitationOfNonMember', 6),
+
+  /// Certification cannot be made on someone who has not accepted an invitation
+  certificationMustBeAgreed('CertificationMustBeAgreed', 7),
+
+  /// Certification cannot be made on excluded
+  certificationOnExcludedIsForbidden('CertificationOnExcludedIsForbidden', 8),
+
+  /// Issuer must be a smith
+  certificationIsASmithPrivilege('CertificationIsASmithPrivilege', 9),
+
+  /// Only online smiths can certify
+  certificationIsAOnlineSmithPrivilege(
+      'CertificationIsAOnlineSmithPrivilege', 10),
+
+  /// Smith cannot certify itself
+  certificationOfSelfIsForbidden('CertificationOfSelfIsForbidden', 11),
+
+  /// Receiver must be invited by another smith
+  certificationReceiverMustHaveBeenInvited(
+      'CertificationReceiverMustHaveBeenInvited', 12),
+
+  /// Receiver must not already have this certification
+  certificationAlreadyExists('CertificationAlreadyExists', 13),
+
+  /// A smith has a limited stock of certifications
+  certificationStockFullyConsumed('CertificationStockFullyConsumed', 14);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.originMustHaveAnIdentity;
+      case 1:
+        return Error.originHasNeverBeenInvited;
+      case 2:
+        return Error.invitationIsASmithPrivilege;
+      case 3:
+        return Error.invitationIsAOnlineSmithPrivilege;
+      case 4:
+        return Error.invitationAlreadyAccepted;
+      case 5:
+        return Error.invitationOfExistingNonExcluded;
+      case 6:
+        return Error.invitationOfNonMember;
+      case 7:
+        return Error.certificationMustBeAgreed;
+      case 8:
+        return Error.certificationOnExcludedIsForbidden;
+      case 9:
+        return Error.certificationIsASmithPrivilege;
+      case 10:
+        return Error.certificationIsAOnlineSmithPrivilege;
+      case 11:
+        return Error.certificationOfSelfIsForbidden;
+      case 12:
+        return Error.certificationReceiverMustHaveBeenInvited;
+      case 13:
+        return Error.certificationAlreadyExists;
+      case 14:
+        return Error.certificationStockFullyConsumed;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_smith_members/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_smith_members/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..58847b9cb9cdaeaaa0f71411c596aa1d422a5469
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_smith_members/pallet/event.dart
@@ -0,0 +1,487 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// Events type.
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, int>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  InvitationSent invitationSent({
+    required int receiver,
+    required int issuer,
+  }) {
+    return InvitationSent(
+      receiver: receiver,
+      issuer: issuer,
+    );
+  }
+
+  InvitationAccepted invitationAccepted({required int idtyIndex}) {
+    return InvitationAccepted(idtyIndex: idtyIndex);
+  }
+
+  SmithCertAdded smithCertAdded({
+    required int receiver,
+    required int issuer,
+  }) {
+    return SmithCertAdded(
+      receiver: receiver,
+      issuer: issuer,
+    );
+  }
+
+  SmithCertRemoved smithCertRemoved({
+    required int receiver,
+    required int issuer,
+  }) {
+    return SmithCertRemoved(
+      receiver: receiver,
+      issuer: issuer,
+    );
+  }
+
+  SmithMembershipAdded smithMembershipAdded({required int idtyIndex}) {
+    return SmithMembershipAdded(idtyIndex: idtyIndex);
+  }
+
+  SmithMembershipRemoved smithMembershipRemoved({required int idtyIndex}) {
+    return SmithMembershipRemoved(idtyIndex: idtyIndex);
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return InvitationSent._decode(input);
+      case 1:
+        return InvitationAccepted._decode(input);
+      case 2:
+        return SmithCertAdded._decode(input);
+      case 3:
+        return SmithCertRemoved._decode(input);
+      case 4:
+        return SmithMembershipAdded._decode(input);
+      case 5:
+        return SmithMembershipRemoved._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case InvitationSent:
+        (value as InvitationSent).encodeTo(output);
+        break;
+      case InvitationAccepted:
+        (value as InvitationAccepted).encodeTo(output);
+        break;
+      case SmithCertAdded:
+        (value as SmithCertAdded).encodeTo(output);
+        break;
+      case SmithCertRemoved:
+        (value as SmithCertRemoved).encodeTo(output);
+        break;
+      case SmithMembershipAdded:
+        (value as SmithMembershipAdded).encodeTo(output);
+        break;
+      case SmithMembershipRemoved:
+        (value as SmithMembershipRemoved).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case InvitationSent:
+        return (value as InvitationSent)._sizeHint();
+      case InvitationAccepted:
+        return (value as InvitationAccepted)._sizeHint();
+      case SmithCertAdded:
+        return (value as SmithCertAdded)._sizeHint();
+      case SmithCertRemoved:
+        return (value as SmithCertRemoved)._sizeHint();
+      case SmithMembershipAdded:
+        return (value as SmithMembershipAdded)._sizeHint();
+      case SmithMembershipRemoved:
+        return (value as SmithMembershipRemoved)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// An identity is being inivited to become a smith.
+class InvitationSent extends Event {
+  const InvitationSent({
+    required this.receiver,
+    required this.issuer,
+  });
+
+  factory InvitationSent._decode(_i1.Input input) {
+    return InvitationSent(
+      receiver: _i1.U32Codec.codec.decode(input),
+      issuer: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// T::IdtyIndex
+  final int receiver;
+
+  /// T::IdtyIndex
+  final int issuer;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'InvitationSent': {
+          'receiver': receiver,
+          'issuer': issuer,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(receiver);
+    size = size + _i1.U32Codec.codec.sizeHint(issuer);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      receiver,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      issuer,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is InvitationSent &&
+          other.receiver == receiver &&
+          other.issuer == issuer;
+
+  @override
+  int get hashCode => Object.hash(
+        receiver,
+        issuer,
+      );
+}
+
+/// The invitation has been accepted.
+class InvitationAccepted extends Event {
+  const InvitationAccepted({required this.idtyIndex});
+
+  factory InvitationAccepted._decode(_i1.Input input) {
+    return InvitationAccepted(idtyIndex: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::IdtyIndex
+  final int idtyIndex;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'InvitationAccepted': {'idtyIndex': idtyIndex}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(idtyIndex);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      idtyIndex,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is InvitationAccepted && other.idtyIndex == idtyIndex;
+
+  @override
+  int get hashCode => idtyIndex.hashCode;
+}
+
+/// Certification received
+class SmithCertAdded extends Event {
+  const SmithCertAdded({
+    required this.receiver,
+    required this.issuer,
+  });
+
+  factory SmithCertAdded._decode(_i1.Input input) {
+    return SmithCertAdded(
+      receiver: _i1.U32Codec.codec.decode(input),
+      issuer: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// T::IdtyIndex
+  final int receiver;
+
+  /// T::IdtyIndex
+  final int issuer;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'SmithCertAdded': {
+          'receiver': receiver,
+          'issuer': issuer,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(receiver);
+    size = size + _i1.U32Codec.codec.sizeHint(issuer);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      receiver,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      issuer,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SmithCertAdded &&
+          other.receiver == receiver &&
+          other.issuer == issuer;
+
+  @override
+  int get hashCode => Object.hash(
+        receiver,
+        issuer,
+      );
+}
+
+/// Certification lost
+class SmithCertRemoved extends Event {
+  const SmithCertRemoved({
+    required this.receiver,
+    required this.issuer,
+  });
+
+  factory SmithCertRemoved._decode(_i1.Input input) {
+    return SmithCertRemoved(
+      receiver: _i1.U32Codec.codec.decode(input),
+      issuer: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// T::IdtyIndex
+  final int receiver;
+
+  /// T::IdtyIndex
+  final int issuer;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'SmithCertRemoved': {
+          'receiver': receiver,
+          'issuer': issuer,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(receiver);
+    size = size + _i1.U32Codec.codec.sizeHint(issuer);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      receiver,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      issuer,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SmithCertRemoved &&
+          other.receiver == receiver &&
+          other.issuer == issuer;
+
+  @override
+  int get hashCode => Object.hash(
+        receiver,
+        issuer,
+      );
+}
+
+/// A smith gathered enough certifications to become an authority (can call `go_online()`).
+class SmithMembershipAdded extends Event {
+  const SmithMembershipAdded({required this.idtyIndex});
+
+  factory SmithMembershipAdded._decode(_i1.Input input) {
+    return SmithMembershipAdded(idtyIndex: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::IdtyIndex
+  final int idtyIndex;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'SmithMembershipAdded': {'idtyIndex': idtyIndex}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(idtyIndex);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      idtyIndex,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SmithMembershipAdded && other.idtyIndex == idtyIndex;
+
+  @override
+  int get hashCode => idtyIndex.hashCode;
+}
+
+/// A smith has been removed from the smiths set.
+class SmithMembershipRemoved extends Event {
+  const SmithMembershipRemoved({required this.idtyIndex});
+
+  factory SmithMembershipRemoved._decode(_i1.Input input) {
+    return SmithMembershipRemoved(idtyIndex: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// T::IdtyIndex
+  final int idtyIndex;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'SmithMembershipRemoved': {'idtyIndex': idtyIndex}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(idtyIndex);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      idtyIndex,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SmithMembershipRemoved && other.idtyIndex == idtyIndex;
+
+  @override
+  int get hashCode => idtyIndex.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_smith_members/smith_status.dart b/lib/src/models/generated/duniter/types/pallet_smith_members/smith_status.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5c7dddc566249b29430383f1447cfdfe7c9ecee5
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_smith_members/smith_status.dart
@@ -0,0 +1,63 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum SmithStatus {
+  invited('Invited', 0),
+  pending('Pending', 1),
+  smith('Smith', 2),
+  excluded('Excluded', 3);
+
+  const SmithStatus(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory SmithStatus.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $SmithStatusCodec codec = $SmithStatusCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $SmithStatusCodec with _i1.Codec<SmithStatus> {
+  const $SmithStatusCodec();
+
+  @override
+  SmithStatus decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return SmithStatus.invited;
+      case 1:
+        return SmithStatus.pending;
+      case 2:
+        return SmithStatus.smith;
+      case 3:
+        return SmithStatus.excluded;
+      default:
+        throw Exception('SmithStatus: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    SmithStatus value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_smith_members/types/smith_meta.dart b/lib/src/models/generated/duniter/types/pallet_smith_members/types/smith_meta.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6e20e1c3c6198baf6204f88b696fe7d0ad403562
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_smith_members/types/smith_meta.dart
@@ -0,0 +1,119 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../smith_status.dart' as _i2;
+
+class SmithMeta {
+  const SmithMeta({
+    required this.status,
+    this.expiresOn,
+    required this.issuedCerts,
+    required this.receivedCerts,
+  });
+
+  factory SmithMeta.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// SmithStatus
+  final _i2.SmithStatus status;
+
+  /// Option<SessionIndex>
+  final int? expiresOn;
+
+  /// Vec<IdtyIndex>
+  final List<int> issuedCerts;
+
+  /// Vec<IdtyIndex>
+  final List<int> receivedCerts;
+
+  static const $SmithMetaCodec codec = $SmithMetaCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'status': status.toJson(),
+        'expiresOn': expiresOn,
+        'issuedCerts': issuedCerts,
+        'receivedCerts': receivedCerts,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SmithMeta &&
+          other.status == status &&
+          other.expiresOn == expiresOn &&
+          _i4.listsEqual(
+            other.issuedCerts,
+            issuedCerts,
+          ) &&
+          _i4.listsEqual(
+            other.receivedCerts,
+            receivedCerts,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        status,
+        expiresOn,
+        issuedCerts,
+        receivedCerts,
+      );
+}
+
+class $SmithMetaCodec with _i1.Codec<SmithMeta> {
+  const $SmithMetaCodec();
+
+  @override
+  void encodeTo(
+    SmithMeta obj,
+    _i1.Output output,
+  ) {
+    _i2.SmithStatus.codec.encodeTo(
+      obj.status,
+      output,
+    );
+    const _i1.OptionCodec<int>(_i1.U32Codec.codec).encodeTo(
+      obj.expiresOn,
+      output,
+    );
+    _i1.U32SequenceCodec.codec.encodeTo(
+      obj.issuedCerts,
+      output,
+    );
+    _i1.U32SequenceCodec.codec.encodeTo(
+      obj.receivedCerts,
+      output,
+    );
+  }
+
+  @override
+  SmithMeta decode(_i1.Input input) {
+    return SmithMeta(
+      status: _i2.SmithStatus.codec.decode(input),
+      expiresOn: const _i1.OptionCodec<int>(_i1.U32Codec.codec).decode(input),
+      issuedCerts: _i1.U32SequenceCodec.codec.decode(input),
+      receivedCerts: _i1.U32SequenceCodec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(SmithMeta obj) {
+    int size = 0;
+    size = size + _i2.SmithStatus.codec.sizeHint(obj.status);
+    size = size +
+        const _i1.OptionCodec<int>(_i1.U32Codec.codec).sizeHint(obj.expiresOn);
+    size = size + _i1.U32SequenceCodec.codec.sizeHint(obj.issuedCerts);
+    size = size + _i1.U32SequenceCodec.codec.sizeHint(obj.receivedCerts);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_sudo/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_sudo/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..2d43632d8bec5148ad05b70ebad9a2ac4f167a25
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_sudo/pallet/call.dart
@@ -0,0 +1,381 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../gdev_runtime/runtime_call.dart' as _i3;
+import '../../sp_runtime/multiaddress/multi_address.dart' as _i5;
+import '../../sp_weights/weight_v2/weight.dart' as _i4;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  Sudo sudo({required _i3.RuntimeCall call}) {
+    return Sudo(call: call);
+  }
+
+  SudoUncheckedWeight sudoUncheckedWeight({
+    required _i3.RuntimeCall call,
+    required _i4.Weight weight,
+  }) {
+    return SudoUncheckedWeight(
+      call: call,
+      weight: weight,
+    );
+  }
+
+  SetKey setKey({required _i5.MultiAddress new_}) {
+    return SetKey(new_: new_);
+  }
+
+  SudoAs sudoAs({
+    required _i5.MultiAddress who,
+    required _i3.RuntimeCall call,
+  }) {
+    return SudoAs(
+      who: who,
+      call: call,
+    );
+  }
+
+  RemoveKey removeKey() {
+    return const RemoveKey();
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Sudo._decode(input);
+      case 1:
+        return SudoUncheckedWeight._decode(input);
+      case 2:
+        return SetKey._decode(input);
+      case 3:
+        return SudoAs._decode(input);
+      case 4:
+        return const RemoveKey();
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Sudo:
+        (value as Sudo).encodeTo(output);
+        break;
+      case SudoUncheckedWeight:
+        (value as SudoUncheckedWeight).encodeTo(output);
+        break;
+      case SetKey:
+        (value as SetKey).encodeTo(output);
+        break;
+      case SudoAs:
+        (value as SudoAs).encodeTo(output);
+        break;
+      case RemoveKey:
+        (value as RemoveKey).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case Sudo:
+        return (value as Sudo)._sizeHint();
+      case SudoUncheckedWeight:
+        return (value as SudoUncheckedWeight)._sizeHint();
+      case SetKey:
+        return (value as SetKey)._sizeHint();
+      case SudoAs:
+        return (value as SudoAs)._sizeHint();
+      case RemoveKey:
+        return 1;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::sudo`].
+class Sudo extends Call {
+  const Sudo({required this.call});
+
+  factory Sudo._decode(_i1.Input input) {
+    return Sudo(call: _i3.RuntimeCall.codec.decode(input));
+  }
+
+  /// Box<<T as Config>::RuntimeCall>
+  final _i3.RuntimeCall call;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'sudo': {'call': call.toJson()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.RuntimeCall.codec.sizeHint(call);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Sudo && other.call == call;
+
+  @override
+  int get hashCode => call.hashCode;
+}
+
+/// See [`Pallet::sudo_unchecked_weight`].
+class SudoUncheckedWeight extends Call {
+  const SudoUncheckedWeight({
+    required this.call,
+    required this.weight,
+  });
+
+  factory SudoUncheckedWeight._decode(_i1.Input input) {
+    return SudoUncheckedWeight(
+      call: _i3.RuntimeCall.codec.decode(input),
+      weight: _i4.Weight.codec.decode(input),
+    );
+  }
+
+  /// Box<<T as Config>::RuntimeCall>
+  final _i3.RuntimeCall call;
+
+  /// Weight
+  final _i4.Weight weight;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'sudo_unchecked_weight': {
+          'call': call.toJson(),
+          'weight': weight.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.RuntimeCall.codec.sizeHint(call);
+    size = size + _i4.Weight.codec.sizeHint(weight);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i3.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+    _i4.Weight.codec.encodeTo(
+      weight,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SudoUncheckedWeight &&
+          other.call == call &&
+          other.weight == weight;
+
+  @override
+  int get hashCode => Object.hash(
+        call,
+        weight,
+      );
+}
+
+/// See [`Pallet::set_key`].
+class SetKey extends Call {
+  const SetKey({required this.new_});
+
+  factory SetKey._decode(_i1.Input input) {
+    return SetKey(new_: _i5.MultiAddress.codec.decode(input));
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i5.MultiAddress new_;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'set_key': {'new': new_.toJson()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i5.MultiAddress.codec.sizeHint(new_);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i5.MultiAddress.codec.encodeTo(
+      new_,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SetKey && other.new_ == new_;
+
+  @override
+  int get hashCode => new_.hashCode;
+}
+
+/// See [`Pallet::sudo_as`].
+class SudoAs extends Call {
+  const SudoAs({
+    required this.who,
+    required this.call,
+  });
+
+  factory SudoAs._decode(_i1.Input input) {
+    return SudoAs(
+      who: _i5.MultiAddress.codec.decode(input),
+      call: _i3.RuntimeCall.codec.decode(input),
+    );
+  }
+
+  /// AccountIdLookupOf<T>
+  final _i5.MultiAddress who;
+
+  /// Box<<T as Config>::RuntimeCall>
+  final _i3.RuntimeCall call;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'sudo_as': {
+          'who': who.toJson(),
+          'call': call.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i5.MultiAddress.codec.sizeHint(who);
+    size = size + _i3.RuntimeCall.codec.sizeHint(call);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i5.MultiAddress.codec.encodeTo(
+      who,
+      output,
+    );
+    _i3.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SudoAs && other.who == who && other.call == call;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        call,
+      );
+}
+
+/// See [`Pallet::remove_key`].
+class RemoveKey extends Call {
+  const RemoveKey();
+
+  @override
+  Map<String, dynamic> toJson() => {'remove_key': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is RemoveKey;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_sudo/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_sudo/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..489a0679975a94cbc0ab900aaadcf05f9d5ec90a
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_sudo/pallet/error.dart
@@ -0,0 +1,56 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// Error for the Sudo pallet.
+enum Error {
+  /// Sender must be the Sudo account.
+  requireSudo('RequireSudo', 0);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.requireSudo;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_sudo/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_sudo/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..099afc450e4d121d34b6cd6e478aef822de84571
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_sudo/pallet/event.dart
@@ -0,0 +1,332 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../../sp_core/crypto/account_id32.dart' as _i4;
+import '../../sp_runtime/dispatch_error.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  Sudid sudid({required _i1.Result<dynamic, _i3.DispatchError> sudoResult}) {
+    return Sudid(sudoResult: sudoResult);
+  }
+
+  KeyChanged keyChanged({
+    _i4.AccountId32? old,
+    required _i4.AccountId32 new_,
+  }) {
+    return KeyChanged(
+      old: old,
+      new_: new_,
+    );
+  }
+
+  KeyRemoved keyRemoved() {
+    return const KeyRemoved();
+  }
+
+  SudoAsDone sudoAsDone(
+      {required _i1.Result<dynamic, _i3.DispatchError> sudoResult}) {
+    return SudoAsDone(sudoResult: sudoResult);
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Sudid._decode(input);
+      case 1:
+        return KeyChanged._decode(input);
+      case 2:
+        return const KeyRemoved();
+      case 3:
+        return SudoAsDone._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Sudid:
+        (value as Sudid).encodeTo(output);
+        break;
+      case KeyChanged:
+        (value as KeyChanged).encodeTo(output);
+        break;
+      case KeyRemoved:
+        (value as KeyRemoved).encodeTo(output);
+        break;
+      case SudoAsDone:
+        (value as SudoAsDone).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case Sudid:
+        return (value as Sudid)._sizeHint();
+      case KeyChanged:
+        return (value as KeyChanged)._sizeHint();
+      case KeyRemoved:
+        return 1;
+      case SudoAsDone:
+        return (value as SudoAsDone)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// A sudo call just took place.
+class Sudid extends Event {
+  const Sudid({required this.sudoResult});
+
+  factory Sudid._decode(_i1.Input input) {
+    return Sudid(
+        sudoResult: const _i1.ResultCodec<dynamic, _i3.DispatchError>(
+      _i1.NullCodec.codec,
+      _i3.DispatchError.codec,
+    ).decode(input));
+  }
+
+  /// DispatchResult
+  /// The result of the call made by the sudo user.
+  final _i1.Result<dynamic, _i3.DispatchError> sudoResult;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'Sudid': {'sudoResult': sudoResult.toJson()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.ResultCodec<dynamic, _i3.DispatchError>(
+          _i1.NullCodec.codec,
+          _i3.DispatchError.codec,
+        ).sizeHint(sudoResult);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.ResultCodec<dynamic, _i3.DispatchError>(
+      _i1.NullCodec.codec,
+      _i3.DispatchError.codec,
+    ).encodeTo(
+      sudoResult,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Sudid && other.sudoResult == sudoResult;
+
+  @override
+  int get hashCode => sudoResult.hashCode;
+}
+
+/// The sudo key has been updated.
+class KeyChanged extends Event {
+  const KeyChanged({
+    this.old,
+    required this.new_,
+  });
+
+  factory KeyChanged._decode(_i1.Input input) {
+    return KeyChanged(
+      old: const _i1.OptionCodec<_i4.AccountId32>(_i4.AccountId32Codec())
+          .decode(input),
+      new_: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// Option<T::AccountId>
+  /// The old sudo key (if one was previously set).
+  final _i4.AccountId32? old;
+
+  /// T::AccountId
+  /// The new sudo key (if one was set).
+  final _i4.AccountId32 new_;
+
+  @override
+  Map<String, Map<String, List<int>?>> toJson() => {
+        'KeyChanged': {
+          'old': old?.toList(),
+          'new': new_.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.OptionCodec<_i4.AccountId32>(_i4.AccountId32Codec())
+            .sizeHint(old);
+    size = size + const _i4.AccountId32Codec().sizeHint(new_);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i1.OptionCodec<_i4.AccountId32>(_i4.AccountId32Codec()).encodeTo(
+      old,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      new_,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is KeyChanged &&
+          other.old == old &&
+          _i5.listsEqual(
+            other.new_,
+            new_,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        old,
+        new_,
+      );
+}
+
+/// The key was permanently removed.
+class KeyRemoved extends Event {
+  const KeyRemoved();
+
+  @override
+  Map<String, dynamic> toJson() => {'KeyRemoved': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is KeyRemoved;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+/// A [sudo_as](Pallet::sudo_as) call just took place.
+class SudoAsDone extends Event {
+  const SudoAsDone({required this.sudoResult});
+
+  factory SudoAsDone._decode(_i1.Input input) {
+    return SudoAsDone(
+        sudoResult: const _i1.ResultCodec<dynamic, _i3.DispatchError>(
+      _i1.NullCodec.codec,
+      _i3.DispatchError.codec,
+    ).decode(input));
+  }
+
+  /// DispatchResult
+  /// The result of the call made by the sudo user.
+  final _i1.Result<dynamic, _i3.DispatchError> sudoResult;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'SudoAsDone': {'sudoResult': sudoResult.toJson()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.ResultCodec<dynamic, _i3.DispatchError>(
+          _i1.NullCodec.codec,
+          _i3.DispatchError.codec,
+        ).sizeHint(sudoResult);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    const _i1.ResultCodec<dynamic, _i3.DispatchError>(
+      _i1.NullCodec.codec,
+      _i3.DispatchError.codec,
+    ).encodeTo(
+      sudoResult,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SudoAsDone && other.sudoResult == sudoResult;
+
+  @override
+  int get hashCode => sudoResult.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_timestamp/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_timestamp/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..ab12e58f0b2b6e053f5aac83f8cdc19f23ce804b
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_timestamp/pallet/call.dart
@@ -0,0 +1,123 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, BigInt>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  Set set({required BigInt now}) {
+    return Set(now: now);
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Set._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Set:
+        (value as Set).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case Set:
+        return (value as Set)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::set`].
+class Set extends Call {
+  const Set({required this.now});
+
+  factory Set._decode(_i1.Input input) {
+    return Set(now: _i1.CompactBigIntCodec.codec.decode(input));
+  }
+
+  /// T::Moment
+  final BigInt now;
+
+  @override
+  Map<String, Map<String, BigInt>> toJson() => {
+        'set': {'now': now}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(now);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      now,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Set && other.now == now;
+
+  @override
+  int get hashCode => now.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_transaction_payment/charge_transaction_payment.dart b/lib/src/models/generated/duniter/types/pallet_transaction_payment/charge_transaction_payment.dart
new file mode 100644
index 0000000000000000000000000000000000000000..3abf4a8dfb8cdfd4f4f670cef3d2e0a0cc7ef877
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_transaction_payment/charge_transaction_payment.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef ChargeTransactionPayment = BigInt;
+
+class ChargeTransactionPaymentCodec with _i1.Codec<ChargeTransactionPayment> {
+  const ChargeTransactionPaymentCodec();
+
+  @override
+  ChargeTransactionPayment decode(_i1.Input input) {
+    return _i1.CompactBigIntCodec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    ChargeTransactionPayment value,
+    _i1.Output output,
+  ) {
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(ChargeTransactionPayment value) {
+    return _i1.CompactBigIntCodec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_transaction_payment/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_transaction_payment/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..32644a2354fc4ef288fcec04fdc0e3df43117041
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_transaction_payment/pallet/event.dart
@@ -0,0 +1,173 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  TransactionFeePaid transactionFeePaid({
+    required _i3.AccountId32 who,
+    required BigInt actualFee,
+    required BigInt tip,
+  }) {
+    return TransactionFeePaid(
+      who: who,
+      actualFee: actualFee,
+      tip: tip,
+    );
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return TransactionFeePaid._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case TransactionFeePaid:
+        (value as TransactionFeePaid).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case TransactionFeePaid:
+        return (value as TransactionFeePaid)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
+/// has been paid by `who`.
+class TransactionFeePaid extends Event {
+  const TransactionFeePaid({
+    required this.who,
+    required this.actualFee,
+    required this.tip,
+  });
+
+  factory TransactionFeePaid._decode(_i1.Input input) {
+    return TransactionFeePaid(
+      who: const _i1.U8ArrayCodec(32).decode(input),
+      actualFee: _i1.U64Codec.codec.decode(input),
+      tip: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  /// BalanceOf<T>
+  final BigInt actualFee;
+
+  /// BalanceOf<T>
+  final BigInt tip;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'TransactionFeePaid': {
+          'who': who.toList(),
+          'actualFee': actualFee,
+          'tip': tip,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    size = size + _i1.U64Codec.codec.sizeHint(actualFee);
+    size = size + _i1.U64Codec.codec.sizeHint(tip);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      actualFee,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      tip,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is TransactionFeePaid &&
+          _i4.listsEqual(
+            other.who,
+            who,
+          ) &&
+          other.actualFee == actualFee &&
+          other.tip == tip;
+
+  @override
+  int get hashCode => Object.hash(
+        who,
+        actualFee,
+        tip,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_transaction_payment/releases.dart b/lib/src/models/generated/duniter/types/pallet_transaction_payment/releases.dart
new file mode 100644
index 0000000000000000000000000000000000000000..0d0e0eaba035b64756c8932a6bc3f15f44a57dde
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_transaction_payment/releases.dart
@@ -0,0 +1,57 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum Releases {
+  v1Ancient('V1Ancient', 0),
+  v2('V2', 1);
+
+  const Releases(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Releases.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ReleasesCodec codec = $ReleasesCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ReleasesCodec with _i1.Codec<Releases> {
+  const $ReleasesCodec();
+
+  @override
+  Releases decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Releases.v1Ancient;
+      case 1:
+        return Releases.v2;
+      default:
+        throw Exception('Releases: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Releases value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_treasury/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_treasury/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..63c832e94e8aeab6b47fa5bbc97de76a609d8b30
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_treasury/pallet/call.dart
@@ -0,0 +1,691 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_runtime/multiaddress/multi_address.dart' as _i3;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  ProposeSpend proposeSpend({
+    required BigInt value,
+    required _i3.MultiAddress beneficiary,
+  }) {
+    return ProposeSpend(
+      value: value,
+      beneficiary: beneficiary,
+    );
+  }
+
+  RejectProposal rejectProposal({required BigInt proposalId}) {
+    return RejectProposal(proposalId: proposalId);
+  }
+
+  ApproveProposal approveProposal({required BigInt proposalId}) {
+    return ApproveProposal(proposalId: proposalId);
+  }
+
+  SpendLocal spendLocal({
+    required BigInt amount,
+    required _i3.MultiAddress beneficiary,
+  }) {
+    return SpendLocal(
+      amount: amount,
+      beneficiary: beneficiary,
+    );
+  }
+
+  RemoveApproval removeApproval({required BigInt proposalId}) {
+    return RemoveApproval(proposalId: proposalId);
+  }
+
+  Spend spend({
+    required dynamic assetKind,
+    required BigInt amount,
+    required _i3.MultiAddress beneficiary,
+    int? validFrom,
+  }) {
+    return Spend(
+      assetKind: assetKind,
+      amount: amount,
+      beneficiary: beneficiary,
+      validFrom: validFrom,
+    );
+  }
+
+  Payout payout({required int index}) {
+    return Payout(index: index);
+  }
+
+  CheckStatus checkStatus({required int index}) {
+    return CheckStatus(index: index);
+  }
+
+  VoidSpend voidSpend({required int index}) {
+    return VoidSpend(index: index);
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return ProposeSpend._decode(input);
+      case 1:
+        return RejectProposal._decode(input);
+      case 2:
+        return ApproveProposal._decode(input);
+      case 3:
+        return SpendLocal._decode(input);
+      case 4:
+        return RemoveApproval._decode(input);
+      case 5:
+        return Spend._decode(input);
+      case 6:
+        return Payout._decode(input);
+      case 7:
+        return CheckStatus._decode(input);
+      case 8:
+        return VoidSpend._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case ProposeSpend:
+        (value as ProposeSpend).encodeTo(output);
+        break;
+      case RejectProposal:
+        (value as RejectProposal).encodeTo(output);
+        break;
+      case ApproveProposal:
+        (value as ApproveProposal).encodeTo(output);
+        break;
+      case SpendLocal:
+        (value as SpendLocal).encodeTo(output);
+        break;
+      case RemoveApproval:
+        (value as RemoveApproval).encodeTo(output);
+        break;
+      case Spend:
+        (value as Spend).encodeTo(output);
+        break;
+      case Payout:
+        (value as Payout).encodeTo(output);
+        break;
+      case CheckStatus:
+        (value as CheckStatus).encodeTo(output);
+        break;
+      case VoidSpend:
+        (value as VoidSpend).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case ProposeSpend:
+        return (value as ProposeSpend)._sizeHint();
+      case RejectProposal:
+        return (value as RejectProposal)._sizeHint();
+      case ApproveProposal:
+        return (value as ApproveProposal)._sizeHint();
+      case SpendLocal:
+        return (value as SpendLocal)._sizeHint();
+      case RemoveApproval:
+        return (value as RemoveApproval)._sizeHint();
+      case Spend:
+        return (value as Spend)._sizeHint();
+      case Payout:
+        return (value as Payout)._sizeHint();
+      case CheckStatus:
+        return (value as CheckStatus)._sizeHint();
+      case VoidSpend:
+        return (value as VoidSpend)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::propose_spend`].
+class ProposeSpend extends Call {
+  const ProposeSpend({
+    required this.value,
+    required this.beneficiary,
+  });
+
+  factory ProposeSpend._decode(_i1.Input input) {
+    return ProposeSpend(
+      value: _i1.CompactBigIntCodec.codec.decode(input),
+      beneficiary: _i3.MultiAddress.codec.decode(input),
+    );
+  }
+
+  /// BalanceOf<T, I>
+  final BigInt value;
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress beneficiary;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'propose_spend': {
+          'value': value,
+          'beneficiary': beneficiary.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(value);
+    size = size + _i3.MultiAddress.codec.sizeHint(beneficiary);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      value,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      beneficiary,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ProposeSpend &&
+          other.value == value &&
+          other.beneficiary == beneficiary;
+
+  @override
+  int get hashCode => Object.hash(
+        value,
+        beneficiary,
+      );
+}
+
+/// See [`Pallet::reject_proposal`].
+class RejectProposal extends Call {
+  const RejectProposal({required this.proposalId});
+
+  factory RejectProposal._decode(_i1.Input input) {
+    return RejectProposal(
+        proposalId: _i1.CompactBigIntCodec.codec.decode(input));
+  }
+
+  /// ProposalIndex
+  final BigInt proposalId;
+
+  @override
+  Map<String, Map<String, BigInt>> toJson() => {
+        'reject_proposal': {'proposalId': proposalId}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(proposalId);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      proposalId,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RejectProposal && other.proposalId == proposalId;
+
+  @override
+  int get hashCode => proposalId.hashCode;
+}
+
+/// See [`Pallet::approve_proposal`].
+class ApproveProposal extends Call {
+  const ApproveProposal({required this.proposalId});
+
+  factory ApproveProposal._decode(_i1.Input input) {
+    return ApproveProposal(
+        proposalId: _i1.CompactBigIntCodec.codec.decode(input));
+  }
+
+  /// ProposalIndex
+  final BigInt proposalId;
+
+  @override
+  Map<String, Map<String, BigInt>> toJson() => {
+        'approve_proposal': {'proposalId': proposalId}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(proposalId);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      proposalId,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ApproveProposal && other.proposalId == proposalId;
+
+  @override
+  int get hashCode => proposalId.hashCode;
+}
+
+/// See [`Pallet::spend_local`].
+class SpendLocal extends Call {
+  const SpendLocal({
+    required this.amount,
+    required this.beneficiary,
+  });
+
+  factory SpendLocal._decode(_i1.Input input) {
+    return SpendLocal(
+      amount: _i1.CompactBigIntCodec.codec.decode(input),
+      beneficiary: _i3.MultiAddress.codec.decode(input),
+    );
+  }
+
+  /// BalanceOf<T, I>
+  final BigInt amount;
+
+  /// AccountIdLookupOf<T>
+  final _i3.MultiAddress beneficiary;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'spend_local': {
+          'amount': amount,
+          'beneficiary': beneficiary.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(amount);
+    size = size + _i3.MultiAddress.codec.sizeHint(beneficiary);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      amount,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      beneficiary,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SpendLocal &&
+          other.amount == amount &&
+          other.beneficiary == beneficiary;
+
+  @override
+  int get hashCode => Object.hash(
+        amount,
+        beneficiary,
+      );
+}
+
+/// See [`Pallet::remove_approval`].
+class RemoveApproval extends Call {
+  const RemoveApproval({required this.proposalId});
+
+  factory RemoveApproval._decode(_i1.Input input) {
+    return RemoveApproval(
+        proposalId: _i1.CompactBigIntCodec.codec.decode(input));
+  }
+
+  /// ProposalIndex
+  final BigInt proposalId;
+
+  @override
+  Map<String, Map<String, BigInt>> toJson() => {
+        'remove_approval': {'proposalId': proposalId}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(proposalId);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      proposalId,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RemoveApproval && other.proposalId == proposalId;
+
+  @override
+  int get hashCode => proposalId.hashCode;
+}
+
+/// See [`Pallet::spend`].
+class Spend extends Call {
+  const Spend({
+    required this.assetKind,
+    required this.amount,
+    required this.beneficiary,
+    this.validFrom,
+  });
+
+  factory Spend._decode(_i1.Input input) {
+    return Spend(
+      assetKind: _i1.NullCodec.codec.decode(input),
+      amount: _i1.CompactBigIntCodec.codec.decode(input),
+      beneficiary: _i3.MultiAddress.codec.decode(input),
+      validFrom: const _i1.OptionCodec<int>(_i1.U32Codec.codec).decode(input),
+    );
+  }
+
+  /// Box<T::AssetKind>
+  final dynamic assetKind;
+
+  /// AssetBalanceOf<T, I>
+  final BigInt amount;
+
+  /// Box<BeneficiaryLookupOf<T, I>>
+  final _i3.MultiAddress beneficiary;
+
+  /// Option<BlockNumberFor<T>>
+  final int? validFrom;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'spend': {
+          'assetKind': null,
+          'amount': amount,
+          'beneficiary': beneficiary.toJson(),
+          'validFrom': validFrom,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.NullCodec.codec.sizeHint(assetKind);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(amount);
+    size = size + _i3.MultiAddress.codec.sizeHint(beneficiary);
+    size = size +
+        const _i1.OptionCodec<int>(_i1.U32Codec.codec).sizeHint(validFrom);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    _i1.NullCodec.codec.encodeTo(
+      assetKind,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      amount,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      beneficiary,
+      output,
+    );
+    const _i1.OptionCodec<int>(_i1.U32Codec.codec).encodeTo(
+      validFrom,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Spend &&
+          other.assetKind == assetKind &&
+          other.amount == amount &&
+          other.beneficiary == beneficiary &&
+          other.validFrom == validFrom;
+
+  @override
+  int get hashCode => Object.hash(
+        assetKind,
+        amount,
+        beneficiary,
+        validFrom,
+      );
+}
+
+/// See [`Pallet::payout`].
+class Payout extends Call {
+  const Payout({required this.index});
+
+  factory Payout._decode(_i1.Input input) {
+    return Payout(index: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// SpendIndex
+  final int index;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'payout': {'index': index}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(index);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      6,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      index,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Payout && other.index == index;
+
+  @override
+  int get hashCode => index.hashCode;
+}
+
+/// See [`Pallet::check_status`].
+class CheckStatus extends Call {
+  const CheckStatus({required this.index});
+
+  factory CheckStatus._decode(_i1.Input input) {
+    return CheckStatus(index: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// SpendIndex
+  final int index;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'check_status': {'index': index}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(index);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      7,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      index,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is CheckStatus && other.index == index;
+
+  @override
+  int get hashCode => index.hashCode;
+}
+
+/// See [`Pallet::void_spend`].
+class VoidSpend extends Call {
+  const VoidSpend({required this.index});
+
+  factory VoidSpend._decode(_i1.Input input) {
+    return VoidSpend(index: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// SpendIndex
+  final int index;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'void_spend': {'index': index}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(index);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      8,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      index,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is VoidSpend && other.index == index;
+
+  @override
+  int get hashCode => index.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_treasury/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_treasury/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f340f4e4913a45cbb4d946519b334f7af58fb03d
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_treasury/pallet/error.dart
@@ -0,0 +1,112 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// Error for the treasury pallet.
+enum Error {
+  /// Proposer's balance is too low.
+  insufficientProposersBalance('InsufficientProposersBalance', 0),
+
+  /// No proposal, bounty or spend at that index.
+  invalidIndex('InvalidIndex', 1),
+
+  /// Too many approvals in the queue.
+  tooManyApprovals('TooManyApprovals', 2),
+
+  /// The spend origin is valid but the amount it is allowed to spend is lower than the
+  /// amount to be spent.
+  insufficientPermission('InsufficientPermission', 3),
+
+  /// Proposal has not been approved.
+  proposalNotApproved('ProposalNotApproved', 4),
+
+  /// The balance of the asset kind is not convertible to the balance of the native asset.
+  failedToConvertBalance('FailedToConvertBalance', 5),
+
+  /// The spend has expired and cannot be claimed.
+  spendExpired('SpendExpired', 6),
+
+  /// The spend is not yet eligible for payout.
+  earlyPayout('EarlyPayout', 7),
+
+  /// The payment has already been attempted.
+  alreadyAttempted('AlreadyAttempted', 8),
+
+  /// There was some issue with the mechanism of payment.
+  payoutError('PayoutError', 9),
+
+  /// The payout was not yet attempted/claimed.
+  notAttempted('NotAttempted', 10),
+
+  /// The payment has neither failed nor succeeded yet.
+  inconclusive('Inconclusive', 11);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.insufficientProposersBalance;
+      case 1:
+        return Error.invalidIndex;
+      case 2:
+        return Error.tooManyApprovals;
+      case 3:
+        return Error.insufficientPermission;
+      case 4:
+        return Error.proposalNotApproved;
+      case 5:
+        return Error.failedToConvertBalance;
+      case 6:
+        return Error.spendExpired;
+      case 7:
+        return Error.earlyPayout;
+      case 8:
+        return Error.alreadyAttempted;
+      case 9:
+        return Error.payoutError;
+      case 10:
+        return Error.notAttempted;
+      case 11:
+        return Error.inconclusive;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_treasury/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_treasury/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..1f93b98405367a677c6b720a3df344258d179030
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_treasury/pallet/event.dart
@@ -0,0 +1,1148 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  Proposed proposed({required int proposalIndex}) {
+    return Proposed(proposalIndex: proposalIndex);
+  }
+
+  Spending spending({required BigInt budgetRemaining}) {
+    return Spending(budgetRemaining: budgetRemaining);
+  }
+
+  Awarded awarded({
+    required int proposalIndex,
+    required BigInt award,
+    required _i3.AccountId32 account,
+  }) {
+    return Awarded(
+      proposalIndex: proposalIndex,
+      award: award,
+      account: account,
+    );
+  }
+
+  Rejected rejected({
+    required int proposalIndex,
+    required BigInt slashed,
+  }) {
+    return Rejected(
+      proposalIndex: proposalIndex,
+      slashed: slashed,
+    );
+  }
+
+  Burnt burnt({required BigInt burntFunds}) {
+    return Burnt(burntFunds: burntFunds);
+  }
+
+  Rollover rollover({required BigInt rolloverBalance}) {
+    return Rollover(rolloverBalance: rolloverBalance);
+  }
+
+  Deposit deposit({required BigInt value}) {
+    return Deposit(value: value);
+  }
+
+  SpendApproved spendApproved({
+    required int proposalIndex,
+    required BigInt amount,
+    required _i3.AccountId32 beneficiary,
+  }) {
+    return SpendApproved(
+      proposalIndex: proposalIndex,
+      amount: amount,
+      beneficiary: beneficiary,
+    );
+  }
+
+  UpdatedInactive updatedInactive({
+    required BigInt reactivated,
+    required BigInt deactivated,
+  }) {
+    return UpdatedInactive(
+      reactivated: reactivated,
+      deactivated: deactivated,
+    );
+  }
+
+  AssetSpendApproved assetSpendApproved({
+    required int index,
+    required dynamic assetKind,
+    required BigInt amount,
+    required _i3.AccountId32 beneficiary,
+    required int validFrom,
+    required int expireAt,
+  }) {
+    return AssetSpendApproved(
+      index: index,
+      assetKind: assetKind,
+      amount: amount,
+      beneficiary: beneficiary,
+      validFrom: validFrom,
+      expireAt: expireAt,
+    );
+  }
+
+  AssetSpendVoided assetSpendVoided({required int index}) {
+    return AssetSpendVoided(index: index);
+  }
+
+  Paid paid({
+    required int index,
+    required dynamic paymentId,
+  }) {
+    return Paid(
+      index: index,
+      paymentId: paymentId,
+    );
+  }
+
+  PaymentFailed paymentFailed({
+    required int index,
+    required dynamic paymentId,
+  }) {
+    return PaymentFailed(
+      index: index,
+      paymentId: paymentId,
+    );
+  }
+
+  SpendProcessed spendProcessed({required int index}) {
+    return SpendProcessed(index: index);
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Proposed._decode(input);
+      case 1:
+        return Spending._decode(input);
+      case 2:
+        return Awarded._decode(input);
+      case 3:
+        return Rejected._decode(input);
+      case 4:
+        return Burnt._decode(input);
+      case 5:
+        return Rollover._decode(input);
+      case 6:
+        return Deposit._decode(input);
+      case 7:
+        return SpendApproved._decode(input);
+      case 8:
+        return UpdatedInactive._decode(input);
+      case 9:
+        return AssetSpendApproved._decode(input);
+      case 10:
+        return AssetSpendVoided._decode(input);
+      case 11:
+        return Paid._decode(input);
+      case 12:
+        return PaymentFailed._decode(input);
+      case 13:
+        return SpendProcessed._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Proposed:
+        (value as Proposed).encodeTo(output);
+        break;
+      case Spending:
+        (value as Spending).encodeTo(output);
+        break;
+      case Awarded:
+        (value as Awarded).encodeTo(output);
+        break;
+      case Rejected:
+        (value as Rejected).encodeTo(output);
+        break;
+      case Burnt:
+        (value as Burnt).encodeTo(output);
+        break;
+      case Rollover:
+        (value as Rollover).encodeTo(output);
+        break;
+      case Deposit:
+        (value as Deposit).encodeTo(output);
+        break;
+      case SpendApproved:
+        (value as SpendApproved).encodeTo(output);
+        break;
+      case UpdatedInactive:
+        (value as UpdatedInactive).encodeTo(output);
+        break;
+      case AssetSpendApproved:
+        (value as AssetSpendApproved).encodeTo(output);
+        break;
+      case AssetSpendVoided:
+        (value as AssetSpendVoided).encodeTo(output);
+        break;
+      case Paid:
+        (value as Paid).encodeTo(output);
+        break;
+      case PaymentFailed:
+        (value as PaymentFailed).encodeTo(output);
+        break;
+      case SpendProcessed:
+        (value as SpendProcessed).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case Proposed:
+        return (value as Proposed)._sizeHint();
+      case Spending:
+        return (value as Spending)._sizeHint();
+      case Awarded:
+        return (value as Awarded)._sizeHint();
+      case Rejected:
+        return (value as Rejected)._sizeHint();
+      case Burnt:
+        return (value as Burnt)._sizeHint();
+      case Rollover:
+        return (value as Rollover)._sizeHint();
+      case Deposit:
+        return (value as Deposit)._sizeHint();
+      case SpendApproved:
+        return (value as SpendApproved)._sizeHint();
+      case UpdatedInactive:
+        return (value as UpdatedInactive)._sizeHint();
+      case AssetSpendApproved:
+        return (value as AssetSpendApproved)._sizeHint();
+      case AssetSpendVoided:
+        return (value as AssetSpendVoided)._sizeHint();
+      case Paid:
+        return (value as Paid)._sizeHint();
+      case PaymentFailed:
+        return (value as PaymentFailed)._sizeHint();
+      case SpendProcessed:
+        return (value as SpendProcessed)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// New proposal.
+class Proposed extends Event {
+  const Proposed({required this.proposalIndex});
+
+  factory Proposed._decode(_i1.Input input) {
+    return Proposed(proposalIndex: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// ProposalIndex
+  final int proposalIndex;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'Proposed': {'proposalIndex': proposalIndex}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(proposalIndex);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      proposalIndex,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Proposed && other.proposalIndex == proposalIndex;
+
+  @override
+  int get hashCode => proposalIndex.hashCode;
+}
+
+/// We have ended a spend period and will now allocate funds.
+class Spending extends Event {
+  const Spending({required this.budgetRemaining});
+
+  factory Spending._decode(_i1.Input input) {
+    return Spending(budgetRemaining: _i1.U64Codec.codec.decode(input));
+  }
+
+  /// BalanceOf<T, I>
+  final BigInt budgetRemaining;
+
+  @override
+  Map<String, Map<String, BigInt>> toJson() => {
+        'Spending': {'budgetRemaining': budgetRemaining}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U64Codec.codec.sizeHint(budgetRemaining);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      budgetRemaining,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Spending && other.budgetRemaining == budgetRemaining;
+
+  @override
+  int get hashCode => budgetRemaining.hashCode;
+}
+
+/// Some funds have been allocated.
+class Awarded extends Event {
+  const Awarded({
+    required this.proposalIndex,
+    required this.award,
+    required this.account,
+  });
+
+  factory Awarded._decode(_i1.Input input) {
+    return Awarded(
+      proposalIndex: _i1.U32Codec.codec.decode(input),
+      award: _i1.U64Codec.codec.decode(input),
+      account: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// ProposalIndex
+  final int proposalIndex;
+
+  /// BalanceOf<T, I>
+  final BigInt award;
+
+  /// T::AccountId
+  final _i3.AccountId32 account;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Awarded': {
+          'proposalIndex': proposalIndex,
+          'award': award,
+          'account': account.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(proposalIndex);
+    size = size + _i1.U64Codec.codec.sizeHint(award);
+    size = size + const _i3.AccountId32Codec().sizeHint(account);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      proposalIndex,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      award,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      account,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Awarded &&
+          other.proposalIndex == proposalIndex &&
+          other.award == award &&
+          _i4.listsEqual(
+            other.account,
+            account,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        proposalIndex,
+        award,
+        account,
+      );
+}
+
+/// A proposal was rejected; funds were slashed.
+class Rejected extends Event {
+  const Rejected({
+    required this.proposalIndex,
+    required this.slashed,
+  });
+
+  factory Rejected._decode(_i1.Input input) {
+    return Rejected(
+      proposalIndex: _i1.U32Codec.codec.decode(input),
+      slashed: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// ProposalIndex
+  final int proposalIndex;
+
+  /// BalanceOf<T, I>
+  final BigInt slashed;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Rejected': {
+          'proposalIndex': proposalIndex,
+          'slashed': slashed,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(proposalIndex);
+    size = size + _i1.U64Codec.codec.sizeHint(slashed);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      proposalIndex,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      slashed,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Rejected &&
+          other.proposalIndex == proposalIndex &&
+          other.slashed == slashed;
+
+  @override
+  int get hashCode => Object.hash(
+        proposalIndex,
+        slashed,
+      );
+}
+
+/// Some of our funds have been burnt.
+class Burnt extends Event {
+  const Burnt({required this.burntFunds});
+
+  factory Burnt._decode(_i1.Input input) {
+    return Burnt(burntFunds: _i1.U64Codec.codec.decode(input));
+  }
+
+  /// BalanceOf<T, I>
+  final BigInt burntFunds;
+
+  @override
+  Map<String, Map<String, BigInt>> toJson() => {
+        'Burnt': {'burntFunds': burntFunds}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U64Codec.codec.sizeHint(burntFunds);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      burntFunds,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Burnt && other.burntFunds == burntFunds;
+
+  @override
+  int get hashCode => burntFunds.hashCode;
+}
+
+/// Spending has finished; this is the amount that rolls over until next spend.
+class Rollover extends Event {
+  const Rollover({required this.rolloverBalance});
+
+  factory Rollover._decode(_i1.Input input) {
+    return Rollover(rolloverBalance: _i1.U64Codec.codec.decode(input));
+  }
+
+  /// BalanceOf<T, I>
+  final BigInt rolloverBalance;
+
+  @override
+  Map<String, Map<String, BigInt>> toJson() => {
+        'Rollover': {'rolloverBalance': rolloverBalance}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U64Codec.codec.sizeHint(rolloverBalance);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      rolloverBalance,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Rollover && other.rolloverBalance == rolloverBalance;
+
+  @override
+  int get hashCode => rolloverBalance.hashCode;
+}
+
+/// Some funds have been deposited.
+class Deposit extends Event {
+  const Deposit({required this.value});
+
+  factory Deposit._decode(_i1.Input input) {
+    return Deposit(value: _i1.U64Codec.codec.decode(input));
+  }
+
+  /// BalanceOf<T, I>
+  final BigInt value;
+
+  @override
+  Map<String, Map<String, BigInt>> toJson() => {
+        'Deposit': {'value': value}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U64Codec.codec.sizeHint(value);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      6,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Deposit && other.value == value;
+
+  @override
+  int get hashCode => value.hashCode;
+}
+
+/// A new spend proposal has been approved.
+class SpendApproved extends Event {
+  const SpendApproved({
+    required this.proposalIndex,
+    required this.amount,
+    required this.beneficiary,
+  });
+
+  factory SpendApproved._decode(_i1.Input input) {
+    return SpendApproved(
+      proposalIndex: _i1.U32Codec.codec.decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+      beneficiary: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// ProposalIndex
+  final int proposalIndex;
+
+  /// BalanceOf<T, I>
+  final BigInt amount;
+
+  /// T::AccountId
+  final _i3.AccountId32 beneficiary;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'SpendApproved': {
+          'proposalIndex': proposalIndex,
+          'amount': amount,
+          'beneficiary': beneficiary.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(proposalIndex);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    size = size + const _i3.AccountId32Codec().sizeHint(beneficiary);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      7,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      proposalIndex,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      beneficiary,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SpendApproved &&
+          other.proposalIndex == proposalIndex &&
+          other.amount == amount &&
+          _i4.listsEqual(
+            other.beneficiary,
+            beneficiary,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        proposalIndex,
+        amount,
+        beneficiary,
+      );
+}
+
+/// The inactive funds of the pallet have been updated.
+class UpdatedInactive extends Event {
+  const UpdatedInactive({
+    required this.reactivated,
+    required this.deactivated,
+  });
+
+  factory UpdatedInactive._decode(_i1.Input input) {
+    return UpdatedInactive(
+      reactivated: _i1.U64Codec.codec.decode(input),
+      deactivated: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// BalanceOf<T, I>
+  final BigInt reactivated;
+
+  /// BalanceOf<T, I>
+  final BigInt deactivated;
+
+  @override
+  Map<String, Map<String, BigInt>> toJson() => {
+        'UpdatedInactive': {
+          'reactivated': reactivated,
+          'deactivated': deactivated,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U64Codec.codec.sizeHint(reactivated);
+    size = size + _i1.U64Codec.codec.sizeHint(deactivated);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      8,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      reactivated,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      deactivated,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is UpdatedInactive &&
+          other.reactivated == reactivated &&
+          other.deactivated == deactivated;
+
+  @override
+  int get hashCode => Object.hash(
+        reactivated,
+        deactivated,
+      );
+}
+
+/// A new asset spend proposal has been approved.
+class AssetSpendApproved extends Event {
+  const AssetSpendApproved({
+    required this.index,
+    required this.assetKind,
+    required this.amount,
+    required this.beneficiary,
+    required this.validFrom,
+    required this.expireAt,
+  });
+
+  factory AssetSpendApproved._decode(_i1.Input input) {
+    return AssetSpendApproved(
+      index: _i1.U32Codec.codec.decode(input),
+      assetKind: _i1.NullCodec.codec.decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+      beneficiary: const _i1.U8ArrayCodec(32).decode(input),
+      validFrom: _i1.U32Codec.codec.decode(input),
+      expireAt: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  /// SpendIndex
+  final int index;
+
+  /// T::AssetKind
+  final dynamic assetKind;
+
+  /// AssetBalanceOf<T, I>
+  final BigInt amount;
+
+  /// T::Beneficiary
+  final _i3.AccountId32 beneficiary;
+
+  /// BlockNumberFor<T>
+  final int validFrom;
+
+  /// BlockNumberFor<T>
+  final int expireAt;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'AssetSpendApproved': {
+          'index': index,
+          'assetKind': null,
+          'amount': amount,
+          'beneficiary': beneficiary.toList(),
+          'validFrom': validFrom,
+          'expireAt': expireAt,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(index);
+    size = size + _i1.NullCodec.codec.sizeHint(assetKind);
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    size = size + const _i3.AccountId32Codec().sizeHint(beneficiary);
+    size = size + _i1.U32Codec.codec.sizeHint(validFrom);
+    size = size + _i1.U32Codec.codec.sizeHint(expireAt);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      9,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      index,
+      output,
+    );
+    _i1.NullCodec.codec.encodeTo(
+      assetKind,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      beneficiary,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      validFrom,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      expireAt,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AssetSpendApproved &&
+          other.index == index &&
+          other.assetKind == assetKind &&
+          other.amount == amount &&
+          _i4.listsEqual(
+            other.beneficiary,
+            beneficiary,
+          ) &&
+          other.validFrom == validFrom &&
+          other.expireAt == expireAt;
+
+  @override
+  int get hashCode => Object.hash(
+        index,
+        assetKind,
+        amount,
+        beneficiary,
+        validFrom,
+        expireAt,
+      );
+}
+
+/// An approved spend was voided.
+class AssetSpendVoided extends Event {
+  const AssetSpendVoided({required this.index});
+
+  factory AssetSpendVoided._decode(_i1.Input input) {
+    return AssetSpendVoided(index: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// SpendIndex
+  final int index;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'AssetSpendVoided': {'index': index}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(index);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      10,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      index,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AssetSpendVoided && other.index == index;
+
+  @override
+  int get hashCode => index.hashCode;
+}
+
+/// A payment happened.
+class Paid extends Event {
+  const Paid({
+    required this.index,
+    required this.paymentId,
+  });
+
+  factory Paid._decode(_i1.Input input) {
+    return Paid(
+      index: _i1.U32Codec.codec.decode(input),
+      paymentId: _i1.NullCodec.codec.decode(input),
+    );
+  }
+
+  /// SpendIndex
+  final int index;
+
+  /// <T::Paymaster as Pay>::Id
+  final dynamic paymentId;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Paid': {
+          'index': index,
+          'paymentId': null,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(index);
+    size = size + _i1.NullCodec.codec.sizeHint(paymentId);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      11,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      index,
+      output,
+    );
+    _i1.NullCodec.codec.encodeTo(
+      paymentId,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Paid && other.index == index && other.paymentId == paymentId;
+
+  @override
+  int get hashCode => Object.hash(
+        index,
+        paymentId,
+      );
+}
+
+/// A payment failed and can be retried.
+class PaymentFailed extends Event {
+  const PaymentFailed({
+    required this.index,
+    required this.paymentId,
+  });
+
+  factory PaymentFailed._decode(_i1.Input input) {
+    return PaymentFailed(
+      index: _i1.U32Codec.codec.decode(input),
+      paymentId: _i1.NullCodec.codec.decode(input),
+    );
+  }
+
+  /// SpendIndex
+  final int index;
+
+  /// <T::Paymaster as Pay>::Id
+  final dynamic paymentId;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'PaymentFailed': {
+          'index': index,
+          'paymentId': null,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(index);
+    size = size + _i1.NullCodec.codec.sizeHint(paymentId);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      12,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      index,
+      output,
+    );
+    _i1.NullCodec.codec.encodeTo(
+      paymentId,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is PaymentFailed &&
+          other.index == index &&
+          other.paymentId == paymentId;
+
+  @override
+  int get hashCode => Object.hash(
+        index,
+        paymentId,
+      );
+}
+
+/// A spend was processed and removed from the storage. It might have been successfully
+/// paid or it may have expired.
+class SpendProcessed extends Event {
+  const SpendProcessed({required this.index});
+
+  factory SpendProcessed._decode(_i1.Input input) {
+    return SpendProcessed(index: _i1.U32Codec.codec.decode(input));
+  }
+
+  /// SpendIndex
+  final int index;
+
+  @override
+  Map<String, Map<String, int>> toJson() => {
+        'SpendProcessed': {'index': index}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(index);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      13,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      index,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SpendProcessed && other.index == index;
+
+  @override
+  int get hashCode => index.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_treasury/payment_state.dart b/lib/src/models/generated/duniter/types/pallet_treasury/payment_state.dart
new file mode 100644
index 0000000000000000000000000000000000000000..551c04b5650c4569b1da55b855d9d24dbd606fc4
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_treasury/payment_state.dart
@@ -0,0 +1,183 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+abstract class PaymentState {
+  const PaymentState();
+
+  factory PaymentState.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $PaymentStateCodec codec = $PaymentStateCodec();
+
+  static const $PaymentState values = $PaymentState();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $PaymentState {
+  const $PaymentState();
+
+  Pending pending() {
+    return const Pending();
+  }
+
+  Attempted attempted({required dynamic id}) {
+    return Attempted(id: id);
+  }
+
+  Failed failed() {
+    return const Failed();
+  }
+}
+
+class $PaymentStateCodec with _i1.Codec<PaymentState> {
+  const $PaymentStateCodec();
+
+  @override
+  PaymentState decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return const Pending();
+      case 1:
+        return Attempted._decode(input);
+      case 2:
+        return const Failed();
+      default:
+        throw Exception('PaymentState: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    PaymentState value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Pending:
+        (value as Pending).encodeTo(output);
+        break;
+      case Attempted:
+        (value as Attempted).encodeTo(output);
+        break;
+      case Failed:
+        (value as Failed).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'PaymentState: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(PaymentState value) {
+    switch (value.runtimeType) {
+      case Pending:
+        return 1;
+      case Attempted:
+        return (value as Attempted)._sizeHint();
+      case Failed:
+        return 1;
+      default:
+        throw Exception(
+            'PaymentState: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class Pending extends PaymentState {
+  const Pending();
+
+  @override
+  Map<String, dynamic> toJson() => {'Pending': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is Pending;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+class Attempted extends PaymentState {
+  const Attempted({required this.id});
+
+  factory Attempted._decode(_i1.Input input) {
+    return Attempted(id: _i1.NullCodec.codec.decode(input));
+  }
+
+  /// Id
+  final dynamic id;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'Attempted': {'id': null}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.NullCodec.codec.sizeHint(id);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.NullCodec.codec.encodeTo(
+      id,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Attempted && other.id == id;
+
+  @override
+  int get hashCode => id.hashCode;
+}
+
+class Failed extends PaymentState {
+  const Failed();
+
+  @override
+  Map<String, dynamic> toJson() => {'Failed': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is Failed;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_treasury/proposal.dart b/lib/src/models/generated/duniter/types/pallet_treasury/proposal.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f2a2a1e229647ad0019046f78e9bedebe4aa9a75
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_treasury/proposal.dart
@@ -0,0 +1,118 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../sp_core/crypto/account_id32.dart' as _i2;
+
+class Proposal {
+  const Proposal({
+    required this.proposer,
+    required this.value,
+    required this.beneficiary,
+    required this.bond,
+  });
+
+  factory Proposal.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// AccountId
+  final _i2.AccountId32 proposer;
+
+  /// Balance
+  final BigInt value;
+
+  /// AccountId
+  final _i2.AccountId32 beneficiary;
+
+  /// Balance
+  final BigInt bond;
+
+  static const $ProposalCodec codec = $ProposalCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'proposer': proposer.toList(),
+        'value': value,
+        'beneficiary': beneficiary.toList(),
+        'bond': bond,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Proposal &&
+          _i4.listsEqual(
+            other.proposer,
+            proposer,
+          ) &&
+          other.value == value &&
+          _i4.listsEqual(
+            other.beneficiary,
+            beneficiary,
+          ) &&
+          other.bond == bond;
+
+  @override
+  int get hashCode => Object.hash(
+        proposer,
+        value,
+        beneficiary,
+        bond,
+      );
+}
+
+class $ProposalCodec with _i1.Codec<Proposal> {
+  const $ProposalCodec();
+
+  @override
+  void encodeTo(
+    Proposal obj,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.proposer,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.value,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.beneficiary,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.bond,
+      output,
+    );
+  }
+
+  @override
+  Proposal decode(_i1.Input input) {
+    return Proposal(
+      proposer: const _i1.U8ArrayCodec(32).decode(input),
+      value: _i1.U64Codec.codec.decode(input),
+      beneficiary: const _i1.U8ArrayCodec(32).decode(input),
+      bond: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Proposal obj) {
+    int size = 0;
+    size = size + const _i2.AccountId32Codec().sizeHint(obj.proposer);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.value);
+    size = size + const _i2.AccountId32Codec().sizeHint(obj.beneficiary);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.bond);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_treasury/spend_status.dart b/lib/src/models/generated/duniter/types/pallet_treasury/spend_status.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d74fc697248eb261a56ff4d7cea2dc21ad0ee670
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_treasury/spend_status.dart
@@ -0,0 +1,142 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../sp_core/crypto/account_id32.dart' as _i2;
+import 'payment_state.dart' as _i3;
+
+class SpendStatus {
+  const SpendStatus({
+    required this.assetKind,
+    required this.amount,
+    required this.beneficiary,
+    required this.validFrom,
+    required this.expireAt,
+    required this.status,
+  });
+
+  factory SpendStatus.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// AssetKind
+  final dynamic assetKind;
+
+  /// AssetBalance
+  final BigInt amount;
+
+  /// Beneficiary
+  final _i2.AccountId32 beneficiary;
+
+  /// BlockNumber
+  final int validFrom;
+
+  /// BlockNumber
+  final int expireAt;
+
+  /// PaymentState<PaymentId>
+  final _i3.PaymentState status;
+
+  static const $SpendStatusCodec codec = $SpendStatusCodec();
+
+  _i4.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'assetKind': null,
+        'amount': amount,
+        'beneficiary': beneficiary.toList(),
+        'validFrom': validFrom,
+        'expireAt': expireAt,
+        'status': status.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SpendStatus &&
+          other.assetKind == assetKind &&
+          other.amount == amount &&
+          _i5.listsEqual(
+            other.beneficiary,
+            beneficiary,
+          ) &&
+          other.validFrom == validFrom &&
+          other.expireAt == expireAt &&
+          other.status == status;
+
+  @override
+  int get hashCode => Object.hash(
+        assetKind,
+        amount,
+        beneficiary,
+        validFrom,
+        expireAt,
+        status,
+      );
+}
+
+class $SpendStatusCodec with _i1.Codec<SpendStatus> {
+  const $SpendStatusCodec();
+
+  @override
+  void encodeTo(
+    SpendStatus obj,
+    _i1.Output output,
+  ) {
+    _i1.NullCodec.codec.encodeTo(
+      obj.assetKind,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.amount,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.beneficiary,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.validFrom,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.expireAt,
+      output,
+    );
+    _i3.PaymentState.codec.encodeTo(
+      obj.status,
+      output,
+    );
+  }
+
+  @override
+  SpendStatus decode(_i1.Input input) {
+    return SpendStatus(
+      assetKind: _i1.NullCodec.codec.decode(input),
+      amount: _i1.U64Codec.codec.decode(input),
+      beneficiary: const _i1.U8ArrayCodec(32).decode(input),
+      validFrom: _i1.U32Codec.codec.decode(input),
+      expireAt: _i1.U32Codec.codec.decode(input),
+      status: _i3.PaymentState.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(SpendStatus obj) {
+    int size = 0;
+    size = size + _i1.NullCodec.codec.sizeHint(obj.assetKind);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.amount);
+    size = size + const _i2.AccountId32Codec().sizeHint(obj.beneficiary);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.validFrom);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.expireAt);
+    size = size + _i3.PaymentState.codec.sizeHint(obj.status);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_universal_dividend/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_universal_dividend/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..31d2bf82a7d9f837c39ae806b1bc8519c15cd05b
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_universal_dividend/pallet/call.dart
@@ -0,0 +1,267 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_runtime/multiaddress/multi_address.dart' as _i3;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  ClaimUds claimUds() {
+    return const ClaimUds();
+  }
+
+  TransferUd transferUd({
+    required _i3.MultiAddress dest,
+    required BigInt value,
+  }) {
+    return TransferUd(
+      dest: dest,
+      value: value,
+    );
+  }
+
+  TransferUdKeepAlive transferUdKeepAlive({
+    required _i3.MultiAddress dest,
+    required BigInt value,
+  }) {
+    return TransferUdKeepAlive(
+      dest: dest,
+      value: value,
+    );
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return const ClaimUds();
+      case 1:
+        return TransferUd._decode(input);
+      case 2:
+        return TransferUdKeepAlive._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case ClaimUds:
+        (value as ClaimUds).encodeTo(output);
+        break;
+      case TransferUd:
+        (value as TransferUd).encodeTo(output);
+        break;
+      case TransferUdKeepAlive:
+        (value as TransferUdKeepAlive).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case ClaimUds:
+        return 1;
+      case TransferUd:
+        return (value as TransferUd)._sizeHint();
+      case TransferUdKeepAlive:
+        return (value as TransferUdKeepAlive)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::claim_uds`].
+class ClaimUds extends Call {
+  const ClaimUds();
+
+  @override
+  Map<String, dynamic> toJson() => {'claim_uds': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is ClaimUds;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+/// See [`Pallet::transfer_ud`].
+class TransferUd extends Call {
+  const TransferUd({
+    required this.dest,
+    required this.value,
+  });
+
+  factory TransferUd._decode(_i1.Input input) {
+    return TransferUd(
+      dest: _i3.MultiAddress.codec.decode(input),
+      value: _i1.CompactBigIntCodec.codec.decode(input),
+    );
+  }
+
+  /// <T::Lookup as StaticLookup>::Source
+  final _i3.MultiAddress dest;
+
+  /// BalanceOf<T>
+  final BigInt value;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'transfer_ud': {
+          'dest': dest.toJson(),
+          'value': value,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(dest);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(value);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      dest,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is TransferUd && other.dest == dest && other.value == value;
+
+  @override
+  int get hashCode => Object.hash(
+        dest,
+        value,
+      );
+}
+
+/// See [`Pallet::transfer_ud_keep_alive`].
+class TransferUdKeepAlive extends Call {
+  const TransferUdKeepAlive({
+    required this.dest,
+    required this.value,
+  });
+
+  factory TransferUdKeepAlive._decode(_i1.Input input) {
+    return TransferUdKeepAlive(
+      dest: _i3.MultiAddress.codec.decode(input),
+      value: _i1.CompactBigIntCodec.codec.decode(input),
+    );
+  }
+
+  /// <T::Lookup as StaticLookup>::Source
+  final _i3.MultiAddress dest;
+
+  /// BalanceOf<T>
+  final BigInt value;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'transfer_ud_keep_alive': {
+          'dest': dest.toJson(),
+          'value': value,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.MultiAddress.codec.sizeHint(dest);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(value);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i3.MultiAddress.codec.encodeTo(
+      dest,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is TransferUdKeepAlive &&
+          other.dest == dest &&
+          other.value == value;
+
+  @override
+  int get hashCode => Object.hash(
+        dest,
+        value,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_universal_dividend/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_universal_dividend/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f7204e645d8175b15beaf97cc09d3d2e36b9ae38
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_universal_dividend/pallet/error.dart
@@ -0,0 +1,56 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// This account is not allowed to claim UDs.
+  accountNotAllowedToClaimUds('AccountNotAllowedToClaimUds', 0);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.accountNotAllowedToClaimUds;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_universal_dividend/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_universal_dividend/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c4591123b6afc41178e3948f03fd7c70c179e0d4
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_universal_dividend/pallet/event.dart
@@ -0,0 +1,487 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  NewUdCreated newUdCreated({
+    required BigInt amount,
+    required int index,
+    required BigInt monetaryMass,
+    required BigInt membersCount,
+  }) {
+    return NewUdCreated(
+      amount: amount,
+      index: index,
+      monetaryMass: monetaryMass,
+      membersCount: membersCount,
+    );
+  }
+
+  UdReevalued udReevalued({
+    required BigInt newUdAmount,
+    required BigInt monetaryMass,
+    required BigInt membersCount,
+  }) {
+    return UdReevalued(
+      newUdAmount: newUdAmount,
+      monetaryMass: monetaryMass,
+      membersCount: membersCount,
+    );
+  }
+
+  UdsAutoPaid udsAutoPaid({
+    required int count,
+    required BigInt total,
+    required _i3.AccountId32 who,
+  }) {
+    return UdsAutoPaid(
+      count: count,
+      total: total,
+      who: who,
+    );
+  }
+
+  UdsClaimed udsClaimed({
+    required int count,
+    required BigInt total,
+    required _i3.AccountId32 who,
+  }) {
+    return UdsClaimed(
+      count: count,
+      total: total,
+      who: who,
+    );
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return NewUdCreated._decode(input);
+      case 1:
+        return UdReevalued._decode(input);
+      case 2:
+        return UdsAutoPaid._decode(input);
+      case 3:
+        return UdsClaimed._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case NewUdCreated:
+        (value as NewUdCreated).encodeTo(output);
+        break;
+      case UdReevalued:
+        (value as UdReevalued).encodeTo(output);
+        break;
+      case UdsAutoPaid:
+        (value as UdsAutoPaid).encodeTo(output);
+        break;
+      case UdsClaimed:
+        (value as UdsClaimed).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case NewUdCreated:
+        return (value as NewUdCreated)._sizeHint();
+      case UdReevalued:
+        return (value as UdReevalued)._sizeHint();
+      case UdsAutoPaid:
+        return (value as UdsAutoPaid)._sizeHint();
+      case UdsClaimed:
+        return (value as UdsClaimed)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// A new universal dividend is created.
+class NewUdCreated extends Event {
+  const NewUdCreated({
+    required this.amount,
+    required this.index,
+    required this.monetaryMass,
+    required this.membersCount,
+  });
+
+  factory NewUdCreated._decode(_i1.Input input) {
+    return NewUdCreated(
+      amount: _i1.U64Codec.codec.decode(input),
+      index: _i1.U16Codec.codec.decode(input),
+      monetaryMass: _i1.U64Codec.codec.decode(input),
+      membersCount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// BalanceOf<T>
+  final BigInt amount;
+
+  /// UdIndex
+  final int index;
+
+  /// BalanceOf<T>
+  final BigInt monetaryMass;
+
+  /// BalanceOf<T>
+  final BigInt membersCount;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'NewUdCreated': {
+          'amount': amount,
+          'index': index,
+          'monetaryMass': monetaryMass,
+          'membersCount': membersCount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U64Codec.codec.sizeHint(amount);
+    size = size + _i1.U16Codec.codec.sizeHint(index);
+    size = size + _i1.U64Codec.codec.sizeHint(monetaryMass);
+    size = size + _i1.U64Codec.codec.sizeHint(membersCount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      amount,
+      output,
+    );
+    _i1.U16Codec.codec.encodeTo(
+      index,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      monetaryMass,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      membersCount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is NewUdCreated &&
+          other.amount == amount &&
+          other.index == index &&
+          other.monetaryMass == monetaryMass &&
+          other.membersCount == membersCount;
+
+  @override
+  int get hashCode => Object.hash(
+        amount,
+        index,
+        monetaryMass,
+        membersCount,
+      );
+}
+
+/// The universal dividend has been re-evaluated.
+class UdReevalued extends Event {
+  const UdReevalued({
+    required this.newUdAmount,
+    required this.monetaryMass,
+    required this.membersCount,
+  });
+
+  factory UdReevalued._decode(_i1.Input input) {
+    return UdReevalued(
+      newUdAmount: _i1.U64Codec.codec.decode(input),
+      monetaryMass: _i1.U64Codec.codec.decode(input),
+      membersCount: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  /// BalanceOf<T>
+  final BigInt newUdAmount;
+
+  /// BalanceOf<T>
+  final BigInt monetaryMass;
+
+  /// BalanceOf<T>
+  final BigInt membersCount;
+
+  @override
+  Map<String, Map<String, BigInt>> toJson() => {
+        'UdReevalued': {
+          'newUdAmount': newUdAmount,
+          'monetaryMass': monetaryMass,
+          'membersCount': membersCount,
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U64Codec.codec.sizeHint(newUdAmount);
+    size = size + _i1.U64Codec.codec.sizeHint(monetaryMass);
+    size = size + _i1.U64Codec.codec.sizeHint(membersCount);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      newUdAmount,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      monetaryMass,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      membersCount,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is UdReevalued &&
+          other.newUdAmount == newUdAmount &&
+          other.monetaryMass == monetaryMass &&
+          other.membersCount == membersCount;
+
+  @override
+  int get hashCode => Object.hash(
+        newUdAmount,
+        monetaryMass,
+        membersCount,
+      );
+}
+
+/// DUs were automatically transferred as part of a member removal.
+class UdsAutoPaid extends Event {
+  const UdsAutoPaid({
+    required this.count,
+    required this.total,
+    required this.who,
+  });
+
+  factory UdsAutoPaid._decode(_i1.Input input) {
+    return UdsAutoPaid(
+      count: _i1.U16Codec.codec.decode(input),
+      total: _i1.U64Codec.codec.decode(input),
+      who: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// UdIndex
+  final int count;
+
+  /// BalanceOf<T>
+  final BigInt total;
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'UdsAutoPaid': {
+          'count': count,
+          'total': total,
+          'who': who.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U16Codec.codec.sizeHint(count);
+    size = size + _i1.U64Codec.codec.sizeHint(total);
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U16Codec.codec.encodeTo(
+      count,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      total,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is UdsAutoPaid &&
+          other.count == count &&
+          other.total == total &&
+          _i4.listsEqual(
+            other.who,
+            who,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        count,
+        total,
+        who,
+      );
+}
+
+/// A member claimed his UDs.
+class UdsClaimed extends Event {
+  const UdsClaimed({
+    required this.count,
+    required this.total,
+    required this.who,
+  });
+
+  factory UdsClaimed._decode(_i1.Input input) {
+    return UdsClaimed(
+      count: _i1.U16Codec.codec.decode(input),
+      total: _i1.U64Codec.codec.decode(input),
+      who: const _i1.U8ArrayCodec(32).decode(input),
+    );
+  }
+
+  /// UdIndex
+  final int count;
+
+  /// BalanceOf<T>
+  final BigInt total;
+
+  /// T::AccountId
+  final _i3.AccountId32 who;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'UdsClaimed': {
+          'count': count,
+          'total': total,
+          'who': who.toList(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U16Codec.codec.sizeHint(count);
+    size = size + _i1.U64Codec.codec.sizeHint(total);
+    size = size + const _i3.AccountId32Codec().sizeHint(who);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i1.U16Codec.codec.encodeTo(
+      count,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      total,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      who,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is UdsClaimed &&
+          other.count == count &&
+          other.total == total &&
+          _i4.listsEqual(
+            other.who,
+            who,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        count,
+        total,
+        who,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_upgrade_origin/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_upgrade_origin/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a2fbd148a699bac9cb7177c7abc8ffb37a3d519b
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_upgrade_origin/pallet/call.dart
@@ -0,0 +1,210 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../gdev_runtime/runtime_call.dart' as _i3;
+import '../../sp_weights/weight_v2/weight.dart' as _i4;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, Map<String, dynamic>>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  DispatchAsRoot dispatchAsRoot({required _i3.RuntimeCall call}) {
+    return DispatchAsRoot(call: call);
+  }
+
+  DispatchAsRootUncheckedWeight dispatchAsRootUncheckedWeight({
+    required _i3.RuntimeCall call,
+    required _i4.Weight weight,
+  }) {
+    return DispatchAsRootUncheckedWeight(
+      call: call,
+      weight: weight,
+    );
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return DispatchAsRoot._decode(input);
+      case 1:
+        return DispatchAsRootUncheckedWeight._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case DispatchAsRoot:
+        (value as DispatchAsRoot).encodeTo(output);
+        break;
+      case DispatchAsRootUncheckedWeight:
+        (value as DispatchAsRootUncheckedWeight).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case DispatchAsRoot:
+        return (value as DispatchAsRoot)._sizeHint();
+      case DispatchAsRootUncheckedWeight:
+        return (value as DispatchAsRootUncheckedWeight)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::dispatch_as_root`].
+class DispatchAsRoot extends Call {
+  const DispatchAsRoot({required this.call});
+
+  factory DispatchAsRoot._decode(_i1.Input input) {
+    return DispatchAsRoot(call: _i3.RuntimeCall.codec.decode(input));
+  }
+
+  /// Box<<T as Config>::Call>
+  final _i3.RuntimeCall call;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'dispatch_as_root': {'call': call.toJson()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.RuntimeCall.codec.sizeHint(call);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is DispatchAsRoot && other.call == call;
+
+  @override
+  int get hashCode => call.hashCode;
+}
+
+/// See [`Pallet::dispatch_as_root_unchecked_weight`].
+class DispatchAsRootUncheckedWeight extends Call {
+  const DispatchAsRootUncheckedWeight({
+    required this.call,
+    required this.weight,
+  });
+
+  factory DispatchAsRootUncheckedWeight._decode(_i1.Input input) {
+    return DispatchAsRootUncheckedWeight(
+      call: _i3.RuntimeCall.codec.decode(input),
+      weight: _i4.Weight.codec.decode(input),
+    );
+  }
+
+  /// Box<<T as Config>::Call>
+  final _i3.RuntimeCall call;
+
+  /// Weight
+  final _i4.Weight weight;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'dispatch_as_root_unchecked_weight': {
+          'call': call.toJson(),
+          'weight': weight.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.RuntimeCall.codec.sizeHint(call);
+    size = size + _i4.Weight.codec.sizeHint(weight);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i3.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+    _i4.Weight.codec.encodeTo(
+      weight,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is DispatchAsRootUncheckedWeight &&
+          other.call == call &&
+          other.weight == weight;
+
+  @override
+  int get hashCode => Object.hash(
+        call,
+        weight,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_upgrade_origin/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_upgrade_origin/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e49609e661c45c56f9f5cdec3542f974ef811f46
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_upgrade_origin/pallet/event.dart
@@ -0,0 +1,137 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_runtime/dispatch_error.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, Map<String, dynamic>>> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  DispatchedAsRoot dispatchedAsRoot(
+      {required _i1.Result<dynamic, _i3.DispatchError> result}) {
+    return DispatchedAsRoot(result: result);
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return DispatchedAsRoot._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case DispatchedAsRoot:
+        (value as DispatchedAsRoot).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case DispatchedAsRoot:
+        return (value as DispatchedAsRoot)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// A call was dispatched as root from an upgradable origin
+class DispatchedAsRoot extends Event {
+  const DispatchedAsRoot({required this.result});
+
+  factory DispatchedAsRoot._decode(_i1.Input input) {
+    return DispatchedAsRoot(
+        result: const _i1.ResultCodec<dynamic, _i3.DispatchError>(
+      _i1.NullCodec.codec,
+      _i3.DispatchError.codec,
+    ).decode(input));
+  }
+
+  /// DispatchResult
+  final _i1.Result<dynamic, _i3.DispatchError> result;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'DispatchedAsRoot': {'result': result.toJson()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.ResultCodec<dynamic, _i3.DispatchError>(
+          _i1.NullCodec.codec,
+          _i3.DispatchError.codec,
+        ).sizeHint(result);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.ResultCodec<dynamic, _i3.DispatchError>(
+      _i1.NullCodec.codec,
+      _i3.DispatchError.codec,
+    ).encodeTo(
+      result,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is DispatchedAsRoot && other.result == result;
+
+  @override
+  int get hashCode => result.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_utility/pallet/call.dart b/lib/src/models/generated/duniter/types/pallet_utility/pallet/call.dart
new file mode 100644
index 0000000000000000000000000000000000000000..bb5ea7ef77937ac945c270f1421deb4ff9042920
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_utility/pallet/call.dart
@@ -0,0 +1,510 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i6;
+
+import '../../gdev_runtime/origin_caller.dart' as _i4;
+import '../../gdev_runtime/runtime_call.dart' as _i3;
+import '../../sp_weights/weight_v2/weight.dart' as _i5;
+
+/// Contains a variant per dispatchable extrinsic that this pallet has.
+abstract class Call {
+  const Call();
+
+  factory Call.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $CallCodec codec = $CallCodec();
+
+  static const $Call values = $Call();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Call {
+  const $Call();
+
+  Batch batch({required List<_i3.RuntimeCall> calls}) {
+    return Batch(calls: calls);
+  }
+
+  AsDerivative asDerivative({
+    required int index,
+    required _i3.RuntimeCall call,
+  }) {
+    return AsDerivative(
+      index: index,
+      call: call,
+    );
+  }
+
+  BatchAll batchAll({required List<_i3.RuntimeCall> calls}) {
+    return BatchAll(calls: calls);
+  }
+
+  DispatchAs dispatchAs({
+    required _i4.OriginCaller asOrigin,
+    required _i3.RuntimeCall call,
+  }) {
+    return DispatchAs(
+      asOrigin: asOrigin,
+      call: call,
+    );
+  }
+
+  ForceBatch forceBatch({required List<_i3.RuntimeCall> calls}) {
+    return ForceBatch(calls: calls);
+  }
+
+  WithWeight withWeight({
+    required _i3.RuntimeCall call,
+    required _i5.Weight weight,
+  }) {
+    return WithWeight(
+      call: call,
+      weight: weight,
+    );
+  }
+}
+
+class $CallCodec with _i1.Codec<Call> {
+  const $CallCodec();
+
+  @override
+  Call decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Batch._decode(input);
+      case 1:
+        return AsDerivative._decode(input);
+      case 2:
+        return BatchAll._decode(input);
+      case 3:
+        return DispatchAs._decode(input);
+      case 4:
+        return ForceBatch._decode(input);
+      case 5:
+        return WithWeight._decode(input);
+      default:
+        throw Exception('Call: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Call value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Batch:
+        (value as Batch).encodeTo(output);
+        break;
+      case AsDerivative:
+        (value as AsDerivative).encodeTo(output);
+        break;
+      case BatchAll:
+        (value as BatchAll).encodeTo(output);
+        break;
+      case DispatchAs:
+        (value as DispatchAs).encodeTo(output);
+        break;
+      case ForceBatch:
+        (value as ForceBatch).encodeTo(output);
+        break;
+      case WithWeight:
+        (value as WithWeight).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Call value) {
+    switch (value.runtimeType) {
+      case Batch:
+        return (value as Batch)._sizeHint();
+      case AsDerivative:
+        return (value as AsDerivative)._sizeHint();
+      case BatchAll:
+        return (value as BatchAll)._sizeHint();
+      case DispatchAs:
+        return (value as DispatchAs)._sizeHint();
+      case ForceBatch:
+        return (value as ForceBatch)._sizeHint();
+      case WithWeight:
+        return (value as WithWeight)._sizeHint();
+      default:
+        throw Exception(
+            'Call: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// See [`Pallet::batch`].
+class Batch extends Call {
+  const Batch({required this.calls});
+
+  factory Batch._decode(_i1.Input input) {
+    return Batch(
+        calls: const _i1.SequenceCodec<_i3.RuntimeCall>(_i3.RuntimeCall.codec)
+            .decode(input));
+  }
+
+  /// Vec<<T as Config>::RuntimeCall>
+  final List<_i3.RuntimeCall> calls;
+
+  @override
+  Map<String, Map<String, List<Map<String, dynamic>>>> toJson() => {
+        'batch': {'calls': calls.map((value) => value.toJson()).toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.SequenceCodec<_i3.RuntimeCall>(_i3.RuntimeCall.codec)
+            .sizeHint(calls);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.SequenceCodec<_i3.RuntimeCall>(_i3.RuntimeCall.codec).encodeTo(
+      calls,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Batch &&
+          _i6.listsEqual(
+            other.calls,
+            calls,
+          );
+
+  @override
+  int get hashCode => calls.hashCode;
+}
+
+/// See [`Pallet::as_derivative`].
+class AsDerivative extends Call {
+  const AsDerivative({
+    required this.index,
+    required this.call,
+  });
+
+  factory AsDerivative._decode(_i1.Input input) {
+    return AsDerivative(
+      index: _i1.U16Codec.codec.decode(input),
+      call: _i3.RuntimeCall.codec.decode(input),
+    );
+  }
+
+  /// u16
+  final int index;
+
+  /// Box<<T as Config>::RuntimeCall>
+  final _i3.RuntimeCall call;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'as_derivative': {
+          'index': index,
+          'call': call.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U16Codec.codec.sizeHint(index);
+    size = size + _i3.RuntimeCall.codec.sizeHint(call);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U16Codec.codec.encodeTo(
+      index,
+      output,
+    );
+    _i3.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is AsDerivative && other.index == index && other.call == call;
+
+  @override
+  int get hashCode => Object.hash(
+        index,
+        call,
+      );
+}
+
+/// See [`Pallet::batch_all`].
+class BatchAll extends Call {
+  const BatchAll({required this.calls});
+
+  factory BatchAll._decode(_i1.Input input) {
+    return BatchAll(
+        calls: const _i1.SequenceCodec<_i3.RuntimeCall>(_i3.RuntimeCall.codec)
+            .decode(input));
+  }
+
+  /// Vec<<T as Config>::RuntimeCall>
+  final List<_i3.RuntimeCall> calls;
+
+  @override
+  Map<String, Map<String, List<dynamic>>> toJson() => {
+        'batch_all': {'calls': calls.map((value) => value.toJson()).toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.SequenceCodec<_i3.RuntimeCall>(_i3.RuntimeCall.codec)
+            .sizeHint(calls);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i1.SequenceCodec<_i3.RuntimeCall>(_i3.RuntimeCall.codec).encodeTo(
+      calls,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is BatchAll &&
+          _i6.listsEqual(
+            other.calls,
+            calls,
+          );
+
+  @override
+  int get hashCode => calls.hashCode;
+}
+
+/// See [`Pallet::dispatch_as`].
+class DispatchAs extends Call {
+  const DispatchAs({
+    required this.asOrigin,
+    required this.call,
+  });
+
+  factory DispatchAs._decode(_i1.Input input) {
+    return DispatchAs(
+      asOrigin: _i4.OriginCaller.codec.decode(input),
+      call: _i3.RuntimeCall.codec.decode(input),
+    );
+  }
+
+  /// Box<T::PalletsOrigin>
+  final _i4.OriginCaller asOrigin;
+
+  /// Box<<T as Config>::RuntimeCall>
+  final _i3.RuntimeCall call;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'dispatch_as': {
+          'asOrigin': asOrigin.toJson(),
+          'call': call.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i4.OriginCaller.codec.sizeHint(asOrigin);
+    size = size + _i3.RuntimeCall.codec.sizeHint(call);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i4.OriginCaller.codec.encodeTo(
+      asOrigin,
+      output,
+    );
+    _i3.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is DispatchAs && other.asOrigin == asOrigin && other.call == call;
+
+  @override
+  int get hashCode => Object.hash(
+        asOrigin,
+        call,
+      );
+}
+
+/// See [`Pallet::force_batch`].
+class ForceBatch extends Call {
+  const ForceBatch({required this.calls});
+
+  factory ForceBatch._decode(_i1.Input input) {
+    return ForceBatch(
+        calls: const _i1.SequenceCodec<_i3.RuntimeCall>(_i3.RuntimeCall.codec)
+            .decode(input));
+  }
+
+  /// Vec<<T as Config>::RuntimeCall>
+  final List<_i3.RuntimeCall> calls;
+
+  @override
+  Map<String, Map<String, List<dynamic>>> toJson() => {
+        'force_batch': {'calls': calls.map((value) => value.toJson()).toList()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.SequenceCodec<_i3.RuntimeCall>(_i3.RuntimeCall.codec)
+            .sizeHint(calls);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    const _i1.SequenceCodec<_i3.RuntimeCall>(_i3.RuntimeCall.codec).encodeTo(
+      calls,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ForceBatch &&
+          _i6.listsEqual(
+            other.calls,
+            calls,
+          );
+
+  @override
+  int get hashCode => calls.hashCode;
+}
+
+/// See [`Pallet::with_weight`].
+class WithWeight extends Call {
+  const WithWeight({
+    required this.call,
+    required this.weight,
+  });
+
+  factory WithWeight._decode(_i1.Input input) {
+    return WithWeight(
+      call: _i3.RuntimeCall.codec.decode(input),
+      weight: _i5.Weight.codec.decode(input),
+    );
+  }
+
+  /// Box<<T as Config>::RuntimeCall>
+  final _i3.RuntimeCall call;
+
+  /// Weight
+  final _i5.Weight weight;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'with_weight': {
+          'call': call.toJson(),
+          'weight': weight.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.RuntimeCall.codec.sizeHint(call);
+    size = size + _i5.Weight.codec.sizeHint(weight);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    _i3.RuntimeCall.codec.encodeTo(
+      call,
+      output,
+    );
+    _i5.Weight.codec.encodeTo(
+      weight,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is WithWeight && other.call == call && other.weight == weight;
+
+  @override
+  int get hashCode => Object.hash(
+        call,
+        weight,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_utility/pallet/error.dart b/lib/src/models/generated/duniter/types/pallet_utility/pallet/error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6649ae69e42c7f7b5a26907132f3a031f1d1837e
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_utility/pallet/error.dart
@@ -0,0 +1,56 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+/// The `Error` enum of this pallet.
+enum Error {
+  /// Too many calls batched.
+  tooManyCalls('TooManyCalls', 0);
+
+  const Error(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory Error.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ErrorCodec codec = $ErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ErrorCodec with _i1.Codec<Error> {
+  const $ErrorCodec();
+
+  @override
+  Error decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Error.tooManyCalls;
+      default:
+        throw Exception('Error: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Error value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/pallet_utility/pallet/event.dart b/lib/src/models/generated/duniter/types/pallet_utility/pallet/event.dart
new file mode 100644
index 0000000000000000000000000000000000000000..127382eca158a664236f60b0bad29e7fd28c1444
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/pallet_utility/pallet/event.dart
@@ -0,0 +1,372 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_runtime/dispatch_error.dart' as _i3;
+
+/// The `Event` enum of this pallet
+abstract class Event {
+  const Event();
+
+  factory Event.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EventCodec codec = $EventCodec();
+
+  static const $Event values = $Event();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Event {
+  const $Event();
+
+  BatchInterrupted batchInterrupted({
+    required int index,
+    required _i3.DispatchError error,
+  }) {
+    return BatchInterrupted(
+      index: index,
+      error: error,
+    );
+  }
+
+  BatchCompleted batchCompleted() {
+    return const BatchCompleted();
+  }
+
+  BatchCompletedWithErrors batchCompletedWithErrors() {
+    return const BatchCompletedWithErrors();
+  }
+
+  ItemCompleted itemCompleted() {
+    return const ItemCompleted();
+  }
+
+  ItemFailed itemFailed({required _i3.DispatchError error}) {
+    return ItemFailed(error: error);
+  }
+
+  DispatchedAs dispatchedAs(
+      {required _i1.Result<dynamic, _i3.DispatchError> result}) {
+    return DispatchedAs(result: result);
+  }
+}
+
+class $EventCodec with _i1.Codec<Event> {
+  const $EventCodec();
+
+  @override
+  Event decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return BatchInterrupted._decode(input);
+      case 1:
+        return const BatchCompleted();
+      case 2:
+        return const BatchCompletedWithErrors();
+      case 3:
+        return const ItemCompleted();
+      case 4:
+        return ItemFailed._decode(input);
+      case 5:
+        return DispatchedAs._decode(input);
+      default:
+        throw Exception('Event: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Event value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case BatchInterrupted:
+        (value as BatchInterrupted).encodeTo(output);
+        break;
+      case BatchCompleted:
+        (value as BatchCompleted).encodeTo(output);
+        break;
+      case BatchCompletedWithErrors:
+        (value as BatchCompletedWithErrors).encodeTo(output);
+        break;
+      case ItemCompleted:
+        (value as ItemCompleted).encodeTo(output);
+        break;
+      case ItemFailed:
+        (value as ItemFailed).encodeTo(output);
+        break;
+      case DispatchedAs:
+        (value as DispatchedAs).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Event value) {
+    switch (value.runtimeType) {
+      case BatchInterrupted:
+        return (value as BatchInterrupted)._sizeHint();
+      case BatchCompleted:
+        return 1;
+      case BatchCompletedWithErrors:
+        return 1;
+      case ItemCompleted:
+        return 1;
+      case ItemFailed:
+        return (value as ItemFailed)._sizeHint();
+      case DispatchedAs:
+        return (value as DispatchedAs)._sizeHint();
+      default:
+        throw Exception(
+            'Event: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+/// Batch of dispatches did not complete fully. Index of first failing dispatch given, as
+/// well as the error.
+class BatchInterrupted extends Event {
+  const BatchInterrupted({
+    required this.index,
+    required this.error,
+  });
+
+  factory BatchInterrupted._decode(_i1.Input input) {
+    return BatchInterrupted(
+      index: _i1.U32Codec.codec.decode(input),
+      error: _i3.DispatchError.codec.decode(input),
+    );
+  }
+
+  /// u32
+  final int index;
+
+  /// DispatchError
+  final _i3.DispatchError error;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'BatchInterrupted': {
+          'index': index,
+          'error': error.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U32Codec.codec.sizeHint(index);
+    size = size + _i3.DispatchError.codec.sizeHint(error);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      index,
+      output,
+    );
+    _i3.DispatchError.codec.encodeTo(
+      error,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is BatchInterrupted && other.index == index && other.error == error;
+
+  @override
+  int get hashCode => Object.hash(
+        index,
+        error,
+      );
+}
+
+/// Batch of dispatches completed fully with no error.
+class BatchCompleted extends Event {
+  const BatchCompleted();
+
+  @override
+  Map<String, dynamic> toJson() => {'BatchCompleted': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is BatchCompleted;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+/// Batch of dispatches completed but has errors.
+class BatchCompletedWithErrors extends Event {
+  const BatchCompletedWithErrors();
+
+  @override
+  Map<String, dynamic> toJson() => {'BatchCompletedWithErrors': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is BatchCompletedWithErrors;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+/// A single item within a Batch of dispatches has completed with no error.
+class ItemCompleted extends Event {
+  const ItemCompleted();
+
+  @override
+  Map<String, dynamic> toJson() => {'ItemCompleted': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is ItemCompleted;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+/// A single item within a Batch of dispatches has completed with error.
+class ItemFailed extends Event {
+  const ItemFailed({required this.error});
+
+  factory ItemFailed._decode(_i1.Input input) {
+    return ItemFailed(error: _i3.DispatchError.codec.decode(input));
+  }
+
+  /// DispatchError
+  final _i3.DispatchError error;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'ItemFailed': {'error': error.toJson()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.DispatchError.codec.sizeHint(error);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    _i3.DispatchError.codec.encodeTo(
+      error,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ItemFailed && other.error == error;
+
+  @override
+  int get hashCode => error.hashCode;
+}
+
+/// A call was dispatched.
+class DispatchedAs extends Event {
+  const DispatchedAs({required this.result});
+
+  factory DispatchedAs._decode(_i1.Input input) {
+    return DispatchedAs(
+        result: const _i1.ResultCodec<dynamic, _i3.DispatchError>(
+      _i1.NullCodec.codec,
+      _i3.DispatchError.codec,
+    ).decode(input));
+  }
+
+  /// DispatchResult
+  final _i1.Result<dynamic, _i3.DispatchError> result;
+
+  @override
+  Map<String, Map<String, Map<String, dynamic>>> toJson() => {
+        'DispatchedAs': {'result': result.toJson()}
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i1.ResultCodec<dynamic, _i3.DispatchError>(
+          _i1.NullCodec.codec,
+          _i3.DispatchError.codec,
+        ).sizeHint(result);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    const _i1.ResultCodec<dynamic, _i3.DispatchError>(
+      _i1.NullCodec.codec,
+      _i3.DispatchError.codec,
+    ).encodeTo(
+      result,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is DispatchedAs && other.result == result;
+
+  @override
+  int get hashCode => result.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/primitive_types/h256.dart b/lib/src/models/generated/duniter/types/primitive_types/h256.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4eded2597d9dc4f9885f141bde43789563edce4d
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/primitive_types/h256.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef H256 = List<int>;
+
+class H256Codec with _i1.Codec<H256> {
+  const H256Codec();
+
+  @override
+  H256 decode(_i1.Input input) {
+    return const _i1.U8ArrayCodec(32).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    H256 value,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(H256 value) {
+    return const _i1.U8ArrayCodec(32).sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_arithmetic/arithmetic_error.dart b/lib/src/models/generated/duniter/types/sp_arithmetic/arithmetic_error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d7be8a276817e668859ec8c57b2fc1d515bb5c64
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_arithmetic/arithmetic_error.dart
@@ -0,0 +1,60 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum ArithmeticError {
+  underflow('Underflow', 0),
+  overflow('Overflow', 1),
+  divisionByZero('DivisionByZero', 2);
+
+  const ArithmeticError(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory ArithmeticError.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $ArithmeticErrorCodec codec = $ArithmeticErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $ArithmeticErrorCodec with _i1.Codec<ArithmeticError> {
+  const $ArithmeticErrorCodec();
+
+  @override
+  ArithmeticError decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return ArithmeticError.underflow;
+      case 1:
+        return ArithmeticError.overflow;
+      case 2:
+        return ArithmeticError.divisionByZero;
+      default:
+        throw Exception('ArithmeticError: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    ArithmeticError value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_arithmetic/fixed_point/fixed_u128.dart b/lib/src/models/generated/duniter/types/sp_arithmetic/fixed_point/fixed_u128.dart
new file mode 100644
index 0000000000000000000000000000000000000000..771c17556d85ac3115ea60a0140ef741285f81ad
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_arithmetic/fixed_point/fixed_u128.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef FixedU128 = BigInt;
+
+class FixedU128Codec with _i1.Codec<FixedU128> {
+  const FixedU128Codec();
+
+  @override
+  FixedU128 decode(_i1.Input input) {
+    return _i1.U128Codec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    FixedU128 value,
+    _i1.Output output,
+  ) {
+    _i1.U128Codec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(FixedU128 value) {
+    return _i1.U128Codec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_arithmetic/per_things/perbill.dart b/lib/src/models/generated/duniter/types/sp_arithmetic/per_things/perbill.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6feb69ffae7258119907543f82824a4745c159d3
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_arithmetic/per_things/perbill.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef Perbill = int;
+
+class PerbillCodec with _i1.Codec<Perbill> {
+  const PerbillCodec();
+
+  @override
+  Perbill decode(_i1.Input input) {
+    return _i1.U32Codec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Perbill value,
+    _i1.Output output,
+  ) {
+    _i1.U32Codec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Perbill value) {
+    return _i1.U32Codec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_arithmetic/per_things/permill.dart b/lib/src/models/generated/duniter/types/sp_arithmetic/per_things/permill.dart
new file mode 100644
index 0000000000000000000000000000000000000000..9fd260c7e35d91fc83605a06ae0f862221f2b6a7
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_arithmetic/per_things/permill.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef Permill = int;
+
+class PermillCodec with _i1.Codec<Permill> {
+  const PermillCodec();
+
+  @override
+  Permill decode(_i1.Input input) {
+    return _i1.U32Codec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Permill value,
+    _i1.Output output,
+  ) {
+    _i1.U32Codec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Permill value) {
+    return _i1.U32Codec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_authority_discovery/app/public.dart b/lib/src/models/generated/duniter/types/sp_authority_discovery/app/public.dart
new file mode 100644
index 0000000000000000000000000000000000000000..66381d15e6c1407c25e9b00a399b409da5a17d49
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_authority_discovery/app/public.dart
@@ -0,0 +1,31 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../../sp_core/sr25519/public.dart' as _i1;
+
+typedef Public = _i1.Public;
+
+class PublicCodec with _i2.Codec<Public> {
+  const PublicCodec();
+
+  @override
+  Public decode(_i2.Input input) {
+    return const _i2.U8ArrayCodec(32).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Public value,
+    _i2.Output output,
+  ) {
+    const _i2.U8ArrayCodec(32).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Public value) {
+    return const _i1.PublicCodec().sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_consensus_babe/allowed_slots.dart b/lib/src/models/generated/duniter/types/sp_consensus_babe/allowed_slots.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e0e3ecb34359ad68205ca6d9a2a8f4cf3faf1f32
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_consensus_babe/allowed_slots.dart
@@ -0,0 +1,60 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum AllowedSlots {
+  primarySlots('PrimarySlots', 0),
+  primaryAndSecondaryPlainSlots('PrimaryAndSecondaryPlainSlots', 1),
+  primaryAndSecondaryVRFSlots('PrimaryAndSecondaryVRFSlots', 2);
+
+  const AllowedSlots(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory AllowedSlots.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $AllowedSlotsCodec codec = $AllowedSlotsCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $AllowedSlotsCodec with _i1.Codec<AllowedSlots> {
+  const $AllowedSlotsCodec();
+
+  @override
+  AllowedSlots decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return AllowedSlots.primarySlots;
+      case 1:
+        return AllowedSlots.primaryAndSecondaryPlainSlots;
+      case 2:
+        return AllowedSlots.primaryAndSecondaryVRFSlots;
+      default:
+        throw Exception('AllowedSlots: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    AllowedSlots value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_consensus_babe/app/public.dart b/lib/src/models/generated/duniter/types/sp_consensus_babe/app/public.dart
new file mode 100644
index 0000000000000000000000000000000000000000..66381d15e6c1407c25e9b00a399b409da5a17d49
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_consensus_babe/app/public.dart
@@ -0,0 +1,31 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../../sp_core/sr25519/public.dart' as _i1;
+
+typedef Public = _i1.Public;
+
+class PublicCodec with _i2.Codec<Public> {
+  const PublicCodec();
+
+  @override
+  Public decode(_i2.Input input) {
+    return const _i2.U8ArrayCodec(32).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Public value,
+    _i2.Output output,
+  ) {
+    const _i2.U8ArrayCodec(32).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Public value) {
+    return const _i1.PublicCodec().sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_consensus_babe/babe_epoch_configuration.dart b/lib/src/models/generated/duniter/types/sp_consensus_babe/babe_epoch_configuration.dart
new file mode 100644
index 0000000000000000000000000000000000000000..00bc911092e056506db03679236f74b9d31af512
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_consensus_babe/babe_epoch_configuration.dart
@@ -0,0 +1,100 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../tuples.dart' as _i2;
+import 'allowed_slots.dart' as _i3;
+
+class BabeEpochConfiguration {
+  const BabeEpochConfiguration({
+    required this.c,
+    required this.allowedSlots,
+  });
+
+  factory BabeEpochConfiguration.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// (u64, u64)
+  final _i2.Tuple2<BigInt, BigInt> c;
+
+  /// AllowedSlots
+  final _i3.AllowedSlots allowedSlots;
+
+  static const $BabeEpochConfigurationCodec codec =
+      $BabeEpochConfigurationCodec();
+
+  _i4.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'c': [
+          c.value0,
+          c.value1,
+        ],
+        'allowedSlots': allowedSlots.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is BabeEpochConfiguration &&
+          other.c == c &&
+          other.allowedSlots == allowedSlots;
+
+  @override
+  int get hashCode => Object.hash(
+        c,
+        allowedSlots,
+      );
+}
+
+class $BabeEpochConfigurationCodec with _i1.Codec<BabeEpochConfiguration> {
+  const $BabeEpochConfigurationCodec();
+
+  @override
+  void encodeTo(
+    BabeEpochConfiguration obj,
+    _i1.Output output,
+  ) {
+    const _i2.Tuple2Codec<BigInt, BigInt>(
+      _i1.U64Codec.codec,
+      _i1.U64Codec.codec,
+    ).encodeTo(
+      obj.c,
+      output,
+    );
+    _i3.AllowedSlots.codec.encodeTo(
+      obj.allowedSlots,
+      output,
+    );
+  }
+
+  @override
+  BabeEpochConfiguration decode(_i1.Input input) {
+    return BabeEpochConfiguration(
+      c: const _i2.Tuple2Codec<BigInt, BigInt>(
+        _i1.U64Codec.codec,
+        _i1.U64Codec.codec,
+      ).decode(input),
+      allowedSlots: _i3.AllowedSlots.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(BabeEpochConfiguration obj) {
+    int size = 0;
+    size = size +
+        const _i2.Tuple2Codec<BigInt, BigInt>(
+          _i1.U64Codec.codec,
+          _i1.U64Codec.codec,
+        ).sizeHint(obj.c);
+    size = size + _i3.AllowedSlots.codec.sizeHint(obj.allowedSlots);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_consensus_babe/digests/next_config_descriptor.dart b/lib/src/models/generated/duniter/types/sp_consensus_babe/digests/next_config_descriptor.dart
new file mode 100644
index 0000000000000000000000000000000000000000..139bc70a3625e4970cda6cc84f464e9cc5a5d013
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_consensus_babe/digests/next_config_descriptor.dart
@@ -0,0 +1,164 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../tuples.dart' as _i3;
+import '../allowed_slots.dart' as _i4;
+
+abstract class NextConfigDescriptor {
+  const NextConfigDescriptor();
+
+  factory NextConfigDescriptor.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $NextConfigDescriptorCodec codec = $NextConfigDescriptorCodec();
+
+  static const $NextConfigDescriptor values = $NextConfigDescriptor();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $NextConfigDescriptor {
+  const $NextConfigDescriptor();
+
+  V1 v1({
+    required _i3.Tuple2<BigInt, BigInt> c,
+    required _i4.AllowedSlots allowedSlots,
+  }) {
+    return V1(
+      c: c,
+      allowedSlots: allowedSlots,
+    );
+  }
+}
+
+class $NextConfigDescriptorCodec with _i1.Codec<NextConfigDescriptor> {
+  const $NextConfigDescriptorCodec();
+
+  @override
+  NextConfigDescriptor decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 1:
+        return V1._decode(input);
+      default:
+        throw Exception(
+            'NextConfigDescriptor: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    NextConfigDescriptor value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case V1:
+        (value as V1).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'NextConfigDescriptor: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(NextConfigDescriptor value) {
+    switch (value.runtimeType) {
+      case V1:
+        return (value as V1)._sizeHint();
+      default:
+        throw Exception(
+            'NextConfigDescriptor: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class V1 extends NextConfigDescriptor {
+  const V1({
+    required this.c,
+    required this.allowedSlots,
+  });
+
+  factory V1._decode(_i1.Input input) {
+    return V1(
+      c: const _i3.Tuple2Codec<BigInt, BigInt>(
+        _i1.U64Codec.codec,
+        _i1.U64Codec.codec,
+      ).decode(input),
+      allowedSlots: _i4.AllowedSlots.codec.decode(input),
+    );
+  }
+
+  /// (u64, u64)
+  final _i3.Tuple2<BigInt, BigInt> c;
+
+  /// AllowedSlots
+  final _i4.AllowedSlots allowedSlots;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {
+        'V1': {
+          'c': [
+            c.value0,
+            c.value1,
+          ],
+          'allowedSlots': allowedSlots.toJson(),
+        }
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size +
+        const _i3.Tuple2Codec<BigInt, BigInt>(
+          _i1.U64Codec.codec,
+          _i1.U64Codec.codec,
+        ).sizeHint(c);
+    size = size + _i4.AllowedSlots.codec.sizeHint(allowedSlots);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i3.Tuple2Codec<BigInt, BigInt>(
+      _i1.U64Codec.codec,
+      _i1.U64Codec.codec,
+    ).encodeTo(
+      c,
+      output,
+    );
+    _i4.AllowedSlots.codec.encodeTo(
+      allowedSlots,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is V1 && other.c == c && other.allowedSlots == allowedSlots;
+
+  @override
+  int get hashCode => Object.hash(
+        c,
+        allowedSlots,
+      );
+}
diff --git a/lib/src/models/generated/duniter/types/sp_consensus_babe/digests/pre_digest.dart b/lib/src/models/generated/duniter/types/sp_consensus_babe/digests/pre_digest.dart
new file mode 100644
index 0000000000000000000000000000000000000000..ea5c6625784341fb2c5172d82cf9308f2cb54436
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_consensus_babe/digests/pre_digest.dart
@@ -0,0 +1,231 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import 'primary_pre_digest.dart' as _i3;
+import 'secondary_plain_pre_digest.dart' as _i4;
+import 'secondary_v_r_f_pre_digest.dart' as _i5;
+
+abstract class PreDigest {
+  const PreDigest();
+
+  factory PreDigest.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $PreDigestCodec codec = $PreDigestCodec();
+
+  static const $PreDigest values = $PreDigest();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $PreDigest {
+  const $PreDigest();
+
+  Primary primary(_i3.PrimaryPreDigest value0) {
+    return Primary(value0);
+  }
+
+  SecondaryPlain secondaryPlain(_i4.SecondaryPlainPreDigest value0) {
+    return SecondaryPlain(value0);
+  }
+
+  SecondaryVRF secondaryVRF(_i5.SecondaryVRFPreDigest value0) {
+    return SecondaryVRF(value0);
+  }
+}
+
+class $PreDigestCodec with _i1.Codec<PreDigest> {
+  const $PreDigestCodec();
+
+  @override
+  PreDigest decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 1:
+        return Primary._decode(input);
+      case 2:
+        return SecondaryPlain._decode(input);
+      case 3:
+        return SecondaryVRF._decode(input);
+      default:
+        throw Exception('PreDigest: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    PreDigest value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Primary:
+        (value as Primary).encodeTo(output);
+        break;
+      case SecondaryPlain:
+        (value as SecondaryPlain).encodeTo(output);
+        break;
+      case SecondaryVRF:
+        (value as SecondaryVRF).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'PreDigest: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(PreDigest value) {
+    switch (value.runtimeType) {
+      case Primary:
+        return (value as Primary)._sizeHint();
+      case SecondaryPlain:
+        return (value as SecondaryPlain)._sizeHint();
+      case SecondaryVRF:
+        return (value as SecondaryVRF)._sizeHint();
+      default:
+        throw Exception(
+            'PreDigest: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class Primary extends PreDigest {
+  const Primary(this.value0);
+
+  factory Primary._decode(_i1.Input input) {
+    return Primary(_i3.PrimaryPreDigest.codec.decode(input));
+  }
+
+  /// PrimaryPreDigest
+  final _i3.PrimaryPreDigest value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'Primary': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.PrimaryPreDigest.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i3.PrimaryPreDigest.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Primary && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class SecondaryPlain extends PreDigest {
+  const SecondaryPlain(this.value0);
+
+  factory SecondaryPlain._decode(_i1.Input input) {
+    return SecondaryPlain(_i4.SecondaryPlainPreDigest.codec.decode(input));
+  }
+
+  /// SecondaryPlainPreDigest
+  final _i4.SecondaryPlainPreDigest value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() =>
+      {'SecondaryPlain': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i4.SecondaryPlainPreDigest.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i4.SecondaryPlainPreDigest.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SecondaryPlain && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class SecondaryVRF extends PreDigest {
+  const SecondaryVRF(this.value0);
+
+  factory SecondaryVRF._decode(_i1.Input input) {
+    return SecondaryVRF(_i5.SecondaryVRFPreDigest.codec.decode(input));
+  }
+
+  /// SecondaryVRFPreDigest
+  final _i5.SecondaryVRFPreDigest value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() =>
+      {'SecondaryVRF': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i5.SecondaryVRFPreDigest.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i5.SecondaryVRFPreDigest.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SecondaryVRF && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/sp_consensus_babe/digests/primary_pre_digest.dart b/lib/src/models/generated/duniter/types/sp_consensus_babe/digests/primary_pre_digest.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7843836166737ffcf066fd0ae8feb7c18427c40c
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_consensus_babe/digests/primary_pre_digest.dart
@@ -0,0 +1,99 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_consensus_slots/slot.dart' as _i2;
+import '../../sp_core/sr25519/vrf/vrf_signature.dart' as _i3;
+
+class PrimaryPreDigest {
+  const PrimaryPreDigest({
+    required this.authorityIndex,
+    required this.slot,
+    required this.vrfSignature,
+  });
+
+  factory PrimaryPreDigest.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// super::AuthorityIndex
+  final int authorityIndex;
+
+  /// Slot
+  final _i2.Slot slot;
+
+  /// VrfSignature
+  final _i3.VrfSignature vrfSignature;
+
+  static const $PrimaryPreDigestCodec codec = $PrimaryPreDigestCodec();
+
+  _i4.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'authorityIndex': authorityIndex,
+        'slot': slot,
+        'vrfSignature': vrfSignature.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is PrimaryPreDigest &&
+          other.authorityIndex == authorityIndex &&
+          other.slot == slot &&
+          other.vrfSignature == vrfSignature;
+
+  @override
+  int get hashCode => Object.hash(
+        authorityIndex,
+        slot,
+        vrfSignature,
+      );
+}
+
+class $PrimaryPreDigestCodec with _i1.Codec<PrimaryPreDigest> {
+  const $PrimaryPreDigestCodec();
+
+  @override
+  void encodeTo(
+    PrimaryPreDigest obj,
+    _i1.Output output,
+  ) {
+    _i1.U32Codec.codec.encodeTo(
+      obj.authorityIndex,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.slot,
+      output,
+    );
+    _i3.VrfSignature.codec.encodeTo(
+      obj.vrfSignature,
+      output,
+    );
+  }
+
+  @override
+  PrimaryPreDigest decode(_i1.Input input) {
+    return PrimaryPreDigest(
+      authorityIndex: _i1.U32Codec.codec.decode(input),
+      slot: _i1.U64Codec.codec.decode(input),
+      vrfSignature: _i3.VrfSignature.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(PrimaryPreDigest obj) {
+    int size = 0;
+    size = size + _i1.U32Codec.codec.sizeHint(obj.authorityIndex);
+    size = size + const _i2.SlotCodec().sizeHint(obj.slot);
+    size = size + _i3.VrfSignature.codec.sizeHint(obj.vrfSignature);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_consensus_babe/digests/secondary_plain_pre_digest.dart b/lib/src/models/generated/duniter/types/sp_consensus_babe/digests/secondary_plain_pre_digest.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a5bb61c62569b9f0d7c1b151b89cf3a171c19d7f
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_consensus_babe/digests/secondary_plain_pre_digest.dart
@@ -0,0 +1,86 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_consensus_slots/slot.dart' as _i2;
+
+class SecondaryPlainPreDigest {
+  const SecondaryPlainPreDigest({
+    required this.authorityIndex,
+    required this.slot,
+  });
+
+  factory SecondaryPlainPreDigest.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// super::AuthorityIndex
+  final int authorityIndex;
+
+  /// Slot
+  final _i2.Slot slot;
+
+  static const $SecondaryPlainPreDigestCodec codec =
+      $SecondaryPlainPreDigestCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'authorityIndex': authorityIndex,
+        'slot': slot,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SecondaryPlainPreDigest &&
+          other.authorityIndex == authorityIndex &&
+          other.slot == slot;
+
+  @override
+  int get hashCode => Object.hash(
+        authorityIndex,
+        slot,
+      );
+}
+
+class $SecondaryPlainPreDigestCodec with _i1.Codec<SecondaryPlainPreDigest> {
+  const $SecondaryPlainPreDigestCodec();
+
+  @override
+  void encodeTo(
+    SecondaryPlainPreDigest obj,
+    _i1.Output output,
+  ) {
+    _i1.U32Codec.codec.encodeTo(
+      obj.authorityIndex,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.slot,
+      output,
+    );
+  }
+
+  @override
+  SecondaryPlainPreDigest decode(_i1.Input input) {
+    return SecondaryPlainPreDigest(
+      authorityIndex: _i1.U32Codec.codec.decode(input),
+      slot: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(SecondaryPlainPreDigest obj) {
+    int size = 0;
+    size = size + _i1.U32Codec.codec.sizeHint(obj.authorityIndex);
+    size = size + const _i2.SlotCodec().sizeHint(obj.slot);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_consensus_babe/digests/secondary_v_r_f_pre_digest.dart b/lib/src/models/generated/duniter/types/sp_consensus_babe/digests/secondary_v_r_f_pre_digest.dart
new file mode 100644
index 0000000000000000000000000000000000000000..b4339cc0361187361bd606ba56718bd97d2ece31
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_consensus_babe/digests/secondary_v_r_f_pre_digest.dart
@@ -0,0 +1,100 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../../sp_consensus_slots/slot.dart' as _i2;
+import '../../sp_core/sr25519/vrf/vrf_signature.dart' as _i3;
+
+class SecondaryVRFPreDigest {
+  const SecondaryVRFPreDigest({
+    required this.authorityIndex,
+    required this.slot,
+    required this.vrfSignature,
+  });
+
+  factory SecondaryVRFPreDigest.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// super::AuthorityIndex
+  final int authorityIndex;
+
+  /// Slot
+  final _i2.Slot slot;
+
+  /// VrfSignature
+  final _i3.VrfSignature vrfSignature;
+
+  static const $SecondaryVRFPreDigestCodec codec =
+      $SecondaryVRFPreDigestCodec();
+
+  _i4.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'authorityIndex': authorityIndex,
+        'slot': slot,
+        'vrfSignature': vrfSignature.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is SecondaryVRFPreDigest &&
+          other.authorityIndex == authorityIndex &&
+          other.slot == slot &&
+          other.vrfSignature == vrfSignature;
+
+  @override
+  int get hashCode => Object.hash(
+        authorityIndex,
+        slot,
+        vrfSignature,
+      );
+}
+
+class $SecondaryVRFPreDigestCodec with _i1.Codec<SecondaryVRFPreDigest> {
+  const $SecondaryVRFPreDigestCodec();
+
+  @override
+  void encodeTo(
+    SecondaryVRFPreDigest obj,
+    _i1.Output output,
+  ) {
+    _i1.U32Codec.codec.encodeTo(
+      obj.authorityIndex,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.slot,
+      output,
+    );
+    _i3.VrfSignature.codec.encodeTo(
+      obj.vrfSignature,
+      output,
+    );
+  }
+
+  @override
+  SecondaryVRFPreDigest decode(_i1.Input input) {
+    return SecondaryVRFPreDigest(
+      authorityIndex: _i1.U32Codec.codec.decode(input),
+      slot: _i1.U64Codec.codec.decode(input),
+      vrfSignature: _i3.VrfSignature.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(SecondaryVRFPreDigest obj) {
+    int size = 0;
+    size = size + _i1.U32Codec.codec.sizeHint(obj.authorityIndex);
+    size = size + const _i2.SlotCodec().sizeHint(obj.slot);
+    size = size + _i3.VrfSignature.codec.sizeHint(obj.vrfSignature);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_consensus_grandpa/app/public.dart b/lib/src/models/generated/duniter/types/sp_consensus_grandpa/app/public.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a47097640a722463bd7860d05d258a93b7fd28fc
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_consensus_grandpa/app/public.dart
@@ -0,0 +1,31 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../../sp_core/ed25519/public.dart' as _i1;
+
+typedef Public = _i1.Public;
+
+class PublicCodec with _i2.Codec<Public> {
+  const PublicCodec();
+
+  @override
+  Public decode(_i2.Input input) {
+    return const _i2.U8ArrayCodec(32).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Public value,
+    _i2.Output output,
+  ) {
+    const _i2.U8ArrayCodec(32).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Public value) {
+    return const _i1.PublicCodec().sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_consensus_grandpa/app/signature.dart b/lib/src/models/generated/duniter/types/sp_consensus_grandpa/app/signature.dart
new file mode 100644
index 0000000000000000000000000000000000000000..eeb4c03043b933640558068ac3e71b17c3f11887
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_consensus_grandpa/app/signature.dart
@@ -0,0 +1,31 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i2;
+
+import '../../sp_core/ed25519/signature.dart' as _i1;
+
+typedef Signature = _i1.Signature;
+
+class SignatureCodec with _i2.Codec<Signature> {
+  const SignatureCodec();
+
+  @override
+  Signature decode(_i2.Input input) {
+    return const _i2.U8ArrayCodec(64).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Signature value,
+    _i2.Output output,
+  ) {
+    const _i2.U8ArrayCodec(64).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Signature value) {
+    return const _i1.SignatureCodec().sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_consensus_grandpa/equivocation.dart b/lib/src/models/generated/duniter/types/sp_consensus_grandpa/equivocation.dart
new file mode 100644
index 0000000000000000000000000000000000000000..306b8b6969bd0630aa510ae51a7b322c3dd88a2a
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_consensus_grandpa/equivocation.dart
@@ -0,0 +1,177 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../finality_grandpa/equivocation_1.dart' as _i3;
+import '../finality_grandpa/equivocation_2.dart' as _i4;
+
+abstract class Equivocation {
+  const Equivocation();
+
+  factory Equivocation.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EquivocationCodec codec = $EquivocationCodec();
+
+  static const $Equivocation values = $Equivocation();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, Map<String, dynamic>> toJson();
+}
+
+class $Equivocation {
+  const $Equivocation();
+
+  Prevote prevote(_i3.Equivocation value0) {
+    return Prevote(value0);
+  }
+
+  Precommit precommit(_i4.Equivocation value0) {
+    return Precommit(value0);
+  }
+}
+
+class $EquivocationCodec with _i1.Codec<Equivocation> {
+  const $EquivocationCodec();
+
+  @override
+  Equivocation decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Prevote._decode(input);
+      case 1:
+        return Precommit._decode(input);
+      default:
+        throw Exception('Equivocation: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Equivocation value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Prevote:
+        (value as Prevote).encodeTo(output);
+        break;
+      case Precommit:
+        (value as Precommit).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Equivocation: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Equivocation value) {
+    switch (value.runtimeType) {
+      case Prevote:
+        return (value as Prevote)._sizeHint();
+      case Precommit:
+        return (value as Precommit)._sizeHint();
+      default:
+        throw Exception(
+            'Equivocation: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class Prevote extends Equivocation {
+  const Prevote(this.value0);
+
+  factory Prevote._decode(_i1.Input input) {
+    return Prevote(_i3.Equivocation.codec.decode(input));
+  }
+
+  /// grandpa::Equivocation<AuthorityId, grandpa::Prevote<H, N>,
+  ///AuthoritySignature>
+  final _i3.Equivocation value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'Prevote': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.Equivocation.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i3.Equivocation.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Prevote && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Precommit extends Equivocation {
+  const Precommit(this.value0);
+
+  factory Precommit._decode(_i1.Input input) {
+    return Precommit(_i4.Equivocation.codec.decode(input));
+  }
+
+  /// grandpa::Equivocation<AuthorityId, grandpa::Precommit<H, N>,
+  ///AuthoritySignature>
+  final _i4.Equivocation value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'Precommit': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i4.Equivocation.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i4.Equivocation.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Precommit && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/sp_consensus_grandpa/equivocation_proof.dart b/lib/src/models/generated/duniter/types/sp_consensus_grandpa/equivocation_proof.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c2291d3b3b8c5798d2fe34e3c6c4addcfa61b629
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_consensus_grandpa/equivocation_proof.dart
@@ -0,0 +1,85 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import 'equivocation.dart' as _i2;
+
+class EquivocationProof {
+  const EquivocationProof({
+    required this.setId,
+    required this.equivocation,
+  });
+
+  factory EquivocationProof.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// SetId
+  final BigInt setId;
+
+  /// Equivocation<H, N>
+  final _i2.Equivocation equivocation;
+
+  static const $EquivocationProofCodec codec = $EquivocationProofCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'setId': setId,
+        'equivocation': equivocation.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is EquivocationProof &&
+          other.setId == setId &&
+          other.equivocation == equivocation;
+
+  @override
+  int get hashCode => Object.hash(
+        setId,
+        equivocation,
+      );
+}
+
+class $EquivocationProofCodec with _i1.Codec<EquivocationProof> {
+  const $EquivocationProofCodec();
+
+  @override
+  void encodeTo(
+    EquivocationProof obj,
+    _i1.Output output,
+  ) {
+    _i1.U64Codec.codec.encodeTo(
+      obj.setId,
+      output,
+    );
+    _i2.Equivocation.codec.encodeTo(
+      obj.equivocation,
+      output,
+    );
+  }
+
+  @override
+  EquivocationProof decode(_i1.Input input) {
+    return EquivocationProof(
+      setId: _i1.U64Codec.codec.decode(input),
+      equivocation: _i2.Equivocation.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(EquivocationProof obj) {
+    int size = 0;
+    size = size + _i1.U64Codec.codec.sizeHint(obj.setId);
+    size = size + _i2.Equivocation.codec.sizeHint(obj.equivocation);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_consensus_slots/equivocation_proof.dart b/lib/src/models/generated/duniter/types/sp_consensus_slots/equivocation_proof.dart
new file mode 100644
index 0000000000000000000000000000000000000000..47e76399b320ed188b0cdcd5213949df12fb7a32
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_consensus_slots/equivocation_proof.dart
@@ -0,0 +1,113 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i5;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../sp_consensus_babe/app/public.dart' as _i2;
+import '../sp_runtime/generic/header/header.dart' as _i4;
+import 'slot.dart' as _i3;
+
+class EquivocationProof {
+  const EquivocationProof({
+    required this.offender,
+    required this.slot,
+    required this.firstHeader,
+    required this.secondHeader,
+  });
+
+  factory EquivocationProof.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// Id
+  final _i2.Public offender;
+
+  /// Slot
+  final _i3.Slot slot;
+
+  /// Header
+  final _i4.Header firstHeader;
+
+  /// Header
+  final _i4.Header secondHeader;
+
+  static const $EquivocationProofCodec codec = $EquivocationProofCodec();
+
+  _i5.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'offender': offender.toList(),
+        'slot': slot,
+        'firstHeader': firstHeader.toJson(),
+        'secondHeader': secondHeader.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is EquivocationProof &&
+          other.offender == offender &&
+          other.slot == slot &&
+          other.firstHeader == firstHeader &&
+          other.secondHeader == secondHeader;
+
+  @override
+  int get hashCode => Object.hash(
+        offender,
+        slot,
+        firstHeader,
+        secondHeader,
+      );
+}
+
+class $EquivocationProofCodec with _i1.Codec<EquivocationProof> {
+  const $EquivocationProofCodec();
+
+  @override
+  void encodeTo(
+    EquivocationProof obj,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.offender,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.slot,
+      output,
+    );
+    _i4.Header.codec.encodeTo(
+      obj.firstHeader,
+      output,
+    );
+    _i4.Header.codec.encodeTo(
+      obj.secondHeader,
+      output,
+    );
+  }
+
+  @override
+  EquivocationProof decode(_i1.Input input) {
+    return EquivocationProof(
+      offender: const _i1.U8ArrayCodec(32).decode(input),
+      slot: _i1.U64Codec.codec.decode(input),
+      firstHeader: _i4.Header.codec.decode(input),
+      secondHeader: _i4.Header.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(EquivocationProof obj) {
+    int size = 0;
+    size = size + const _i2.PublicCodec().sizeHint(obj.offender);
+    size = size + const _i3.SlotCodec().sizeHint(obj.slot);
+    size = size + _i4.Header.codec.sizeHint(obj.firstHeader);
+    size = size + _i4.Header.codec.sizeHint(obj.secondHeader);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_consensus_slots/slot.dart b/lib/src/models/generated/duniter/types/sp_consensus_slots/slot.dart
new file mode 100644
index 0000000000000000000000000000000000000000..091e75b5dba9699f46887615bc25483e267e5392
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_consensus_slots/slot.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef Slot = BigInt;
+
+class SlotCodec with _i1.Codec<Slot> {
+  const SlotCodec();
+
+  @override
+  Slot decode(_i1.Input input) {
+    return _i1.U64Codec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Slot value,
+    _i1.Output output,
+  ) {
+    _i1.U64Codec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Slot value) {
+    return _i1.U64Codec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_core/crypto/account_id32.dart b/lib/src/models/generated/duniter/types/sp_core/crypto/account_id32.dart
new file mode 100644
index 0000000000000000000000000000000000000000..81513d7f4aaefe1aa7a9d0a58ccf84065cd73a35
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_core/crypto/account_id32.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef AccountId32 = List<int>;
+
+class AccountId32Codec with _i1.Codec<AccountId32> {
+  const AccountId32Codec();
+
+  @override
+  AccountId32 decode(_i1.Input input) {
+    return const _i1.U8ArrayCodec(32).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    AccountId32 value,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(AccountId32 value) {
+    return const _i1.U8ArrayCodec(32).sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_core/crypto/key_type_id.dart b/lib/src/models/generated/duniter/types/sp_core/crypto/key_type_id.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d68cb17be2667f626666cc2f1b16c7e2da10d3ba
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_core/crypto/key_type_id.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef KeyTypeId = List<int>;
+
+class KeyTypeIdCodec with _i1.Codec<KeyTypeId> {
+  const KeyTypeIdCodec();
+
+  @override
+  KeyTypeId decode(_i1.Input input) {
+    return const _i1.U8ArrayCodec(4).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    KeyTypeId value,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(4).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(KeyTypeId value) {
+    return const _i1.U8ArrayCodec(4).sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_core/ecdsa/signature.dart b/lib/src/models/generated/duniter/types/sp_core/ecdsa/signature.dart
new file mode 100644
index 0000000000000000000000000000000000000000..b53b171666f46df8a0cf2fef920bacd1a26f1fb3
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_core/ecdsa/signature.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef Signature = List<int>;
+
+class SignatureCodec with _i1.Codec<Signature> {
+  const SignatureCodec();
+
+  @override
+  Signature decode(_i1.Input input) {
+    return const _i1.U8ArrayCodec(65).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Signature value,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(65).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Signature value) {
+    return const _i1.U8ArrayCodec(65).sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_core/ed25519/public.dart b/lib/src/models/generated/duniter/types/sp_core/ed25519/public.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f18ca8d03cac3204e01b184b7262971ae7d2898b
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_core/ed25519/public.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef Public = List<int>;
+
+class PublicCodec with _i1.Codec<Public> {
+  const PublicCodec();
+
+  @override
+  Public decode(_i1.Input input) {
+    return const _i1.U8ArrayCodec(32).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Public value,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Public value) {
+    return const _i1.U8ArrayCodec(32).sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_core/ed25519/signature.dart b/lib/src/models/generated/duniter/types/sp_core/ed25519/signature.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7cf14dea1451dcebc9c96b0a544d355b17a835fd
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_core/ed25519/signature.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef Signature = List<int>;
+
+class SignatureCodec with _i1.Codec<Signature> {
+  const SignatureCodec();
+
+  @override
+  Signature decode(_i1.Input input) {
+    return const _i1.U8ArrayCodec(64).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Signature value,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(64).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Signature value) {
+    return const _i1.U8ArrayCodec(64).sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_core/sr25519/public.dart b/lib/src/models/generated/duniter/types/sp_core/sr25519/public.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f18ca8d03cac3204e01b184b7262971ae7d2898b
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_core/sr25519/public.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef Public = List<int>;
+
+class PublicCodec with _i1.Codec<Public> {
+  const PublicCodec();
+
+  @override
+  Public decode(_i1.Input input) {
+    return const _i1.U8ArrayCodec(32).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Public value,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Public value) {
+    return const _i1.U8ArrayCodec(32).sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_core/sr25519/signature.dart b/lib/src/models/generated/duniter/types/sp_core/sr25519/signature.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7cf14dea1451dcebc9c96b0a544d355b17a835fd
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_core/sr25519/signature.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef Signature = List<int>;
+
+class SignatureCodec with _i1.Codec<Signature> {
+  const SignatureCodec();
+
+  @override
+  Signature decode(_i1.Input input) {
+    return const _i1.U8ArrayCodec(64).decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Signature value,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(64).encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Signature value) {
+    return const _i1.U8ArrayCodec(64).sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_core/sr25519/vrf/vrf_signature.dart b/lib/src/models/generated/duniter/types/sp_core/sr25519/vrf/vrf_signature.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f92d087f48260296d267587dff30c147e523c2ef
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_core/sr25519/vrf/vrf_signature.dart
@@ -0,0 +1,90 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i3;
+
+class VrfSignature {
+  const VrfSignature({
+    required this.preOutput,
+    required this.proof,
+  });
+
+  factory VrfSignature.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// VrfPreOutput
+  final List<int> preOutput;
+
+  /// VrfProof
+  final List<int> proof;
+
+  static const $VrfSignatureCodec codec = $VrfSignatureCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, List<int>> toJson() => {
+        'preOutput': preOutput.toList(),
+        'proof': proof.toList(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is VrfSignature &&
+          _i3.listsEqual(
+            other.preOutput,
+            preOutput,
+          ) &&
+          _i3.listsEqual(
+            other.proof,
+            proof,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        preOutput,
+        proof,
+      );
+}
+
+class $VrfSignatureCodec with _i1.Codec<VrfSignature> {
+  const $VrfSignatureCodec();
+
+  @override
+  void encodeTo(
+    VrfSignature obj,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.preOutput,
+      output,
+    );
+    const _i1.U8ArrayCodec(64).encodeTo(
+      obj.proof,
+      output,
+    );
+  }
+
+  @override
+  VrfSignature decode(_i1.Input input) {
+    return VrfSignature(
+      preOutput: const _i1.U8ArrayCodec(32).decode(input),
+      proof: const _i1.U8ArrayCodec(64).decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(VrfSignature obj) {
+    int size = 0;
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(obj.preOutput);
+    size = size + const _i1.U8ArrayCodec(64).sizeHint(obj.proof);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_core/void.dart b/lib/src/models/generated/duniter/types/sp_core/void.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6b07468e5119cf23121fc9c972a714296b96f292
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_core/void.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef Void = dynamic;
+
+class VoidCodec with _i1.Codec<Void> {
+  const VoidCodec();
+
+  @override
+  Void decode(_i1.Input input) {
+    return _i1.NullCodec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    Void value,
+    _i1.Output output,
+  ) {
+    _i1.NullCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(Void value) {
+    return _i1.NullCodec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_distance/computation_result.dart b/lib/src/models/generated/duniter/types/sp_distance/computation_result.dart
new file mode 100644
index 0000000000000000000000000000000000000000..fbbe759031eceeea250cfaaaad2081391c2ed65f
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_distance/computation_result.dart
@@ -0,0 +1,73 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../sp_arithmetic/per_things/perbill.dart' as _i2;
+
+class ComputationResult {
+  const ComputationResult({required this.distances});
+
+  factory ComputationResult.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// Vec<Perbill>
+  final List<_i2.Perbill> distances;
+
+  static const $ComputationResultCodec codec = $ComputationResultCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, List<int>> toJson() =>
+      {'distances': distances.map((value) => value).toList()};
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ComputationResult &&
+          _i4.listsEqual(
+            other.distances,
+            distances,
+          );
+
+  @override
+  int get hashCode => distances.hashCode;
+}
+
+class $ComputationResultCodec with _i1.Codec<ComputationResult> {
+  const $ComputationResultCodec();
+
+  @override
+  void encodeTo(
+    ComputationResult obj,
+    _i1.Output output,
+  ) {
+    const _i1.SequenceCodec<_i2.Perbill>(_i2.PerbillCodec()).encodeTo(
+      obj.distances,
+      output,
+    );
+  }
+
+  @override
+  ComputationResult decode(_i1.Input input) {
+    return ComputationResult(
+        distances: const _i1.SequenceCodec<_i2.Perbill>(_i2.PerbillCodec())
+            .decode(input));
+  }
+
+  @override
+  int sizeHint(ComputationResult obj) {
+    int size = 0;
+    size = size +
+        const _i1.SequenceCodec<_i2.Perbill>(_i2.PerbillCodec())
+            .sizeHint(obj.distances);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_membership/membership_data.dart b/lib/src/models/generated/duniter/types/sp_membership/membership_data.dart
new file mode 100644
index 0000000000000000000000000000000000000000..9c37e458e1d47dee6cf89aa742f639474190f348
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_membership/membership_data.dart
@@ -0,0 +1,61 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class MembershipData {
+  const MembershipData({required this.expireOn});
+
+  factory MembershipData.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// BlockNumber
+  final int expireOn;
+
+  static const $MembershipDataCodec codec = $MembershipDataCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, int> toJson() => {'expireOn': expireOn};
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MembershipData && other.expireOn == expireOn;
+
+  @override
+  int get hashCode => expireOn.hashCode;
+}
+
+class $MembershipDataCodec with _i1.Codec<MembershipData> {
+  const $MembershipDataCodec();
+
+  @override
+  void encodeTo(
+    MembershipData obj,
+    _i1.Output output,
+  ) {
+    _i1.U32Codec.codec.encodeTo(
+      obj.expireOn,
+      output,
+    );
+  }
+
+  @override
+  MembershipData decode(_i1.Input input) {
+    return MembershipData(expireOn: _i1.U32Codec.codec.decode(input));
+  }
+
+  @override
+  int sizeHint(MembershipData obj) {
+    int size = 0;
+    size = size + _i1.U32Codec.codec.sizeHint(obj.expireOn);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_runtime/dispatch_error.dart b/lib/src/models/generated/duniter/types/sp_runtime/dispatch_error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..571b7820a952a9944dbb7a85d3b5da062c304634
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_runtime/dispatch_error.dart
@@ -0,0 +1,593 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+import '../sp_arithmetic/arithmetic_error.dart' as _i5;
+import 'module_error.dart' as _i3;
+import 'token_error.dart' as _i4;
+import 'transactional_error.dart' as _i6;
+
+abstract class DispatchError {
+  const DispatchError();
+
+  factory DispatchError.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $DispatchErrorCodec codec = $DispatchErrorCodec();
+
+  static const $DispatchError values = $DispatchError();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $DispatchError {
+  const $DispatchError();
+
+  Other other() {
+    return const Other();
+  }
+
+  CannotLookup cannotLookup() {
+    return const CannotLookup();
+  }
+
+  BadOrigin badOrigin() {
+    return const BadOrigin();
+  }
+
+  Module module(_i3.ModuleError value0) {
+    return Module(value0);
+  }
+
+  ConsumerRemaining consumerRemaining() {
+    return const ConsumerRemaining();
+  }
+
+  NoProviders noProviders() {
+    return const NoProviders();
+  }
+
+  TooManyConsumers tooManyConsumers() {
+    return const TooManyConsumers();
+  }
+
+  Token token(_i4.TokenError value0) {
+    return Token(value0);
+  }
+
+  Arithmetic arithmetic(_i5.ArithmeticError value0) {
+    return Arithmetic(value0);
+  }
+
+  Transactional transactional(_i6.TransactionalError value0) {
+    return Transactional(value0);
+  }
+
+  Exhausted exhausted() {
+    return const Exhausted();
+  }
+
+  Corruption corruption() {
+    return const Corruption();
+  }
+
+  Unavailable unavailable() {
+    return const Unavailable();
+  }
+
+  RootNotAllowed rootNotAllowed() {
+    return const RootNotAllowed();
+  }
+}
+
+class $DispatchErrorCodec with _i1.Codec<DispatchError> {
+  const $DispatchErrorCodec();
+
+  @override
+  DispatchError decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return const Other();
+      case 1:
+        return const CannotLookup();
+      case 2:
+        return const BadOrigin();
+      case 3:
+        return Module._decode(input);
+      case 4:
+        return const ConsumerRemaining();
+      case 5:
+        return const NoProviders();
+      case 6:
+        return const TooManyConsumers();
+      case 7:
+        return Token._decode(input);
+      case 8:
+        return Arithmetic._decode(input);
+      case 9:
+        return Transactional._decode(input);
+      case 10:
+        return const Exhausted();
+      case 11:
+        return const Corruption();
+      case 12:
+        return const Unavailable();
+      case 13:
+        return const RootNotAllowed();
+      default:
+        throw Exception('DispatchError: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    DispatchError value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Other:
+        (value as Other).encodeTo(output);
+        break;
+      case CannotLookup:
+        (value as CannotLookup).encodeTo(output);
+        break;
+      case BadOrigin:
+        (value as BadOrigin).encodeTo(output);
+        break;
+      case Module:
+        (value as Module).encodeTo(output);
+        break;
+      case ConsumerRemaining:
+        (value as ConsumerRemaining).encodeTo(output);
+        break;
+      case NoProviders:
+        (value as NoProviders).encodeTo(output);
+        break;
+      case TooManyConsumers:
+        (value as TooManyConsumers).encodeTo(output);
+        break;
+      case Token:
+        (value as Token).encodeTo(output);
+        break;
+      case Arithmetic:
+        (value as Arithmetic).encodeTo(output);
+        break;
+      case Transactional:
+        (value as Transactional).encodeTo(output);
+        break;
+      case Exhausted:
+        (value as Exhausted).encodeTo(output);
+        break;
+      case Corruption:
+        (value as Corruption).encodeTo(output);
+        break;
+      case Unavailable:
+        (value as Unavailable).encodeTo(output);
+        break;
+      case RootNotAllowed:
+        (value as RootNotAllowed).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'DispatchError: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(DispatchError value) {
+    switch (value.runtimeType) {
+      case Other:
+        return 1;
+      case CannotLookup:
+        return 1;
+      case BadOrigin:
+        return 1;
+      case Module:
+        return (value as Module)._sizeHint();
+      case ConsumerRemaining:
+        return 1;
+      case NoProviders:
+        return 1;
+      case TooManyConsumers:
+        return 1;
+      case Token:
+        return (value as Token)._sizeHint();
+      case Arithmetic:
+        return (value as Arithmetic)._sizeHint();
+      case Transactional:
+        return (value as Transactional)._sizeHint();
+      case Exhausted:
+        return 1;
+      case Corruption:
+        return 1;
+      case Unavailable:
+        return 1;
+      case RootNotAllowed:
+        return 1;
+      default:
+        throw Exception(
+            'DispatchError: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class Other extends DispatchError {
+  const Other();
+
+  @override
+  Map<String, dynamic> toJson() => {'Other': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is Other;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+class CannotLookup extends DispatchError {
+  const CannotLookup();
+
+  @override
+  Map<String, dynamic> toJson() => {'CannotLookup': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is CannotLookup;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+class BadOrigin extends DispatchError {
+  const BadOrigin();
+
+  @override
+  Map<String, dynamic> toJson() => {'BadOrigin': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is BadOrigin;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+class Module extends DispatchError {
+  const Module(this.value0);
+
+  factory Module._decode(_i1.Input input) {
+    return Module(_i3.ModuleError.codec.decode(input));
+  }
+
+  /// ModuleError
+  final _i3.ModuleError value0;
+
+  @override
+  Map<String, Map<String, dynamic>> toJson() => {'Module': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i3.ModuleError.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i3.ModuleError.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Module && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class ConsumerRemaining extends DispatchError {
+  const ConsumerRemaining();
+
+  @override
+  Map<String, dynamic> toJson() => {'ConsumerRemaining': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is ConsumerRemaining;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+class NoProviders extends DispatchError {
+  const NoProviders();
+
+  @override
+  Map<String, dynamic> toJson() => {'NoProviders': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is NoProviders;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+class TooManyConsumers extends DispatchError {
+  const TooManyConsumers();
+
+  @override
+  Map<String, dynamic> toJson() => {'TooManyConsumers': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      6,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is TooManyConsumers;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+class Token extends DispatchError {
+  const Token(this.value0);
+
+  factory Token._decode(_i1.Input input) {
+    return Token(_i4.TokenError.codec.decode(input));
+  }
+
+  /// TokenError
+  final _i4.TokenError value0;
+
+  @override
+  Map<String, String> toJson() => {'Token': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i4.TokenError.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      7,
+      output,
+    );
+    _i4.TokenError.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Token && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Arithmetic extends DispatchError {
+  const Arithmetic(this.value0);
+
+  factory Arithmetic._decode(_i1.Input input) {
+    return Arithmetic(_i5.ArithmeticError.codec.decode(input));
+  }
+
+  /// ArithmeticError
+  final _i5.ArithmeticError value0;
+
+  @override
+  Map<String, String> toJson() => {'Arithmetic': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i5.ArithmeticError.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      8,
+      output,
+    );
+    _i5.ArithmeticError.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Arithmetic && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Transactional extends DispatchError {
+  const Transactional(this.value0);
+
+  factory Transactional._decode(_i1.Input input) {
+    return Transactional(_i6.TransactionalError.codec.decode(input));
+  }
+
+  /// TransactionalError
+  final _i6.TransactionalError value0;
+
+  @override
+  Map<String, String> toJson() => {'Transactional': value0.toJson()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i6.TransactionalError.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      9,
+      output,
+    );
+    _i6.TransactionalError.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Transactional && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Exhausted extends DispatchError {
+  const Exhausted();
+
+  @override
+  Map<String, dynamic> toJson() => {'Exhausted': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      10,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is Exhausted;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+class Corruption extends DispatchError {
+  const Corruption();
+
+  @override
+  Map<String, dynamic> toJson() => {'Corruption': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      11,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is Corruption;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+class Unavailable extends DispatchError {
+  const Unavailable();
+
+  @override
+  Map<String, dynamic> toJson() => {'Unavailable': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      12,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is Unavailable;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+class RootNotAllowed extends DispatchError {
+  const RootNotAllowed();
+
+  @override
+  Map<String, dynamic> toJson() => {'RootNotAllowed': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      13,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is RootNotAllowed;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/sp_runtime/generic/digest/digest.dart b/lib/src/models/generated/duniter/types/sp_runtime/generic/digest/digest.dart
new file mode 100644
index 0000000000000000000000000000000000000000..215d34e5858bc7dc8e79d34d2eac6b76f813b719
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_runtime/generic/digest/digest.dart
@@ -0,0 +1,73 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import 'digest_item.dart' as _i2;
+
+class Digest {
+  const Digest({required this.logs});
+
+  factory Digest.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// Vec<DigestItem>
+  final List<_i2.DigestItem> logs;
+
+  static const $DigestCodec codec = $DigestCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, List<Map<String, dynamic>>> toJson() =>
+      {'logs': logs.map((value) => value.toJson()).toList()};
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Digest &&
+          _i4.listsEqual(
+            other.logs,
+            logs,
+          );
+
+  @override
+  int get hashCode => logs.hashCode;
+}
+
+class $DigestCodec with _i1.Codec<Digest> {
+  const $DigestCodec();
+
+  @override
+  void encodeTo(
+    Digest obj,
+    _i1.Output output,
+  ) {
+    const _i1.SequenceCodec<_i2.DigestItem>(_i2.DigestItem.codec).encodeTo(
+      obj.logs,
+      output,
+    );
+  }
+
+  @override
+  Digest decode(_i1.Input input) {
+    return Digest(
+        logs: const _i1.SequenceCodec<_i2.DigestItem>(_i2.DigestItem.codec)
+            .decode(input));
+  }
+
+  @override
+  int sizeHint(Digest obj) {
+    int size = 0;
+    size = size +
+        const _i1.SequenceCodec<_i2.DigestItem>(_i2.DigestItem.codec)
+            .sizeHint(obj.logs);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_runtime/generic/digest/digest_item.dart b/lib/src/models/generated/duniter/types/sp_runtime/generic/digest/digest_item.dart
new file mode 100644
index 0000000000000000000000000000000000000000..572583d99da439d82e79789382f99eeac8136f84
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_runtime/generic/digest/digest_item.dart
@@ -0,0 +1,422 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i3;
+
+abstract class DigestItem {
+  const DigestItem();
+
+  factory DigestItem.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $DigestItemCodec codec = $DigestItemCodec();
+
+  static const $DigestItem values = $DigestItem();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $DigestItem {
+  const $DigestItem();
+
+  PreRuntime preRuntime(
+    List<int> value0,
+    List<int> value1,
+  ) {
+    return PreRuntime(
+      value0,
+      value1,
+    );
+  }
+
+  Consensus consensus(
+    List<int> value0,
+    List<int> value1,
+  ) {
+    return Consensus(
+      value0,
+      value1,
+    );
+  }
+
+  Seal seal(
+    List<int> value0,
+    List<int> value1,
+  ) {
+    return Seal(
+      value0,
+      value1,
+    );
+  }
+
+  Other other(List<int> value0) {
+    return Other(value0);
+  }
+
+  RuntimeEnvironmentUpdated runtimeEnvironmentUpdated() {
+    return const RuntimeEnvironmentUpdated();
+  }
+}
+
+class $DigestItemCodec with _i1.Codec<DigestItem> {
+  const $DigestItemCodec();
+
+  @override
+  DigestItem decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 6:
+        return PreRuntime._decode(input);
+      case 4:
+        return Consensus._decode(input);
+      case 5:
+        return Seal._decode(input);
+      case 0:
+        return Other._decode(input);
+      case 8:
+        return const RuntimeEnvironmentUpdated();
+      default:
+        throw Exception('DigestItem: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    DigestItem value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case PreRuntime:
+        (value as PreRuntime).encodeTo(output);
+        break;
+      case Consensus:
+        (value as Consensus).encodeTo(output);
+        break;
+      case Seal:
+        (value as Seal).encodeTo(output);
+        break;
+      case Other:
+        (value as Other).encodeTo(output);
+        break;
+      case RuntimeEnvironmentUpdated:
+        (value as RuntimeEnvironmentUpdated).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'DigestItem: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(DigestItem value) {
+    switch (value.runtimeType) {
+      case PreRuntime:
+        return (value as PreRuntime)._sizeHint();
+      case Consensus:
+        return (value as Consensus)._sizeHint();
+      case Seal:
+        return (value as Seal)._sizeHint();
+      case Other:
+        return (value as Other)._sizeHint();
+      case RuntimeEnvironmentUpdated:
+        return 1;
+      default:
+        throw Exception(
+            'DigestItem: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class PreRuntime extends DigestItem {
+  const PreRuntime(
+    this.value0,
+    this.value1,
+  );
+
+  factory PreRuntime._decode(_i1.Input input) {
+    return PreRuntime(
+      const _i1.U8ArrayCodec(4).decode(input),
+      _i1.U8SequenceCodec.codec.decode(input),
+    );
+  }
+
+  /// ConsensusEngineId
+  final List<int> value0;
+
+  /// Vec<u8>
+  final List<int> value1;
+
+  @override
+  Map<String, List<List<int>>> toJson() => {
+        'PreRuntime': [
+          value0.toList(),
+          value1,
+        ]
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i1.U8ArrayCodec(4).sizeHint(value0);
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(value1);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      6,
+      output,
+    );
+    const _i1.U8ArrayCodec(4).encodeTo(
+      value0,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      value1,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is PreRuntime &&
+          _i3.listsEqual(
+            other.value0,
+            value0,
+          ) &&
+          _i3.listsEqual(
+            other.value1,
+            value1,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        value0,
+        value1,
+      );
+}
+
+class Consensus extends DigestItem {
+  const Consensus(
+    this.value0,
+    this.value1,
+  );
+
+  factory Consensus._decode(_i1.Input input) {
+    return Consensus(
+      const _i1.U8ArrayCodec(4).decode(input),
+      _i1.U8SequenceCodec.codec.decode(input),
+    );
+  }
+
+  /// ConsensusEngineId
+  final List<int> value0;
+
+  /// Vec<u8>
+  final List<int> value1;
+
+  @override
+  Map<String, List<List<int>>> toJson() => {
+        'Consensus': [
+          value0.toList(),
+          value1,
+        ]
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i1.U8ArrayCodec(4).sizeHint(value0);
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(value1);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    const _i1.U8ArrayCodec(4).encodeTo(
+      value0,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      value1,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Consensus &&
+          _i3.listsEqual(
+            other.value0,
+            value0,
+          ) &&
+          _i3.listsEqual(
+            other.value1,
+            value1,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        value0,
+        value1,
+      );
+}
+
+class Seal extends DigestItem {
+  const Seal(
+    this.value0,
+    this.value1,
+  );
+
+  factory Seal._decode(_i1.Input input) {
+    return Seal(
+      const _i1.U8ArrayCodec(4).decode(input),
+      _i1.U8SequenceCodec.codec.decode(input),
+    );
+  }
+
+  /// ConsensusEngineId
+  final List<int> value0;
+
+  /// Vec<u8>
+  final List<int> value1;
+
+  @override
+  Map<String, List<List<int>>> toJson() => {
+        'Seal': [
+          value0.toList(),
+          value1,
+        ]
+      };
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i1.U8ArrayCodec(4).sizeHint(value0);
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(value1);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    const _i1.U8ArrayCodec(4).encodeTo(
+      value0,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      value1,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Seal &&
+          _i3.listsEqual(
+            other.value0,
+            value0,
+          ) &&
+          _i3.listsEqual(
+            other.value1,
+            value1,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        value0,
+        value1,
+      );
+}
+
+class Other extends DigestItem {
+  const Other(this.value0);
+
+  factory Other._decode(_i1.Input input) {
+    return Other(_i1.U8SequenceCodec.codec.decode(input));
+  }
+
+  /// Vec<u8>
+  final List<int> value0;
+
+  @override
+  Map<String, List<int>> toJson() => {'Other': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Other &&
+          _i3.listsEqual(
+            other.value0,
+            value0,
+          );
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class RuntimeEnvironmentUpdated extends DigestItem {
+  const RuntimeEnvironmentUpdated();
+
+  @override
+  Map<String, dynamic> toJson() => {'RuntimeEnvironmentUpdated': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      8,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is RuntimeEnvironmentUpdated;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/sp_runtime/generic/era/era.dart b/lib/src/models/generated/duniter/types/sp_runtime/generic/era/era.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d854f79a42511116a4d7498a50d8e8a4f5ae4260
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_runtime/generic/era/era.dart
@@ -0,0 +1,13357 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+abstract class Era {
+  const Era();
+
+  factory Era.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $EraCodec codec = $EraCodec();
+
+  static const $Era values = $Era();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $Era {
+  const $Era();
+
+  Immortal immortal() {
+    return const Immortal();
+  }
+
+  Mortal1 mortal1(int value0) {
+    return Mortal1(value0);
+  }
+
+  Mortal2 mortal2(int value0) {
+    return Mortal2(value0);
+  }
+
+  Mortal3 mortal3(int value0) {
+    return Mortal3(value0);
+  }
+
+  Mortal4 mortal4(int value0) {
+    return Mortal4(value0);
+  }
+
+  Mortal5 mortal5(int value0) {
+    return Mortal5(value0);
+  }
+
+  Mortal6 mortal6(int value0) {
+    return Mortal6(value0);
+  }
+
+  Mortal7 mortal7(int value0) {
+    return Mortal7(value0);
+  }
+
+  Mortal8 mortal8(int value0) {
+    return Mortal8(value0);
+  }
+
+  Mortal9 mortal9(int value0) {
+    return Mortal9(value0);
+  }
+
+  Mortal10 mortal10(int value0) {
+    return Mortal10(value0);
+  }
+
+  Mortal11 mortal11(int value0) {
+    return Mortal11(value0);
+  }
+
+  Mortal12 mortal12(int value0) {
+    return Mortal12(value0);
+  }
+
+  Mortal13 mortal13(int value0) {
+    return Mortal13(value0);
+  }
+
+  Mortal14 mortal14(int value0) {
+    return Mortal14(value0);
+  }
+
+  Mortal15 mortal15(int value0) {
+    return Mortal15(value0);
+  }
+
+  Mortal16 mortal16(int value0) {
+    return Mortal16(value0);
+  }
+
+  Mortal17 mortal17(int value0) {
+    return Mortal17(value0);
+  }
+
+  Mortal18 mortal18(int value0) {
+    return Mortal18(value0);
+  }
+
+  Mortal19 mortal19(int value0) {
+    return Mortal19(value0);
+  }
+
+  Mortal20 mortal20(int value0) {
+    return Mortal20(value0);
+  }
+
+  Mortal21 mortal21(int value0) {
+    return Mortal21(value0);
+  }
+
+  Mortal22 mortal22(int value0) {
+    return Mortal22(value0);
+  }
+
+  Mortal23 mortal23(int value0) {
+    return Mortal23(value0);
+  }
+
+  Mortal24 mortal24(int value0) {
+    return Mortal24(value0);
+  }
+
+  Mortal25 mortal25(int value0) {
+    return Mortal25(value0);
+  }
+
+  Mortal26 mortal26(int value0) {
+    return Mortal26(value0);
+  }
+
+  Mortal27 mortal27(int value0) {
+    return Mortal27(value0);
+  }
+
+  Mortal28 mortal28(int value0) {
+    return Mortal28(value0);
+  }
+
+  Mortal29 mortal29(int value0) {
+    return Mortal29(value0);
+  }
+
+  Mortal30 mortal30(int value0) {
+    return Mortal30(value0);
+  }
+
+  Mortal31 mortal31(int value0) {
+    return Mortal31(value0);
+  }
+
+  Mortal32 mortal32(int value0) {
+    return Mortal32(value0);
+  }
+
+  Mortal33 mortal33(int value0) {
+    return Mortal33(value0);
+  }
+
+  Mortal34 mortal34(int value0) {
+    return Mortal34(value0);
+  }
+
+  Mortal35 mortal35(int value0) {
+    return Mortal35(value0);
+  }
+
+  Mortal36 mortal36(int value0) {
+    return Mortal36(value0);
+  }
+
+  Mortal37 mortal37(int value0) {
+    return Mortal37(value0);
+  }
+
+  Mortal38 mortal38(int value0) {
+    return Mortal38(value0);
+  }
+
+  Mortal39 mortal39(int value0) {
+    return Mortal39(value0);
+  }
+
+  Mortal40 mortal40(int value0) {
+    return Mortal40(value0);
+  }
+
+  Mortal41 mortal41(int value0) {
+    return Mortal41(value0);
+  }
+
+  Mortal42 mortal42(int value0) {
+    return Mortal42(value0);
+  }
+
+  Mortal43 mortal43(int value0) {
+    return Mortal43(value0);
+  }
+
+  Mortal44 mortal44(int value0) {
+    return Mortal44(value0);
+  }
+
+  Mortal45 mortal45(int value0) {
+    return Mortal45(value0);
+  }
+
+  Mortal46 mortal46(int value0) {
+    return Mortal46(value0);
+  }
+
+  Mortal47 mortal47(int value0) {
+    return Mortal47(value0);
+  }
+
+  Mortal48 mortal48(int value0) {
+    return Mortal48(value0);
+  }
+
+  Mortal49 mortal49(int value0) {
+    return Mortal49(value0);
+  }
+
+  Mortal50 mortal50(int value0) {
+    return Mortal50(value0);
+  }
+
+  Mortal51 mortal51(int value0) {
+    return Mortal51(value0);
+  }
+
+  Mortal52 mortal52(int value0) {
+    return Mortal52(value0);
+  }
+
+  Mortal53 mortal53(int value0) {
+    return Mortal53(value0);
+  }
+
+  Mortal54 mortal54(int value0) {
+    return Mortal54(value0);
+  }
+
+  Mortal55 mortal55(int value0) {
+    return Mortal55(value0);
+  }
+
+  Mortal56 mortal56(int value0) {
+    return Mortal56(value0);
+  }
+
+  Mortal57 mortal57(int value0) {
+    return Mortal57(value0);
+  }
+
+  Mortal58 mortal58(int value0) {
+    return Mortal58(value0);
+  }
+
+  Mortal59 mortal59(int value0) {
+    return Mortal59(value0);
+  }
+
+  Mortal60 mortal60(int value0) {
+    return Mortal60(value0);
+  }
+
+  Mortal61 mortal61(int value0) {
+    return Mortal61(value0);
+  }
+
+  Mortal62 mortal62(int value0) {
+    return Mortal62(value0);
+  }
+
+  Mortal63 mortal63(int value0) {
+    return Mortal63(value0);
+  }
+
+  Mortal64 mortal64(int value0) {
+    return Mortal64(value0);
+  }
+
+  Mortal65 mortal65(int value0) {
+    return Mortal65(value0);
+  }
+
+  Mortal66 mortal66(int value0) {
+    return Mortal66(value0);
+  }
+
+  Mortal67 mortal67(int value0) {
+    return Mortal67(value0);
+  }
+
+  Mortal68 mortal68(int value0) {
+    return Mortal68(value0);
+  }
+
+  Mortal69 mortal69(int value0) {
+    return Mortal69(value0);
+  }
+
+  Mortal70 mortal70(int value0) {
+    return Mortal70(value0);
+  }
+
+  Mortal71 mortal71(int value0) {
+    return Mortal71(value0);
+  }
+
+  Mortal72 mortal72(int value0) {
+    return Mortal72(value0);
+  }
+
+  Mortal73 mortal73(int value0) {
+    return Mortal73(value0);
+  }
+
+  Mortal74 mortal74(int value0) {
+    return Mortal74(value0);
+  }
+
+  Mortal75 mortal75(int value0) {
+    return Mortal75(value0);
+  }
+
+  Mortal76 mortal76(int value0) {
+    return Mortal76(value0);
+  }
+
+  Mortal77 mortal77(int value0) {
+    return Mortal77(value0);
+  }
+
+  Mortal78 mortal78(int value0) {
+    return Mortal78(value0);
+  }
+
+  Mortal79 mortal79(int value0) {
+    return Mortal79(value0);
+  }
+
+  Mortal80 mortal80(int value0) {
+    return Mortal80(value0);
+  }
+
+  Mortal81 mortal81(int value0) {
+    return Mortal81(value0);
+  }
+
+  Mortal82 mortal82(int value0) {
+    return Mortal82(value0);
+  }
+
+  Mortal83 mortal83(int value0) {
+    return Mortal83(value0);
+  }
+
+  Mortal84 mortal84(int value0) {
+    return Mortal84(value0);
+  }
+
+  Mortal85 mortal85(int value0) {
+    return Mortal85(value0);
+  }
+
+  Mortal86 mortal86(int value0) {
+    return Mortal86(value0);
+  }
+
+  Mortal87 mortal87(int value0) {
+    return Mortal87(value0);
+  }
+
+  Mortal88 mortal88(int value0) {
+    return Mortal88(value0);
+  }
+
+  Mortal89 mortal89(int value0) {
+    return Mortal89(value0);
+  }
+
+  Mortal90 mortal90(int value0) {
+    return Mortal90(value0);
+  }
+
+  Mortal91 mortal91(int value0) {
+    return Mortal91(value0);
+  }
+
+  Mortal92 mortal92(int value0) {
+    return Mortal92(value0);
+  }
+
+  Mortal93 mortal93(int value0) {
+    return Mortal93(value0);
+  }
+
+  Mortal94 mortal94(int value0) {
+    return Mortal94(value0);
+  }
+
+  Mortal95 mortal95(int value0) {
+    return Mortal95(value0);
+  }
+
+  Mortal96 mortal96(int value0) {
+    return Mortal96(value0);
+  }
+
+  Mortal97 mortal97(int value0) {
+    return Mortal97(value0);
+  }
+
+  Mortal98 mortal98(int value0) {
+    return Mortal98(value0);
+  }
+
+  Mortal99 mortal99(int value0) {
+    return Mortal99(value0);
+  }
+
+  Mortal100 mortal100(int value0) {
+    return Mortal100(value0);
+  }
+
+  Mortal101 mortal101(int value0) {
+    return Mortal101(value0);
+  }
+
+  Mortal102 mortal102(int value0) {
+    return Mortal102(value0);
+  }
+
+  Mortal103 mortal103(int value0) {
+    return Mortal103(value0);
+  }
+
+  Mortal104 mortal104(int value0) {
+    return Mortal104(value0);
+  }
+
+  Mortal105 mortal105(int value0) {
+    return Mortal105(value0);
+  }
+
+  Mortal106 mortal106(int value0) {
+    return Mortal106(value0);
+  }
+
+  Mortal107 mortal107(int value0) {
+    return Mortal107(value0);
+  }
+
+  Mortal108 mortal108(int value0) {
+    return Mortal108(value0);
+  }
+
+  Mortal109 mortal109(int value0) {
+    return Mortal109(value0);
+  }
+
+  Mortal110 mortal110(int value0) {
+    return Mortal110(value0);
+  }
+
+  Mortal111 mortal111(int value0) {
+    return Mortal111(value0);
+  }
+
+  Mortal112 mortal112(int value0) {
+    return Mortal112(value0);
+  }
+
+  Mortal113 mortal113(int value0) {
+    return Mortal113(value0);
+  }
+
+  Mortal114 mortal114(int value0) {
+    return Mortal114(value0);
+  }
+
+  Mortal115 mortal115(int value0) {
+    return Mortal115(value0);
+  }
+
+  Mortal116 mortal116(int value0) {
+    return Mortal116(value0);
+  }
+
+  Mortal117 mortal117(int value0) {
+    return Mortal117(value0);
+  }
+
+  Mortal118 mortal118(int value0) {
+    return Mortal118(value0);
+  }
+
+  Mortal119 mortal119(int value0) {
+    return Mortal119(value0);
+  }
+
+  Mortal120 mortal120(int value0) {
+    return Mortal120(value0);
+  }
+
+  Mortal121 mortal121(int value0) {
+    return Mortal121(value0);
+  }
+
+  Mortal122 mortal122(int value0) {
+    return Mortal122(value0);
+  }
+
+  Mortal123 mortal123(int value0) {
+    return Mortal123(value0);
+  }
+
+  Mortal124 mortal124(int value0) {
+    return Mortal124(value0);
+  }
+
+  Mortal125 mortal125(int value0) {
+    return Mortal125(value0);
+  }
+
+  Mortal126 mortal126(int value0) {
+    return Mortal126(value0);
+  }
+
+  Mortal127 mortal127(int value0) {
+    return Mortal127(value0);
+  }
+
+  Mortal128 mortal128(int value0) {
+    return Mortal128(value0);
+  }
+
+  Mortal129 mortal129(int value0) {
+    return Mortal129(value0);
+  }
+
+  Mortal130 mortal130(int value0) {
+    return Mortal130(value0);
+  }
+
+  Mortal131 mortal131(int value0) {
+    return Mortal131(value0);
+  }
+
+  Mortal132 mortal132(int value0) {
+    return Mortal132(value0);
+  }
+
+  Mortal133 mortal133(int value0) {
+    return Mortal133(value0);
+  }
+
+  Mortal134 mortal134(int value0) {
+    return Mortal134(value0);
+  }
+
+  Mortal135 mortal135(int value0) {
+    return Mortal135(value0);
+  }
+
+  Mortal136 mortal136(int value0) {
+    return Mortal136(value0);
+  }
+
+  Mortal137 mortal137(int value0) {
+    return Mortal137(value0);
+  }
+
+  Mortal138 mortal138(int value0) {
+    return Mortal138(value0);
+  }
+
+  Mortal139 mortal139(int value0) {
+    return Mortal139(value0);
+  }
+
+  Mortal140 mortal140(int value0) {
+    return Mortal140(value0);
+  }
+
+  Mortal141 mortal141(int value0) {
+    return Mortal141(value0);
+  }
+
+  Mortal142 mortal142(int value0) {
+    return Mortal142(value0);
+  }
+
+  Mortal143 mortal143(int value0) {
+    return Mortal143(value0);
+  }
+
+  Mortal144 mortal144(int value0) {
+    return Mortal144(value0);
+  }
+
+  Mortal145 mortal145(int value0) {
+    return Mortal145(value0);
+  }
+
+  Mortal146 mortal146(int value0) {
+    return Mortal146(value0);
+  }
+
+  Mortal147 mortal147(int value0) {
+    return Mortal147(value0);
+  }
+
+  Mortal148 mortal148(int value0) {
+    return Mortal148(value0);
+  }
+
+  Mortal149 mortal149(int value0) {
+    return Mortal149(value0);
+  }
+
+  Mortal150 mortal150(int value0) {
+    return Mortal150(value0);
+  }
+
+  Mortal151 mortal151(int value0) {
+    return Mortal151(value0);
+  }
+
+  Mortal152 mortal152(int value0) {
+    return Mortal152(value0);
+  }
+
+  Mortal153 mortal153(int value0) {
+    return Mortal153(value0);
+  }
+
+  Mortal154 mortal154(int value0) {
+    return Mortal154(value0);
+  }
+
+  Mortal155 mortal155(int value0) {
+    return Mortal155(value0);
+  }
+
+  Mortal156 mortal156(int value0) {
+    return Mortal156(value0);
+  }
+
+  Mortal157 mortal157(int value0) {
+    return Mortal157(value0);
+  }
+
+  Mortal158 mortal158(int value0) {
+    return Mortal158(value0);
+  }
+
+  Mortal159 mortal159(int value0) {
+    return Mortal159(value0);
+  }
+
+  Mortal160 mortal160(int value0) {
+    return Mortal160(value0);
+  }
+
+  Mortal161 mortal161(int value0) {
+    return Mortal161(value0);
+  }
+
+  Mortal162 mortal162(int value0) {
+    return Mortal162(value0);
+  }
+
+  Mortal163 mortal163(int value0) {
+    return Mortal163(value0);
+  }
+
+  Mortal164 mortal164(int value0) {
+    return Mortal164(value0);
+  }
+
+  Mortal165 mortal165(int value0) {
+    return Mortal165(value0);
+  }
+
+  Mortal166 mortal166(int value0) {
+    return Mortal166(value0);
+  }
+
+  Mortal167 mortal167(int value0) {
+    return Mortal167(value0);
+  }
+
+  Mortal168 mortal168(int value0) {
+    return Mortal168(value0);
+  }
+
+  Mortal169 mortal169(int value0) {
+    return Mortal169(value0);
+  }
+
+  Mortal170 mortal170(int value0) {
+    return Mortal170(value0);
+  }
+
+  Mortal171 mortal171(int value0) {
+    return Mortal171(value0);
+  }
+
+  Mortal172 mortal172(int value0) {
+    return Mortal172(value0);
+  }
+
+  Mortal173 mortal173(int value0) {
+    return Mortal173(value0);
+  }
+
+  Mortal174 mortal174(int value0) {
+    return Mortal174(value0);
+  }
+
+  Mortal175 mortal175(int value0) {
+    return Mortal175(value0);
+  }
+
+  Mortal176 mortal176(int value0) {
+    return Mortal176(value0);
+  }
+
+  Mortal177 mortal177(int value0) {
+    return Mortal177(value0);
+  }
+
+  Mortal178 mortal178(int value0) {
+    return Mortal178(value0);
+  }
+
+  Mortal179 mortal179(int value0) {
+    return Mortal179(value0);
+  }
+
+  Mortal180 mortal180(int value0) {
+    return Mortal180(value0);
+  }
+
+  Mortal181 mortal181(int value0) {
+    return Mortal181(value0);
+  }
+
+  Mortal182 mortal182(int value0) {
+    return Mortal182(value0);
+  }
+
+  Mortal183 mortal183(int value0) {
+    return Mortal183(value0);
+  }
+
+  Mortal184 mortal184(int value0) {
+    return Mortal184(value0);
+  }
+
+  Mortal185 mortal185(int value0) {
+    return Mortal185(value0);
+  }
+
+  Mortal186 mortal186(int value0) {
+    return Mortal186(value0);
+  }
+
+  Mortal187 mortal187(int value0) {
+    return Mortal187(value0);
+  }
+
+  Mortal188 mortal188(int value0) {
+    return Mortal188(value0);
+  }
+
+  Mortal189 mortal189(int value0) {
+    return Mortal189(value0);
+  }
+
+  Mortal190 mortal190(int value0) {
+    return Mortal190(value0);
+  }
+
+  Mortal191 mortal191(int value0) {
+    return Mortal191(value0);
+  }
+
+  Mortal192 mortal192(int value0) {
+    return Mortal192(value0);
+  }
+
+  Mortal193 mortal193(int value0) {
+    return Mortal193(value0);
+  }
+
+  Mortal194 mortal194(int value0) {
+    return Mortal194(value0);
+  }
+
+  Mortal195 mortal195(int value0) {
+    return Mortal195(value0);
+  }
+
+  Mortal196 mortal196(int value0) {
+    return Mortal196(value0);
+  }
+
+  Mortal197 mortal197(int value0) {
+    return Mortal197(value0);
+  }
+
+  Mortal198 mortal198(int value0) {
+    return Mortal198(value0);
+  }
+
+  Mortal199 mortal199(int value0) {
+    return Mortal199(value0);
+  }
+
+  Mortal200 mortal200(int value0) {
+    return Mortal200(value0);
+  }
+
+  Mortal201 mortal201(int value0) {
+    return Mortal201(value0);
+  }
+
+  Mortal202 mortal202(int value0) {
+    return Mortal202(value0);
+  }
+
+  Mortal203 mortal203(int value0) {
+    return Mortal203(value0);
+  }
+
+  Mortal204 mortal204(int value0) {
+    return Mortal204(value0);
+  }
+
+  Mortal205 mortal205(int value0) {
+    return Mortal205(value0);
+  }
+
+  Mortal206 mortal206(int value0) {
+    return Mortal206(value0);
+  }
+
+  Mortal207 mortal207(int value0) {
+    return Mortal207(value0);
+  }
+
+  Mortal208 mortal208(int value0) {
+    return Mortal208(value0);
+  }
+
+  Mortal209 mortal209(int value0) {
+    return Mortal209(value0);
+  }
+
+  Mortal210 mortal210(int value0) {
+    return Mortal210(value0);
+  }
+
+  Mortal211 mortal211(int value0) {
+    return Mortal211(value0);
+  }
+
+  Mortal212 mortal212(int value0) {
+    return Mortal212(value0);
+  }
+
+  Mortal213 mortal213(int value0) {
+    return Mortal213(value0);
+  }
+
+  Mortal214 mortal214(int value0) {
+    return Mortal214(value0);
+  }
+
+  Mortal215 mortal215(int value0) {
+    return Mortal215(value0);
+  }
+
+  Mortal216 mortal216(int value0) {
+    return Mortal216(value0);
+  }
+
+  Mortal217 mortal217(int value0) {
+    return Mortal217(value0);
+  }
+
+  Mortal218 mortal218(int value0) {
+    return Mortal218(value0);
+  }
+
+  Mortal219 mortal219(int value0) {
+    return Mortal219(value0);
+  }
+
+  Mortal220 mortal220(int value0) {
+    return Mortal220(value0);
+  }
+
+  Mortal221 mortal221(int value0) {
+    return Mortal221(value0);
+  }
+
+  Mortal222 mortal222(int value0) {
+    return Mortal222(value0);
+  }
+
+  Mortal223 mortal223(int value0) {
+    return Mortal223(value0);
+  }
+
+  Mortal224 mortal224(int value0) {
+    return Mortal224(value0);
+  }
+
+  Mortal225 mortal225(int value0) {
+    return Mortal225(value0);
+  }
+
+  Mortal226 mortal226(int value0) {
+    return Mortal226(value0);
+  }
+
+  Mortal227 mortal227(int value0) {
+    return Mortal227(value0);
+  }
+
+  Mortal228 mortal228(int value0) {
+    return Mortal228(value0);
+  }
+
+  Mortal229 mortal229(int value0) {
+    return Mortal229(value0);
+  }
+
+  Mortal230 mortal230(int value0) {
+    return Mortal230(value0);
+  }
+
+  Mortal231 mortal231(int value0) {
+    return Mortal231(value0);
+  }
+
+  Mortal232 mortal232(int value0) {
+    return Mortal232(value0);
+  }
+
+  Mortal233 mortal233(int value0) {
+    return Mortal233(value0);
+  }
+
+  Mortal234 mortal234(int value0) {
+    return Mortal234(value0);
+  }
+
+  Mortal235 mortal235(int value0) {
+    return Mortal235(value0);
+  }
+
+  Mortal236 mortal236(int value0) {
+    return Mortal236(value0);
+  }
+
+  Mortal237 mortal237(int value0) {
+    return Mortal237(value0);
+  }
+
+  Mortal238 mortal238(int value0) {
+    return Mortal238(value0);
+  }
+
+  Mortal239 mortal239(int value0) {
+    return Mortal239(value0);
+  }
+
+  Mortal240 mortal240(int value0) {
+    return Mortal240(value0);
+  }
+
+  Mortal241 mortal241(int value0) {
+    return Mortal241(value0);
+  }
+
+  Mortal242 mortal242(int value0) {
+    return Mortal242(value0);
+  }
+
+  Mortal243 mortal243(int value0) {
+    return Mortal243(value0);
+  }
+
+  Mortal244 mortal244(int value0) {
+    return Mortal244(value0);
+  }
+
+  Mortal245 mortal245(int value0) {
+    return Mortal245(value0);
+  }
+
+  Mortal246 mortal246(int value0) {
+    return Mortal246(value0);
+  }
+
+  Mortal247 mortal247(int value0) {
+    return Mortal247(value0);
+  }
+
+  Mortal248 mortal248(int value0) {
+    return Mortal248(value0);
+  }
+
+  Mortal249 mortal249(int value0) {
+    return Mortal249(value0);
+  }
+
+  Mortal250 mortal250(int value0) {
+    return Mortal250(value0);
+  }
+
+  Mortal251 mortal251(int value0) {
+    return Mortal251(value0);
+  }
+
+  Mortal252 mortal252(int value0) {
+    return Mortal252(value0);
+  }
+
+  Mortal253 mortal253(int value0) {
+    return Mortal253(value0);
+  }
+
+  Mortal254 mortal254(int value0) {
+    return Mortal254(value0);
+  }
+
+  Mortal255 mortal255(int value0) {
+    return Mortal255(value0);
+  }
+}
+
+class $EraCodec with _i1.Codec<Era> {
+  const $EraCodec();
+
+  @override
+  Era decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return const Immortal();
+      case 1:
+        return Mortal1._decode(input);
+      case 2:
+        return Mortal2._decode(input);
+      case 3:
+        return Mortal3._decode(input);
+      case 4:
+        return Mortal4._decode(input);
+      case 5:
+        return Mortal5._decode(input);
+      case 6:
+        return Mortal6._decode(input);
+      case 7:
+        return Mortal7._decode(input);
+      case 8:
+        return Mortal8._decode(input);
+      case 9:
+        return Mortal9._decode(input);
+      case 10:
+        return Mortal10._decode(input);
+      case 11:
+        return Mortal11._decode(input);
+      case 12:
+        return Mortal12._decode(input);
+      case 13:
+        return Mortal13._decode(input);
+      case 14:
+        return Mortal14._decode(input);
+      case 15:
+        return Mortal15._decode(input);
+      case 16:
+        return Mortal16._decode(input);
+      case 17:
+        return Mortal17._decode(input);
+      case 18:
+        return Mortal18._decode(input);
+      case 19:
+        return Mortal19._decode(input);
+      case 20:
+        return Mortal20._decode(input);
+      case 21:
+        return Mortal21._decode(input);
+      case 22:
+        return Mortal22._decode(input);
+      case 23:
+        return Mortal23._decode(input);
+      case 24:
+        return Mortal24._decode(input);
+      case 25:
+        return Mortal25._decode(input);
+      case 26:
+        return Mortal26._decode(input);
+      case 27:
+        return Mortal27._decode(input);
+      case 28:
+        return Mortal28._decode(input);
+      case 29:
+        return Mortal29._decode(input);
+      case 30:
+        return Mortal30._decode(input);
+      case 31:
+        return Mortal31._decode(input);
+      case 32:
+        return Mortal32._decode(input);
+      case 33:
+        return Mortal33._decode(input);
+      case 34:
+        return Mortal34._decode(input);
+      case 35:
+        return Mortal35._decode(input);
+      case 36:
+        return Mortal36._decode(input);
+      case 37:
+        return Mortal37._decode(input);
+      case 38:
+        return Mortal38._decode(input);
+      case 39:
+        return Mortal39._decode(input);
+      case 40:
+        return Mortal40._decode(input);
+      case 41:
+        return Mortal41._decode(input);
+      case 42:
+        return Mortal42._decode(input);
+      case 43:
+        return Mortal43._decode(input);
+      case 44:
+        return Mortal44._decode(input);
+      case 45:
+        return Mortal45._decode(input);
+      case 46:
+        return Mortal46._decode(input);
+      case 47:
+        return Mortal47._decode(input);
+      case 48:
+        return Mortal48._decode(input);
+      case 49:
+        return Mortal49._decode(input);
+      case 50:
+        return Mortal50._decode(input);
+      case 51:
+        return Mortal51._decode(input);
+      case 52:
+        return Mortal52._decode(input);
+      case 53:
+        return Mortal53._decode(input);
+      case 54:
+        return Mortal54._decode(input);
+      case 55:
+        return Mortal55._decode(input);
+      case 56:
+        return Mortal56._decode(input);
+      case 57:
+        return Mortal57._decode(input);
+      case 58:
+        return Mortal58._decode(input);
+      case 59:
+        return Mortal59._decode(input);
+      case 60:
+        return Mortal60._decode(input);
+      case 61:
+        return Mortal61._decode(input);
+      case 62:
+        return Mortal62._decode(input);
+      case 63:
+        return Mortal63._decode(input);
+      case 64:
+        return Mortal64._decode(input);
+      case 65:
+        return Mortal65._decode(input);
+      case 66:
+        return Mortal66._decode(input);
+      case 67:
+        return Mortal67._decode(input);
+      case 68:
+        return Mortal68._decode(input);
+      case 69:
+        return Mortal69._decode(input);
+      case 70:
+        return Mortal70._decode(input);
+      case 71:
+        return Mortal71._decode(input);
+      case 72:
+        return Mortal72._decode(input);
+      case 73:
+        return Mortal73._decode(input);
+      case 74:
+        return Mortal74._decode(input);
+      case 75:
+        return Mortal75._decode(input);
+      case 76:
+        return Mortal76._decode(input);
+      case 77:
+        return Mortal77._decode(input);
+      case 78:
+        return Mortal78._decode(input);
+      case 79:
+        return Mortal79._decode(input);
+      case 80:
+        return Mortal80._decode(input);
+      case 81:
+        return Mortal81._decode(input);
+      case 82:
+        return Mortal82._decode(input);
+      case 83:
+        return Mortal83._decode(input);
+      case 84:
+        return Mortal84._decode(input);
+      case 85:
+        return Mortal85._decode(input);
+      case 86:
+        return Mortal86._decode(input);
+      case 87:
+        return Mortal87._decode(input);
+      case 88:
+        return Mortal88._decode(input);
+      case 89:
+        return Mortal89._decode(input);
+      case 90:
+        return Mortal90._decode(input);
+      case 91:
+        return Mortal91._decode(input);
+      case 92:
+        return Mortal92._decode(input);
+      case 93:
+        return Mortal93._decode(input);
+      case 94:
+        return Mortal94._decode(input);
+      case 95:
+        return Mortal95._decode(input);
+      case 96:
+        return Mortal96._decode(input);
+      case 97:
+        return Mortal97._decode(input);
+      case 98:
+        return Mortal98._decode(input);
+      case 99:
+        return Mortal99._decode(input);
+      case 100:
+        return Mortal100._decode(input);
+      case 101:
+        return Mortal101._decode(input);
+      case 102:
+        return Mortal102._decode(input);
+      case 103:
+        return Mortal103._decode(input);
+      case 104:
+        return Mortal104._decode(input);
+      case 105:
+        return Mortal105._decode(input);
+      case 106:
+        return Mortal106._decode(input);
+      case 107:
+        return Mortal107._decode(input);
+      case 108:
+        return Mortal108._decode(input);
+      case 109:
+        return Mortal109._decode(input);
+      case 110:
+        return Mortal110._decode(input);
+      case 111:
+        return Mortal111._decode(input);
+      case 112:
+        return Mortal112._decode(input);
+      case 113:
+        return Mortal113._decode(input);
+      case 114:
+        return Mortal114._decode(input);
+      case 115:
+        return Mortal115._decode(input);
+      case 116:
+        return Mortal116._decode(input);
+      case 117:
+        return Mortal117._decode(input);
+      case 118:
+        return Mortal118._decode(input);
+      case 119:
+        return Mortal119._decode(input);
+      case 120:
+        return Mortal120._decode(input);
+      case 121:
+        return Mortal121._decode(input);
+      case 122:
+        return Mortal122._decode(input);
+      case 123:
+        return Mortal123._decode(input);
+      case 124:
+        return Mortal124._decode(input);
+      case 125:
+        return Mortal125._decode(input);
+      case 126:
+        return Mortal126._decode(input);
+      case 127:
+        return Mortal127._decode(input);
+      case 128:
+        return Mortal128._decode(input);
+      case 129:
+        return Mortal129._decode(input);
+      case 130:
+        return Mortal130._decode(input);
+      case 131:
+        return Mortal131._decode(input);
+      case 132:
+        return Mortal132._decode(input);
+      case 133:
+        return Mortal133._decode(input);
+      case 134:
+        return Mortal134._decode(input);
+      case 135:
+        return Mortal135._decode(input);
+      case 136:
+        return Mortal136._decode(input);
+      case 137:
+        return Mortal137._decode(input);
+      case 138:
+        return Mortal138._decode(input);
+      case 139:
+        return Mortal139._decode(input);
+      case 140:
+        return Mortal140._decode(input);
+      case 141:
+        return Mortal141._decode(input);
+      case 142:
+        return Mortal142._decode(input);
+      case 143:
+        return Mortal143._decode(input);
+      case 144:
+        return Mortal144._decode(input);
+      case 145:
+        return Mortal145._decode(input);
+      case 146:
+        return Mortal146._decode(input);
+      case 147:
+        return Mortal147._decode(input);
+      case 148:
+        return Mortal148._decode(input);
+      case 149:
+        return Mortal149._decode(input);
+      case 150:
+        return Mortal150._decode(input);
+      case 151:
+        return Mortal151._decode(input);
+      case 152:
+        return Mortal152._decode(input);
+      case 153:
+        return Mortal153._decode(input);
+      case 154:
+        return Mortal154._decode(input);
+      case 155:
+        return Mortal155._decode(input);
+      case 156:
+        return Mortal156._decode(input);
+      case 157:
+        return Mortal157._decode(input);
+      case 158:
+        return Mortal158._decode(input);
+      case 159:
+        return Mortal159._decode(input);
+      case 160:
+        return Mortal160._decode(input);
+      case 161:
+        return Mortal161._decode(input);
+      case 162:
+        return Mortal162._decode(input);
+      case 163:
+        return Mortal163._decode(input);
+      case 164:
+        return Mortal164._decode(input);
+      case 165:
+        return Mortal165._decode(input);
+      case 166:
+        return Mortal166._decode(input);
+      case 167:
+        return Mortal167._decode(input);
+      case 168:
+        return Mortal168._decode(input);
+      case 169:
+        return Mortal169._decode(input);
+      case 170:
+        return Mortal170._decode(input);
+      case 171:
+        return Mortal171._decode(input);
+      case 172:
+        return Mortal172._decode(input);
+      case 173:
+        return Mortal173._decode(input);
+      case 174:
+        return Mortal174._decode(input);
+      case 175:
+        return Mortal175._decode(input);
+      case 176:
+        return Mortal176._decode(input);
+      case 177:
+        return Mortal177._decode(input);
+      case 178:
+        return Mortal178._decode(input);
+      case 179:
+        return Mortal179._decode(input);
+      case 180:
+        return Mortal180._decode(input);
+      case 181:
+        return Mortal181._decode(input);
+      case 182:
+        return Mortal182._decode(input);
+      case 183:
+        return Mortal183._decode(input);
+      case 184:
+        return Mortal184._decode(input);
+      case 185:
+        return Mortal185._decode(input);
+      case 186:
+        return Mortal186._decode(input);
+      case 187:
+        return Mortal187._decode(input);
+      case 188:
+        return Mortal188._decode(input);
+      case 189:
+        return Mortal189._decode(input);
+      case 190:
+        return Mortal190._decode(input);
+      case 191:
+        return Mortal191._decode(input);
+      case 192:
+        return Mortal192._decode(input);
+      case 193:
+        return Mortal193._decode(input);
+      case 194:
+        return Mortal194._decode(input);
+      case 195:
+        return Mortal195._decode(input);
+      case 196:
+        return Mortal196._decode(input);
+      case 197:
+        return Mortal197._decode(input);
+      case 198:
+        return Mortal198._decode(input);
+      case 199:
+        return Mortal199._decode(input);
+      case 200:
+        return Mortal200._decode(input);
+      case 201:
+        return Mortal201._decode(input);
+      case 202:
+        return Mortal202._decode(input);
+      case 203:
+        return Mortal203._decode(input);
+      case 204:
+        return Mortal204._decode(input);
+      case 205:
+        return Mortal205._decode(input);
+      case 206:
+        return Mortal206._decode(input);
+      case 207:
+        return Mortal207._decode(input);
+      case 208:
+        return Mortal208._decode(input);
+      case 209:
+        return Mortal209._decode(input);
+      case 210:
+        return Mortal210._decode(input);
+      case 211:
+        return Mortal211._decode(input);
+      case 212:
+        return Mortal212._decode(input);
+      case 213:
+        return Mortal213._decode(input);
+      case 214:
+        return Mortal214._decode(input);
+      case 215:
+        return Mortal215._decode(input);
+      case 216:
+        return Mortal216._decode(input);
+      case 217:
+        return Mortal217._decode(input);
+      case 218:
+        return Mortal218._decode(input);
+      case 219:
+        return Mortal219._decode(input);
+      case 220:
+        return Mortal220._decode(input);
+      case 221:
+        return Mortal221._decode(input);
+      case 222:
+        return Mortal222._decode(input);
+      case 223:
+        return Mortal223._decode(input);
+      case 224:
+        return Mortal224._decode(input);
+      case 225:
+        return Mortal225._decode(input);
+      case 226:
+        return Mortal226._decode(input);
+      case 227:
+        return Mortal227._decode(input);
+      case 228:
+        return Mortal228._decode(input);
+      case 229:
+        return Mortal229._decode(input);
+      case 230:
+        return Mortal230._decode(input);
+      case 231:
+        return Mortal231._decode(input);
+      case 232:
+        return Mortal232._decode(input);
+      case 233:
+        return Mortal233._decode(input);
+      case 234:
+        return Mortal234._decode(input);
+      case 235:
+        return Mortal235._decode(input);
+      case 236:
+        return Mortal236._decode(input);
+      case 237:
+        return Mortal237._decode(input);
+      case 238:
+        return Mortal238._decode(input);
+      case 239:
+        return Mortal239._decode(input);
+      case 240:
+        return Mortal240._decode(input);
+      case 241:
+        return Mortal241._decode(input);
+      case 242:
+        return Mortal242._decode(input);
+      case 243:
+        return Mortal243._decode(input);
+      case 244:
+        return Mortal244._decode(input);
+      case 245:
+        return Mortal245._decode(input);
+      case 246:
+        return Mortal246._decode(input);
+      case 247:
+        return Mortal247._decode(input);
+      case 248:
+        return Mortal248._decode(input);
+      case 249:
+        return Mortal249._decode(input);
+      case 250:
+        return Mortal250._decode(input);
+      case 251:
+        return Mortal251._decode(input);
+      case 252:
+        return Mortal252._decode(input);
+      case 253:
+        return Mortal253._decode(input);
+      case 254:
+        return Mortal254._decode(input);
+      case 255:
+        return Mortal255._decode(input);
+      default:
+        throw Exception('Era: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    Era value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Immortal:
+        (value as Immortal).encodeTo(output);
+        break;
+      case Mortal1:
+        (value as Mortal1).encodeTo(output);
+        break;
+      case Mortal2:
+        (value as Mortal2).encodeTo(output);
+        break;
+      case Mortal3:
+        (value as Mortal3).encodeTo(output);
+        break;
+      case Mortal4:
+        (value as Mortal4).encodeTo(output);
+        break;
+      case Mortal5:
+        (value as Mortal5).encodeTo(output);
+        break;
+      case Mortal6:
+        (value as Mortal6).encodeTo(output);
+        break;
+      case Mortal7:
+        (value as Mortal7).encodeTo(output);
+        break;
+      case Mortal8:
+        (value as Mortal8).encodeTo(output);
+        break;
+      case Mortal9:
+        (value as Mortal9).encodeTo(output);
+        break;
+      case Mortal10:
+        (value as Mortal10).encodeTo(output);
+        break;
+      case Mortal11:
+        (value as Mortal11).encodeTo(output);
+        break;
+      case Mortal12:
+        (value as Mortal12).encodeTo(output);
+        break;
+      case Mortal13:
+        (value as Mortal13).encodeTo(output);
+        break;
+      case Mortal14:
+        (value as Mortal14).encodeTo(output);
+        break;
+      case Mortal15:
+        (value as Mortal15).encodeTo(output);
+        break;
+      case Mortal16:
+        (value as Mortal16).encodeTo(output);
+        break;
+      case Mortal17:
+        (value as Mortal17).encodeTo(output);
+        break;
+      case Mortal18:
+        (value as Mortal18).encodeTo(output);
+        break;
+      case Mortal19:
+        (value as Mortal19).encodeTo(output);
+        break;
+      case Mortal20:
+        (value as Mortal20).encodeTo(output);
+        break;
+      case Mortal21:
+        (value as Mortal21).encodeTo(output);
+        break;
+      case Mortal22:
+        (value as Mortal22).encodeTo(output);
+        break;
+      case Mortal23:
+        (value as Mortal23).encodeTo(output);
+        break;
+      case Mortal24:
+        (value as Mortal24).encodeTo(output);
+        break;
+      case Mortal25:
+        (value as Mortal25).encodeTo(output);
+        break;
+      case Mortal26:
+        (value as Mortal26).encodeTo(output);
+        break;
+      case Mortal27:
+        (value as Mortal27).encodeTo(output);
+        break;
+      case Mortal28:
+        (value as Mortal28).encodeTo(output);
+        break;
+      case Mortal29:
+        (value as Mortal29).encodeTo(output);
+        break;
+      case Mortal30:
+        (value as Mortal30).encodeTo(output);
+        break;
+      case Mortal31:
+        (value as Mortal31).encodeTo(output);
+        break;
+      case Mortal32:
+        (value as Mortal32).encodeTo(output);
+        break;
+      case Mortal33:
+        (value as Mortal33).encodeTo(output);
+        break;
+      case Mortal34:
+        (value as Mortal34).encodeTo(output);
+        break;
+      case Mortal35:
+        (value as Mortal35).encodeTo(output);
+        break;
+      case Mortal36:
+        (value as Mortal36).encodeTo(output);
+        break;
+      case Mortal37:
+        (value as Mortal37).encodeTo(output);
+        break;
+      case Mortal38:
+        (value as Mortal38).encodeTo(output);
+        break;
+      case Mortal39:
+        (value as Mortal39).encodeTo(output);
+        break;
+      case Mortal40:
+        (value as Mortal40).encodeTo(output);
+        break;
+      case Mortal41:
+        (value as Mortal41).encodeTo(output);
+        break;
+      case Mortal42:
+        (value as Mortal42).encodeTo(output);
+        break;
+      case Mortal43:
+        (value as Mortal43).encodeTo(output);
+        break;
+      case Mortal44:
+        (value as Mortal44).encodeTo(output);
+        break;
+      case Mortal45:
+        (value as Mortal45).encodeTo(output);
+        break;
+      case Mortal46:
+        (value as Mortal46).encodeTo(output);
+        break;
+      case Mortal47:
+        (value as Mortal47).encodeTo(output);
+        break;
+      case Mortal48:
+        (value as Mortal48).encodeTo(output);
+        break;
+      case Mortal49:
+        (value as Mortal49).encodeTo(output);
+        break;
+      case Mortal50:
+        (value as Mortal50).encodeTo(output);
+        break;
+      case Mortal51:
+        (value as Mortal51).encodeTo(output);
+        break;
+      case Mortal52:
+        (value as Mortal52).encodeTo(output);
+        break;
+      case Mortal53:
+        (value as Mortal53).encodeTo(output);
+        break;
+      case Mortal54:
+        (value as Mortal54).encodeTo(output);
+        break;
+      case Mortal55:
+        (value as Mortal55).encodeTo(output);
+        break;
+      case Mortal56:
+        (value as Mortal56).encodeTo(output);
+        break;
+      case Mortal57:
+        (value as Mortal57).encodeTo(output);
+        break;
+      case Mortal58:
+        (value as Mortal58).encodeTo(output);
+        break;
+      case Mortal59:
+        (value as Mortal59).encodeTo(output);
+        break;
+      case Mortal60:
+        (value as Mortal60).encodeTo(output);
+        break;
+      case Mortal61:
+        (value as Mortal61).encodeTo(output);
+        break;
+      case Mortal62:
+        (value as Mortal62).encodeTo(output);
+        break;
+      case Mortal63:
+        (value as Mortal63).encodeTo(output);
+        break;
+      case Mortal64:
+        (value as Mortal64).encodeTo(output);
+        break;
+      case Mortal65:
+        (value as Mortal65).encodeTo(output);
+        break;
+      case Mortal66:
+        (value as Mortal66).encodeTo(output);
+        break;
+      case Mortal67:
+        (value as Mortal67).encodeTo(output);
+        break;
+      case Mortal68:
+        (value as Mortal68).encodeTo(output);
+        break;
+      case Mortal69:
+        (value as Mortal69).encodeTo(output);
+        break;
+      case Mortal70:
+        (value as Mortal70).encodeTo(output);
+        break;
+      case Mortal71:
+        (value as Mortal71).encodeTo(output);
+        break;
+      case Mortal72:
+        (value as Mortal72).encodeTo(output);
+        break;
+      case Mortal73:
+        (value as Mortal73).encodeTo(output);
+        break;
+      case Mortal74:
+        (value as Mortal74).encodeTo(output);
+        break;
+      case Mortal75:
+        (value as Mortal75).encodeTo(output);
+        break;
+      case Mortal76:
+        (value as Mortal76).encodeTo(output);
+        break;
+      case Mortal77:
+        (value as Mortal77).encodeTo(output);
+        break;
+      case Mortal78:
+        (value as Mortal78).encodeTo(output);
+        break;
+      case Mortal79:
+        (value as Mortal79).encodeTo(output);
+        break;
+      case Mortal80:
+        (value as Mortal80).encodeTo(output);
+        break;
+      case Mortal81:
+        (value as Mortal81).encodeTo(output);
+        break;
+      case Mortal82:
+        (value as Mortal82).encodeTo(output);
+        break;
+      case Mortal83:
+        (value as Mortal83).encodeTo(output);
+        break;
+      case Mortal84:
+        (value as Mortal84).encodeTo(output);
+        break;
+      case Mortal85:
+        (value as Mortal85).encodeTo(output);
+        break;
+      case Mortal86:
+        (value as Mortal86).encodeTo(output);
+        break;
+      case Mortal87:
+        (value as Mortal87).encodeTo(output);
+        break;
+      case Mortal88:
+        (value as Mortal88).encodeTo(output);
+        break;
+      case Mortal89:
+        (value as Mortal89).encodeTo(output);
+        break;
+      case Mortal90:
+        (value as Mortal90).encodeTo(output);
+        break;
+      case Mortal91:
+        (value as Mortal91).encodeTo(output);
+        break;
+      case Mortal92:
+        (value as Mortal92).encodeTo(output);
+        break;
+      case Mortal93:
+        (value as Mortal93).encodeTo(output);
+        break;
+      case Mortal94:
+        (value as Mortal94).encodeTo(output);
+        break;
+      case Mortal95:
+        (value as Mortal95).encodeTo(output);
+        break;
+      case Mortal96:
+        (value as Mortal96).encodeTo(output);
+        break;
+      case Mortal97:
+        (value as Mortal97).encodeTo(output);
+        break;
+      case Mortal98:
+        (value as Mortal98).encodeTo(output);
+        break;
+      case Mortal99:
+        (value as Mortal99).encodeTo(output);
+        break;
+      case Mortal100:
+        (value as Mortal100).encodeTo(output);
+        break;
+      case Mortal101:
+        (value as Mortal101).encodeTo(output);
+        break;
+      case Mortal102:
+        (value as Mortal102).encodeTo(output);
+        break;
+      case Mortal103:
+        (value as Mortal103).encodeTo(output);
+        break;
+      case Mortal104:
+        (value as Mortal104).encodeTo(output);
+        break;
+      case Mortal105:
+        (value as Mortal105).encodeTo(output);
+        break;
+      case Mortal106:
+        (value as Mortal106).encodeTo(output);
+        break;
+      case Mortal107:
+        (value as Mortal107).encodeTo(output);
+        break;
+      case Mortal108:
+        (value as Mortal108).encodeTo(output);
+        break;
+      case Mortal109:
+        (value as Mortal109).encodeTo(output);
+        break;
+      case Mortal110:
+        (value as Mortal110).encodeTo(output);
+        break;
+      case Mortal111:
+        (value as Mortal111).encodeTo(output);
+        break;
+      case Mortal112:
+        (value as Mortal112).encodeTo(output);
+        break;
+      case Mortal113:
+        (value as Mortal113).encodeTo(output);
+        break;
+      case Mortal114:
+        (value as Mortal114).encodeTo(output);
+        break;
+      case Mortal115:
+        (value as Mortal115).encodeTo(output);
+        break;
+      case Mortal116:
+        (value as Mortal116).encodeTo(output);
+        break;
+      case Mortal117:
+        (value as Mortal117).encodeTo(output);
+        break;
+      case Mortal118:
+        (value as Mortal118).encodeTo(output);
+        break;
+      case Mortal119:
+        (value as Mortal119).encodeTo(output);
+        break;
+      case Mortal120:
+        (value as Mortal120).encodeTo(output);
+        break;
+      case Mortal121:
+        (value as Mortal121).encodeTo(output);
+        break;
+      case Mortal122:
+        (value as Mortal122).encodeTo(output);
+        break;
+      case Mortal123:
+        (value as Mortal123).encodeTo(output);
+        break;
+      case Mortal124:
+        (value as Mortal124).encodeTo(output);
+        break;
+      case Mortal125:
+        (value as Mortal125).encodeTo(output);
+        break;
+      case Mortal126:
+        (value as Mortal126).encodeTo(output);
+        break;
+      case Mortal127:
+        (value as Mortal127).encodeTo(output);
+        break;
+      case Mortal128:
+        (value as Mortal128).encodeTo(output);
+        break;
+      case Mortal129:
+        (value as Mortal129).encodeTo(output);
+        break;
+      case Mortal130:
+        (value as Mortal130).encodeTo(output);
+        break;
+      case Mortal131:
+        (value as Mortal131).encodeTo(output);
+        break;
+      case Mortal132:
+        (value as Mortal132).encodeTo(output);
+        break;
+      case Mortal133:
+        (value as Mortal133).encodeTo(output);
+        break;
+      case Mortal134:
+        (value as Mortal134).encodeTo(output);
+        break;
+      case Mortal135:
+        (value as Mortal135).encodeTo(output);
+        break;
+      case Mortal136:
+        (value as Mortal136).encodeTo(output);
+        break;
+      case Mortal137:
+        (value as Mortal137).encodeTo(output);
+        break;
+      case Mortal138:
+        (value as Mortal138).encodeTo(output);
+        break;
+      case Mortal139:
+        (value as Mortal139).encodeTo(output);
+        break;
+      case Mortal140:
+        (value as Mortal140).encodeTo(output);
+        break;
+      case Mortal141:
+        (value as Mortal141).encodeTo(output);
+        break;
+      case Mortal142:
+        (value as Mortal142).encodeTo(output);
+        break;
+      case Mortal143:
+        (value as Mortal143).encodeTo(output);
+        break;
+      case Mortal144:
+        (value as Mortal144).encodeTo(output);
+        break;
+      case Mortal145:
+        (value as Mortal145).encodeTo(output);
+        break;
+      case Mortal146:
+        (value as Mortal146).encodeTo(output);
+        break;
+      case Mortal147:
+        (value as Mortal147).encodeTo(output);
+        break;
+      case Mortal148:
+        (value as Mortal148).encodeTo(output);
+        break;
+      case Mortal149:
+        (value as Mortal149).encodeTo(output);
+        break;
+      case Mortal150:
+        (value as Mortal150).encodeTo(output);
+        break;
+      case Mortal151:
+        (value as Mortal151).encodeTo(output);
+        break;
+      case Mortal152:
+        (value as Mortal152).encodeTo(output);
+        break;
+      case Mortal153:
+        (value as Mortal153).encodeTo(output);
+        break;
+      case Mortal154:
+        (value as Mortal154).encodeTo(output);
+        break;
+      case Mortal155:
+        (value as Mortal155).encodeTo(output);
+        break;
+      case Mortal156:
+        (value as Mortal156).encodeTo(output);
+        break;
+      case Mortal157:
+        (value as Mortal157).encodeTo(output);
+        break;
+      case Mortal158:
+        (value as Mortal158).encodeTo(output);
+        break;
+      case Mortal159:
+        (value as Mortal159).encodeTo(output);
+        break;
+      case Mortal160:
+        (value as Mortal160).encodeTo(output);
+        break;
+      case Mortal161:
+        (value as Mortal161).encodeTo(output);
+        break;
+      case Mortal162:
+        (value as Mortal162).encodeTo(output);
+        break;
+      case Mortal163:
+        (value as Mortal163).encodeTo(output);
+        break;
+      case Mortal164:
+        (value as Mortal164).encodeTo(output);
+        break;
+      case Mortal165:
+        (value as Mortal165).encodeTo(output);
+        break;
+      case Mortal166:
+        (value as Mortal166).encodeTo(output);
+        break;
+      case Mortal167:
+        (value as Mortal167).encodeTo(output);
+        break;
+      case Mortal168:
+        (value as Mortal168).encodeTo(output);
+        break;
+      case Mortal169:
+        (value as Mortal169).encodeTo(output);
+        break;
+      case Mortal170:
+        (value as Mortal170).encodeTo(output);
+        break;
+      case Mortal171:
+        (value as Mortal171).encodeTo(output);
+        break;
+      case Mortal172:
+        (value as Mortal172).encodeTo(output);
+        break;
+      case Mortal173:
+        (value as Mortal173).encodeTo(output);
+        break;
+      case Mortal174:
+        (value as Mortal174).encodeTo(output);
+        break;
+      case Mortal175:
+        (value as Mortal175).encodeTo(output);
+        break;
+      case Mortal176:
+        (value as Mortal176).encodeTo(output);
+        break;
+      case Mortal177:
+        (value as Mortal177).encodeTo(output);
+        break;
+      case Mortal178:
+        (value as Mortal178).encodeTo(output);
+        break;
+      case Mortal179:
+        (value as Mortal179).encodeTo(output);
+        break;
+      case Mortal180:
+        (value as Mortal180).encodeTo(output);
+        break;
+      case Mortal181:
+        (value as Mortal181).encodeTo(output);
+        break;
+      case Mortal182:
+        (value as Mortal182).encodeTo(output);
+        break;
+      case Mortal183:
+        (value as Mortal183).encodeTo(output);
+        break;
+      case Mortal184:
+        (value as Mortal184).encodeTo(output);
+        break;
+      case Mortal185:
+        (value as Mortal185).encodeTo(output);
+        break;
+      case Mortal186:
+        (value as Mortal186).encodeTo(output);
+        break;
+      case Mortal187:
+        (value as Mortal187).encodeTo(output);
+        break;
+      case Mortal188:
+        (value as Mortal188).encodeTo(output);
+        break;
+      case Mortal189:
+        (value as Mortal189).encodeTo(output);
+        break;
+      case Mortal190:
+        (value as Mortal190).encodeTo(output);
+        break;
+      case Mortal191:
+        (value as Mortal191).encodeTo(output);
+        break;
+      case Mortal192:
+        (value as Mortal192).encodeTo(output);
+        break;
+      case Mortal193:
+        (value as Mortal193).encodeTo(output);
+        break;
+      case Mortal194:
+        (value as Mortal194).encodeTo(output);
+        break;
+      case Mortal195:
+        (value as Mortal195).encodeTo(output);
+        break;
+      case Mortal196:
+        (value as Mortal196).encodeTo(output);
+        break;
+      case Mortal197:
+        (value as Mortal197).encodeTo(output);
+        break;
+      case Mortal198:
+        (value as Mortal198).encodeTo(output);
+        break;
+      case Mortal199:
+        (value as Mortal199).encodeTo(output);
+        break;
+      case Mortal200:
+        (value as Mortal200).encodeTo(output);
+        break;
+      case Mortal201:
+        (value as Mortal201).encodeTo(output);
+        break;
+      case Mortal202:
+        (value as Mortal202).encodeTo(output);
+        break;
+      case Mortal203:
+        (value as Mortal203).encodeTo(output);
+        break;
+      case Mortal204:
+        (value as Mortal204).encodeTo(output);
+        break;
+      case Mortal205:
+        (value as Mortal205).encodeTo(output);
+        break;
+      case Mortal206:
+        (value as Mortal206).encodeTo(output);
+        break;
+      case Mortal207:
+        (value as Mortal207).encodeTo(output);
+        break;
+      case Mortal208:
+        (value as Mortal208).encodeTo(output);
+        break;
+      case Mortal209:
+        (value as Mortal209).encodeTo(output);
+        break;
+      case Mortal210:
+        (value as Mortal210).encodeTo(output);
+        break;
+      case Mortal211:
+        (value as Mortal211).encodeTo(output);
+        break;
+      case Mortal212:
+        (value as Mortal212).encodeTo(output);
+        break;
+      case Mortal213:
+        (value as Mortal213).encodeTo(output);
+        break;
+      case Mortal214:
+        (value as Mortal214).encodeTo(output);
+        break;
+      case Mortal215:
+        (value as Mortal215).encodeTo(output);
+        break;
+      case Mortal216:
+        (value as Mortal216).encodeTo(output);
+        break;
+      case Mortal217:
+        (value as Mortal217).encodeTo(output);
+        break;
+      case Mortal218:
+        (value as Mortal218).encodeTo(output);
+        break;
+      case Mortal219:
+        (value as Mortal219).encodeTo(output);
+        break;
+      case Mortal220:
+        (value as Mortal220).encodeTo(output);
+        break;
+      case Mortal221:
+        (value as Mortal221).encodeTo(output);
+        break;
+      case Mortal222:
+        (value as Mortal222).encodeTo(output);
+        break;
+      case Mortal223:
+        (value as Mortal223).encodeTo(output);
+        break;
+      case Mortal224:
+        (value as Mortal224).encodeTo(output);
+        break;
+      case Mortal225:
+        (value as Mortal225).encodeTo(output);
+        break;
+      case Mortal226:
+        (value as Mortal226).encodeTo(output);
+        break;
+      case Mortal227:
+        (value as Mortal227).encodeTo(output);
+        break;
+      case Mortal228:
+        (value as Mortal228).encodeTo(output);
+        break;
+      case Mortal229:
+        (value as Mortal229).encodeTo(output);
+        break;
+      case Mortal230:
+        (value as Mortal230).encodeTo(output);
+        break;
+      case Mortal231:
+        (value as Mortal231).encodeTo(output);
+        break;
+      case Mortal232:
+        (value as Mortal232).encodeTo(output);
+        break;
+      case Mortal233:
+        (value as Mortal233).encodeTo(output);
+        break;
+      case Mortal234:
+        (value as Mortal234).encodeTo(output);
+        break;
+      case Mortal235:
+        (value as Mortal235).encodeTo(output);
+        break;
+      case Mortal236:
+        (value as Mortal236).encodeTo(output);
+        break;
+      case Mortal237:
+        (value as Mortal237).encodeTo(output);
+        break;
+      case Mortal238:
+        (value as Mortal238).encodeTo(output);
+        break;
+      case Mortal239:
+        (value as Mortal239).encodeTo(output);
+        break;
+      case Mortal240:
+        (value as Mortal240).encodeTo(output);
+        break;
+      case Mortal241:
+        (value as Mortal241).encodeTo(output);
+        break;
+      case Mortal242:
+        (value as Mortal242).encodeTo(output);
+        break;
+      case Mortal243:
+        (value as Mortal243).encodeTo(output);
+        break;
+      case Mortal244:
+        (value as Mortal244).encodeTo(output);
+        break;
+      case Mortal245:
+        (value as Mortal245).encodeTo(output);
+        break;
+      case Mortal246:
+        (value as Mortal246).encodeTo(output);
+        break;
+      case Mortal247:
+        (value as Mortal247).encodeTo(output);
+        break;
+      case Mortal248:
+        (value as Mortal248).encodeTo(output);
+        break;
+      case Mortal249:
+        (value as Mortal249).encodeTo(output);
+        break;
+      case Mortal250:
+        (value as Mortal250).encodeTo(output);
+        break;
+      case Mortal251:
+        (value as Mortal251).encodeTo(output);
+        break;
+      case Mortal252:
+        (value as Mortal252).encodeTo(output);
+        break;
+      case Mortal253:
+        (value as Mortal253).encodeTo(output);
+        break;
+      case Mortal254:
+        (value as Mortal254).encodeTo(output);
+        break;
+      case Mortal255:
+        (value as Mortal255).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'Era: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(Era value) {
+    switch (value.runtimeType) {
+      case Immortal:
+        return 1;
+      case Mortal1:
+        return (value as Mortal1)._sizeHint();
+      case Mortal2:
+        return (value as Mortal2)._sizeHint();
+      case Mortal3:
+        return (value as Mortal3)._sizeHint();
+      case Mortal4:
+        return (value as Mortal4)._sizeHint();
+      case Mortal5:
+        return (value as Mortal5)._sizeHint();
+      case Mortal6:
+        return (value as Mortal6)._sizeHint();
+      case Mortal7:
+        return (value as Mortal7)._sizeHint();
+      case Mortal8:
+        return (value as Mortal8)._sizeHint();
+      case Mortal9:
+        return (value as Mortal9)._sizeHint();
+      case Mortal10:
+        return (value as Mortal10)._sizeHint();
+      case Mortal11:
+        return (value as Mortal11)._sizeHint();
+      case Mortal12:
+        return (value as Mortal12)._sizeHint();
+      case Mortal13:
+        return (value as Mortal13)._sizeHint();
+      case Mortal14:
+        return (value as Mortal14)._sizeHint();
+      case Mortal15:
+        return (value as Mortal15)._sizeHint();
+      case Mortal16:
+        return (value as Mortal16)._sizeHint();
+      case Mortal17:
+        return (value as Mortal17)._sizeHint();
+      case Mortal18:
+        return (value as Mortal18)._sizeHint();
+      case Mortal19:
+        return (value as Mortal19)._sizeHint();
+      case Mortal20:
+        return (value as Mortal20)._sizeHint();
+      case Mortal21:
+        return (value as Mortal21)._sizeHint();
+      case Mortal22:
+        return (value as Mortal22)._sizeHint();
+      case Mortal23:
+        return (value as Mortal23)._sizeHint();
+      case Mortal24:
+        return (value as Mortal24)._sizeHint();
+      case Mortal25:
+        return (value as Mortal25)._sizeHint();
+      case Mortal26:
+        return (value as Mortal26)._sizeHint();
+      case Mortal27:
+        return (value as Mortal27)._sizeHint();
+      case Mortal28:
+        return (value as Mortal28)._sizeHint();
+      case Mortal29:
+        return (value as Mortal29)._sizeHint();
+      case Mortal30:
+        return (value as Mortal30)._sizeHint();
+      case Mortal31:
+        return (value as Mortal31)._sizeHint();
+      case Mortal32:
+        return (value as Mortal32)._sizeHint();
+      case Mortal33:
+        return (value as Mortal33)._sizeHint();
+      case Mortal34:
+        return (value as Mortal34)._sizeHint();
+      case Mortal35:
+        return (value as Mortal35)._sizeHint();
+      case Mortal36:
+        return (value as Mortal36)._sizeHint();
+      case Mortal37:
+        return (value as Mortal37)._sizeHint();
+      case Mortal38:
+        return (value as Mortal38)._sizeHint();
+      case Mortal39:
+        return (value as Mortal39)._sizeHint();
+      case Mortal40:
+        return (value as Mortal40)._sizeHint();
+      case Mortal41:
+        return (value as Mortal41)._sizeHint();
+      case Mortal42:
+        return (value as Mortal42)._sizeHint();
+      case Mortal43:
+        return (value as Mortal43)._sizeHint();
+      case Mortal44:
+        return (value as Mortal44)._sizeHint();
+      case Mortal45:
+        return (value as Mortal45)._sizeHint();
+      case Mortal46:
+        return (value as Mortal46)._sizeHint();
+      case Mortal47:
+        return (value as Mortal47)._sizeHint();
+      case Mortal48:
+        return (value as Mortal48)._sizeHint();
+      case Mortal49:
+        return (value as Mortal49)._sizeHint();
+      case Mortal50:
+        return (value as Mortal50)._sizeHint();
+      case Mortal51:
+        return (value as Mortal51)._sizeHint();
+      case Mortal52:
+        return (value as Mortal52)._sizeHint();
+      case Mortal53:
+        return (value as Mortal53)._sizeHint();
+      case Mortal54:
+        return (value as Mortal54)._sizeHint();
+      case Mortal55:
+        return (value as Mortal55)._sizeHint();
+      case Mortal56:
+        return (value as Mortal56)._sizeHint();
+      case Mortal57:
+        return (value as Mortal57)._sizeHint();
+      case Mortal58:
+        return (value as Mortal58)._sizeHint();
+      case Mortal59:
+        return (value as Mortal59)._sizeHint();
+      case Mortal60:
+        return (value as Mortal60)._sizeHint();
+      case Mortal61:
+        return (value as Mortal61)._sizeHint();
+      case Mortal62:
+        return (value as Mortal62)._sizeHint();
+      case Mortal63:
+        return (value as Mortal63)._sizeHint();
+      case Mortal64:
+        return (value as Mortal64)._sizeHint();
+      case Mortal65:
+        return (value as Mortal65)._sizeHint();
+      case Mortal66:
+        return (value as Mortal66)._sizeHint();
+      case Mortal67:
+        return (value as Mortal67)._sizeHint();
+      case Mortal68:
+        return (value as Mortal68)._sizeHint();
+      case Mortal69:
+        return (value as Mortal69)._sizeHint();
+      case Mortal70:
+        return (value as Mortal70)._sizeHint();
+      case Mortal71:
+        return (value as Mortal71)._sizeHint();
+      case Mortal72:
+        return (value as Mortal72)._sizeHint();
+      case Mortal73:
+        return (value as Mortal73)._sizeHint();
+      case Mortal74:
+        return (value as Mortal74)._sizeHint();
+      case Mortal75:
+        return (value as Mortal75)._sizeHint();
+      case Mortal76:
+        return (value as Mortal76)._sizeHint();
+      case Mortal77:
+        return (value as Mortal77)._sizeHint();
+      case Mortal78:
+        return (value as Mortal78)._sizeHint();
+      case Mortal79:
+        return (value as Mortal79)._sizeHint();
+      case Mortal80:
+        return (value as Mortal80)._sizeHint();
+      case Mortal81:
+        return (value as Mortal81)._sizeHint();
+      case Mortal82:
+        return (value as Mortal82)._sizeHint();
+      case Mortal83:
+        return (value as Mortal83)._sizeHint();
+      case Mortal84:
+        return (value as Mortal84)._sizeHint();
+      case Mortal85:
+        return (value as Mortal85)._sizeHint();
+      case Mortal86:
+        return (value as Mortal86)._sizeHint();
+      case Mortal87:
+        return (value as Mortal87)._sizeHint();
+      case Mortal88:
+        return (value as Mortal88)._sizeHint();
+      case Mortal89:
+        return (value as Mortal89)._sizeHint();
+      case Mortal90:
+        return (value as Mortal90)._sizeHint();
+      case Mortal91:
+        return (value as Mortal91)._sizeHint();
+      case Mortal92:
+        return (value as Mortal92)._sizeHint();
+      case Mortal93:
+        return (value as Mortal93)._sizeHint();
+      case Mortal94:
+        return (value as Mortal94)._sizeHint();
+      case Mortal95:
+        return (value as Mortal95)._sizeHint();
+      case Mortal96:
+        return (value as Mortal96)._sizeHint();
+      case Mortal97:
+        return (value as Mortal97)._sizeHint();
+      case Mortal98:
+        return (value as Mortal98)._sizeHint();
+      case Mortal99:
+        return (value as Mortal99)._sizeHint();
+      case Mortal100:
+        return (value as Mortal100)._sizeHint();
+      case Mortal101:
+        return (value as Mortal101)._sizeHint();
+      case Mortal102:
+        return (value as Mortal102)._sizeHint();
+      case Mortal103:
+        return (value as Mortal103)._sizeHint();
+      case Mortal104:
+        return (value as Mortal104)._sizeHint();
+      case Mortal105:
+        return (value as Mortal105)._sizeHint();
+      case Mortal106:
+        return (value as Mortal106)._sizeHint();
+      case Mortal107:
+        return (value as Mortal107)._sizeHint();
+      case Mortal108:
+        return (value as Mortal108)._sizeHint();
+      case Mortal109:
+        return (value as Mortal109)._sizeHint();
+      case Mortal110:
+        return (value as Mortal110)._sizeHint();
+      case Mortal111:
+        return (value as Mortal111)._sizeHint();
+      case Mortal112:
+        return (value as Mortal112)._sizeHint();
+      case Mortal113:
+        return (value as Mortal113)._sizeHint();
+      case Mortal114:
+        return (value as Mortal114)._sizeHint();
+      case Mortal115:
+        return (value as Mortal115)._sizeHint();
+      case Mortal116:
+        return (value as Mortal116)._sizeHint();
+      case Mortal117:
+        return (value as Mortal117)._sizeHint();
+      case Mortal118:
+        return (value as Mortal118)._sizeHint();
+      case Mortal119:
+        return (value as Mortal119)._sizeHint();
+      case Mortal120:
+        return (value as Mortal120)._sizeHint();
+      case Mortal121:
+        return (value as Mortal121)._sizeHint();
+      case Mortal122:
+        return (value as Mortal122)._sizeHint();
+      case Mortal123:
+        return (value as Mortal123)._sizeHint();
+      case Mortal124:
+        return (value as Mortal124)._sizeHint();
+      case Mortal125:
+        return (value as Mortal125)._sizeHint();
+      case Mortal126:
+        return (value as Mortal126)._sizeHint();
+      case Mortal127:
+        return (value as Mortal127)._sizeHint();
+      case Mortal128:
+        return (value as Mortal128)._sizeHint();
+      case Mortal129:
+        return (value as Mortal129)._sizeHint();
+      case Mortal130:
+        return (value as Mortal130)._sizeHint();
+      case Mortal131:
+        return (value as Mortal131)._sizeHint();
+      case Mortal132:
+        return (value as Mortal132)._sizeHint();
+      case Mortal133:
+        return (value as Mortal133)._sizeHint();
+      case Mortal134:
+        return (value as Mortal134)._sizeHint();
+      case Mortal135:
+        return (value as Mortal135)._sizeHint();
+      case Mortal136:
+        return (value as Mortal136)._sizeHint();
+      case Mortal137:
+        return (value as Mortal137)._sizeHint();
+      case Mortal138:
+        return (value as Mortal138)._sizeHint();
+      case Mortal139:
+        return (value as Mortal139)._sizeHint();
+      case Mortal140:
+        return (value as Mortal140)._sizeHint();
+      case Mortal141:
+        return (value as Mortal141)._sizeHint();
+      case Mortal142:
+        return (value as Mortal142)._sizeHint();
+      case Mortal143:
+        return (value as Mortal143)._sizeHint();
+      case Mortal144:
+        return (value as Mortal144)._sizeHint();
+      case Mortal145:
+        return (value as Mortal145)._sizeHint();
+      case Mortal146:
+        return (value as Mortal146)._sizeHint();
+      case Mortal147:
+        return (value as Mortal147)._sizeHint();
+      case Mortal148:
+        return (value as Mortal148)._sizeHint();
+      case Mortal149:
+        return (value as Mortal149)._sizeHint();
+      case Mortal150:
+        return (value as Mortal150)._sizeHint();
+      case Mortal151:
+        return (value as Mortal151)._sizeHint();
+      case Mortal152:
+        return (value as Mortal152)._sizeHint();
+      case Mortal153:
+        return (value as Mortal153)._sizeHint();
+      case Mortal154:
+        return (value as Mortal154)._sizeHint();
+      case Mortal155:
+        return (value as Mortal155)._sizeHint();
+      case Mortal156:
+        return (value as Mortal156)._sizeHint();
+      case Mortal157:
+        return (value as Mortal157)._sizeHint();
+      case Mortal158:
+        return (value as Mortal158)._sizeHint();
+      case Mortal159:
+        return (value as Mortal159)._sizeHint();
+      case Mortal160:
+        return (value as Mortal160)._sizeHint();
+      case Mortal161:
+        return (value as Mortal161)._sizeHint();
+      case Mortal162:
+        return (value as Mortal162)._sizeHint();
+      case Mortal163:
+        return (value as Mortal163)._sizeHint();
+      case Mortal164:
+        return (value as Mortal164)._sizeHint();
+      case Mortal165:
+        return (value as Mortal165)._sizeHint();
+      case Mortal166:
+        return (value as Mortal166)._sizeHint();
+      case Mortal167:
+        return (value as Mortal167)._sizeHint();
+      case Mortal168:
+        return (value as Mortal168)._sizeHint();
+      case Mortal169:
+        return (value as Mortal169)._sizeHint();
+      case Mortal170:
+        return (value as Mortal170)._sizeHint();
+      case Mortal171:
+        return (value as Mortal171)._sizeHint();
+      case Mortal172:
+        return (value as Mortal172)._sizeHint();
+      case Mortal173:
+        return (value as Mortal173)._sizeHint();
+      case Mortal174:
+        return (value as Mortal174)._sizeHint();
+      case Mortal175:
+        return (value as Mortal175)._sizeHint();
+      case Mortal176:
+        return (value as Mortal176)._sizeHint();
+      case Mortal177:
+        return (value as Mortal177)._sizeHint();
+      case Mortal178:
+        return (value as Mortal178)._sizeHint();
+      case Mortal179:
+        return (value as Mortal179)._sizeHint();
+      case Mortal180:
+        return (value as Mortal180)._sizeHint();
+      case Mortal181:
+        return (value as Mortal181)._sizeHint();
+      case Mortal182:
+        return (value as Mortal182)._sizeHint();
+      case Mortal183:
+        return (value as Mortal183)._sizeHint();
+      case Mortal184:
+        return (value as Mortal184)._sizeHint();
+      case Mortal185:
+        return (value as Mortal185)._sizeHint();
+      case Mortal186:
+        return (value as Mortal186)._sizeHint();
+      case Mortal187:
+        return (value as Mortal187)._sizeHint();
+      case Mortal188:
+        return (value as Mortal188)._sizeHint();
+      case Mortal189:
+        return (value as Mortal189)._sizeHint();
+      case Mortal190:
+        return (value as Mortal190)._sizeHint();
+      case Mortal191:
+        return (value as Mortal191)._sizeHint();
+      case Mortal192:
+        return (value as Mortal192)._sizeHint();
+      case Mortal193:
+        return (value as Mortal193)._sizeHint();
+      case Mortal194:
+        return (value as Mortal194)._sizeHint();
+      case Mortal195:
+        return (value as Mortal195)._sizeHint();
+      case Mortal196:
+        return (value as Mortal196)._sizeHint();
+      case Mortal197:
+        return (value as Mortal197)._sizeHint();
+      case Mortal198:
+        return (value as Mortal198)._sizeHint();
+      case Mortal199:
+        return (value as Mortal199)._sizeHint();
+      case Mortal200:
+        return (value as Mortal200)._sizeHint();
+      case Mortal201:
+        return (value as Mortal201)._sizeHint();
+      case Mortal202:
+        return (value as Mortal202)._sizeHint();
+      case Mortal203:
+        return (value as Mortal203)._sizeHint();
+      case Mortal204:
+        return (value as Mortal204)._sizeHint();
+      case Mortal205:
+        return (value as Mortal205)._sizeHint();
+      case Mortal206:
+        return (value as Mortal206)._sizeHint();
+      case Mortal207:
+        return (value as Mortal207)._sizeHint();
+      case Mortal208:
+        return (value as Mortal208)._sizeHint();
+      case Mortal209:
+        return (value as Mortal209)._sizeHint();
+      case Mortal210:
+        return (value as Mortal210)._sizeHint();
+      case Mortal211:
+        return (value as Mortal211)._sizeHint();
+      case Mortal212:
+        return (value as Mortal212)._sizeHint();
+      case Mortal213:
+        return (value as Mortal213)._sizeHint();
+      case Mortal214:
+        return (value as Mortal214)._sizeHint();
+      case Mortal215:
+        return (value as Mortal215)._sizeHint();
+      case Mortal216:
+        return (value as Mortal216)._sizeHint();
+      case Mortal217:
+        return (value as Mortal217)._sizeHint();
+      case Mortal218:
+        return (value as Mortal218)._sizeHint();
+      case Mortal219:
+        return (value as Mortal219)._sizeHint();
+      case Mortal220:
+        return (value as Mortal220)._sizeHint();
+      case Mortal221:
+        return (value as Mortal221)._sizeHint();
+      case Mortal222:
+        return (value as Mortal222)._sizeHint();
+      case Mortal223:
+        return (value as Mortal223)._sizeHint();
+      case Mortal224:
+        return (value as Mortal224)._sizeHint();
+      case Mortal225:
+        return (value as Mortal225)._sizeHint();
+      case Mortal226:
+        return (value as Mortal226)._sizeHint();
+      case Mortal227:
+        return (value as Mortal227)._sizeHint();
+      case Mortal228:
+        return (value as Mortal228)._sizeHint();
+      case Mortal229:
+        return (value as Mortal229)._sizeHint();
+      case Mortal230:
+        return (value as Mortal230)._sizeHint();
+      case Mortal231:
+        return (value as Mortal231)._sizeHint();
+      case Mortal232:
+        return (value as Mortal232)._sizeHint();
+      case Mortal233:
+        return (value as Mortal233)._sizeHint();
+      case Mortal234:
+        return (value as Mortal234)._sizeHint();
+      case Mortal235:
+        return (value as Mortal235)._sizeHint();
+      case Mortal236:
+        return (value as Mortal236)._sizeHint();
+      case Mortal237:
+        return (value as Mortal237)._sizeHint();
+      case Mortal238:
+        return (value as Mortal238)._sizeHint();
+      case Mortal239:
+        return (value as Mortal239)._sizeHint();
+      case Mortal240:
+        return (value as Mortal240)._sizeHint();
+      case Mortal241:
+        return (value as Mortal241)._sizeHint();
+      case Mortal242:
+        return (value as Mortal242)._sizeHint();
+      case Mortal243:
+        return (value as Mortal243)._sizeHint();
+      case Mortal244:
+        return (value as Mortal244)._sizeHint();
+      case Mortal245:
+        return (value as Mortal245)._sizeHint();
+      case Mortal246:
+        return (value as Mortal246)._sizeHint();
+      case Mortal247:
+        return (value as Mortal247)._sizeHint();
+      case Mortal248:
+        return (value as Mortal248)._sizeHint();
+      case Mortal249:
+        return (value as Mortal249)._sizeHint();
+      case Mortal250:
+        return (value as Mortal250)._sizeHint();
+      case Mortal251:
+        return (value as Mortal251)._sizeHint();
+      case Mortal252:
+        return (value as Mortal252)._sizeHint();
+      case Mortal253:
+        return (value as Mortal253)._sizeHint();
+      case Mortal254:
+        return (value as Mortal254)._sizeHint();
+      case Mortal255:
+        return (value as Mortal255)._sizeHint();
+      default:
+        throw Exception(
+            'Era: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class Immortal extends Era {
+  const Immortal();
+
+  @override
+  Map<String, dynamic> toJson() => {'Immortal': null};
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) => other is Immortal;
+
+  @override
+  int get hashCode => runtimeType.hashCode;
+}
+
+class Mortal1 extends Era {
+  const Mortal1(this.value0);
+
+  factory Mortal1._decode(_i1.Input input) {
+    return Mortal1(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal1': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal1 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal2 extends Era {
+  const Mortal2(this.value0);
+
+  factory Mortal2._decode(_i1.Input input) {
+    return Mortal2(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal2': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal2 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal3 extends Era {
+  const Mortal3(this.value0);
+
+  factory Mortal3._decode(_i1.Input input) {
+    return Mortal3(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal3': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal3 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal4 extends Era {
+  const Mortal4(this.value0);
+
+  factory Mortal4._decode(_i1.Input input) {
+    return Mortal4(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal4': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal4 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal5 extends Era {
+  const Mortal5(this.value0);
+
+  factory Mortal5._decode(_i1.Input input) {
+    return Mortal5(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal5': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      5,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal5 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal6 extends Era {
+  const Mortal6(this.value0);
+
+  factory Mortal6._decode(_i1.Input input) {
+    return Mortal6(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal6': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      6,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal6 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal7 extends Era {
+  const Mortal7(this.value0);
+
+  factory Mortal7._decode(_i1.Input input) {
+    return Mortal7(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal7': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      7,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal7 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal8 extends Era {
+  const Mortal8(this.value0);
+
+  factory Mortal8._decode(_i1.Input input) {
+    return Mortal8(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal8': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      8,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal8 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal9 extends Era {
+  const Mortal9(this.value0);
+
+  factory Mortal9._decode(_i1.Input input) {
+    return Mortal9(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal9': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      9,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal9 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal10 extends Era {
+  const Mortal10(this.value0);
+
+  factory Mortal10._decode(_i1.Input input) {
+    return Mortal10(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal10': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      10,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal10 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal11 extends Era {
+  const Mortal11(this.value0);
+
+  factory Mortal11._decode(_i1.Input input) {
+    return Mortal11(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal11': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      11,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal11 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal12 extends Era {
+  const Mortal12(this.value0);
+
+  factory Mortal12._decode(_i1.Input input) {
+    return Mortal12(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal12': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      12,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal12 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal13 extends Era {
+  const Mortal13(this.value0);
+
+  factory Mortal13._decode(_i1.Input input) {
+    return Mortal13(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal13': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      13,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal13 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal14 extends Era {
+  const Mortal14(this.value0);
+
+  factory Mortal14._decode(_i1.Input input) {
+    return Mortal14(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal14': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      14,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal14 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal15 extends Era {
+  const Mortal15(this.value0);
+
+  factory Mortal15._decode(_i1.Input input) {
+    return Mortal15(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal15': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      15,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal15 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal16 extends Era {
+  const Mortal16(this.value0);
+
+  factory Mortal16._decode(_i1.Input input) {
+    return Mortal16(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal16': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      16,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal16 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal17 extends Era {
+  const Mortal17(this.value0);
+
+  factory Mortal17._decode(_i1.Input input) {
+    return Mortal17(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal17': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      17,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal17 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal18 extends Era {
+  const Mortal18(this.value0);
+
+  factory Mortal18._decode(_i1.Input input) {
+    return Mortal18(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal18': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      18,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal18 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal19 extends Era {
+  const Mortal19(this.value0);
+
+  factory Mortal19._decode(_i1.Input input) {
+    return Mortal19(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal19': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      19,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal19 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal20 extends Era {
+  const Mortal20(this.value0);
+
+  factory Mortal20._decode(_i1.Input input) {
+    return Mortal20(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal20': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      20,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal20 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal21 extends Era {
+  const Mortal21(this.value0);
+
+  factory Mortal21._decode(_i1.Input input) {
+    return Mortal21(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal21': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      21,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal21 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal22 extends Era {
+  const Mortal22(this.value0);
+
+  factory Mortal22._decode(_i1.Input input) {
+    return Mortal22(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal22': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      22,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal22 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal23 extends Era {
+  const Mortal23(this.value0);
+
+  factory Mortal23._decode(_i1.Input input) {
+    return Mortal23(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal23': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      23,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal23 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal24 extends Era {
+  const Mortal24(this.value0);
+
+  factory Mortal24._decode(_i1.Input input) {
+    return Mortal24(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal24': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      24,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal24 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal25 extends Era {
+  const Mortal25(this.value0);
+
+  factory Mortal25._decode(_i1.Input input) {
+    return Mortal25(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal25': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      25,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal25 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal26 extends Era {
+  const Mortal26(this.value0);
+
+  factory Mortal26._decode(_i1.Input input) {
+    return Mortal26(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal26': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      26,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal26 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal27 extends Era {
+  const Mortal27(this.value0);
+
+  factory Mortal27._decode(_i1.Input input) {
+    return Mortal27(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal27': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      27,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal27 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal28 extends Era {
+  const Mortal28(this.value0);
+
+  factory Mortal28._decode(_i1.Input input) {
+    return Mortal28(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal28': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      28,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal28 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal29 extends Era {
+  const Mortal29(this.value0);
+
+  factory Mortal29._decode(_i1.Input input) {
+    return Mortal29(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal29': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      29,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal29 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal30 extends Era {
+  const Mortal30(this.value0);
+
+  factory Mortal30._decode(_i1.Input input) {
+    return Mortal30(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal30': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      30,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal30 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal31 extends Era {
+  const Mortal31(this.value0);
+
+  factory Mortal31._decode(_i1.Input input) {
+    return Mortal31(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal31': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      31,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal31 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal32 extends Era {
+  const Mortal32(this.value0);
+
+  factory Mortal32._decode(_i1.Input input) {
+    return Mortal32(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal32': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      32,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal32 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal33 extends Era {
+  const Mortal33(this.value0);
+
+  factory Mortal33._decode(_i1.Input input) {
+    return Mortal33(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal33': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      33,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal33 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal34 extends Era {
+  const Mortal34(this.value0);
+
+  factory Mortal34._decode(_i1.Input input) {
+    return Mortal34(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal34': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      34,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal34 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal35 extends Era {
+  const Mortal35(this.value0);
+
+  factory Mortal35._decode(_i1.Input input) {
+    return Mortal35(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal35': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      35,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal35 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal36 extends Era {
+  const Mortal36(this.value0);
+
+  factory Mortal36._decode(_i1.Input input) {
+    return Mortal36(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal36': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      36,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal36 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal37 extends Era {
+  const Mortal37(this.value0);
+
+  factory Mortal37._decode(_i1.Input input) {
+    return Mortal37(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal37': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      37,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal37 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal38 extends Era {
+  const Mortal38(this.value0);
+
+  factory Mortal38._decode(_i1.Input input) {
+    return Mortal38(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal38': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      38,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal38 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal39 extends Era {
+  const Mortal39(this.value0);
+
+  factory Mortal39._decode(_i1.Input input) {
+    return Mortal39(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal39': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      39,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal39 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal40 extends Era {
+  const Mortal40(this.value0);
+
+  factory Mortal40._decode(_i1.Input input) {
+    return Mortal40(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal40': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      40,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal40 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal41 extends Era {
+  const Mortal41(this.value0);
+
+  factory Mortal41._decode(_i1.Input input) {
+    return Mortal41(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal41': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      41,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal41 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal42 extends Era {
+  const Mortal42(this.value0);
+
+  factory Mortal42._decode(_i1.Input input) {
+    return Mortal42(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal42': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      42,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal42 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal43 extends Era {
+  const Mortal43(this.value0);
+
+  factory Mortal43._decode(_i1.Input input) {
+    return Mortal43(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal43': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      43,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal43 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal44 extends Era {
+  const Mortal44(this.value0);
+
+  factory Mortal44._decode(_i1.Input input) {
+    return Mortal44(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal44': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      44,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal44 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal45 extends Era {
+  const Mortal45(this.value0);
+
+  factory Mortal45._decode(_i1.Input input) {
+    return Mortal45(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal45': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      45,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal45 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal46 extends Era {
+  const Mortal46(this.value0);
+
+  factory Mortal46._decode(_i1.Input input) {
+    return Mortal46(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal46': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      46,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal46 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal47 extends Era {
+  const Mortal47(this.value0);
+
+  factory Mortal47._decode(_i1.Input input) {
+    return Mortal47(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal47': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      47,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal47 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal48 extends Era {
+  const Mortal48(this.value0);
+
+  factory Mortal48._decode(_i1.Input input) {
+    return Mortal48(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal48': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      48,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal48 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal49 extends Era {
+  const Mortal49(this.value0);
+
+  factory Mortal49._decode(_i1.Input input) {
+    return Mortal49(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal49': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      49,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal49 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal50 extends Era {
+  const Mortal50(this.value0);
+
+  factory Mortal50._decode(_i1.Input input) {
+    return Mortal50(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal50': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      50,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal50 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal51 extends Era {
+  const Mortal51(this.value0);
+
+  factory Mortal51._decode(_i1.Input input) {
+    return Mortal51(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal51': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      51,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal51 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal52 extends Era {
+  const Mortal52(this.value0);
+
+  factory Mortal52._decode(_i1.Input input) {
+    return Mortal52(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal52': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      52,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal52 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal53 extends Era {
+  const Mortal53(this.value0);
+
+  factory Mortal53._decode(_i1.Input input) {
+    return Mortal53(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal53': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      53,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal53 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal54 extends Era {
+  const Mortal54(this.value0);
+
+  factory Mortal54._decode(_i1.Input input) {
+    return Mortal54(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal54': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      54,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal54 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal55 extends Era {
+  const Mortal55(this.value0);
+
+  factory Mortal55._decode(_i1.Input input) {
+    return Mortal55(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal55': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      55,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal55 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal56 extends Era {
+  const Mortal56(this.value0);
+
+  factory Mortal56._decode(_i1.Input input) {
+    return Mortal56(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal56': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      56,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal56 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal57 extends Era {
+  const Mortal57(this.value0);
+
+  factory Mortal57._decode(_i1.Input input) {
+    return Mortal57(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal57': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      57,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal57 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal58 extends Era {
+  const Mortal58(this.value0);
+
+  factory Mortal58._decode(_i1.Input input) {
+    return Mortal58(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal58': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      58,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal58 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal59 extends Era {
+  const Mortal59(this.value0);
+
+  factory Mortal59._decode(_i1.Input input) {
+    return Mortal59(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal59': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      59,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal59 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal60 extends Era {
+  const Mortal60(this.value0);
+
+  factory Mortal60._decode(_i1.Input input) {
+    return Mortal60(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal60': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      60,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal60 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal61 extends Era {
+  const Mortal61(this.value0);
+
+  factory Mortal61._decode(_i1.Input input) {
+    return Mortal61(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal61': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      61,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal61 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal62 extends Era {
+  const Mortal62(this.value0);
+
+  factory Mortal62._decode(_i1.Input input) {
+    return Mortal62(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal62': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      62,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal62 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal63 extends Era {
+  const Mortal63(this.value0);
+
+  factory Mortal63._decode(_i1.Input input) {
+    return Mortal63(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal63': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      63,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal63 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal64 extends Era {
+  const Mortal64(this.value0);
+
+  factory Mortal64._decode(_i1.Input input) {
+    return Mortal64(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal64': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      64,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal64 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal65 extends Era {
+  const Mortal65(this.value0);
+
+  factory Mortal65._decode(_i1.Input input) {
+    return Mortal65(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal65': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      65,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal65 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal66 extends Era {
+  const Mortal66(this.value0);
+
+  factory Mortal66._decode(_i1.Input input) {
+    return Mortal66(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal66': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      66,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal66 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal67 extends Era {
+  const Mortal67(this.value0);
+
+  factory Mortal67._decode(_i1.Input input) {
+    return Mortal67(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal67': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      67,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal67 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal68 extends Era {
+  const Mortal68(this.value0);
+
+  factory Mortal68._decode(_i1.Input input) {
+    return Mortal68(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal68': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      68,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal68 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal69 extends Era {
+  const Mortal69(this.value0);
+
+  factory Mortal69._decode(_i1.Input input) {
+    return Mortal69(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal69': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      69,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal69 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal70 extends Era {
+  const Mortal70(this.value0);
+
+  factory Mortal70._decode(_i1.Input input) {
+    return Mortal70(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal70': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      70,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal70 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal71 extends Era {
+  const Mortal71(this.value0);
+
+  factory Mortal71._decode(_i1.Input input) {
+    return Mortal71(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal71': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      71,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal71 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal72 extends Era {
+  const Mortal72(this.value0);
+
+  factory Mortal72._decode(_i1.Input input) {
+    return Mortal72(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal72': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      72,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal72 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal73 extends Era {
+  const Mortal73(this.value0);
+
+  factory Mortal73._decode(_i1.Input input) {
+    return Mortal73(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal73': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      73,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal73 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal74 extends Era {
+  const Mortal74(this.value0);
+
+  factory Mortal74._decode(_i1.Input input) {
+    return Mortal74(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal74': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      74,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal74 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal75 extends Era {
+  const Mortal75(this.value0);
+
+  factory Mortal75._decode(_i1.Input input) {
+    return Mortal75(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal75': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      75,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal75 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal76 extends Era {
+  const Mortal76(this.value0);
+
+  factory Mortal76._decode(_i1.Input input) {
+    return Mortal76(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal76': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      76,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal76 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal77 extends Era {
+  const Mortal77(this.value0);
+
+  factory Mortal77._decode(_i1.Input input) {
+    return Mortal77(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal77': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      77,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal77 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal78 extends Era {
+  const Mortal78(this.value0);
+
+  factory Mortal78._decode(_i1.Input input) {
+    return Mortal78(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal78': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      78,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal78 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal79 extends Era {
+  const Mortal79(this.value0);
+
+  factory Mortal79._decode(_i1.Input input) {
+    return Mortal79(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal79': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      79,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal79 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal80 extends Era {
+  const Mortal80(this.value0);
+
+  factory Mortal80._decode(_i1.Input input) {
+    return Mortal80(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal80': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      80,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal80 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal81 extends Era {
+  const Mortal81(this.value0);
+
+  factory Mortal81._decode(_i1.Input input) {
+    return Mortal81(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal81': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      81,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal81 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal82 extends Era {
+  const Mortal82(this.value0);
+
+  factory Mortal82._decode(_i1.Input input) {
+    return Mortal82(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal82': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      82,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal82 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal83 extends Era {
+  const Mortal83(this.value0);
+
+  factory Mortal83._decode(_i1.Input input) {
+    return Mortal83(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal83': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      83,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal83 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal84 extends Era {
+  const Mortal84(this.value0);
+
+  factory Mortal84._decode(_i1.Input input) {
+    return Mortal84(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal84': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      84,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal84 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal85 extends Era {
+  const Mortal85(this.value0);
+
+  factory Mortal85._decode(_i1.Input input) {
+    return Mortal85(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal85': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      85,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal85 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal86 extends Era {
+  const Mortal86(this.value0);
+
+  factory Mortal86._decode(_i1.Input input) {
+    return Mortal86(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal86': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      86,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal86 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal87 extends Era {
+  const Mortal87(this.value0);
+
+  factory Mortal87._decode(_i1.Input input) {
+    return Mortal87(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal87': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      87,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal87 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal88 extends Era {
+  const Mortal88(this.value0);
+
+  factory Mortal88._decode(_i1.Input input) {
+    return Mortal88(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal88': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      88,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal88 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal89 extends Era {
+  const Mortal89(this.value0);
+
+  factory Mortal89._decode(_i1.Input input) {
+    return Mortal89(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal89': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      89,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal89 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal90 extends Era {
+  const Mortal90(this.value0);
+
+  factory Mortal90._decode(_i1.Input input) {
+    return Mortal90(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal90': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      90,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal90 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal91 extends Era {
+  const Mortal91(this.value0);
+
+  factory Mortal91._decode(_i1.Input input) {
+    return Mortal91(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal91': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      91,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal91 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal92 extends Era {
+  const Mortal92(this.value0);
+
+  factory Mortal92._decode(_i1.Input input) {
+    return Mortal92(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal92': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      92,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal92 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal93 extends Era {
+  const Mortal93(this.value0);
+
+  factory Mortal93._decode(_i1.Input input) {
+    return Mortal93(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal93': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      93,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal93 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal94 extends Era {
+  const Mortal94(this.value0);
+
+  factory Mortal94._decode(_i1.Input input) {
+    return Mortal94(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal94': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      94,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal94 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal95 extends Era {
+  const Mortal95(this.value0);
+
+  factory Mortal95._decode(_i1.Input input) {
+    return Mortal95(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal95': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      95,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal95 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal96 extends Era {
+  const Mortal96(this.value0);
+
+  factory Mortal96._decode(_i1.Input input) {
+    return Mortal96(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal96': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      96,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal96 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal97 extends Era {
+  const Mortal97(this.value0);
+
+  factory Mortal97._decode(_i1.Input input) {
+    return Mortal97(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal97': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      97,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal97 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal98 extends Era {
+  const Mortal98(this.value0);
+
+  factory Mortal98._decode(_i1.Input input) {
+    return Mortal98(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal98': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      98,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal98 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal99 extends Era {
+  const Mortal99(this.value0);
+
+  factory Mortal99._decode(_i1.Input input) {
+    return Mortal99(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal99': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      99,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal99 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal100 extends Era {
+  const Mortal100(this.value0);
+
+  factory Mortal100._decode(_i1.Input input) {
+    return Mortal100(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal100': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      100,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal100 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal101 extends Era {
+  const Mortal101(this.value0);
+
+  factory Mortal101._decode(_i1.Input input) {
+    return Mortal101(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal101': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      101,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal101 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal102 extends Era {
+  const Mortal102(this.value0);
+
+  factory Mortal102._decode(_i1.Input input) {
+    return Mortal102(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal102': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      102,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal102 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal103 extends Era {
+  const Mortal103(this.value0);
+
+  factory Mortal103._decode(_i1.Input input) {
+    return Mortal103(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal103': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      103,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal103 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal104 extends Era {
+  const Mortal104(this.value0);
+
+  factory Mortal104._decode(_i1.Input input) {
+    return Mortal104(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal104': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      104,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal104 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal105 extends Era {
+  const Mortal105(this.value0);
+
+  factory Mortal105._decode(_i1.Input input) {
+    return Mortal105(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal105': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      105,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal105 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal106 extends Era {
+  const Mortal106(this.value0);
+
+  factory Mortal106._decode(_i1.Input input) {
+    return Mortal106(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal106': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      106,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal106 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal107 extends Era {
+  const Mortal107(this.value0);
+
+  factory Mortal107._decode(_i1.Input input) {
+    return Mortal107(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal107': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      107,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal107 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal108 extends Era {
+  const Mortal108(this.value0);
+
+  factory Mortal108._decode(_i1.Input input) {
+    return Mortal108(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal108': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      108,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal108 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal109 extends Era {
+  const Mortal109(this.value0);
+
+  factory Mortal109._decode(_i1.Input input) {
+    return Mortal109(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal109': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      109,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal109 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal110 extends Era {
+  const Mortal110(this.value0);
+
+  factory Mortal110._decode(_i1.Input input) {
+    return Mortal110(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal110': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      110,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal110 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal111 extends Era {
+  const Mortal111(this.value0);
+
+  factory Mortal111._decode(_i1.Input input) {
+    return Mortal111(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal111': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      111,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal111 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal112 extends Era {
+  const Mortal112(this.value0);
+
+  factory Mortal112._decode(_i1.Input input) {
+    return Mortal112(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal112': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      112,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal112 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal113 extends Era {
+  const Mortal113(this.value0);
+
+  factory Mortal113._decode(_i1.Input input) {
+    return Mortal113(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal113': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      113,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal113 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal114 extends Era {
+  const Mortal114(this.value0);
+
+  factory Mortal114._decode(_i1.Input input) {
+    return Mortal114(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal114': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      114,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal114 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal115 extends Era {
+  const Mortal115(this.value0);
+
+  factory Mortal115._decode(_i1.Input input) {
+    return Mortal115(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal115': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      115,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal115 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal116 extends Era {
+  const Mortal116(this.value0);
+
+  factory Mortal116._decode(_i1.Input input) {
+    return Mortal116(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal116': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      116,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal116 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal117 extends Era {
+  const Mortal117(this.value0);
+
+  factory Mortal117._decode(_i1.Input input) {
+    return Mortal117(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal117': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      117,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal117 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal118 extends Era {
+  const Mortal118(this.value0);
+
+  factory Mortal118._decode(_i1.Input input) {
+    return Mortal118(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal118': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      118,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal118 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal119 extends Era {
+  const Mortal119(this.value0);
+
+  factory Mortal119._decode(_i1.Input input) {
+    return Mortal119(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal119': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      119,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal119 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal120 extends Era {
+  const Mortal120(this.value0);
+
+  factory Mortal120._decode(_i1.Input input) {
+    return Mortal120(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal120': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      120,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal120 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal121 extends Era {
+  const Mortal121(this.value0);
+
+  factory Mortal121._decode(_i1.Input input) {
+    return Mortal121(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal121': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      121,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal121 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal122 extends Era {
+  const Mortal122(this.value0);
+
+  factory Mortal122._decode(_i1.Input input) {
+    return Mortal122(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal122': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      122,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal122 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal123 extends Era {
+  const Mortal123(this.value0);
+
+  factory Mortal123._decode(_i1.Input input) {
+    return Mortal123(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal123': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      123,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal123 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal124 extends Era {
+  const Mortal124(this.value0);
+
+  factory Mortal124._decode(_i1.Input input) {
+    return Mortal124(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal124': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      124,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal124 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal125 extends Era {
+  const Mortal125(this.value0);
+
+  factory Mortal125._decode(_i1.Input input) {
+    return Mortal125(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal125': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      125,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal125 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal126 extends Era {
+  const Mortal126(this.value0);
+
+  factory Mortal126._decode(_i1.Input input) {
+    return Mortal126(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal126': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      126,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal126 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal127 extends Era {
+  const Mortal127(this.value0);
+
+  factory Mortal127._decode(_i1.Input input) {
+    return Mortal127(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal127': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      127,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal127 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal128 extends Era {
+  const Mortal128(this.value0);
+
+  factory Mortal128._decode(_i1.Input input) {
+    return Mortal128(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal128': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      128,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal128 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal129 extends Era {
+  const Mortal129(this.value0);
+
+  factory Mortal129._decode(_i1.Input input) {
+    return Mortal129(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal129': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      129,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal129 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal130 extends Era {
+  const Mortal130(this.value0);
+
+  factory Mortal130._decode(_i1.Input input) {
+    return Mortal130(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal130': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      130,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal130 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal131 extends Era {
+  const Mortal131(this.value0);
+
+  factory Mortal131._decode(_i1.Input input) {
+    return Mortal131(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal131': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      131,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal131 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal132 extends Era {
+  const Mortal132(this.value0);
+
+  factory Mortal132._decode(_i1.Input input) {
+    return Mortal132(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal132': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      132,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal132 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal133 extends Era {
+  const Mortal133(this.value0);
+
+  factory Mortal133._decode(_i1.Input input) {
+    return Mortal133(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal133': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      133,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal133 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal134 extends Era {
+  const Mortal134(this.value0);
+
+  factory Mortal134._decode(_i1.Input input) {
+    return Mortal134(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal134': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      134,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal134 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal135 extends Era {
+  const Mortal135(this.value0);
+
+  factory Mortal135._decode(_i1.Input input) {
+    return Mortal135(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal135': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      135,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal135 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal136 extends Era {
+  const Mortal136(this.value0);
+
+  factory Mortal136._decode(_i1.Input input) {
+    return Mortal136(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal136': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      136,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal136 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal137 extends Era {
+  const Mortal137(this.value0);
+
+  factory Mortal137._decode(_i1.Input input) {
+    return Mortal137(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal137': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      137,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal137 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal138 extends Era {
+  const Mortal138(this.value0);
+
+  factory Mortal138._decode(_i1.Input input) {
+    return Mortal138(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal138': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      138,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal138 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal139 extends Era {
+  const Mortal139(this.value0);
+
+  factory Mortal139._decode(_i1.Input input) {
+    return Mortal139(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal139': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      139,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal139 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal140 extends Era {
+  const Mortal140(this.value0);
+
+  factory Mortal140._decode(_i1.Input input) {
+    return Mortal140(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal140': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      140,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal140 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal141 extends Era {
+  const Mortal141(this.value0);
+
+  factory Mortal141._decode(_i1.Input input) {
+    return Mortal141(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal141': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      141,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal141 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal142 extends Era {
+  const Mortal142(this.value0);
+
+  factory Mortal142._decode(_i1.Input input) {
+    return Mortal142(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal142': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      142,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal142 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal143 extends Era {
+  const Mortal143(this.value0);
+
+  factory Mortal143._decode(_i1.Input input) {
+    return Mortal143(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal143': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      143,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal143 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal144 extends Era {
+  const Mortal144(this.value0);
+
+  factory Mortal144._decode(_i1.Input input) {
+    return Mortal144(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal144': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      144,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal144 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal145 extends Era {
+  const Mortal145(this.value0);
+
+  factory Mortal145._decode(_i1.Input input) {
+    return Mortal145(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal145': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      145,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal145 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal146 extends Era {
+  const Mortal146(this.value0);
+
+  factory Mortal146._decode(_i1.Input input) {
+    return Mortal146(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal146': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      146,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal146 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal147 extends Era {
+  const Mortal147(this.value0);
+
+  factory Mortal147._decode(_i1.Input input) {
+    return Mortal147(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal147': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      147,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal147 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal148 extends Era {
+  const Mortal148(this.value0);
+
+  factory Mortal148._decode(_i1.Input input) {
+    return Mortal148(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal148': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      148,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal148 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal149 extends Era {
+  const Mortal149(this.value0);
+
+  factory Mortal149._decode(_i1.Input input) {
+    return Mortal149(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal149': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      149,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal149 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal150 extends Era {
+  const Mortal150(this.value0);
+
+  factory Mortal150._decode(_i1.Input input) {
+    return Mortal150(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal150': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      150,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal150 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal151 extends Era {
+  const Mortal151(this.value0);
+
+  factory Mortal151._decode(_i1.Input input) {
+    return Mortal151(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal151': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      151,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal151 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal152 extends Era {
+  const Mortal152(this.value0);
+
+  factory Mortal152._decode(_i1.Input input) {
+    return Mortal152(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal152': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      152,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal152 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal153 extends Era {
+  const Mortal153(this.value0);
+
+  factory Mortal153._decode(_i1.Input input) {
+    return Mortal153(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal153': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      153,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal153 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal154 extends Era {
+  const Mortal154(this.value0);
+
+  factory Mortal154._decode(_i1.Input input) {
+    return Mortal154(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal154': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      154,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal154 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal155 extends Era {
+  const Mortal155(this.value0);
+
+  factory Mortal155._decode(_i1.Input input) {
+    return Mortal155(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal155': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      155,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal155 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal156 extends Era {
+  const Mortal156(this.value0);
+
+  factory Mortal156._decode(_i1.Input input) {
+    return Mortal156(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal156': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      156,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal156 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal157 extends Era {
+  const Mortal157(this.value0);
+
+  factory Mortal157._decode(_i1.Input input) {
+    return Mortal157(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal157': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      157,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal157 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal158 extends Era {
+  const Mortal158(this.value0);
+
+  factory Mortal158._decode(_i1.Input input) {
+    return Mortal158(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal158': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      158,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal158 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal159 extends Era {
+  const Mortal159(this.value0);
+
+  factory Mortal159._decode(_i1.Input input) {
+    return Mortal159(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal159': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      159,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal159 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal160 extends Era {
+  const Mortal160(this.value0);
+
+  factory Mortal160._decode(_i1.Input input) {
+    return Mortal160(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal160': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      160,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal160 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal161 extends Era {
+  const Mortal161(this.value0);
+
+  factory Mortal161._decode(_i1.Input input) {
+    return Mortal161(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal161': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      161,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal161 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal162 extends Era {
+  const Mortal162(this.value0);
+
+  factory Mortal162._decode(_i1.Input input) {
+    return Mortal162(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal162': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      162,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal162 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal163 extends Era {
+  const Mortal163(this.value0);
+
+  factory Mortal163._decode(_i1.Input input) {
+    return Mortal163(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal163': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      163,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal163 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal164 extends Era {
+  const Mortal164(this.value0);
+
+  factory Mortal164._decode(_i1.Input input) {
+    return Mortal164(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal164': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      164,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal164 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal165 extends Era {
+  const Mortal165(this.value0);
+
+  factory Mortal165._decode(_i1.Input input) {
+    return Mortal165(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal165': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      165,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal165 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal166 extends Era {
+  const Mortal166(this.value0);
+
+  factory Mortal166._decode(_i1.Input input) {
+    return Mortal166(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal166': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      166,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal166 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal167 extends Era {
+  const Mortal167(this.value0);
+
+  factory Mortal167._decode(_i1.Input input) {
+    return Mortal167(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal167': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      167,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal167 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal168 extends Era {
+  const Mortal168(this.value0);
+
+  factory Mortal168._decode(_i1.Input input) {
+    return Mortal168(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal168': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      168,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal168 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal169 extends Era {
+  const Mortal169(this.value0);
+
+  factory Mortal169._decode(_i1.Input input) {
+    return Mortal169(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal169': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      169,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal169 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal170 extends Era {
+  const Mortal170(this.value0);
+
+  factory Mortal170._decode(_i1.Input input) {
+    return Mortal170(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal170': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      170,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal170 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal171 extends Era {
+  const Mortal171(this.value0);
+
+  factory Mortal171._decode(_i1.Input input) {
+    return Mortal171(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal171': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      171,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal171 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal172 extends Era {
+  const Mortal172(this.value0);
+
+  factory Mortal172._decode(_i1.Input input) {
+    return Mortal172(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal172': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      172,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal172 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal173 extends Era {
+  const Mortal173(this.value0);
+
+  factory Mortal173._decode(_i1.Input input) {
+    return Mortal173(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal173': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      173,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal173 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal174 extends Era {
+  const Mortal174(this.value0);
+
+  factory Mortal174._decode(_i1.Input input) {
+    return Mortal174(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal174': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      174,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal174 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal175 extends Era {
+  const Mortal175(this.value0);
+
+  factory Mortal175._decode(_i1.Input input) {
+    return Mortal175(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal175': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      175,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal175 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal176 extends Era {
+  const Mortal176(this.value0);
+
+  factory Mortal176._decode(_i1.Input input) {
+    return Mortal176(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal176': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      176,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal176 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal177 extends Era {
+  const Mortal177(this.value0);
+
+  factory Mortal177._decode(_i1.Input input) {
+    return Mortal177(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal177': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      177,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal177 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal178 extends Era {
+  const Mortal178(this.value0);
+
+  factory Mortal178._decode(_i1.Input input) {
+    return Mortal178(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal178': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      178,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal178 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal179 extends Era {
+  const Mortal179(this.value0);
+
+  factory Mortal179._decode(_i1.Input input) {
+    return Mortal179(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal179': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      179,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal179 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal180 extends Era {
+  const Mortal180(this.value0);
+
+  factory Mortal180._decode(_i1.Input input) {
+    return Mortal180(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal180': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      180,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal180 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal181 extends Era {
+  const Mortal181(this.value0);
+
+  factory Mortal181._decode(_i1.Input input) {
+    return Mortal181(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal181': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      181,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal181 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal182 extends Era {
+  const Mortal182(this.value0);
+
+  factory Mortal182._decode(_i1.Input input) {
+    return Mortal182(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal182': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      182,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal182 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal183 extends Era {
+  const Mortal183(this.value0);
+
+  factory Mortal183._decode(_i1.Input input) {
+    return Mortal183(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal183': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      183,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal183 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal184 extends Era {
+  const Mortal184(this.value0);
+
+  factory Mortal184._decode(_i1.Input input) {
+    return Mortal184(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal184': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      184,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal184 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal185 extends Era {
+  const Mortal185(this.value0);
+
+  factory Mortal185._decode(_i1.Input input) {
+    return Mortal185(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal185': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      185,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal185 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal186 extends Era {
+  const Mortal186(this.value0);
+
+  factory Mortal186._decode(_i1.Input input) {
+    return Mortal186(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal186': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      186,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal186 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal187 extends Era {
+  const Mortal187(this.value0);
+
+  factory Mortal187._decode(_i1.Input input) {
+    return Mortal187(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal187': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      187,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal187 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal188 extends Era {
+  const Mortal188(this.value0);
+
+  factory Mortal188._decode(_i1.Input input) {
+    return Mortal188(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal188': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      188,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal188 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal189 extends Era {
+  const Mortal189(this.value0);
+
+  factory Mortal189._decode(_i1.Input input) {
+    return Mortal189(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal189': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      189,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal189 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal190 extends Era {
+  const Mortal190(this.value0);
+
+  factory Mortal190._decode(_i1.Input input) {
+    return Mortal190(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal190': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      190,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal190 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal191 extends Era {
+  const Mortal191(this.value0);
+
+  factory Mortal191._decode(_i1.Input input) {
+    return Mortal191(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal191': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      191,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal191 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal192 extends Era {
+  const Mortal192(this.value0);
+
+  factory Mortal192._decode(_i1.Input input) {
+    return Mortal192(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal192': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      192,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal192 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal193 extends Era {
+  const Mortal193(this.value0);
+
+  factory Mortal193._decode(_i1.Input input) {
+    return Mortal193(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal193': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      193,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal193 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal194 extends Era {
+  const Mortal194(this.value0);
+
+  factory Mortal194._decode(_i1.Input input) {
+    return Mortal194(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal194': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      194,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal194 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal195 extends Era {
+  const Mortal195(this.value0);
+
+  factory Mortal195._decode(_i1.Input input) {
+    return Mortal195(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal195': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      195,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal195 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal196 extends Era {
+  const Mortal196(this.value0);
+
+  factory Mortal196._decode(_i1.Input input) {
+    return Mortal196(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal196': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      196,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal196 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal197 extends Era {
+  const Mortal197(this.value0);
+
+  factory Mortal197._decode(_i1.Input input) {
+    return Mortal197(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal197': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      197,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal197 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal198 extends Era {
+  const Mortal198(this.value0);
+
+  factory Mortal198._decode(_i1.Input input) {
+    return Mortal198(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal198': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      198,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal198 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal199 extends Era {
+  const Mortal199(this.value0);
+
+  factory Mortal199._decode(_i1.Input input) {
+    return Mortal199(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal199': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      199,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal199 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal200 extends Era {
+  const Mortal200(this.value0);
+
+  factory Mortal200._decode(_i1.Input input) {
+    return Mortal200(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal200': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      200,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal200 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal201 extends Era {
+  const Mortal201(this.value0);
+
+  factory Mortal201._decode(_i1.Input input) {
+    return Mortal201(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal201': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      201,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal201 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal202 extends Era {
+  const Mortal202(this.value0);
+
+  factory Mortal202._decode(_i1.Input input) {
+    return Mortal202(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal202': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      202,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal202 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal203 extends Era {
+  const Mortal203(this.value0);
+
+  factory Mortal203._decode(_i1.Input input) {
+    return Mortal203(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal203': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      203,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal203 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal204 extends Era {
+  const Mortal204(this.value0);
+
+  factory Mortal204._decode(_i1.Input input) {
+    return Mortal204(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal204': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      204,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal204 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal205 extends Era {
+  const Mortal205(this.value0);
+
+  factory Mortal205._decode(_i1.Input input) {
+    return Mortal205(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal205': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      205,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal205 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal206 extends Era {
+  const Mortal206(this.value0);
+
+  factory Mortal206._decode(_i1.Input input) {
+    return Mortal206(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal206': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      206,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal206 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal207 extends Era {
+  const Mortal207(this.value0);
+
+  factory Mortal207._decode(_i1.Input input) {
+    return Mortal207(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal207': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      207,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal207 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal208 extends Era {
+  const Mortal208(this.value0);
+
+  factory Mortal208._decode(_i1.Input input) {
+    return Mortal208(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal208': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      208,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal208 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal209 extends Era {
+  const Mortal209(this.value0);
+
+  factory Mortal209._decode(_i1.Input input) {
+    return Mortal209(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal209': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      209,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal209 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal210 extends Era {
+  const Mortal210(this.value0);
+
+  factory Mortal210._decode(_i1.Input input) {
+    return Mortal210(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal210': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      210,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal210 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal211 extends Era {
+  const Mortal211(this.value0);
+
+  factory Mortal211._decode(_i1.Input input) {
+    return Mortal211(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal211': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      211,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal211 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal212 extends Era {
+  const Mortal212(this.value0);
+
+  factory Mortal212._decode(_i1.Input input) {
+    return Mortal212(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal212': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      212,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal212 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal213 extends Era {
+  const Mortal213(this.value0);
+
+  factory Mortal213._decode(_i1.Input input) {
+    return Mortal213(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal213': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      213,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal213 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal214 extends Era {
+  const Mortal214(this.value0);
+
+  factory Mortal214._decode(_i1.Input input) {
+    return Mortal214(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal214': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      214,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal214 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal215 extends Era {
+  const Mortal215(this.value0);
+
+  factory Mortal215._decode(_i1.Input input) {
+    return Mortal215(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal215': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      215,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal215 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal216 extends Era {
+  const Mortal216(this.value0);
+
+  factory Mortal216._decode(_i1.Input input) {
+    return Mortal216(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal216': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      216,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal216 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal217 extends Era {
+  const Mortal217(this.value0);
+
+  factory Mortal217._decode(_i1.Input input) {
+    return Mortal217(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal217': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      217,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal217 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal218 extends Era {
+  const Mortal218(this.value0);
+
+  factory Mortal218._decode(_i1.Input input) {
+    return Mortal218(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal218': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      218,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal218 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal219 extends Era {
+  const Mortal219(this.value0);
+
+  factory Mortal219._decode(_i1.Input input) {
+    return Mortal219(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal219': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      219,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal219 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal220 extends Era {
+  const Mortal220(this.value0);
+
+  factory Mortal220._decode(_i1.Input input) {
+    return Mortal220(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal220': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      220,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal220 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal221 extends Era {
+  const Mortal221(this.value0);
+
+  factory Mortal221._decode(_i1.Input input) {
+    return Mortal221(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal221': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      221,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal221 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal222 extends Era {
+  const Mortal222(this.value0);
+
+  factory Mortal222._decode(_i1.Input input) {
+    return Mortal222(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal222': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      222,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal222 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal223 extends Era {
+  const Mortal223(this.value0);
+
+  factory Mortal223._decode(_i1.Input input) {
+    return Mortal223(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal223': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      223,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal223 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal224 extends Era {
+  const Mortal224(this.value0);
+
+  factory Mortal224._decode(_i1.Input input) {
+    return Mortal224(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal224': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      224,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal224 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal225 extends Era {
+  const Mortal225(this.value0);
+
+  factory Mortal225._decode(_i1.Input input) {
+    return Mortal225(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal225': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      225,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal225 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal226 extends Era {
+  const Mortal226(this.value0);
+
+  factory Mortal226._decode(_i1.Input input) {
+    return Mortal226(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal226': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      226,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal226 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal227 extends Era {
+  const Mortal227(this.value0);
+
+  factory Mortal227._decode(_i1.Input input) {
+    return Mortal227(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal227': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      227,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal227 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal228 extends Era {
+  const Mortal228(this.value0);
+
+  factory Mortal228._decode(_i1.Input input) {
+    return Mortal228(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal228': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      228,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal228 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal229 extends Era {
+  const Mortal229(this.value0);
+
+  factory Mortal229._decode(_i1.Input input) {
+    return Mortal229(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal229': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      229,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal229 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal230 extends Era {
+  const Mortal230(this.value0);
+
+  factory Mortal230._decode(_i1.Input input) {
+    return Mortal230(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal230': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      230,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal230 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal231 extends Era {
+  const Mortal231(this.value0);
+
+  factory Mortal231._decode(_i1.Input input) {
+    return Mortal231(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal231': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      231,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal231 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal232 extends Era {
+  const Mortal232(this.value0);
+
+  factory Mortal232._decode(_i1.Input input) {
+    return Mortal232(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal232': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      232,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal232 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal233 extends Era {
+  const Mortal233(this.value0);
+
+  factory Mortal233._decode(_i1.Input input) {
+    return Mortal233(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal233': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      233,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal233 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal234 extends Era {
+  const Mortal234(this.value0);
+
+  factory Mortal234._decode(_i1.Input input) {
+    return Mortal234(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal234': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      234,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal234 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal235 extends Era {
+  const Mortal235(this.value0);
+
+  factory Mortal235._decode(_i1.Input input) {
+    return Mortal235(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal235': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      235,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal235 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal236 extends Era {
+  const Mortal236(this.value0);
+
+  factory Mortal236._decode(_i1.Input input) {
+    return Mortal236(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal236': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      236,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal236 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal237 extends Era {
+  const Mortal237(this.value0);
+
+  factory Mortal237._decode(_i1.Input input) {
+    return Mortal237(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal237': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      237,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal237 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal238 extends Era {
+  const Mortal238(this.value0);
+
+  factory Mortal238._decode(_i1.Input input) {
+    return Mortal238(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal238': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      238,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal238 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal239 extends Era {
+  const Mortal239(this.value0);
+
+  factory Mortal239._decode(_i1.Input input) {
+    return Mortal239(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal239': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      239,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal239 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal240 extends Era {
+  const Mortal240(this.value0);
+
+  factory Mortal240._decode(_i1.Input input) {
+    return Mortal240(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal240': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      240,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal240 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal241 extends Era {
+  const Mortal241(this.value0);
+
+  factory Mortal241._decode(_i1.Input input) {
+    return Mortal241(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal241': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      241,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal241 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal242 extends Era {
+  const Mortal242(this.value0);
+
+  factory Mortal242._decode(_i1.Input input) {
+    return Mortal242(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal242': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      242,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal242 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal243 extends Era {
+  const Mortal243(this.value0);
+
+  factory Mortal243._decode(_i1.Input input) {
+    return Mortal243(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal243': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      243,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal243 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal244 extends Era {
+  const Mortal244(this.value0);
+
+  factory Mortal244._decode(_i1.Input input) {
+    return Mortal244(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal244': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      244,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal244 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal245 extends Era {
+  const Mortal245(this.value0);
+
+  factory Mortal245._decode(_i1.Input input) {
+    return Mortal245(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal245': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      245,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal245 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal246 extends Era {
+  const Mortal246(this.value0);
+
+  factory Mortal246._decode(_i1.Input input) {
+    return Mortal246(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal246': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      246,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal246 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal247 extends Era {
+  const Mortal247(this.value0);
+
+  factory Mortal247._decode(_i1.Input input) {
+    return Mortal247(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal247': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      247,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal247 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal248 extends Era {
+  const Mortal248(this.value0);
+
+  factory Mortal248._decode(_i1.Input input) {
+    return Mortal248(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal248': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      248,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal248 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal249 extends Era {
+  const Mortal249(this.value0);
+
+  factory Mortal249._decode(_i1.Input input) {
+    return Mortal249(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal249': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      249,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal249 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal250 extends Era {
+  const Mortal250(this.value0);
+
+  factory Mortal250._decode(_i1.Input input) {
+    return Mortal250(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal250': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      250,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal250 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal251 extends Era {
+  const Mortal251(this.value0);
+
+  factory Mortal251._decode(_i1.Input input) {
+    return Mortal251(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal251': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      251,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal251 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal252 extends Era {
+  const Mortal252(this.value0);
+
+  factory Mortal252._decode(_i1.Input input) {
+    return Mortal252(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal252': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      252,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal252 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal253 extends Era {
+  const Mortal253(this.value0);
+
+  factory Mortal253._decode(_i1.Input input) {
+    return Mortal253(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal253': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      253,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal253 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal254 extends Era {
+  const Mortal254(this.value0);
+
+  factory Mortal254._decode(_i1.Input input) {
+    return Mortal254(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal254': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      254,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal254 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Mortal255 extends Era {
+  const Mortal255(this.value0);
+
+  factory Mortal255._decode(_i1.Input input) {
+    return Mortal255(_i1.U8Codec.codec.decode(input));
+  }
+
+  final int value0;
+
+  @override
+  Map<String, int> toJson() => {'Mortal255': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8Codec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      255,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Mortal255 && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/sp_runtime/generic/header/header.dart b/lib/src/models/generated/duniter/types/sp_runtime/generic/header/header.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d57ee715acc4b712a4f8a80a3c29a49b88d9c965
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_runtime/generic/header/header.dart
@@ -0,0 +1,135 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i4;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i5;
+
+import '../../../primitive_types/h256.dart' as _i2;
+import '../digest/digest.dart' as _i3;
+
+class Header {
+  const Header({
+    required this.parentHash,
+    required this.number,
+    required this.stateRoot,
+    required this.extrinsicsRoot,
+    required this.digest,
+  });
+
+  factory Header.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// Hash::Output
+  final _i2.H256 parentHash;
+
+  /// Number
+  final BigInt number;
+
+  /// Hash::Output
+  final _i2.H256 stateRoot;
+
+  /// Hash::Output
+  final _i2.H256 extrinsicsRoot;
+
+  /// Digest
+  final _i3.Digest digest;
+
+  static const $HeaderCodec codec = $HeaderCodec();
+
+  _i4.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'parentHash': parentHash.toList(),
+        'number': number,
+        'stateRoot': stateRoot.toList(),
+        'extrinsicsRoot': extrinsicsRoot.toList(),
+        'digest': digest.toJson(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Header &&
+          _i5.listsEqual(
+            other.parentHash,
+            parentHash,
+          ) &&
+          other.number == number &&
+          _i5.listsEqual(
+            other.stateRoot,
+            stateRoot,
+          ) &&
+          _i5.listsEqual(
+            other.extrinsicsRoot,
+            extrinsicsRoot,
+          ) &&
+          other.digest == digest;
+
+  @override
+  int get hashCode => Object.hash(
+        parentHash,
+        number,
+        stateRoot,
+        extrinsicsRoot,
+        digest,
+      );
+}
+
+class $HeaderCodec with _i1.Codec<Header> {
+  const $HeaderCodec();
+
+  @override
+  void encodeTo(
+    Header obj,
+    _i1.Output output,
+  ) {
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.parentHash,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      obj.number,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.stateRoot,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      obj.extrinsicsRoot,
+      output,
+    );
+    _i3.Digest.codec.encodeTo(
+      obj.digest,
+      output,
+    );
+  }
+
+  @override
+  Header decode(_i1.Input input) {
+    return Header(
+      parentHash: const _i1.U8ArrayCodec(32).decode(input),
+      number: _i1.CompactBigIntCodec.codec.decode(input),
+      stateRoot: const _i1.U8ArrayCodec(32).decode(input),
+      extrinsicsRoot: const _i1.U8ArrayCodec(32).decode(input),
+      digest: _i3.Digest.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Header obj) {
+    int size = 0;
+    size = size + const _i2.H256Codec().sizeHint(obj.parentHash);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(obj.number);
+    size = size + const _i2.H256Codec().sizeHint(obj.stateRoot);
+    size = size + const _i2.H256Codec().sizeHint(obj.extrinsicsRoot);
+    size = size + _i3.Digest.codec.sizeHint(obj.digest);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_runtime/generic/unchecked_extrinsic/unchecked_extrinsic.dart b/lib/src/models/generated/duniter/types/sp_runtime/generic/unchecked_extrinsic/unchecked_extrinsic.dart
new file mode 100644
index 0000000000000000000000000000000000000000..09f50caf5e617bb31bf9244617a6af842b4da23e
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_runtime/generic/unchecked_extrinsic/unchecked_extrinsic.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef UncheckedExtrinsic = List<int>;
+
+class UncheckedExtrinsicCodec with _i1.Codec<UncheckedExtrinsic> {
+  const UncheckedExtrinsicCodec();
+
+  @override
+  UncheckedExtrinsic decode(_i1.Input input) {
+    return _i1.U8SequenceCodec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    UncheckedExtrinsic value,
+    _i1.Output output,
+  ) {
+    _i1.U8SequenceCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(UncheckedExtrinsic value) {
+    return _i1.U8SequenceCodec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_runtime/module_error.dart b/lib/src/models/generated/duniter/types/sp_runtime/module_error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6ed8f3d08df84e1c76827a46b7b4776a47e50b03
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_runtime/module_error.dart
@@ -0,0 +1,87 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i3;
+
+class ModuleError {
+  const ModuleError({
+    required this.index,
+    required this.error,
+  });
+
+  factory ModuleError.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// u8
+  final int index;
+
+  /// [u8; MAX_MODULE_ERROR_ENCODED_SIZE]
+  final List<int> error;
+
+  static const $ModuleErrorCodec codec = $ModuleErrorCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'index': index,
+        'error': error.toList(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is ModuleError &&
+          other.index == index &&
+          _i3.listsEqual(
+            other.error,
+            error,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        index,
+        error,
+      );
+}
+
+class $ModuleErrorCodec with _i1.Codec<ModuleError> {
+  const $ModuleErrorCodec();
+
+  @override
+  void encodeTo(
+    ModuleError obj,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      obj.index,
+      output,
+    );
+    const _i1.U8ArrayCodec(4).encodeTo(
+      obj.error,
+      output,
+    );
+  }
+
+  @override
+  ModuleError decode(_i1.Input input) {
+    return ModuleError(
+      index: _i1.U8Codec.codec.decode(input),
+      error: const _i1.U8ArrayCodec(4).decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(ModuleError obj) {
+    int size = 0;
+    size = size + _i1.U8Codec.codec.sizeHint(obj.index);
+    size = size + const _i1.U8ArrayCodec(4).sizeHint(obj.error);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_runtime/multi_signature.dart b/lib/src/models/generated/duniter/types/sp_runtime/multi_signature.dart
new file mode 100644
index 0000000000000000000000000000000000000000..cb4708c272b82ce64ccb4d7dee254aca01073148
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_runtime/multi_signature.dart
@@ -0,0 +1,242 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i6;
+
+import '../sp_core/ecdsa/signature.dart' as _i5;
+import '../sp_core/ed25519/signature.dart' as _i3;
+import '../sp_core/sr25519/signature.dart' as _i4;
+
+abstract class MultiSignature {
+  const MultiSignature();
+
+  factory MultiSignature.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $MultiSignatureCodec codec = $MultiSignatureCodec();
+
+  static const $MultiSignature values = $MultiSignature();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, List<int>> toJson();
+}
+
+class $MultiSignature {
+  const $MultiSignature();
+
+  Ed25519 ed25519(_i3.Signature value0) {
+    return Ed25519(value0);
+  }
+
+  Sr25519 sr25519(_i4.Signature value0) {
+    return Sr25519(value0);
+  }
+
+  Ecdsa ecdsa(_i5.Signature value0) {
+    return Ecdsa(value0);
+  }
+}
+
+class $MultiSignatureCodec with _i1.Codec<MultiSignature> {
+  const $MultiSignatureCodec();
+
+  @override
+  MultiSignature decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Ed25519._decode(input);
+      case 1:
+        return Sr25519._decode(input);
+      case 2:
+        return Ecdsa._decode(input);
+      default:
+        throw Exception('MultiSignature: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    MultiSignature value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Ed25519:
+        (value as Ed25519).encodeTo(output);
+        break;
+      case Sr25519:
+        (value as Sr25519).encodeTo(output);
+        break;
+      case Ecdsa:
+        (value as Ecdsa).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'MultiSignature: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(MultiSignature value) {
+    switch (value.runtimeType) {
+      case Ed25519:
+        return (value as Ed25519)._sizeHint();
+      case Sr25519:
+        return (value as Sr25519)._sizeHint();
+      case Ecdsa:
+        return (value as Ecdsa)._sizeHint();
+      default:
+        throw Exception(
+            'MultiSignature: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class Ed25519 extends MultiSignature {
+  const Ed25519(this.value0);
+
+  factory Ed25519._decode(_i1.Input input) {
+    return Ed25519(const _i1.U8ArrayCodec(64).decode(input));
+  }
+
+  /// ed25519::Signature
+  final _i3.Signature value0;
+
+  @override
+  Map<String, List<int>> toJson() => {'Ed25519': value0.toList()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.SignatureCodec().sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(64).encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Ed25519 &&
+          _i6.listsEqual(
+            other.value0,
+            value0,
+          );
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Sr25519 extends MultiSignature {
+  const Sr25519(this.value0);
+
+  factory Sr25519._decode(_i1.Input input) {
+    return Sr25519(const _i1.U8ArrayCodec(64).decode(input));
+  }
+
+  /// sr25519::Signature
+  final _i4.Signature value0;
+
+  @override
+  Map<String, List<int>> toJson() => {'Sr25519': value0.toList()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i4.SignatureCodec().sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    const _i1.U8ArrayCodec(64).encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Sr25519 &&
+          _i6.listsEqual(
+            other.value0,
+            value0,
+          );
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Ecdsa extends MultiSignature {
+  const Ecdsa(this.value0);
+
+  factory Ecdsa._decode(_i1.Input input) {
+    return Ecdsa(const _i1.U8ArrayCodec(65).decode(input));
+  }
+
+  /// ecdsa::Signature
+  final _i5.Signature value0;
+
+  @override
+  Map<String, List<int>> toJson() => {'Ecdsa': value0.toList()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i5.SignatureCodec().sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    const _i1.U8ArrayCodec(65).encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Ecdsa &&
+          _i6.listsEqual(
+            other.value0,
+            value0,
+          );
+
+  @override
+  int get hashCode => value0.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/sp_runtime/multiaddress/multi_address.dart b/lib/src/models/generated/duniter/types/sp_runtime/multiaddress/multi_address.dart
new file mode 100644
index 0000000000000000000000000000000000000000..03d9629eae35217dc23437dc8cf74d660614cf48
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_runtime/multiaddress/multi_address.dart
@@ -0,0 +1,350 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+
+abstract class MultiAddress {
+  const MultiAddress();
+
+  factory MultiAddress.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  static const $MultiAddressCodec codec = $MultiAddressCodec();
+
+  static const $MultiAddress values = $MultiAddress();
+
+  _i2.Uint8List encode() {
+    final output = _i1.ByteOutput(codec.sizeHint(this));
+    codec.encodeTo(this, output);
+    return output.toBytes();
+  }
+
+  int sizeHint() {
+    return codec.sizeHint(this);
+  }
+
+  Map<String, dynamic> toJson();
+}
+
+class $MultiAddress {
+  const $MultiAddress();
+
+  Id id(_i3.AccountId32 value0) {
+    return Id(value0);
+  }
+
+  Index index(BigInt value0) {
+    return Index(value0);
+  }
+
+  Raw raw(List<int> value0) {
+    return Raw(value0);
+  }
+
+  Address32 address32(List<int> value0) {
+    return Address32(value0);
+  }
+
+  Address20 address20(List<int> value0) {
+    return Address20(value0);
+  }
+}
+
+class $MultiAddressCodec with _i1.Codec<MultiAddress> {
+  const $MultiAddressCodec();
+
+  @override
+  MultiAddress decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return Id._decode(input);
+      case 1:
+        return Index._decode(input);
+      case 2:
+        return Raw._decode(input);
+      case 3:
+        return Address32._decode(input);
+      case 4:
+        return Address20._decode(input);
+      default:
+        throw Exception('MultiAddress: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    MultiAddress value,
+    _i1.Output output,
+  ) {
+    switch (value.runtimeType) {
+      case Id:
+        (value as Id).encodeTo(output);
+        break;
+      case Index:
+        (value as Index).encodeTo(output);
+        break;
+      case Raw:
+        (value as Raw).encodeTo(output);
+        break;
+      case Address32:
+        (value as Address32).encodeTo(output);
+        break;
+      case Address20:
+        (value as Address20).encodeTo(output);
+        break;
+      default:
+        throw Exception(
+            'MultiAddress: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+
+  @override
+  int sizeHint(MultiAddress value) {
+    switch (value.runtimeType) {
+      case Id:
+        return (value as Id)._sizeHint();
+      case Index:
+        return (value as Index)._sizeHint();
+      case Raw:
+        return (value as Raw)._sizeHint();
+      case Address32:
+        return (value as Address32)._sizeHint();
+      case Address20:
+        return (value as Address20)._sizeHint();
+      default:
+        throw Exception(
+            'MultiAddress: Unsupported "$value" of type "${value.runtimeType}"');
+    }
+  }
+}
+
+class Id extends MultiAddress {
+  const Id(this.value0);
+
+  factory Id._decode(_i1.Input input) {
+    return Id(const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// AccountId
+  final _i3.AccountId32 value0;
+
+  @override
+  Map<String, List<int>> toJson() => {'Id': value0.toList()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i3.AccountId32Codec().sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      0,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Id &&
+          _i4.listsEqual(
+            other.value0,
+            value0,
+          );
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Index extends MultiAddress {
+  const Index(this.value0);
+
+  factory Index._decode(_i1.Input input) {
+    return Index(_i1.CompactBigIntCodec.codec.decode(input));
+  }
+
+  /// AccountIndex
+  final BigInt value0;
+
+  @override
+  Map<String, BigInt> toJson() => {'Index': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      1,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Index && other.value0 == value0;
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Raw extends MultiAddress {
+  const Raw(this.value0);
+
+  factory Raw._decode(_i1.Input input) {
+    return Raw(_i1.U8SequenceCodec.codec.decode(input));
+  }
+
+  /// Vec<u8>
+  final List<int> value0;
+
+  @override
+  Map<String, List<int>> toJson() => {'Raw': value0};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + _i1.U8SequenceCodec.codec.sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      2,
+      output,
+    );
+    _i1.U8SequenceCodec.codec.encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Raw &&
+          _i4.listsEqual(
+            other.value0,
+            value0,
+          );
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Address32 extends MultiAddress {
+  const Address32(this.value0);
+
+  factory Address32._decode(_i1.Input input) {
+    return Address32(const _i1.U8ArrayCodec(32).decode(input));
+  }
+
+  /// [u8; 32]
+  final List<int> value0;
+
+  @override
+  Map<String, List<int>> toJson() => {'Address32': value0.toList()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i1.U8ArrayCodec(32).sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      3,
+      output,
+    );
+    const _i1.U8ArrayCodec(32).encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Address32 &&
+          _i4.listsEqual(
+            other.value0,
+            value0,
+          );
+
+  @override
+  int get hashCode => value0.hashCode;
+}
+
+class Address20 extends MultiAddress {
+  const Address20(this.value0);
+
+  factory Address20._decode(_i1.Input input) {
+    return Address20(const _i1.U8ArrayCodec(20).decode(input));
+  }
+
+  /// [u8; 20]
+  final List<int> value0;
+
+  @override
+  Map<String, List<int>> toJson() => {'Address20': value0.toList()};
+
+  int _sizeHint() {
+    int size = 1;
+    size = size + const _i1.U8ArrayCodec(20).sizeHint(value0);
+    return size;
+  }
+
+  void encodeTo(_i1.Output output) {
+    _i1.U8Codec.codec.encodeTo(
+      4,
+      output,
+    );
+    const _i1.U8ArrayCodec(20).encodeTo(
+      value0,
+      output,
+    );
+  }
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Address20 &&
+          _i4.listsEqual(
+            other.value0,
+            value0,
+          );
+
+  @override
+  int get hashCode => value0.hashCode;
+}
diff --git a/lib/src/models/generated/duniter/types/sp_runtime/token_error.dart b/lib/src/models/generated/duniter/types/sp_runtime/token_error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..1b882412c1d094b90e9fdfafa207a663b6ed7c79
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_runtime/token_error.dart
@@ -0,0 +1,81 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum TokenError {
+  fundsUnavailable('FundsUnavailable', 0),
+  onlyProvider('OnlyProvider', 1),
+  belowMinimum('BelowMinimum', 2),
+  cannotCreate('CannotCreate', 3),
+  unknownAsset('UnknownAsset', 4),
+  frozen('Frozen', 5),
+  unsupported('Unsupported', 6),
+  cannotCreateHold('CannotCreateHold', 7),
+  notExpendable('NotExpendable', 8),
+  blocked('Blocked', 9);
+
+  const TokenError(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory TokenError.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $TokenErrorCodec codec = $TokenErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $TokenErrorCodec with _i1.Codec<TokenError> {
+  const $TokenErrorCodec();
+
+  @override
+  TokenError decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return TokenError.fundsUnavailable;
+      case 1:
+        return TokenError.onlyProvider;
+      case 2:
+        return TokenError.belowMinimum;
+      case 3:
+        return TokenError.cannotCreate;
+      case 4:
+        return TokenError.unknownAsset;
+      case 5:
+        return TokenError.frozen;
+      case 6:
+        return TokenError.unsupported;
+      case 7:
+        return TokenError.cannotCreateHold;
+      case 8:
+        return TokenError.notExpendable;
+      case 9:
+        return TokenError.blocked;
+      default:
+        throw Exception('TokenError: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    TokenError value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_runtime/traits/blake_two256.dart b/lib/src/models/generated/duniter/types/sp_runtime/traits/blake_two256.dart
new file mode 100644
index 0000000000000000000000000000000000000000..84c37e184671ddec1a0169403f2643bc054ffb33
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_runtime/traits/blake_two256.dart
@@ -0,0 +1,29 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+typedef BlakeTwo256 = dynamic;
+
+class BlakeTwo256Codec with _i1.Codec<BlakeTwo256> {
+  const BlakeTwo256Codec();
+
+  @override
+  BlakeTwo256 decode(_i1.Input input) {
+    return _i1.NullCodec.codec.decode(input);
+  }
+
+  @override
+  void encodeTo(
+    BlakeTwo256 value,
+    _i1.Output output,
+  ) {
+    _i1.NullCodec.codec.encodeTo(
+      value,
+      output,
+    );
+  }
+
+  @override
+  int sizeHint(BlakeTwo256 value) {
+    return _i1.NullCodec.codec.sizeHint(value);
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_runtime/transactional_error.dart b/lib/src/models/generated/duniter/types/sp_runtime/transactional_error.dart
new file mode 100644
index 0000000000000000000000000000000000000000..864c12afd89574c09c7a3ced5250462e3fa5d6bc
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_runtime/transactional_error.dart
@@ -0,0 +1,57 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+enum TransactionalError {
+  limitReached('LimitReached', 0),
+  noLayer('NoLayer', 1);
+
+  const TransactionalError(
+    this.variantName,
+    this.codecIndex,
+  );
+
+  factory TransactionalError.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  final String variantName;
+
+  final int codecIndex;
+
+  static const $TransactionalErrorCodec codec = $TransactionalErrorCodec();
+
+  String toJson() => variantName;
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+}
+
+class $TransactionalErrorCodec with _i1.Codec<TransactionalError> {
+  const $TransactionalErrorCodec();
+
+  @override
+  TransactionalError decode(_i1.Input input) {
+    final index = _i1.U8Codec.codec.decode(input);
+    switch (index) {
+      case 0:
+        return TransactionalError.limitReached;
+      case 1:
+        return TransactionalError.noLayer;
+      default:
+        throw Exception('TransactionalError: Invalid variant index: "$index"');
+    }
+  }
+
+  @override
+  void encodeTo(
+    TransactionalError value,
+    _i1.Output output,
+  ) {
+    _i1.U8Codec.codec.encodeTo(
+      value.codecIndex,
+      output,
+    );
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_session/membership_proof.dart b/lib/src/models/generated/duniter/types/sp_session/membership_proof.dart
new file mode 100644
index 0000000000000000000000000000000000000000..862c13af01e355fb10e1459f44ce557a428bb4c5
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_session/membership_proof.dart
@@ -0,0 +1,103 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i3;
+
+class MembershipProof {
+  const MembershipProof({
+    required this.session,
+    required this.trieNodes,
+    required this.validatorCount,
+  });
+
+  factory MembershipProof.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// SessionIndex
+  final int session;
+
+  /// Vec<Vec<u8>>
+  final List<List<int>> trieNodes;
+
+  /// ValidatorCount
+  final int validatorCount;
+
+  static const $MembershipProofCodec codec = $MembershipProofCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'session': session,
+        'trieNodes': trieNodes.map((value) => value).toList(),
+        'validatorCount': validatorCount,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is MembershipProof &&
+          other.session == session &&
+          _i3.listsEqual(
+            other.trieNodes,
+            trieNodes,
+          ) &&
+          other.validatorCount == validatorCount;
+
+  @override
+  int get hashCode => Object.hash(
+        session,
+        trieNodes,
+        validatorCount,
+      );
+}
+
+class $MembershipProofCodec with _i1.Codec<MembershipProof> {
+  const $MembershipProofCodec();
+
+  @override
+  void encodeTo(
+    MembershipProof obj,
+    _i1.Output output,
+  ) {
+    _i1.U32Codec.codec.encodeTo(
+      obj.session,
+      output,
+    );
+    const _i1.SequenceCodec<List<int>>(_i1.U8SequenceCodec.codec).encodeTo(
+      obj.trieNodes,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.validatorCount,
+      output,
+    );
+  }
+
+  @override
+  MembershipProof decode(_i1.Input input) {
+    return MembershipProof(
+      session: _i1.U32Codec.codec.decode(input),
+      trieNodes: const _i1.SequenceCodec<List<int>>(_i1.U8SequenceCodec.codec)
+          .decode(input),
+      validatorCount: _i1.U32Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(MembershipProof obj) {
+    int size = 0;
+    size = size + _i1.U32Codec.codec.sizeHint(obj.session);
+    size = size +
+        const _i1.SequenceCodec<List<int>>(_i1.U8SequenceCodec.codec)
+            .sizeHint(obj.trieNodes);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.validatorCount);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_staking/offence/offence_details.dart b/lib/src/models/generated/duniter/types/sp_staking/offence/offence_details.dart
new file mode 100644
index 0000000000000000000000000000000000000000..cebb33aeb5f8def8691006e26a1cab0b328d1829
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_staking/offence/offence_details.dart
@@ -0,0 +1,110 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i5;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i6;
+
+import '../../common_runtime/entities/validator_full_identification.dart'
+    as _i4;
+import '../../sp_core/crypto/account_id32.dart' as _i3;
+import '../../tuples.dart' as _i2;
+
+class OffenceDetails {
+  const OffenceDetails({
+    required this.offender,
+    required this.reporters,
+  });
+
+  factory OffenceDetails.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// Offender
+  final _i2.Tuple2<_i3.AccountId32, _i4.ValidatorFullIdentification> offender;
+
+  /// Vec<Reporter>
+  final List<_i3.AccountId32> reporters;
+
+  static const $OffenceDetailsCodec codec = $OffenceDetailsCodec();
+
+  _i5.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, List<dynamic>> toJson() => {
+        'offender': [
+          offender.value0.toList(),
+          null,
+        ],
+        'reporters': reporters.map((value) => value.toList()).toList(),
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is OffenceDetails &&
+          other.offender == offender &&
+          _i6.listsEqual(
+            other.reporters,
+            reporters,
+          );
+
+  @override
+  int get hashCode => Object.hash(
+        offender,
+        reporters,
+      );
+}
+
+class $OffenceDetailsCodec with _i1.Codec<OffenceDetails> {
+  const $OffenceDetailsCodec();
+
+  @override
+  void encodeTo(
+    OffenceDetails obj,
+    _i1.Output output,
+  ) {
+    const _i2.Tuple2Codec<_i3.AccountId32, _i4.ValidatorFullIdentification>(
+      _i3.AccountId32Codec(),
+      _i4.ValidatorFullIdentificationCodec(),
+    ).encodeTo(
+      obj.offender,
+      output,
+    );
+    const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec()).encodeTo(
+      obj.reporters,
+      output,
+    );
+  }
+
+  @override
+  OffenceDetails decode(_i1.Input input) {
+    return OffenceDetails(
+      offender: const _i2
+          .Tuple2Codec<_i3.AccountId32, _i4.ValidatorFullIdentification>(
+        _i3.AccountId32Codec(),
+        _i4.ValidatorFullIdentificationCodec(),
+      ).decode(input),
+      reporters:
+          const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+              .decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(OffenceDetails obj) {
+    int size = 0;
+    size = size +
+        const _i2.Tuple2Codec<_i3.AccountId32, _i4.ValidatorFullIdentification>(
+          _i3.AccountId32Codec(),
+          _i4.ValidatorFullIdentificationCodec(),
+        ).sizeHint(obj.offender);
+    size = size +
+        const _i1.SequenceCodec<_i3.AccountId32>(_i3.AccountId32Codec())
+            .sizeHint(obj.reporters);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_version/runtime_version.dart b/lib/src/models/generated/duniter/types/sp_version/runtime_version.dart
new file mode 100644
index 0000000000000000000000000000000000000000..fdf3f6d8441e5228e764d487fd19fc543f187b42
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_version/runtime_version.dart
@@ -0,0 +1,181 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i3;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+import 'package:quiver/collection.dart' as _i4;
+
+import '../cow.dart' as _i2;
+import '../tuples.dart' as _i5;
+
+class RuntimeVersion {
+  const RuntimeVersion({
+    required this.specName,
+    required this.implName,
+    required this.authoringVersion,
+    required this.specVersion,
+    required this.implVersion,
+    required this.apis,
+    required this.transactionVersion,
+    required this.stateVersion,
+  });
+
+  factory RuntimeVersion.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// RuntimeString
+  final String specName;
+
+  /// RuntimeString
+  final String implName;
+
+  /// u32
+  final int authoringVersion;
+
+  /// u32
+  final int specVersion;
+
+  /// u32
+  final int implVersion;
+
+  /// ApisVec
+  final _i2.Cow apis;
+
+  /// u32
+  final int transactionVersion;
+
+  /// u8
+  final int stateVersion;
+
+  static const $RuntimeVersionCodec codec = $RuntimeVersionCodec();
+
+  _i3.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, dynamic> toJson() => {
+        'specName': specName,
+        'implName': implName,
+        'authoringVersion': authoringVersion,
+        'specVersion': specVersion,
+        'implVersion': implVersion,
+        'apis': apis
+            .map((value) => [
+                  value.value0.toList(),
+                  value.value1,
+                ])
+            .toList(),
+        'transactionVersion': transactionVersion,
+        'stateVersion': stateVersion,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RuntimeVersion &&
+          other.specName == specName &&
+          other.implName == implName &&
+          other.authoringVersion == authoringVersion &&
+          other.specVersion == specVersion &&
+          other.implVersion == implVersion &&
+          _i4.listsEqual(
+            other.apis,
+            apis,
+          ) &&
+          other.transactionVersion == transactionVersion &&
+          other.stateVersion == stateVersion;
+
+  @override
+  int get hashCode => Object.hash(
+        specName,
+        implName,
+        authoringVersion,
+        specVersion,
+        implVersion,
+        apis,
+        transactionVersion,
+        stateVersion,
+      );
+}
+
+class $RuntimeVersionCodec with _i1.Codec<RuntimeVersion> {
+  const $RuntimeVersionCodec();
+
+  @override
+  void encodeTo(
+    RuntimeVersion obj,
+    _i1.Output output,
+  ) {
+    _i1.StrCodec.codec.encodeTo(
+      obj.specName,
+      output,
+    );
+    _i1.StrCodec.codec.encodeTo(
+      obj.implName,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.authoringVersion,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.specVersion,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.implVersion,
+      output,
+    );
+    const _i1.SequenceCodec<_i5.Tuple2<List<int>, int>>(
+        _i5.Tuple2Codec<List<int>, int>(
+      _i1.U8ArrayCodec(8),
+      _i1.U32Codec.codec,
+    )).encodeTo(
+      obj.apis,
+      output,
+    );
+    _i1.U32Codec.codec.encodeTo(
+      obj.transactionVersion,
+      output,
+    );
+    _i1.U8Codec.codec.encodeTo(
+      obj.stateVersion,
+      output,
+    );
+  }
+
+  @override
+  RuntimeVersion decode(_i1.Input input) {
+    return RuntimeVersion(
+      specName: _i1.StrCodec.codec.decode(input),
+      implName: _i1.StrCodec.codec.decode(input),
+      authoringVersion: _i1.U32Codec.codec.decode(input),
+      specVersion: _i1.U32Codec.codec.decode(input),
+      implVersion: _i1.U32Codec.codec.decode(input),
+      apis: const _i1.SequenceCodec<_i5.Tuple2<List<int>, int>>(
+          _i5.Tuple2Codec<List<int>, int>(
+        _i1.U8ArrayCodec(8),
+        _i1.U32Codec.codec,
+      )).decode(input),
+      transactionVersion: _i1.U32Codec.codec.decode(input),
+      stateVersion: _i1.U8Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(RuntimeVersion obj) {
+    int size = 0;
+    size = size + _i1.StrCodec.codec.sizeHint(obj.specName);
+    size = size + _i1.StrCodec.codec.sizeHint(obj.implName);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.authoringVersion);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.specVersion);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.implVersion);
+    size = size + const _i2.CowCodec().sizeHint(obj.apis);
+    size = size + _i1.U32Codec.codec.sizeHint(obj.transactionVersion);
+    size = size + _i1.U8Codec.codec.sizeHint(obj.stateVersion);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_weights/runtime_db_weight.dart b/lib/src/models/generated/duniter/types/sp_weights/runtime_db_weight.dart
new file mode 100644
index 0000000000000000000000000000000000000000..ad7cd305222ad1afbe07376fe018b0637217fd0c
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_weights/runtime_db_weight.dart
@@ -0,0 +1,81 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class RuntimeDbWeight {
+  const RuntimeDbWeight({
+    required this.read,
+    required this.write,
+  });
+
+  factory RuntimeDbWeight.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// u64
+  final BigInt read;
+
+  /// u64
+  final BigInt write;
+
+  static const $RuntimeDbWeightCodec codec = $RuntimeDbWeightCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, BigInt> toJson() => {
+        'read': read,
+        'write': write,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is RuntimeDbWeight && other.read == read && other.write == write;
+
+  @override
+  int get hashCode => Object.hash(
+        read,
+        write,
+      );
+}
+
+class $RuntimeDbWeightCodec with _i1.Codec<RuntimeDbWeight> {
+  const $RuntimeDbWeightCodec();
+
+  @override
+  void encodeTo(
+    RuntimeDbWeight obj,
+    _i1.Output output,
+  ) {
+    _i1.U64Codec.codec.encodeTo(
+      obj.read,
+      output,
+    );
+    _i1.U64Codec.codec.encodeTo(
+      obj.write,
+      output,
+    );
+  }
+
+  @override
+  RuntimeDbWeight decode(_i1.Input input) {
+    return RuntimeDbWeight(
+      read: _i1.U64Codec.codec.decode(input),
+      write: _i1.U64Codec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(RuntimeDbWeight obj) {
+    int size = 0;
+    size = size + _i1.U64Codec.codec.sizeHint(obj.read);
+    size = size + _i1.U64Codec.codec.sizeHint(obj.write);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/sp_weights/weight_v2/weight.dart b/lib/src/models/generated/duniter/types/sp_weights/weight_v2/weight.dart
new file mode 100644
index 0000000000000000000000000000000000000000..7d7e85996f7dd954ab379f8db04a9d3de5074786
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/sp_weights/weight_v2/weight.dart
@@ -0,0 +1,83 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'dart:typed_data' as _i2;
+
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class Weight {
+  const Weight({
+    required this.refTime,
+    required this.proofSize,
+  });
+
+  factory Weight.decode(_i1.Input input) {
+    return codec.decode(input);
+  }
+
+  /// u64
+  final BigInt refTime;
+
+  /// u64
+  final BigInt proofSize;
+
+  static const $WeightCodec codec = $WeightCodec();
+
+  _i2.Uint8List encode() {
+    return codec.encode(this);
+  }
+
+  Map<String, BigInt> toJson() => {
+        'refTime': refTime,
+        'proofSize': proofSize,
+      };
+
+  @override
+  bool operator ==(Object other) =>
+      identical(
+        this,
+        other,
+      ) ||
+      other is Weight &&
+          other.refTime == refTime &&
+          other.proofSize == proofSize;
+
+  @override
+  int get hashCode => Object.hash(
+        refTime,
+        proofSize,
+      );
+}
+
+class $WeightCodec with _i1.Codec<Weight> {
+  const $WeightCodec();
+
+  @override
+  void encodeTo(
+    Weight obj,
+    _i1.Output output,
+  ) {
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      obj.refTime,
+      output,
+    );
+    _i1.CompactBigIntCodec.codec.encodeTo(
+      obj.proofSize,
+      output,
+    );
+  }
+
+  @override
+  Weight decode(_i1.Input input) {
+    return Weight(
+      refTime: _i1.CompactBigIntCodec.codec.decode(input),
+      proofSize: _i1.CompactBigIntCodec.codec.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Weight obj) {
+    int size = 0;
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(obj.refTime);
+    size = size + _i1.CompactBigIntCodec.codec.sizeHint(obj.proofSize);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/tuples.dart b/lib/src/models/generated/duniter/types/tuples.dart
new file mode 100644
index 0000000000000000000000000000000000000000..b42e59e2ae84db29b1fb6ea530b908b11765d625
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/tuples.dart
@@ -0,0 +1,49 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class Tuple2<T0, T1> {
+  const Tuple2(
+    this.value0,
+    this.value1,
+  );
+
+  final T0 value0;
+
+  final T1 value1;
+}
+
+class Tuple2Codec<T0, T1> with _i1.Codec<Tuple2<T0, T1>> {
+  const Tuple2Codec(
+    this.codec0,
+    this.codec1,
+  );
+
+  final _i1.Codec<T0> codec0;
+
+  final _i1.Codec<T1> codec1;
+
+  @override
+  void encodeTo(
+    Tuple2<T0, T1> tuple,
+    _i1.Output output,
+  ) {
+    codec0.encodeTo(tuple.value0, output);
+    codec1.encodeTo(tuple.value1, output);
+  }
+
+  @override
+  Tuple2<T0, T1> decode(_i1.Input input) {
+    return Tuple2(
+      codec0.decode(input),
+      codec1.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Tuple2<T0, T1> tuple) {
+    int size = 0;
+    size += codec0.sizeHint(tuple.value0);
+    size += codec1.sizeHint(tuple.value1);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/tuples_1.dart b/lib/src/models/generated/duniter/types/tuples_1.dart
new file mode 100644
index 0000000000000000000000000000000000000000..b42e59e2ae84db29b1fb6ea530b908b11765d625
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/tuples_1.dart
@@ -0,0 +1,49 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class Tuple2<T0, T1> {
+  const Tuple2(
+    this.value0,
+    this.value1,
+  );
+
+  final T0 value0;
+
+  final T1 value1;
+}
+
+class Tuple2Codec<T0, T1> with _i1.Codec<Tuple2<T0, T1>> {
+  const Tuple2Codec(
+    this.codec0,
+    this.codec1,
+  );
+
+  final _i1.Codec<T0> codec0;
+
+  final _i1.Codec<T1> codec1;
+
+  @override
+  void encodeTo(
+    Tuple2<T0, T1> tuple,
+    _i1.Output output,
+  ) {
+    codec0.encodeTo(tuple.value0, output);
+    codec1.encodeTo(tuple.value1, output);
+  }
+
+  @override
+  Tuple2<T0, T1> decode(_i1.Input input) {
+    return Tuple2(
+      codec0.decode(input),
+      codec1.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Tuple2<T0, T1> tuple) {
+    int size = 0;
+    size += codec0.sizeHint(tuple.value0);
+    size += codec1.sizeHint(tuple.value1);
+    return size;
+  }
+}
diff --git a/lib/src/models/generated/duniter/types/tuples_2.dart b/lib/src/models/generated/duniter/types/tuples_2.dart
new file mode 100644
index 0000000000000000000000000000000000000000..9dbc941332db6f11abcabaa2f184ae57a4b7109a
--- /dev/null
+++ b/lib/src/models/generated/duniter/types/tuples_2.dart
@@ -0,0 +1,104 @@
+// ignore_for_file: no_leading_underscores_for_library_prefixes
+import 'package:polkadart/scale_codec.dart' as _i1;
+
+class Tuple8<T0, T1, T2, T3, T4, T5, T6, T7> {
+  const Tuple8(
+    this.value0,
+    this.value1,
+    this.value2,
+    this.value3,
+    this.value4,
+    this.value5,
+    this.value6,
+    this.value7,
+  );
+
+  final T0 value0;
+
+  final T1 value1;
+
+  final T2 value2;
+
+  final T3 value3;
+
+  final T4 value4;
+
+  final T5 value5;
+
+  final T6 value6;
+
+  final T7 value7;
+}
+
+class Tuple8Codec<T0, T1, T2, T3, T4, T5, T6, T7>
+    with _i1.Codec<Tuple8<T0, T1, T2, T3, T4, T5, T6, T7>> {
+  const Tuple8Codec(
+    this.codec0,
+    this.codec1,
+    this.codec2,
+    this.codec3,
+    this.codec4,
+    this.codec5,
+    this.codec6,
+    this.codec7,
+  );
+
+  final _i1.Codec<T0> codec0;
+
+  final _i1.Codec<T1> codec1;
+
+  final _i1.Codec<T2> codec2;
+
+  final _i1.Codec<T3> codec3;
+
+  final _i1.Codec<T4> codec4;
+
+  final _i1.Codec<T5> codec5;
+
+  final _i1.Codec<T6> codec6;
+
+  final _i1.Codec<T7> codec7;
+
+  @override
+  void encodeTo(
+    Tuple8<T0, T1, T2, T3, T4, T5, T6, T7> tuple,
+    _i1.Output output,
+  ) {
+    codec0.encodeTo(tuple.value0, output);
+    codec1.encodeTo(tuple.value1, output);
+    codec2.encodeTo(tuple.value2, output);
+    codec3.encodeTo(tuple.value3, output);
+    codec4.encodeTo(tuple.value4, output);
+    codec5.encodeTo(tuple.value5, output);
+    codec6.encodeTo(tuple.value6, output);
+    codec7.encodeTo(tuple.value7, output);
+  }
+
+  @override
+  Tuple8<T0, T1, T2, T3, T4, T5, T6, T7> decode(_i1.Input input) {
+    return Tuple8(
+      codec0.decode(input),
+      codec1.decode(input),
+      codec2.decode(input),
+      codec3.decode(input),
+      codec4.decode(input),
+      codec5.decode(input),
+      codec6.decode(input),
+      codec7.decode(input),
+    );
+  }
+
+  @override
+  int sizeHint(Tuple8<T0, T1, T2, T3, T4, T5, T6, T7> tuple) {
+    int size = 0;
+    size += codec0.sizeHint(tuple.value0);
+    size += codec1.sizeHint(tuple.value1);
+    size += codec2.sizeHint(tuple.value2);
+    size += codec3.sizeHint(tuple.value3);
+    size += codec4.sizeHint(tuple.value4);
+    size += codec5.sizeHint(tuple.value5);
+    size += codec6.sizeHint(tuple.value6);
+    size += codec7.sizeHint(tuple.value7);
+    return size;
+  }
+}
diff --git a/lib/src/models/graphql/accounts.graphql b/lib/src/models/graphql/accounts.graphql
new file mode 100644
index 0000000000000000000000000000000000000000..a2d2dab5c9832f88013395660b09c4f31f4300c2
--- /dev/null
+++ b/lib/src/models/graphql/accounts.graphql
@@ -0,0 +1,72 @@
+query GetIdentityName($address: String!) {
+  accountConnection(where: { id: { _eq: $address } }) {
+    edges {
+      node {
+        identity {
+          name
+        }
+      }
+    }
+  }
+}
+
+query GetAccountHistory($address: String!, $after: String, $first: Int = 20) {
+  transferConnection(
+    after: $after
+    first: $first
+    orderBy: { timestamp: DESC }
+    where: { _or: [{ fromId: { _eq: $address } }, { toId: { _eq: $address } }] }
+  ) {
+    edges {
+      node {
+        amount
+        timestamp
+        fromId
+        from {
+          identity {
+            name
+          }
+        }
+        toId
+        to {
+          identity {
+            name
+          }
+        }
+      }
+    }
+    pageInfo {
+      endCursor
+      hasNextPage
+    }
+  }
+}
+
+subscription SubAccountHistory($address: String!) {
+  transferConnection(
+    first: 1
+    orderBy: { timestamp: DESC }
+    where: { _or: [{ fromId: { _eq: $address } }, { toId: { _eq: $address } }] }
+  ) {
+    edges {
+      node {
+        id
+        timestamp
+      }
+    }
+  }
+}
+
+query SerachAddressByName($name: String!) {
+  identityConnection(
+    where: { name: { _ilike: $name } }
+    orderBy: { name: ASC }
+  ) {
+    edges {
+      node {
+        name
+        accountId
+      }
+    }
+  }
+}
diff --git a/lib/src/models/graphql/accounts.graphql.dart b/lib/src/models/graphql/accounts.graphql.dart
new file mode 100644
index 0000000000000000000000000000000000000000..eac6586c09d127294a334da1b20c09a9087ffeb1
--- /dev/null
+++ b/lib/src/models/graphql/accounts.graphql.dart
@@ -0,0 +1,5008 @@
+import 'dart:async';
+import 'package:gql/ast.dart';
+import 'package:graphql/client.dart' as graphql;
+
+class Variables$Query$GetIdentityName {
+  factory Variables$Query$GetIdentityName({required String address}) =>
+      Variables$Query$GetIdentityName._({
+        r'address': address,
+      });
+
+  Variables$Query$GetIdentityName._(this._$data);
+
+  factory Variables$Query$GetIdentityName.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    final l$address = data['address'];
+    result$data['address'] = (l$address as String);
+    return Variables$Query$GetIdentityName._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  String get address => (_$data['address'] as String);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    final l$address = address;
+    result$data['address'] = l$address;
+    return result$data;
+  }
+
+  CopyWith$Variables$Query$GetIdentityName<Variables$Query$GetIdentityName>
+      get copyWith => CopyWith$Variables$Query$GetIdentityName(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Variables$Query$GetIdentityName) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$address = address;
+    final lOther$address = other.address;
+    if (l$address != lOther$address) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$address = address;
+    return Object.hashAll([l$address]);
+  }
+}
+
+abstract class CopyWith$Variables$Query$GetIdentityName<TRes> {
+  factory CopyWith$Variables$Query$GetIdentityName(
+    Variables$Query$GetIdentityName instance,
+    TRes Function(Variables$Query$GetIdentityName) then,
+  ) = _CopyWithImpl$Variables$Query$GetIdentityName;
+
+  factory CopyWith$Variables$Query$GetIdentityName.stub(TRes res) =
+      _CopyWithStubImpl$Variables$Query$GetIdentityName;
+
+  TRes call({String? address});
+}
+
+class _CopyWithImpl$Variables$Query$GetIdentityName<TRes>
+    implements CopyWith$Variables$Query$GetIdentityName<TRes> {
+  _CopyWithImpl$Variables$Query$GetIdentityName(
+    this._instance,
+    this._then,
+  );
+
+  final Variables$Query$GetIdentityName _instance;
+
+  final TRes Function(Variables$Query$GetIdentityName) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? address = _undefined}) =>
+      _then(Variables$Query$GetIdentityName._({
+        ..._instance._$data,
+        if (address != _undefined && address != null)
+          'address': (address as String),
+      }));
+}
+
+class _CopyWithStubImpl$Variables$Query$GetIdentityName<TRes>
+    implements CopyWith$Variables$Query$GetIdentityName<TRes> {
+  _CopyWithStubImpl$Variables$Query$GetIdentityName(this._res);
+
+  TRes _res;
+
+  call({String? address}) => _res;
+}
+
+class Query$GetIdentityName {
+  Query$GetIdentityName({
+    required this.accountConnection,
+    this.$__typename = 'query_root',
+  });
+
+  factory Query$GetIdentityName.fromJson(Map<String, dynamic> json) {
+    final l$accountConnection = json['accountConnection'];
+    final l$$__typename = json['__typename'];
+    return Query$GetIdentityName(
+      accountConnection: Query$GetIdentityName$accountConnection.fromJson(
+          (l$accountConnection as Map<String, dynamic>)),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final Query$GetIdentityName$accountConnection accountConnection;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$accountConnection = accountConnection;
+    _resultData['accountConnection'] = l$accountConnection.toJson();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$accountConnection = accountConnection;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$accountConnection,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Query$GetIdentityName) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$accountConnection = accountConnection;
+    final lOther$accountConnection = other.accountConnection;
+    if (l$accountConnection != lOther$accountConnection) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$GetIdentityName on Query$GetIdentityName {
+  CopyWith$Query$GetIdentityName<Query$GetIdentityName> get copyWith =>
+      CopyWith$Query$GetIdentityName(
+        this,
+        (i) => i,
+      );
+}
+
+abstract class CopyWith$Query$GetIdentityName<TRes> {
+  factory CopyWith$Query$GetIdentityName(
+    Query$GetIdentityName instance,
+    TRes Function(Query$GetIdentityName) then,
+  ) = _CopyWithImpl$Query$GetIdentityName;
+
+  factory CopyWith$Query$GetIdentityName.stub(TRes res) =
+      _CopyWithStubImpl$Query$GetIdentityName;
+
+  TRes call({
+    Query$GetIdentityName$accountConnection? accountConnection,
+    String? $__typename,
+  });
+  CopyWith$Query$GetIdentityName$accountConnection<TRes> get accountConnection;
+}
+
+class _CopyWithImpl$Query$GetIdentityName<TRes>
+    implements CopyWith$Query$GetIdentityName<TRes> {
+  _CopyWithImpl$Query$GetIdentityName(
+    this._instance,
+    this._then,
+  );
+
+  final Query$GetIdentityName _instance;
+
+  final TRes Function(Query$GetIdentityName) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? accountConnection = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$GetIdentityName(
+        accountConnection: accountConnection == _undefined ||
+                accountConnection == null
+            ? _instance.accountConnection
+            : (accountConnection as Query$GetIdentityName$accountConnection),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+
+  CopyWith$Query$GetIdentityName$accountConnection<TRes> get accountConnection {
+    final local$accountConnection = _instance.accountConnection;
+    return CopyWith$Query$GetIdentityName$accountConnection(
+        local$accountConnection, (e) => call(accountConnection: e));
+  }
+}
+
+class _CopyWithStubImpl$Query$GetIdentityName<TRes>
+    implements CopyWith$Query$GetIdentityName<TRes> {
+  _CopyWithStubImpl$Query$GetIdentityName(this._res);
+
+  TRes _res;
+
+  call({
+    Query$GetIdentityName$accountConnection? accountConnection,
+    String? $__typename,
+  }) =>
+      _res;
+
+  CopyWith$Query$GetIdentityName$accountConnection<TRes>
+      get accountConnection =>
+          CopyWith$Query$GetIdentityName$accountConnection.stub(_res);
+}
+
+const documentNodeQueryGetIdentityName = DocumentNode(definitions: [
+  OperationDefinitionNode(
+    type: OperationType.query,
+    name: NameNode(value: 'GetIdentityName'),
+    variableDefinitions: [
+      VariableDefinitionNode(
+        variable: VariableNode(name: NameNode(value: 'address')),
+        type: NamedTypeNode(
+          name: NameNode(value: 'String'),
+          isNonNull: true,
+        ),
+        defaultValue: DefaultValueNode(value: null),
+        directives: [],
+      )
+    ],
+    directives: [],
+    selectionSet: SelectionSetNode(selections: [
+      FieldNode(
+        name: NameNode(value: 'accountConnection'),
+        alias: null,
+        arguments: [
+          ArgumentNode(
+            name: NameNode(value: 'where'),
+            value: ObjectValueNode(fields: [
+              ObjectFieldNode(
+                name: NameNode(value: 'id'),
+                value: ObjectValueNode(fields: [
+                  ObjectFieldNode(
+                    name: NameNode(value: '_eq'),
+                    value: VariableNode(name: NameNode(value: 'address')),
+                  )
+                ]),
+              )
+            ]),
+          )
+        ],
+        directives: [],
+        selectionSet: SelectionSetNode(selections: [
+          FieldNode(
+            name: NameNode(value: 'edges'),
+            alias: null,
+            arguments: [],
+            directives: [],
+            selectionSet: SelectionSetNode(selections: [
+              FieldNode(
+                name: NameNode(value: 'node'),
+                alias: null,
+                arguments: [],
+                directives: [],
+                selectionSet: SelectionSetNode(selections: [
+                  FieldNode(
+                    name: NameNode(value: 'identity'),
+                    alias: null,
+                    arguments: [],
+                    directives: [],
+                    selectionSet: SelectionSetNode(selections: [
+                      FieldNode(
+                        name: NameNode(value: 'name'),
+                        alias: null,
+                        arguments: [],
+                        directives: [],
+                        selectionSet: null,
+                      ),
+                      FieldNode(
+                        name: NameNode(value: '__typename'),
+                        alias: null,
+                        arguments: [],
+                        directives: [],
+                        selectionSet: null,
+                      ),
+                    ]),
+                  ),
+                  FieldNode(
+                    name: NameNode(value: '__typename'),
+                    alias: null,
+                    arguments: [],
+                    directives: [],
+                    selectionSet: null,
+                  ),
+                ]),
+              ),
+              FieldNode(
+                name: NameNode(value: '__typename'),
+                alias: null,
+                arguments: [],
+                directives: [],
+                selectionSet: null,
+              ),
+            ]),
+          ),
+          FieldNode(
+            name: NameNode(value: '__typename'),
+            alias: null,
+            arguments: [],
+            directives: [],
+            selectionSet: null,
+          ),
+        ]),
+      ),
+      FieldNode(
+        name: NameNode(value: '__typename'),
+        alias: null,
+        arguments: [],
+        directives: [],
+        selectionSet: null,
+      ),
+    ]),
+  ),
+]);
+Query$GetIdentityName _parserFn$Query$GetIdentityName(
+        Map<String, dynamic> data) =>
+    Query$GetIdentityName.fromJson(data);
+typedef OnQueryComplete$Query$GetIdentityName = FutureOr<void> Function(
+  Map<String, dynamic>?,
+  Query$GetIdentityName?,
+);
+
+class Options$Query$GetIdentityName
+    extends graphql.QueryOptions<Query$GetIdentityName> {
+  Options$Query$GetIdentityName({
+    String? operationName,
+    required Variables$Query$GetIdentityName variables,
+    graphql.FetchPolicy? fetchPolicy,
+    graphql.ErrorPolicy? errorPolicy,
+    graphql.CacheRereadPolicy? cacheRereadPolicy,
+    Object? optimisticResult,
+    Query$GetIdentityName? typedOptimisticResult,
+    Duration? pollInterval,
+    graphql.Context? context,
+    OnQueryComplete$Query$GetIdentityName? onComplete,
+    graphql.OnQueryError? onError,
+  })  : onCompleteWithParsed = onComplete,
+        super(
+          variables: variables.toJson(),
+          operationName: operationName,
+          fetchPolicy: fetchPolicy,
+          errorPolicy: errorPolicy,
+          cacheRereadPolicy: cacheRereadPolicy,
+          optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(),
+          pollInterval: pollInterval,
+          context: context,
+          onComplete: onComplete == null
+              ? null
+              : (data) => onComplete(
+                    data,
+                    data == null ? null : _parserFn$Query$GetIdentityName(data),
+                  ),
+          onError: onError,
+          document: documentNodeQueryGetIdentityName,
+          parserFn: _parserFn$Query$GetIdentityName,
+        );
+
+  final OnQueryComplete$Query$GetIdentityName? onCompleteWithParsed;
+
+  @override
+  List<Object?> get properties => [
+        ...super.onComplete == null
+            ? super.properties
+            : super.properties.where((property) => property != onComplete),
+        onCompleteWithParsed,
+      ];
+}
+
+class WatchOptions$Query$GetIdentityName
+    extends graphql.WatchQueryOptions<Query$GetIdentityName> {
+  WatchOptions$Query$GetIdentityName({
+    String? operationName,
+    required Variables$Query$GetIdentityName variables,
+    graphql.FetchPolicy? fetchPolicy,
+    graphql.ErrorPolicy? errorPolicy,
+    graphql.CacheRereadPolicy? cacheRereadPolicy,
+    Object? optimisticResult,
+    Query$GetIdentityName? typedOptimisticResult,
+    graphql.Context? context,
+    Duration? pollInterval,
+    bool? eagerlyFetchResults,
+    bool carryForwardDataOnException = true,
+    bool fetchResults = false,
+  }) : super(
+          variables: variables.toJson(),
+          operationName: operationName,
+          fetchPolicy: fetchPolicy,
+          errorPolicy: errorPolicy,
+          cacheRereadPolicy: cacheRereadPolicy,
+          optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(),
+          context: context,
+          document: documentNodeQueryGetIdentityName,
+          pollInterval: pollInterval,
+          eagerlyFetchResults: eagerlyFetchResults,
+          carryForwardDataOnException: carryForwardDataOnException,
+          fetchResults: fetchResults,
+          parserFn: _parserFn$Query$GetIdentityName,
+        );
+}
+
+class FetchMoreOptions$Query$GetIdentityName extends graphql.FetchMoreOptions {
+  FetchMoreOptions$Query$GetIdentityName({
+    required graphql.UpdateQuery updateQuery,
+    required Variables$Query$GetIdentityName variables,
+  }) : super(
+          updateQuery: updateQuery,
+          variables: variables.toJson(),
+          document: documentNodeQueryGetIdentityName,
+        );
+}
+
+extension ClientExtension$Query$GetIdentityName on graphql.GraphQLClient {
+  Future<graphql.QueryResult<Query$GetIdentityName>> query$GetIdentityName(
+          Options$Query$GetIdentityName options) async =>
+      await this.query(options);
+  graphql.ObservableQuery<Query$GetIdentityName> watchQuery$GetIdentityName(
+          WatchOptions$Query$GetIdentityName options) =>
+      this.watchQuery(options);
+  void writeQuery$GetIdentityName({
+    required Query$GetIdentityName data,
+    required Variables$Query$GetIdentityName variables,
+    bool broadcast = true,
+  }) =>
+      this.writeQuery(
+        graphql.Request(
+          operation:
+              graphql.Operation(document: documentNodeQueryGetIdentityName),
+          variables: variables.toJson(),
+        ),
+        data: data.toJson(),
+        broadcast: broadcast,
+      );
+  Query$GetIdentityName? readQuery$GetIdentityName({
+    required Variables$Query$GetIdentityName variables,
+    bool optimistic = true,
+  }) {
+    final result = this.readQuery(
+      graphql.Request(
+        operation:
+            graphql.Operation(document: documentNodeQueryGetIdentityName),
+        variables: variables.toJson(),
+      ),
+      optimistic: optimistic,
+    );
+    return result == null ? null : Query$GetIdentityName.fromJson(result);
+  }
+}
+
+class Query$GetIdentityName$accountConnection {
+  Query$GetIdentityName$accountConnection({
+    required this.edges,
+    this.$__typename = 'AccountConnection',
+  });
+
+  factory Query$GetIdentityName$accountConnection.fromJson(
+      Map<String, dynamic> json) {
+    final l$edges = json['edges'];
+    final l$$__typename = json['__typename'];
+    return Query$GetIdentityName$accountConnection(
+      edges: (l$edges as List<dynamic>)
+          .map((e) => Query$GetIdentityName$accountConnection$edges.fromJson(
+              (e as Map<String, dynamic>)))
+          .toList(),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final List<Query$GetIdentityName$accountConnection$edges> edges;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$edges = edges;
+    _resultData['edges'] = l$edges.map((e) => e.toJson()).toList();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$edges = edges;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      Object.hashAll(l$edges.map((v) => v)),
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Query$GetIdentityName$accountConnection) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$edges = edges;
+    final lOther$edges = other.edges;
+    if (l$edges.length != lOther$edges.length) {
+      return false;
+    }
+    for (int i = 0; i < l$edges.length; i++) {
+      final l$edges$entry = l$edges[i];
+      final lOther$edges$entry = lOther$edges[i];
+      if (l$edges$entry != lOther$edges$entry) {
+        return false;
+      }
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$GetIdentityName$accountConnection
+    on Query$GetIdentityName$accountConnection {
+  CopyWith$Query$GetIdentityName$accountConnection<
+          Query$GetIdentityName$accountConnection>
+      get copyWith => CopyWith$Query$GetIdentityName$accountConnection(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Query$GetIdentityName$accountConnection<TRes> {
+  factory CopyWith$Query$GetIdentityName$accountConnection(
+    Query$GetIdentityName$accountConnection instance,
+    TRes Function(Query$GetIdentityName$accountConnection) then,
+  ) = _CopyWithImpl$Query$GetIdentityName$accountConnection;
+
+  factory CopyWith$Query$GetIdentityName$accountConnection.stub(TRes res) =
+      _CopyWithStubImpl$Query$GetIdentityName$accountConnection;
+
+  TRes call({
+    List<Query$GetIdentityName$accountConnection$edges>? edges,
+    String? $__typename,
+  });
+  TRes edges(
+      Iterable<Query$GetIdentityName$accountConnection$edges> Function(
+              Iterable<
+                  CopyWith$Query$GetIdentityName$accountConnection$edges<
+                      Query$GetIdentityName$accountConnection$edges>>)
+          _fn);
+}
+
+class _CopyWithImpl$Query$GetIdentityName$accountConnection<TRes>
+    implements CopyWith$Query$GetIdentityName$accountConnection<TRes> {
+  _CopyWithImpl$Query$GetIdentityName$accountConnection(
+    this._instance,
+    this._then,
+  );
+
+  final Query$GetIdentityName$accountConnection _instance;
+
+  final TRes Function(Query$GetIdentityName$accountConnection) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? edges = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$GetIdentityName$accountConnection(
+        edges: edges == _undefined || edges == null
+            ? _instance.edges
+            : (edges as List<Query$GetIdentityName$accountConnection$edges>),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+
+  TRes edges(
+          Iterable<Query$GetIdentityName$accountConnection$edges> Function(
+                  Iterable<
+                      CopyWith$Query$GetIdentityName$accountConnection$edges<
+                          Query$GetIdentityName$accountConnection$edges>>)
+              _fn) =>
+      call(
+          edges: _fn(_instance.edges.map(
+              (e) => CopyWith$Query$GetIdentityName$accountConnection$edges(
+                    e,
+                    (i) => i,
+                  ))).toList());
+}
+
+class _CopyWithStubImpl$Query$GetIdentityName$accountConnection<TRes>
+    implements CopyWith$Query$GetIdentityName$accountConnection<TRes> {
+  _CopyWithStubImpl$Query$GetIdentityName$accountConnection(this._res);
+
+  TRes _res;
+
+  call({
+    List<Query$GetIdentityName$accountConnection$edges>? edges,
+    String? $__typename,
+  }) =>
+      _res;
+
+  edges(_fn) => _res;
+}
+
+class Query$GetIdentityName$accountConnection$edges {
+  Query$GetIdentityName$accountConnection$edges({
+    required this.node,
+    this.$__typename = 'AccountEdge',
+  });
+
+  factory Query$GetIdentityName$accountConnection$edges.fromJson(
+      Map<String, dynamic> json) {
+    final l$node = json['node'];
+    final l$$__typename = json['__typename'];
+    return Query$GetIdentityName$accountConnection$edges(
+      node: Query$GetIdentityName$accountConnection$edges$node.fromJson(
+          (l$node as Map<String, dynamic>)),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final Query$GetIdentityName$accountConnection$edges$node node;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$node = node;
+    _resultData['node'] = l$node.toJson();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$node = node;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$node,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Query$GetIdentityName$accountConnection$edges) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$node = node;
+    final lOther$node = other.node;
+    if (l$node != lOther$node) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$GetIdentityName$accountConnection$edges
+    on Query$GetIdentityName$accountConnection$edges {
+  CopyWith$Query$GetIdentityName$accountConnection$edges<
+          Query$GetIdentityName$accountConnection$edges>
+      get copyWith => CopyWith$Query$GetIdentityName$accountConnection$edges(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Query$GetIdentityName$accountConnection$edges<TRes> {
+  factory CopyWith$Query$GetIdentityName$accountConnection$edges(
+    Query$GetIdentityName$accountConnection$edges instance,
+    TRes Function(Query$GetIdentityName$accountConnection$edges) then,
+  ) = _CopyWithImpl$Query$GetIdentityName$accountConnection$edges;
+
+  factory CopyWith$Query$GetIdentityName$accountConnection$edges.stub(
+          TRes res) =
+      _CopyWithStubImpl$Query$GetIdentityName$accountConnection$edges;
+
+  TRes call({
+    Query$GetIdentityName$accountConnection$edges$node? node,
+    String? $__typename,
+  });
+  CopyWith$Query$GetIdentityName$accountConnection$edges$node<TRes> get node;
+}
+
+class _CopyWithImpl$Query$GetIdentityName$accountConnection$edges<TRes>
+    implements CopyWith$Query$GetIdentityName$accountConnection$edges<TRes> {
+  _CopyWithImpl$Query$GetIdentityName$accountConnection$edges(
+    this._instance,
+    this._then,
+  );
+
+  final Query$GetIdentityName$accountConnection$edges _instance;
+
+  final TRes Function(Query$GetIdentityName$accountConnection$edges) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? node = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$GetIdentityName$accountConnection$edges(
+        node: node == _undefined || node == null
+            ? _instance.node
+            : (node as Query$GetIdentityName$accountConnection$edges$node),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+
+  CopyWith$Query$GetIdentityName$accountConnection$edges$node<TRes> get node {
+    final local$node = _instance.node;
+    return CopyWith$Query$GetIdentityName$accountConnection$edges$node(
+        local$node, (e) => call(node: e));
+  }
+}
+
+class _CopyWithStubImpl$Query$GetIdentityName$accountConnection$edges<TRes>
+    implements CopyWith$Query$GetIdentityName$accountConnection$edges<TRes> {
+  _CopyWithStubImpl$Query$GetIdentityName$accountConnection$edges(this._res);
+
+  TRes _res;
+
+  call({
+    Query$GetIdentityName$accountConnection$edges$node? node,
+    String? $__typename,
+  }) =>
+      _res;
+
+  CopyWith$Query$GetIdentityName$accountConnection$edges$node<TRes> get node =>
+      CopyWith$Query$GetIdentityName$accountConnection$edges$node.stub(_res);
+}
+
+class Query$GetIdentityName$accountConnection$edges$node {
+  Query$GetIdentityName$accountConnection$edges$node({
+    this.identity,
+    this.$__typename = 'Account',
+  });
+
+  factory Query$GetIdentityName$accountConnection$edges$node.fromJson(
+      Map<String, dynamic> json) {
+    final l$identity = json['identity'];
+    final l$$__typename = json['__typename'];
+    return Query$GetIdentityName$accountConnection$edges$node(
+      identity: l$identity == null
+          ? null
+          : Query$GetIdentityName$accountConnection$edges$node$identity
+              .fromJson((l$identity as Map<String, dynamic>)),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final Query$GetIdentityName$accountConnection$edges$node$identity? identity;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$identity = identity;
+    _resultData['identity'] = l$identity?.toJson();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$identity = identity;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$identity,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Query$GetIdentityName$accountConnection$edges$node) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$identity = identity;
+    final lOther$identity = other.identity;
+    if (l$identity != lOther$identity) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$GetIdentityName$accountConnection$edges$node
+    on Query$GetIdentityName$accountConnection$edges$node {
+  CopyWith$Query$GetIdentityName$accountConnection$edges$node<
+          Query$GetIdentityName$accountConnection$edges$node>
+      get copyWith =>
+          CopyWith$Query$GetIdentityName$accountConnection$edges$node(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Query$GetIdentityName$accountConnection$edges$node<
+    TRes> {
+  factory CopyWith$Query$GetIdentityName$accountConnection$edges$node(
+    Query$GetIdentityName$accountConnection$edges$node instance,
+    TRes Function(Query$GetIdentityName$accountConnection$edges$node) then,
+  ) = _CopyWithImpl$Query$GetIdentityName$accountConnection$edges$node;
+
+  factory CopyWith$Query$GetIdentityName$accountConnection$edges$node.stub(
+          TRes res) =
+      _CopyWithStubImpl$Query$GetIdentityName$accountConnection$edges$node;
+
+  TRes call({
+    Query$GetIdentityName$accountConnection$edges$node$identity? identity,
+    String? $__typename,
+  });
+  CopyWith$Query$GetIdentityName$accountConnection$edges$node$identity<TRes>
+      get identity;
+}
+
+class _CopyWithImpl$Query$GetIdentityName$accountConnection$edges$node<TRes>
+    implements
+        CopyWith$Query$GetIdentityName$accountConnection$edges$node<TRes> {
+  _CopyWithImpl$Query$GetIdentityName$accountConnection$edges$node(
+    this._instance,
+    this._then,
+  );
+
+  final Query$GetIdentityName$accountConnection$edges$node _instance;
+
+  final TRes Function(Query$GetIdentityName$accountConnection$edges$node) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? identity = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$GetIdentityName$accountConnection$edges$node(
+        identity: identity == _undefined
+            ? _instance.identity
+            : (identity
+                as Query$GetIdentityName$accountConnection$edges$node$identity?),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+
+  CopyWith$Query$GetIdentityName$accountConnection$edges$node$identity<TRes>
+      get identity {
+    final local$identity = _instance.identity;
+    return local$identity == null
+        ? CopyWith$Query$GetIdentityName$accountConnection$edges$node$identity
+            .stub(_then(_instance))
+        : CopyWith$Query$GetIdentityName$accountConnection$edges$node$identity(
+            local$identity, (e) => call(identity: e));
+  }
+}
+
+class _CopyWithStubImpl$Query$GetIdentityName$accountConnection$edges$node<TRes>
+    implements
+        CopyWith$Query$GetIdentityName$accountConnection$edges$node<TRes> {
+  _CopyWithStubImpl$Query$GetIdentityName$accountConnection$edges$node(
+      this._res);
+
+  TRes _res;
+
+  call({
+    Query$GetIdentityName$accountConnection$edges$node$identity? identity,
+    String? $__typename,
+  }) =>
+      _res;
+
+  CopyWith$Query$GetIdentityName$accountConnection$edges$node$identity<TRes>
+      get identity =>
+          CopyWith$Query$GetIdentityName$accountConnection$edges$node$identity
+              .stub(_res);
+}
+
+class Query$GetIdentityName$accountConnection$edges$node$identity {
+  Query$GetIdentityName$accountConnection$edges$node$identity({
+    required this.name,
+    this.$__typename = 'Identity',
+  });
+
+  factory Query$GetIdentityName$accountConnection$edges$node$identity.fromJson(
+      Map<String, dynamic> json) {
+    final l$name = json['name'];
+    final l$$__typename = json['__typename'];
+    return Query$GetIdentityName$accountConnection$edges$node$identity(
+      name: (l$name as String),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final String name;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$name = name;
+    _resultData['name'] = l$name;
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$name = name;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$name,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other
+            is Query$GetIdentityName$accountConnection$edges$node$identity) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$name = name;
+    final lOther$name = other.name;
+    if (l$name != lOther$name) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$GetIdentityName$accountConnection$edges$node$identity
+    on Query$GetIdentityName$accountConnection$edges$node$identity {
+  CopyWith$Query$GetIdentityName$accountConnection$edges$node$identity<
+          Query$GetIdentityName$accountConnection$edges$node$identity>
+      get copyWith =>
+          CopyWith$Query$GetIdentityName$accountConnection$edges$node$identity(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Query$GetIdentityName$accountConnection$edges$node$identity<
+    TRes> {
+  factory CopyWith$Query$GetIdentityName$accountConnection$edges$node$identity(
+    Query$GetIdentityName$accountConnection$edges$node$identity instance,
+    TRes Function(Query$GetIdentityName$accountConnection$edges$node$identity)
+        then,
+  ) = _CopyWithImpl$Query$GetIdentityName$accountConnection$edges$node$identity;
+
+  factory CopyWith$Query$GetIdentityName$accountConnection$edges$node$identity.stub(
+          TRes res) =
+      _CopyWithStubImpl$Query$GetIdentityName$accountConnection$edges$node$identity;
+
+  TRes call({
+    String? name,
+    String? $__typename,
+  });
+}
+
+class _CopyWithImpl$Query$GetIdentityName$accountConnection$edges$node$identity<
+        TRes>
+    implements
+        CopyWith$Query$GetIdentityName$accountConnection$edges$node$identity<
+            TRes> {
+  _CopyWithImpl$Query$GetIdentityName$accountConnection$edges$node$identity(
+    this._instance,
+    this._then,
+  );
+
+  final Query$GetIdentityName$accountConnection$edges$node$identity _instance;
+
+  final TRes Function(
+      Query$GetIdentityName$accountConnection$edges$node$identity) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? name = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$GetIdentityName$accountConnection$edges$node$identity(
+        name: name == _undefined || name == null
+            ? _instance.name
+            : (name as String),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+}
+
+class _CopyWithStubImpl$Query$GetIdentityName$accountConnection$edges$node$identity<
+        TRes>
+    implements
+        CopyWith$Query$GetIdentityName$accountConnection$edges$node$identity<
+            TRes> {
+  _CopyWithStubImpl$Query$GetIdentityName$accountConnection$edges$node$identity(
+      this._res);
+
+  TRes _res;
+
+  call({
+    String? name,
+    String? $__typename,
+  }) =>
+      _res;
+}
+
+class Variables$Query$GetAccountHistory {
+  factory Variables$Query$GetAccountHistory({
+    required String address,
+    String? after,
+    int? first,
+  }) =>
+      Variables$Query$GetAccountHistory._({
+        r'address': address,
+        if (after != null) r'after': after,
+        if (first != null) r'first': first,
+      });
+
+  Variables$Query$GetAccountHistory._(this._$data);
+
+  factory Variables$Query$GetAccountHistory.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    final l$address = data['address'];
+    result$data['address'] = (l$address as String);
+    if (data.containsKey('after')) {
+      final l$after = data['after'];
+      result$data['after'] = (l$after as String?);
+    }
+    if (data.containsKey('first')) {
+      final l$first = data['first'];
+      result$data['first'] = (l$first as int?);
+    }
+    return Variables$Query$GetAccountHistory._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  String get address => (_$data['address'] as String);
+
+  String? get after => (_$data['after'] as String?);
+
+  int? get first => (_$data['first'] as int?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    final l$address = address;
+    result$data['address'] = l$address;
+    if (_$data.containsKey('after')) {
+      final l$after = after;
+      result$data['after'] = l$after;
+    }
+    if (_$data.containsKey('first')) {
+      final l$first = first;
+      result$data['first'] = l$first;
+    }
+    return result$data;
+  }
+
+  CopyWith$Variables$Query$GetAccountHistory<Variables$Query$GetAccountHistory>
+      get copyWith => CopyWith$Variables$Query$GetAccountHistory(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Variables$Query$GetAccountHistory) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$address = address;
+    final lOther$address = other.address;
+    if (l$address != lOther$address) {
+      return false;
+    }
+    final l$after = after;
+    final lOther$after = other.after;
+    if (_$data.containsKey('after') != other._$data.containsKey('after')) {
+      return false;
+    }
+    if (l$after != lOther$after) {
+      return false;
+    }
+    final l$first = first;
+    final lOther$first = other.first;
+    if (_$data.containsKey('first') != other._$data.containsKey('first')) {
+      return false;
+    }
+    if (l$first != lOther$first) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$address = address;
+    final l$after = after;
+    final l$first = first;
+    return Object.hashAll([
+      l$address,
+      _$data.containsKey('after') ? l$after : const {},
+      _$data.containsKey('first') ? l$first : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Variables$Query$GetAccountHistory<TRes> {
+  factory CopyWith$Variables$Query$GetAccountHistory(
+    Variables$Query$GetAccountHistory instance,
+    TRes Function(Variables$Query$GetAccountHistory) then,
+  ) = _CopyWithImpl$Variables$Query$GetAccountHistory;
+
+  factory CopyWith$Variables$Query$GetAccountHistory.stub(TRes res) =
+      _CopyWithStubImpl$Variables$Query$GetAccountHistory;
+
+  TRes call({
+    String? address,
+    String? after,
+    int? first,
+  });
+}
+
+class _CopyWithImpl$Variables$Query$GetAccountHistory<TRes>
+    implements CopyWith$Variables$Query$GetAccountHistory<TRes> {
+  _CopyWithImpl$Variables$Query$GetAccountHistory(
+    this._instance,
+    this._then,
+  );
+
+  final Variables$Query$GetAccountHistory _instance;
+
+  final TRes Function(Variables$Query$GetAccountHistory) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? address = _undefined,
+    Object? after = _undefined,
+    Object? first = _undefined,
+  }) =>
+      _then(Variables$Query$GetAccountHistory._({
+        ..._instance._$data,
+        if (address != _undefined && address != null)
+          'address': (address as String),
+        if (after != _undefined) 'after': (after as String?),
+        if (first != _undefined) 'first': (first as int?),
+      }));
+}
+
+class _CopyWithStubImpl$Variables$Query$GetAccountHistory<TRes>
+    implements CopyWith$Variables$Query$GetAccountHistory<TRes> {
+  _CopyWithStubImpl$Variables$Query$GetAccountHistory(this._res);
+
+  TRes _res;
+
+  call({
+    String? address,
+    String? after,
+    int? first,
+  }) =>
+      _res;
+}
+
+class Query$GetAccountHistory {
+  Query$GetAccountHistory({
+    required this.transferConnection,
+    this.$__typename = 'query_root',
+  });
+
+  factory Query$GetAccountHistory.fromJson(Map<String, dynamic> json) {
+    final l$transferConnection = json['transferConnection'];
+    final l$$__typename = json['__typename'];
+    return Query$GetAccountHistory(
+      transferConnection: Query$GetAccountHistory$transferConnection.fromJson(
+          (l$transferConnection as Map<String, dynamic>)),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final Query$GetAccountHistory$transferConnection transferConnection;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$transferConnection = transferConnection;
+    _resultData['transferConnection'] = l$transferConnection.toJson();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$transferConnection = transferConnection;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$transferConnection,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Query$GetAccountHistory) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$transferConnection = transferConnection;
+    final lOther$transferConnection = other.transferConnection;
+    if (l$transferConnection != lOther$transferConnection) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$GetAccountHistory on Query$GetAccountHistory {
+  CopyWith$Query$GetAccountHistory<Query$GetAccountHistory> get copyWith =>
+      CopyWith$Query$GetAccountHistory(
+        this,
+        (i) => i,
+      );
+}
+
+abstract class CopyWith$Query$GetAccountHistory<TRes> {
+  factory CopyWith$Query$GetAccountHistory(
+    Query$GetAccountHistory instance,
+    TRes Function(Query$GetAccountHistory) then,
+  ) = _CopyWithImpl$Query$GetAccountHistory;
+
+  factory CopyWith$Query$GetAccountHistory.stub(TRes res) =
+      _CopyWithStubImpl$Query$GetAccountHistory;
+
+  TRes call({
+    Query$GetAccountHistory$transferConnection? transferConnection,
+    String? $__typename,
+  });
+  CopyWith$Query$GetAccountHistory$transferConnection<TRes>
+      get transferConnection;
+}
+
+class _CopyWithImpl$Query$GetAccountHistory<TRes>
+    implements CopyWith$Query$GetAccountHistory<TRes> {
+  _CopyWithImpl$Query$GetAccountHistory(
+    this._instance,
+    this._then,
+  );
+
+  final Query$GetAccountHistory _instance;
+
+  final TRes Function(Query$GetAccountHistory) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? transferConnection = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$GetAccountHistory(
+        transferConnection:
+            transferConnection == _undefined || transferConnection == null
+                ? _instance.transferConnection
+                : (transferConnection
+                    as Query$GetAccountHistory$transferConnection),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+
+  CopyWith$Query$GetAccountHistory$transferConnection<TRes>
+      get transferConnection {
+    final local$transferConnection = _instance.transferConnection;
+    return CopyWith$Query$GetAccountHistory$transferConnection(
+        local$transferConnection, (e) => call(transferConnection: e));
+  }
+}
+
+class _CopyWithStubImpl$Query$GetAccountHistory<TRes>
+    implements CopyWith$Query$GetAccountHistory<TRes> {
+  _CopyWithStubImpl$Query$GetAccountHistory(this._res);
+
+  TRes _res;
+
+  call({
+    Query$GetAccountHistory$transferConnection? transferConnection,
+    String? $__typename,
+  }) =>
+      _res;
+
+  CopyWith$Query$GetAccountHistory$transferConnection<TRes>
+      get transferConnection =>
+          CopyWith$Query$GetAccountHistory$transferConnection.stub(_res);
+}
+
+const documentNodeQueryGetAccountHistory = DocumentNode(definitions: [
+  OperationDefinitionNode(
+    type: OperationType.query,
+    name: NameNode(value: 'GetAccountHistory'),
+    variableDefinitions: [
+      VariableDefinitionNode(
+        variable: VariableNode(name: NameNode(value: 'address')),
+        type: NamedTypeNode(
+          name: NameNode(value: 'String'),
+          isNonNull: true,
+        ),
+        defaultValue: DefaultValueNode(value: null),
+        directives: [],
+      ),
+      VariableDefinitionNode(
+        variable: VariableNode(name: NameNode(value: 'after')),
+        type: NamedTypeNode(
+          name: NameNode(value: 'String'),
+          isNonNull: false,
+        ),
+        defaultValue: DefaultValueNode(value: null),
+        directives: [],
+      ),
+      VariableDefinitionNode(
+        variable: VariableNode(name: NameNode(value: 'first')),
+        type: NamedTypeNode(
+          name: NameNode(value: 'Int'),
+          isNonNull: false,
+        ),
+        defaultValue: DefaultValueNode(value: IntValueNode(value: '20')),
+        directives: [],
+      ),
+    ],
+    directives: [],
+    selectionSet: SelectionSetNode(selections: [
+      FieldNode(
+        name: NameNode(value: 'transferConnection'),
+        alias: null,
+        arguments: [
+          ArgumentNode(
+            name: NameNode(value: 'after'),
+            value: VariableNode(name: NameNode(value: 'after')),
+          ),
+          ArgumentNode(
+            name: NameNode(value: 'first'),
+            value: VariableNode(name: NameNode(value: 'first')),
+          ),
+          ArgumentNode(
+            name: NameNode(value: 'orderBy'),
+            value: ObjectValueNode(fields: [
+              ObjectFieldNode(
+                name: NameNode(value: 'timestamp'),
+                value: EnumValueNode(name: NameNode(value: 'DESC')),
+              )
+            ]),
+          ),
+          ArgumentNode(
+            name: NameNode(value: 'where'),
+            value: ObjectValueNode(fields: [
+              ObjectFieldNode(
+                name: NameNode(value: '_or'),
+                value: ListValueNode(values: [
+                  ObjectValueNode(fields: [
+                    ObjectFieldNode(
+                      name: NameNode(value: 'fromId'),
+                      value: ObjectValueNode(fields: [
+                        ObjectFieldNode(
+                          name: NameNode(value: '_eq'),
+                          value: VariableNode(name: NameNode(value: 'address')),
+                        )
+                      ]),
+                    )
+                  ]),
+                  ObjectValueNode(fields: [
+                    ObjectFieldNode(
+                      name: NameNode(value: 'toId'),
+                      value: ObjectValueNode(fields: [
+                        ObjectFieldNode(
+                          name: NameNode(value: '_eq'),
+                          value: VariableNode(name: NameNode(value: 'address')),
+                        )
+                      ]),
+                    )
+                  ]),
+                ]),
+              )
+            ]),
+          ),
+        ],
+        directives: [],
+        selectionSet: SelectionSetNode(selections: [
+          FieldNode(
+            name: NameNode(value: 'edges'),
+            alias: null,
+            arguments: [],
+            directives: [],
+            selectionSet: SelectionSetNode(selections: [
+              FieldNode(
+                name: NameNode(value: 'node'),
+                alias: null,
+                arguments: [],
+                directives: [],
+                selectionSet: SelectionSetNode(selections: [
+                  FieldNode(
+                    name: NameNode(value: 'amount'),
+                    alias: null,
+                    arguments: [],
+                    directives: [],
+                    selectionSet: null,
+                  ),
+                  FieldNode(
+                    name: NameNode(value: 'timestamp'),
+                    alias: null,
+                    arguments: [],
+                    directives: [],
+                    selectionSet: null,
+                  ),
+                  FieldNode(
+                    name: NameNode(value: 'fromId'),
+                    alias: null,
+                    arguments: [],
+                    directives: [],
+                    selectionSet: null,
+                  ),
+                  FieldNode(
+                    name: NameNode(value: 'from'),
+                    alias: null,
+                    arguments: [],
+                    directives: [],
+                    selectionSet: SelectionSetNode(selections: [
+                      FieldNode(
+                        name: NameNode(value: 'identity'),
+                        alias: null,
+                        arguments: [],
+                        directives: [],
+                        selectionSet: SelectionSetNode(selections: [
+                          FieldNode(
+                            name: NameNode(value: 'name'),
+                            alias: null,
+                            arguments: [],
+                            directives: [],
+                            selectionSet: null,
+                          ),
+                          FieldNode(
+                            name: NameNode(value: '__typename'),
+                            alias: null,
+                            arguments: [],
+                            directives: [],
+                            selectionSet: null,
+                          ),
+                        ]),
+                      ),
+                      FieldNode(
+                        name: NameNode(value: '__typename'),
+                        alias: null,
+                        arguments: [],
+                        directives: [],
+                        selectionSet: null,
+                      ),
+                    ]),
+                  ),
+                  FieldNode(
+                    name: NameNode(value: 'toId'),
+                    alias: null,
+                    arguments: [],
+                    directives: [],
+                    selectionSet: null,
+                  ),
+                  FieldNode(
+                    name: NameNode(value: 'to'),
+                    alias: null,
+                    arguments: [],
+                    directives: [],
+                    selectionSet: SelectionSetNode(selections: [
+                      FieldNode(
+                        name: NameNode(value: 'identity'),
+                        alias: null,
+                        arguments: [],
+                        directives: [],
+                        selectionSet: SelectionSetNode(selections: [
+                          FieldNode(
+                            name: NameNode(value: 'name'),
+                            alias: null,
+                            arguments: [],
+                            directives: [],
+                            selectionSet: null,
+                          ),
+                          FieldNode(
+                            name: NameNode(value: '__typename'),
+                            alias: null,
+                            arguments: [],
+                            directives: [],
+                            selectionSet: null,
+                          ),
+                        ]),
+                      ),
+                      FieldNode(
+                        name: NameNode(value: '__typename'),
+                        alias: null,
+                        arguments: [],
+                        directives: [],
+                        selectionSet: null,
+                      ),
+                    ]),
+                  ),
+                  FieldNode(
+                    name: NameNode(value: '__typename'),
+                    alias: null,
+                    arguments: [],
+                    directives: [],
+                    selectionSet: null,
+                  ),
+                ]),
+              ),
+              FieldNode(
+                name: NameNode(value: '__typename'),
+                alias: null,
+                arguments: [],
+                directives: [],
+                selectionSet: null,
+              ),
+            ]),
+          ),
+          FieldNode(
+            name: NameNode(value: 'pageInfo'),
+            alias: null,
+            arguments: [],
+            directives: [],
+            selectionSet: SelectionSetNode(selections: [
+              FieldNode(
+                name: NameNode(value: 'endCursor'),
+                alias: null,
+                arguments: [],
+                directives: [],
+                selectionSet: null,
+              ),
+              FieldNode(
+                name: NameNode(value: 'hasNextPage'),
+                alias: null,
+                arguments: [],
+                directives: [],
+                selectionSet: null,
+              ),
+              FieldNode(
+                name: NameNode(value: '__typename'),
+                alias: null,
+                arguments: [],
+                directives: [],
+                selectionSet: null,
+              ),
+            ]),
+          ),
+          FieldNode(
+            name: NameNode(value: '__typename'),
+            alias: null,
+            arguments: [],
+            directives: [],
+            selectionSet: null,
+          ),
+        ]),
+      ),
+      FieldNode(
+        name: NameNode(value: '__typename'),
+        alias: null,
+        arguments: [],
+        directives: [],
+        selectionSet: null,
+      ),
+    ]),
+  ),
+]);
+Query$GetAccountHistory _parserFn$Query$GetAccountHistory(
+        Map<String, dynamic> data) =>
+    Query$GetAccountHistory.fromJson(data);
+typedef OnQueryComplete$Query$GetAccountHistory = FutureOr<void> Function(
+  Map<String, dynamic>?,
+  Query$GetAccountHistory?,
+);
+
+class Options$Query$GetAccountHistory
+    extends graphql.QueryOptions<Query$GetAccountHistory> {
+  Options$Query$GetAccountHistory({
+    String? operationName,
+    required Variables$Query$GetAccountHistory variables,
+    graphql.FetchPolicy? fetchPolicy,
+    graphql.ErrorPolicy? errorPolicy,
+    graphql.CacheRereadPolicy? cacheRereadPolicy,
+    Object? optimisticResult,
+    Query$GetAccountHistory? typedOptimisticResult,
+    Duration? pollInterval,
+    graphql.Context? context,
+    OnQueryComplete$Query$GetAccountHistory? onComplete,
+    graphql.OnQueryError? onError,
+  })  : onCompleteWithParsed = onComplete,
+        super(
+          variables: variables.toJson(),
+          operationName: operationName,
+          fetchPolicy: fetchPolicy,
+          errorPolicy: errorPolicy,
+          cacheRereadPolicy: cacheRereadPolicy,
+          optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(),
+          pollInterval: pollInterval,
+          context: context,
+          onComplete: onComplete == null
+              ? null
+              : (data) => onComplete(
+                    data,
+                    data == null
+                        ? null
+                        : _parserFn$Query$GetAccountHistory(data),
+                  ),
+          onError: onError,
+          document: documentNodeQueryGetAccountHistory,
+          parserFn: _parserFn$Query$GetAccountHistory,
+        );
+
+  final OnQueryComplete$Query$GetAccountHistory? onCompleteWithParsed;
+
+  @override
+  List<Object?> get properties => [
+        ...super.onComplete == null
+            ? super.properties
+            : super.properties.where((property) => property != onComplete),
+        onCompleteWithParsed,
+      ];
+}
+
+class WatchOptions$Query$GetAccountHistory
+    extends graphql.WatchQueryOptions<Query$GetAccountHistory> {
+  WatchOptions$Query$GetAccountHistory({
+    String? operationName,
+    required Variables$Query$GetAccountHistory variables,
+    graphql.FetchPolicy? fetchPolicy,
+    graphql.ErrorPolicy? errorPolicy,
+    graphql.CacheRereadPolicy? cacheRereadPolicy,
+    Object? optimisticResult,
+    Query$GetAccountHistory? typedOptimisticResult,
+    graphql.Context? context,
+    Duration? pollInterval,
+    bool? eagerlyFetchResults,
+    bool carryForwardDataOnException = true,
+    bool fetchResults = false,
+  }) : super(
+          variables: variables.toJson(),
+          operationName: operationName,
+          fetchPolicy: fetchPolicy,
+          errorPolicy: errorPolicy,
+          cacheRereadPolicy: cacheRereadPolicy,
+          optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(),
+          context: context,
+          document: documentNodeQueryGetAccountHistory,
+          pollInterval: pollInterval,
+          eagerlyFetchResults: eagerlyFetchResults,
+          carryForwardDataOnException: carryForwardDataOnException,
+          fetchResults: fetchResults,
+          parserFn: _parserFn$Query$GetAccountHistory,
+        );
+}
+
+class FetchMoreOptions$Query$GetAccountHistory
+    extends graphql.FetchMoreOptions {
+  FetchMoreOptions$Query$GetAccountHistory({
+    required graphql.UpdateQuery updateQuery,
+    required Variables$Query$GetAccountHistory variables,
+  }) : super(
+          updateQuery: updateQuery,
+          variables: variables.toJson(),
+          document: documentNodeQueryGetAccountHistory,
+        );
+}
+
+extension ClientExtension$Query$GetAccountHistory on graphql.GraphQLClient {
+  Future<graphql.QueryResult<Query$GetAccountHistory>> query$GetAccountHistory(
+          Options$Query$GetAccountHistory options) async =>
+      await this.query(options);
+  graphql.ObservableQuery<Query$GetAccountHistory> watchQuery$GetAccountHistory(
+          WatchOptions$Query$GetAccountHistory options) =>
+      this.watchQuery(options);
+  void writeQuery$GetAccountHistory({
+    required Query$GetAccountHistory data,
+    required Variables$Query$GetAccountHistory variables,
+    bool broadcast = true,
+  }) =>
+      this.writeQuery(
+        graphql.Request(
+          operation:
+              graphql.Operation(document: documentNodeQueryGetAccountHistory),
+          variables: variables.toJson(),
+        ),
+        data: data.toJson(),
+        broadcast: broadcast,
+      );
+  Query$GetAccountHistory? readQuery$GetAccountHistory({
+    required Variables$Query$GetAccountHistory variables,
+    bool optimistic = true,
+  }) {
+    final result = this.readQuery(
+      graphql.Request(
+        operation:
+            graphql.Operation(document: documentNodeQueryGetAccountHistory),
+        variables: variables.toJson(),
+      ),
+      optimistic: optimistic,
+    );
+    return result == null ? null : Query$GetAccountHistory.fromJson(result);
+  }
+}
+
+class Query$GetAccountHistory$transferConnection {
+  Query$GetAccountHistory$transferConnection({
+    required this.edges,
+    required this.pageInfo,
+    this.$__typename = 'TransferConnection',
+  });
+
+  factory Query$GetAccountHistory$transferConnection.fromJson(
+      Map<String, dynamic> json) {
+    final l$edges = json['edges'];
+    final l$pageInfo = json['pageInfo'];
+    final l$$__typename = json['__typename'];
+    return Query$GetAccountHistory$transferConnection(
+      edges: (l$edges as List<dynamic>)
+          .map((e) => Query$GetAccountHistory$transferConnection$edges.fromJson(
+              (e as Map<String, dynamic>)))
+          .toList(),
+      pageInfo: Query$GetAccountHistory$transferConnection$pageInfo.fromJson(
+          (l$pageInfo as Map<String, dynamic>)),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final List<Query$GetAccountHistory$transferConnection$edges> edges;
+
+  final Query$GetAccountHistory$transferConnection$pageInfo pageInfo;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$edges = edges;
+    _resultData['edges'] = l$edges.map((e) => e.toJson()).toList();
+    final l$pageInfo = pageInfo;
+    _resultData['pageInfo'] = l$pageInfo.toJson();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$edges = edges;
+    final l$pageInfo = pageInfo;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      Object.hashAll(l$edges.map((v) => v)),
+      l$pageInfo,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Query$GetAccountHistory$transferConnection) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$edges = edges;
+    final lOther$edges = other.edges;
+    if (l$edges.length != lOther$edges.length) {
+      return false;
+    }
+    for (int i = 0; i < l$edges.length; i++) {
+      final l$edges$entry = l$edges[i];
+      final lOther$edges$entry = lOther$edges[i];
+      if (l$edges$entry != lOther$edges$entry) {
+        return false;
+      }
+    }
+    final l$pageInfo = pageInfo;
+    final lOther$pageInfo = other.pageInfo;
+    if (l$pageInfo != lOther$pageInfo) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$GetAccountHistory$transferConnection
+    on Query$GetAccountHistory$transferConnection {
+  CopyWith$Query$GetAccountHistory$transferConnection<
+          Query$GetAccountHistory$transferConnection>
+      get copyWith => CopyWith$Query$GetAccountHistory$transferConnection(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Query$GetAccountHistory$transferConnection<TRes> {
+  factory CopyWith$Query$GetAccountHistory$transferConnection(
+    Query$GetAccountHistory$transferConnection instance,
+    TRes Function(Query$GetAccountHistory$transferConnection) then,
+  ) = _CopyWithImpl$Query$GetAccountHistory$transferConnection;
+
+  factory CopyWith$Query$GetAccountHistory$transferConnection.stub(TRes res) =
+      _CopyWithStubImpl$Query$GetAccountHistory$transferConnection;
+
+  TRes call({
+    List<Query$GetAccountHistory$transferConnection$edges>? edges,
+    Query$GetAccountHistory$transferConnection$pageInfo? pageInfo,
+    String? $__typename,
+  });
+  TRes edges(
+      Iterable<Query$GetAccountHistory$transferConnection$edges> Function(
+              Iterable<
+                  CopyWith$Query$GetAccountHistory$transferConnection$edges<
+                      Query$GetAccountHistory$transferConnection$edges>>)
+          _fn);
+  CopyWith$Query$GetAccountHistory$transferConnection$pageInfo<TRes>
+      get pageInfo;
+}
+
+class _CopyWithImpl$Query$GetAccountHistory$transferConnection<TRes>
+    implements CopyWith$Query$GetAccountHistory$transferConnection<TRes> {
+  _CopyWithImpl$Query$GetAccountHistory$transferConnection(
+    this._instance,
+    this._then,
+  );
+
+  final Query$GetAccountHistory$transferConnection _instance;
+
+  final TRes Function(Query$GetAccountHistory$transferConnection) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? edges = _undefined,
+    Object? pageInfo = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$GetAccountHistory$transferConnection(
+        edges: edges == _undefined || edges == null
+            ? _instance.edges
+            : (edges as List<Query$GetAccountHistory$transferConnection$edges>),
+        pageInfo: pageInfo == _undefined || pageInfo == null
+            ? _instance.pageInfo
+            : (pageInfo as Query$GetAccountHistory$transferConnection$pageInfo),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+
+  TRes edges(
+          Iterable<Query$GetAccountHistory$transferConnection$edges> Function(
+                  Iterable<
+                      CopyWith$Query$GetAccountHistory$transferConnection$edges<
+                          Query$GetAccountHistory$transferConnection$edges>>)
+              _fn) =>
+      call(
+          edges: _fn(_instance.edges.map(
+              (e) => CopyWith$Query$GetAccountHistory$transferConnection$edges(
+                    e,
+                    (i) => i,
+                  ))).toList());
+
+  CopyWith$Query$GetAccountHistory$transferConnection$pageInfo<TRes>
+      get pageInfo {
+    final local$pageInfo = _instance.pageInfo;
+    return CopyWith$Query$GetAccountHistory$transferConnection$pageInfo(
+        local$pageInfo, (e) => call(pageInfo: e));
+  }
+}
+
+class _CopyWithStubImpl$Query$GetAccountHistory$transferConnection<TRes>
+    implements CopyWith$Query$GetAccountHistory$transferConnection<TRes> {
+  _CopyWithStubImpl$Query$GetAccountHistory$transferConnection(this._res);
+
+  TRes _res;
+
+  call({
+    List<Query$GetAccountHistory$transferConnection$edges>? edges,
+    Query$GetAccountHistory$transferConnection$pageInfo? pageInfo,
+    String? $__typename,
+  }) =>
+      _res;
+
+  edges(_fn) => _res;
+
+  CopyWith$Query$GetAccountHistory$transferConnection$pageInfo<TRes>
+      get pageInfo =>
+          CopyWith$Query$GetAccountHistory$transferConnection$pageInfo.stub(
+              _res);
+}
+
+class Query$GetAccountHistory$transferConnection$edges {
+  Query$GetAccountHistory$transferConnection$edges({
+    required this.node,
+    this.$__typename = 'TransferEdge',
+  });
+
+  factory Query$GetAccountHistory$transferConnection$edges.fromJson(
+      Map<String, dynamic> json) {
+    final l$node = json['node'];
+    final l$$__typename = json['__typename'];
+    return Query$GetAccountHistory$transferConnection$edges(
+      node: Query$GetAccountHistory$transferConnection$edges$node.fromJson(
+          (l$node as Map<String, dynamic>)),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final Query$GetAccountHistory$transferConnection$edges$node node;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$node = node;
+    _resultData['node'] = l$node.toJson();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$node = node;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$node,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Query$GetAccountHistory$transferConnection$edges) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$node = node;
+    final lOther$node = other.node;
+    if (l$node != lOther$node) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$GetAccountHistory$transferConnection$edges
+    on Query$GetAccountHistory$transferConnection$edges {
+  CopyWith$Query$GetAccountHistory$transferConnection$edges<
+          Query$GetAccountHistory$transferConnection$edges>
+      get copyWith => CopyWith$Query$GetAccountHistory$transferConnection$edges(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Query$GetAccountHistory$transferConnection$edges<TRes> {
+  factory CopyWith$Query$GetAccountHistory$transferConnection$edges(
+    Query$GetAccountHistory$transferConnection$edges instance,
+    TRes Function(Query$GetAccountHistory$transferConnection$edges) then,
+  ) = _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges;
+
+  factory CopyWith$Query$GetAccountHistory$transferConnection$edges.stub(
+          TRes res) =
+      _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges;
+
+  TRes call({
+    Query$GetAccountHistory$transferConnection$edges$node? node,
+    String? $__typename,
+  });
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node<TRes> get node;
+}
+
+class _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges<TRes>
+    implements CopyWith$Query$GetAccountHistory$transferConnection$edges<TRes> {
+  _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges(
+    this._instance,
+    this._then,
+  );
+
+  final Query$GetAccountHistory$transferConnection$edges _instance;
+
+  final TRes Function(Query$GetAccountHistory$transferConnection$edges) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? node = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$GetAccountHistory$transferConnection$edges(
+        node: node == _undefined || node == null
+            ? _instance.node
+            : (node as Query$GetAccountHistory$transferConnection$edges$node),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node<TRes>
+      get node {
+    final local$node = _instance.node;
+    return CopyWith$Query$GetAccountHistory$transferConnection$edges$node(
+        local$node, (e) => call(node: e));
+  }
+}
+
+class _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges<TRes>
+    implements CopyWith$Query$GetAccountHistory$transferConnection$edges<TRes> {
+  _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges(this._res);
+
+  TRes _res;
+
+  call({
+    Query$GetAccountHistory$transferConnection$edges$node? node,
+    String? $__typename,
+  }) =>
+      _res;
+
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node<TRes>
+      get node =>
+          CopyWith$Query$GetAccountHistory$transferConnection$edges$node.stub(
+              _res);
+}
+
+class Query$GetAccountHistory$transferConnection$edges$node {
+  Query$GetAccountHistory$transferConnection$edges$node({
+    required this.amount,
+    required this.timestamp,
+    this.fromId,
+    this.from,
+    this.toId,
+    this.to,
+    this.$__typename = 'Transfer',
+  });
+
+  factory Query$GetAccountHistory$transferConnection$edges$node.fromJson(
+      Map<String, dynamic> json) {
+    final l$amount = json['amount'];
+    final l$timestamp = json['timestamp'];
+    final l$fromId = json['fromId'];
+    final l$from = json['from'];
+    final l$toId = json['toId'];
+    final l$to = json['to'];
+    final l$$__typename = json['__typename'];
+    return Query$GetAccountHistory$transferConnection$edges$node(
+      amount: (l$amount as int),
+      timestamp: DateTime.parse((l$timestamp as String)),
+      fromId: (l$fromId as String?),
+      from: l$from == null
+          ? null
+          : Query$GetAccountHistory$transferConnection$edges$node$from.fromJson(
+              (l$from as Map<String, dynamic>)),
+      toId: (l$toId as String?),
+      to: l$to == null
+          ? null
+          : Query$GetAccountHistory$transferConnection$edges$node$to.fromJson(
+              (l$to as Map<String, dynamic>)),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final int amount;
+
+  final DateTime timestamp;
+
+  final String? fromId;
+
+  final Query$GetAccountHistory$transferConnection$edges$node$from? from;
+
+  final String? toId;
+
+  final Query$GetAccountHistory$transferConnection$edges$node$to? to;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$amount = amount;
+    _resultData['amount'] = l$amount;
+    final l$timestamp = timestamp;
+    _resultData['timestamp'] = l$timestamp.toIso8601String();
+    final l$fromId = fromId;
+    _resultData['fromId'] = l$fromId;
+    final l$from = from;
+    _resultData['from'] = l$from?.toJson();
+    final l$toId = toId;
+    _resultData['toId'] = l$toId;
+    final l$to = to;
+    _resultData['to'] = l$to?.toJson();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$timestamp = timestamp;
+    final l$fromId = fromId;
+    final l$from = from;
+    final l$toId = toId;
+    final l$to = to;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$amount,
+      l$timestamp,
+      l$fromId,
+      l$from,
+      l$toId,
+      l$to,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Query$GetAccountHistory$transferConnection$edges$node) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    final l$fromId = fromId;
+    final lOther$fromId = other.fromId;
+    if (l$fromId != lOther$fromId) {
+      return false;
+    }
+    final l$from = from;
+    final lOther$from = other.from;
+    if (l$from != lOther$from) {
+      return false;
+    }
+    final l$toId = toId;
+    final lOther$toId = other.toId;
+    if (l$toId != lOther$toId) {
+      return false;
+    }
+    final l$to = to;
+    final lOther$to = other.to;
+    if (l$to != lOther$to) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$GetAccountHistory$transferConnection$edges$node
+    on Query$GetAccountHistory$transferConnection$edges$node {
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node<
+          Query$GetAccountHistory$transferConnection$edges$node>
+      get copyWith =>
+          CopyWith$Query$GetAccountHistory$transferConnection$edges$node(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Query$GetAccountHistory$transferConnection$edges$node<
+    TRes> {
+  factory CopyWith$Query$GetAccountHistory$transferConnection$edges$node(
+    Query$GetAccountHistory$transferConnection$edges$node instance,
+    TRes Function(Query$GetAccountHistory$transferConnection$edges$node) then,
+  ) = _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges$node;
+
+  factory CopyWith$Query$GetAccountHistory$transferConnection$edges$node.stub(
+          TRes res) =
+      _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges$node;
+
+  TRes call({
+    int? amount,
+    DateTime? timestamp,
+    String? fromId,
+    Query$GetAccountHistory$transferConnection$edges$node$from? from,
+    String? toId,
+    Query$GetAccountHistory$transferConnection$edges$node$to? to,
+    String? $__typename,
+  });
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from<TRes>
+      get from;
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to<TRes>
+      get to;
+}
+
+class _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges$node<TRes>
+    implements
+        CopyWith$Query$GetAccountHistory$transferConnection$edges$node<TRes> {
+  _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges$node(
+    this._instance,
+    this._then,
+  );
+
+  final Query$GetAccountHistory$transferConnection$edges$node _instance;
+
+  final TRes Function(Query$GetAccountHistory$transferConnection$edges$node)
+      _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? timestamp = _undefined,
+    Object? fromId = _undefined,
+    Object? from = _undefined,
+    Object? toId = _undefined,
+    Object? to = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$GetAccountHistory$transferConnection$edges$node(
+        amount: amount == _undefined || amount == null
+            ? _instance.amount
+            : (amount as int),
+        timestamp: timestamp == _undefined || timestamp == null
+            ? _instance.timestamp
+            : (timestamp as DateTime),
+        fromId: fromId == _undefined ? _instance.fromId : (fromId as String?),
+        from: from == _undefined
+            ? _instance.from
+            : (from
+                as Query$GetAccountHistory$transferConnection$edges$node$from?),
+        toId: toId == _undefined ? _instance.toId : (toId as String?),
+        to: to == _undefined
+            ? _instance.to
+            : (to as Query$GetAccountHistory$transferConnection$edges$node$to?),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from<TRes>
+      get from {
+    final local$from = _instance.from;
+    return local$from == null
+        ? CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from
+            .stub(_then(_instance))
+        : CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from(
+            local$from, (e) => call(from: e));
+  }
+
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to<TRes>
+      get to {
+    final local$to = _instance.to;
+    return local$to == null
+        ? CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to
+            .stub(_then(_instance))
+        : CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to(
+            local$to, (e) => call(to: e));
+  }
+}
+
+class _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges$node<
+        TRes>
+    implements
+        CopyWith$Query$GetAccountHistory$transferConnection$edges$node<TRes> {
+  _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges$node(
+      this._res);
+
+  TRes _res;
+
+  call({
+    int? amount,
+    DateTime? timestamp,
+    String? fromId,
+    Query$GetAccountHistory$transferConnection$edges$node$from? from,
+    String? toId,
+    Query$GetAccountHistory$transferConnection$edges$node$to? to,
+    String? $__typename,
+  }) =>
+      _res;
+
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from<TRes>
+      get from =>
+          CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from
+              .stub(_res);
+
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to<TRes>
+      get to =>
+          CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to
+              .stub(_res);
+}
+
+class Query$GetAccountHistory$transferConnection$edges$node$from {
+  Query$GetAccountHistory$transferConnection$edges$node$from({
+    this.identity,
+    this.$__typename = 'Account',
+  });
+
+  factory Query$GetAccountHistory$transferConnection$edges$node$from.fromJson(
+      Map<String, dynamic> json) {
+    final l$identity = json['identity'];
+    final l$$__typename = json['__typename'];
+    return Query$GetAccountHistory$transferConnection$edges$node$from(
+      identity: l$identity == null
+          ? null
+          : Query$GetAccountHistory$transferConnection$edges$node$from$identity
+              .fromJson((l$identity as Map<String, dynamic>)),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final Query$GetAccountHistory$transferConnection$edges$node$from$identity?
+      identity;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$identity = identity;
+    _resultData['identity'] = l$identity?.toJson();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$identity = identity;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$identity,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other
+            is Query$GetAccountHistory$transferConnection$edges$node$from) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$identity = identity;
+    final lOther$identity = other.identity;
+    if (l$identity != lOther$identity) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$GetAccountHistory$transferConnection$edges$node$from
+    on Query$GetAccountHistory$transferConnection$edges$node$from {
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from<
+          Query$GetAccountHistory$transferConnection$edges$node$from>
+      get copyWith =>
+          CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from<
+    TRes> {
+  factory CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from(
+    Query$GetAccountHistory$transferConnection$edges$node$from instance,
+    TRes Function(Query$GetAccountHistory$transferConnection$edges$node$from)
+        then,
+  ) = _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges$node$from;
+
+  factory CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from.stub(
+          TRes res) =
+      _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges$node$from;
+
+  TRes call({
+    Query$GetAccountHistory$transferConnection$edges$node$from$identity?
+        identity,
+    String? $__typename,
+  });
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from$identity<
+      TRes> get identity;
+}
+
+class _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges$node$from<
+        TRes>
+    implements
+        CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from<
+            TRes> {
+  _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges$node$from(
+    this._instance,
+    this._then,
+  );
+
+  final Query$GetAccountHistory$transferConnection$edges$node$from _instance;
+
+  final TRes Function(
+      Query$GetAccountHistory$transferConnection$edges$node$from) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? identity = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$GetAccountHistory$transferConnection$edges$node$from(
+        identity: identity == _undefined
+            ? _instance.identity
+            : (identity
+                as Query$GetAccountHistory$transferConnection$edges$node$from$identity?),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from$identity<
+      TRes> get identity {
+    final local$identity = _instance.identity;
+    return local$identity == null
+        ? CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from$identity
+            .stub(_then(_instance))
+        : CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from$identity(
+            local$identity, (e) => call(identity: e));
+  }
+}
+
+class _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges$node$from<
+        TRes>
+    implements
+        CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from<
+            TRes> {
+  _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges$node$from(
+      this._res);
+
+  TRes _res;
+
+  call({
+    Query$GetAccountHistory$transferConnection$edges$node$from$identity?
+        identity,
+    String? $__typename,
+  }) =>
+      _res;
+
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from$identity<
+          TRes>
+      get identity =>
+          CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from$identity
+              .stub(_res);
+}
+
+class Query$GetAccountHistory$transferConnection$edges$node$from$identity {
+  Query$GetAccountHistory$transferConnection$edges$node$from$identity({
+    required this.name,
+    this.$__typename = 'Identity',
+  });
+
+  factory Query$GetAccountHistory$transferConnection$edges$node$from$identity.fromJson(
+      Map<String, dynamic> json) {
+    final l$name = json['name'];
+    final l$$__typename = json['__typename'];
+    return Query$GetAccountHistory$transferConnection$edges$node$from$identity(
+      name: (l$name as String),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final String name;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$name = name;
+    _resultData['name'] = l$name;
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$name = name;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$name,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other
+            is Query$GetAccountHistory$transferConnection$edges$node$from$identity) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$name = name;
+    final lOther$name = other.name;
+    if (l$name != lOther$name) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$GetAccountHistory$transferConnection$edges$node$from$identity
+    on Query$GetAccountHistory$transferConnection$edges$node$from$identity {
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from$identity<
+          Query$GetAccountHistory$transferConnection$edges$node$from$identity>
+      get copyWith =>
+          CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from$identity(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from$identity<
+    TRes> {
+  factory CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from$identity(
+    Query$GetAccountHistory$transferConnection$edges$node$from$identity
+        instance,
+    TRes Function(
+            Query$GetAccountHistory$transferConnection$edges$node$from$identity)
+        then,
+  ) = _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges$node$from$identity;
+
+  factory CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from$identity.stub(
+          TRes res) =
+      _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges$node$from$identity;
+
+  TRes call({
+    String? name,
+    String? $__typename,
+  });
+}
+
+class _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges$node$from$identity<
+        TRes>
+    implements
+        CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from$identity<
+            TRes> {
+  _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges$node$from$identity(
+    this._instance,
+    this._then,
+  );
+
+  final Query$GetAccountHistory$transferConnection$edges$node$from$identity
+      _instance;
+
+  final TRes Function(
+          Query$GetAccountHistory$transferConnection$edges$node$from$identity)
+      _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? name = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$GetAccountHistory$transferConnection$edges$node$from$identity(
+        name: name == _undefined || name == null
+            ? _instance.name
+            : (name as String),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+}
+
+class _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges$node$from$identity<
+        TRes>
+    implements
+        CopyWith$Query$GetAccountHistory$transferConnection$edges$node$from$identity<
+            TRes> {
+  _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges$node$from$identity(
+      this._res);
+
+  TRes _res;
+
+  call({
+    String? name,
+    String? $__typename,
+  }) =>
+      _res;
+}
+
+class Query$GetAccountHistory$transferConnection$edges$node$to {
+  Query$GetAccountHistory$transferConnection$edges$node$to({
+    this.identity,
+    this.$__typename = 'Account',
+  });
+
+  factory Query$GetAccountHistory$transferConnection$edges$node$to.fromJson(
+      Map<String, dynamic> json) {
+    final l$identity = json['identity'];
+    final l$$__typename = json['__typename'];
+    return Query$GetAccountHistory$transferConnection$edges$node$to(
+      identity: l$identity == null
+          ? null
+          : Query$GetAccountHistory$transferConnection$edges$node$to$identity
+              .fromJson((l$identity as Map<String, dynamic>)),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final Query$GetAccountHistory$transferConnection$edges$node$to$identity?
+      identity;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$identity = identity;
+    _resultData['identity'] = l$identity?.toJson();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$identity = identity;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$identity,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Query$GetAccountHistory$transferConnection$edges$node$to) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$identity = identity;
+    final lOther$identity = other.identity;
+    if (l$identity != lOther$identity) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$GetAccountHistory$transferConnection$edges$node$to
+    on Query$GetAccountHistory$transferConnection$edges$node$to {
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to<
+          Query$GetAccountHistory$transferConnection$edges$node$to>
+      get copyWith =>
+          CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to<
+    TRes> {
+  factory CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to(
+    Query$GetAccountHistory$transferConnection$edges$node$to instance,
+    TRes Function(Query$GetAccountHistory$transferConnection$edges$node$to)
+        then,
+  ) = _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges$node$to;
+
+  factory CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to.stub(
+          TRes res) =
+      _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges$node$to;
+
+  TRes call({
+    Query$GetAccountHistory$transferConnection$edges$node$to$identity? identity,
+    String? $__typename,
+  });
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to$identity<
+      TRes> get identity;
+}
+
+class _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges$node$to<
+        TRes>
+    implements
+        CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to<
+            TRes> {
+  _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges$node$to(
+    this._instance,
+    this._then,
+  );
+
+  final Query$GetAccountHistory$transferConnection$edges$node$to _instance;
+
+  final TRes Function(Query$GetAccountHistory$transferConnection$edges$node$to)
+      _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? identity = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$GetAccountHistory$transferConnection$edges$node$to(
+        identity: identity == _undefined
+            ? _instance.identity
+            : (identity
+                as Query$GetAccountHistory$transferConnection$edges$node$to$identity?),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to$identity<
+      TRes> get identity {
+    final local$identity = _instance.identity;
+    return local$identity == null
+        ? CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to$identity
+            .stub(_then(_instance))
+        : CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to$identity(
+            local$identity, (e) => call(identity: e));
+  }
+}
+
+class _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges$node$to<
+        TRes>
+    implements
+        CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to<
+            TRes> {
+  _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges$node$to(
+      this._res);
+
+  TRes _res;
+
+  call({
+    Query$GetAccountHistory$transferConnection$edges$node$to$identity? identity,
+    String? $__typename,
+  }) =>
+      _res;
+
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to$identity<
+          TRes>
+      get identity =>
+          CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to$identity
+              .stub(_res);
+}
+
+class Query$GetAccountHistory$transferConnection$edges$node$to$identity {
+  Query$GetAccountHistory$transferConnection$edges$node$to$identity({
+    required this.name,
+    this.$__typename = 'Identity',
+  });
+
+  factory Query$GetAccountHistory$transferConnection$edges$node$to$identity.fromJson(
+      Map<String, dynamic> json) {
+    final l$name = json['name'];
+    final l$$__typename = json['__typename'];
+    return Query$GetAccountHistory$transferConnection$edges$node$to$identity(
+      name: (l$name as String),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final String name;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$name = name;
+    _resultData['name'] = l$name;
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$name = name;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$name,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other
+            is Query$GetAccountHistory$transferConnection$edges$node$to$identity) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$name = name;
+    final lOther$name = other.name;
+    if (l$name != lOther$name) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$GetAccountHistory$transferConnection$edges$node$to$identity
+    on Query$GetAccountHistory$transferConnection$edges$node$to$identity {
+  CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to$identity<
+          Query$GetAccountHistory$transferConnection$edges$node$to$identity>
+      get copyWith =>
+          CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to$identity(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to$identity<
+    TRes> {
+  factory CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to$identity(
+    Query$GetAccountHistory$transferConnection$edges$node$to$identity instance,
+    TRes Function(
+            Query$GetAccountHistory$transferConnection$edges$node$to$identity)
+        then,
+  ) = _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges$node$to$identity;
+
+  factory CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to$identity.stub(
+          TRes res) =
+      _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges$node$to$identity;
+
+  TRes call({
+    String? name,
+    String? $__typename,
+  });
+}
+
+class _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges$node$to$identity<
+        TRes>
+    implements
+        CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to$identity<
+            TRes> {
+  _CopyWithImpl$Query$GetAccountHistory$transferConnection$edges$node$to$identity(
+    this._instance,
+    this._then,
+  );
+
+  final Query$GetAccountHistory$transferConnection$edges$node$to$identity
+      _instance;
+
+  final TRes Function(
+      Query$GetAccountHistory$transferConnection$edges$node$to$identity) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? name = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$GetAccountHistory$transferConnection$edges$node$to$identity(
+        name: name == _undefined || name == null
+            ? _instance.name
+            : (name as String),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+}
+
+class _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges$node$to$identity<
+        TRes>
+    implements
+        CopyWith$Query$GetAccountHistory$transferConnection$edges$node$to$identity<
+            TRes> {
+  _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$edges$node$to$identity(
+      this._res);
+
+  TRes _res;
+
+  call({
+    String? name,
+    String? $__typename,
+  }) =>
+      _res;
+}
+
+class Query$GetAccountHistory$transferConnection$pageInfo {
+  Query$GetAccountHistory$transferConnection$pageInfo({
+    required this.endCursor,
+    required this.hasNextPage,
+    this.$__typename = 'PageInfo',
+  });
+
+  factory Query$GetAccountHistory$transferConnection$pageInfo.fromJson(
+      Map<String, dynamic> json) {
+    final l$endCursor = json['endCursor'];
+    final l$hasNextPage = json['hasNextPage'];
+    final l$$__typename = json['__typename'];
+    return Query$GetAccountHistory$transferConnection$pageInfo(
+      endCursor: (l$endCursor as String),
+      hasNextPage: (l$hasNextPage as bool),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final String endCursor;
+
+  final bool hasNextPage;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$endCursor = endCursor;
+    _resultData['endCursor'] = l$endCursor;
+    final l$hasNextPage = hasNextPage;
+    _resultData['hasNextPage'] = l$hasNextPage;
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$endCursor = endCursor;
+    final l$hasNextPage = hasNextPage;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$endCursor,
+      l$hasNextPage,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Query$GetAccountHistory$transferConnection$pageInfo) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$endCursor = endCursor;
+    final lOther$endCursor = other.endCursor;
+    if (l$endCursor != lOther$endCursor) {
+      return false;
+    }
+    final l$hasNextPage = hasNextPage;
+    final lOther$hasNextPage = other.hasNextPage;
+    if (l$hasNextPage != lOther$hasNextPage) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$GetAccountHistory$transferConnection$pageInfo
+    on Query$GetAccountHistory$transferConnection$pageInfo {
+  CopyWith$Query$GetAccountHistory$transferConnection$pageInfo<
+          Query$GetAccountHistory$transferConnection$pageInfo>
+      get copyWith =>
+          CopyWith$Query$GetAccountHistory$transferConnection$pageInfo(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Query$GetAccountHistory$transferConnection$pageInfo<
+    TRes> {
+  factory CopyWith$Query$GetAccountHistory$transferConnection$pageInfo(
+    Query$GetAccountHistory$transferConnection$pageInfo instance,
+    TRes Function(Query$GetAccountHistory$transferConnection$pageInfo) then,
+  ) = _CopyWithImpl$Query$GetAccountHistory$transferConnection$pageInfo;
+
+  factory CopyWith$Query$GetAccountHistory$transferConnection$pageInfo.stub(
+          TRes res) =
+      _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$pageInfo;
+
+  TRes call({
+    String? endCursor,
+    bool? hasNextPage,
+    String? $__typename,
+  });
+}
+
+class _CopyWithImpl$Query$GetAccountHistory$transferConnection$pageInfo<TRes>
+    implements
+        CopyWith$Query$GetAccountHistory$transferConnection$pageInfo<TRes> {
+  _CopyWithImpl$Query$GetAccountHistory$transferConnection$pageInfo(
+    this._instance,
+    this._then,
+  );
+
+  final Query$GetAccountHistory$transferConnection$pageInfo _instance;
+
+  final TRes Function(Query$GetAccountHistory$transferConnection$pageInfo)
+      _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? endCursor = _undefined,
+    Object? hasNextPage = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$GetAccountHistory$transferConnection$pageInfo(
+        endCursor: endCursor == _undefined || endCursor == null
+            ? _instance.endCursor
+            : (endCursor as String),
+        hasNextPage: hasNextPage == _undefined || hasNextPage == null
+            ? _instance.hasNextPage
+            : (hasNextPage as bool),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+}
+
+class _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$pageInfo<
+        TRes>
+    implements
+        CopyWith$Query$GetAccountHistory$transferConnection$pageInfo<TRes> {
+  _CopyWithStubImpl$Query$GetAccountHistory$transferConnection$pageInfo(
+      this._res);
+
+  TRes _res;
+
+  call({
+    String? endCursor,
+    bool? hasNextPage,
+    String? $__typename,
+  }) =>
+      _res;
+}
+
+class Variables$Subscription$SubAccountHistory {
+  factory Variables$Subscription$SubAccountHistory({required String address}) =>
+      Variables$Subscription$SubAccountHistory._({
+        r'address': address,
+      });
+
+  Variables$Subscription$SubAccountHistory._(this._$data);
+
+  factory Variables$Subscription$SubAccountHistory.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    final l$address = data['address'];
+    result$data['address'] = (l$address as String);
+    return Variables$Subscription$SubAccountHistory._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  String get address => (_$data['address'] as String);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    final l$address = address;
+    result$data['address'] = l$address;
+    return result$data;
+  }
+
+  CopyWith$Variables$Subscription$SubAccountHistory<
+          Variables$Subscription$SubAccountHistory>
+      get copyWith => CopyWith$Variables$Subscription$SubAccountHistory(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Variables$Subscription$SubAccountHistory) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$address = address;
+    final lOther$address = other.address;
+    if (l$address != lOther$address) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$address = address;
+    return Object.hashAll([l$address]);
+  }
+}
+
+abstract class CopyWith$Variables$Subscription$SubAccountHistory<TRes> {
+  factory CopyWith$Variables$Subscription$SubAccountHistory(
+    Variables$Subscription$SubAccountHistory instance,
+    TRes Function(Variables$Subscription$SubAccountHistory) then,
+  ) = _CopyWithImpl$Variables$Subscription$SubAccountHistory;
+
+  factory CopyWith$Variables$Subscription$SubAccountHistory.stub(TRes res) =
+      _CopyWithStubImpl$Variables$Subscription$SubAccountHistory;
+
+  TRes call({String? address});
+}
+
+class _CopyWithImpl$Variables$Subscription$SubAccountHistory<TRes>
+    implements CopyWith$Variables$Subscription$SubAccountHistory<TRes> {
+  _CopyWithImpl$Variables$Subscription$SubAccountHistory(
+    this._instance,
+    this._then,
+  );
+
+  final Variables$Subscription$SubAccountHistory _instance;
+
+  final TRes Function(Variables$Subscription$SubAccountHistory) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? address = _undefined}) =>
+      _then(Variables$Subscription$SubAccountHistory._({
+        ..._instance._$data,
+        if (address != _undefined && address != null)
+          'address': (address as String),
+      }));
+}
+
+class _CopyWithStubImpl$Variables$Subscription$SubAccountHistory<TRes>
+    implements CopyWith$Variables$Subscription$SubAccountHistory<TRes> {
+  _CopyWithStubImpl$Variables$Subscription$SubAccountHistory(this._res);
+
+  TRes _res;
+
+  call({String? address}) => _res;
+}
+
+class Subscription$SubAccountHistory {
+  Subscription$SubAccountHistory({required this.transferConnection});
+
+  factory Subscription$SubAccountHistory.fromJson(Map<String, dynamic> json) {
+    final l$transferConnection = json['transferConnection'];
+    return Subscription$SubAccountHistory(
+        transferConnection:
+            Subscription$SubAccountHistory$transferConnection.fromJson(
+                (l$transferConnection as Map<String, dynamic>)));
+  }
+
+  final Subscription$SubAccountHistory$transferConnection transferConnection;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$transferConnection = transferConnection;
+    _resultData['transferConnection'] = l$transferConnection.toJson();
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$transferConnection = transferConnection;
+    return Object.hashAll([l$transferConnection]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Subscription$SubAccountHistory) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$transferConnection = transferConnection;
+    final lOther$transferConnection = other.transferConnection;
+    if (l$transferConnection != lOther$transferConnection) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Subscription$SubAccountHistory
+    on Subscription$SubAccountHistory {
+  CopyWith$Subscription$SubAccountHistory<Subscription$SubAccountHistory>
+      get copyWith => CopyWith$Subscription$SubAccountHistory(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Subscription$SubAccountHistory<TRes> {
+  factory CopyWith$Subscription$SubAccountHistory(
+    Subscription$SubAccountHistory instance,
+    TRes Function(Subscription$SubAccountHistory) then,
+  ) = _CopyWithImpl$Subscription$SubAccountHistory;
+
+  factory CopyWith$Subscription$SubAccountHistory.stub(TRes res) =
+      _CopyWithStubImpl$Subscription$SubAccountHistory;
+
+  TRes call(
+      {Subscription$SubAccountHistory$transferConnection? transferConnection});
+  CopyWith$Subscription$SubAccountHistory$transferConnection<TRes>
+      get transferConnection;
+}
+
+class _CopyWithImpl$Subscription$SubAccountHistory<TRes>
+    implements CopyWith$Subscription$SubAccountHistory<TRes> {
+  _CopyWithImpl$Subscription$SubAccountHistory(
+    this._instance,
+    this._then,
+  );
+
+  final Subscription$SubAccountHistory _instance;
+
+  final TRes Function(Subscription$SubAccountHistory) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? transferConnection = _undefined}) =>
+      _then(Subscription$SubAccountHistory(
+          transferConnection:
+              transferConnection == _undefined || transferConnection == null
+                  ? _instance.transferConnection
+                  : (transferConnection
+                      as Subscription$SubAccountHistory$transferConnection)));
+
+  CopyWith$Subscription$SubAccountHistory$transferConnection<TRes>
+      get transferConnection {
+    final local$transferConnection = _instance.transferConnection;
+    return CopyWith$Subscription$SubAccountHistory$transferConnection(
+        local$transferConnection, (e) => call(transferConnection: e));
+  }
+}
+
+class _CopyWithStubImpl$Subscription$SubAccountHistory<TRes>
+    implements CopyWith$Subscription$SubAccountHistory<TRes> {
+  _CopyWithStubImpl$Subscription$SubAccountHistory(this._res);
+
+  TRes _res;
+
+  call(
+          {Subscription$SubAccountHistory$transferConnection?
+              transferConnection}) =>
+      _res;
+
+  CopyWith$Subscription$SubAccountHistory$transferConnection<TRes>
+      get transferConnection =>
+          CopyWith$Subscription$SubAccountHistory$transferConnection.stub(_res);
+}
+
+const documentNodeSubscriptionSubAccountHistory = DocumentNode(definitions: [
+  OperationDefinitionNode(
+    type: OperationType.subscription,
+    name: NameNode(value: 'SubAccountHistory'),
+    variableDefinitions: [
+      VariableDefinitionNode(
+        variable: VariableNode(name: NameNode(value: 'address')),
+        type: NamedTypeNode(
+          name: NameNode(value: 'String'),
+          isNonNull: true,
+        ),
+        defaultValue: DefaultValueNode(value: null),
+        directives: [],
+      )
+    ],
+    directives: [],
+    selectionSet: SelectionSetNode(selections: [
+      FieldNode(
+        name: NameNode(value: 'transferConnection'),
+        alias: null,
+        arguments: [
+          ArgumentNode(
+            name: NameNode(value: 'first'),
+            value: IntValueNode(value: '1'),
+          ),
+          ArgumentNode(
+            name: NameNode(value: 'orderBy'),
+            value: ObjectValueNode(fields: [
+              ObjectFieldNode(
+                name: NameNode(value: 'timestamp'),
+                value: EnumValueNode(name: NameNode(value: 'DESC')),
+              )
+            ]),
+          ),
+          ArgumentNode(
+            name: NameNode(value: 'where'),
+            value: ObjectValueNode(fields: [
+              ObjectFieldNode(
+                name: NameNode(value: '_or'),
+                value: ListValueNode(values: [
+                  ObjectValueNode(fields: [
+                    ObjectFieldNode(
+                      name: NameNode(value: 'fromId'),
+                      value: ObjectValueNode(fields: [
+                        ObjectFieldNode(
+                          name: NameNode(value: '_eq'),
+                          value: VariableNode(name: NameNode(value: 'address')),
+                        )
+                      ]),
+                    )
+                  ]),
+                  ObjectValueNode(fields: [
+                    ObjectFieldNode(
+                      name: NameNode(value: 'toId'),
+                      value: ObjectValueNode(fields: [
+                        ObjectFieldNode(
+                          name: NameNode(value: '_eq'),
+                          value: VariableNode(name: NameNode(value: 'address')),
+                        )
+                      ]),
+                    )
+                  ]),
+                ]),
+              )
+            ]),
+          ),
+        ],
+        directives: [],
+        selectionSet: SelectionSetNode(selections: [
+          FieldNode(
+            name: NameNode(value: 'edges'),
+            alias: null,
+            arguments: [],
+            directives: [],
+            selectionSet: SelectionSetNode(selections: [
+              FieldNode(
+                name: NameNode(value: 'node'),
+                alias: null,
+                arguments: [],
+                directives: [],
+                selectionSet: SelectionSetNode(selections: [
+                  FieldNode(
+                    name: NameNode(value: 'id'),
+                    alias: null,
+                    arguments: [],
+                    directives: [],
+                    selectionSet: null,
+                  ),
+                  FieldNode(
+                    name: NameNode(value: 'timestamp'),
+                    alias: null,
+                    arguments: [],
+                    directives: [],
+                    selectionSet: null,
+                  ),
+                  FieldNode(
+                    name: NameNode(value: '__typename'),
+                    alias: null,
+                    arguments: [],
+                    directives: [],
+                    selectionSet: null,
+                  ),
+                ]),
+              ),
+              FieldNode(
+                name: NameNode(value: '__typename'),
+                alias: null,
+                arguments: [],
+                directives: [],
+                selectionSet: null,
+              ),
+            ]),
+          ),
+          FieldNode(
+            name: NameNode(value: '__typename'),
+            alias: null,
+            arguments: [],
+            directives: [],
+            selectionSet: null,
+          ),
+        ]),
+      )
+    ]),
+  ),
+]);
+Subscription$SubAccountHistory _parserFn$Subscription$SubAccountHistory(
+        Map<String, dynamic> data) =>
+    Subscription$SubAccountHistory.fromJson(data);
+
+class Options$Subscription$SubAccountHistory
+    extends graphql.SubscriptionOptions<Subscription$SubAccountHistory> {
+  Options$Subscription$SubAccountHistory({
+    String? operationName,
+    required Variables$Subscription$SubAccountHistory variables,
+    graphql.FetchPolicy? fetchPolicy,
+    graphql.ErrorPolicy? errorPolicy,
+    graphql.CacheRereadPolicy? cacheRereadPolicy,
+    Object? optimisticResult,
+    Subscription$SubAccountHistory? typedOptimisticResult,
+    graphql.Context? context,
+  }) : super(
+          variables: variables.toJson(),
+          operationName: operationName,
+          fetchPolicy: fetchPolicy,
+          errorPolicy: errorPolicy,
+          cacheRereadPolicy: cacheRereadPolicy,
+          optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(),
+          context: context,
+          document: documentNodeSubscriptionSubAccountHistory,
+          parserFn: _parserFn$Subscription$SubAccountHistory,
+        );
+}
+
+class WatchOptions$Subscription$SubAccountHistory
+    extends graphql.WatchQueryOptions<Subscription$SubAccountHistory> {
+  WatchOptions$Subscription$SubAccountHistory({
+    String? operationName,
+    required Variables$Subscription$SubAccountHistory variables,
+    graphql.FetchPolicy? fetchPolicy,
+    graphql.ErrorPolicy? errorPolicy,
+    graphql.CacheRereadPolicy? cacheRereadPolicy,
+    Object? optimisticResult,
+    Subscription$SubAccountHistory? typedOptimisticResult,
+    graphql.Context? context,
+    Duration? pollInterval,
+    bool? eagerlyFetchResults,
+    bool carryForwardDataOnException = true,
+    bool fetchResults = false,
+  }) : super(
+          variables: variables.toJson(),
+          operationName: operationName,
+          fetchPolicy: fetchPolicy,
+          errorPolicy: errorPolicy,
+          cacheRereadPolicy: cacheRereadPolicy,
+          optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(),
+          context: context,
+          document: documentNodeSubscriptionSubAccountHistory,
+          pollInterval: pollInterval,
+          eagerlyFetchResults: eagerlyFetchResults,
+          carryForwardDataOnException: carryForwardDataOnException,
+          fetchResults: fetchResults,
+          parserFn: _parserFn$Subscription$SubAccountHistory,
+        );
+}
+
+class FetchMoreOptions$Subscription$SubAccountHistory
+    extends graphql.FetchMoreOptions {
+  FetchMoreOptions$Subscription$SubAccountHistory({
+    required graphql.UpdateQuery updateQuery,
+    required Variables$Subscription$SubAccountHistory variables,
+  }) : super(
+          updateQuery: updateQuery,
+          variables: variables.toJson(),
+          document: documentNodeSubscriptionSubAccountHistory,
+        );
+}
+
+extension ClientExtension$Subscription$SubAccountHistory
+    on graphql.GraphQLClient {
+  Stream<graphql.QueryResult<Subscription$SubAccountHistory>>
+      subscribe$SubAccountHistory(
+              Options$Subscription$SubAccountHistory options) =>
+          this.subscribe(options);
+  graphql.ObservableQuery<Subscription$SubAccountHistory>
+      watchSubscription$SubAccountHistory(
+              WatchOptions$Subscription$SubAccountHistory options) =>
+          this.watchQuery(options);
+}
+
+class Subscription$SubAccountHistory$transferConnection {
+  Subscription$SubAccountHistory$transferConnection({
+    required this.edges,
+    this.$__typename = 'TransferConnection',
+  });
+
+  factory Subscription$SubAccountHistory$transferConnection.fromJson(
+      Map<String, dynamic> json) {
+    final l$edges = json['edges'];
+    final l$$__typename = json['__typename'];
+    return Subscription$SubAccountHistory$transferConnection(
+      edges: (l$edges as List<dynamic>)
+          .map((e) =>
+              Subscription$SubAccountHistory$transferConnection$edges.fromJson(
+                  (e as Map<String, dynamic>)))
+          .toList(),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final List<Subscription$SubAccountHistory$transferConnection$edges> edges;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$edges = edges;
+    _resultData['edges'] = l$edges.map((e) => e.toJson()).toList();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$edges = edges;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      Object.hashAll(l$edges.map((v) => v)),
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Subscription$SubAccountHistory$transferConnection) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$edges = edges;
+    final lOther$edges = other.edges;
+    if (l$edges.length != lOther$edges.length) {
+      return false;
+    }
+    for (int i = 0; i < l$edges.length; i++) {
+      final l$edges$entry = l$edges[i];
+      final lOther$edges$entry = lOther$edges[i];
+      if (l$edges$entry != lOther$edges$entry) {
+        return false;
+      }
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Subscription$SubAccountHistory$transferConnection
+    on Subscription$SubAccountHistory$transferConnection {
+  CopyWith$Subscription$SubAccountHistory$transferConnection<
+          Subscription$SubAccountHistory$transferConnection>
+      get copyWith =>
+          CopyWith$Subscription$SubAccountHistory$transferConnection(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Subscription$SubAccountHistory$transferConnection<
+    TRes> {
+  factory CopyWith$Subscription$SubAccountHistory$transferConnection(
+    Subscription$SubAccountHistory$transferConnection instance,
+    TRes Function(Subscription$SubAccountHistory$transferConnection) then,
+  ) = _CopyWithImpl$Subscription$SubAccountHistory$transferConnection;
+
+  factory CopyWith$Subscription$SubAccountHistory$transferConnection.stub(
+          TRes res) =
+      _CopyWithStubImpl$Subscription$SubAccountHistory$transferConnection;
+
+  TRes call({
+    List<Subscription$SubAccountHistory$transferConnection$edges>? edges,
+    String? $__typename,
+  });
+  TRes edges(
+      Iterable<Subscription$SubAccountHistory$transferConnection$edges> Function(
+              Iterable<
+                  CopyWith$Subscription$SubAccountHistory$transferConnection$edges<
+                      Subscription$SubAccountHistory$transferConnection$edges>>)
+          _fn);
+}
+
+class _CopyWithImpl$Subscription$SubAccountHistory$transferConnection<TRes>
+    implements
+        CopyWith$Subscription$SubAccountHistory$transferConnection<TRes> {
+  _CopyWithImpl$Subscription$SubAccountHistory$transferConnection(
+    this._instance,
+    this._then,
+  );
+
+  final Subscription$SubAccountHistory$transferConnection _instance;
+
+  final TRes Function(Subscription$SubAccountHistory$transferConnection) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? edges = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Subscription$SubAccountHistory$transferConnection(
+        edges: edges == _undefined || edges == null
+            ? _instance.edges
+            : (edges as List<
+                Subscription$SubAccountHistory$transferConnection$edges>),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+
+  TRes edges(
+          Iterable<Subscription$SubAccountHistory$transferConnection$edges> Function(
+                  Iterable<
+                      CopyWith$Subscription$SubAccountHistory$transferConnection$edges<
+                          Subscription$SubAccountHistory$transferConnection$edges>>)
+              _fn) =>
+      call(
+          edges: _fn(_instance.edges.map((e) =>
+              CopyWith$Subscription$SubAccountHistory$transferConnection$edges(
+                e,
+                (i) => i,
+              ))).toList());
+}
+
+class _CopyWithStubImpl$Subscription$SubAccountHistory$transferConnection<TRes>
+    implements
+        CopyWith$Subscription$SubAccountHistory$transferConnection<TRes> {
+  _CopyWithStubImpl$Subscription$SubAccountHistory$transferConnection(
+      this._res);
+
+  TRes _res;
+
+  call({
+    List<Subscription$SubAccountHistory$transferConnection$edges>? edges,
+    String? $__typename,
+  }) =>
+      _res;
+
+  edges(_fn) => _res;
+}
+
+class Subscription$SubAccountHistory$transferConnection$edges {
+  Subscription$SubAccountHistory$transferConnection$edges({
+    required this.node,
+    this.$__typename = 'TransferEdge',
+  });
+
+  factory Subscription$SubAccountHistory$transferConnection$edges.fromJson(
+      Map<String, dynamic> json) {
+    final l$node = json['node'];
+    final l$$__typename = json['__typename'];
+    return Subscription$SubAccountHistory$transferConnection$edges(
+      node:
+          Subscription$SubAccountHistory$transferConnection$edges$node.fromJson(
+              (l$node as Map<String, dynamic>)),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final Subscription$SubAccountHistory$transferConnection$edges$node node;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$node = node;
+    _resultData['node'] = l$node.toJson();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$node = node;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$node,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Subscription$SubAccountHistory$transferConnection$edges) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$node = node;
+    final lOther$node = other.node;
+    if (l$node != lOther$node) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Subscription$SubAccountHistory$transferConnection$edges
+    on Subscription$SubAccountHistory$transferConnection$edges {
+  CopyWith$Subscription$SubAccountHistory$transferConnection$edges<
+          Subscription$SubAccountHistory$transferConnection$edges>
+      get copyWith =>
+          CopyWith$Subscription$SubAccountHistory$transferConnection$edges(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Subscription$SubAccountHistory$transferConnection$edges<
+    TRes> {
+  factory CopyWith$Subscription$SubAccountHistory$transferConnection$edges(
+    Subscription$SubAccountHistory$transferConnection$edges instance,
+    TRes Function(Subscription$SubAccountHistory$transferConnection$edges) then,
+  ) = _CopyWithImpl$Subscription$SubAccountHistory$transferConnection$edges;
+
+  factory CopyWith$Subscription$SubAccountHistory$transferConnection$edges.stub(
+          TRes res) =
+      _CopyWithStubImpl$Subscription$SubAccountHistory$transferConnection$edges;
+
+  TRes call({
+    Subscription$SubAccountHistory$transferConnection$edges$node? node,
+    String? $__typename,
+  });
+  CopyWith$Subscription$SubAccountHistory$transferConnection$edges$node<TRes>
+      get node;
+}
+
+class _CopyWithImpl$Subscription$SubAccountHistory$transferConnection$edges<
+        TRes>
+    implements
+        CopyWith$Subscription$SubAccountHistory$transferConnection$edges<TRes> {
+  _CopyWithImpl$Subscription$SubAccountHistory$transferConnection$edges(
+    this._instance,
+    this._then,
+  );
+
+  final Subscription$SubAccountHistory$transferConnection$edges _instance;
+
+  final TRes Function(Subscription$SubAccountHistory$transferConnection$edges)
+      _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? node = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Subscription$SubAccountHistory$transferConnection$edges(
+        node: node == _undefined || node == null
+            ? _instance.node
+            : (node
+                as Subscription$SubAccountHistory$transferConnection$edges$node),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+
+  CopyWith$Subscription$SubAccountHistory$transferConnection$edges$node<TRes>
+      get node {
+    final local$node = _instance.node;
+    return CopyWith$Subscription$SubAccountHistory$transferConnection$edges$node(
+        local$node, (e) => call(node: e));
+  }
+}
+
+class _CopyWithStubImpl$Subscription$SubAccountHistory$transferConnection$edges<
+        TRes>
+    implements
+        CopyWith$Subscription$SubAccountHistory$transferConnection$edges<TRes> {
+  _CopyWithStubImpl$Subscription$SubAccountHistory$transferConnection$edges(
+      this._res);
+
+  TRes _res;
+
+  call({
+    Subscription$SubAccountHistory$transferConnection$edges$node? node,
+    String? $__typename,
+  }) =>
+      _res;
+
+  CopyWith$Subscription$SubAccountHistory$transferConnection$edges$node<TRes>
+      get node =>
+          CopyWith$Subscription$SubAccountHistory$transferConnection$edges$node
+              .stub(_res);
+}
+
+class Subscription$SubAccountHistory$transferConnection$edges$node {
+  Subscription$SubAccountHistory$transferConnection$edges$node({
+    required this.id,
+    required this.timestamp,
+    this.$__typename = 'Transfer',
+  });
+
+  factory Subscription$SubAccountHistory$transferConnection$edges$node.fromJson(
+      Map<String, dynamic> json) {
+    final l$id = json['id'];
+    final l$timestamp = json['timestamp'];
+    final l$$__typename = json['__typename'];
+    return Subscription$SubAccountHistory$transferConnection$edges$node(
+      id: (l$id as String),
+      timestamp: DateTime.parse((l$timestamp as String)),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final String id;
+
+  final DateTime timestamp;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$id = id;
+    _resultData['id'] = l$id;
+    final l$timestamp = timestamp;
+    _resultData['timestamp'] = l$timestamp.toIso8601String();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$id = id;
+    final l$timestamp = timestamp;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$id,
+      l$timestamp,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other
+            is Subscription$SubAccountHistory$transferConnection$edges$node) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Subscription$SubAccountHistory$transferConnection$edges$node
+    on Subscription$SubAccountHistory$transferConnection$edges$node {
+  CopyWith$Subscription$SubAccountHistory$transferConnection$edges$node<
+          Subscription$SubAccountHistory$transferConnection$edges$node>
+      get copyWith =>
+          CopyWith$Subscription$SubAccountHistory$transferConnection$edges$node(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Subscription$SubAccountHistory$transferConnection$edges$node<
+    TRes> {
+  factory CopyWith$Subscription$SubAccountHistory$transferConnection$edges$node(
+    Subscription$SubAccountHistory$transferConnection$edges$node instance,
+    TRes Function(Subscription$SubAccountHistory$transferConnection$edges$node)
+        then,
+  ) = _CopyWithImpl$Subscription$SubAccountHistory$transferConnection$edges$node;
+
+  factory CopyWith$Subscription$SubAccountHistory$transferConnection$edges$node.stub(
+          TRes res) =
+      _CopyWithStubImpl$Subscription$SubAccountHistory$transferConnection$edges$node;
+
+  TRes call({
+    String? id,
+    DateTime? timestamp,
+    String? $__typename,
+  });
+}
+
+class _CopyWithImpl$Subscription$SubAccountHistory$transferConnection$edges$node<
+        TRes>
+    implements
+        CopyWith$Subscription$SubAccountHistory$transferConnection$edges$node<
+            TRes> {
+  _CopyWithImpl$Subscription$SubAccountHistory$transferConnection$edges$node(
+    this._instance,
+    this._then,
+  );
+
+  final Subscription$SubAccountHistory$transferConnection$edges$node _instance;
+
+  final TRes Function(
+      Subscription$SubAccountHistory$transferConnection$edges$node) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? id = _undefined,
+    Object? timestamp = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Subscription$SubAccountHistory$transferConnection$edges$node(
+        id: id == _undefined || id == null ? _instance.id : (id as String),
+        timestamp: timestamp == _undefined || timestamp == null
+            ? _instance.timestamp
+            : (timestamp as DateTime),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+}
+
+class _CopyWithStubImpl$Subscription$SubAccountHistory$transferConnection$edges$node<
+        TRes>
+    implements
+        CopyWith$Subscription$SubAccountHistory$transferConnection$edges$node<
+            TRes> {
+  _CopyWithStubImpl$Subscription$SubAccountHistory$transferConnection$edges$node(
+      this._res);
+
+  TRes _res;
+
+  call({
+    String? id,
+    DateTime? timestamp,
+    String? $__typename,
+  }) =>
+      _res;
+}
+
+class Variables$Query$SerachAddressByName {
+  factory Variables$Query$SerachAddressByName({required String name}) =>
+      Variables$Query$SerachAddressByName._({
+        r'name': name,
+      });
+
+  Variables$Query$SerachAddressByName._(this._$data);
+
+  factory Variables$Query$SerachAddressByName.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    final l$name = data['name'];
+    result$data['name'] = (l$name as String);
+    return Variables$Query$SerachAddressByName._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  String get name => (_$data['name'] as String);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    final l$name = name;
+    result$data['name'] = l$name;
+    return result$data;
+  }
+
+  CopyWith$Variables$Query$SerachAddressByName<
+          Variables$Query$SerachAddressByName>
+      get copyWith => CopyWith$Variables$Query$SerachAddressByName(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Variables$Query$SerachAddressByName) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$name = name;
+    final lOther$name = other.name;
+    if (l$name != lOther$name) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$name = name;
+    return Object.hashAll([l$name]);
+  }
+}
+
+abstract class CopyWith$Variables$Query$SerachAddressByName<TRes> {
+  factory CopyWith$Variables$Query$SerachAddressByName(
+    Variables$Query$SerachAddressByName instance,
+    TRes Function(Variables$Query$SerachAddressByName) then,
+  ) = _CopyWithImpl$Variables$Query$SerachAddressByName;
+
+  factory CopyWith$Variables$Query$SerachAddressByName.stub(TRes res) =
+      _CopyWithStubImpl$Variables$Query$SerachAddressByName;
+
+  TRes call({String? name});
+}
+
+class _CopyWithImpl$Variables$Query$SerachAddressByName<TRes>
+    implements CopyWith$Variables$Query$SerachAddressByName<TRes> {
+  _CopyWithImpl$Variables$Query$SerachAddressByName(
+    this._instance,
+    this._then,
+  );
+
+  final Variables$Query$SerachAddressByName _instance;
+
+  final TRes Function(Variables$Query$SerachAddressByName) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? name = _undefined}) =>
+      _then(Variables$Query$SerachAddressByName._({
+        ..._instance._$data,
+        if (name != _undefined && name != null) 'name': (name as String),
+      }));
+}
+
+class _CopyWithStubImpl$Variables$Query$SerachAddressByName<TRes>
+    implements CopyWith$Variables$Query$SerachAddressByName<TRes> {
+  _CopyWithStubImpl$Variables$Query$SerachAddressByName(this._res);
+
+  TRes _res;
+
+  call({String? name}) => _res;
+}
+
+class Query$SerachAddressByName {
+  Query$SerachAddressByName({
+    required this.identityConnection,
+    this.$__typename = 'query_root',
+  });
+
+  factory Query$SerachAddressByName.fromJson(Map<String, dynamic> json) {
+    final l$identityConnection = json['identityConnection'];
+    final l$$__typename = json['__typename'];
+    return Query$SerachAddressByName(
+      identityConnection: Query$SerachAddressByName$identityConnection.fromJson(
+          (l$identityConnection as Map<String, dynamic>)),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final Query$SerachAddressByName$identityConnection identityConnection;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$identityConnection = identityConnection;
+    _resultData['identityConnection'] = l$identityConnection.toJson();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$identityConnection = identityConnection;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$identityConnection,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Query$SerachAddressByName) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$identityConnection = identityConnection;
+    final lOther$identityConnection = other.identityConnection;
+    if (l$identityConnection != lOther$identityConnection) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$SerachAddressByName
+    on Query$SerachAddressByName {
+  CopyWith$Query$SerachAddressByName<Query$SerachAddressByName> get copyWith =>
+      CopyWith$Query$SerachAddressByName(
+        this,
+        (i) => i,
+      );
+}
+
+abstract class CopyWith$Query$SerachAddressByName<TRes> {
+  factory CopyWith$Query$SerachAddressByName(
+    Query$SerachAddressByName instance,
+    TRes Function(Query$SerachAddressByName) then,
+  ) = _CopyWithImpl$Query$SerachAddressByName;
+
+  factory CopyWith$Query$SerachAddressByName.stub(TRes res) =
+      _CopyWithStubImpl$Query$SerachAddressByName;
+
+  TRes call({
+    Query$SerachAddressByName$identityConnection? identityConnection,
+    String? $__typename,
+  });
+  CopyWith$Query$SerachAddressByName$identityConnection<TRes>
+      get identityConnection;
+}
+
+class _CopyWithImpl$Query$SerachAddressByName<TRes>
+    implements CopyWith$Query$SerachAddressByName<TRes> {
+  _CopyWithImpl$Query$SerachAddressByName(
+    this._instance,
+    this._then,
+  );
+
+  final Query$SerachAddressByName _instance;
+
+  final TRes Function(Query$SerachAddressByName) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? identityConnection = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$SerachAddressByName(
+        identityConnection:
+            identityConnection == _undefined || identityConnection == null
+                ? _instance.identityConnection
+                : (identityConnection
+                    as Query$SerachAddressByName$identityConnection),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+
+  CopyWith$Query$SerachAddressByName$identityConnection<TRes>
+      get identityConnection {
+    final local$identityConnection = _instance.identityConnection;
+    return CopyWith$Query$SerachAddressByName$identityConnection(
+        local$identityConnection, (e) => call(identityConnection: e));
+  }
+}
+
+class _CopyWithStubImpl$Query$SerachAddressByName<TRes>
+    implements CopyWith$Query$SerachAddressByName<TRes> {
+  _CopyWithStubImpl$Query$SerachAddressByName(this._res);
+
+  TRes _res;
+
+  call({
+    Query$SerachAddressByName$identityConnection? identityConnection,
+    String? $__typename,
+  }) =>
+      _res;
+
+  CopyWith$Query$SerachAddressByName$identityConnection<TRes>
+      get identityConnection =>
+          CopyWith$Query$SerachAddressByName$identityConnection.stub(_res);
+}
+
+const documentNodeQuerySerachAddressByName = DocumentNode(definitions: [
+  OperationDefinitionNode(
+    type: OperationType.query,
+    name: NameNode(value: 'SerachAddressByName'),
+    variableDefinitions: [
+      VariableDefinitionNode(
+        variable: VariableNode(name: NameNode(value: 'name')),
+        type: NamedTypeNode(
+          name: NameNode(value: 'String'),
+          isNonNull: true,
+        ),
+        defaultValue: DefaultValueNode(value: null),
+        directives: [],
+      )
+    ],
+    directives: [],
+    selectionSet: SelectionSetNode(selections: [
+      FieldNode(
+        name: NameNode(value: 'identityConnection'),
+        alias: null,
+        arguments: [
+          ArgumentNode(
+            name: NameNode(value: 'where'),
+            value: ObjectValueNode(fields: [
+              ObjectFieldNode(
+                name: NameNode(value: 'name'),
+                value: ObjectValueNode(fields: [
+                  ObjectFieldNode(
+                    name: NameNode(value: '_ilike'),
+                    value: VariableNode(name: NameNode(value: 'name')),
+                  )
+                ]),
+              )
+            ]),
+          ),
+          ArgumentNode(
+            name: NameNode(value: 'orderBy'),
+            value: ObjectValueNode(fields: [
+              ObjectFieldNode(
+                name: NameNode(value: 'name'),
+                value: EnumValueNode(name: NameNode(value: 'ASC')),
+              )
+            ]),
+          ),
+        ],
+        directives: [],
+        selectionSet: SelectionSetNode(selections: [
+          FieldNode(
+            name: NameNode(value: 'edges'),
+            alias: null,
+            arguments: [],
+            directives: [],
+            selectionSet: SelectionSetNode(selections: [
+              FieldNode(
+                name: NameNode(value: 'node'),
+                alias: null,
+                arguments: [],
+                directives: [],
+                selectionSet: SelectionSetNode(selections: [
+                  FieldNode(
+                    name: NameNode(value: 'name'),
+                    alias: null,
+                    arguments: [],
+                    directives: [],
+                    selectionSet: null,
+                  ),
+                  FieldNode(
+                    name: NameNode(value: 'accountId'),
+                    alias: null,
+                    arguments: [],
+                    directives: [],
+                    selectionSet: null,
+                  ),
+                  FieldNode(
+                    name: NameNode(value: '__typename'),
+                    alias: null,
+                    arguments: [],
+                    directives: [],
+                    selectionSet: null,
+                  ),
+                ]),
+              ),
+              FieldNode(
+                name: NameNode(value: '__typename'),
+                alias: null,
+                arguments: [],
+                directives: [],
+                selectionSet: null,
+              ),
+            ]),
+          ),
+          FieldNode(
+            name: NameNode(value: '__typename'),
+            alias: null,
+            arguments: [],
+            directives: [],
+            selectionSet: null,
+          ),
+        ]),
+      ),
+      FieldNode(
+        name: NameNode(value: '__typename'),
+        alias: null,
+        arguments: [],
+        directives: [],
+        selectionSet: null,
+      ),
+    ]),
+  ),
+]);
+Query$SerachAddressByName _parserFn$Query$SerachAddressByName(
+        Map<String, dynamic> data) =>
+    Query$SerachAddressByName.fromJson(data);
+typedef OnQueryComplete$Query$SerachAddressByName = FutureOr<void> Function(
+  Map<String, dynamic>?,
+  Query$SerachAddressByName?,
+);
+
+class Options$Query$SerachAddressByName
+    extends graphql.QueryOptions<Query$SerachAddressByName> {
+  Options$Query$SerachAddressByName({
+    String? operationName,
+    required Variables$Query$SerachAddressByName variables,
+    graphql.FetchPolicy? fetchPolicy,
+    graphql.ErrorPolicy? errorPolicy,
+    graphql.CacheRereadPolicy? cacheRereadPolicy,
+    Object? optimisticResult,
+    Query$SerachAddressByName? typedOptimisticResult,
+    Duration? pollInterval,
+    graphql.Context? context,
+    OnQueryComplete$Query$SerachAddressByName? onComplete,
+    graphql.OnQueryError? onError,
+  })  : onCompleteWithParsed = onComplete,
+        super(
+          variables: variables.toJson(),
+          operationName: operationName,
+          fetchPolicy: fetchPolicy,
+          errorPolicy: errorPolicy,
+          cacheRereadPolicy: cacheRereadPolicy,
+          optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(),
+          pollInterval: pollInterval,
+          context: context,
+          onComplete: onComplete == null
+              ? null
+              : (data) => onComplete(
+                    data,
+                    data == null
+                        ? null
+                        : _parserFn$Query$SerachAddressByName(data),
+                  ),
+          onError: onError,
+          document: documentNodeQuerySerachAddressByName,
+          parserFn: _parserFn$Query$SerachAddressByName,
+        );
+
+  final OnQueryComplete$Query$SerachAddressByName? onCompleteWithParsed;
+
+  @override
+  List<Object?> get properties => [
+        ...super.onComplete == null
+            ? super.properties
+            : super.properties.where((property) => property != onComplete),
+        onCompleteWithParsed,
+      ];
+}
+
+class WatchOptions$Query$SerachAddressByName
+    extends graphql.WatchQueryOptions<Query$SerachAddressByName> {
+  WatchOptions$Query$SerachAddressByName({
+    String? operationName,
+    required Variables$Query$SerachAddressByName variables,
+    graphql.FetchPolicy? fetchPolicy,
+    graphql.ErrorPolicy? errorPolicy,
+    graphql.CacheRereadPolicy? cacheRereadPolicy,
+    Object? optimisticResult,
+    Query$SerachAddressByName? typedOptimisticResult,
+    graphql.Context? context,
+    Duration? pollInterval,
+    bool? eagerlyFetchResults,
+    bool carryForwardDataOnException = true,
+    bool fetchResults = false,
+  }) : super(
+          variables: variables.toJson(),
+          operationName: operationName,
+          fetchPolicy: fetchPolicy,
+          errorPolicy: errorPolicy,
+          cacheRereadPolicy: cacheRereadPolicy,
+          optimisticResult: optimisticResult ?? typedOptimisticResult?.toJson(),
+          context: context,
+          document: documentNodeQuerySerachAddressByName,
+          pollInterval: pollInterval,
+          eagerlyFetchResults: eagerlyFetchResults,
+          carryForwardDataOnException: carryForwardDataOnException,
+          fetchResults: fetchResults,
+          parserFn: _parserFn$Query$SerachAddressByName,
+        );
+}
+
+class FetchMoreOptions$Query$SerachAddressByName
+    extends graphql.FetchMoreOptions {
+  FetchMoreOptions$Query$SerachAddressByName({
+    required graphql.UpdateQuery updateQuery,
+    required Variables$Query$SerachAddressByName variables,
+  }) : super(
+          updateQuery: updateQuery,
+          variables: variables.toJson(),
+          document: documentNodeQuerySerachAddressByName,
+        );
+}
+
+extension ClientExtension$Query$SerachAddressByName on graphql.GraphQLClient {
+  Future<graphql.QueryResult<Query$SerachAddressByName>>
+      query$SerachAddressByName(
+              Options$Query$SerachAddressByName options) async =>
+          await this.query(options);
+  graphql.ObservableQuery<Query$SerachAddressByName>
+      watchQuery$SerachAddressByName(
+              WatchOptions$Query$SerachAddressByName options) =>
+          this.watchQuery(options);
+  void writeQuery$SerachAddressByName({
+    required Query$SerachAddressByName data,
+    required Variables$Query$SerachAddressByName variables,
+    bool broadcast = true,
+  }) =>
+      this.writeQuery(
+        graphql.Request(
+          operation:
+              graphql.Operation(document: documentNodeQuerySerachAddressByName),
+          variables: variables.toJson(),
+        ),
+        data: data.toJson(),
+        broadcast: broadcast,
+      );
+  Query$SerachAddressByName? readQuery$SerachAddressByName({
+    required Variables$Query$SerachAddressByName variables,
+    bool optimistic = true,
+  }) {
+    final result = this.readQuery(
+      graphql.Request(
+        operation:
+            graphql.Operation(document: documentNodeQuerySerachAddressByName),
+        variables: variables.toJson(),
+      ),
+      optimistic: optimistic,
+    );
+    return result == null ? null : Query$SerachAddressByName.fromJson(result);
+  }
+}
+
+class Query$SerachAddressByName$identityConnection {
+  Query$SerachAddressByName$identityConnection({
+    required this.edges,
+    this.$__typename = 'IdentityConnection',
+  });
+
+  factory Query$SerachAddressByName$identityConnection.fromJson(
+      Map<String, dynamic> json) {
+    final l$edges = json['edges'];
+    final l$$__typename = json['__typename'];
+    return Query$SerachAddressByName$identityConnection(
+      edges: (l$edges as List<dynamic>)
+          .map((e) =>
+              Query$SerachAddressByName$identityConnection$edges.fromJson(
+                  (e as Map<String, dynamic>)))
+          .toList(),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final List<Query$SerachAddressByName$identityConnection$edges> edges;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$edges = edges;
+    _resultData['edges'] = l$edges.map((e) => e.toJson()).toList();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$edges = edges;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      Object.hashAll(l$edges.map((v) => v)),
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Query$SerachAddressByName$identityConnection) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$edges = edges;
+    final lOther$edges = other.edges;
+    if (l$edges.length != lOther$edges.length) {
+      return false;
+    }
+    for (int i = 0; i < l$edges.length; i++) {
+      final l$edges$entry = l$edges[i];
+      final lOther$edges$entry = lOther$edges[i];
+      if (l$edges$entry != lOther$edges$entry) {
+        return false;
+      }
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$SerachAddressByName$identityConnection
+    on Query$SerachAddressByName$identityConnection {
+  CopyWith$Query$SerachAddressByName$identityConnection<
+          Query$SerachAddressByName$identityConnection>
+      get copyWith => CopyWith$Query$SerachAddressByName$identityConnection(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Query$SerachAddressByName$identityConnection<TRes> {
+  factory CopyWith$Query$SerachAddressByName$identityConnection(
+    Query$SerachAddressByName$identityConnection instance,
+    TRes Function(Query$SerachAddressByName$identityConnection) then,
+  ) = _CopyWithImpl$Query$SerachAddressByName$identityConnection;
+
+  factory CopyWith$Query$SerachAddressByName$identityConnection.stub(TRes res) =
+      _CopyWithStubImpl$Query$SerachAddressByName$identityConnection;
+
+  TRes call({
+    List<Query$SerachAddressByName$identityConnection$edges>? edges,
+    String? $__typename,
+  });
+  TRes edges(
+      Iterable<Query$SerachAddressByName$identityConnection$edges> Function(
+              Iterable<
+                  CopyWith$Query$SerachAddressByName$identityConnection$edges<
+                      Query$SerachAddressByName$identityConnection$edges>>)
+          _fn);
+}
+
+class _CopyWithImpl$Query$SerachAddressByName$identityConnection<TRes>
+    implements CopyWith$Query$SerachAddressByName$identityConnection<TRes> {
+  _CopyWithImpl$Query$SerachAddressByName$identityConnection(
+    this._instance,
+    this._then,
+  );
+
+  final Query$SerachAddressByName$identityConnection _instance;
+
+  final TRes Function(Query$SerachAddressByName$identityConnection) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? edges = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$SerachAddressByName$identityConnection(
+        edges: edges == _undefined || edges == null
+            ? _instance.edges
+            : (edges
+                as List<Query$SerachAddressByName$identityConnection$edges>),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+
+  TRes edges(
+          Iterable<Query$SerachAddressByName$identityConnection$edges> Function(
+                  Iterable<
+                      CopyWith$Query$SerachAddressByName$identityConnection$edges<
+                          Query$SerachAddressByName$identityConnection$edges>>)
+              _fn) =>
+      call(
+          edges: _fn(_instance.edges.map((e) =>
+              CopyWith$Query$SerachAddressByName$identityConnection$edges(
+                e,
+                (i) => i,
+              ))).toList());
+}
+
+class _CopyWithStubImpl$Query$SerachAddressByName$identityConnection<TRes>
+    implements CopyWith$Query$SerachAddressByName$identityConnection<TRes> {
+  _CopyWithStubImpl$Query$SerachAddressByName$identityConnection(this._res);
+
+  TRes _res;
+
+  call({
+    List<Query$SerachAddressByName$identityConnection$edges>? edges,
+    String? $__typename,
+  }) =>
+      _res;
+
+  edges(_fn) => _res;
+}
+
+class Query$SerachAddressByName$identityConnection$edges {
+  Query$SerachAddressByName$identityConnection$edges({
+    required this.node,
+    this.$__typename = 'IdentityEdge',
+  });
+
+  factory Query$SerachAddressByName$identityConnection$edges.fromJson(
+      Map<String, dynamic> json) {
+    final l$node = json['node'];
+    final l$$__typename = json['__typename'];
+    return Query$SerachAddressByName$identityConnection$edges(
+      node: Query$SerachAddressByName$identityConnection$edges$node.fromJson(
+          (l$node as Map<String, dynamic>)),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final Query$SerachAddressByName$identityConnection$edges$node node;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$node = node;
+    _resultData['node'] = l$node.toJson();
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$node = node;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$node,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Query$SerachAddressByName$identityConnection$edges) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$node = node;
+    final lOther$node = other.node;
+    if (l$node != lOther$node) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$SerachAddressByName$identityConnection$edges
+    on Query$SerachAddressByName$identityConnection$edges {
+  CopyWith$Query$SerachAddressByName$identityConnection$edges<
+          Query$SerachAddressByName$identityConnection$edges>
+      get copyWith =>
+          CopyWith$Query$SerachAddressByName$identityConnection$edges(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Query$SerachAddressByName$identityConnection$edges<
+    TRes> {
+  factory CopyWith$Query$SerachAddressByName$identityConnection$edges(
+    Query$SerachAddressByName$identityConnection$edges instance,
+    TRes Function(Query$SerachAddressByName$identityConnection$edges) then,
+  ) = _CopyWithImpl$Query$SerachAddressByName$identityConnection$edges;
+
+  factory CopyWith$Query$SerachAddressByName$identityConnection$edges.stub(
+          TRes res) =
+      _CopyWithStubImpl$Query$SerachAddressByName$identityConnection$edges;
+
+  TRes call({
+    Query$SerachAddressByName$identityConnection$edges$node? node,
+    String? $__typename,
+  });
+  CopyWith$Query$SerachAddressByName$identityConnection$edges$node<TRes>
+      get node;
+}
+
+class _CopyWithImpl$Query$SerachAddressByName$identityConnection$edges<TRes>
+    implements
+        CopyWith$Query$SerachAddressByName$identityConnection$edges<TRes> {
+  _CopyWithImpl$Query$SerachAddressByName$identityConnection$edges(
+    this._instance,
+    this._then,
+  );
+
+  final Query$SerachAddressByName$identityConnection$edges _instance;
+
+  final TRes Function(Query$SerachAddressByName$identityConnection$edges) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? node = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$SerachAddressByName$identityConnection$edges(
+        node: node == _undefined || node == null
+            ? _instance.node
+            : (node as Query$SerachAddressByName$identityConnection$edges$node),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+
+  CopyWith$Query$SerachAddressByName$identityConnection$edges$node<TRes>
+      get node {
+    final local$node = _instance.node;
+    return CopyWith$Query$SerachAddressByName$identityConnection$edges$node(
+        local$node, (e) => call(node: e));
+  }
+}
+
+class _CopyWithStubImpl$Query$SerachAddressByName$identityConnection$edges<TRes>
+    implements
+        CopyWith$Query$SerachAddressByName$identityConnection$edges<TRes> {
+  _CopyWithStubImpl$Query$SerachAddressByName$identityConnection$edges(
+      this._res);
+
+  TRes _res;
+
+  call({
+    Query$SerachAddressByName$identityConnection$edges$node? node,
+    String? $__typename,
+  }) =>
+      _res;
+
+  CopyWith$Query$SerachAddressByName$identityConnection$edges$node<TRes>
+      get node =>
+          CopyWith$Query$SerachAddressByName$identityConnection$edges$node.stub(
+              _res);
+}
+
+class Query$SerachAddressByName$identityConnection$edges$node {
+  Query$SerachAddressByName$identityConnection$edges$node({
+    required this.name,
+    this.accountId,
+    this.$__typename = 'Identity',
+  });
+
+  factory Query$SerachAddressByName$identityConnection$edges$node.fromJson(
+      Map<String, dynamic> json) {
+    final l$name = json['name'];
+    final l$accountId = json['accountId'];
+    final l$$__typename = json['__typename'];
+    return Query$SerachAddressByName$identityConnection$edges$node(
+      name: (l$name as String),
+      accountId: (l$accountId as String?),
+      $__typename: (l$$__typename as String),
+    );
+  }
+
+  final String name;
+
+  final String? accountId;
+
+  final String $__typename;
+
+  Map<String, dynamic> toJson() {
+    final _resultData = <String, dynamic>{};
+    final l$name = name;
+    _resultData['name'] = l$name;
+    final l$accountId = accountId;
+    _resultData['accountId'] = l$accountId;
+    final l$$__typename = $__typename;
+    _resultData['__typename'] = l$$__typename;
+    return _resultData;
+  }
+
+  @override
+  int get hashCode {
+    final l$name = name;
+    final l$accountId = accountId;
+    final l$$__typename = $__typename;
+    return Object.hashAll([
+      l$name,
+      l$accountId,
+      l$$__typename,
+    ]);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Query$SerachAddressByName$identityConnection$edges$node) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$name = name;
+    final lOther$name = other.name;
+    if (l$name != lOther$name) {
+      return false;
+    }
+    final l$accountId = accountId;
+    final lOther$accountId = other.accountId;
+    if (l$accountId != lOther$accountId) {
+      return false;
+    }
+    final l$$__typename = $__typename;
+    final lOther$$__typename = other.$__typename;
+    if (l$$__typename != lOther$$__typename) {
+      return false;
+    }
+    return true;
+  }
+}
+
+extension UtilityExtension$Query$SerachAddressByName$identityConnection$edges$node
+    on Query$SerachAddressByName$identityConnection$edges$node {
+  CopyWith$Query$SerachAddressByName$identityConnection$edges$node<
+          Query$SerachAddressByName$identityConnection$edges$node>
+      get copyWith =>
+          CopyWith$Query$SerachAddressByName$identityConnection$edges$node(
+            this,
+            (i) => i,
+          );
+}
+
+abstract class CopyWith$Query$SerachAddressByName$identityConnection$edges$node<
+    TRes> {
+  factory CopyWith$Query$SerachAddressByName$identityConnection$edges$node(
+    Query$SerachAddressByName$identityConnection$edges$node instance,
+    TRes Function(Query$SerachAddressByName$identityConnection$edges$node) then,
+  ) = _CopyWithImpl$Query$SerachAddressByName$identityConnection$edges$node;
+
+  factory CopyWith$Query$SerachAddressByName$identityConnection$edges$node.stub(
+          TRes res) =
+      _CopyWithStubImpl$Query$SerachAddressByName$identityConnection$edges$node;
+
+  TRes call({
+    String? name,
+    String? accountId,
+    String? $__typename,
+  });
+}
+
+class _CopyWithImpl$Query$SerachAddressByName$identityConnection$edges$node<
+        TRes>
+    implements
+        CopyWith$Query$SerachAddressByName$identityConnection$edges$node<TRes> {
+  _CopyWithImpl$Query$SerachAddressByName$identityConnection$edges$node(
+    this._instance,
+    this._then,
+  );
+
+  final Query$SerachAddressByName$identityConnection$edges$node _instance;
+
+  final TRes Function(Query$SerachAddressByName$identityConnection$edges$node)
+      _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? name = _undefined,
+    Object? accountId = _undefined,
+    Object? $__typename = _undefined,
+  }) =>
+      _then(Query$SerachAddressByName$identityConnection$edges$node(
+        name: name == _undefined || name == null
+            ? _instance.name
+            : (name as String),
+        accountId: accountId == _undefined
+            ? _instance.accountId
+            : (accountId as String?),
+        $__typename: $__typename == _undefined || $__typename == null
+            ? _instance.$__typename
+            : ($__typename as String),
+      ));
+}
+
+class _CopyWithStubImpl$Query$SerachAddressByName$identityConnection$edges$node<
+        TRes>
+    implements
+        CopyWith$Query$SerachAddressByName$identityConnection$edges$node<TRes> {
+  _CopyWithStubImpl$Query$SerachAddressByName$identityConnection$edges$node(
+      this._res);
+
+  TRes _res;
+
+  call({
+    String? name,
+    String? accountId,
+    String? $__typename,
+  }) =>
+      _res;
+}
diff --git a/lib/src/models/graphql/schema.graphql b/lib/src/models/graphql/schema.graphql
new file mode 100644
index 0000000000000000000000000000000000000000..a3b2ae89e47f5c91916d4129defd086eafa10e37
--- /dev/null
+++ b/lib/src/models/graphql/schema.graphql
@@ -0,0 +1,5450 @@
+schema {
+  query: query_root
+  subscription: subscription_root
+}
+
+"""whether this query should be cached (Hasura Cloud only)"""
+directive @cached(
+  """measured in seconds"""
+  ttl: Int! = 60
+
+  """refresh the cache entry"""
+  refresh: Boolean! = false
+) on QUERY
+
+"""
+columns and relationships of "account"
+"""
+type Account implements Node {
+  id: ID!
+
+  """An object relationship"""
+  identity: Identity
+
+  """An object relationship"""
+  linkedIdentity: Identity
+  linkedIdentityId: String
+
+  """An array relationship"""
+  transfersIssued(
+    """distinct select on columns"""
+    distinctOn: [TransferSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [TransferOrderBy!]
+
+    """filter the rows returned"""
+    where: TransferBoolExp
+  ): [Transfer!]!
+
+  """An aggregate relationship"""
+  transfersIssuedAggregate(
+    """distinct select on columns"""
+    distinctOn: [TransferSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [TransferOrderBy!]
+
+    """filter the rows returned"""
+    where: TransferBoolExp
+  ): TransferAggregate!
+
+  """An array relationship connection"""
+  transfersIssued_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [TransferSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [TransferOrderBy!]
+
+    """filter the rows returned"""
+    where: TransferBoolExp
+  ): TransferConnection!
+
+  """An array relationship"""
+  transfersReceived(
+    """distinct select on columns"""
+    distinctOn: [TransferSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [TransferOrderBy!]
+
+    """filter the rows returned"""
+    where: TransferBoolExp
+  ): [Transfer!]!
+
+  """An aggregate relationship"""
+  transfersReceivedAggregate(
+    """distinct select on columns"""
+    distinctOn: [TransferSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [TransferOrderBy!]
+
+    """filter the rows returned"""
+    where: TransferBoolExp
+  ): TransferAggregate!
+
+  """An array relationship connection"""
+  transfersReceived_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [TransferSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [TransferOrderBy!]
+
+    """filter the rows returned"""
+    where: TransferBoolExp
+  ): TransferConnection!
+
+  """An array relationship"""
+  wasIdentity(
+    """distinct select on columns"""
+    distinctOn: [ChangeOwnerKeySelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [ChangeOwnerKeyOrderBy!]
+
+    """filter the rows returned"""
+    where: ChangeOwnerKeyBoolExp
+  ): [ChangeOwnerKey!]!
+
+  """An aggregate relationship"""
+  wasIdentityAggregate(
+    """distinct select on columns"""
+    distinctOn: [ChangeOwnerKeySelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [ChangeOwnerKeyOrderBy!]
+
+    """filter the rows returned"""
+    where: ChangeOwnerKeyBoolExp
+  ): ChangeOwnerKeyAggregate!
+
+  """An array relationship connection"""
+  wasIdentity_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [ChangeOwnerKeySelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [ChangeOwnerKeyOrderBy!]
+
+    """filter the rows returned"""
+    where: ChangeOwnerKeyBoolExp
+  ): ChangeOwnerKeyConnection!
+}
+
+"""
+aggregated selection of "account"
+"""
+type AccountAggregate {
+  aggregate: AccountAggregateFields
+  nodes: [Account!]!
+}
+
+input AccountAggregateBoolExp {
+  count: accountAggregateBoolExpCount
+}
+
+input accountAggregateBoolExpCount {
+  arguments: [AccountSelectColumn!]
+  distinct: Boolean
+  filter: AccountBoolExp
+  predicate: IntComparisonExp!
+}
+
+"""
+aggregate fields of "account"
+"""
+type AccountAggregateFields {
+  count(columns: [AccountSelectColumn!], distinct: Boolean): Int!
+  max: AccountMaxFields
+  min: AccountMinFields
+}
+
+"""
+order by aggregate values of table "account"
+"""
+input AccountAggregateOrderBy {
+  count: OrderBy
+  max: AccountMaxOrderBy
+  min: AccountMinOrderBy
+}
+
+"""
+Boolean expression to filter rows from the table "account". All fields are combined with a logical 'AND'.
+"""
+input AccountBoolExp {
+  _and: [AccountBoolExp!]
+  _not: AccountBoolExp
+  _or: [AccountBoolExp!]
+  id: StringComparisonExp
+  identity: IdentityBoolExp
+  linkedIdentity: IdentityBoolExp
+  linkedIdentityId: StringComparisonExp
+  transfersIssued: TransferBoolExp
+  transfersIssuedAggregate: TransferAggregateBoolExp
+  transfersReceived: TransferBoolExp
+  transfersReceivedAggregate: TransferAggregateBoolExp
+  wasIdentity: ChangeOwnerKeyBoolExp
+  wasIdentityAggregate: ChangeOwnerKeyAggregateBoolExp
+}
+
+"""
+A Relay connection object on "account"
+"""
+type AccountConnection {
+  edges: [AccountEdge!]!
+  pageInfo: PageInfo!
+}
+
+type AccountEdge {
+  cursor: String!
+  node: Account!
+}
+
+"""aggregate max on columns"""
+type AccountMaxFields {
+  id: String
+  linkedIdentityId: String
+}
+
+"""
+order by max() on columns of table "account"
+"""
+input AccountMaxOrderBy {
+  id: OrderBy
+  linkedIdentityId: OrderBy
+}
+
+"""aggregate min on columns"""
+type AccountMinFields {
+  id: String
+  linkedIdentityId: String
+}
+
+"""
+order by min() on columns of table "account"
+"""
+input AccountMinOrderBy {
+  id: OrderBy
+  linkedIdentityId: OrderBy
+}
+
+"""Ordering options when selecting data from "account"."""
+input AccountOrderBy {
+  id: OrderBy
+  identity: IdentityOrderBy
+  linkedIdentity: IdentityOrderBy
+  linkedIdentityId: OrderBy
+  transfersIssuedAggregate: TransferAggregateOrderBy
+  transfersReceivedAggregate: TransferAggregateOrderBy
+  wasIdentityAggregate: ChangeOwnerKeyAggregateOrderBy
+}
+
+"""
+select columns of table "account"
+"""
+enum AccountSelectColumn {
+  """column name"""
+  id
+
+  """column name"""
+  linkedIdentityId
+}
+
+"""
+columns and relationships of "block"
+"""
+type Block implements Node {
+  """An array relationship"""
+  calls(
+    """distinct select on columns"""
+    distinctOn: [CallSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CallOrderBy!]
+
+    """filter the rows returned"""
+    where: CallBoolExp
+  ): [Call!]!
+
+  """An aggregate relationship"""
+  callsAggregate(
+    """distinct select on columns"""
+    distinctOn: [CallSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CallOrderBy!]
+
+    """filter the rows returned"""
+    where: CallBoolExp
+  ): CallAggregate!
+  callsCount: Int!
+
+  """An array relationship connection"""
+  calls_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [CallSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CallOrderBy!]
+
+    """filter the rows returned"""
+    where: CallBoolExp
+  ): CallConnection!
+
+  """An array relationship"""
+  events(
+    """distinct select on columns"""
+    distinctOn: [EventSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [EventOrderBy!]
+
+    """filter the rows returned"""
+    where: EventBoolExp
+  ): [Event!]!
+
+  """An aggregate relationship"""
+  eventsAggregate(
+    """distinct select on columns"""
+    distinctOn: [EventSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [EventOrderBy!]
+
+    """filter the rows returned"""
+    where: EventBoolExp
+  ): EventAggregate!
+  eventsCount: Int!
+
+  """An array relationship connection"""
+  events_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [EventSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [EventOrderBy!]
+
+    """filter the rows returned"""
+    where: EventBoolExp
+  ): EventConnection!
+
+  """An array relationship"""
+  extrinsics(
+    """distinct select on columns"""
+    distinctOn: [ExtrinsicSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [ExtrinsicOrderBy!]
+
+    """filter the rows returned"""
+    where: ExtrinsicBoolExp
+  ): [Extrinsic!]!
+
+  """An aggregate relationship"""
+  extrinsicsAggregate(
+    """distinct select on columns"""
+    distinctOn: [ExtrinsicSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [ExtrinsicOrderBy!]
+
+    """filter the rows returned"""
+    where: ExtrinsicBoolExp
+  ): ExtrinsicAggregate!
+  extrinsicsCount: Int!
+
+  """An array relationship connection"""
+  extrinsics_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [ExtrinsicSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [ExtrinsicOrderBy!]
+
+    """filter the rows returned"""
+    where: ExtrinsicBoolExp
+  ): ExtrinsicConnection!
+  extrinsicsicRoot: bytea!
+  hash: bytea!
+  height: Int!
+  id: ID!
+  implName: String!
+  implVersion: Int!
+  parentHash: bytea!
+  specName: String!
+  specVersion: Int!
+  stateRoot: bytea!
+  timestamp: timestamptz!
+  validator: bytea
+}
+
+"""
+Boolean expression to filter rows from the table "block". All fields are combined with a logical 'AND'.
+"""
+input BlockBoolExp {
+  _and: [BlockBoolExp!]
+  _not: BlockBoolExp
+  _or: [BlockBoolExp!]
+  calls: CallBoolExp
+  callsAggregate: CallAggregateBoolExp
+  callsCount: IntComparisonExp
+  events: EventBoolExp
+  eventsAggregate: EventAggregateBoolExp
+  eventsCount: IntComparisonExp
+  extrinsics: ExtrinsicBoolExp
+  extrinsicsAggregate: ExtrinsicAggregateBoolExp
+  extrinsicsCount: IntComparisonExp
+  extrinsicsicRoot: ByteaComparisonExp
+  hash: ByteaComparisonExp
+  height: IntComparisonExp
+  id: StringComparisonExp
+  implName: StringComparisonExp
+  implVersion: IntComparisonExp
+  parentHash: ByteaComparisonExp
+  specName: StringComparisonExp
+  specVersion: IntComparisonExp
+  stateRoot: ByteaComparisonExp
+  timestamp: TimestamptzComparisonExp
+  validator: ByteaComparisonExp
+}
+
+"""
+A Relay connection object on "block"
+"""
+type BlockConnection {
+  edges: [BlockEdge!]!
+  pageInfo: PageInfo!
+}
+
+type BlockEdge {
+  cursor: String!
+  node: Block!
+}
+
+"""Ordering options when selecting data from "block"."""
+input BlockOrderBy {
+  callsAggregate: CallAggregateOrderBy
+  callsCount: OrderBy
+  eventsAggregate: EventAggregateOrderBy
+  eventsCount: OrderBy
+  extrinsicsAggregate: ExtrinsicAggregateOrderBy
+  extrinsicsCount: OrderBy
+  extrinsicsicRoot: OrderBy
+  hash: OrderBy
+  height: OrderBy
+  id: OrderBy
+  implName: OrderBy
+  implVersion: OrderBy
+  parentHash: OrderBy
+  specName: OrderBy
+  specVersion: OrderBy
+  stateRoot: OrderBy
+  timestamp: OrderBy
+  validator: OrderBy
+}
+
+"""
+select columns of table "block"
+"""
+enum BlockSelectColumn {
+  """column name"""
+  callsCount
+
+  """column name"""
+  eventsCount
+
+  """column name"""
+  extrinsicsCount
+
+  """column name"""
+  extrinsicsicRoot
+
+  """column name"""
+  hash
+
+  """column name"""
+  height
+
+  """column name"""
+  id
+
+  """column name"""
+  implName
+
+  """column name"""
+  implVersion
+
+  """column name"""
+  parentHash
+
+  """column name"""
+  specName
+
+  """column name"""
+  specVersion
+
+  """column name"""
+  stateRoot
+
+  """column name"""
+  timestamp
+
+  """column name"""
+  validator
+}
+
+"""
+Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'.
+"""
+input BooleanComparisonExp {
+  _eq: Boolean
+  _gt: Boolean
+  _gte: Boolean
+  _in: [Boolean!]
+  _isNull: Boolean
+  _lt: Boolean
+  _lte: Boolean
+  _neq: Boolean
+  _nin: [Boolean!]
+}
+
+scalar bytea
+
+"""
+Boolean expression to compare columns of type "bytea". All fields are combined with logical 'AND'.
+"""
+input ByteaComparisonExp {
+  _eq: bytea
+  _gt: bytea
+  _gte: bytea
+  _in: [bytea!]
+  _isNull: Boolean
+  _lt: bytea
+  _lte: bytea
+  _neq: bytea
+  _nin: [bytea!]
+}
+
+"""
+columns and relationships of "call"
+"""
+type Call implements Node {
+  address: [Int!]!
+  args(
+    """JSON select path"""
+    path: String
+  ): jsonb
+  argsStr: [String!]
+
+  """An object relationship"""
+  block: Block
+  blockId: String
+  error(
+    """JSON select path"""
+    path: String
+  ): jsonb
+
+  """An array relationship"""
+  events(
+    """distinct select on columns"""
+    distinctOn: [EventSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [EventOrderBy!]
+
+    """filter the rows returned"""
+    where: EventBoolExp
+  ): [Event!]!
+
+  """An aggregate relationship"""
+  eventsAggregate(
+    """distinct select on columns"""
+    distinctOn: [EventSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [EventOrderBy!]
+
+    """filter the rows returned"""
+    where: EventBoolExp
+  ): EventAggregate!
+
+  """An array relationship connection"""
+  events_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [EventSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [EventOrderBy!]
+
+    """filter the rows returned"""
+    where: EventBoolExp
+  ): EventConnection!
+
+  """An object relationship"""
+  extrinsic: Extrinsic
+  extrinsicId: String
+  id: ID!
+  name: String!
+  pallet: String!
+
+  """An object relationship"""
+  parent: Call
+  parentId: String
+
+  """An array relationship"""
+  subcalls(
+    """distinct select on columns"""
+    distinctOn: [CallSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CallOrderBy!]
+
+    """filter the rows returned"""
+    where: CallBoolExp
+  ): [Call!]!
+
+  """An aggregate relationship"""
+  subcallsAggregate(
+    """distinct select on columns"""
+    distinctOn: [CallSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CallOrderBy!]
+
+    """filter the rows returned"""
+    where: CallBoolExp
+  ): CallAggregate!
+
+  """An array relationship connection"""
+  subcalls_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [CallSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CallOrderBy!]
+
+    """filter the rows returned"""
+    where: CallBoolExp
+  ): CallConnection!
+  success: Boolean!
+}
+
+"""
+aggregated selection of "call"
+"""
+type CallAggregate {
+  aggregate: CallAggregateFields
+  nodes: [Call!]!
+}
+
+input CallAggregateBoolExp {
+  bool_and: callAggregateBoolExpBool_and
+  bool_or: callAggregateBoolExpBool_or
+  count: callAggregateBoolExpCount
+}
+
+input callAggregateBoolExpBool_and {
+  arguments: CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns!
+  distinct: Boolean
+  filter: CallBoolExp
+  predicate: BooleanComparisonExp!
+}
+
+input callAggregateBoolExpBool_or {
+  arguments: CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns!
+  distinct: Boolean
+  filter: CallBoolExp
+  predicate: BooleanComparisonExp!
+}
+
+input callAggregateBoolExpCount {
+  arguments: [CallSelectColumn!]
+  distinct: Boolean
+  filter: CallBoolExp
+  predicate: IntComparisonExp!
+}
+
+"""
+aggregate fields of "call"
+"""
+type CallAggregateFields {
+  count(columns: [CallSelectColumn!], distinct: Boolean): Int!
+  max: CallMaxFields
+  min: CallMinFields
+}
+
+"""
+order by aggregate values of table "call"
+"""
+input CallAggregateOrderBy {
+  count: OrderBy
+  max: CallMaxOrderBy
+  min: CallMinOrderBy
+}
+
+"""
+Boolean expression to filter rows from the table "call". All fields are combined with a logical 'AND'.
+"""
+input CallBoolExp {
+  _and: [CallBoolExp!]
+  _not: CallBoolExp
+  _or: [CallBoolExp!]
+  address: IntArrayComparisonExp
+  args: JsonbComparisonExp
+  argsStr: StringArrayComparisonExp
+  block: BlockBoolExp
+  blockId: StringComparisonExp
+  error: JsonbComparisonExp
+  events: EventBoolExp
+  eventsAggregate: EventAggregateBoolExp
+  extrinsic: ExtrinsicBoolExp
+  extrinsicId: StringComparisonExp
+  id: StringComparisonExp
+  name: StringComparisonExp
+  pallet: StringComparisonExp
+  parent: CallBoolExp
+  parentId: StringComparisonExp
+  subcalls: CallBoolExp
+  subcallsAggregate: CallAggregateBoolExp
+  success: BooleanComparisonExp
+}
+
+"""
+A Relay connection object on "call"
+"""
+type CallConnection {
+  edges: [CallEdge!]!
+  pageInfo: PageInfo!
+}
+
+type CallEdge {
+  cursor: String!
+  node: Call!
+}
+
+"""aggregate max on columns"""
+type CallMaxFields {
+  address: [Int!]
+  argsStr: [String!]
+  blockId: String
+  extrinsicId: String
+  id: String
+  name: String
+  pallet: String
+  parentId: String
+}
+
+"""
+order by max() on columns of table "call"
+"""
+input CallMaxOrderBy {
+  address: OrderBy
+  argsStr: OrderBy
+  blockId: OrderBy
+  extrinsicId: OrderBy
+  id: OrderBy
+  name: OrderBy
+  pallet: OrderBy
+  parentId: OrderBy
+}
+
+"""aggregate min on columns"""
+type CallMinFields {
+  address: [Int!]
+  argsStr: [String!]
+  blockId: String
+  extrinsicId: String
+  id: String
+  name: String
+  pallet: String
+  parentId: String
+}
+
+"""
+order by min() on columns of table "call"
+"""
+input CallMinOrderBy {
+  address: OrderBy
+  argsStr: OrderBy
+  blockId: OrderBy
+  extrinsicId: OrderBy
+  id: OrderBy
+  name: OrderBy
+  pallet: OrderBy
+  parentId: OrderBy
+}
+
+"""Ordering options when selecting data from "call"."""
+input CallOrderBy {
+  address: OrderBy
+  args: OrderBy
+  argsStr: OrderBy
+  block: BlockOrderBy
+  blockId: OrderBy
+  error: OrderBy
+  eventsAggregate: EventAggregateOrderBy
+  extrinsic: ExtrinsicOrderBy
+  extrinsicId: OrderBy
+  id: OrderBy
+  name: OrderBy
+  pallet: OrderBy
+  parent: CallOrderBy
+  parentId: OrderBy
+  subcallsAggregate: CallAggregateOrderBy
+  success: OrderBy
+}
+
+"""
+select columns of table "call"
+"""
+enum CallSelectColumn {
+  """column name"""
+  address
+
+  """column name"""
+  args
+
+  """column name"""
+  argsStr
+
+  """column name"""
+  blockId
+
+  """column name"""
+  error
+
+  """column name"""
+  extrinsicId
+
+  """column name"""
+  id
+
+  """column name"""
+  name
+
+  """column name"""
+  pallet
+
+  """column name"""
+  parentId
+
+  """column name"""
+  success
+}
+
+"""
+select "callAggregateBoolExpBool_andArgumentsColumns" columns of table "call"
+"""
+enum CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns {
+  """column name"""
+  success
+}
+
+"""
+select "callAggregateBoolExpBool_orArgumentsColumns" columns of table "call"
+"""
+enum CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns {
+  """column name"""
+  success
+}
+
+"""
+columns and relationships of "cert"
+"""
+type Cert implements Node {
+  """An array relationship"""
+  certHistory(
+    """distinct select on columns"""
+    distinctOn: [CertEventSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CertEventOrderBy!]
+
+    """filter the rows returned"""
+    where: CertEventBoolExp
+  ): [CertEvent!]!
+
+  """An aggregate relationship"""
+  certHistoryAggregate(
+    """distinct select on columns"""
+    distinctOn: [CertEventSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CertEventOrderBy!]
+
+    """filter the rows returned"""
+    where: CertEventBoolExp
+  ): CertEventAggregate!
+
+  """An array relationship connection"""
+  certHistory_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [CertEventSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CertEventOrderBy!]
+
+    """filter the rows returned"""
+    where: CertEventBoolExp
+  ): CertEventConnection!
+  createdOn: Int!
+  expireOn: Int!
+  id: ID!
+  isActive: Boolean!
+
+  """An object relationship"""
+  issuer: Identity
+  issuerId: String
+
+  """An object relationship"""
+  receiver: Identity
+  receiverId: String
+}
+
+"""
+aggregated selection of "cert"
+"""
+type CertAggregate {
+  aggregate: CertAggregateFields
+  nodes: [Cert!]!
+}
+
+input CertAggregateBoolExp {
+  bool_and: certAggregateBoolExpBool_and
+  bool_or: certAggregateBoolExpBool_or
+  count: certAggregateBoolExpCount
+}
+
+input certAggregateBoolExpBool_and {
+  arguments: CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns!
+  distinct: Boolean
+  filter: CertBoolExp
+  predicate: BooleanComparisonExp!
+}
+
+input certAggregateBoolExpBool_or {
+  arguments: CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns!
+  distinct: Boolean
+  filter: CertBoolExp
+  predicate: BooleanComparisonExp!
+}
+
+input certAggregateBoolExpCount {
+  arguments: [CertSelectColumn!]
+  distinct: Boolean
+  filter: CertBoolExp
+  predicate: IntComparisonExp!
+}
+
+"""
+aggregate fields of "cert"
+"""
+type CertAggregateFields {
+  avg: CertAvgFields
+  count(columns: [CertSelectColumn!], distinct: Boolean): Int!
+  max: CertMaxFields
+  min: CertMinFields
+  stddev: CertStddevFields
+  stddevPop: CertStddevPopFields
+  stddevSamp: CertStddevSampFields
+  sum: CertSumFields
+  varPop: CertVarPopFields
+  varSamp: CertVarSampFields
+  variance: CertVarianceFields
+}
+
+"""
+order by aggregate values of table "cert"
+"""
+input CertAggregateOrderBy {
+  avg: CertAvgOrderBy
+  count: OrderBy
+  max: CertMaxOrderBy
+  min: CertMinOrderBy
+  stddev: CertStddevOrderBy
+  stddevPop: CertStddevPopOrderBy
+  stddevSamp: CertStddevSampOrderBy
+  sum: CertSumOrderBy
+  varPop: CertVarPopOrderBy
+  varSamp: CertVarSampOrderBy
+  variance: CertVarianceOrderBy
+}
+
+"""aggregate avg on columns"""
+type CertAvgFields {
+  createdOn: Float
+  expireOn: Float
+}
+
+"""
+order by avg() on columns of table "cert"
+"""
+input CertAvgOrderBy {
+  createdOn: OrderBy
+  expireOn: OrderBy
+}
+
+"""
+Boolean expression to filter rows from the table "cert". All fields are combined with a logical 'AND'.
+"""
+input CertBoolExp {
+  _and: [CertBoolExp!]
+  _not: CertBoolExp
+  _or: [CertBoolExp!]
+  certHistory: CertEventBoolExp
+  certHistoryAggregate: CertEventAggregateBoolExp
+  createdOn: IntComparisonExp
+  expireOn: IntComparisonExp
+  id: StringComparisonExp
+  isActive: BooleanComparisonExp
+  issuer: IdentityBoolExp
+  issuerId: StringComparisonExp
+  receiver: IdentityBoolExp
+  receiverId: StringComparisonExp
+}
+
+"""
+A Relay connection object on "cert"
+"""
+type CertConnection {
+  edges: [CertEdge!]!
+  pageInfo: PageInfo!
+}
+
+type CertEdge {
+  cursor: String!
+  node: Cert!
+}
+
+"""
+columns and relationships of "cert_event"
+"""
+type CertEvent implements Node {
+  blockNumber: Int!
+
+  """An object relationship"""
+  cert: Cert
+  certId: String
+
+  """An object relationship"""
+  event: Event
+  eventId: String
+  eventType: EventTypeEnum
+  id: ID!
+}
+
+"""
+aggregated selection of "cert_event"
+"""
+type CertEventAggregate {
+  aggregate: CertEventAggregateFields
+  nodes: [CertEvent!]!
+}
+
+input CertEventAggregateBoolExp {
+  count: certEventAggregateBoolExpCount
+}
+
+input certEventAggregateBoolExpCount {
+  arguments: [CertEventSelectColumn!]
+  distinct: Boolean
+  filter: CertEventBoolExp
+  predicate: IntComparisonExp!
+}
+
+"""
+aggregate fields of "cert_event"
+"""
+type CertEventAggregateFields {
+  avg: CertEventAvgFields
+  count(columns: [CertEventSelectColumn!], distinct: Boolean): Int!
+  max: CertEventMaxFields
+  min: CertEventMinFields
+  stddev: CertEventStddevFields
+  stddevPop: CertEventStddevPopFields
+  stddevSamp: CertEventStddevSampFields
+  sum: CertEventSumFields
+  varPop: CertEventVarPopFields
+  varSamp: CertEventVarSampFields
+  variance: CertEventVarianceFields
+}
+
+"""
+order by aggregate values of table "cert_event"
+"""
+input CertEventAggregateOrderBy {
+  avg: CertEventAvgOrderBy
+  count: OrderBy
+  max: CertEventMaxOrderBy
+  min: CertEventMinOrderBy
+  stddev: CertEventStddevOrderBy
+  stddevPop: CertEventStddevPopOrderBy
+  stddevSamp: CertEventStddevSampOrderBy
+  sum: CertEventSumOrderBy
+  varPop: CertEventVarPopOrderBy
+  varSamp: CertEventVarSampOrderBy
+  variance: CertEventVarianceOrderBy
+}
+
+"""aggregate avg on columns"""
+type CertEventAvgFields {
+  blockNumber: Float
+}
+
+"""
+order by avg() on columns of table "cert_event"
+"""
+input CertEventAvgOrderBy {
+  blockNumber: OrderBy
+}
+
+"""
+Boolean expression to filter rows from the table "cert_event". All fields are combined with a logical 'AND'.
+"""
+input CertEventBoolExp {
+  _and: [CertEventBoolExp!]
+  _not: CertEventBoolExp
+  _or: [CertEventBoolExp!]
+  blockNumber: IntComparisonExp
+  cert: CertBoolExp
+  certId: StringComparisonExp
+  event: EventBoolExp
+  eventId: StringComparisonExp
+  eventType: EventTypeEnumComparisonExp
+  id: StringComparisonExp
+}
+
+"""
+A Relay connection object on "cert_event"
+"""
+type CertEventConnection {
+  edges: [CertEventEdge!]!
+  pageInfo: PageInfo!
+}
+
+type CertEventEdge {
+  cursor: String!
+  node: CertEvent!
+}
+
+"""aggregate max on columns"""
+type CertEventMaxFields {
+  blockNumber: Int
+  certId: String
+  eventId: String
+  id: String
+}
+
+"""
+order by max() on columns of table "cert_event"
+"""
+input CertEventMaxOrderBy {
+  blockNumber: OrderBy
+  certId: OrderBy
+  eventId: OrderBy
+  id: OrderBy
+}
+
+"""aggregate min on columns"""
+type CertEventMinFields {
+  blockNumber: Int
+  certId: String
+  eventId: String
+  id: String
+}
+
+"""
+order by min() on columns of table "cert_event"
+"""
+input CertEventMinOrderBy {
+  blockNumber: OrderBy
+  certId: OrderBy
+  eventId: OrderBy
+  id: OrderBy
+}
+
+"""Ordering options when selecting data from "cert_event"."""
+input CertEventOrderBy {
+  blockNumber: OrderBy
+  cert: CertOrderBy
+  certId: OrderBy
+  event: EventOrderBy
+  eventId: OrderBy
+  eventType: OrderBy
+  id: OrderBy
+}
+
+"""
+select columns of table "cert_event"
+"""
+enum CertEventSelectColumn {
+  """column name"""
+  blockNumber
+
+  """column name"""
+  certId
+
+  """column name"""
+  eventId
+
+  """column name"""
+  eventType
+
+  """column name"""
+  id
+}
+
+"""aggregate stddev on columns"""
+type CertEventStddevFields {
+  blockNumber: Float
+}
+
+"""
+order by stddev() on columns of table "cert_event"
+"""
+input CertEventStddevOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate stddevPop on columns"""
+type CertEventStddevPopFields {
+  blockNumber: Float
+}
+
+"""
+order by stddevPop() on columns of table "cert_event"
+"""
+input CertEventStddevPopOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate stddevSamp on columns"""
+type CertEventStddevSampFields {
+  blockNumber: Float
+}
+
+"""
+order by stddevSamp() on columns of table "cert_event"
+"""
+input CertEventStddevSampOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate sum on columns"""
+type CertEventSumFields {
+  blockNumber: Int
+}
+
+"""
+order by sum() on columns of table "cert_event"
+"""
+input CertEventSumOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate variance on columns"""
+type CertEventVarianceFields {
+  blockNumber: Float
+}
+
+"""
+order by variance() on columns of table "cert_event"
+"""
+input CertEventVarianceOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate varPop on columns"""
+type CertEventVarPopFields {
+  blockNumber: Float
+}
+
+"""
+order by varPop() on columns of table "cert_event"
+"""
+input CertEventVarPopOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate varSamp on columns"""
+type CertEventVarSampFields {
+  blockNumber: Float
+}
+
+"""
+order by varSamp() on columns of table "cert_event"
+"""
+input CertEventVarSampOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate max on columns"""
+type CertMaxFields {
+  createdOn: Int
+  expireOn: Int
+  id: String
+  issuerId: String
+  receiverId: String
+}
+
+"""
+order by max() on columns of table "cert"
+"""
+input CertMaxOrderBy {
+  createdOn: OrderBy
+  expireOn: OrderBy
+  id: OrderBy
+  issuerId: OrderBy
+  receiverId: OrderBy
+}
+
+"""aggregate min on columns"""
+type CertMinFields {
+  createdOn: Int
+  expireOn: Int
+  id: String
+  issuerId: String
+  receiverId: String
+}
+
+"""
+order by min() on columns of table "cert"
+"""
+input CertMinOrderBy {
+  createdOn: OrderBy
+  expireOn: OrderBy
+  id: OrderBy
+  issuerId: OrderBy
+  receiverId: OrderBy
+}
+
+"""Ordering options when selecting data from "cert"."""
+input CertOrderBy {
+  certHistoryAggregate: CertEventAggregateOrderBy
+  createdOn: OrderBy
+  expireOn: OrderBy
+  id: OrderBy
+  isActive: OrderBy
+  issuer: IdentityOrderBy
+  issuerId: OrderBy
+  receiver: IdentityOrderBy
+  receiverId: OrderBy
+}
+
+"""
+select columns of table "cert"
+"""
+enum CertSelectColumn {
+  """column name"""
+  createdOn
+
+  """column name"""
+  expireOn
+
+  """column name"""
+  id
+
+  """column name"""
+  isActive
+
+  """column name"""
+  issuerId
+
+  """column name"""
+  receiverId
+}
+
+"""
+select "certAggregateBoolExpBool_andArgumentsColumns" columns of table "cert"
+"""
+enum CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns {
+  """column name"""
+  isActive
+}
+
+"""
+select "certAggregateBoolExpBool_orArgumentsColumns" columns of table "cert"
+"""
+enum CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns {
+  """column name"""
+  isActive
+}
+
+"""aggregate stddev on columns"""
+type CertStddevFields {
+  createdOn: Float
+  expireOn: Float
+}
+
+"""
+order by stddev() on columns of table "cert"
+"""
+input CertStddevOrderBy {
+  createdOn: OrderBy
+  expireOn: OrderBy
+}
+
+"""aggregate stddevPop on columns"""
+type CertStddevPopFields {
+  createdOn: Float
+  expireOn: Float
+}
+
+"""
+order by stddevPop() on columns of table "cert"
+"""
+input CertStddevPopOrderBy {
+  createdOn: OrderBy
+  expireOn: OrderBy
+}
+
+"""aggregate stddevSamp on columns"""
+type CertStddevSampFields {
+  createdOn: Float
+  expireOn: Float
+}
+
+"""
+order by stddevSamp() on columns of table "cert"
+"""
+input CertStddevSampOrderBy {
+  createdOn: OrderBy
+  expireOn: OrderBy
+}
+
+"""aggregate sum on columns"""
+type CertSumFields {
+  createdOn: Int
+  expireOn: Int
+}
+
+"""
+order by sum() on columns of table "cert"
+"""
+input CertSumOrderBy {
+  createdOn: OrderBy
+  expireOn: OrderBy
+}
+
+"""aggregate variance on columns"""
+type CertVarianceFields {
+  createdOn: Float
+  expireOn: Float
+}
+
+"""
+order by variance() on columns of table "cert"
+"""
+input CertVarianceOrderBy {
+  createdOn: OrderBy
+  expireOn: OrderBy
+}
+
+"""aggregate varPop on columns"""
+type CertVarPopFields {
+  createdOn: Float
+  expireOn: Float
+}
+
+"""
+order by varPop() on columns of table "cert"
+"""
+input CertVarPopOrderBy {
+  createdOn: OrderBy
+  expireOn: OrderBy
+}
+
+"""aggregate varSamp on columns"""
+type CertVarSampFields {
+  createdOn: Float
+  expireOn: Float
+}
+
+"""
+order by varSamp() on columns of table "cert"
+"""
+input CertVarSampOrderBy {
+  createdOn: OrderBy
+  expireOn: OrderBy
+}
+
+"""
+columns and relationships of "change_owner_key"
+"""
+type ChangeOwnerKey implements Node {
+  blockNumber: Int!
+  id: ID!
+
+  """An object relationship"""
+  identity: Identity
+  identityId: String
+
+  """An object relationship"""
+  next: Account
+  nextId: String
+
+  """An object relationship"""
+  previous: Account
+  previousId: String
+}
+
+"""
+aggregated selection of "change_owner_key"
+"""
+type ChangeOwnerKeyAggregate {
+  aggregate: ChangeOwnerKeyAggregateFields
+  nodes: [ChangeOwnerKey!]!
+}
+
+input ChangeOwnerKeyAggregateBoolExp {
+  count: changeOwnerKeyAggregateBoolExpCount
+}
+
+input changeOwnerKeyAggregateBoolExpCount {
+  arguments: [ChangeOwnerKeySelectColumn!]
+  distinct: Boolean
+  filter: ChangeOwnerKeyBoolExp
+  predicate: IntComparisonExp!
+}
+
+"""
+aggregate fields of "change_owner_key"
+"""
+type ChangeOwnerKeyAggregateFields {
+  avg: ChangeOwnerKeyAvgFields
+  count(columns: [ChangeOwnerKeySelectColumn!], distinct: Boolean): Int!
+  max: ChangeOwnerKeyMaxFields
+  min: ChangeOwnerKeyMinFields
+  stddev: ChangeOwnerKeyStddevFields
+  stddevPop: ChangeOwnerKeyStddevPopFields
+  stddevSamp: ChangeOwnerKeyStddevSampFields
+  sum: ChangeOwnerKeySumFields
+  varPop: ChangeOwnerKeyVarPopFields
+  varSamp: ChangeOwnerKeyVarSampFields
+  variance: ChangeOwnerKeyVarianceFields
+}
+
+"""
+order by aggregate values of table "change_owner_key"
+"""
+input ChangeOwnerKeyAggregateOrderBy {
+  avg: ChangeOwnerKeyAvgOrderBy
+  count: OrderBy
+  max: ChangeOwnerKeyMaxOrderBy
+  min: ChangeOwnerKeyMinOrderBy
+  stddev: ChangeOwnerKeyStddevOrderBy
+  stddevPop: ChangeOwnerKeyStddevPopOrderBy
+  stddevSamp: ChangeOwnerKeyStddevSampOrderBy
+  sum: ChangeOwnerKeySumOrderBy
+  varPop: ChangeOwnerKeyVarPopOrderBy
+  varSamp: ChangeOwnerKeyVarSampOrderBy
+  variance: ChangeOwnerKeyVarianceOrderBy
+}
+
+"""aggregate avg on columns"""
+type ChangeOwnerKeyAvgFields {
+  blockNumber: Float
+}
+
+"""
+order by avg() on columns of table "change_owner_key"
+"""
+input ChangeOwnerKeyAvgOrderBy {
+  blockNumber: OrderBy
+}
+
+"""
+Boolean expression to filter rows from the table "change_owner_key". All fields are combined with a logical 'AND'.
+"""
+input ChangeOwnerKeyBoolExp {
+  _and: [ChangeOwnerKeyBoolExp!]
+  _not: ChangeOwnerKeyBoolExp
+  _or: [ChangeOwnerKeyBoolExp!]
+  blockNumber: IntComparisonExp
+  id: StringComparisonExp
+  identity: IdentityBoolExp
+  identityId: StringComparisonExp
+  next: AccountBoolExp
+  nextId: StringComparisonExp
+  previous: AccountBoolExp
+  previousId: StringComparisonExp
+}
+
+"""
+A Relay connection object on "change_owner_key"
+"""
+type ChangeOwnerKeyConnection {
+  edges: [ChangeOwnerKeyEdge!]!
+  pageInfo: PageInfo!
+}
+
+type ChangeOwnerKeyEdge {
+  cursor: String!
+  node: ChangeOwnerKey!
+}
+
+"""aggregate max on columns"""
+type ChangeOwnerKeyMaxFields {
+  blockNumber: Int
+  id: String
+  identityId: String
+  nextId: String
+  previousId: String
+}
+
+"""
+order by max() on columns of table "change_owner_key"
+"""
+input ChangeOwnerKeyMaxOrderBy {
+  blockNumber: OrderBy
+  id: OrderBy
+  identityId: OrderBy
+  nextId: OrderBy
+  previousId: OrderBy
+}
+
+"""aggregate min on columns"""
+type ChangeOwnerKeyMinFields {
+  blockNumber: Int
+  id: String
+  identityId: String
+  nextId: String
+  previousId: String
+}
+
+"""
+order by min() on columns of table "change_owner_key"
+"""
+input ChangeOwnerKeyMinOrderBy {
+  blockNumber: OrderBy
+  id: OrderBy
+  identityId: OrderBy
+  nextId: OrderBy
+  previousId: OrderBy
+}
+
+"""Ordering options when selecting data from "change_owner_key"."""
+input ChangeOwnerKeyOrderBy {
+  blockNumber: OrderBy
+  id: OrderBy
+  identity: IdentityOrderBy
+  identityId: OrderBy
+  next: AccountOrderBy
+  nextId: OrderBy
+  previous: AccountOrderBy
+  previousId: OrderBy
+}
+
+"""
+select columns of table "change_owner_key"
+"""
+enum ChangeOwnerKeySelectColumn {
+  """column name"""
+  blockNumber
+
+  """column name"""
+  id
+
+  """column name"""
+  identityId
+
+  """column name"""
+  nextId
+
+  """column name"""
+  previousId
+}
+
+"""aggregate stddev on columns"""
+type ChangeOwnerKeyStddevFields {
+  blockNumber: Float
+}
+
+"""
+order by stddev() on columns of table "change_owner_key"
+"""
+input ChangeOwnerKeyStddevOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate stddevPop on columns"""
+type ChangeOwnerKeyStddevPopFields {
+  blockNumber: Float
+}
+
+"""
+order by stddevPop() on columns of table "change_owner_key"
+"""
+input ChangeOwnerKeyStddevPopOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate stddevSamp on columns"""
+type ChangeOwnerKeyStddevSampFields {
+  blockNumber: Float
+}
+
+"""
+order by stddevSamp() on columns of table "change_owner_key"
+"""
+input ChangeOwnerKeyStddevSampOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate sum on columns"""
+type ChangeOwnerKeySumFields {
+  blockNumber: Int
+}
+
+"""
+order by sum() on columns of table "change_owner_key"
+"""
+input ChangeOwnerKeySumOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate variance on columns"""
+type ChangeOwnerKeyVarianceFields {
+  blockNumber: Float
+}
+
+"""
+order by variance() on columns of table "change_owner_key"
+"""
+input ChangeOwnerKeyVarianceOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate varPop on columns"""
+type ChangeOwnerKeyVarPopFields {
+  blockNumber: Float
+}
+
+"""
+order by varPop() on columns of table "change_owner_key"
+"""
+input ChangeOwnerKeyVarPopOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate varSamp on columns"""
+type ChangeOwnerKeyVarSampFields {
+  blockNumber: Float
+}
+
+"""
+order by varSamp() on columns of table "change_owner_key"
+"""
+input ChangeOwnerKeyVarSampOrderBy {
+  blockNumber: OrderBy
+}
+
+enum CounterLevelEnum {
+  GLOBAL
+  ITEM
+  PALLET
+}
+
+"""
+Boolean expression to compare columns of type "CounterLevelEnum". All fields are combined with logical 'AND'.
+"""
+input CounterLevelEnumComparisonExp {
+  _eq: CounterLevelEnum
+  _in: [CounterLevelEnum!]
+  _isNull: Boolean
+  _neq: CounterLevelEnum
+  _nin: [CounterLevelEnum!]
+}
+
+"""
+columns and relationships of "event"
+"""
+type Event implements Node {
+  args(
+    """JSON select path"""
+    path: String
+  ): jsonb
+  argsStr: [String!]
+
+  """An object relationship"""
+  block: Block
+  blockId: String
+
+  """An object relationship"""
+  call: Call
+  callId: String
+
+  """An object relationship"""
+  extrinsic: Extrinsic
+  extrinsicId: String
+  id: ID!
+  index: Int!
+  name: String!
+  pallet: String!
+  phase: String!
+}
+
+"""
+aggregated selection of "event"
+"""
+type EventAggregate {
+  aggregate: EventAggregateFields
+  nodes: [Event!]!
+}
+
+input EventAggregateBoolExp {
+  count: eventAggregateBoolExpCount
+}
+
+input eventAggregateBoolExpCount {
+  arguments: [EventSelectColumn!]
+  distinct: Boolean
+  filter: EventBoolExp
+  predicate: IntComparisonExp!
+}
+
+"""
+aggregate fields of "event"
+"""
+type EventAggregateFields {
+  avg: EventAvgFields
+  count(columns: [EventSelectColumn!], distinct: Boolean): Int!
+  max: EventMaxFields
+  min: EventMinFields
+  stddev: EventStddevFields
+  stddevPop: EventStddevPopFields
+  stddevSamp: EventStddevSampFields
+  sum: EventSumFields
+  varPop: EventVarPopFields
+  varSamp: EventVarSampFields
+  variance: EventVarianceFields
+}
+
+"""
+order by aggregate values of table "event"
+"""
+input EventAggregateOrderBy {
+  avg: EventAvgOrderBy
+  count: OrderBy
+  max: EventMaxOrderBy
+  min: EventMinOrderBy
+  stddev: EventStddevOrderBy
+  stddevPop: EventStddevPopOrderBy
+  stddevSamp: EventStddevSampOrderBy
+  sum: EventSumOrderBy
+  varPop: EventVarPopOrderBy
+  varSamp: EventVarSampOrderBy
+  variance: EventVarianceOrderBy
+}
+
+"""aggregate avg on columns"""
+type EventAvgFields {
+  index: Float
+}
+
+"""
+order by avg() on columns of table "event"
+"""
+input EventAvgOrderBy {
+  index: OrderBy
+}
+
+"""
+Boolean expression to filter rows from the table "event". All fields are combined with a logical 'AND'.
+"""
+input EventBoolExp {
+  _and: [EventBoolExp!]
+  _not: EventBoolExp
+  _or: [EventBoolExp!]
+  args: JsonbComparisonExp
+  argsStr: StringArrayComparisonExp
+  block: BlockBoolExp
+  blockId: StringComparisonExp
+  call: CallBoolExp
+  callId: StringComparisonExp
+  extrinsic: ExtrinsicBoolExp
+  extrinsicId: StringComparisonExp
+  id: StringComparisonExp
+  index: IntComparisonExp
+  name: StringComparisonExp
+  pallet: StringComparisonExp
+  phase: StringComparisonExp
+}
+
+"""
+A Relay connection object on "event"
+"""
+type EventConnection {
+  edges: [EventEdge!]!
+  pageInfo: PageInfo!
+}
+
+type EventEdge {
+  cursor: String!
+  node: Event!
+}
+
+"""aggregate max on columns"""
+type EventMaxFields {
+  argsStr: [String!]
+  blockId: String
+  callId: String
+  extrinsicId: String
+  id: String
+  index: Int
+  name: String
+  pallet: String
+  phase: String
+}
+
+"""
+order by max() on columns of table "event"
+"""
+input EventMaxOrderBy {
+  argsStr: OrderBy
+  blockId: OrderBy
+  callId: OrderBy
+  extrinsicId: OrderBy
+  id: OrderBy
+  index: OrderBy
+  name: OrderBy
+  pallet: OrderBy
+  phase: OrderBy
+}
+
+"""aggregate min on columns"""
+type EventMinFields {
+  argsStr: [String!]
+  blockId: String
+  callId: String
+  extrinsicId: String
+  id: String
+  index: Int
+  name: String
+  pallet: String
+  phase: String
+}
+
+"""
+order by min() on columns of table "event"
+"""
+input EventMinOrderBy {
+  argsStr: OrderBy
+  blockId: OrderBy
+  callId: OrderBy
+  extrinsicId: OrderBy
+  id: OrderBy
+  index: OrderBy
+  name: OrderBy
+  pallet: OrderBy
+  phase: OrderBy
+}
+
+"""Ordering options when selecting data from "event"."""
+input EventOrderBy {
+  args: OrderBy
+  argsStr: OrderBy
+  block: BlockOrderBy
+  blockId: OrderBy
+  call: CallOrderBy
+  callId: OrderBy
+  extrinsic: ExtrinsicOrderBy
+  extrinsicId: OrderBy
+  id: OrderBy
+  index: OrderBy
+  name: OrderBy
+  pallet: OrderBy
+  phase: OrderBy
+}
+
+"""
+select columns of table "event"
+"""
+enum EventSelectColumn {
+  """column name"""
+  args
+
+  """column name"""
+  argsStr
+
+  """column name"""
+  blockId
+
+  """column name"""
+  callId
+
+  """column name"""
+  extrinsicId
+
+  """column name"""
+  id
+
+  """column name"""
+  index
+
+  """column name"""
+  name
+
+  """column name"""
+  pallet
+
+  """column name"""
+  phase
+}
+
+"""aggregate stddev on columns"""
+type EventStddevFields {
+  index: Float
+}
+
+"""
+order by stddev() on columns of table "event"
+"""
+input EventStddevOrderBy {
+  index: OrderBy
+}
+
+"""aggregate stddevPop on columns"""
+type EventStddevPopFields {
+  index: Float
+}
+
+"""
+order by stddevPop() on columns of table "event"
+"""
+input EventStddevPopOrderBy {
+  index: OrderBy
+}
+
+"""aggregate stddevSamp on columns"""
+type EventStddevSampFields {
+  index: Float
+}
+
+"""
+order by stddevSamp() on columns of table "event"
+"""
+input EventStddevSampOrderBy {
+  index: OrderBy
+}
+
+"""aggregate sum on columns"""
+type EventSumFields {
+  index: Int
+}
+
+"""
+order by sum() on columns of table "event"
+"""
+input EventSumOrderBy {
+  index: OrderBy
+}
+
+enum EventTypeEnum {
+  CREATION
+  REMOVAL
+  RENEWAL
+}
+
+"""
+Boolean expression to compare columns of type "EventTypeEnum". All fields are combined with logical 'AND'.
+"""
+input EventTypeEnumComparisonExp {
+  _eq: EventTypeEnum
+  _in: [EventTypeEnum!]
+  _isNull: Boolean
+  _neq: EventTypeEnum
+  _nin: [EventTypeEnum!]
+}
+
+"""aggregate variance on columns"""
+type EventVarianceFields {
+  index: Float
+}
+
+"""
+order by variance() on columns of table "event"
+"""
+input EventVarianceOrderBy {
+  index: OrderBy
+}
+
+"""aggregate varPop on columns"""
+type EventVarPopFields {
+  index: Float
+}
+
+"""
+order by varPop() on columns of table "event"
+"""
+input EventVarPopOrderBy {
+  index: OrderBy
+}
+
+"""aggregate varSamp on columns"""
+type EventVarSampFields {
+  index: Float
+}
+
+"""
+order by varSamp() on columns of table "event"
+"""
+input EventVarSampOrderBy {
+  index: OrderBy
+}
+
+"""
+columns and relationships of "extrinsic"
+"""
+type Extrinsic implements Node {
+  """An object relationship"""
+  block: Block
+  blockId: String
+
+  """An object relationship"""
+  call: Call
+  callId: String
+
+  """An array relationship"""
+  calls(
+    """distinct select on columns"""
+    distinctOn: [CallSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CallOrderBy!]
+
+    """filter the rows returned"""
+    where: CallBoolExp
+  ): [Call!]!
+
+  """An aggregate relationship"""
+  callsAggregate(
+    """distinct select on columns"""
+    distinctOn: [CallSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CallOrderBy!]
+
+    """filter the rows returned"""
+    where: CallBoolExp
+  ): CallAggregate!
+
+  """An array relationship connection"""
+  calls_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [CallSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CallOrderBy!]
+
+    """filter the rows returned"""
+    where: CallBoolExp
+  ): CallConnection!
+  error(
+    """JSON select path"""
+    path: String
+  ): jsonb
+
+  """An array relationship"""
+  events(
+    """distinct select on columns"""
+    distinctOn: [EventSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [EventOrderBy!]
+
+    """filter the rows returned"""
+    where: EventBoolExp
+  ): [Event!]!
+
+  """An aggregate relationship"""
+  eventsAggregate(
+    """distinct select on columns"""
+    distinctOn: [EventSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [EventOrderBy!]
+
+    """filter the rows returned"""
+    where: EventBoolExp
+  ): EventAggregate!
+
+  """An array relationship connection"""
+  events_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [EventSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [EventOrderBy!]
+
+    """filter the rows returned"""
+    where: EventBoolExp
+  ): EventConnection!
+  fee: numeric
+  hash: bytea!
+  id: ID!
+  index: Int!
+  signature(
+    """JSON select path"""
+    path: String
+  ): jsonb
+  success: Boolean
+  tip: numeric
+  version: Int!
+}
+
+"""
+aggregated selection of "extrinsic"
+"""
+type ExtrinsicAggregate {
+  aggregate: ExtrinsicAggregateFields
+  nodes: [Extrinsic!]!
+}
+
+input ExtrinsicAggregateBoolExp {
+  bool_and: extrinsicAggregateBoolExpBool_and
+  bool_or: extrinsicAggregateBoolExpBool_or
+  count: extrinsicAggregateBoolExpCount
+}
+
+input extrinsicAggregateBoolExpBool_and {
+  arguments: ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns!
+  distinct: Boolean
+  filter: ExtrinsicBoolExp
+  predicate: BooleanComparisonExp!
+}
+
+input extrinsicAggregateBoolExpBool_or {
+  arguments: ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns!
+  distinct: Boolean
+  filter: ExtrinsicBoolExp
+  predicate: BooleanComparisonExp!
+}
+
+input extrinsicAggregateBoolExpCount {
+  arguments: [ExtrinsicSelectColumn!]
+  distinct: Boolean
+  filter: ExtrinsicBoolExp
+  predicate: IntComparisonExp!
+}
+
+"""
+aggregate fields of "extrinsic"
+"""
+type ExtrinsicAggregateFields {
+  avg: ExtrinsicAvgFields
+  count(columns: [ExtrinsicSelectColumn!], distinct: Boolean): Int!
+  max: ExtrinsicMaxFields
+  min: ExtrinsicMinFields
+  stddev: ExtrinsicStddevFields
+  stddevPop: ExtrinsicStddevPopFields
+  stddevSamp: ExtrinsicStddevSampFields
+  sum: ExtrinsicSumFields
+  varPop: ExtrinsicVarPopFields
+  varSamp: ExtrinsicVarSampFields
+  variance: ExtrinsicVarianceFields
+}
+
+"""
+order by aggregate values of table "extrinsic"
+"""
+input ExtrinsicAggregateOrderBy {
+  avg: ExtrinsicAvgOrderBy
+  count: OrderBy
+  max: ExtrinsicMaxOrderBy
+  min: ExtrinsicMinOrderBy
+  stddev: ExtrinsicStddevOrderBy
+  stddevPop: ExtrinsicStddevPopOrderBy
+  stddevSamp: ExtrinsicStddevSampOrderBy
+  sum: ExtrinsicSumOrderBy
+  varPop: ExtrinsicVarPopOrderBy
+  varSamp: ExtrinsicVarSampOrderBy
+  variance: ExtrinsicVarianceOrderBy
+}
+
+"""aggregate avg on columns"""
+type ExtrinsicAvgFields {
+  fee: Float
+  index: Float
+  tip: Float
+  version: Float
+}
+
+"""
+order by avg() on columns of table "extrinsic"
+"""
+input ExtrinsicAvgOrderBy {
+  fee: OrderBy
+  index: OrderBy
+  tip: OrderBy
+  version: OrderBy
+}
+
+"""
+Boolean expression to filter rows from the table "extrinsic". All fields are combined with a logical 'AND'.
+"""
+input ExtrinsicBoolExp {
+  _and: [ExtrinsicBoolExp!]
+  _not: ExtrinsicBoolExp
+  _or: [ExtrinsicBoolExp!]
+  block: BlockBoolExp
+  blockId: StringComparisonExp
+  call: CallBoolExp
+  callId: StringComparisonExp
+  calls: CallBoolExp
+  callsAggregate: CallAggregateBoolExp
+  error: JsonbComparisonExp
+  events: EventBoolExp
+  eventsAggregate: EventAggregateBoolExp
+  fee: NumericComparisonExp
+  hash: ByteaComparisonExp
+  id: StringComparisonExp
+  index: IntComparisonExp
+  signature: JsonbComparisonExp
+  success: BooleanComparisonExp
+  tip: NumericComparisonExp
+  version: IntComparisonExp
+}
+
+"""
+A Relay connection object on "extrinsic"
+"""
+type ExtrinsicConnection {
+  edges: [ExtrinsicEdge!]!
+  pageInfo: PageInfo!
+}
+
+type ExtrinsicEdge {
+  cursor: String!
+  node: Extrinsic!
+}
+
+"""aggregate max on columns"""
+type ExtrinsicMaxFields {
+  blockId: String
+  callId: String
+  fee: numeric
+  id: String
+  index: Int
+  tip: numeric
+  version: Int
+}
+
+"""
+order by max() on columns of table "extrinsic"
+"""
+input ExtrinsicMaxOrderBy {
+  blockId: OrderBy
+  callId: OrderBy
+  fee: OrderBy
+  id: OrderBy
+  index: OrderBy
+  tip: OrderBy
+  version: OrderBy
+}
+
+"""aggregate min on columns"""
+type ExtrinsicMinFields {
+  blockId: String
+  callId: String
+  fee: numeric
+  id: String
+  index: Int
+  tip: numeric
+  version: Int
+}
+
+"""
+order by min() on columns of table "extrinsic"
+"""
+input ExtrinsicMinOrderBy {
+  blockId: OrderBy
+  callId: OrderBy
+  fee: OrderBy
+  id: OrderBy
+  index: OrderBy
+  tip: OrderBy
+  version: OrderBy
+}
+
+"""Ordering options when selecting data from "extrinsic"."""
+input ExtrinsicOrderBy {
+  block: BlockOrderBy
+  blockId: OrderBy
+  call: CallOrderBy
+  callId: OrderBy
+  callsAggregate: CallAggregateOrderBy
+  error: OrderBy
+  eventsAggregate: EventAggregateOrderBy
+  fee: OrderBy
+  hash: OrderBy
+  id: OrderBy
+  index: OrderBy
+  signature: OrderBy
+  success: OrderBy
+  tip: OrderBy
+  version: OrderBy
+}
+
+"""
+select columns of table "extrinsic"
+"""
+enum ExtrinsicSelectColumn {
+  """column name"""
+  blockId
+
+  """column name"""
+  callId
+
+  """column name"""
+  error
+
+  """column name"""
+  fee
+
+  """column name"""
+  hash
+
+  """column name"""
+  id
+
+  """column name"""
+  index
+
+  """column name"""
+  signature
+
+  """column name"""
+  success
+
+  """column name"""
+  tip
+
+  """column name"""
+  version
+}
+
+"""
+select "extrinsicAggregateBoolExpBool_andArgumentsColumns" columns of table "extrinsic"
+"""
+enum ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns {
+  """column name"""
+  success
+}
+
+"""
+select "extrinsicAggregateBoolExpBool_orArgumentsColumns" columns of table "extrinsic"
+"""
+enum ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns {
+  """column name"""
+  success
+}
+
+"""aggregate stddev on columns"""
+type ExtrinsicStddevFields {
+  fee: Float
+  index: Float
+  tip: Float
+  version: Float
+}
+
+"""
+order by stddev() on columns of table "extrinsic"
+"""
+input ExtrinsicStddevOrderBy {
+  fee: OrderBy
+  index: OrderBy
+  tip: OrderBy
+  version: OrderBy
+}
+
+"""aggregate stddevPop on columns"""
+type ExtrinsicStddevPopFields {
+  fee: Float
+  index: Float
+  tip: Float
+  version: Float
+}
+
+"""
+order by stddevPop() on columns of table "extrinsic"
+"""
+input ExtrinsicStddevPopOrderBy {
+  fee: OrderBy
+  index: OrderBy
+  tip: OrderBy
+  version: OrderBy
+}
+
+"""aggregate stddevSamp on columns"""
+type ExtrinsicStddevSampFields {
+  fee: Float
+  index: Float
+  tip: Float
+  version: Float
+}
+
+"""
+order by stddevSamp() on columns of table "extrinsic"
+"""
+input ExtrinsicStddevSampOrderBy {
+  fee: OrderBy
+  index: OrderBy
+  tip: OrderBy
+  version: OrderBy
+}
+
+"""aggregate sum on columns"""
+type ExtrinsicSumFields {
+  fee: numeric
+  index: Int
+  tip: numeric
+  version: Int
+}
+
+"""
+order by sum() on columns of table "extrinsic"
+"""
+input ExtrinsicSumOrderBy {
+  fee: OrderBy
+  index: OrderBy
+  tip: OrderBy
+  version: OrderBy
+}
+
+"""aggregate variance on columns"""
+type ExtrinsicVarianceFields {
+  fee: Float
+  index: Float
+  tip: Float
+  version: Float
+}
+
+"""
+order by variance() on columns of table "extrinsic"
+"""
+input ExtrinsicVarianceOrderBy {
+  fee: OrderBy
+  index: OrderBy
+  tip: OrderBy
+  version: OrderBy
+}
+
+"""aggregate varPop on columns"""
+type ExtrinsicVarPopFields {
+  fee: Float
+  index: Float
+  tip: Float
+  version: Float
+}
+
+"""
+order by varPop() on columns of table "extrinsic"
+"""
+input ExtrinsicVarPopOrderBy {
+  fee: OrderBy
+  index: OrderBy
+  tip: OrderBy
+  version: OrderBy
+}
+
+"""aggregate varSamp on columns"""
+type ExtrinsicVarSampFields {
+  fee: Float
+  index: Float
+  tip: Float
+  version: Float
+}
+
+"""
+order by varSamp() on columns of table "extrinsic"
+"""
+input ExtrinsicVarSampOrderBy {
+  fee: OrderBy
+  index: OrderBy
+  tip: OrderBy
+  version: OrderBy
+}
+
+input getUdHistoryArgs {
+  identity_row: identity_scalar
+}
+
+"""
+columns and relationships of "identity"
+"""
+type Identity implements Node {
+  """An object relationship"""
+  account: Account
+  accountId: String
+
+  """An array relationship"""
+  certIssued(
+    """distinct select on columns"""
+    distinctOn: [CertSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CertOrderBy!]
+
+    """filter the rows returned"""
+    where: CertBoolExp
+  ): [Cert!]!
+
+  """An aggregate relationship"""
+  certIssuedAggregate(
+    """distinct select on columns"""
+    distinctOn: [CertSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CertOrderBy!]
+
+    """filter the rows returned"""
+    where: CertBoolExp
+  ): CertAggregate!
+
+  """An array relationship connection"""
+  certIssued_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [CertSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CertOrderBy!]
+
+    """filter the rows returned"""
+    where: CertBoolExp
+  ): CertConnection!
+
+  """An array relationship"""
+  certReceived(
+    """distinct select on columns"""
+    distinctOn: [CertSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CertOrderBy!]
+
+    """filter the rows returned"""
+    where: CertBoolExp
+  ): [Cert!]!
+
+  """An aggregate relationship"""
+  certReceivedAggregate(
+    """distinct select on columns"""
+    distinctOn: [CertSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CertOrderBy!]
+
+    """filter the rows returned"""
+    where: CertBoolExp
+  ): CertAggregate!
+
+  """An array relationship connection"""
+  certReceived_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [CertSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CertOrderBy!]
+
+    """filter the rows returned"""
+    where: CertBoolExp
+  ): CertConnection!
+
+  """An object relationship"""
+  createdIn: Event
+  createdInId: String
+  createdOn: Int!
+  expireOn: Int!
+  id: ID!
+  index: Int!
+  isMember: Boolean!
+  lastChangeOn: Int!
+
+  """An array relationship"""
+  linkedAccount(
+    """distinct select on columns"""
+    distinctOn: [AccountSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [AccountOrderBy!]
+
+    """filter the rows returned"""
+    where: AccountBoolExp
+  ): [Account!]!
+
+  """An aggregate relationship"""
+  linkedAccountAggregate(
+    """distinct select on columns"""
+    distinctOn: [AccountSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [AccountOrderBy!]
+
+    """filter the rows returned"""
+    where: AccountBoolExp
+  ): AccountAggregate!
+
+  """An array relationship connection"""
+  linkedAccount_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [AccountSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [AccountOrderBy!]
+
+    """filter the rows returned"""
+    where: AccountBoolExp
+  ): AccountConnection!
+
+  """An array relationship"""
+  membershipHistory(
+    """distinct select on columns"""
+    distinctOn: [MembershipEventSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [MembershipEventOrderBy!]
+
+    """filter the rows returned"""
+    where: MembershipEventBoolExp
+  ): [MembershipEvent!]!
+
+  """An aggregate relationship"""
+  membershipHistoryAggregate(
+    """distinct select on columns"""
+    distinctOn: [MembershipEventSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [MembershipEventOrderBy!]
+
+    """filter the rows returned"""
+    where: MembershipEventBoolExp
+  ): MembershipEventAggregate!
+
+  """An array relationship connection"""
+  membershipHistory_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [MembershipEventSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [MembershipEventOrderBy!]
+
+    """filter the rows returned"""
+    where: MembershipEventBoolExp
+  ): MembershipEventConnection!
+  name: String!
+
+  """An array relationship"""
+  ownerKeyChange(
+    """distinct select on columns"""
+    distinctOn: [ChangeOwnerKeySelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [ChangeOwnerKeyOrderBy!]
+
+    """filter the rows returned"""
+    where: ChangeOwnerKeyBoolExp
+  ): [ChangeOwnerKey!]!
+
+  """An aggregate relationship"""
+  ownerKeyChangeAggregate(
+    """distinct select on columns"""
+    distinctOn: [ChangeOwnerKeySelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [ChangeOwnerKeyOrderBy!]
+
+    """filter the rows returned"""
+    where: ChangeOwnerKeyBoolExp
+  ): ChangeOwnerKeyAggregate!
+
+  """An array relationship connection"""
+  ownerKeyChange_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [ChangeOwnerKeySelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [ChangeOwnerKeyOrderBy!]
+
+    """filter the rows returned"""
+    where: ChangeOwnerKeyBoolExp
+  ): ChangeOwnerKeyConnection!
+
+  """An array relationship"""
+  smithCertIssued(
+    """distinct select on columns"""
+    distinctOn: [SmithCertSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [SmithCertOrderBy!]
+
+    """filter the rows returned"""
+    where: SmithCertBoolExp
+  ): [SmithCert!]!
+
+  """An aggregate relationship"""
+  smithCertIssuedAggregate(
+    """distinct select on columns"""
+    distinctOn: [SmithCertSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [SmithCertOrderBy!]
+
+    """filter the rows returned"""
+    where: SmithCertBoolExp
+  ): SmithCertAggregate!
+
+  """An array relationship connection"""
+  smithCertIssued_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [SmithCertSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [SmithCertOrderBy!]
+
+    """filter the rows returned"""
+    where: SmithCertBoolExp
+  ): SmithCertConnection!
+
+  """An array relationship"""
+  smithCertReceived(
+    """distinct select on columns"""
+    distinctOn: [SmithCertSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [SmithCertOrderBy!]
+
+    """filter the rows returned"""
+    where: SmithCertBoolExp
+  ): [SmithCert!]!
+
+  """An aggregate relationship"""
+  smithCertReceivedAggregate(
+    """distinct select on columns"""
+    distinctOn: [SmithCertSelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [SmithCertOrderBy!]
+
+    """filter the rows returned"""
+    where: SmithCertBoolExp
+  ): SmithCertAggregate!
+
+  """An array relationship connection"""
+  smithCertReceived_connection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [SmithCertSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [SmithCertOrderBy!]
+
+    """filter the rows returned"""
+    where: SmithCertBoolExp
+  ): SmithCertConnection!
+  smithStatus: SmithStatusEnum
+  status: IdentityStatusEnum
+
+  """
+  "Get UD History by Identity"
+  """
+  udHistory(
+    """distinct select on columns"""
+    distinctOn: [UdHistorySelectColumn!]
+
+    """limit the number of rows returned"""
+    limit: Int
+
+    """skip the first n rows. Use only with order_by"""
+    offset: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [UdHistoryOrderBy!]
+
+    """filter the rows returned"""
+    where: UdHistoryBoolExp
+  ): [UdHistory!]
+}
+
+scalar identity_scalar
+
+"""
+Boolean expression to filter rows from the table "identity". All fields are combined with a logical 'AND'.
+"""
+input IdentityBoolExp {
+  _and: [IdentityBoolExp!]
+  _not: IdentityBoolExp
+  _or: [IdentityBoolExp!]
+  account: AccountBoolExp
+  accountId: StringComparisonExp
+  certIssued: CertBoolExp
+  certIssuedAggregate: CertAggregateBoolExp
+  certReceived: CertBoolExp
+  certReceivedAggregate: CertAggregateBoolExp
+  createdIn: EventBoolExp
+  createdInId: StringComparisonExp
+  createdOn: IntComparisonExp
+  expireOn: IntComparisonExp
+  id: StringComparisonExp
+  index: IntComparisonExp
+  isMember: BooleanComparisonExp
+  lastChangeOn: IntComparisonExp
+  linkedAccount: AccountBoolExp
+  linkedAccountAggregate: AccountAggregateBoolExp
+  membershipHistory: MembershipEventBoolExp
+  membershipHistoryAggregate: MembershipEventAggregateBoolExp
+  name: StringComparisonExp
+  ownerKeyChange: ChangeOwnerKeyBoolExp
+  ownerKeyChangeAggregate: ChangeOwnerKeyAggregateBoolExp
+  smithCertIssued: SmithCertBoolExp
+  smithCertIssuedAggregate: SmithCertAggregateBoolExp
+  smithCertReceived: SmithCertBoolExp
+  smithCertReceivedAggregate: SmithCertAggregateBoolExp
+  smithStatus: SmithStatusEnumComparisonExp
+  status: IdentityStatusEnumComparisonExp
+  udHistory: UdHistoryBoolExp
+}
+
+"""
+A Relay connection object on "identity"
+"""
+type IdentityConnection {
+  edges: [IdentityEdge!]!
+  pageInfo: PageInfo!
+}
+
+type IdentityEdge {
+  cursor: String!
+  node: Identity!
+}
+
+"""Ordering options when selecting data from "identity"."""
+input IdentityOrderBy {
+  account: AccountOrderBy
+  accountId: OrderBy
+  certIssuedAggregate: CertAggregateOrderBy
+  certReceivedAggregate: CertAggregateOrderBy
+  createdIn: EventOrderBy
+  createdInId: OrderBy
+  createdOn: OrderBy
+  expireOn: OrderBy
+  id: OrderBy
+  index: OrderBy
+  isMember: OrderBy
+  lastChangeOn: OrderBy
+  linkedAccountAggregate: AccountAggregateOrderBy
+  membershipHistoryAggregate: MembershipEventAggregateOrderBy
+  name: OrderBy
+  ownerKeyChangeAggregate: ChangeOwnerKeyAggregateOrderBy
+  smithCertIssuedAggregate: SmithCertAggregateOrderBy
+  smithCertReceivedAggregate: SmithCertAggregateOrderBy
+  smithStatus: OrderBy
+  status: OrderBy
+  udHistoryAggregate: UdHistoryAggregateOrderBy
+}
+
+"""
+select columns of table "identity"
+"""
+enum IdentitySelectColumn {
+  """column name"""
+  accountId
+
+  """column name"""
+  createdInId
+
+  """column name"""
+  createdOn
+
+  """column name"""
+  expireOn
+
+  """column name"""
+  id
+
+  """column name"""
+  index
+
+  """column name"""
+  isMember
+
+  """column name"""
+  lastChangeOn
+
+  """column name"""
+  name
+
+  """column name"""
+  smithStatus
+
+  """column name"""
+  status
+}
+
+enum IdentityStatusEnum {
+  MEMBER
+  NOTMEMBER
+  REMOVED
+  REVOKED
+  UNCONFIRMED
+  UNVALIDATED
+}
+
+"""
+Boolean expression to compare columns of type "IdentityStatusEnum". All fields are combined with logical 'AND'.
+"""
+input IdentityStatusEnumComparisonExp {
+  _eq: IdentityStatusEnum
+  _in: [IdentityStatusEnum!]
+  _isNull: Boolean
+  _neq: IdentityStatusEnum
+  _nin: [IdentityStatusEnum!]
+}
+
+"""
+Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'.
+"""
+input IntArrayComparisonExp {
+  """is the array contained in the given array value"""
+  _containedIn: [Int!]
+
+  """does the array contain the given value"""
+  _contains: [Int!]
+  _eq: [Int!]
+  _gt: [Int!]
+  _gte: [Int!]
+  _in: [[Int!]!]
+  _isNull: Boolean
+  _lt: [Int!]
+  _lte: [Int!]
+  _neq: [Int!]
+  _nin: [[Int!]!]
+}
+
+"""
+Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'.
+"""
+input IntComparisonExp {
+  _eq: Int
+  _gt: Int
+  _gte: Int
+  _in: [Int!]
+  _isNull: Boolean
+  _lt: Int
+  _lte: Int
+  _neq: Int
+  _nin: [Int!]
+}
+
+"""
+columns and relationships of "items_counter"
+"""
+type ItemsCounter implements Node {
+  id: ID!
+  level: CounterLevelEnum
+  total: Int!
+  type: ItemTypeEnum
+}
+
+"""
+Boolean expression to filter rows from the table "items_counter". All fields are combined with a logical 'AND'.
+"""
+input ItemsCounterBoolExp {
+  _and: [ItemsCounterBoolExp!]
+  _not: ItemsCounterBoolExp
+  _or: [ItemsCounterBoolExp!]
+  id: StringComparisonExp
+  level: CounterLevelEnumComparisonExp
+  total: IntComparisonExp
+  type: ItemTypeEnumComparisonExp
+}
+
+"""
+A Relay connection object on "items_counter"
+"""
+type ItemsCounterConnection {
+  edges: [ItemsCounterEdge!]!
+  pageInfo: PageInfo!
+}
+
+type ItemsCounterEdge {
+  cursor: String!
+  node: ItemsCounter!
+}
+
+"""Ordering options when selecting data from "items_counter"."""
+input ItemsCounterOrderBy {
+  id: OrderBy
+  level: OrderBy
+  total: OrderBy
+  type: OrderBy
+}
+
+"""
+select columns of table "items_counter"
+"""
+enum ItemsCounterSelectColumn {
+  """column name"""
+  id
+
+  """column name"""
+  level
+
+  """column name"""
+  total
+
+  """column name"""
+  type
+}
+
+enum ItemTypeEnum {
+  CALLS
+  EVENTS
+  EXTRINSICS
+}
+
+"""
+Boolean expression to compare columns of type "ItemTypeEnum". All fields are combined with logical 'AND'.
+"""
+input ItemTypeEnumComparisonExp {
+  _eq: ItemTypeEnum
+  _in: [ItemTypeEnum!]
+  _isNull: Boolean
+  _neq: ItemTypeEnum
+  _nin: [ItemTypeEnum!]
+}
+
+scalar jsonb
+
+input JsonbCastExp {
+  String: StringComparisonExp
+}
+
+"""
+Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'.
+"""
+input JsonbComparisonExp {
+  _cast: JsonbCastExp
+
+  """is the column contained in the given json value"""
+  _containedIn: jsonb
+
+  """does the column contain the given json value at the top level"""
+  _contains: jsonb
+  _eq: jsonb
+  _gt: jsonb
+  _gte: jsonb
+
+  """does the string exist as a top-level key in the column"""
+  _hasKey: String
+
+  """do all of these strings exist as top-level keys in the column"""
+  _hasKeysAll: [String!]
+
+  """do any of these strings exist as top-level keys in the column"""
+  _hasKeysAny: [String!]
+  _in: [jsonb!]
+  _isNull: Boolean
+  _lt: jsonb
+  _lte: jsonb
+  _neq: jsonb
+  _nin: [jsonb!]
+}
+
+"""
+columns and relationships of "membership_event"
+"""
+type MembershipEvent implements Node {
+  blockNumber: Int!
+
+  """An object relationship"""
+  event: Event
+  eventId: String
+  eventType: EventTypeEnum
+  id: ID!
+
+  """An object relationship"""
+  identity: Identity
+  identityId: String
+}
+
+"""
+aggregated selection of "membership_event"
+"""
+type MembershipEventAggregate {
+  aggregate: MembershipEventAggregateFields
+  nodes: [MembershipEvent!]!
+}
+
+input MembershipEventAggregateBoolExp {
+  count: membershipEventAggregateBoolExpCount
+}
+
+input membershipEventAggregateBoolExpCount {
+  arguments: [MembershipEventSelectColumn!]
+  distinct: Boolean
+  filter: MembershipEventBoolExp
+  predicate: IntComparisonExp!
+}
+
+"""
+aggregate fields of "membership_event"
+"""
+type MembershipEventAggregateFields {
+  avg: MembershipEventAvgFields
+  count(columns: [MembershipEventSelectColumn!], distinct: Boolean): Int!
+  max: MembershipEventMaxFields
+  min: MembershipEventMinFields
+  stddev: MembershipEventStddevFields
+  stddevPop: MembershipEventStddevPopFields
+  stddevSamp: MembershipEventStddevSampFields
+  sum: MembershipEventSumFields
+  varPop: MembershipEventVarPopFields
+  varSamp: MembershipEventVarSampFields
+  variance: MembershipEventVarianceFields
+}
+
+"""
+order by aggregate values of table "membership_event"
+"""
+input MembershipEventAggregateOrderBy {
+  avg: MembershipEventAvgOrderBy
+  count: OrderBy
+  max: MembershipEventMaxOrderBy
+  min: MembershipEventMinOrderBy
+  stddev: MembershipEventStddevOrderBy
+  stddevPop: MembershipEventStddevPopOrderBy
+  stddevSamp: MembershipEventStddevSampOrderBy
+  sum: MembershipEventSumOrderBy
+  varPop: MembershipEventVarPopOrderBy
+  varSamp: MembershipEventVarSampOrderBy
+  variance: MembershipEventVarianceOrderBy
+}
+
+"""aggregate avg on columns"""
+type MembershipEventAvgFields {
+  blockNumber: Float
+}
+
+"""
+order by avg() on columns of table "membership_event"
+"""
+input MembershipEventAvgOrderBy {
+  blockNumber: OrderBy
+}
+
+"""
+Boolean expression to filter rows from the table "membership_event". All fields are combined with a logical 'AND'.
+"""
+input MembershipEventBoolExp {
+  _and: [MembershipEventBoolExp!]
+  _not: MembershipEventBoolExp
+  _or: [MembershipEventBoolExp!]
+  blockNumber: IntComparisonExp
+  event: EventBoolExp
+  eventId: StringComparisonExp
+  eventType: EventTypeEnumComparisonExp
+  id: StringComparisonExp
+  identity: IdentityBoolExp
+  identityId: StringComparisonExp
+}
+
+"""
+A Relay connection object on "membership_event"
+"""
+type MembershipEventConnection {
+  edges: [MembershipEventEdge!]!
+  pageInfo: PageInfo!
+}
+
+type MembershipEventEdge {
+  cursor: String!
+  node: MembershipEvent!
+}
+
+"""aggregate max on columns"""
+type MembershipEventMaxFields {
+  blockNumber: Int
+  eventId: String
+  id: String
+  identityId: String
+}
+
+"""
+order by max() on columns of table "membership_event"
+"""
+input MembershipEventMaxOrderBy {
+  blockNumber: OrderBy
+  eventId: OrderBy
+  id: OrderBy
+  identityId: OrderBy
+}
+
+"""aggregate min on columns"""
+type MembershipEventMinFields {
+  blockNumber: Int
+  eventId: String
+  id: String
+  identityId: String
+}
+
+"""
+order by min() on columns of table "membership_event"
+"""
+input MembershipEventMinOrderBy {
+  blockNumber: OrderBy
+  eventId: OrderBy
+  id: OrderBy
+  identityId: OrderBy
+}
+
+"""Ordering options when selecting data from "membership_event"."""
+input MembershipEventOrderBy {
+  blockNumber: OrderBy
+  event: EventOrderBy
+  eventId: OrderBy
+  eventType: OrderBy
+  id: OrderBy
+  identity: IdentityOrderBy
+  identityId: OrderBy
+}
+
+"""
+select columns of table "membership_event"
+"""
+enum MembershipEventSelectColumn {
+  """column name"""
+  blockNumber
+
+  """column name"""
+  eventId
+
+  """column name"""
+  eventType
+
+  """column name"""
+  id
+
+  """column name"""
+  identityId
+}
+
+"""aggregate stddev on columns"""
+type MembershipEventStddevFields {
+  blockNumber: Float
+}
+
+"""
+order by stddev() on columns of table "membership_event"
+"""
+input MembershipEventStddevOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate stddevPop on columns"""
+type MembershipEventStddevPopFields {
+  blockNumber: Float
+}
+
+"""
+order by stddevPop() on columns of table "membership_event"
+"""
+input MembershipEventStddevPopOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate stddevSamp on columns"""
+type MembershipEventStddevSampFields {
+  blockNumber: Float
+}
+
+"""
+order by stddevSamp() on columns of table "membership_event"
+"""
+input MembershipEventStddevSampOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate sum on columns"""
+type MembershipEventSumFields {
+  blockNumber: Int
+}
+
+"""
+order by sum() on columns of table "membership_event"
+"""
+input MembershipEventSumOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate variance on columns"""
+type MembershipEventVarianceFields {
+  blockNumber: Float
+}
+
+"""
+order by variance() on columns of table "membership_event"
+"""
+input MembershipEventVarianceOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate varPop on columns"""
+type MembershipEventVarPopFields {
+  blockNumber: Float
+}
+
+"""
+order by varPop() on columns of table "membership_event"
+"""
+input MembershipEventVarPopOrderBy {
+  blockNumber: OrderBy
+}
+
+"""aggregate varSamp on columns"""
+type MembershipEventVarSampFields {
+  blockNumber: Float
+}
+
+"""
+order by varSamp() on columns of table "membership_event"
+"""
+input MembershipEventVarSampOrderBy {
+  blockNumber: OrderBy
+}
+
+"""An object with globally unique ID"""
+interface Node {
+  """A globally unique identifier"""
+  id: ID!
+}
+
+scalar numeric
+
+"""
+Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'.
+"""
+input NumericComparisonExp {
+  _eq: numeric
+  _gt: numeric
+  _gte: numeric
+  _in: [numeric!]
+  _isNull: Boolean
+  _lt: numeric
+  _lte: numeric
+  _neq: numeric
+  _nin: [numeric!]
+}
+
+"""column ordering options"""
+enum OrderBy {
+  """in ascending order, nulls last"""
+  ASC
+
+  """in ascending order, nulls first"""
+  ASC_NULLS_FIRST
+
+  """in ascending order, nulls last"""
+  ASC_NULLS_LAST
+
+  """in descending order, nulls first"""
+  DESC
+
+  """in descending order, nulls first"""
+  DESC_NULLS_FIRST
+
+  """in descending order, nulls last"""
+  DESC_NULLS_LAST
+}
+
+type PageInfo {
+  endCursor: String!
+  hasNextPage: Boolean!
+  hasPreviousPage: Boolean!
+  startCursor: String!
+}
+
+type query_root {
+  """
+  fetch data from the table: "account"
+  """
+  accountConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [AccountSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [AccountOrderBy!]
+
+    """filter the rows returned"""
+    where: AccountBoolExp
+  ): AccountConnection!
+
+  """
+  fetch data from the table: "block"
+  """
+  blockConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [BlockSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [BlockOrderBy!]
+
+    """filter the rows returned"""
+    where: BlockBoolExp
+  ): BlockConnection!
+
+  """
+  fetch data from the table: "call"
+  """
+  callConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [CallSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CallOrderBy!]
+
+    """filter the rows returned"""
+    where: CallBoolExp
+  ): CallConnection!
+
+  """
+  fetch data from the table: "cert"
+  """
+  certConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [CertSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CertOrderBy!]
+
+    """filter the rows returned"""
+    where: CertBoolExp
+  ): CertConnection!
+
+  """
+  fetch data from the table: "cert_event"
+  """
+  certEventConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [CertEventSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CertEventOrderBy!]
+
+    """filter the rows returned"""
+    where: CertEventBoolExp
+  ): CertEventConnection!
+
+  """
+  fetch data from the table: "change_owner_key"
+  """
+  changeOwnerKeyConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [ChangeOwnerKeySelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [ChangeOwnerKeyOrderBy!]
+
+    """filter the rows returned"""
+    where: ChangeOwnerKeyBoolExp
+  ): ChangeOwnerKeyConnection!
+
+  """
+  fetch data from the table: "event"
+  """
+  eventConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [EventSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [EventOrderBy!]
+
+    """filter the rows returned"""
+    where: EventBoolExp
+  ): EventConnection!
+
+  """
+  fetch data from the table: "extrinsic"
+  """
+  extrinsicConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [ExtrinsicSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [ExtrinsicOrderBy!]
+
+    """filter the rows returned"""
+    where: ExtrinsicBoolExp
+  ): ExtrinsicConnection!
+
+  """
+  execute function "get_ud_history" which returns "ud_history"
+  """
+  getUdHistory_connection(
+    after: String
+
+    """
+    input parameters for function "getUdHistory"
+    """
+    args: getUdHistoryArgs!
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [UdHistorySelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [UdHistoryOrderBy!]
+
+    """filter the rows returned"""
+    where: UdHistoryBoolExp
+  ): UdHistoryConnection!
+
+  """
+  fetch data from the table: "identity"
+  """
+  identityConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [IdentitySelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [IdentityOrderBy!]
+
+    """filter the rows returned"""
+    where: IdentityBoolExp
+  ): IdentityConnection!
+
+  """
+  fetch data from the table: "items_counter"
+  """
+  itemsCounterConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [ItemsCounterSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [ItemsCounterOrderBy!]
+
+    """filter the rows returned"""
+    where: ItemsCounterBoolExp
+  ): ItemsCounterConnection!
+
+  """
+  fetch data from the table: "membership_event"
+  """
+  membershipEventConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [MembershipEventSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [MembershipEventOrderBy!]
+
+    """filter the rows returned"""
+    where: MembershipEventBoolExp
+  ): MembershipEventConnection!
+  node(
+    """A globally unique id"""
+    id: ID!
+  ): Node
+
+  """
+  fetch data from the table: "smith_cert"
+  """
+  smithCertConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [SmithCertSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [SmithCertOrderBy!]
+
+    """filter the rows returned"""
+    where: SmithCertBoolExp
+  ): SmithCertConnection!
+
+  """
+  fetch data from the table: "transfer"
+  """
+  transferConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [TransferSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [TransferOrderBy!]
+
+    """filter the rows returned"""
+    where: TransferBoolExp
+  ): TransferConnection!
+
+  """
+  fetch data from the table: "ud_history"
+  """
+  udHistoryConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [UdHistorySelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [UdHistoryOrderBy!]
+
+    """filter the rows returned"""
+    where: UdHistoryBoolExp
+  ): UdHistoryConnection!
+
+  """
+  fetch data from the table: "ud_reeval"
+  """
+  udReevalConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [UdReevalSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [UdReevalOrderBy!]
+
+    """filter the rows returned"""
+    where: UdReevalBoolExp
+  ): UdReevalConnection!
+
+  """
+  fetch data from the table: "universal_dividend"
+  """
+  universalDividendConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [UniversalDividendSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [UniversalDividendOrderBy!]
+
+    """filter the rows returned"""
+    where: UniversalDividendBoolExp
+  ): UniversalDividendConnection!
+}
+
+"""
+columns and relationships of "smith_cert"
+"""
+type SmithCert implements Node {
+  createdOn: Int!
+  id: ID!
+
+  """An object relationship"""
+  issuer: Identity
+  issuerId: String
+
+  """An object relationship"""
+  receiver: Identity
+  receiverId: String
+}
+
+"""
+aggregated selection of "smith_cert"
+"""
+type SmithCertAggregate {
+  aggregate: SmithCertAggregateFields
+  nodes: [SmithCert!]!
+}
+
+input SmithCertAggregateBoolExp {
+  count: smithCertAggregateBoolExpCount
+}
+
+input smithCertAggregateBoolExpCount {
+  arguments: [SmithCertSelectColumn!]
+  distinct: Boolean
+  filter: SmithCertBoolExp
+  predicate: IntComparisonExp!
+}
+
+"""
+aggregate fields of "smith_cert"
+"""
+type SmithCertAggregateFields {
+  avg: SmithCertAvgFields
+  count(columns: [SmithCertSelectColumn!], distinct: Boolean): Int!
+  max: SmithCertMaxFields
+  min: SmithCertMinFields
+  stddev: SmithCertStddevFields
+  stddevPop: SmithCertStddevPopFields
+  stddevSamp: SmithCertStddevSampFields
+  sum: SmithCertSumFields
+  varPop: SmithCertVarPopFields
+  varSamp: SmithCertVarSampFields
+  variance: SmithCertVarianceFields
+}
+
+"""
+order by aggregate values of table "smith_cert"
+"""
+input SmithCertAggregateOrderBy {
+  avg: SmithCertAvgOrderBy
+  count: OrderBy
+  max: SmithCertMaxOrderBy
+  min: SmithCertMinOrderBy
+  stddev: SmithCertStddevOrderBy
+  stddevPop: SmithCertStddevPopOrderBy
+  stddevSamp: SmithCertStddevSampOrderBy
+  sum: SmithCertSumOrderBy
+  varPop: SmithCertVarPopOrderBy
+  varSamp: SmithCertVarSampOrderBy
+  variance: SmithCertVarianceOrderBy
+}
+
+"""aggregate avg on columns"""
+type SmithCertAvgFields {
+  createdOn: Float
+}
+
+"""
+order by avg() on columns of table "smith_cert"
+"""
+input SmithCertAvgOrderBy {
+  createdOn: OrderBy
+}
+
+"""
+Boolean expression to filter rows from the table "smith_cert". All fields are combined with a logical 'AND'.
+"""
+input SmithCertBoolExp {
+  _and: [SmithCertBoolExp!]
+  _not: SmithCertBoolExp
+  _or: [SmithCertBoolExp!]
+  createdOn: IntComparisonExp
+  id: StringComparisonExp
+  issuer: IdentityBoolExp
+  issuerId: StringComparisonExp
+  receiver: IdentityBoolExp
+  receiverId: StringComparisonExp
+}
+
+"""
+A Relay connection object on "smith_cert"
+"""
+type SmithCertConnection {
+  edges: [SmithCertEdge!]!
+  pageInfo: PageInfo!
+}
+
+type SmithCertEdge {
+  cursor: String!
+  node: SmithCert!
+}
+
+"""aggregate max on columns"""
+type SmithCertMaxFields {
+  createdOn: Int
+  id: String
+  issuerId: String
+  receiverId: String
+}
+
+"""
+order by max() on columns of table "smith_cert"
+"""
+input SmithCertMaxOrderBy {
+  createdOn: OrderBy
+  id: OrderBy
+  issuerId: OrderBy
+  receiverId: OrderBy
+}
+
+"""aggregate min on columns"""
+type SmithCertMinFields {
+  createdOn: Int
+  id: String
+  issuerId: String
+  receiverId: String
+}
+
+"""
+order by min() on columns of table "smith_cert"
+"""
+input SmithCertMinOrderBy {
+  createdOn: OrderBy
+  id: OrderBy
+  issuerId: OrderBy
+  receiverId: OrderBy
+}
+
+"""Ordering options when selecting data from "smith_cert"."""
+input SmithCertOrderBy {
+  createdOn: OrderBy
+  id: OrderBy
+  issuer: IdentityOrderBy
+  issuerId: OrderBy
+  receiver: IdentityOrderBy
+  receiverId: OrderBy
+}
+
+"""
+select columns of table "smith_cert"
+"""
+enum SmithCertSelectColumn {
+  """column name"""
+  createdOn
+
+  """column name"""
+  id
+
+  """column name"""
+  issuerId
+
+  """column name"""
+  receiverId
+}
+
+"""aggregate stddev on columns"""
+type SmithCertStddevFields {
+  createdOn: Float
+}
+
+"""
+order by stddev() on columns of table "smith_cert"
+"""
+input SmithCertStddevOrderBy {
+  createdOn: OrderBy
+}
+
+"""aggregate stddevPop on columns"""
+type SmithCertStddevPopFields {
+  createdOn: Float
+}
+
+"""
+order by stddevPop() on columns of table "smith_cert"
+"""
+input SmithCertStddevPopOrderBy {
+  createdOn: OrderBy
+}
+
+"""aggregate stddevSamp on columns"""
+type SmithCertStddevSampFields {
+  createdOn: Float
+}
+
+"""
+order by stddevSamp() on columns of table "smith_cert"
+"""
+input SmithCertStddevSampOrderBy {
+  createdOn: OrderBy
+}
+
+"""aggregate sum on columns"""
+type SmithCertSumFields {
+  createdOn: Int
+}
+
+"""
+order by sum() on columns of table "smith_cert"
+"""
+input SmithCertSumOrderBy {
+  createdOn: OrderBy
+}
+
+"""aggregate variance on columns"""
+type SmithCertVarianceFields {
+  createdOn: Float
+}
+
+"""
+order by variance() on columns of table "smith_cert"
+"""
+input SmithCertVarianceOrderBy {
+  createdOn: OrderBy
+}
+
+"""aggregate varPop on columns"""
+type SmithCertVarPopFields {
+  createdOn: Float
+}
+
+"""
+order by varPop() on columns of table "smith_cert"
+"""
+input SmithCertVarPopOrderBy {
+  createdOn: OrderBy
+}
+
+"""aggregate varSamp on columns"""
+type SmithCertVarSampFields {
+  createdOn: Float
+}
+
+"""
+order by varSamp() on columns of table "smith_cert"
+"""
+input SmithCertVarSampOrderBy {
+  createdOn: OrderBy
+}
+
+enum SmithStatusEnum {
+  EXCLUDED
+  INVITED
+  PENDING
+  SMITH
+}
+
+"""
+Boolean expression to compare columns of type "SmithStatusEnum". All fields are combined with logical 'AND'.
+"""
+input SmithStatusEnumComparisonExp {
+  _eq: SmithStatusEnum
+  _in: [SmithStatusEnum!]
+  _isNull: Boolean
+  _neq: SmithStatusEnum
+  _nin: [SmithStatusEnum!]
+}
+
+"""
+Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'.
+"""
+input StringArrayComparisonExp {
+  """is the array contained in the given array value"""
+  _containedIn: [String!]
+
+  """does the array contain the given value"""
+  _contains: [String!]
+  _eq: [String!]
+  _gt: [String!]
+  _gte: [String!]
+  _in: [[String!]!]
+  _isNull: Boolean
+  _lt: [String!]
+  _lte: [String!]
+  _neq: [String!]
+  _nin: [[String!]!]
+}
+
+"""
+Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'.
+"""
+input StringComparisonExp {
+  _eq: String
+  _gt: String
+  _gte: String
+
+  """does the column match the given case-insensitive pattern"""
+  _ilike: String
+  _in: [String!]
+
+  """
+  does the column match the given POSIX regular expression, case insensitive
+  """
+  _iregex: String
+  _isNull: Boolean
+
+  """does the column match the given pattern"""
+  _like: String
+  _lt: String
+  _lte: String
+  _neq: String
+
+  """does the column NOT match the given case-insensitive pattern"""
+  _nilike: String
+  _nin: [String!]
+
+  """
+  does the column NOT match the given POSIX regular expression, case insensitive
+  """
+  _niregex: String
+
+  """does the column NOT match the given pattern"""
+  _nlike: String
+
+  """
+  does the column NOT match the given POSIX regular expression, case sensitive
+  """
+  _nregex: String
+
+  """does the column NOT match the given SQL regular expression"""
+  _nsimilar: String
+
+  """
+  does the column match the given POSIX regular expression, case sensitive
+  """
+  _regex: String
+
+  """does the column match the given SQL regular expression"""
+  _similar: String
+}
+
+type subscription_root {
+  """
+  fetch data from the table: "account"
+  """
+  accountConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [AccountSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [AccountOrderBy!]
+
+    """filter the rows returned"""
+    where: AccountBoolExp
+  ): AccountConnection!
+
+  """
+  fetch data from the table: "block"
+  """
+  blockConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [BlockSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [BlockOrderBy!]
+
+    """filter the rows returned"""
+    where: BlockBoolExp
+  ): BlockConnection!
+
+  """
+  fetch data from the table: "call"
+  """
+  callConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [CallSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CallOrderBy!]
+
+    """filter the rows returned"""
+    where: CallBoolExp
+  ): CallConnection!
+
+  """
+  fetch data from the table: "cert"
+  """
+  certConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [CertSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CertOrderBy!]
+
+    """filter the rows returned"""
+    where: CertBoolExp
+  ): CertConnection!
+
+  """
+  fetch data from the table: "cert_event"
+  """
+  certEventConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [CertEventSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [CertEventOrderBy!]
+
+    """filter the rows returned"""
+    where: CertEventBoolExp
+  ): CertEventConnection!
+
+  """
+  fetch data from the table: "change_owner_key"
+  """
+  changeOwnerKeyConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [ChangeOwnerKeySelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [ChangeOwnerKeyOrderBy!]
+
+    """filter the rows returned"""
+    where: ChangeOwnerKeyBoolExp
+  ): ChangeOwnerKeyConnection!
+
+  """
+  fetch data from the table: "event"
+  """
+  eventConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [EventSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [EventOrderBy!]
+
+    """filter the rows returned"""
+    where: EventBoolExp
+  ): EventConnection!
+
+  """
+  fetch data from the table: "extrinsic"
+  """
+  extrinsicConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [ExtrinsicSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [ExtrinsicOrderBy!]
+
+    """filter the rows returned"""
+    where: ExtrinsicBoolExp
+  ): ExtrinsicConnection!
+
+  """
+  execute function "get_ud_history" which returns "ud_history"
+  """
+  getUdHistory_connection(
+    after: String
+
+    """
+    input parameters for function "getUdHistory"
+    """
+    args: getUdHistoryArgs!
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [UdHistorySelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [UdHistoryOrderBy!]
+
+    """filter the rows returned"""
+    where: UdHistoryBoolExp
+  ): UdHistoryConnection!
+
+  """
+  fetch data from the table: "identity"
+  """
+  identityConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [IdentitySelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [IdentityOrderBy!]
+
+    """filter the rows returned"""
+    where: IdentityBoolExp
+  ): IdentityConnection!
+
+  """
+  fetch data from the table: "items_counter"
+  """
+  itemsCounterConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [ItemsCounterSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [ItemsCounterOrderBy!]
+
+    """filter the rows returned"""
+    where: ItemsCounterBoolExp
+  ): ItemsCounterConnection!
+
+  """
+  fetch data from the table: "membership_event"
+  """
+  membershipEventConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [MembershipEventSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [MembershipEventOrderBy!]
+
+    """filter the rows returned"""
+    where: MembershipEventBoolExp
+  ): MembershipEventConnection!
+  node(
+    """A globally unique id"""
+    id: ID!
+  ): Node
+
+  """
+  fetch data from the table: "smith_cert"
+  """
+  smithCertConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [SmithCertSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [SmithCertOrderBy!]
+
+    """filter the rows returned"""
+    where: SmithCertBoolExp
+  ): SmithCertConnection!
+
+  """
+  fetch data from the table: "transfer"
+  """
+  transferConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [TransferSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [TransferOrderBy!]
+
+    """filter the rows returned"""
+    where: TransferBoolExp
+  ): TransferConnection!
+
+  """
+  fetch data from the table: "ud_history"
+  """
+  udHistoryConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [UdHistorySelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [UdHistoryOrderBy!]
+
+    """filter the rows returned"""
+    where: UdHistoryBoolExp
+  ): UdHistoryConnection!
+
+  """
+  fetch data from the table: "ud_reeval"
+  """
+  udReevalConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [UdReevalSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [UdReevalOrderBy!]
+
+    """filter the rows returned"""
+    where: UdReevalBoolExp
+  ): UdReevalConnection!
+
+  """
+  fetch data from the table: "universal_dividend"
+  """
+  universalDividendConnection(
+    after: String
+    before: String
+
+    """distinct select on columns"""
+    distinctOn: [UniversalDividendSelectColumn!]
+    first: Int
+    last: Int
+
+    """sort the rows by one or more columns"""
+    orderBy: [UniversalDividendOrderBy!]
+
+    """filter the rows returned"""
+    where: UniversalDividendBoolExp
+  ): UniversalDividendConnection!
+}
+
+scalar timestamptz
+
+"""
+Boolean expression to compare columns of type "timestamptz". All fields are combined with logical 'AND'.
+"""
+input TimestamptzComparisonExp {
+  _eq: timestamptz
+  _gt: timestamptz
+  _gte: timestamptz
+  _in: [timestamptz!]
+  _isNull: Boolean
+  _lt: timestamptz
+  _lte: timestamptz
+  _neq: timestamptz
+  _nin: [timestamptz!]
+}
+
+"""
+columns and relationships of "transfer"
+"""
+type Transfer implements Node {
+  amount: numeric!
+  blockNumber: Int!
+  comment: String
+
+  """An object relationship"""
+  from: Account
+  fromId: String
+  id: ID!
+  timestamp: timestamptz!
+
+  """An object relationship"""
+  to: Account
+  toId: String
+}
+
+"""
+aggregated selection of "transfer"
+"""
+type TransferAggregate {
+  aggregate: TransferAggregateFields
+  nodes: [Transfer!]!
+}
+
+input TransferAggregateBoolExp {
+  count: transferAggregateBoolExpCount
+}
+
+input transferAggregateBoolExpCount {
+  arguments: [TransferSelectColumn!]
+  distinct: Boolean
+  filter: TransferBoolExp
+  predicate: IntComparisonExp!
+}
+
+"""
+aggregate fields of "transfer"
+"""
+type TransferAggregateFields {
+  avg: TransferAvgFields
+  count(columns: [TransferSelectColumn!], distinct: Boolean): Int!
+  max: TransferMaxFields
+  min: TransferMinFields
+  stddev: TransferStddevFields
+  stddevPop: TransferStddevPopFields
+  stddevSamp: TransferStddevSampFields
+  sum: TransferSumFields
+  varPop: TransferVarPopFields
+  varSamp: TransferVarSampFields
+  variance: TransferVarianceFields
+}
+
+"""
+order by aggregate values of table "transfer"
+"""
+input TransferAggregateOrderBy {
+  avg: TransferAvgOrderBy
+  count: OrderBy
+  max: TransferMaxOrderBy
+  min: TransferMinOrderBy
+  stddev: TransferStddevOrderBy
+  stddevPop: TransferStddevPopOrderBy
+  stddevSamp: TransferStddevSampOrderBy
+  sum: TransferSumOrderBy
+  varPop: TransferVarPopOrderBy
+  varSamp: TransferVarSampOrderBy
+  variance: TransferVarianceOrderBy
+}
+
+"""aggregate avg on columns"""
+type TransferAvgFields {
+  amount: Float
+  blockNumber: Float
+}
+
+"""
+order by avg() on columns of table "transfer"
+"""
+input TransferAvgOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""
+Boolean expression to filter rows from the table "transfer". All fields are combined with a logical 'AND'.
+"""
+input TransferBoolExp {
+  _and: [TransferBoolExp!]
+  _not: TransferBoolExp
+  _or: [TransferBoolExp!]
+  amount: NumericComparisonExp
+  blockNumber: IntComparisonExp
+  comment: StringComparisonExp
+  from: AccountBoolExp
+  fromId: StringComparisonExp
+  id: StringComparisonExp
+  timestamp: TimestamptzComparisonExp
+  to: AccountBoolExp
+  toId: StringComparisonExp
+}
+
+"""
+A Relay connection object on "transfer"
+"""
+type TransferConnection {
+  edges: [TransferEdge!]!
+  pageInfo: PageInfo!
+}
+
+type TransferEdge {
+  cursor: String!
+  node: Transfer!
+}
+
+"""aggregate max on columns"""
+type TransferMaxFields {
+  amount: numeric
+  blockNumber: Int
+  comment: String
+  fromId: String
+  id: String
+  timestamp: timestamptz
+  toId: String
+}
+
+"""
+order by max() on columns of table "transfer"
+"""
+input TransferMaxOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+  comment: OrderBy
+  fromId: OrderBy
+  id: OrderBy
+  timestamp: OrderBy
+  toId: OrderBy
+}
+
+"""aggregate min on columns"""
+type TransferMinFields {
+  amount: numeric
+  blockNumber: Int
+  comment: String
+  fromId: String
+  id: String
+  timestamp: timestamptz
+  toId: String
+}
+
+"""
+order by min() on columns of table "transfer"
+"""
+input TransferMinOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+  comment: OrderBy
+  fromId: OrderBy
+  id: OrderBy
+  timestamp: OrderBy
+  toId: OrderBy
+}
+
+"""Ordering options when selecting data from "transfer"."""
+input TransferOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+  comment: OrderBy
+  from: AccountOrderBy
+  fromId: OrderBy
+  id: OrderBy
+  timestamp: OrderBy
+  to: AccountOrderBy
+  toId: OrderBy
+}
+
+"""
+select columns of table "transfer"
+"""
+enum TransferSelectColumn {
+  """column name"""
+  amount
+
+  """column name"""
+  blockNumber
+
+  """column name"""
+  comment
+
+  """column name"""
+  fromId
+
+  """column name"""
+  id
+
+  """column name"""
+  timestamp
+
+  """column name"""
+  toId
+}
+
+"""aggregate stddev on columns"""
+type TransferStddevFields {
+  amount: Float
+  blockNumber: Float
+}
+
+"""
+order by stddev() on columns of table "transfer"
+"""
+input TransferStddevOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""aggregate stddevPop on columns"""
+type TransferStddevPopFields {
+  amount: Float
+  blockNumber: Float
+}
+
+"""
+order by stddevPop() on columns of table "transfer"
+"""
+input TransferStddevPopOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""aggregate stddevSamp on columns"""
+type TransferStddevSampFields {
+  amount: Float
+  blockNumber: Float
+}
+
+"""
+order by stddevSamp() on columns of table "transfer"
+"""
+input TransferStddevSampOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""aggregate sum on columns"""
+type TransferSumFields {
+  amount: numeric
+  blockNumber: Int
+}
+
+"""
+order by sum() on columns of table "transfer"
+"""
+input TransferSumOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""aggregate variance on columns"""
+type TransferVarianceFields {
+  amount: Float
+  blockNumber: Float
+}
+
+"""
+order by variance() on columns of table "transfer"
+"""
+input TransferVarianceOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""aggregate varPop on columns"""
+type TransferVarPopFields {
+  amount: Float
+  blockNumber: Float
+}
+
+"""
+order by varPop() on columns of table "transfer"
+"""
+input TransferVarPopOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""aggregate varSamp on columns"""
+type TransferVarSampFields {
+  amount: Float
+  blockNumber: Float
+}
+
+"""
+order by varSamp() on columns of table "transfer"
+"""
+input TransferVarSampOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""
+columns and relationships of "ud_history"
+"""
+type UdHistory implements Node {
+  amount: Int!
+  blockNumber: Int!
+  id: ID!
+
+  """An object relationship"""
+  identity: Identity
+  identityId: String
+  timestamp: timestamptz!
+}
+
+"""
+order by aggregate values of table "ud_history"
+"""
+input UdHistoryAggregateOrderBy {
+  avg: UdHistoryAvgOrderBy
+  count: OrderBy
+  max: UdHistoryMaxOrderBy
+  min: UdHistoryMinOrderBy
+  stddev: UdHistoryStddevOrderBy
+  stddevPop: UdHistoryStddevPopOrderBy
+  stddevSamp: UdHistoryStddevSampOrderBy
+  sum: UdHistorySumOrderBy
+  varPop: UdHistoryVarPopOrderBy
+  varSamp: UdHistoryVarSampOrderBy
+  variance: UdHistoryVarianceOrderBy
+}
+
+"""
+order by avg() on columns of table "ud_history"
+"""
+input UdHistoryAvgOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""
+Boolean expression to filter rows from the table "ud_history". All fields are combined with a logical 'AND'.
+"""
+input UdHistoryBoolExp {
+  _and: [UdHistoryBoolExp!]
+  _not: UdHistoryBoolExp
+  _or: [UdHistoryBoolExp!]
+  amount: IntComparisonExp
+  blockNumber: IntComparisonExp
+  id: StringComparisonExp
+  identity: IdentityBoolExp
+  identityId: StringComparisonExp
+  timestamp: TimestamptzComparisonExp
+}
+
+"""
+A Relay connection object on "ud_history"
+"""
+type UdHistoryConnection {
+  edges: [UdHistoryEdge!]!
+  pageInfo: PageInfo!
+}
+
+type UdHistoryEdge {
+  cursor: String!
+  node: UdHistory!
+}
+
+"""
+order by max() on columns of table "ud_history"
+"""
+input UdHistoryMaxOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+  id: OrderBy
+  identityId: OrderBy
+  timestamp: OrderBy
+}
+
+"""
+order by min() on columns of table "ud_history"
+"""
+input UdHistoryMinOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+  id: OrderBy
+  identityId: OrderBy
+  timestamp: OrderBy
+}
+
+"""Ordering options when selecting data from "ud_history"."""
+input UdHistoryOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+  id: OrderBy
+  identity: IdentityOrderBy
+  identityId: OrderBy
+  timestamp: OrderBy
+}
+
+"""
+select columns of table "ud_history"
+"""
+enum UdHistorySelectColumn {
+  """column name"""
+  amount
+
+  """column name"""
+  blockNumber
+
+  """column name"""
+  id
+
+  """column name"""
+  identityId
+
+  """column name"""
+  timestamp
+}
+
+"""
+order by stddev() on columns of table "ud_history"
+"""
+input UdHistoryStddevOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""
+order by stddevPop() on columns of table "ud_history"
+"""
+input UdHistoryStddevPopOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""
+order by stddevSamp() on columns of table "ud_history"
+"""
+input UdHistoryStddevSampOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""
+order by sum() on columns of table "ud_history"
+"""
+input UdHistorySumOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""
+order by variance() on columns of table "ud_history"
+"""
+input UdHistoryVarianceOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""
+order by varPop() on columns of table "ud_history"
+"""
+input UdHistoryVarPopOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""
+order by varSamp() on columns of table "ud_history"
+"""
+input UdHistoryVarSampOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+}
+
+"""
+columns and relationships of "ud_reeval"
+"""
+type UdReeval implements Node {
+  blockNumber: Int!
+
+  """An object relationship"""
+  event: Event
+  eventId: String
+  id: ID!
+  membersCount: Int!
+  monetaryMass: numeric!
+  newUdAmount: Int!
+  timestamp: timestamptz!
+}
+
+"""
+Boolean expression to filter rows from the table "ud_reeval". All fields are combined with a logical 'AND'.
+"""
+input UdReevalBoolExp {
+  _and: [UdReevalBoolExp!]
+  _not: UdReevalBoolExp
+  _or: [UdReevalBoolExp!]
+  blockNumber: IntComparisonExp
+  event: EventBoolExp
+  eventId: StringComparisonExp
+  id: StringComparisonExp
+  membersCount: IntComparisonExp
+  monetaryMass: NumericComparisonExp
+  newUdAmount: IntComparisonExp
+  timestamp: TimestamptzComparisonExp
+}
+
+"""
+A Relay connection object on "ud_reeval"
+"""
+type UdReevalConnection {
+  edges: [UdReevalEdge!]!
+  pageInfo: PageInfo!
+}
+
+type UdReevalEdge {
+  cursor: String!
+  node: UdReeval!
+}
+
+"""Ordering options when selecting data from "ud_reeval"."""
+input UdReevalOrderBy {
+  blockNumber: OrderBy
+  event: EventOrderBy
+  eventId: OrderBy
+  id: OrderBy
+  membersCount: OrderBy
+  monetaryMass: OrderBy
+  newUdAmount: OrderBy
+  timestamp: OrderBy
+}
+
+"""
+select columns of table "ud_reeval"
+"""
+enum UdReevalSelectColumn {
+  """column name"""
+  blockNumber
+
+  """column name"""
+  eventId
+
+  """column name"""
+  id
+
+  """column name"""
+  membersCount
+
+  """column name"""
+  monetaryMass
+
+  """column name"""
+  newUdAmount
+
+  """column name"""
+  timestamp
+}
+
+"""
+columns and relationships of "universal_dividend"
+"""
+type UniversalDividend implements Node {
+  amount: Int!
+  blockNumber: Int!
+
+  """An object relationship"""
+  event: Event
+  eventId: String
+  id: ID!
+  membersCount: Int!
+  monetaryMass: numeric!
+  timestamp: timestamptz!
+}
+
+"""
+Boolean expression to filter rows from the table "universal_dividend". All fields are combined with a logical 'AND'.
+"""
+input UniversalDividendBoolExp {
+  _and: [UniversalDividendBoolExp!]
+  _not: UniversalDividendBoolExp
+  _or: [UniversalDividendBoolExp!]
+  amount: IntComparisonExp
+  blockNumber: IntComparisonExp
+  event: EventBoolExp
+  eventId: StringComparisonExp
+  id: StringComparisonExp
+  membersCount: IntComparisonExp
+  monetaryMass: NumericComparisonExp
+  timestamp: TimestamptzComparisonExp
+}
+
+"""
+A Relay connection object on "universal_dividend"
+"""
+type UniversalDividendConnection {
+  edges: [UniversalDividendEdge!]!
+  pageInfo: PageInfo!
+}
+
+type UniversalDividendEdge {
+  cursor: String!
+  node: UniversalDividend!
+}
+
+"""Ordering options when selecting data from "universal_dividend"."""
+input UniversalDividendOrderBy {
+  amount: OrderBy
+  blockNumber: OrderBy
+  event: EventOrderBy
+  eventId: OrderBy
+  id: OrderBy
+  membersCount: OrderBy
+  monetaryMass: OrderBy
+  timestamp: OrderBy
+}
+
+"""
+select columns of table "universal_dividend"
+"""
+enum UniversalDividendSelectColumn {
+  """column name"""
+  amount
+
+  """column name"""
+  blockNumber
+
+  """column name"""
+  eventId
+
+  """column name"""
+  id
+
+  """column name"""
+  membersCount
+
+  """column name"""
+  monetaryMass
+
+  """column name"""
+  timestamp
+}
+
diff --git a/lib/src/models/graphql/schema.graphql.dart b/lib/src/models/graphql/schema.graphql.dart
new file mode 100644
index 0000000000000000000000000000000000000000..990f36068041e827dbfe4fcda0e46ebba7727676
--- /dev/null
+++ b/lib/src/models/graphql/schema.graphql.dart
@@ -0,0 +1,51152 @@
+import "dart:typed_data";
+class Input$AccountAggregateBoolExp {
+  factory Input$AccountAggregateBoolExp(
+          {Input$accountAggregateBoolExpCount? count}) =>
+      Input$AccountAggregateBoolExp._({
+        if (count != null) r'count': count,
+      });
+
+  Input$AccountAggregateBoolExp._(this._$data);
+
+  factory Input$AccountAggregateBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] = l$count == null
+          ? null
+          : Input$accountAggregateBoolExpCount.fromJson(
+              (l$count as Map<String, dynamic>));
+    }
+    return Input$AccountAggregateBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$accountAggregateBoolExpCount? get count =>
+      (_$data['count'] as Input$accountAggregateBoolExpCount?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] = l$count?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$AccountAggregateBoolExp<Input$AccountAggregateBoolExp>
+      get copyWith => CopyWith$Input$AccountAggregateBoolExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$AccountAggregateBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$count = count;
+    return Object.hashAll([_$data.containsKey('count') ? l$count : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$AccountAggregateBoolExp<TRes> {
+  factory CopyWith$Input$AccountAggregateBoolExp(
+    Input$AccountAggregateBoolExp instance,
+    TRes Function(Input$AccountAggregateBoolExp) then,
+  ) = _CopyWithImpl$Input$AccountAggregateBoolExp;
+
+  factory CopyWith$Input$AccountAggregateBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$AccountAggregateBoolExp;
+
+  TRes call({Input$accountAggregateBoolExpCount? count});
+  CopyWith$Input$accountAggregateBoolExpCount<TRes> get count;
+}
+
+class _CopyWithImpl$Input$AccountAggregateBoolExp<TRes>
+    implements CopyWith$Input$AccountAggregateBoolExp<TRes> {
+  _CopyWithImpl$Input$AccountAggregateBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$AccountAggregateBoolExp _instance;
+
+  final TRes Function(Input$AccountAggregateBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? count = _undefined}) =>
+      _then(Input$AccountAggregateBoolExp._({
+        ..._instance._$data,
+        if (count != _undefined)
+          'count': (count as Input$accountAggregateBoolExpCount?),
+      }));
+
+  CopyWith$Input$accountAggregateBoolExpCount<TRes> get count {
+    final local$count = _instance.count;
+    return local$count == null
+        ? CopyWith$Input$accountAggregateBoolExpCount.stub(_then(_instance))
+        : CopyWith$Input$accountAggregateBoolExpCount(
+            local$count, (e) => call(count: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$AccountAggregateBoolExp<TRes>
+    implements CopyWith$Input$AccountAggregateBoolExp<TRes> {
+  _CopyWithStubImpl$Input$AccountAggregateBoolExp(this._res);
+
+  TRes _res;
+
+  call({Input$accountAggregateBoolExpCount? count}) => _res;
+
+  CopyWith$Input$accountAggregateBoolExpCount<TRes> get count =>
+      CopyWith$Input$accountAggregateBoolExpCount.stub(_res);
+}
+
+class Input$accountAggregateBoolExpCount {
+  factory Input$accountAggregateBoolExpCount({
+    List<Enum$AccountSelectColumn>? arguments,
+    bool? distinct,
+    Input$AccountBoolExp? filter,
+    required Input$IntComparisonExp predicate,
+  }) =>
+      Input$accountAggregateBoolExpCount._({
+        if (arguments != null) r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$accountAggregateBoolExpCount._(this._$data);
+
+  factory Input$accountAggregateBoolExpCount.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('arguments')) {
+      final l$arguments = data['arguments'];
+      result$data['arguments'] = (l$arguments as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$AccountSelectColumn((e as String)))
+          .toList();
+    }
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$AccountBoolExp.fromJson((l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] =
+        Input$IntComparisonExp.fromJson((l$predicate as Map<String, dynamic>));
+    return Input$accountAggregateBoolExpCount._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Enum$AccountSelectColumn>? get arguments =>
+      (_$data['arguments'] as List<Enum$AccountSelectColumn>?);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$AccountBoolExp? get filter =>
+      (_$data['filter'] as Input$AccountBoolExp?);
+
+  Input$IntComparisonExp get predicate =>
+      (_$data['predicate'] as Input$IntComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('arguments')) {
+      final l$arguments = arguments;
+      result$data['arguments'] =
+          l$arguments?.map((e) => toJson$Enum$AccountSelectColumn(e)).toList();
+    }
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$accountAggregateBoolExpCount<
+          Input$accountAggregateBoolExpCount>
+      get copyWith => CopyWith$Input$accountAggregateBoolExpCount(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$accountAggregateBoolExpCount) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (_$data.containsKey('arguments') !=
+        other._$data.containsKey('arguments')) {
+      return false;
+    }
+    if (l$arguments != null && lOther$arguments != null) {
+      if (l$arguments.length != lOther$arguments.length) {
+        return false;
+      }
+      for (int i = 0; i < l$arguments.length; i++) {
+        final l$arguments$entry = l$arguments[i];
+        final lOther$arguments$entry = lOther$arguments[i];
+        if (l$arguments$entry != lOther$arguments$entry) {
+          return false;
+        }
+      }
+    } else if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      _$data.containsKey('arguments')
+          ? l$arguments == null
+              ? null
+              : Object.hashAll(l$arguments.map((v) => v))
+          : const {},
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$accountAggregateBoolExpCount<TRes> {
+  factory CopyWith$Input$accountAggregateBoolExpCount(
+    Input$accountAggregateBoolExpCount instance,
+    TRes Function(Input$accountAggregateBoolExpCount) then,
+  ) = _CopyWithImpl$Input$accountAggregateBoolExpCount;
+
+  factory CopyWith$Input$accountAggregateBoolExpCount.stub(TRes res) =
+      _CopyWithStubImpl$Input$accountAggregateBoolExpCount;
+
+  TRes call({
+    List<Enum$AccountSelectColumn>? arguments,
+    bool? distinct,
+    Input$AccountBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  });
+  CopyWith$Input$AccountBoolExp<TRes> get filter;
+  CopyWith$Input$IntComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$accountAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$accountAggregateBoolExpCount<TRes> {
+  _CopyWithImpl$Input$accountAggregateBoolExpCount(
+    this._instance,
+    this._then,
+  );
+
+  final Input$accountAggregateBoolExpCount _instance;
+
+  final TRes Function(Input$accountAggregateBoolExpCount) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$accountAggregateBoolExpCount._({
+        ..._instance._$data,
+        if (arguments != _undefined)
+          'arguments': (arguments as List<Enum$AccountSelectColumn>?),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined) 'filter': (filter as Input$AccountBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$IntComparisonExp),
+      }));
+
+  CopyWith$Input$AccountBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$AccountBoolExp.stub(_then(_instance))
+        : CopyWith$Input$AccountBoolExp(local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$IntComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$accountAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$accountAggregateBoolExpCount<TRes> {
+  _CopyWithStubImpl$Input$accountAggregateBoolExpCount(this._res);
+
+  TRes _res;
+
+  call({
+    List<Enum$AccountSelectColumn>? arguments,
+    bool? distinct,
+    Input$AccountBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$AccountBoolExp<TRes> get filter =>
+      CopyWith$Input$AccountBoolExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+}
+
+class Input$AccountAggregateOrderBy {
+  factory Input$AccountAggregateOrderBy({
+    Enum$OrderBy? count,
+    Input$AccountMaxOrderBy? max,
+    Input$AccountMinOrderBy? min,
+  }) =>
+      Input$AccountAggregateOrderBy._({
+        if (count != null) r'count': count,
+        if (max != null) r'max': max,
+        if (min != null) r'min': min,
+      });
+
+  Input$AccountAggregateOrderBy._(this._$data);
+
+  factory Input$AccountAggregateOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] =
+          l$count == null ? null : fromJson$Enum$OrderBy((l$count as String));
+    }
+    if (data.containsKey('max')) {
+      final l$max = data['max'];
+      result$data['max'] = l$max == null
+          ? null
+          : Input$AccountMaxOrderBy.fromJson((l$max as Map<String, dynamic>));
+    }
+    if (data.containsKey('min')) {
+      final l$min = data['min'];
+      result$data['min'] = l$min == null
+          ? null
+          : Input$AccountMinOrderBy.fromJson((l$min as Map<String, dynamic>));
+    }
+    return Input$AccountAggregateOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get count => (_$data['count'] as Enum$OrderBy?);
+
+  Input$AccountMaxOrderBy? get max =>
+      (_$data['max'] as Input$AccountMaxOrderBy?);
+
+  Input$AccountMinOrderBy? get min =>
+      (_$data['min'] as Input$AccountMinOrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] =
+          l$count == null ? null : toJson$Enum$OrderBy(l$count);
+    }
+    if (_$data.containsKey('max')) {
+      final l$max = max;
+      result$data['max'] = l$max?.toJson();
+    }
+    if (_$data.containsKey('min')) {
+      final l$min = min;
+      result$data['min'] = l$min?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$AccountAggregateOrderBy<Input$AccountAggregateOrderBy>
+      get copyWith => CopyWith$Input$AccountAggregateOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$AccountAggregateOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    final l$max = max;
+    final lOther$max = other.max;
+    if (_$data.containsKey('max') != other._$data.containsKey('max')) {
+      return false;
+    }
+    if (l$max != lOther$max) {
+      return false;
+    }
+    final l$min = min;
+    final lOther$min = other.min;
+    if (_$data.containsKey('min') != other._$data.containsKey('min')) {
+      return false;
+    }
+    if (l$min != lOther$min) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$count = count;
+    final l$max = max;
+    final l$min = min;
+    return Object.hashAll([
+      _$data.containsKey('count') ? l$count : const {},
+      _$data.containsKey('max') ? l$max : const {},
+      _$data.containsKey('min') ? l$min : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$AccountAggregateOrderBy<TRes> {
+  factory CopyWith$Input$AccountAggregateOrderBy(
+    Input$AccountAggregateOrderBy instance,
+    TRes Function(Input$AccountAggregateOrderBy) then,
+  ) = _CopyWithImpl$Input$AccountAggregateOrderBy;
+
+  factory CopyWith$Input$AccountAggregateOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$AccountAggregateOrderBy;
+
+  TRes call({
+    Enum$OrderBy? count,
+    Input$AccountMaxOrderBy? max,
+    Input$AccountMinOrderBy? min,
+  });
+  CopyWith$Input$AccountMaxOrderBy<TRes> get max;
+  CopyWith$Input$AccountMinOrderBy<TRes> get min;
+}
+
+class _CopyWithImpl$Input$AccountAggregateOrderBy<TRes>
+    implements CopyWith$Input$AccountAggregateOrderBy<TRes> {
+  _CopyWithImpl$Input$AccountAggregateOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$AccountAggregateOrderBy _instance;
+
+  final TRes Function(Input$AccountAggregateOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? count = _undefined,
+    Object? max = _undefined,
+    Object? min = _undefined,
+  }) =>
+      _then(Input$AccountAggregateOrderBy._({
+        ..._instance._$data,
+        if (count != _undefined) 'count': (count as Enum$OrderBy?),
+        if (max != _undefined) 'max': (max as Input$AccountMaxOrderBy?),
+        if (min != _undefined) 'min': (min as Input$AccountMinOrderBy?),
+      }));
+
+  CopyWith$Input$AccountMaxOrderBy<TRes> get max {
+    final local$max = _instance.max;
+    return local$max == null
+        ? CopyWith$Input$AccountMaxOrderBy.stub(_then(_instance))
+        : CopyWith$Input$AccountMaxOrderBy(local$max, (e) => call(max: e));
+  }
+
+  CopyWith$Input$AccountMinOrderBy<TRes> get min {
+    final local$min = _instance.min;
+    return local$min == null
+        ? CopyWith$Input$AccountMinOrderBy.stub(_then(_instance))
+        : CopyWith$Input$AccountMinOrderBy(local$min, (e) => call(min: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$AccountAggregateOrderBy<TRes>
+    implements CopyWith$Input$AccountAggregateOrderBy<TRes> {
+  _CopyWithStubImpl$Input$AccountAggregateOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? count,
+    Input$AccountMaxOrderBy? max,
+    Input$AccountMinOrderBy? min,
+  }) =>
+      _res;
+
+  CopyWith$Input$AccountMaxOrderBy<TRes> get max =>
+      CopyWith$Input$AccountMaxOrderBy.stub(_res);
+
+  CopyWith$Input$AccountMinOrderBy<TRes> get min =>
+      CopyWith$Input$AccountMinOrderBy.stub(_res);
+}
+
+class Input$AccountBoolExp {
+  factory Input$AccountBoolExp({
+    List<Input$AccountBoolExp>? $_and,
+    Input$AccountBoolExp? $_not,
+    List<Input$AccountBoolExp>? $_or,
+    Input$StringComparisonExp? id,
+    Input$IdentityBoolExp? identity,
+    Input$IdentityBoolExp? linkedIdentity,
+    Input$StringComparisonExp? linkedIdentityId,
+    Input$TransferBoolExp? transfersIssued,
+    Input$TransferAggregateBoolExp? transfersIssuedAggregate,
+    Input$TransferBoolExp? transfersReceived,
+    Input$TransferAggregateBoolExp? transfersReceivedAggregate,
+    Input$ChangeOwnerKeyBoolExp? wasIdentity,
+    Input$ChangeOwnerKeyAggregateBoolExp? wasIdentityAggregate,
+  }) =>
+      Input$AccountBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (id != null) r'id': id,
+        if (identity != null) r'identity': identity,
+        if (linkedIdentity != null) r'linkedIdentity': linkedIdentity,
+        if (linkedIdentityId != null) r'linkedIdentityId': linkedIdentityId,
+        if (transfersIssued != null) r'transfersIssued': transfersIssued,
+        if (transfersIssuedAggregate != null)
+          r'transfersIssuedAggregate': transfersIssuedAggregate,
+        if (transfersReceived != null) r'transfersReceived': transfersReceived,
+        if (transfersReceivedAggregate != null)
+          r'transfersReceivedAggregate': transfersReceivedAggregate,
+        if (wasIdentity != null) r'wasIdentity': wasIdentity,
+        if (wasIdentityAggregate != null)
+          r'wasIdentityAggregate': wasIdentityAggregate,
+      });
+
+  Input$AccountBoolExp._(this._$data);
+
+  factory Input$AccountBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map(
+              (e) => Input$AccountBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$AccountBoolExp.fromJson((l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map(
+              (e) => Input$AccountBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    if (data.containsKey('identity')) {
+      final l$identity = data['identity'];
+      result$data['identity'] = l$identity == null
+          ? null
+          : Input$IdentityBoolExp.fromJson(
+              (l$identity as Map<String, dynamic>));
+    }
+    if (data.containsKey('linkedIdentity')) {
+      final l$linkedIdentity = data['linkedIdentity'];
+      result$data['linkedIdentity'] = l$linkedIdentity == null
+          ? null
+          : Input$IdentityBoolExp.fromJson(
+              (l$linkedIdentity as Map<String, dynamic>));
+    }
+    if (data.containsKey('linkedIdentityId')) {
+      final l$linkedIdentityId = data['linkedIdentityId'];
+      result$data['linkedIdentityId'] = l$linkedIdentityId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$linkedIdentityId as Map<String, dynamic>));
+    }
+    if (data.containsKey('transfersIssued')) {
+      final l$transfersIssued = data['transfersIssued'];
+      result$data['transfersIssued'] = l$transfersIssued == null
+          ? null
+          : Input$TransferBoolExp.fromJson(
+              (l$transfersIssued as Map<String, dynamic>));
+    }
+    if (data.containsKey('transfersIssuedAggregate')) {
+      final l$transfersIssuedAggregate = data['transfersIssuedAggregate'];
+      result$data['transfersIssuedAggregate'] =
+          l$transfersIssuedAggregate == null
+              ? null
+              : Input$TransferAggregateBoolExp.fromJson(
+                  (l$transfersIssuedAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('transfersReceived')) {
+      final l$transfersReceived = data['transfersReceived'];
+      result$data['transfersReceived'] = l$transfersReceived == null
+          ? null
+          : Input$TransferBoolExp.fromJson(
+              (l$transfersReceived as Map<String, dynamic>));
+    }
+    if (data.containsKey('transfersReceivedAggregate')) {
+      final l$transfersReceivedAggregate = data['transfersReceivedAggregate'];
+      result$data['transfersReceivedAggregate'] =
+          l$transfersReceivedAggregate == null
+              ? null
+              : Input$TransferAggregateBoolExp.fromJson(
+                  (l$transfersReceivedAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('wasIdentity')) {
+      final l$wasIdentity = data['wasIdentity'];
+      result$data['wasIdentity'] = l$wasIdentity == null
+          ? null
+          : Input$ChangeOwnerKeyBoolExp.fromJson(
+              (l$wasIdentity as Map<String, dynamic>));
+    }
+    if (data.containsKey('wasIdentityAggregate')) {
+      final l$wasIdentityAggregate = data['wasIdentityAggregate'];
+      result$data['wasIdentityAggregate'] = l$wasIdentityAggregate == null
+          ? null
+          : Input$ChangeOwnerKeyAggregateBoolExp.fromJson(
+              (l$wasIdentityAggregate as Map<String, dynamic>));
+    }
+    return Input$AccountBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$AccountBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$AccountBoolExp>?);
+
+  Input$AccountBoolExp? get $_not => (_$data['_not'] as Input$AccountBoolExp?);
+
+  List<Input$AccountBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$AccountBoolExp>?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Input$IdentityBoolExp? get identity =>
+      (_$data['identity'] as Input$IdentityBoolExp?);
+
+  Input$IdentityBoolExp? get linkedIdentity =>
+      (_$data['linkedIdentity'] as Input$IdentityBoolExp?);
+
+  Input$StringComparisonExp? get linkedIdentityId =>
+      (_$data['linkedIdentityId'] as Input$StringComparisonExp?);
+
+  Input$TransferBoolExp? get transfersIssued =>
+      (_$data['transfersIssued'] as Input$TransferBoolExp?);
+
+  Input$TransferAggregateBoolExp? get transfersIssuedAggregate =>
+      (_$data['transfersIssuedAggregate'] as Input$TransferAggregateBoolExp?);
+
+  Input$TransferBoolExp? get transfersReceived =>
+      (_$data['transfersReceived'] as Input$TransferBoolExp?);
+
+  Input$TransferAggregateBoolExp? get transfersReceivedAggregate =>
+      (_$data['transfersReceivedAggregate'] as Input$TransferAggregateBoolExp?);
+
+  Input$ChangeOwnerKeyBoolExp? get wasIdentity =>
+      (_$data['wasIdentity'] as Input$ChangeOwnerKeyBoolExp?);
+
+  Input$ChangeOwnerKeyAggregateBoolExp? get wasIdentityAggregate =>
+      (_$data['wasIdentityAggregate'] as Input$ChangeOwnerKeyAggregateBoolExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    if (_$data.containsKey('identity')) {
+      final l$identity = identity;
+      result$data['identity'] = l$identity?.toJson();
+    }
+    if (_$data.containsKey('linkedIdentity')) {
+      final l$linkedIdentity = linkedIdentity;
+      result$data['linkedIdentity'] = l$linkedIdentity?.toJson();
+    }
+    if (_$data.containsKey('linkedIdentityId')) {
+      final l$linkedIdentityId = linkedIdentityId;
+      result$data['linkedIdentityId'] = l$linkedIdentityId?.toJson();
+    }
+    if (_$data.containsKey('transfersIssued')) {
+      final l$transfersIssued = transfersIssued;
+      result$data['transfersIssued'] = l$transfersIssued?.toJson();
+    }
+    if (_$data.containsKey('transfersIssuedAggregate')) {
+      final l$transfersIssuedAggregate = transfersIssuedAggregate;
+      result$data['transfersIssuedAggregate'] =
+          l$transfersIssuedAggregate?.toJson();
+    }
+    if (_$data.containsKey('transfersReceived')) {
+      final l$transfersReceived = transfersReceived;
+      result$data['transfersReceived'] = l$transfersReceived?.toJson();
+    }
+    if (_$data.containsKey('transfersReceivedAggregate')) {
+      final l$transfersReceivedAggregate = transfersReceivedAggregate;
+      result$data['transfersReceivedAggregate'] =
+          l$transfersReceivedAggregate?.toJson();
+    }
+    if (_$data.containsKey('wasIdentity')) {
+      final l$wasIdentity = wasIdentity;
+      result$data['wasIdentity'] = l$wasIdentity?.toJson();
+    }
+    if (_$data.containsKey('wasIdentityAggregate')) {
+      final l$wasIdentityAggregate = wasIdentityAggregate;
+      result$data['wasIdentityAggregate'] = l$wasIdentityAggregate?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$AccountBoolExp<Input$AccountBoolExp> get copyWith =>
+      CopyWith$Input$AccountBoolExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$AccountBoolExp) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$identity = identity;
+    final lOther$identity = other.identity;
+    if (_$data.containsKey('identity') !=
+        other._$data.containsKey('identity')) {
+      return false;
+    }
+    if (l$identity != lOther$identity) {
+      return false;
+    }
+    final l$linkedIdentity = linkedIdentity;
+    final lOther$linkedIdentity = other.linkedIdentity;
+    if (_$data.containsKey('linkedIdentity') !=
+        other._$data.containsKey('linkedIdentity')) {
+      return false;
+    }
+    if (l$linkedIdentity != lOther$linkedIdentity) {
+      return false;
+    }
+    final l$linkedIdentityId = linkedIdentityId;
+    final lOther$linkedIdentityId = other.linkedIdentityId;
+    if (_$data.containsKey('linkedIdentityId') !=
+        other._$data.containsKey('linkedIdentityId')) {
+      return false;
+    }
+    if (l$linkedIdentityId != lOther$linkedIdentityId) {
+      return false;
+    }
+    final l$transfersIssued = transfersIssued;
+    final lOther$transfersIssued = other.transfersIssued;
+    if (_$data.containsKey('transfersIssued') !=
+        other._$data.containsKey('transfersIssued')) {
+      return false;
+    }
+    if (l$transfersIssued != lOther$transfersIssued) {
+      return false;
+    }
+    final l$transfersIssuedAggregate = transfersIssuedAggregate;
+    final lOther$transfersIssuedAggregate = other.transfersIssuedAggregate;
+    if (_$data.containsKey('transfersIssuedAggregate') !=
+        other._$data.containsKey('transfersIssuedAggregate')) {
+      return false;
+    }
+    if (l$transfersIssuedAggregate != lOther$transfersIssuedAggregate) {
+      return false;
+    }
+    final l$transfersReceived = transfersReceived;
+    final lOther$transfersReceived = other.transfersReceived;
+    if (_$data.containsKey('transfersReceived') !=
+        other._$data.containsKey('transfersReceived')) {
+      return false;
+    }
+    if (l$transfersReceived != lOther$transfersReceived) {
+      return false;
+    }
+    final l$transfersReceivedAggregate = transfersReceivedAggregate;
+    final lOther$transfersReceivedAggregate = other.transfersReceivedAggregate;
+    if (_$data.containsKey('transfersReceivedAggregate') !=
+        other._$data.containsKey('transfersReceivedAggregate')) {
+      return false;
+    }
+    if (l$transfersReceivedAggregate != lOther$transfersReceivedAggregate) {
+      return false;
+    }
+    final l$wasIdentity = wasIdentity;
+    final lOther$wasIdentity = other.wasIdentity;
+    if (_$data.containsKey('wasIdentity') !=
+        other._$data.containsKey('wasIdentity')) {
+      return false;
+    }
+    if (l$wasIdentity != lOther$wasIdentity) {
+      return false;
+    }
+    final l$wasIdentityAggregate = wasIdentityAggregate;
+    final lOther$wasIdentityAggregate = other.wasIdentityAggregate;
+    if (_$data.containsKey('wasIdentityAggregate') !=
+        other._$data.containsKey('wasIdentityAggregate')) {
+      return false;
+    }
+    if (l$wasIdentityAggregate != lOther$wasIdentityAggregate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$id = id;
+    final l$identity = identity;
+    final l$linkedIdentity = linkedIdentity;
+    final l$linkedIdentityId = linkedIdentityId;
+    final l$transfersIssued = transfersIssued;
+    final l$transfersIssuedAggregate = transfersIssuedAggregate;
+    final l$transfersReceived = transfersReceived;
+    final l$transfersReceivedAggregate = transfersReceivedAggregate;
+    final l$wasIdentity = wasIdentity;
+    final l$wasIdentityAggregate = wasIdentityAggregate;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('identity') ? l$identity : const {},
+      _$data.containsKey('linkedIdentity') ? l$linkedIdentity : const {},
+      _$data.containsKey('linkedIdentityId') ? l$linkedIdentityId : const {},
+      _$data.containsKey('transfersIssued') ? l$transfersIssued : const {},
+      _$data.containsKey('transfersIssuedAggregate')
+          ? l$transfersIssuedAggregate
+          : const {},
+      _$data.containsKey('transfersReceived') ? l$transfersReceived : const {},
+      _$data.containsKey('transfersReceivedAggregate')
+          ? l$transfersReceivedAggregate
+          : const {},
+      _$data.containsKey('wasIdentity') ? l$wasIdentity : const {},
+      _$data.containsKey('wasIdentityAggregate')
+          ? l$wasIdentityAggregate
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$AccountBoolExp<TRes> {
+  factory CopyWith$Input$AccountBoolExp(
+    Input$AccountBoolExp instance,
+    TRes Function(Input$AccountBoolExp) then,
+  ) = _CopyWithImpl$Input$AccountBoolExp;
+
+  factory CopyWith$Input$AccountBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$AccountBoolExp;
+
+  TRes call({
+    List<Input$AccountBoolExp>? $_and,
+    Input$AccountBoolExp? $_not,
+    List<Input$AccountBoolExp>? $_or,
+    Input$StringComparisonExp? id,
+    Input$IdentityBoolExp? identity,
+    Input$IdentityBoolExp? linkedIdentity,
+    Input$StringComparisonExp? linkedIdentityId,
+    Input$TransferBoolExp? transfersIssued,
+    Input$TransferAggregateBoolExp? transfersIssuedAggregate,
+    Input$TransferBoolExp? transfersReceived,
+    Input$TransferAggregateBoolExp? transfersReceivedAggregate,
+    Input$ChangeOwnerKeyBoolExp? wasIdentity,
+    Input$ChangeOwnerKeyAggregateBoolExp? wasIdentityAggregate,
+  });
+  TRes $_and(
+      Iterable<Input$AccountBoolExp>? Function(
+              Iterable<CopyWith$Input$AccountBoolExp<Input$AccountBoolExp>>?)
+          _fn);
+  CopyWith$Input$AccountBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$AccountBoolExp>? Function(
+              Iterable<CopyWith$Input$AccountBoolExp<Input$AccountBoolExp>>?)
+          _fn);
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+  CopyWith$Input$IdentityBoolExp<TRes> get identity;
+  CopyWith$Input$IdentityBoolExp<TRes> get linkedIdentity;
+  CopyWith$Input$StringComparisonExp<TRes> get linkedIdentityId;
+  CopyWith$Input$TransferBoolExp<TRes> get transfersIssued;
+  CopyWith$Input$TransferAggregateBoolExp<TRes> get transfersIssuedAggregate;
+  CopyWith$Input$TransferBoolExp<TRes> get transfersReceived;
+  CopyWith$Input$TransferAggregateBoolExp<TRes> get transfersReceivedAggregate;
+  CopyWith$Input$ChangeOwnerKeyBoolExp<TRes> get wasIdentity;
+  CopyWith$Input$ChangeOwnerKeyAggregateBoolExp<TRes> get wasIdentityAggregate;
+}
+
+class _CopyWithImpl$Input$AccountBoolExp<TRes>
+    implements CopyWith$Input$AccountBoolExp<TRes> {
+  _CopyWithImpl$Input$AccountBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$AccountBoolExp _instance;
+
+  final TRes Function(Input$AccountBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? id = _undefined,
+    Object? identity = _undefined,
+    Object? linkedIdentity = _undefined,
+    Object? linkedIdentityId = _undefined,
+    Object? transfersIssued = _undefined,
+    Object? transfersIssuedAggregate = _undefined,
+    Object? transfersReceived = _undefined,
+    Object? transfersReceivedAggregate = _undefined,
+    Object? wasIdentity = _undefined,
+    Object? wasIdentityAggregate = _undefined,
+  }) =>
+      _then(Input$AccountBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined) '_and': ($_and as List<Input$AccountBoolExp>?),
+        if ($_not != _undefined) '_not': ($_not as Input$AccountBoolExp?),
+        if ($_or != _undefined) '_or': ($_or as List<Input$AccountBoolExp>?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+        if (identity != _undefined)
+          'identity': (identity as Input$IdentityBoolExp?),
+        if (linkedIdentity != _undefined)
+          'linkedIdentity': (linkedIdentity as Input$IdentityBoolExp?),
+        if (linkedIdentityId != _undefined)
+          'linkedIdentityId': (linkedIdentityId as Input$StringComparisonExp?),
+        if (transfersIssued != _undefined)
+          'transfersIssued': (transfersIssued as Input$TransferBoolExp?),
+        if (transfersIssuedAggregate != _undefined)
+          'transfersIssuedAggregate':
+              (transfersIssuedAggregate as Input$TransferAggregateBoolExp?),
+        if (transfersReceived != _undefined)
+          'transfersReceived': (transfersReceived as Input$TransferBoolExp?),
+        if (transfersReceivedAggregate != _undefined)
+          'transfersReceivedAggregate':
+              (transfersReceivedAggregate as Input$TransferAggregateBoolExp?),
+        if (wasIdentity != _undefined)
+          'wasIdentity': (wasIdentity as Input$ChangeOwnerKeyBoolExp?),
+        if (wasIdentityAggregate != _undefined)
+          'wasIdentityAggregate':
+              (wasIdentityAggregate as Input$ChangeOwnerKeyAggregateBoolExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$AccountBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$AccountBoolExp<Input$AccountBoolExp>>?)
+              _fn) =>
+      call(
+          $_and: _fn(_instance.$_and?.map((e) => CopyWith$Input$AccountBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$AccountBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$AccountBoolExp.stub(_then(_instance))
+        : CopyWith$Input$AccountBoolExp(local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$AccountBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$AccountBoolExp<Input$AccountBoolExp>>?)
+              _fn) =>
+      call(
+          $_or: _fn(_instance.$_or?.map((e) => CopyWith$Input$AccountBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+
+  CopyWith$Input$IdentityBoolExp<TRes> get identity {
+    final local$identity = _instance.identity;
+    return local$identity == null
+        ? CopyWith$Input$IdentityBoolExp.stub(_then(_instance))
+        : CopyWith$Input$IdentityBoolExp(
+            local$identity, (e) => call(identity: e));
+  }
+
+  CopyWith$Input$IdentityBoolExp<TRes> get linkedIdentity {
+    final local$linkedIdentity = _instance.linkedIdentity;
+    return local$linkedIdentity == null
+        ? CopyWith$Input$IdentityBoolExp.stub(_then(_instance))
+        : CopyWith$Input$IdentityBoolExp(
+            local$linkedIdentity, (e) => call(linkedIdentity: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get linkedIdentityId {
+    final local$linkedIdentityId = _instance.linkedIdentityId;
+    return local$linkedIdentityId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$linkedIdentityId, (e) => call(linkedIdentityId: e));
+  }
+
+  CopyWith$Input$TransferBoolExp<TRes> get transfersIssued {
+    final local$transfersIssued = _instance.transfersIssued;
+    return local$transfersIssued == null
+        ? CopyWith$Input$TransferBoolExp.stub(_then(_instance))
+        : CopyWith$Input$TransferBoolExp(
+            local$transfersIssued, (e) => call(transfersIssued: e));
+  }
+
+  CopyWith$Input$TransferAggregateBoolExp<TRes> get transfersIssuedAggregate {
+    final local$transfersIssuedAggregate = _instance.transfersIssuedAggregate;
+    return local$transfersIssuedAggregate == null
+        ? CopyWith$Input$TransferAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$TransferAggregateBoolExp(
+            local$transfersIssuedAggregate,
+            (e) => call(transfersIssuedAggregate: e));
+  }
+
+  CopyWith$Input$TransferBoolExp<TRes> get transfersReceived {
+    final local$transfersReceived = _instance.transfersReceived;
+    return local$transfersReceived == null
+        ? CopyWith$Input$TransferBoolExp.stub(_then(_instance))
+        : CopyWith$Input$TransferBoolExp(
+            local$transfersReceived, (e) => call(transfersReceived: e));
+  }
+
+  CopyWith$Input$TransferAggregateBoolExp<TRes> get transfersReceivedAggregate {
+    final local$transfersReceivedAggregate =
+        _instance.transfersReceivedAggregate;
+    return local$transfersReceivedAggregate == null
+        ? CopyWith$Input$TransferAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$TransferAggregateBoolExp(
+            local$transfersReceivedAggregate,
+            (e) => call(transfersReceivedAggregate: e));
+  }
+
+  CopyWith$Input$ChangeOwnerKeyBoolExp<TRes> get wasIdentity {
+    final local$wasIdentity = _instance.wasIdentity;
+    return local$wasIdentity == null
+        ? CopyWith$Input$ChangeOwnerKeyBoolExp.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyBoolExp(
+            local$wasIdentity, (e) => call(wasIdentity: e));
+  }
+
+  CopyWith$Input$ChangeOwnerKeyAggregateBoolExp<TRes> get wasIdentityAggregate {
+    final local$wasIdentityAggregate = _instance.wasIdentityAggregate;
+    return local$wasIdentityAggregate == null
+        ? CopyWith$Input$ChangeOwnerKeyAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyAggregateBoolExp(
+            local$wasIdentityAggregate, (e) => call(wasIdentityAggregate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$AccountBoolExp<TRes>
+    implements CopyWith$Input$AccountBoolExp<TRes> {
+  _CopyWithStubImpl$Input$AccountBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$AccountBoolExp>? $_and,
+    Input$AccountBoolExp? $_not,
+    List<Input$AccountBoolExp>? $_or,
+    Input$StringComparisonExp? id,
+    Input$IdentityBoolExp? identity,
+    Input$IdentityBoolExp? linkedIdentity,
+    Input$StringComparisonExp? linkedIdentityId,
+    Input$TransferBoolExp? transfersIssued,
+    Input$TransferAggregateBoolExp? transfersIssuedAggregate,
+    Input$TransferBoolExp? transfersReceived,
+    Input$TransferAggregateBoolExp? transfersReceivedAggregate,
+    Input$ChangeOwnerKeyBoolExp? wasIdentity,
+    Input$ChangeOwnerKeyAggregateBoolExp? wasIdentityAggregate,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$AccountBoolExp<TRes> get $_not =>
+      CopyWith$Input$AccountBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$IdentityBoolExp<TRes> get identity =>
+      CopyWith$Input$IdentityBoolExp.stub(_res);
+
+  CopyWith$Input$IdentityBoolExp<TRes> get linkedIdentity =>
+      CopyWith$Input$IdentityBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get linkedIdentityId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$TransferBoolExp<TRes> get transfersIssued =>
+      CopyWith$Input$TransferBoolExp.stub(_res);
+
+  CopyWith$Input$TransferAggregateBoolExp<TRes> get transfersIssuedAggregate =>
+      CopyWith$Input$TransferAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$TransferBoolExp<TRes> get transfersReceived =>
+      CopyWith$Input$TransferBoolExp.stub(_res);
+
+  CopyWith$Input$TransferAggregateBoolExp<TRes>
+      get transfersReceivedAggregate =>
+          CopyWith$Input$TransferAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$ChangeOwnerKeyBoolExp<TRes> get wasIdentity =>
+      CopyWith$Input$ChangeOwnerKeyBoolExp.stub(_res);
+
+  CopyWith$Input$ChangeOwnerKeyAggregateBoolExp<TRes>
+      get wasIdentityAggregate =>
+          CopyWith$Input$ChangeOwnerKeyAggregateBoolExp.stub(_res);
+}
+
+class Input$AccountMaxOrderBy {
+  factory Input$AccountMaxOrderBy({
+    Enum$OrderBy? id,
+    Enum$OrderBy? linkedIdentityId,
+  }) =>
+      Input$AccountMaxOrderBy._({
+        if (id != null) r'id': id,
+        if (linkedIdentityId != null) r'linkedIdentityId': linkedIdentityId,
+      });
+
+  Input$AccountMaxOrderBy._(this._$data);
+
+  factory Input$AccountMaxOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('linkedIdentityId')) {
+      final l$linkedIdentityId = data['linkedIdentityId'];
+      result$data['linkedIdentityId'] = l$linkedIdentityId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$linkedIdentityId as String));
+    }
+    return Input$AccountMaxOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get linkedIdentityId =>
+      (_$data['linkedIdentityId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('linkedIdentityId')) {
+      final l$linkedIdentityId = linkedIdentityId;
+      result$data['linkedIdentityId'] = l$linkedIdentityId == null
+          ? null
+          : toJson$Enum$OrderBy(l$linkedIdentityId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$AccountMaxOrderBy<Input$AccountMaxOrderBy> get copyWith =>
+      CopyWith$Input$AccountMaxOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$AccountMaxOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$linkedIdentityId = linkedIdentityId;
+    final lOther$linkedIdentityId = other.linkedIdentityId;
+    if (_$data.containsKey('linkedIdentityId') !=
+        other._$data.containsKey('linkedIdentityId')) {
+      return false;
+    }
+    if (l$linkedIdentityId != lOther$linkedIdentityId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$id = id;
+    final l$linkedIdentityId = linkedIdentityId;
+    return Object.hashAll([
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('linkedIdentityId') ? l$linkedIdentityId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$AccountMaxOrderBy<TRes> {
+  factory CopyWith$Input$AccountMaxOrderBy(
+    Input$AccountMaxOrderBy instance,
+    TRes Function(Input$AccountMaxOrderBy) then,
+  ) = _CopyWithImpl$Input$AccountMaxOrderBy;
+
+  factory CopyWith$Input$AccountMaxOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$AccountMaxOrderBy;
+
+  TRes call({
+    Enum$OrderBy? id,
+    Enum$OrderBy? linkedIdentityId,
+  });
+}
+
+class _CopyWithImpl$Input$AccountMaxOrderBy<TRes>
+    implements CopyWith$Input$AccountMaxOrderBy<TRes> {
+  _CopyWithImpl$Input$AccountMaxOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$AccountMaxOrderBy _instance;
+
+  final TRes Function(Input$AccountMaxOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? id = _undefined,
+    Object? linkedIdentityId = _undefined,
+  }) =>
+      _then(Input$AccountMaxOrderBy._({
+        ..._instance._$data,
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (linkedIdentityId != _undefined)
+          'linkedIdentityId': (linkedIdentityId as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$AccountMaxOrderBy<TRes>
+    implements CopyWith$Input$AccountMaxOrderBy<TRes> {
+  _CopyWithStubImpl$Input$AccountMaxOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? id,
+    Enum$OrderBy? linkedIdentityId,
+  }) =>
+      _res;
+}
+
+class Input$AccountMinOrderBy {
+  factory Input$AccountMinOrderBy({
+    Enum$OrderBy? id,
+    Enum$OrderBy? linkedIdentityId,
+  }) =>
+      Input$AccountMinOrderBy._({
+        if (id != null) r'id': id,
+        if (linkedIdentityId != null) r'linkedIdentityId': linkedIdentityId,
+      });
+
+  Input$AccountMinOrderBy._(this._$data);
+
+  factory Input$AccountMinOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('linkedIdentityId')) {
+      final l$linkedIdentityId = data['linkedIdentityId'];
+      result$data['linkedIdentityId'] = l$linkedIdentityId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$linkedIdentityId as String));
+    }
+    return Input$AccountMinOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get linkedIdentityId =>
+      (_$data['linkedIdentityId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('linkedIdentityId')) {
+      final l$linkedIdentityId = linkedIdentityId;
+      result$data['linkedIdentityId'] = l$linkedIdentityId == null
+          ? null
+          : toJson$Enum$OrderBy(l$linkedIdentityId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$AccountMinOrderBy<Input$AccountMinOrderBy> get copyWith =>
+      CopyWith$Input$AccountMinOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$AccountMinOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$linkedIdentityId = linkedIdentityId;
+    final lOther$linkedIdentityId = other.linkedIdentityId;
+    if (_$data.containsKey('linkedIdentityId') !=
+        other._$data.containsKey('linkedIdentityId')) {
+      return false;
+    }
+    if (l$linkedIdentityId != lOther$linkedIdentityId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$id = id;
+    final l$linkedIdentityId = linkedIdentityId;
+    return Object.hashAll([
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('linkedIdentityId') ? l$linkedIdentityId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$AccountMinOrderBy<TRes> {
+  factory CopyWith$Input$AccountMinOrderBy(
+    Input$AccountMinOrderBy instance,
+    TRes Function(Input$AccountMinOrderBy) then,
+  ) = _CopyWithImpl$Input$AccountMinOrderBy;
+
+  factory CopyWith$Input$AccountMinOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$AccountMinOrderBy;
+
+  TRes call({
+    Enum$OrderBy? id,
+    Enum$OrderBy? linkedIdentityId,
+  });
+}
+
+class _CopyWithImpl$Input$AccountMinOrderBy<TRes>
+    implements CopyWith$Input$AccountMinOrderBy<TRes> {
+  _CopyWithImpl$Input$AccountMinOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$AccountMinOrderBy _instance;
+
+  final TRes Function(Input$AccountMinOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? id = _undefined,
+    Object? linkedIdentityId = _undefined,
+  }) =>
+      _then(Input$AccountMinOrderBy._({
+        ..._instance._$data,
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (linkedIdentityId != _undefined)
+          'linkedIdentityId': (linkedIdentityId as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$AccountMinOrderBy<TRes>
+    implements CopyWith$Input$AccountMinOrderBy<TRes> {
+  _CopyWithStubImpl$Input$AccountMinOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? id,
+    Enum$OrderBy? linkedIdentityId,
+  }) =>
+      _res;
+}
+
+class Input$AccountOrderBy {
+  factory Input$AccountOrderBy({
+    Enum$OrderBy? id,
+    Input$IdentityOrderBy? identity,
+    Input$IdentityOrderBy? linkedIdentity,
+    Enum$OrderBy? linkedIdentityId,
+    Input$TransferAggregateOrderBy? transfersIssuedAggregate,
+    Input$TransferAggregateOrderBy? transfersReceivedAggregate,
+    Input$ChangeOwnerKeyAggregateOrderBy? wasIdentityAggregate,
+  }) =>
+      Input$AccountOrderBy._({
+        if (id != null) r'id': id,
+        if (identity != null) r'identity': identity,
+        if (linkedIdentity != null) r'linkedIdentity': linkedIdentity,
+        if (linkedIdentityId != null) r'linkedIdentityId': linkedIdentityId,
+        if (transfersIssuedAggregate != null)
+          r'transfersIssuedAggregate': transfersIssuedAggregate,
+        if (transfersReceivedAggregate != null)
+          r'transfersReceivedAggregate': transfersReceivedAggregate,
+        if (wasIdentityAggregate != null)
+          r'wasIdentityAggregate': wasIdentityAggregate,
+      });
+
+  Input$AccountOrderBy._(this._$data);
+
+  factory Input$AccountOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('identity')) {
+      final l$identity = data['identity'];
+      result$data['identity'] = l$identity == null
+          ? null
+          : Input$IdentityOrderBy.fromJson(
+              (l$identity as Map<String, dynamic>));
+    }
+    if (data.containsKey('linkedIdentity')) {
+      final l$linkedIdentity = data['linkedIdentity'];
+      result$data['linkedIdentity'] = l$linkedIdentity == null
+          ? null
+          : Input$IdentityOrderBy.fromJson(
+              (l$linkedIdentity as Map<String, dynamic>));
+    }
+    if (data.containsKey('linkedIdentityId')) {
+      final l$linkedIdentityId = data['linkedIdentityId'];
+      result$data['linkedIdentityId'] = l$linkedIdentityId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$linkedIdentityId as String));
+    }
+    if (data.containsKey('transfersIssuedAggregate')) {
+      final l$transfersIssuedAggregate = data['transfersIssuedAggregate'];
+      result$data['transfersIssuedAggregate'] =
+          l$transfersIssuedAggregate == null
+              ? null
+              : Input$TransferAggregateOrderBy.fromJson(
+                  (l$transfersIssuedAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('transfersReceivedAggregate')) {
+      final l$transfersReceivedAggregate = data['transfersReceivedAggregate'];
+      result$data['transfersReceivedAggregate'] =
+          l$transfersReceivedAggregate == null
+              ? null
+              : Input$TransferAggregateOrderBy.fromJson(
+                  (l$transfersReceivedAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('wasIdentityAggregate')) {
+      final l$wasIdentityAggregate = data['wasIdentityAggregate'];
+      result$data['wasIdentityAggregate'] = l$wasIdentityAggregate == null
+          ? null
+          : Input$ChangeOwnerKeyAggregateOrderBy.fromJson(
+              (l$wasIdentityAggregate as Map<String, dynamic>));
+    }
+    return Input$AccountOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Input$IdentityOrderBy? get identity =>
+      (_$data['identity'] as Input$IdentityOrderBy?);
+
+  Input$IdentityOrderBy? get linkedIdentity =>
+      (_$data['linkedIdentity'] as Input$IdentityOrderBy?);
+
+  Enum$OrderBy? get linkedIdentityId =>
+      (_$data['linkedIdentityId'] as Enum$OrderBy?);
+
+  Input$TransferAggregateOrderBy? get transfersIssuedAggregate =>
+      (_$data['transfersIssuedAggregate'] as Input$TransferAggregateOrderBy?);
+
+  Input$TransferAggregateOrderBy? get transfersReceivedAggregate =>
+      (_$data['transfersReceivedAggregate'] as Input$TransferAggregateOrderBy?);
+
+  Input$ChangeOwnerKeyAggregateOrderBy? get wasIdentityAggregate =>
+      (_$data['wasIdentityAggregate'] as Input$ChangeOwnerKeyAggregateOrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('identity')) {
+      final l$identity = identity;
+      result$data['identity'] = l$identity?.toJson();
+    }
+    if (_$data.containsKey('linkedIdentity')) {
+      final l$linkedIdentity = linkedIdentity;
+      result$data['linkedIdentity'] = l$linkedIdentity?.toJson();
+    }
+    if (_$data.containsKey('linkedIdentityId')) {
+      final l$linkedIdentityId = linkedIdentityId;
+      result$data['linkedIdentityId'] = l$linkedIdentityId == null
+          ? null
+          : toJson$Enum$OrderBy(l$linkedIdentityId);
+    }
+    if (_$data.containsKey('transfersIssuedAggregate')) {
+      final l$transfersIssuedAggregate = transfersIssuedAggregate;
+      result$data['transfersIssuedAggregate'] =
+          l$transfersIssuedAggregate?.toJson();
+    }
+    if (_$data.containsKey('transfersReceivedAggregate')) {
+      final l$transfersReceivedAggregate = transfersReceivedAggregate;
+      result$data['transfersReceivedAggregate'] =
+          l$transfersReceivedAggregate?.toJson();
+    }
+    if (_$data.containsKey('wasIdentityAggregate')) {
+      final l$wasIdentityAggregate = wasIdentityAggregate;
+      result$data['wasIdentityAggregate'] = l$wasIdentityAggregate?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$AccountOrderBy<Input$AccountOrderBy> get copyWith =>
+      CopyWith$Input$AccountOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$AccountOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$identity = identity;
+    final lOther$identity = other.identity;
+    if (_$data.containsKey('identity') !=
+        other._$data.containsKey('identity')) {
+      return false;
+    }
+    if (l$identity != lOther$identity) {
+      return false;
+    }
+    final l$linkedIdentity = linkedIdentity;
+    final lOther$linkedIdentity = other.linkedIdentity;
+    if (_$data.containsKey('linkedIdentity') !=
+        other._$data.containsKey('linkedIdentity')) {
+      return false;
+    }
+    if (l$linkedIdentity != lOther$linkedIdentity) {
+      return false;
+    }
+    final l$linkedIdentityId = linkedIdentityId;
+    final lOther$linkedIdentityId = other.linkedIdentityId;
+    if (_$data.containsKey('linkedIdentityId') !=
+        other._$data.containsKey('linkedIdentityId')) {
+      return false;
+    }
+    if (l$linkedIdentityId != lOther$linkedIdentityId) {
+      return false;
+    }
+    final l$transfersIssuedAggregate = transfersIssuedAggregate;
+    final lOther$transfersIssuedAggregate = other.transfersIssuedAggregate;
+    if (_$data.containsKey('transfersIssuedAggregate') !=
+        other._$data.containsKey('transfersIssuedAggregate')) {
+      return false;
+    }
+    if (l$transfersIssuedAggregate != lOther$transfersIssuedAggregate) {
+      return false;
+    }
+    final l$transfersReceivedAggregate = transfersReceivedAggregate;
+    final lOther$transfersReceivedAggregate = other.transfersReceivedAggregate;
+    if (_$data.containsKey('transfersReceivedAggregate') !=
+        other._$data.containsKey('transfersReceivedAggregate')) {
+      return false;
+    }
+    if (l$transfersReceivedAggregate != lOther$transfersReceivedAggregate) {
+      return false;
+    }
+    final l$wasIdentityAggregate = wasIdentityAggregate;
+    final lOther$wasIdentityAggregate = other.wasIdentityAggregate;
+    if (_$data.containsKey('wasIdentityAggregate') !=
+        other._$data.containsKey('wasIdentityAggregate')) {
+      return false;
+    }
+    if (l$wasIdentityAggregate != lOther$wasIdentityAggregate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$id = id;
+    final l$identity = identity;
+    final l$linkedIdentity = linkedIdentity;
+    final l$linkedIdentityId = linkedIdentityId;
+    final l$transfersIssuedAggregate = transfersIssuedAggregate;
+    final l$transfersReceivedAggregate = transfersReceivedAggregate;
+    final l$wasIdentityAggregate = wasIdentityAggregate;
+    return Object.hashAll([
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('identity') ? l$identity : const {},
+      _$data.containsKey('linkedIdentity') ? l$linkedIdentity : const {},
+      _$data.containsKey('linkedIdentityId') ? l$linkedIdentityId : const {},
+      _$data.containsKey('transfersIssuedAggregate')
+          ? l$transfersIssuedAggregate
+          : const {},
+      _$data.containsKey('transfersReceivedAggregate')
+          ? l$transfersReceivedAggregate
+          : const {},
+      _$data.containsKey('wasIdentityAggregate')
+          ? l$wasIdentityAggregate
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$AccountOrderBy<TRes> {
+  factory CopyWith$Input$AccountOrderBy(
+    Input$AccountOrderBy instance,
+    TRes Function(Input$AccountOrderBy) then,
+  ) = _CopyWithImpl$Input$AccountOrderBy;
+
+  factory CopyWith$Input$AccountOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$AccountOrderBy;
+
+  TRes call({
+    Enum$OrderBy? id,
+    Input$IdentityOrderBy? identity,
+    Input$IdentityOrderBy? linkedIdentity,
+    Enum$OrderBy? linkedIdentityId,
+    Input$TransferAggregateOrderBy? transfersIssuedAggregate,
+    Input$TransferAggregateOrderBy? transfersReceivedAggregate,
+    Input$ChangeOwnerKeyAggregateOrderBy? wasIdentityAggregate,
+  });
+  CopyWith$Input$IdentityOrderBy<TRes> get identity;
+  CopyWith$Input$IdentityOrderBy<TRes> get linkedIdentity;
+  CopyWith$Input$TransferAggregateOrderBy<TRes> get transfersIssuedAggregate;
+  CopyWith$Input$TransferAggregateOrderBy<TRes> get transfersReceivedAggregate;
+  CopyWith$Input$ChangeOwnerKeyAggregateOrderBy<TRes> get wasIdentityAggregate;
+}
+
+class _CopyWithImpl$Input$AccountOrderBy<TRes>
+    implements CopyWith$Input$AccountOrderBy<TRes> {
+  _CopyWithImpl$Input$AccountOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$AccountOrderBy _instance;
+
+  final TRes Function(Input$AccountOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? id = _undefined,
+    Object? identity = _undefined,
+    Object? linkedIdentity = _undefined,
+    Object? linkedIdentityId = _undefined,
+    Object? transfersIssuedAggregate = _undefined,
+    Object? transfersReceivedAggregate = _undefined,
+    Object? wasIdentityAggregate = _undefined,
+  }) =>
+      _then(Input$AccountOrderBy._({
+        ..._instance._$data,
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (identity != _undefined)
+          'identity': (identity as Input$IdentityOrderBy?),
+        if (linkedIdentity != _undefined)
+          'linkedIdentity': (linkedIdentity as Input$IdentityOrderBy?),
+        if (linkedIdentityId != _undefined)
+          'linkedIdentityId': (linkedIdentityId as Enum$OrderBy?),
+        if (transfersIssuedAggregate != _undefined)
+          'transfersIssuedAggregate':
+              (transfersIssuedAggregate as Input$TransferAggregateOrderBy?),
+        if (transfersReceivedAggregate != _undefined)
+          'transfersReceivedAggregate':
+              (transfersReceivedAggregate as Input$TransferAggregateOrderBy?),
+        if (wasIdentityAggregate != _undefined)
+          'wasIdentityAggregate':
+              (wasIdentityAggregate as Input$ChangeOwnerKeyAggregateOrderBy?),
+      }));
+
+  CopyWith$Input$IdentityOrderBy<TRes> get identity {
+    final local$identity = _instance.identity;
+    return local$identity == null
+        ? CopyWith$Input$IdentityOrderBy.stub(_then(_instance))
+        : CopyWith$Input$IdentityOrderBy(
+            local$identity, (e) => call(identity: e));
+  }
+
+  CopyWith$Input$IdentityOrderBy<TRes> get linkedIdentity {
+    final local$linkedIdentity = _instance.linkedIdentity;
+    return local$linkedIdentity == null
+        ? CopyWith$Input$IdentityOrderBy.stub(_then(_instance))
+        : CopyWith$Input$IdentityOrderBy(
+            local$linkedIdentity, (e) => call(linkedIdentity: e));
+  }
+
+  CopyWith$Input$TransferAggregateOrderBy<TRes> get transfersIssuedAggregate {
+    final local$transfersIssuedAggregate = _instance.transfersIssuedAggregate;
+    return local$transfersIssuedAggregate == null
+        ? CopyWith$Input$TransferAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$TransferAggregateOrderBy(
+            local$transfersIssuedAggregate,
+            (e) => call(transfersIssuedAggregate: e));
+  }
+
+  CopyWith$Input$TransferAggregateOrderBy<TRes> get transfersReceivedAggregate {
+    final local$transfersReceivedAggregate =
+        _instance.transfersReceivedAggregate;
+    return local$transfersReceivedAggregate == null
+        ? CopyWith$Input$TransferAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$TransferAggregateOrderBy(
+            local$transfersReceivedAggregate,
+            (e) => call(transfersReceivedAggregate: e));
+  }
+
+  CopyWith$Input$ChangeOwnerKeyAggregateOrderBy<TRes> get wasIdentityAggregate {
+    final local$wasIdentityAggregate = _instance.wasIdentityAggregate;
+    return local$wasIdentityAggregate == null
+        ? CopyWith$Input$ChangeOwnerKeyAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyAggregateOrderBy(
+            local$wasIdentityAggregate, (e) => call(wasIdentityAggregate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$AccountOrderBy<TRes>
+    implements CopyWith$Input$AccountOrderBy<TRes> {
+  _CopyWithStubImpl$Input$AccountOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? id,
+    Input$IdentityOrderBy? identity,
+    Input$IdentityOrderBy? linkedIdentity,
+    Enum$OrderBy? linkedIdentityId,
+    Input$TransferAggregateOrderBy? transfersIssuedAggregate,
+    Input$TransferAggregateOrderBy? transfersReceivedAggregate,
+    Input$ChangeOwnerKeyAggregateOrderBy? wasIdentityAggregate,
+  }) =>
+      _res;
+
+  CopyWith$Input$IdentityOrderBy<TRes> get identity =>
+      CopyWith$Input$IdentityOrderBy.stub(_res);
+
+  CopyWith$Input$IdentityOrderBy<TRes> get linkedIdentity =>
+      CopyWith$Input$IdentityOrderBy.stub(_res);
+
+  CopyWith$Input$TransferAggregateOrderBy<TRes> get transfersIssuedAggregate =>
+      CopyWith$Input$TransferAggregateOrderBy.stub(_res);
+
+  CopyWith$Input$TransferAggregateOrderBy<TRes>
+      get transfersReceivedAggregate =>
+          CopyWith$Input$TransferAggregateOrderBy.stub(_res);
+
+  CopyWith$Input$ChangeOwnerKeyAggregateOrderBy<TRes>
+      get wasIdentityAggregate =>
+          CopyWith$Input$ChangeOwnerKeyAggregateOrderBy.stub(_res);
+}
+
+class Input$BlockBoolExp {
+  factory Input$BlockBoolExp({
+    List<Input$BlockBoolExp>? $_and,
+    Input$BlockBoolExp? $_not,
+    List<Input$BlockBoolExp>? $_or,
+    Input$CallBoolExp? calls,
+    Input$CallAggregateBoolExp? callsAggregate,
+    Input$IntComparisonExp? callsCount,
+    Input$EventBoolExp? events,
+    Input$EventAggregateBoolExp? eventsAggregate,
+    Input$IntComparisonExp? eventsCount,
+    Input$ExtrinsicBoolExp? extrinsics,
+    Input$ExtrinsicAggregateBoolExp? extrinsicsAggregate,
+    Input$IntComparisonExp? extrinsicsCount,
+    Input$ByteaComparisonExp? extrinsicsicRoot,
+    Input$ByteaComparisonExp? hash,
+    Input$IntComparisonExp? height,
+    Input$StringComparisonExp? id,
+    Input$StringComparisonExp? implName,
+    Input$IntComparisonExp? implVersion,
+    Input$ByteaComparisonExp? parentHash,
+    Input$StringComparisonExp? specName,
+    Input$IntComparisonExp? specVersion,
+    Input$ByteaComparisonExp? stateRoot,
+    Input$TimestamptzComparisonExp? timestamp,
+    Input$ByteaComparisonExp? validator,
+  }) =>
+      Input$BlockBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (calls != null) r'calls': calls,
+        if (callsAggregate != null) r'callsAggregate': callsAggregate,
+        if (callsCount != null) r'callsCount': callsCount,
+        if (events != null) r'events': events,
+        if (eventsAggregate != null) r'eventsAggregate': eventsAggregate,
+        if (eventsCount != null) r'eventsCount': eventsCount,
+        if (extrinsics != null) r'extrinsics': extrinsics,
+        if (extrinsicsAggregate != null)
+          r'extrinsicsAggregate': extrinsicsAggregate,
+        if (extrinsicsCount != null) r'extrinsicsCount': extrinsicsCount,
+        if (extrinsicsicRoot != null) r'extrinsicsicRoot': extrinsicsicRoot,
+        if (hash != null) r'hash': hash,
+        if (height != null) r'height': height,
+        if (id != null) r'id': id,
+        if (implName != null) r'implName': implName,
+        if (implVersion != null) r'implVersion': implVersion,
+        if (parentHash != null) r'parentHash': parentHash,
+        if (specName != null) r'specName': specName,
+        if (specVersion != null) r'specVersion': specVersion,
+        if (stateRoot != null) r'stateRoot': stateRoot,
+        if (timestamp != null) r'timestamp': timestamp,
+        if (validator != null) r'validator': validator,
+      });
+
+  Input$BlockBoolExp._(this._$data);
+
+  factory Input$BlockBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map((e) => Input$BlockBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$BlockBoolExp.fromJson((l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map((e) => Input$BlockBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('calls')) {
+      final l$calls = data['calls'];
+      result$data['calls'] = l$calls == null
+          ? null
+          : Input$CallBoolExp.fromJson((l$calls as Map<String, dynamic>));
+    }
+    if (data.containsKey('callsAggregate')) {
+      final l$callsAggregate = data['callsAggregate'];
+      result$data['callsAggregate'] = l$callsAggregate == null
+          ? null
+          : Input$CallAggregateBoolExp.fromJson(
+              (l$callsAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('callsCount')) {
+      final l$callsCount = data['callsCount'];
+      result$data['callsCount'] = l$callsCount == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$callsCount as Map<String, dynamic>));
+    }
+    if (data.containsKey('events')) {
+      final l$events = data['events'];
+      result$data['events'] = l$events == null
+          ? null
+          : Input$EventBoolExp.fromJson((l$events as Map<String, dynamic>));
+    }
+    if (data.containsKey('eventsAggregate')) {
+      final l$eventsAggregate = data['eventsAggregate'];
+      result$data['eventsAggregate'] = l$eventsAggregate == null
+          ? null
+          : Input$EventAggregateBoolExp.fromJson(
+              (l$eventsAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('eventsCount')) {
+      final l$eventsCount = data['eventsCount'];
+      result$data['eventsCount'] = l$eventsCount == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$eventsCount as Map<String, dynamic>));
+    }
+    if (data.containsKey('extrinsics')) {
+      final l$extrinsics = data['extrinsics'];
+      result$data['extrinsics'] = l$extrinsics == null
+          ? null
+          : Input$ExtrinsicBoolExp.fromJson(
+              (l$extrinsics as Map<String, dynamic>));
+    }
+    if (data.containsKey('extrinsicsAggregate')) {
+      final l$extrinsicsAggregate = data['extrinsicsAggregate'];
+      result$data['extrinsicsAggregate'] = l$extrinsicsAggregate == null
+          ? null
+          : Input$ExtrinsicAggregateBoolExp.fromJson(
+              (l$extrinsicsAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('extrinsicsCount')) {
+      final l$extrinsicsCount = data['extrinsicsCount'];
+      result$data['extrinsicsCount'] = l$extrinsicsCount == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$extrinsicsCount as Map<String, dynamic>));
+    }
+    if (data.containsKey('extrinsicsicRoot')) {
+      final l$extrinsicsicRoot = data['extrinsicsicRoot'];
+      result$data['extrinsicsicRoot'] = l$extrinsicsicRoot == null
+          ? null
+          : Input$ByteaComparisonExp.fromJson(
+              (l$extrinsicsicRoot as Map<String, dynamic>));
+    }
+    if (data.containsKey('hash')) {
+      final l$hash = data['hash'];
+      result$data['hash'] = l$hash == null
+          ? null
+          : Input$ByteaComparisonExp.fromJson((l$hash as Map<String, dynamic>));
+    }
+    if (data.containsKey('height')) {
+      final l$height = data['height'];
+      result$data['height'] = l$height == null
+          ? null
+          : Input$IntComparisonExp.fromJson((l$height as Map<String, dynamic>));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    if (data.containsKey('implName')) {
+      final l$implName = data['implName'];
+      result$data['implName'] = l$implName == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$implName as Map<String, dynamic>));
+    }
+    if (data.containsKey('implVersion')) {
+      final l$implVersion = data['implVersion'];
+      result$data['implVersion'] = l$implVersion == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$implVersion as Map<String, dynamic>));
+    }
+    if (data.containsKey('parentHash')) {
+      final l$parentHash = data['parentHash'];
+      result$data['parentHash'] = l$parentHash == null
+          ? null
+          : Input$ByteaComparisonExp.fromJson(
+              (l$parentHash as Map<String, dynamic>));
+    }
+    if (data.containsKey('specName')) {
+      final l$specName = data['specName'];
+      result$data['specName'] = l$specName == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$specName as Map<String, dynamic>));
+    }
+    if (data.containsKey('specVersion')) {
+      final l$specVersion = data['specVersion'];
+      result$data['specVersion'] = l$specVersion == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$specVersion as Map<String, dynamic>));
+    }
+    if (data.containsKey('stateRoot')) {
+      final l$stateRoot = data['stateRoot'];
+      result$data['stateRoot'] = l$stateRoot == null
+          ? null
+          : Input$ByteaComparisonExp.fromJson(
+              (l$stateRoot as Map<String, dynamic>));
+    }
+    if (data.containsKey('timestamp')) {
+      final l$timestamp = data['timestamp'];
+      result$data['timestamp'] = l$timestamp == null
+          ? null
+          : Input$TimestamptzComparisonExp.fromJson(
+              (l$timestamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('validator')) {
+      final l$validator = data['validator'];
+      result$data['validator'] = l$validator == null
+          ? null
+          : Input$ByteaComparisonExp.fromJson(
+              (l$validator as Map<String, dynamic>));
+    }
+    return Input$BlockBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$BlockBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$BlockBoolExp>?);
+
+  Input$BlockBoolExp? get $_not => (_$data['_not'] as Input$BlockBoolExp?);
+
+  List<Input$BlockBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$BlockBoolExp>?);
+
+  Input$CallBoolExp? get calls => (_$data['calls'] as Input$CallBoolExp?);
+
+  Input$CallAggregateBoolExp? get callsAggregate =>
+      (_$data['callsAggregate'] as Input$CallAggregateBoolExp?);
+
+  Input$IntComparisonExp? get callsCount =>
+      (_$data['callsCount'] as Input$IntComparisonExp?);
+
+  Input$EventBoolExp? get events => (_$data['events'] as Input$EventBoolExp?);
+
+  Input$EventAggregateBoolExp? get eventsAggregate =>
+      (_$data['eventsAggregate'] as Input$EventAggregateBoolExp?);
+
+  Input$IntComparisonExp? get eventsCount =>
+      (_$data['eventsCount'] as Input$IntComparisonExp?);
+
+  Input$ExtrinsicBoolExp? get extrinsics =>
+      (_$data['extrinsics'] as Input$ExtrinsicBoolExp?);
+
+  Input$ExtrinsicAggregateBoolExp? get extrinsicsAggregate =>
+      (_$data['extrinsicsAggregate'] as Input$ExtrinsicAggregateBoolExp?);
+
+  Input$IntComparisonExp? get extrinsicsCount =>
+      (_$data['extrinsicsCount'] as Input$IntComparisonExp?);
+
+  Input$ByteaComparisonExp? get extrinsicsicRoot =>
+      (_$data['extrinsicsicRoot'] as Input$ByteaComparisonExp?);
+
+  Input$ByteaComparisonExp? get hash =>
+      (_$data['hash'] as Input$ByteaComparisonExp?);
+
+  Input$IntComparisonExp? get height =>
+      (_$data['height'] as Input$IntComparisonExp?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Input$StringComparisonExp? get implName =>
+      (_$data['implName'] as Input$StringComparisonExp?);
+
+  Input$IntComparisonExp? get implVersion =>
+      (_$data['implVersion'] as Input$IntComparisonExp?);
+
+  Input$ByteaComparisonExp? get parentHash =>
+      (_$data['parentHash'] as Input$ByteaComparisonExp?);
+
+  Input$StringComparisonExp? get specName =>
+      (_$data['specName'] as Input$StringComparisonExp?);
+
+  Input$IntComparisonExp? get specVersion =>
+      (_$data['specVersion'] as Input$IntComparisonExp?);
+
+  Input$ByteaComparisonExp? get stateRoot =>
+      (_$data['stateRoot'] as Input$ByteaComparisonExp?);
+
+  Input$TimestamptzComparisonExp? get timestamp =>
+      (_$data['timestamp'] as Input$TimestamptzComparisonExp?);
+
+  Input$ByteaComparisonExp? get validator =>
+      (_$data['validator'] as Input$ByteaComparisonExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('calls')) {
+      final l$calls = calls;
+      result$data['calls'] = l$calls?.toJson();
+    }
+    if (_$data.containsKey('callsAggregate')) {
+      final l$callsAggregate = callsAggregate;
+      result$data['callsAggregate'] = l$callsAggregate?.toJson();
+    }
+    if (_$data.containsKey('callsCount')) {
+      final l$callsCount = callsCount;
+      result$data['callsCount'] = l$callsCount?.toJson();
+    }
+    if (_$data.containsKey('events')) {
+      final l$events = events;
+      result$data['events'] = l$events?.toJson();
+    }
+    if (_$data.containsKey('eventsAggregate')) {
+      final l$eventsAggregate = eventsAggregate;
+      result$data['eventsAggregate'] = l$eventsAggregate?.toJson();
+    }
+    if (_$data.containsKey('eventsCount')) {
+      final l$eventsCount = eventsCount;
+      result$data['eventsCount'] = l$eventsCount?.toJson();
+    }
+    if (_$data.containsKey('extrinsics')) {
+      final l$extrinsics = extrinsics;
+      result$data['extrinsics'] = l$extrinsics?.toJson();
+    }
+    if (_$data.containsKey('extrinsicsAggregate')) {
+      final l$extrinsicsAggregate = extrinsicsAggregate;
+      result$data['extrinsicsAggregate'] = l$extrinsicsAggregate?.toJson();
+    }
+    if (_$data.containsKey('extrinsicsCount')) {
+      final l$extrinsicsCount = extrinsicsCount;
+      result$data['extrinsicsCount'] = l$extrinsicsCount?.toJson();
+    }
+    if (_$data.containsKey('extrinsicsicRoot')) {
+      final l$extrinsicsicRoot = extrinsicsicRoot;
+      result$data['extrinsicsicRoot'] = l$extrinsicsicRoot?.toJson();
+    }
+    if (_$data.containsKey('hash')) {
+      final l$hash = hash;
+      result$data['hash'] = l$hash?.toJson();
+    }
+    if (_$data.containsKey('height')) {
+      final l$height = height;
+      result$data['height'] = l$height?.toJson();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    if (_$data.containsKey('implName')) {
+      final l$implName = implName;
+      result$data['implName'] = l$implName?.toJson();
+    }
+    if (_$data.containsKey('implVersion')) {
+      final l$implVersion = implVersion;
+      result$data['implVersion'] = l$implVersion?.toJson();
+    }
+    if (_$data.containsKey('parentHash')) {
+      final l$parentHash = parentHash;
+      result$data['parentHash'] = l$parentHash?.toJson();
+    }
+    if (_$data.containsKey('specName')) {
+      final l$specName = specName;
+      result$data['specName'] = l$specName?.toJson();
+    }
+    if (_$data.containsKey('specVersion')) {
+      final l$specVersion = specVersion;
+      result$data['specVersion'] = l$specVersion?.toJson();
+    }
+    if (_$data.containsKey('stateRoot')) {
+      final l$stateRoot = stateRoot;
+      result$data['stateRoot'] = l$stateRoot?.toJson();
+    }
+    if (_$data.containsKey('timestamp')) {
+      final l$timestamp = timestamp;
+      result$data['timestamp'] = l$timestamp?.toJson();
+    }
+    if (_$data.containsKey('validator')) {
+      final l$validator = validator;
+      result$data['validator'] = l$validator?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$BlockBoolExp<Input$BlockBoolExp> get copyWith =>
+      CopyWith$Input$BlockBoolExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$BlockBoolExp) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$calls = calls;
+    final lOther$calls = other.calls;
+    if (_$data.containsKey('calls') != other._$data.containsKey('calls')) {
+      return false;
+    }
+    if (l$calls != lOther$calls) {
+      return false;
+    }
+    final l$callsAggregate = callsAggregate;
+    final lOther$callsAggregate = other.callsAggregate;
+    if (_$data.containsKey('callsAggregate') !=
+        other._$data.containsKey('callsAggregate')) {
+      return false;
+    }
+    if (l$callsAggregate != lOther$callsAggregate) {
+      return false;
+    }
+    final l$callsCount = callsCount;
+    final lOther$callsCount = other.callsCount;
+    if (_$data.containsKey('callsCount') !=
+        other._$data.containsKey('callsCount')) {
+      return false;
+    }
+    if (l$callsCount != lOther$callsCount) {
+      return false;
+    }
+    final l$events = events;
+    final lOther$events = other.events;
+    if (_$data.containsKey('events') != other._$data.containsKey('events')) {
+      return false;
+    }
+    if (l$events != lOther$events) {
+      return false;
+    }
+    final l$eventsAggregate = eventsAggregate;
+    final lOther$eventsAggregate = other.eventsAggregate;
+    if (_$data.containsKey('eventsAggregate') !=
+        other._$data.containsKey('eventsAggregate')) {
+      return false;
+    }
+    if (l$eventsAggregate != lOther$eventsAggregate) {
+      return false;
+    }
+    final l$eventsCount = eventsCount;
+    final lOther$eventsCount = other.eventsCount;
+    if (_$data.containsKey('eventsCount') !=
+        other._$data.containsKey('eventsCount')) {
+      return false;
+    }
+    if (l$eventsCount != lOther$eventsCount) {
+      return false;
+    }
+    final l$extrinsics = extrinsics;
+    final lOther$extrinsics = other.extrinsics;
+    if (_$data.containsKey('extrinsics') !=
+        other._$data.containsKey('extrinsics')) {
+      return false;
+    }
+    if (l$extrinsics != lOther$extrinsics) {
+      return false;
+    }
+    final l$extrinsicsAggregate = extrinsicsAggregate;
+    final lOther$extrinsicsAggregate = other.extrinsicsAggregate;
+    if (_$data.containsKey('extrinsicsAggregate') !=
+        other._$data.containsKey('extrinsicsAggregate')) {
+      return false;
+    }
+    if (l$extrinsicsAggregate != lOther$extrinsicsAggregate) {
+      return false;
+    }
+    final l$extrinsicsCount = extrinsicsCount;
+    final lOther$extrinsicsCount = other.extrinsicsCount;
+    if (_$data.containsKey('extrinsicsCount') !=
+        other._$data.containsKey('extrinsicsCount')) {
+      return false;
+    }
+    if (l$extrinsicsCount != lOther$extrinsicsCount) {
+      return false;
+    }
+    final l$extrinsicsicRoot = extrinsicsicRoot;
+    final lOther$extrinsicsicRoot = other.extrinsicsicRoot;
+    if (_$data.containsKey('extrinsicsicRoot') !=
+        other._$data.containsKey('extrinsicsicRoot')) {
+      return false;
+    }
+    if (l$extrinsicsicRoot != lOther$extrinsicsicRoot) {
+      return false;
+    }
+    final l$hash = hash;
+    final lOther$hash = other.hash;
+    if (_$data.containsKey('hash') != other._$data.containsKey('hash')) {
+      return false;
+    }
+    if (l$hash != lOther$hash) {
+      return false;
+    }
+    final l$height = height;
+    final lOther$height = other.height;
+    if (_$data.containsKey('height') != other._$data.containsKey('height')) {
+      return false;
+    }
+    if (l$height != lOther$height) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$implName = implName;
+    final lOther$implName = other.implName;
+    if (_$data.containsKey('implName') !=
+        other._$data.containsKey('implName')) {
+      return false;
+    }
+    if (l$implName != lOther$implName) {
+      return false;
+    }
+    final l$implVersion = implVersion;
+    final lOther$implVersion = other.implVersion;
+    if (_$data.containsKey('implVersion') !=
+        other._$data.containsKey('implVersion')) {
+      return false;
+    }
+    if (l$implVersion != lOther$implVersion) {
+      return false;
+    }
+    final l$parentHash = parentHash;
+    final lOther$parentHash = other.parentHash;
+    if (_$data.containsKey('parentHash') !=
+        other._$data.containsKey('parentHash')) {
+      return false;
+    }
+    if (l$parentHash != lOther$parentHash) {
+      return false;
+    }
+    final l$specName = specName;
+    final lOther$specName = other.specName;
+    if (_$data.containsKey('specName') !=
+        other._$data.containsKey('specName')) {
+      return false;
+    }
+    if (l$specName != lOther$specName) {
+      return false;
+    }
+    final l$specVersion = specVersion;
+    final lOther$specVersion = other.specVersion;
+    if (_$data.containsKey('specVersion') !=
+        other._$data.containsKey('specVersion')) {
+      return false;
+    }
+    if (l$specVersion != lOther$specVersion) {
+      return false;
+    }
+    final l$stateRoot = stateRoot;
+    final lOther$stateRoot = other.stateRoot;
+    if (_$data.containsKey('stateRoot') !=
+        other._$data.containsKey('stateRoot')) {
+      return false;
+    }
+    if (l$stateRoot != lOther$stateRoot) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (_$data.containsKey('timestamp') !=
+        other._$data.containsKey('timestamp')) {
+      return false;
+    }
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    final l$validator = validator;
+    final lOther$validator = other.validator;
+    if (_$data.containsKey('validator') !=
+        other._$data.containsKey('validator')) {
+      return false;
+    }
+    if (l$validator != lOther$validator) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$calls = calls;
+    final l$callsAggregate = callsAggregate;
+    final l$callsCount = callsCount;
+    final l$events = events;
+    final l$eventsAggregate = eventsAggregate;
+    final l$eventsCount = eventsCount;
+    final l$extrinsics = extrinsics;
+    final l$extrinsicsAggregate = extrinsicsAggregate;
+    final l$extrinsicsCount = extrinsicsCount;
+    final l$extrinsicsicRoot = extrinsicsicRoot;
+    final l$hash = hash;
+    final l$height = height;
+    final l$id = id;
+    final l$implName = implName;
+    final l$implVersion = implVersion;
+    final l$parentHash = parentHash;
+    final l$specName = specName;
+    final l$specVersion = specVersion;
+    final l$stateRoot = stateRoot;
+    final l$timestamp = timestamp;
+    final l$validator = validator;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('calls') ? l$calls : const {},
+      _$data.containsKey('callsAggregate') ? l$callsAggregate : const {},
+      _$data.containsKey('callsCount') ? l$callsCount : const {},
+      _$data.containsKey('events') ? l$events : const {},
+      _$data.containsKey('eventsAggregate') ? l$eventsAggregate : const {},
+      _$data.containsKey('eventsCount') ? l$eventsCount : const {},
+      _$data.containsKey('extrinsics') ? l$extrinsics : const {},
+      _$data.containsKey('extrinsicsAggregate')
+          ? l$extrinsicsAggregate
+          : const {},
+      _$data.containsKey('extrinsicsCount') ? l$extrinsicsCount : const {},
+      _$data.containsKey('extrinsicsicRoot') ? l$extrinsicsicRoot : const {},
+      _$data.containsKey('hash') ? l$hash : const {},
+      _$data.containsKey('height') ? l$height : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('implName') ? l$implName : const {},
+      _$data.containsKey('implVersion') ? l$implVersion : const {},
+      _$data.containsKey('parentHash') ? l$parentHash : const {},
+      _$data.containsKey('specName') ? l$specName : const {},
+      _$data.containsKey('specVersion') ? l$specVersion : const {},
+      _$data.containsKey('stateRoot') ? l$stateRoot : const {},
+      _$data.containsKey('timestamp') ? l$timestamp : const {},
+      _$data.containsKey('validator') ? l$validator : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$BlockBoolExp<TRes> {
+  factory CopyWith$Input$BlockBoolExp(
+    Input$BlockBoolExp instance,
+    TRes Function(Input$BlockBoolExp) then,
+  ) = _CopyWithImpl$Input$BlockBoolExp;
+
+  factory CopyWith$Input$BlockBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$BlockBoolExp;
+
+  TRes call({
+    List<Input$BlockBoolExp>? $_and,
+    Input$BlockBoolExp? $_not,
+    List<Input$BlockBoolExp>? $_or,
+    Input$CallBoolExp? calls,
+    Input$CallAggregateBoolExp? callsAggregate,
+    Input$IntComparisonExp? callsCount,
+    Input$EventBoolExp? events,
+    Input$EventAggregateBoolExp? eventsAggregate,
+    Input$IntComparisonExp? eventsCount,
+    Input$ExtrinsicBoolExp? extrinsics,
+    Input$ExtrinsicAggregateBoolExp? extrinsicsAggregate,
+    Input$IntComparisonExp? extrinsicsCount,
+    Input$ByteaComparisonExp? extrinsicsicRoot,
+    Input$ByteaComparisonExp? hash,
+    Input$IntComparisonExp? height,
+    Input$StringComparisonExp? id,
+    Input$StringComparisonExp? implName,
+    Input$IntComparisonExp? implVersion,
+    Input$ByteaComparisonExp? parentHash,
+    Input$StringComparisonExp? specName,
+    Input$IntComparisonExp? specVersion,
+    Input$ByteaComparisonExp? stateRoot,
+    Input$TimestamptzComparisonExp? timestamp,
+    Input$ByteaComparisonExp? validator,
+  });
+  TRes $_and(
+      Iterable<Input$BlockBoolExp>? Function(
+              Iterable<CopyWith$Input$BlockBoolExp<Input$BlockBoolExp>>?)
+          _fn);
+  CopyWith$Input$BlockBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$BlockBoolExp>? Function(
+              Iterable<CopyWith$Input$BlockBoolExp<Input$BlockBoolExp>>?)
+          _fn);
+  CopyWith$Input$CallBoolExp<TRes> get calls;
+  CopyWith$Input$CallAggregateBoolExp<TRes> get callsAggregate;
+  CopyWith$Input$IntComparisonExp<TRes> get callsCount;
+  CopyWith$Input$EventBoolExp<TRes> get events;
+  CopyWith$Input$EventAggregateBoolExp<TRes> get eventsAggregate;
+  CopyWith$Input$IntComparisonExp<TRes> get eventsCount;
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get extrinsics;
+  CopyWith$Input$ExtrinsicAggregateBoolExp<TRes> get extrinsicsAggregate;
+  CopyWith$Input$IntComparisonExp<TRes> get extrinsicsCount;
+  CopyWith$Input$ByteaComparisonExp<TRes> get extrinsicsicRoot;
+  CopyWith$Input$ByteaComparisonExp<TRes> get hash;
+  CopyWith$Input$IntComparisonExp<TRes> get height;
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+  CopyWith$Input$StringComparisonExp<TRes> get implName;
+  CopyWith$Input$IntComparisonExp<TRes> get implVersion;
+  CopyWith$Input$ByteaComparisonExp<TRes> get parentHash;
+  CopyWith$Input$StringComparisonExp<TRes> get specName;
+  CopyWith$Input$IntComparisonExp<TRes> get specVersion;
+  CopyWith$Input$ByteaComparisonExp<TRes> get stateRoot;
+  CopyWith$Input$TimestamptzComparisonExp<TRes> get timestamp;
+  CopyWith$Input$ByteaComparisonExp<TRes> get validator;
+}
+
+class _CopyWithImpl$Input$BlockBoolExp<TRes>
+    implements CopyWith$Input$BlockBoolExp<TRes> {
+  _CopyWithImpl$Input$BlockBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$BlockBoolExp _instance;
+
+  final TRes Function(Input$BlockBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? calls = _undefined,
+    Object? callsAggregate = _undefined,
+    Object? callsCount = _undefined,
+    Object? events = _undefined,
+    Object? eventsAggregate = _undefined,
+    Object? eventsCount = _undefined,
+    Object? extrinsics = _undefined,
+    Object? extrinsicsAggregate = _undefined,
+    Object? extrinsicsCount = _undefined,
+    Object? extrinsicsicRoot = _undefined,
+    Object? hash = _undefined,
+    Object? height = _undefined,
+    Object? id = _undefined,
+    Object? implName = _undefined,
+    Object? implVersion = _undefined,
+    Object? parentHash = _undefined,
+    Object? specName = _undefined,
+    Object? specVersion = _undefined,
+    Object? stateRoot = _undefined,
+    Object? timestamp = _undefined,
+    Object? validator = _undefined,
+  }) =>
+      _then(Input$BlockBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined) '_and': ($_and as List<Input$BlockBoolExp>?),
+        if ($_not != _undefined) '_not': ($_not as Input$BlockBoolExp?),
+        if ($_or != _undefined) '_or': ($_or as List<Input$BlockBoolExp>?),
+        if (calls != _undefined) 'calls': (calls as Input$CallBoolExp?),
+        if (callsAggregate != _undefined)
+          'callsAggregate': (callsAggregate as Input$CallAggregateBoolExp?),
+        if (callsCount != _undefined)
+          'callsCount': (callsCount as Input$IntComparisonExp?),
+        if (events != _undefined) 'events': (events as Input$EventBoolExp?),
+        if (eventsAggregate != _undefined)
+          'eventsAggregate': (eventsAggregate as Input$EventAggregateBoolExp?),
+        if (eventsCount != _undefined)
+          'eventsCount': (eventsCount as Input$IntComparisonExp?),
+        if (extrinsics != _undefined)
+          'extrinsics': (extrinsics as Input$ExtrinsicBoolExp?),
+        if (extrinsicsAggregate != _undefined)
+          'extrinsicsAggregate':
+              (extrinsicsAggregate as Input$ExtrinsicAggregateBoolExp?),
+        if (extrinsicsCount != _undefined)
+          'extrinsicsCount': (extrinsicsCount as Input$IntComparisonExp?),
+        if (extrinsicsicRoot != _undefined)
+          'extrinsicsicRoot': (extrinsicsicRoot as Input$ByteaComparisonExp?),
+        if (hash != _undefined) 'hash': (hash as Input$ByteaComparisonExp?),
+        if (height != _undefined) 'height': (height as Input$IntComparisonExp?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+        if (implName != _undefined)
+          'implName': (implName as Input$StringComparisonExp?),
+        if (implVersion != _undefined)
+          'implVersion': (implVersion as Input$IntComparisonExp?),
+        if (parentHash != _undefined)
+          'parentHash': (parentHash as Input$ByteaComparisonExp?),
+        if (specName != _undefined)
+          'specName': (specName as Input$StringComparisonExp?),
+        if (specVersion != _undefined)
+          'specVersion': (specVersion as Input$IntComparisonExp?),
+        if (stateRoot != _undefined)
+          'stateRoot': (stateRoot as Input$ByteaComparisonExp?),
+        if (timestamp != _undefined)
+          'timestamp': (timestamp as Input$TimestamptzComparisonExp?),
+        if (validator != _undefined)
+          'validator': (validator as Input$ByteaComparisonExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$BlockBoolExp>? Function(
+                  Iterable<CopyWith$Input$BlockBoolExp<Input$BlockBoolExp>>?)
+              _fn) =>
+      call(
+          $_and: _fn(_instance.$_and?.map((e) => CopyWith$Input$BlockBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$BlockBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$BlockBoolExp.stub(_then(_instance))
+        : CopyWith$Input$BlockBoolExp(local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$BlockBoolExp>? Function(
+                  Iterable<CopyWith$Input$BlockBoolExp<Input$BlockBoolExp>>?)
+              _fn) =>
+      call(
+          $_or: _fn(_instance.$_or?.map((e) => CopyWith$Input$BlockBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$CallBoolExp<TRes> get calls {
+    final local$calls = _instance.calls;
+    return local$calls == null
+        ? CopyWith$Input$CallBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CallBoolExp(local$calls, (e) => call(calls: e));
+  }
+
+  CopyWith$Input$CallAggregateBoolExp<TRes> get callsAggregate {
+    final local$callsAggregate = _instance.callsAggregate;
+    return local$callsAggregate == null
+        ? CopyWith$Input$CallAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CallAggregateBoolExp(
+            local$callsAggregate, (e) => call(callsAggregate: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get callsCount {
+    final local$callsCount = _instance.callsCount;
+    return local$callsCount == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$callsCount, (e) => call(callsCount: e));
+  }
+
+  CopyWith$Input$EventBoolExp<TRes> get events {
+    final local$events = _instance.events;
+    return local$events == null
+        ? CopyWith$Input$EventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$EventBoolExp(local$events, (e) => call(events: e));
+  }
+
+  CopyWith$Input$EventAggregateBoolExp<TRes> get eventsAggregate {
+    final local$eventsAggregate = _instance.eventsAggregate;
+    return local$eventsAggregate == null
+        ? CopyWith$Input$EventAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$EventAggregateBoolExp(
+            local$eventsAggregate, (e) => call(eventsAggregate: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get eventsCount {
+    final local$eventsCount = _instance.eventsCount;
+    return local$eventsCount == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$eventsCount, (e) => call(eventsCount: e));
+  }
+
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get extrinsics {
+    final local$extrinsics = _instance.extrinsics;
+    return local$extrinsics == null
+        ? CopyWith$Input$ExtrinsicBoolExp.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicBoolExp(
+            local$extrinsics, (e) => call(extrinsics: e));
+  }
+
+  CopyWith$Input$ExtrinsicAggregateBoolExp<TRes> get extrinsicsAggregate {
+    final local$extrinsicsAggregate = _instance.extrinsicsAggregate;
+    return local$extrinsicsAggregate == null
+        ? CopyWith$Input$ExtrinsicAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicAggregateBoolExp(
+            local$extrinsicsAggregate, (e) => call(extrinsicsAggregate: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get extrinsicsCount {
+    final local$extrinsicsCount = _instance.extrinsicsCount;
+    return local$extrinsicsCount == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$extrinsicsCount, (e) => call(extrinsicsCount: e));
+  }
+
+  CopyWith$Input$ByteaComparisonExp<TRes> get extrinsicsicRoot {
+    final local$extrinsicsicRoot = _instance.extrinsicsicRoot;
+    return local$extrinsicsicRoot == null
+        ? CopyWith$Input$ByteaComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$ByteaComparisonExp(
+            local$extrinsicsicRoot, (e) => call(extrinsicsicRoot: e));
+  }
+
+  CopyWith$Input$ByteaComparisonExp<TRes> get hash {
+    final local$hash = _instance.hash;
+    return local$hash == null
+        ? CopyWith$Input$ByteaComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$ByteaComparisonExp(local$hash, (e) => call(hash: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get height {
+    final local$height = _instance.height;
+    return local$height == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(local$height, (e) => call(height: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get implName {
+    final local$implName = _instance.implName;
+    return local$implName == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$implName, (e) => call(implName: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get implVersion {
+    final local$implVersion = _instance.implVersion;
+    return local$implVersion == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$implVersion, (e) => call(implVersion: e));
+  }
+
+  CopyWith$Input$ByteaComparisonExp<TRes> get parentHash {
+    final local$parentHash = _instance.parentHash;
+    return local$parentHash == null
+        ? CopyWith$Input$ByteaComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$ByteaComparisonExp(
+            local$parentHash, (e) => call(parentHash: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get specName {
+    final local$specName = _instance.specName;
+    return local$specName == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$specName, (e) => call(specName: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get specVersion {
+    final local$specVersion = _instance.specVersion;
+    return local$specVersion == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$specVersion, (e) => call(specVersion: e));
+  }
+
+  CopyWith$Input$ByteaComparisonExp<TRes> get stateRoot {
+    final local$stateRoot = _instance.stateRoot;
+    return local$stateRoot == null
+        ? CopyWith$Input$ByteaComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$ByteaComparisonExp(
+            local$stateRoot, (e) => call(stateRoot: e));
+  }
+
+  CopyWith$Input$TimestamptzComparisonExp<TRes> get timestamp {
+    final local$timestamp = _instance.timestamp;
+    return local$timestamp == null
+        ? CopyWith$Input$TimestamptzComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$TimestamptzComparisonExp(
+            local$timestamp, (e) => call(timestamp: e));
+  }
+
+  CopyWith$Input$ByteaComparisonExp<TRes> get validator {
+    final local$validator = _instance.validator;
+    return local$validator == null
+        ? CopyWith$Input$ByteaComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$ByteaComparisonExp(
+            local$validator, (e) => call(validator: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$BlockBoolExp<TRes>
+    implements CopyWith$Input$BlockBoolExp<TRes> {
+  _CopyWithStubImpl$Input$BlockBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$BlockBoolExp>? $_and,
+    Input$BlockBoolExp? $_not,
+    List<Input$BlockBoolExp>? $_or,
+    Input$CallBoolExp? calls,
+    Input$CallAggregateBoolExp? callsAggregate,
+    Input$IntComparisonExp? callsCount,
+    Input$EventBoolExp? events,
+    Input$EventAggregateBoolExp? eventsAggregate,
+    Input$IntComparisonExp? eventsCount,
+    Input$ExtrinsicBoolExp? extrinsics,
+    Input$ExtrinsicAggregateBoolExp? extrinsicsAggregate,
+    Input$IntComparisonExp? extrinsicsCount,
+    Input$ByteaComparisonExp? extrinsicsicRoot,
+    Input$ByteaComparisonExp? hash,
+    Input$IntComparisonExp? height,
+    Input$StringComparisonExp? id,
+    Input$StringComparisonExp? implName,
+    Input$IntComparisonExp? implVersion,
+    Input$ByteaComparisonExp? parentHash,
+    Input$StringComparisonExp? specName,
+    Input$IntComparisonExp? specVersion,
+    Input$ByteaComparisonExp? stateRoot,
+    Input$TimestamptzComparisonExp? timestamp,
+    Input$ByteaComparisonExp? validator,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$BlockBoolExp<TRes> get $_not =>
+      CopyWith$Input$BlockBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$CallBoolExp<TRes> get calls =>
+      CopyWith$Input$CallBoolExp.stub(_res);
+
+  CopyWith$Input$CallAggregateBoolExp<TRes> get callsAggregate =>
+      CopyWith$Input$CallAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get callsCount =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$EventBoolExp<TRes> get events =>
+      CopyWith$Input$EventBoolExp.stub(_res);
+
+  CopyWith$Input$EventAggregateBoolExp<TRes> get eventsAggregate =>
+      CopyWith$Input$EventAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get eventsCount =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get extrinsics =>
+      CopyWith$Input$ExtrinsicBoolExp.stub(_res);
+
+  CopyWith$Input$ExtrinsicAggregateBoolExp<TRes> get extrinsicsAggregate =>
+      CopyWith$Input$ExtrinsicAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get extrinsicsCount =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$ByteaComparisonExp<TRes> get extrinsicsicRoot =>
+      CopyWith$Input$ByteaComparisonExp.stub(_res);
+
+  CopyWith$Input$ByteaComparisonExp<TRes> get hash =>
+      CopyWith$Input$ByteaComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get height =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get implName =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get implVersion =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$ByteaComparisonExp<TRes> get parentHash =>
+      CopyWith$Input$ByteaComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get specName =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get specVersion =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$ByteaComparisonExp<TRes> get stateRoot =>
+      CopyWith$Input$ByteaComparisonExp.stub(_res);
+
+  CopyWith$Input$TimestamptzComparisonExp<TRes> get timestamp =>
+      CopyWith$Input$TimestamptzComparisonExp.stub(_res);
+
+  CopyWith$Input$ByteaComparisonExp<TRes> get validator =>
+      CopyWith$Input$ByteaComparisonExp.stub(_res);
+}
+
+class Input$BlockOrderBy {
+  factory Input$BlockOrderBy({
+    Input$CallAggregateOrderBy? callsAggregate,
+    Enum$OrderBy? callsCount,
+    Input$EventAggregateOrderBy? eventsAggregate,
+    Enum$OrderBy? eventsCount,
+    Input$ExtrinsicAggregateOrderBy? extrinsicsAggregate,
+    Enum$OrderBy? extrinsicsCount,
+    Enum$OrderBy? extrinsicsicRoot,
+    Enum$OrderBy? hash,
+    Enum$OrderBy? height,
+    Enum$OrderBy? id,
+    Enum$OrderBy? implName,
+    Enum$OrderBy? implVersion,
+    Enum$OrderBy? parentHash,
+    Enum$OrderBy? specName,
+    Enum$OrderBy? specVersion,
+    Enum$OrderBy? stateRoot,
+    Enum$OrderBy? timestamp,
+    Enum$OrderBy? validator,
+  }) =>
+      Input$BlockOrderBy._({
+        if (callsAggregate != null) r'callsAggregate': callsAggregate,
+        if (callsCount != null) r'callsCount': callsCount,
+        if (eventsAggregate != null) r'eventsAggregate': eventsAggregate,
+        if (eventsCount != null) r'eventsCount': eventsCount,
+        if (extrinsicsAggregate != null)
+          r'extrinsicsAggregate': extrinsicsAggregate,
+        if (extrinsicsCount != null) r'extrinsicsCount': extrinsicsCount,
+        if (extrinsicsicRoot != null) r'extrinsicsicRoot': extrinsicsicRoot,
+        if (hash != null) r'hash': hash,
+        if (height != null) r'height': height,
+        if (id != null) r'id': id,
+        if (implName != null) r'implName': implName,
+        if (implVersion != null) r'implVersion': implVersion,
+        if (parentHash != null) r'parentHash': parentHash,
+        if (specName != null) r'specName': specName,
+        if (specVersion != null) r'specVersion': specVersion,
+        if (stateRoot != null) r'stateRoot': stateRoot,
+        if (timestamp != null) r'timestamp': timestamp,
+        if (validator != null) r'validator': validator,
+      });
+
+  Input$BlockOrderBy._(this._$data);
+
+  factory Input$BlockOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('callsAggregate')) {
+      final l$callsAggregate = data['callsAggregate'];
+      result$data['callsAggregate'] = l$callsAggregate == null
+          ? null
+          : Input$CallAggregateOrderBy.fromJson(
+              (l$callsAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('callsCount')) {
+      final l$callsCount = data['callsCount'];
+      result$data['callsCount'] = l$callsCount == null
+          ? null
+          : fromJson$Enum$OrderBy((l$callsCount as String));
+    }
+    if (data.containsKey('eventsAggregate')) {
+      final l$eventsAggregate = data['eventsAggregate'];
+      result$data['eventsAggregate'] = l$eventsAggregate == null
+          ? null
+          : Input$EventAggregateOrderBy.fromJson(
+              (l$eventsAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('eventsCount')) {
+      final l$eventsCount = data['eventsCount'];
+      result$data['eventsCount'] = l$eventsCount == null
+          ? null
+          : fromJson$Enum$OrderBy((l$eventsCount as String));
+    }
+    if (data.containsKey('extrinsicsAggregate')) {
+      final l$extrinsicsAggregate = data['extrinsicsAggregate'];
+      result$data['extrinsicsAggregate'] = l$extrinsicsAggregate == null
+          ? null
+          : Input$ExtrinsicAggregateOrderBy.fromJson(
+              (l$extrinsicsAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('extrinsicsCount')) {
+      final l$extrinsicsCount = data['extrinsicsCount'];
+      result$data['extrinsicsCount'] = l$extrinsicsCount == null
+          ? null
+          : fromJson$Enum$OrderBy((l$extrinsicsCount as String));
+    }
+    if (data.containsKey('extrinsicsicRoot')) {
+      final l$extrinsicsicRoot = data['extrinsicsicRoot'];
+      result$data['extrinsicsicRoot'] = l$extrinsicsicRoot == null
+          ? null
+          : fromJson$Enum$OrderBy((l$extrinsicsicRoot as String));
+    }
+    if (data.containsKey('hash')) {
+      final l$hash = data['hash'];
+      result$data['hash'] =
+          l$hash == null ? null : fromJson$Enum$OrderBy((l$hash as String));
+    }
+    if (data.containsKey('height')) {
+      final l$height = data['height'];
+      result$data['height'] =
+          l$height == null ? null : fromJson$Enum$OrderBy((l$height as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('implName')) {
+      final l$implName = data['implName'];
+      result$data['implName'] = l$implName == null
+          ? null
+          : fromJson$Enum$OrderBy((l$implName as String));
+    }
+    if (data.containsKey('implVersion')) {
+      final l$implVersion = data['implVersion'];
+      result$data['implVersion'] = l$implVersion == null
+          ? null
+          : fromJson$Enum$OrderBy((l$implVersion as String));
+    }
+    if (data.containsKey('parentHash')) {
+      final l$parentHash = data['parentHash'];
+      result$data['parentHash'] = l$parentHash == null
+          ? null
+          : fromJson$Enum$OrderBy((l$parentHash as String));
+    }
+    if (data.containsKey('specName')) {
+      final l$specName = data['specName'];
+      result$data['specName'] = l$specName == null
+          ? null
+          : fromJson$Enum$OrderBy((l$specName as String));
+    }
+    if (data.containsKey('specVersion')) {
+      final l$specVersion = data['specVersion'];
+      result$data['specVersion'] = l$specVersion == null
+          ? null
+          : fromJson$Enum$OrderBy((l$specVersion as String));
+    }
+    if (data.containsKey('stateRoot')) {
+      final l$stateRoot = data['stateRoot'];
+      result$data['stateRoot'] = l$stateRoot == null
+          ? null
+          : fromJson$Enum$OrderBy((l$stateRoot as String));
+    }
+    if (data.containsKey('timestamp')) {
+      final l$timestamp = data['timestamp'];
+      result$data['timestamp'] = l$timestamp == null
+          ? null
+          : fromJson$Enum$OrderBy((l$timestamp as String));
+    }
+    if (data.containsKey('validator')) {
+      final l$validator = data['validator'];
+      result$data['validator'] = l$validator == null
+          ? null
+          : fromJson$Enum$OrderBy((l$validator as String));
+    }
+    return Input$BlockOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$CallAggregateOrderBy? get callsAggregate =>
+      (_$data['callsAggregate'] as Input$CallAggregateOrderBy?);
+
+  Enum$OrderBy? get callsCount => (_$data['callsCount'] as Enum$OrderBy?);
+
+  Input$EventAggregateOrderBy? get eventsAggregate =>
+      (_$data['eventsAggregate'] as Input$EventAggregateOrderBy?);
+
+  Enum$OrderBy? get eventsCount => (_$data['eventsCount'] as Enum$OrderBy?);
+
+  Input$ExtrinsicAggregateOrderBy? get extrinsicsAggregate =>
+      (_$data['extrinsicsAggregate'] as Input$ExtrinsicAggregateOrderBy?);
+
+  Enum$OrderBy? get extrinsicsCount =>
+      (_$data['extrinsicsCount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get extrinsicsicRoot =>
+      (_$data['extrinsicsicRoot'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get hash => (_$data['hash'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get height => (_$data['height'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get implName => (_$data['implName'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get implVersion => (_$data['implVersion'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get parentHash => (_$data['parentHash'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get specName => (_$data['specName'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get specVersion => (_$data['specVersion'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get stateRoot => (_$data['stateRoot'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get timestamp => (_$data['timestamp'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get validator => (_$data['validator'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('callsAggregate')) {
+      final l$callsAggregate = callsAggregate;
+      result$data['callsAggregate'] = l$callsAggregate?.toJson();
+    }
+    if (_$data.containsKey('callsCount')) {
+      final l$callsCount = callsCount;
+      result$data['callsCount'] =
+          l$callsCount == null ? null : toJson$Enum$OrderBy(l$callsCount);
+    }
+    if (_$data.containsKey('eventsAggregate')) {
+      final l$eventsAggregate = eventsAggregate;
+      result$data['eventsAggregate'] = l$eventsAggregate?.toJson();
+    }
+    if (_$data.containsKey('eventsCount')) {
+      final l$eventsCount = eventsCount;
+      result$data['eventsCount'] =
+          l$eventsCount == null ? null : toJson$Enum$OrderBy(l$eventsCount);
+    }
+    if (_$data.containsKey('extrinsicsAggregate')) {
+      final l$extrinsicsAggregate = extrinsicsAggregate;
+      result$data['extrinsicsAggregate'] = l$extrinsicsAggregate?.toJson();
+    }
+    if (_$data.containsKey('extrinsicsCount')) {
+      final l$extrinsicsCount = extrinsicsCount;
+      result$data['extrinsicsCount'] = l$extrinsicsCount == null
+          ? null
+          : toJson$Enum$OrderBy(l$extrinsicsCount);
+    }
+    if (_$data.containsKey('extrinsicsicRoot')) {
+      final l$extrinsicsicRoot = extrinsicsicRoot;
+      result$data['extrinsicsicRoot'] = l$extrinsicsicRoot == null
+          ? null
+          : toJson$Enum$OrderBy(l$extrinsicsicRoot);
+    }
+    if (_$data.containsKey('hash')) {
+      final l$hash = hash;
+      result$data['hash'] = l$hash == null ? null : toJson$Enum$OrderBy(l$hash);
+    }
+    if (_$data.containsKey('height')) {
+      final l$height = height;
+      result$data['height'] =
+          l$height == null ? null : toJson$Enum$OrderBy(l$height);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('implName')) {
+      final l$implName = implName;
+      result$data['implName'] =
+          l$implName == null ? null : toJson$Enum$OrderBy(l$implName);
+    }
+    if (_$data.containsKey('implVersion')) {
+      final l$implVersion = implVersion;
+      result$data['implVersion'] =
+          l$implVersion == null ? null : toJson$Enum$OrderBy(l$implVersion);
+    }
+    if (_$data.containsKey('parentHash')) {
+      final l$parentHash = parentHash;
+      result$data['parentHash'] =
+          l$parentHash == null ? null : toJson$Enum$OrderBy(l$parentHash);
+    }
+    if (_$data.containsKey('specName')) {
+      final l$specName = specName;
+      result$data['specName'] =
+          l$specName == null ? null : toJson$Enum$OrderBy(l$specName);
+    }
+    if (_$data.containsKey('specVersion')) {
+      final l$specVersion = specVersion;
+      result$data['specVersion'] =
+          l$specVersion == null ? null : toJson$Enum$OrderBy(l$specVersion);
+    }
+    if (_$data.containsKey('stateRoot')) {
+      final l$stateRoot = stateRoot;
+      result$data['stateRoot'] =
+          l$stateRoot == null ? null : toJson$Enum$OrderBy(l$stateRoot);
+    }
+    if (_$data.containsKey('timestamp')) {
+      final l$timestamp = timestamp;
+      result$data['timestamp'] =
+          l$timestamp == null ? null : toJson$Enum$OrderBy(l$timestamp);
+    }
+    if (_$data.containsKey('validator')) {
+      final l$validator = validator;
+      result$data['validator'] =
+          l$validator == null ? null : toJson$Enum$OrderBy(l$validator);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$BlockOrderBy<Input$BlockOrderBy> get copyWith =>
+      CopyWith$Input$BlockOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$BlockOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$callsAggregate = callsAggregate;
+    final lOther$callsAggregate = other.callsAggregate;
+    if (_$data.containsKey('callsAggregate') !=
+        other._$data.containsKey('callsAggregate')) {
+      return false;
+    }
+    if (l$callsAggregate != lOther$callsAggregate) {
+      return false;
+    }
+    final l$callsCount = callsCount;
+    final lOther$callsCount = other.callsCount;
+    if (_$data.containsKey('callsCount') !=
+        other._$data.containsKey('callsCount')) {
+      return false;
+    }
+    if (l$callsCount != lOther$callsCount) {
+      return false;
+    }
+    final l$eventsAggregate = eventsAggregate;
+    final lOther$eventsAggregate = other.eventsAggregate;
+    if (_$data.containsKey('eventsAggregate') !=
+        other._$data.containsKey('eventsAggregate')) {
+      return false;
+    }
+    if (l$eventsAggregate != lOther$eventsAggregate) {
+      return false;
+    }
+    final l$eventsCount = eventsCount;
+    final lOther$eventsCount = other.eventsCount;
+    if (_$data.containsKey('eventsCount') !=
+        other._$data.containsKey('eventsCount')) {
+      return false;
+    }
+    if (l$eventsCount != lOther$eventsCount) {
+      return false;
+    }
+    final l$extrinsicsAggregate = extrinsicsAggregate;
+    final lOther$extrinsicsAggregate = other.extrinsicsAggregate;
+    if (_$data.containsKey('extrinsicsAggregate') !=
+        other._$data.containsKey('extrinsicsAggregate')) {
+      return false;
+    }
+    if (l$extrinsicsAggregate != lOther$extrinsicsAggregate) {
+      return false;
+    }
+    final l$extrinsicsCount = extrinsicsCount;
+    final lOther$extrinsicsCount = other.extrinsicsCount;
+    if (_$data.containsKey('extrinsicsCount') !=
+        other._$data.containsKey('extrinsicsCount')) {
+      return false;
+    }
+    if (l$extrinsicsCount != lOther$extrinsicsCount) {
+      return false;
+    }
+    final l$extrinsicsicRoot = extrinsicsicRoot;
+    final lOther$extrinsicsicRoot = other.extrinsicsicRoot;
+    if (_$data.containsKey('extrinsicsicRoot') !=
+        other._$data.containsKey('extrinsicsicRoot')) {
+      return false;
+    }
+    if (l$extrinsicsicRoot != lOther$extrinsicsicRoot) {
+      return false;
+    }
+    final l$hash = hash;
+    final lOther$hash = other.hash;
+    if (_$data.containsKey('hash') != other._$data.containsKey('hash')) {
+      return false;
+    }
+    if (l$hash != lOther$hash) {
+      return false;
+    }
+    final l$height = height;
+    final lOther$height = other.height;
+    if (_$data.containsKey('height') != other._$data.containsKey('height')) {
+      return false;
+    }
+    if (l$height != lOther$height) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$implName = implName;
+    final lOther$implName = other.implName;
+    if (_$data.containsKey('implName') !=
+        other._$data.containsKey('implName')) {
+      return false;
+    }
+    if (l$implName != lOther$implName) {
+      return false;
+    }
+    final l$implVersion = implVersion;
+    final lOther$implVersion = other.implVersion;
+    if (_$data.containsKey('implVersion') !=
+        other._$data.containsKey('implVersion')) {
+      return false;
+    }
+    if (l$implVersion != lOther$implVersion) {
+      return false;
+    }
+    final l$parentHash = parentHash;
+    final lOther$parentHash = other.parentHash;
+    if (_$data.containsKey('parentHash') !=
+        other._$data.containsKey('parentHash')) {
+      return false;
+    }
+    if (l$parentHash != lOther$parentHash) {
+      return false;
+    }
+    final l$specName = specName;
+    final lOther$specName = other.specName;
+    if (_$data.containsKey('specName') !=
+        other._$data.containsKey('specName')) {
+      return false;
+    }
+    if (l$specName != lOther$specName) {
+      return false;
+    }
+    final l$specVersion = specVersion;
+    final lOther$specVersion = other.specVersion;
+    if (_$data.containsKey('specVersion') !=
+        other._$data.containsKey('specVersion')) {
+      return false;
+    }
+    if (l$specVersion != lOther$specVersion) {
+      return false;
+    }
+    final l$stateRoot = stateRoot;
+    final lOther$stateRoot = other.stateRoot;
+    if (_$data.containsKey('stateRoot') !=
+        other._$data.containsKey('stateRoot')) {
+      return false;
+    }
+    if (l$stateRoot != lOther$stateRoot) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (_$data.containsKey('timestamp') !=
+        other._$data.containsKey('timestamp')) {
+      return false;
+    }
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    final l$validator = validator;
+    final lOther$validator = other.validator;
+    if (_$data.containsKey('validator') !=
+        other._$data.containsKey('validator')) {
+      return false;
+    }
+    if (l$validator != lOther$validator) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$callsAggregate = callsAggregate;
+    final l$callsCount = callsCount;
+    final l$eventsAggregate = eventsAggregate;
+    final l$eventsCount = eventsCount;
+    final l$extrinsicsAggregate = extrinsicsAggregate;
+    final l$extrinsicsCount = extrinsicsCount;
+    final l$extrinsicsicRoot = extrinsicsicRoot;
+    final l$hash = hash;
+    final l$height = height;
+    final l$id = id;
+    final l$implName = implName;
+    final l$implVersion = implVersion;
+    final l$parentHash = parentHash;
+    final l$specName = specName;
+    final l$specVersion = specVersion;
+    final l$stateRoot = stateRoot;
+    final l$timestamp = timestamp;
+    final l$validator = validator;
+    return Object.hashAll([
+      _$data.containsKey('callsAggregate') ? l$callsAggregate : const {},
+      _$data.containsKey('callsCount') ? l$callsCount : const {},
+      _$data.containsKey('eventsAggregate') ? l$eventsAggregate : const {},
+      _$data.containsKey('eventsCount') ? l$eventsCount : const {},
+      _$data.containsKey('extrinsicsAggregate')
+          ? l$extrinsicsAggregate
+          : const {},
+      _$data.containsKey('extrinsicsCount') ? l$extrinsicsCount : const {},
+      _$data.containsKey('extrinsicsicRoot') ? l$extrinsicsicRoot : const {},
+      _$data.containsKey('hash') ? l$hash : const {},
+      _$data.containsKey('height') ? l$height : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('implName') ? l$implName : const {},
+      _$data.containsKey('implVersion') ? l$implVersion : const {},
+      _$data.containsKey('parentHash') ? l$parentHash : const {},
+      _$data.containsKey('specName') ? l$specName : const {},
+      _$data.containsKey('specVersion') ? l$specVersion : const {},
+      _$data.containsKey('stateRoot') ? l$stateRoot : const {},
+      _$data.containsKey('timestamp') ? l$timestamp : const {},
+      _$data.containsKey('validator') ? l$validator : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$BlockOrderBy<TRes> {
+  factory CopyWith$Input$BlockOrderBy(
+    Input$BlockOrderBy instance,
+    TRes Function(Input$BlockOrderBy) then,
+  ) = _CopyWithImpl$Input$BlockOrderBy;
+
+  factory CopyWith$Input$BlockOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$BlockOrderBy;
+
+  TRes call({
+    Input$CallAggregateOrderBy? callsAggregate,
+    Enum$OrderBy? callsCount,
+    Input$EventAggregateOrderBy? eventsAggregate,
+    Enum$OrderBy? eventsCount,
+    Input$ExtrinsicAggregateOrderBy? extrinsicsAggregate,
+    Enum$OrderBy? extrinsicsCount,
+    Enum$OrderBy? extrinsicsicRoot,
+    Enum$OrderBy? hash,
+    Enum$OrderBy? height,
+    Enum$OrderBy? id,
+    Enum$OrderBy? implName,
+    Enum$OrderBy? implVersion,
+    Enum$OrderBy? parentHash,
+    Enum$OrderBy? specName,
+    Enum$OrderBy? specVersion,
+    Enum$OrderBy? stateRoot,
+    Enum$OrderBy? timestamp,
+    Enum$OrderBy? validator,
+  });
+  CopyWith$Input$CallAggregateOrderBy<TRes> get callsAggregate;
+  CopyWith$Input$EventAggregateOrderBy<TRes> get eventsAggregate;
+  CopyWith$Input$ExtrinsicAggregateOrderBy<TRes> get extrinsicsAggregate;
+}
+
+class _CopyWithImpl$Input$BlockOrderBy<TRes>
+    implements CopyWith$Input$BlockOrderBy<TRes> {
+  _CopyWithImpl$Input$BlockOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$BlockOrderBy _instance;
+
+  final TRes Function(Input$BlockOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? callsAggregate = _undefined,
+    Object? callsCount = _undefined,
+    Object? eventsAggregate = _undefined,
+    Object? eventsCount = _undefined,
+    Object? extrinsicsAggregate = _undefined,
+    Object? extrinsicsCount = _undefined,
+    Object? extrinsicsicRoot = _undefined,
+    Object? hash = _undefined,
+    Object? height = _undefined,
+    Object? id = _undefined,
+    Object? implName = _undefined,
+    Object? implVersion = _undefined,
+    Object? parentHash = _undefined,
+    Object? specName = _undefined,
+    Object? specVersion = _undefined,
+    Object? stateRoot = _undefined,
+    Object? timestamp = _undefined,
+    Object? validator = _undefined,
+  }) =>
+      _then(Input$BlockOrderBy._({
+        ..._instance._$data,
+        if (callsAggregate != _undefined)
+          'callsAggregate': (callsAggregate as Input$CallAggregateOrderBy?),
+        if (callsCount != _undefined)
+          'callsCount': (callsCount as Enum$OrderBy?),
+        if (eventsAggregate != _undefined)
+          'eventsAggregate': (eventsAggregate as Input$EventAggregateOrderBy?),
+        if (eventsCount != _undefined)
+          'eventsCount': (eventsCount as Enum$OrderBy?),
+        if (extrinsicsAggregate != _undefined)
+          'extrinsicsAggregate':
+              (extrinsicsAggregate as Input$ExtrinsicAggregateOrderBy?),
+        if (extrinsicsCount != _undefined)
+          'extrinsicsCount': (extrinsicsCount as Enum$OrderBy?),
+        if (extrinsicsicRoot != _undefined)
+          'extrinsicsicRoot': (extrinsicsicRoot as Enum$OrderBy?),
+        if (hash != _undefined) 'hash': (hash as Enum$OrderBy?),
+        if (height != _undefined) 'height': (height as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (implName != _undefined) 'implName': (implName as Enum$OrderBy?),
+        if (implVersion != _undefined)
+          'implVersion': (implVersion as Enum$OrderBy?),
+        if (parentHash != _undefined)
+          'parentHash': (parentHash as Enum$OrderBy?),
+        if (specName != _undefined) 'specName': (specName as Enum$OrderBy?),
+        if (specVersion != _undefined)
+          'specVersion': (specVersion as Enum$OrderBy?),
+        if (stateRoot != _undefined) 'stateRoot': (stateRoot as Enum$OrderBy?),
+        if (timestamp != _undefined) 'timestamp': (timestamp as Enum$OrderBy?),
+        if (validator != _undefined) 'validator': (validator as Enum$OrderBy?),
+      }));
+
+  CopyWith$Input$CallAggregateOrderBy<TRes> get callsAggregate {
+    final local$callsAggregate = _instance.callsAggregate;
+    return local$callsAggregate == null
+        ? CopyWith$Input$CallAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CallAggregateOrderBy(
+            local$callsAggregate, (e) => call(callsAggregate: e));
+  }
+
+  CopyWith$Input$EventAggregateOrderBy<TRes> get eventsAggregate {
+    final local$eventsAggregate = _instance.eventsAggregate;
+    return local$eventsAggregate == null
+        ? CopyWith$Input$EventAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventAggregateOrderBy(
+            local$eventsAggregate, (e) => call(eventsAggregate: e));
+  }
+
+  CopyWith$Input$ExtrinsicAggregateOrderBy<TRes> get extrinsicsAggregate {
+    final local$extrinsicsAggregate = _instance.extrinsicsAggregate;
+    return local$extrinsicsAggregate == null
+        ? CopyWith$Input$ExtrinsicAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicAggregateOrderBy(
+            local$extrinsicsAggregate, (e) => call(extrinsicsAggregate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$BlockOrderBy<TRes>
+    implements CopyWith$Input$BlockOrderBy<TRes> {
+  _CopyWithStubImpl$Input$BlockOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Input$CallAggregateOrderBy? callsAggregate,
+    Enum$OrderBy? callsCount,
+    Input$EventAggregateOrderBy? eventsAggregate,
+    Enum$OrderBy? eventsCount,
+    Input$ExtrinsicAggregateOrderBy? extrinsicsAggregate,
+    Enum$OrderBy? extrinsicsCount,
+    Enum$OrderBy? extrinsicsicRoot,
+    Enum$OrderBy? hash,
+    Enum$OrderBy? height,
+    Enum$OrderBy? id,
+    Enum$OrderBy? implName,
+    Enum$OrderBy? implVersion,
+    Enum$OrderBy? parentHash,
+    Enum$OrderBy? specName,
+    Enum$OrderBy? specVersion,
+    Enum$OrderBy? stateRoot,
+    Enum$OrderBy? timestamp,
+    Enum$OrderBy? validator,
+  }) =>
+      _res;
+
+  CopyWith$Input$CallAggregateOrderBy<TRes> get callsAggregate =>
+      CopyWith$Input$CallAggregateOrderBy.stub(_res);
+
+  CopyWith$Input$EventAggregateOrderBy<TRes> get eventsAggregate =>
+      CopyWith$Input$EventAggregateOrderBy.stub(_res);
+
+  CopyWith$Input$ExtrinsicAggregateOrderBy<TRes> get extrinsicsAggregate =>
+      CopyWith$Input$ExtrinsicAggregateOrderBy.stub(_res);
+}
+
+class Input$BooleanComparisonExp {
+  factory Input$BooleanComparisonExp({
+    bool? $_eq,
+    bool? $_gt,
+    bool? $_gte,
+    List<bool>? $_in,
+    bool? $_isNull,
+    bool? $_lt,
+    bool? $_lte,
+    bool? $_neq,
+    List<bool>? $_nin,
+  }) =>
+      Input$BooleanComparisonExp._({
+        if ($_eq != null) r'_eq': $_eq,
+        if ($_gt != null) r'_gt': $_gt,
+        if ($_gte != null) r'_gte': $_gte,
+        if ($_in != null) r'_in': $_in,
+        if ($_isNull != null) r'_isNull': $_isNull,
+        if ($_lt != null) r'_lt': $_lt,
+        if ($_lte != null) r'_lte': $_lte,
+        if ($_neq != null) r'_neq': $_neq,
+        if ($_nin != null) r'_nin': $_nin,
+      });
+
+  Input$BooleanComparisonExp._(this._$data);
+
+  factory Input$BooleanComparisonExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_eq')) {
+      final l$$_eq = data['_eq'];
+      result$data['_eq'] = (l$$_eq as bool?);
+    }
+    if (data.containsKey('_gt')) {
+      final l$$_gt = data['_gt'];
+      result$data['_gt'] = (l$$_gt as bool?);
+    }
+    if (data.containsKey('_gte')) {
+      final l$$_gte = data['_gte'];
+      result$data['_gte'] = (l$$_gte as bool?);
+    }
+    if (data.containsKey('_in')) {
+      final l$$_in = data['_in'];
+      result$data['_in'] =
+          (l$$_in as List<dynamic>?)?.map((e) => (e as bool)).toList();
+    }
+    if (data.containsKey('_isNull')) {
+      final l$$_isNull = data['_isNull'];
+      result$data['_isNull'] = (l$$_isNull as bool?);
+    }
+    if (data.containsKey('_lt')) {
+      final l$$_lt = data['_lt'];
+      result$data['_lt'] = (l$$_lt as bool?);
+    }
+    if (data.containsKey('_lte')) {
+      final l$$_lte = data['_lte'];
+      result$data['_lte'] = (l$$_lte as bool?);
+    }
+    if (data.containsKey('_neq')) {
+      final l$$_neq = data['_neq'];
+      result$data['_neq'] = (l$$_neq as bool?);
+    }
+    if (data.containsKey('_nin')) {
+      final l$$_nin = data['_nin'];
+      result$data['_nin'] =
+          (l$$_nin as List<dynamic>?)?.map((e) => (e as bool)).toList();
+    }
+    return Input$BooleanComparisonExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  bool? get $_eq => (_$data['_eq'] as bool?);
+
+  bool? get $_gt => (_$data['_gt'] as bool?);
+
+  bool? get $_gte => (_$data['_gte'] as bool?);
+
+  List<bool>? get $_in => (_$data['_in'] as List<bool>?);
+
+  bool? get $_isNull => (_$data['_isNull'] as bool?);
+
+  bool? get $_lt => (_$data['_lt'] as bool?);
+
+  bool? get $_lte => (_$data['_lte'] as bool?);
+
+  bool? get $_neq => (_$data['_neq'] as bool?);
+
+  List<bool>? get $_nin => (_$data['_nin'] as List<bool>?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_eq')) {
+      final l$$_eq = $_eq;
+      result$data['_eq'] = l$$_eq;
+    }
+    if (_$data.containsKey('_gt')) {
+      final l$$_gt = $_gt;
+      result$data['_gt'] = l$$_gt;
+    }
+    if (_$data.containsKey('_gte')) {
+      final l$$_gte = $_gte;
+      result$data['_gte'] = l$$_gte;
+    }
+    if (_$data.containsKey('_in')) {
+      final l$$_in = $_in;
+      result$data['_in'] = l$$_in?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_isNull')) {
+      final l$$_isNull = $_isNull;
+      result$data['_isNull'] = l$$_isNull;
+    }
+    if (_$data.containsKey('_lt')) {
+      final l$$_lt = $_lt;
+      result$data['_lt'] = l$$_lt;
+    }
+    if (_$data.containsKey('_lte')) {
+      final l$$_lte = $_lte;
+      result$data['_lte'] = l$$_lte;
+    }
+    if (_$data.containsKey('_neq')) {
+      final l$$_neq = $_neq;
+      result$data['_neq'] = l$$_neq;
+    }
+    if (_$data.containsKey('_nin')) {
+      final l$$_nin = $_nin;
+      result$data['_nin'] = l$$_nin?.map((e) => e).toList();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$BooleanComparisonExp<Input$BooleanComparisonExp>
+      get copyWith => CopyWith$Input$BooleanComparisonExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$BooleanComparisonExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_eq = $_eq;
+    final lOther$$_eq = other.$_eq;
+    if (_$data.containsKey('_eq') != other._$data.containsKey('_eq')) {
+      return false;
+    }
+    if (l$$_eq != lOther$$_eq) {
+      return false;
+    }
+    final l$$_gt = $_gt;
+    final lOther$$_gt = other.$_gt;
+    if (_$data.containsKey('_gt') != other._$data.containsKey('_gt')) {
+      return false;
+    }
+    if (l$$_gt != lOther$$_gt) {
+      return false;
+    }
+    final l$$_gte = $_gte;
+    final lOther$$_gte = other.$_gte;
+    if (_$data.containsKey('_gte') != other._$data.containsKey('_gte')) {
+      return false;
+    }
+    if (l$$_gte != lOther$$_gte) {
+      return false;
+    }
+    final l$$_in = $_in;
+    final lOther$$_in = other.$_in;
+    if (_$data.containsKey('_in') != other._$data.containsKey('_in')) {
+      return false;
+    }
+    if (l$$_in != null && lOther$$_in != null) {
+      if (l$$_in.length != lOther$$_in.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_in.length; i++) {
+        final l$$_in$entry = l$$_in[i];
+        final lOther$$_in$entry = lOther$$_in[i];
+        if (l$$_in$entry != lOther$$_in$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_in != lOther$$_in) {
+      return false;
+    }
+    final l$$_isNull = $_isNull;
+    final lOther$$_isNull = other.$_isNull;
+    if (_$data.containsKey('_isNull') != other._$data.containsKey('_isNull')) {
+      return false;
+    }
+    if (l$$_isNull != lOther$$_isNull) {
+      return false;
+    }
+    final l$$_lt = $_lt;
+    final lOther$$_lt = other.$_lt;
+    if (_$data.containsKey('_lt') != other._$data.containsKey('_lt')) {
+      return false;
+    }
+    if (l$$_lt != lOther$$_lt) {
+      return false;
+    }
+    final l$$_lte = $_lte;
+    final lOther$$_lte = other.$_lte;
+    if (_$data.containsKey('_lte') != other._$data.containsKey('_lte')) {
+      return false;
+    }
+    if (l$$_lte != lOther$$_lte) {
+      return false;
+    }
+    final l$$_neq = $_neq;
+    final lOther$$_neq = other.$_neq;
+    if (_$data.containsKey('_neq') != other._$data.containsKey('_neq')) {
+      return false;
+    }
+    if (l$$_neq != lOther$$_neq) {
+      return false;
+    }
+    final l$$_nin = $_nin;
+    final lOther$$_nin = other.$_nin;
+    if (_$data.containsKey('_nin') != other._$data.containsKey('_nin')) {
+      return false;
+    }
+    if (l$$_nin != null && lOther$$_nin != null) {
+      if (l$$_nin.length != lOther$$_nin.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_nin.length; i++) {
+        final l$$_nin$entry = l$$_nin[i];
+        final lOther$$_nin$entry = lOther$$_nin[i];
+        if (l$$_nin$entry != lOther$$_nin$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_nin != lOther$$_nin) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_eq = $_eq;
+    final l$$_gt = $_gt;
+    final l$$_gte = $_gte;
+    final l$$_in = $_in;
+    final l$$_isNull = $_isNull;
+    final l$$_lt = $_lt;
+    final l$$_lte = $_lte;
+    final l$$_neq = $_neq;
+    final l$$_nin = $_nin;
+    return Object.hashAll([
+      _$data.containsKey('_eq') ? l$$_eq : const {},
+      _$data.containsKey('_gt') ? l$$_gt : const {},
+      _$data.containsKey('_gte') ? l$$_gte : const {},
+      _$data.containsKey('_in')
+          ? l$$_in == null
+              ? null
+              : Object.hashAll(l$$_in.map((v) => v))
+          : const {},
+      _$data.containsKey('_isNull') ? l$$_isNull : const {},
+      _$data.containsKey('_lt') ? l$$_lt : const {},
+      _$data.containsKey('_lte') ? l$$_lte : const {},
+      _$data.containsKey('_neq') ? l$$_neq : const {},
+      _$data.containsKey('_nin')
+          ? l$$_nin == null
+              ? null
+              : Object.hashAll(l$$_nin.map((v) => v))
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$BooleanComparisonExp<TRes> {
+  factory CopyWith$Input$BooleanComparisonExp(
+    Input$BooleanComparisonExp instance,
+    TRes Function(Input$BooleanComparisonExp) then,
+  ) = _CopyWithImpl$Input$BooleanComparisonExp;
+
+  factory CopyWith$Input$BooleanComparisonExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$BooleanComparisonExp;
+
+  TRes call({
+    bool? $_eq,
+    bool? $_gt,
+    bool? $_gte,
+    List<bool>? $_in,
+    bool? $_isNull,
+    bool? $_lt,
+    bool? $_lte,
+    bool? $_neq,
+    List<bool>? $_nin,
+  });
+}
+
+class _CopyWithImpl$Input$BooleanComparisonExp<TRes>
+    implements CopyWith$Input$BooleanComparisonExp<TRes> {
+  _CopyWithImpl$Input$BooleanComparisonExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$BooleanComparisonExp _instance;
+
+  final TRes Function(Input$BooleanComparisonExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_eq = _undefined,
+    Object? $_gt = _undefined,
+    Object? $_gte = _undefined,
+    Object? $_in = _undefined,
+    Object? $_isNull = _undefined,
+    Object? $_lt = _undefined,
+    Object? $_lte = _undefined,
+    Object? $_neq = _undefined,
+    Object? $_nin = _undefined,
+  }) =>
+      _then(Input$BooleanComparisonExp._({
+        ..._instance._$data,
+        if ($_eq != _undefined) '_eq': ($_eq as bool?),
+        if ($_gt != _undefined) '_gt': ($_gt as bool?),
+        if ($_gte != _undefined) '_gte': ($_gte as bool?),
+        if ($_in != _undefined) '_in': ($_in as List<bool>?),
+        if ($_isNull != _undefined) '_isNull': ($_isNull as bool?),
+        if ($_lt != _undefined) '_lt': ($_lt as bool?),
+        if ($_lte != _undefined) '_lte': ($_lte as bool?),
+        if ($_neq != _undefined) '_neq': ($_neq as bool?),
+        if ($_nin != _undefined) '_nin': ($_nin as List<bool>?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$BooleanComparisonExp<TRes>
+    implements CopyWith$Input$BooleanComparisonExp<TRes> {
+  _CopyWithStubImpl$Input$BooleanComparisonExp(this._res);
+
+  TRes _res;
+
+  call({
+    bool? $_eq,
+    bool? $_gt,
+    bool? $_gte,
+    List<bool>? $_in,
+    bool? $_isNull,
+    bool? $_lt,
+    bool? $_lte,
+    bool? $_neq,
+    List<bool>? $_nin,
+  }) =>
+      _res;
+}
+
+class Input$ByteaComparisonExp {
+  factory Input$ByteaComparisonExp({
+    Uint8List? $_eq,
+    Uint8List? $_gt,
+    Uint8List? $_gte,
+    List<Uint8List>? $_in,
+    bool? $_isNull,
+    Uint8List? $_lt,
+    Uint8List? $_lte,
+    Uint8List? $_neq,
+    List<Uint8List>? $_nin,
+  }) =>
+      Input$ByteaComparisonExp._({
+        if ($_eq != null) r'_eq': $_eq,
+        if ($_gt != null) r'_gt': $_gt,
+        if ($_gte != null) r'_gte': $_gte,
+        if ($_in != null) r'_in': $_in,
+        if ($_isNull != null) r'_isNull': $_isNull,
+        if ($_lt != null) r'_lt': $_lt,
+        if ($_lte != null) r'_lte': $_lte,
+        if ($_neq != null) r'_neq': $_neq,
+        if ($_nin != null) r'_nin': $_nin,
+      });
+
+  Input$ByteaComparisonExp._(this._$data);
+
+  factory Input$ByteaComparisonExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_eq')) {
+      final l$$_eq = data['_eq'];
+      result$data['_eq'] = (l$$_eq as Uint8List?);
+    }
+    if (data.containsKey('_gt')) {
+      final l$$_gt = data['_gt'];
+      result$data['_gt'] = (l$$_gt as Uint8List?);
+    }
+    if (data.containsKey('_gte')) {
+      final l$$_gte = data['_gte'];
+      result$data['_gte'] = (l$$_gte as Uint8List?);
+    }
+    if (data.containsKey('_in')) {
+      final l$$_in = data['_in'];
+      result$data['_in'] =
+          (l$$_in as List<dynamic>?)?.map((e) => (e as Uint8List)).toList();
+    }
+    if (data.containsKey('_isNull')) {
+      final l$$_isNull = data['_isNull'];
+      result$data['_isNull'] = (l$$_isNull as bool?);
+    }
+    if (data.containsKey('_lt')) {
+      final l$$_lt = data['_lt'];
+      result$data['_lt'] = (l$$_lt as Uint8List?);
+    }
+    if (data.containsKey('_lte')) {
+      final l$$_lte = data['_lte'];
+      result$data['_lte'] = (l$$_lte as Uint8List?);
+    }
+    if (data.containsKey('_neq')) {
+      final l$$_neq = data['_neq'];
+      result$data['_neq'] = (l$$_neq as Uint8List?);
+    }
+    if (data.containsKey('_nin')) {
+      final l$$_nin = data['_nin'];
+      result$data['_nin'] =
+          (l$$_nin as List<dynamic>?)?.map((e) => (e as Uint8List)).toList();
+    }
+    return Input$ByteaComparisonExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Uint8List? get $_eq => (_$data['_eq'] as Uint8List?);
+
+  Uint8List? get $_gt => (_$data['_gt'] as Uint8List?);
+
+  Uint8List? get $_gte => (_$data['_gte'] as Uint8List?);
+
+  List<Uint8List>? get $_in => (_$data['_in'] as List<Uint8List>?);
+
+  bool? get $_isNull => (_$data['_isNull'] as bool?);
+
+  Uint8List? get $_lt => (_$data['_lt'] as Uint8List?);
+
+  Uint8List? get $_lte => (_$data['_lte'] as Uint8List?);
+
+  Uint8List? get $_neq => (_$data['_neq'] as Uint8List?);
+
+  List<Uint8List>? get $_nin => (_$data['_nin'] as List<Uint8List>?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_eq')) {
+      final l$$_eq = $_eq;
+      result$data['_eq'] = l$$_eq;
+    }
+    if (_$data.containsKey('_gt')) {
+      final l$$_gt = $_gt;
+      result$data['_gt'] = l$$_gt;
+    }
+    if (_$data.containsKey('_gte')) {
+      final l$$_gte = $_gte;
+      result$data['_gte'] = l$$_gte;
+    }
+    if (_$data.containsKey('_in')) {
+      final l$$_in = $_in;
+      result$data['_in'] = l$$_in?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_isNull')) {
+      final l$$_isNull = $_isNull;
+      result$data['_isNull'] = l$$_isNull;
+    }
+    if (_$data.containsKey('_lt')) {
+      final l$$_lt = $_lt;
+      result$data['_lt'] = l$$_lt;
+    }
+    if (_$data.containsKey('_lte')) {
+      final l$$_lte = $_lte;
+      result$data['_lte'] = l$$_lte;
+    }
+    if (_$data.containsKey('_neq')) {
+      final l$$_neq = $_neq;
+      result$data['_neq'] = l$$_neq;
+    }
+    if (_$data.containsKey('_nin')) {
+      final l$$_nin = $_nin;
+      result$data['_nin'] = l$$_nin?.map((e) => e).toList();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ByteaComparisonExp<Input$ByteaComparisonExp> get copyWith =>
+      CopyWith$Input$ByteaComparisonExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ByteaComparisonExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_eq = $_eq;
+    final lOther$$_eq = other.$_eq;
+    if (_$data.containsKey('_eq') != other._$data.containsKey('_eq')) {
+      return false;
+    }
+    if (l$$_eq != lOther$$_eq) {
+      return false;
+    }
+    final l$$_gt = $_gt;
+    final lOther$$_gt = other.$_gt;
+    if (_$data.containsKey('_gt') != other._$data.containsKey('_gt')) {
+      return false;
+    }
+    if (l$$_gt != lOther$$_gt) {
+      return false;
+    }
+    final l$$_gte = $_gte;
+    final lOther$$_gte = other.$_gte;
+    if (_$data.containsKey('_gte') != other._$data.containsKey('_gte')) {
+      return false;
+    }
+    if (l$$_gte != lOther$$_gte) {
+      return false;
+    }
+    final l$$_in = $_in;
+    final lOther$$_in = other.$_in;
+    if (_$data.containsKey('_in') != other._$data.containsKey('_in')) {
+      return false;
+    }
+    if (l$$_in != null && lOther$$_in != null) {
+      if (l$$_in.length != lOther$$_in.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_in.length; i++) {
+        final l$$_in$entry = l$$_in[i];
+        final lOther$$_in$entry = lOther$$_in[i];
+        if (l$$_in$entry != lOther$$_in$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_in != lOther$$_in) {
+      return false;
+    }
+    final l$$_isNull = $_isNull;
+    final lOther$$_isNull = other.$_isNull;
+    if (_$data.containsKey('_isNull') != other._$data.containsKey('_isNull')) {
+      return false;
+    }
+    if (l$$_isNull != lOther$$_isNull) {
+      return false;
+    }
+    final l$$_lt = $_lt;
+    final lOther$$_lt = other.$_lt;
+    if (_$data.containsKey('_lt') != other._$data.containsKey('_lt')) {
+      return false;
+    }
+    if (l$$_lt != lOther$$_lt) {
+      return false;
+    }
+    final l$$_lte = $_lte;
+    final lOther$$_lte = other.$_lte;
+    if (_$data.containsKey('_lte') != other._$data.containsKey('_lte')) {
+      return false;
+    }
+    if (l$$_lte != lOther$$_lte) {
+      return false;
+    }
+    final l$$_neq = $_neq;
+    final lOther$$_neq = other.$_neq;
+    if (_$data.containsKey('_neq') != other._$data.containsKey('_neq')) {
+      return false;
+    }
+    if (l$$_neq != lOther$$_neq) {
+      return false;
+    }
+    final l$$_nin = $_nin;
+    final lOther$$_nin = other.$_nin;
+    if (_$data.containsKey('_nin') != other._$data.containsKey('_nin')) {
+      return false;
+    }
+    if (l$$_nin != null && lOther$$_nin != null) {
+      if (l$$_nin.length != lOther$$_nin.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_nin.length; i++) {
+        final l$$_nin$entry = l$$_nin[i];
+        final lOther$$_nin$entry = lOther$$_nin[i];
+        if (l$$_nin$entry != lOther$$_nin$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_nin != lOther$$_nin) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_eq = $_eq;
+    final l$$_gt = $_gt;
+    final l$$_gte = $_gte;
+    final l$$_in = $_in;
+    final l$$_isNull = $_isNull;
+    final l$$_lt = $_lt;
+    final l$$_lte = $_lte;
+    final l$$_neq = $_neq;
+    final l$$_nin = $_nin;
+    return Object.hashAll([
+      _$data.containsKey('_eq') ? l$$_eq : const {},
+      _$data.containsKey('_gt') ? l$$_gt : const {},
+      _$data.containsKey('_gte') ? l$$_gte : const {},
+      _$data.containsKey('_in')
+          ? l$$_in == null
+              ? null
+              : Object.hashAll(l$$_in.map((v) => v))
+          : const {},
+      _$data.containsKey('_isNull') ? l$$_isNull : const {},
+      _$data.containsKey('_lt') ? l$$_lt : const {},
+      _$data.containsKey('_lte') ? l$$_lte : const {},
+      _$data.containsKey('_neq') ? l$$_neq : const {},
+      _$data.containsKey('_nin')
+          ? l$$_nin == null
+              ? null
+              : Object.hashAll(l$$_nin.map((v) => v))
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ByteaComparisonExp<TRes> {
+  factory CopyWith$Input$ByteaComparisonExp(
+    Input$ByteaComparisonExp instance,
+    TRes Function(Input$ByteaComparisonExp) then,
+  ) = _CopyWithImpl$Input$ByteaComparisonExp;
+
+  factory CopyWith$Input$ByteaComparisonExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$ByteaComparisonExp;
+
+  TRes call({
+    Uint8List? $_eq,
+    Uint8List? $_gt,
+    Uint8List? $_gte,
+    List<Uint8List>? $_in,
+    bool? $_isNull,
+    Uint8List? $_lt,
+    Uint8List? $_lte,
+    Uint8List? $_neq,
+    List<Uint8List>? $_nin,
+  });
+}
+
+class _CopyWithImpl$Input$ByteaComparisonExp<TRes>
+    implements CopyWith$Input$ByteaComparisonExp<TRes> {
+  _CopyWithImpl$Input$ByteaComparisonExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ByteaComparisonExp _instance;
+
+  final TRes Function(Input$ByteaComparisonExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_eq = _undefined,
+    Object? $_gt = _undefined,
+    Object? $_gte = _undefined,
+    Object? $_in = _undefined,
+    Object? $_isNull = _undefined,
+    Object? $_lt = _undefined,
+    Object? $_lte = _undefined,
+    Object? $_neq = _undefined,
+    Object? $_nin = _undefined,
+  }) =>
+      _then(Input$ByteaComparisonExp._({
+        ..._instance._$data,
+        if ($_eq != _undefined) '_eq': ($_eq as Uint8List?),
+        if ($_gt != _undefined) '_gt': ($_gt as Uint8List?),
+        if ($_gte != _undefined) '_gte': ($_gte as Uint8List?),
+        if ($_in != _undefined) '_in': ($_in as List<Uint8List>?),
+        if ($_isNull != _undefined) '_isNull': ($_isNull as bool?),
+        if ($_lt != _undefined) '_lt': ($_lt as Uint8List?),
+        if ($_lte != _undefined) '_lte': ($_lte as Uint8List?),
+        if ($_neq != _undefined) '_neq': ($_neq as Uint8List?),
+        if ($_nin != _undefined) '_nin': ($_nin as List<Uint8List>?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ByteaComparisonExp<TRes>
+    implements CopyWith$Input$ByteaComparisonExp<TRes> {
+  _CopyWithStubImpl$Input$ByteaComparisonExp(this._res);
+
+  TRes _res;
+
+  call({
+    Uint8List? $_eq,
+    Uint8List? $_gt,
+    Uint8List? $_gte,
+    List<Uint8List>? $_in,
+    bool? $_isNull,
+    Uint8List? $_lt,
+    Uint8List? $_lte,
+    Uint8List? $_neq,
+    List<Uint8List>? $_nin,
+  }) =>
+      _res;
+}
+
+class Input$CallAggregateBoolExp {
+  factory Input$CallAggregateBoolExp({
+    Input$callAggregateBoolExpBool_and? bool_and,
+    Input$callAggregateBoolExpBool_or? bool_or,
+    Input$callAggregateBoolExpCount? count,
+  }) =>
+      Input$CallAggregateBoolExp._({
+        if (bool_and != null) r'bool_and': bool_and,
+        if (bool_or != null) r'bool_or': bool_or,
+        if (count != null) r'count': count,
+      });
+
+  Input$CallAggregateBoolExp._(this._$data);
+
+  factory Input$CallAggregateBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('bool_and')) {
+      final l$bool_and = data['bool_and'];
+      result$data['bool_and'] = l$bool_and == null
+          ? null
+          : Input$callAggregateBoolExpBool_and.fromJson(
+              (l$bool_and as Map<String, dynamic>));
+    }
+    if (data.containsKey('bool_or')) {
+      final l$bool_or = data['bool_or'];
+      result$data['bool_or'] = l$bool_or == null
+          ? null
+          : Input$callAggregateBoolExpBool_or.fromJson(
+              (l$bool_or as Map<String, dynamic>));
+    }
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] = l$count == null
+          ? null
+          : Input$callAggregateBoolExpCount.fromJson(
+              (l$count as Map<String, dynamic>));
+    }
+    return Input$CallAggregateBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$callAggregateBoolExpBool_and? get bool_and =>
+      (_$data['bool_and'] as Input$callAggregateBoolExpBool_and?);
+
+  Input$callAggregateBoolExpBool_or? get bool_or =>
+      (_$data['bool_or'] as Input$callAggregateBoolExpBool_or?);
+
+  Input$callAggregateBoolExpCount? get count =>
+      (_$data['count'] as Input$callAggregateBoolExpCount?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('bool_and')) {
+      final l$bool_and = bool_and;
+      result$data['bool_and'] = l$bool_and?.toJson();
+    }
+    if (_$data.containsKey('bool_or')) {
+      final l$bool_or = bool_or;
+      result$data['bool_or'] = l$bool_or?.toJson();
+    }
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] = l$count?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CallAggregateBoolExp<Input$CallAggregateBoolExp>
+      get copyWith => CopyWith$Input$CallAggregateBoolExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CallAggregateBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$bool_and = bool_and;
+    final lOther$bool_and = other.bool_and;
+    if (_$data.containsKey('bool_and') !=
+        other._$data.containsKey('bool_and')) {
+      return false;
+    }
+    if (l$bool_and != lOther$bool_and) {
+      return false;
+    }
+    final l$bool_or = bool_or;
+    final lOther$bool_or = other.bool_or;
+    if (_$data.containsKey('bool_or') != other._$data.containsKey('bool_or')) {
+      return false;
+    }
+    if (l$bool_or != lOther$bool_or) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$bool_and = bool_and;
+    final l$bool_or = bool_or;
+    final l$count = count;
+    return Object.hashAll([
+      _$data.containsKey('bool_and') ? l$bool_and : const {},
+      _$data.containsKey('bool_or') ? l$bool_or : const {},
+      _$data.containsKey('count') ? l$count : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CallAggregateBoolExp<TRes> {
+  factory CopyWith$Input$CallAggregateBoolExp(
+    Input$CallAggregateBoolExp instance,
+    TRes Function(Input$CallAggregateBoolExp) then,
+  ) = _CopyWithImpl$Input$CallAggregateBoolExp;
+
+  factory CopyWith$Input$CallAggregateBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$CallAggregateBoolExp;
+
+  TRes call({
+    Input$callAggregateBoolExpBool_and? bool_and,
+    Input$callAggregateBoolExpBool_or? bool_or,
+    Input$callAggregateBoolExpCount? count,
+  });
+  CopyWith$Input$callAggregateBoolExpBool_and<TRes> get bool_and;
+  CopyWith$Input$callAggregateBoolExpBool_or<TRes> get bool_or;
+  CopyWith$Input$callAggregateBoolExpCount<TRes> get count;
+}
+
+class _CopyWithImpl$Input$CallAggregateBoolExp<TRes>
+    implements CopyWith$Input$CallAggregateBoolExp<TRes> {
+  _CopyWithImpl$Input$CallAggregateBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CallAggregateBoolExp _instance;
+
+  final TRes Function(Input$CallAggregateBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? bool_and = _undefined,
+    Object? bool_or = _undefined,
+    Object? count = _undefined,
+  }) =>
+      _then(Input$CallAggregateBoolExp._({
+        ..._instance._$data,
+        if (bool_and != _undefined)
+          'bool_and': (bool_and as Input$callAggregateBoolExpBool_and?),
+        if (bool_or != _undefined)
+          'bool_or': (bool_or as Input$callAggregateBoolExpBool_or?),
+        if (count != _undefined)
+          'count': (count as Input$callAggregateBoolExpCount?),
+      }));
+
+  CopyWith$Input$callAggregateBoolExpBool_and<TRes> get bool_and {
+    final local$bool_and = _instance.bool_and;
+    return local$bool_and == null
+        ? CopyWith$Input$callAggregateBoolExpBool_and.stub(_then(_instance))
+        : CopyWith$Input$callAggregateBoolExpBool_and(
+            local$bool_and, (e) => call(bool_and: e));
+  }
+
+  CopyWith$Input$callAggregateBoolExpBool_or<TRes> get bool_or {
+    final local$bool_or = _instance.bool_or;
+    return local$bool_or == null
+        ? CopyWith$Input$callAggregateBoolExpBool_or.stub(_then(_instance))
+        : CopyWith$Input$callAggregateBoolExpBool_or(
+            local$bool_or, (e) => call(bool_or: e));
+  }
+
+  CopyWith$Input$callAggregateBoolExpCount<TRes> get count {
+    final local$count = _instance.count;
+    return local$count == null
+        ? CopyWith$Input$callAggregateBoolExpCount.stub(_then(_instance))
+        : CopyWith$Input$callAggregateBoolExpCount(
+            local$count, (e) => call(count: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$CallAggregateBoolExp<TRes>
+    implements CopyWith$Input$CallAggregateBoolExp<TRes> {
+  _CopyWithStubImpl$Input$CallAggregateBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    Input$callAggregateBoolExpBool_and? bool_and,
+    Input$callAggregateBoolExpBool_or? bool_or,
+    Input$callAggregateBoolExpCount? count,
+  }) =>
+      _res;
+
+  CopyWith$Input$callAggregateBoolExpBool_and<TRes> get bool_and =>
+      CopyWith$Input$callAggregateBoolExpBool_and.stub(_res);
+
+  CopyWith$Input$callAggregateBoolExpBool_or<TRes> get bool_or =>
+      CopyWith$Input$callAggregateBoolExpBool_or.stub(_res);
+
+  CopyWith$Input$callAggregateBoolExpCount<TRes> get count =>
+      CopyWith$Input$callAggregateBoolExpCount.stub(_res);
+}
+
+class Input$callAggregateBoolExpBool_and {
+  factory Input$callAggregateBoolExpBool_and({
+    required Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns
+        arguments,
+    bool? distinct,
+    Input$CallBoolExp? filter,
+    required Input$BooleanComparisonExp predicate,
+  }) =>
+      Input$callAggregateBoolExpBool_and._({
+        r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$callAggregateBoolExpBool_and._(this._$data);
+
+  factory Input$callAggregateBoolExpBool_and.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    final l$arguments = data['arguments'];
+    result$data['arguments'] =
+        fromJson$Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns(
+            (l$arguments as String));
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$CallBoolExp.fromJson((l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] = Input$BooleanComparisonExp.fromJson(
+        (l$predicate as Map<String, dynamic>));
+    return Input$callAggregateBoolExpBool_and._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns
+      get arguments => (_$data['arguments']
+          as Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$CallBoolExp? get filter => (_$data['filter'] as Input$CallBoolExp?);
+
+  Input$BooleanComparisonExp get predicate =>
+      (_$data['predicate'] as Input$BooleanComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    final l$arguments = arguments;
+    result$data['arguments'] =
+        toJson$Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns(
+            l$arguments);
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$callAggregateBoolExpBool_and<
+          Input$callAggregateBoolExpBool_and>
+      get copyWith => CopyWith$Input$callAggregateBoolExpBool_and(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$callAggregateBoolExpBool_and) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      l$arguments,
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$callAggregateBoolExpBool_and<TRes> {
+  factory CopyWith$Input$callAggregateBoolExpBool_and(
+    Input$callAggregateBoolExpBool_and instance,
+    TRes Function(Input$callAggregateBoolExpBool_and) then,
+  ) = _CopyWithImpl$Input$callAggregateBoolExpBool_and;
+
+  factory CopyWith$Input$callAggregateBoolExpBool_and.stub(TRes res) =
+      _CopyWithStubImpl$Input$callAggregateBoolExpBool_and;
+
+  TRes call({
+    Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns?
+        arguments,
+    bool? distinct,
+    Input$CallBoolExp? filter,
+    Input$BooleanComparisonExp? predicate,
+  });
+  CopyWith$Input$CallBoolExp<TRes> get filter;
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$callAggregateBoolExpBool_and<TRes>
+    implements CopyWith$Input$callAggregateBoolExpBool_and<TRes> {
+  _CopyWithImpl$Input$callAggregateBoolExpBool_and(
+    this._instance,
+    this._then,
+  );
+
+  final Input$callAggregateBoolExpBool_and _instance;
+
+  final TRes Function(Input$callAggregateBoolExpBool_and) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$callAggregateBoolExpBool_and._({
+        ..._instance._$data,
+        if (arguments != _undefined && arguments != null)
+          'arguments': (arguments
+              as Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined) 'filter': (filter as Input$CallBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$BooleanComparisonExp),
+      }));
+
+  CopyWith$Input$CallBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$CallBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CallBoolExp(local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$BooleanComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$callAggregateBoolExpBool_and<TRes>
+    implements CopyWith$Input$callAggregateBoolExpBool_and<TRes> {
+  _CopyWithStubImpl$Input$callAggregateBoolExpBool_and(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns?
+        arguments,
+    bool? distinct,
+    Input$CallBoolExp? filter,
+    Input$BooleanComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$CallBoolExp<TRes> get filter =>
+      CopyWith$Input$CallBoolExp.stub(_res);
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate =>
+      CopyWith$Input$BooleanComparisonExp.stub(_res);
+}
+
+class Input$callAggregateBoolExpBool_or {
+  factory Input$callAggregateBoolExpBool_or({
+    required Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns
+        arguments,
+    bool? distinct,
+    Input$CallBoolExp? filter,
+    required Input$BooleanComparisonExp predicate,
+  }) =>
+      Input$callAggregateBoolExpBool_or._({
+        r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$callAggregateBoolExpBool_or._(this._$data);
+
+  factory Input$callAggregateBoolExpBool_or.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    final l$arguments = data['arguments'];
+    result$data['arguments'] =
+        fromJson$Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns(
+            (l$arguments as String));
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$CallBoolExp.fromJson((l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] = Input$BooleanComparisonExp.fromJson(
+        (l$predicate as Map<String, dynamic>));
+    return Input$callAggregateBoolExpBool_or._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns
+      get arguments => (_$data['arguments']
+          as Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$CallBoolExp? get filter => (_$data['filter'] as Input$CallBoolExp?);
+
+  Input$BooleanComparisonExp get predicate =>
+      (_$data['predicate'] as Input$BooleanComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    final l$arguments = arguments;
+    result$data['arguments'] =
+        toJson$Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns(
+            l$arguments);
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$callAggregateBoolExpBool_or<Input$callAggregateBoolExpBool_or>
+      get copyWith => CopyWith$Input$callAggregateBoolExpBool_or(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$callAggregateBoolExpBool_or) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      l$arguments,
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$callAggregateBoolExpBool_or<TRes> {
+  factory CopyWith$Input$callAggregateBoolExpBool_or(
+    Input$callAggregateBoolExpBool_or instance,
+    TRes Function(Input$callAggregateBoolExpBool_or) then,
+  ) = _CopyWithImpl$Input$callAggregateBoolExpBool_or;
+
+  factory CopyWith$Input$callAggregateBoolExpBool_or.stub(TRes res) =
+      _CopyWithStubImpl$Input$callAggregateBoolExpBool_or;
+
+  TRes call({
+    Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns? arguments,
+    bool? distinct,
+    Input$CallBoolExp? filter,
+    Input$BooleanComparisonExp? predicate,
+  });
+  CopyWith$Input$CallBoolExp<TRes> get filter;
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$callAggregateBoolExpBool_or<TRes>
+    implements CopyWith$Input$callAggregateBoolExpBool_or<TRes> {
+  _CopyWithImpl$Input$callAggregateBoolExpBool_or(
+    this._instance,
+    this._then,
+  );
+
+  final Input$callAggregateBoolExpBool_or _instance;
+
+  final TRes Function(Input$callAggregateBoolExpBool_or) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$callAggregateBoolExpBool_or._({
+        ..._instance._$data,
+        if (arguments != _undefined && arguments != null)
+          'arguments': (arguments
+              as Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined) 'filter': (filter as Input$CallBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$BooleanComparisonExp),
+      }));
+
+  CopyWith$Input$CallBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$CallBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CallBoolExp(local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$BooleanComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$callAggregateBoolExpBool_or<TRes>
+    implements CopyWith$Input$callAggregateBoolExpBool_or<TRes> {
+  _CopyWithStubImpl$Input$callAggregateBoolExpBool_or(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns? arguments,
+    bool? distinct,
+    Input$CallBoolExp? filter,
+    Input$BooleanComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$CallBoolExp<TRes> get filter =>
+      CopyWith$Input$CallBoolExp.stub(_res);
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate =>
+      CopyWith$Input$BooleanComparisonExp.stub(_res);
+}
+
+class Input$callAggregateBoolExpCount {
+  factory Input$callAggregateBoolExpCount({
+    List<Enum$CallSelectColumn>? arguments,
+    bool? distinct,
+    Input$CallBoolExp? filter,
+    required Input$IntComparisonExp predicate,
+  }) =>
+      Input$callAggregateBoolExpCount._({
+        if (arguments != null) r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$callAggregateBoolExpCount._(this._$data);
+
+  factory Input$callAggregateBoolExpCount.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('arguments')) {
+      final l$arguments = data['arguments'];
+      result$data['arguments'] = (l$arguments as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$CallSelectColumn((e as String)))
+          .toList();
+    }
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$CallBoolExp.fromJson((l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] =
+        Input$IntComparisonExp.fromJson((l$predicate as Map<String, dynamic>));
+    return Input$callAggregateBoolExpCount._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Enum$CallSelectColumn>? get arguments =>
+      (_$data['arguments'] as List<Enum$CallSelectColumn>?);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$CallBoolExp? get filter => (_$data['filter'] as Input$CallBoolExp?);
+
+  Input$IntComparisonExp get predicate =>
+      (_$data['predicate'] as Input$IntComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('arguments')) {
+      final l$arguments = arguments;
+      result$data['arguments'] =
+          l$arguments?.map((e) => toJson$Enum$CallSelectColumn(e)).toList();
+    }
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$callAggregateBoolExpCount<Input$callAggregateBoolExpCount>
+      get copyWith => CopyWith$Input$callAggregateBoolExpCount(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$callAggregateBoolExpCount) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (_$data.containsKey('arguments') !=
+        other._$data.containsKey('arguments')) {
+      return false;
+    }
+    if (l$arguments != null && lOther$arguments != null) {
+      if (l$arguments.length != lOther$arguments.length) {
+        return false;
+      }
+      for (int i = 0; i < l$arguments.length; i++) {
+        final l$arguments$entry = l$arguments[i];
+        final lOther$arguments$entry = lOther$arguments[i];
+        if (l$arguments$entry != lOther$arguments$entry) {
+          return false;
+        }
+      }
+    } else if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      _$data.containsKey('arguments')
+          ? l$arguments == null
+              ? null
+              : Object.hashAll(l$arguments.map((v) => v))
+          : const {},
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$callAggregateBoolExpCount<TRes> {
+  factory CopyWith$Input$callAggregateBoolExpCount(
+    Input$callAggregateBoolExpCount instance,
+    TRes Function(Input$callAggregateBoolExpCount) then,
+  ) = _CopyWithImpl$Input$callAggregateBoolExpCount;
+
+  factory CopyWith$Input$callAggregateBoolExpCount.stub(TRes res) =
+      _CopyWithStubImpl$Input$callAggregateBoolExpCount;
+
+  TRes call({
+    List<Enum$CallSelectColumn>? arguments,
+    bool? distinct,
+    Input$CallBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  });
+  CopyWith$Input$CallBoolExp<TRes> get filter;
+  CopyWith$Input$IntComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$callAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$callAggregateBoolExpCount<TRes> {
+  _CopyWithImpl$Input$callAggregateBoolExpCount(
+    this._instance,
+    this._then,
+  );
+
+  final Input$callAggregateBoolExpCount _instance;
+
+  final TRes Function(Input$callAggregateBoolExpCount) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$callAggregateBoolExpCount._({
+        ..._instance._$data,
+        if (arguments != _undefined)
+          'arguments': (arguments as List<Enum$CallSelectColumn>?),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined) 'filter': (filter as Input$CallBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$IntComparisonExp),
+      }));
+
+  CopyWith$Input$CallBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$CallBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CallBoolExp(local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$IntComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$callAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$callAggregateBoolExpCount<TRes> {
+  _CopyWithStubImpl$Input$callAggregateBoolExpCount(this._res);
+
+  TRes _res;
+
+  call({
+    List<Enum$CallSelectColumn>? arguments,
+    bool? distinct,
+    Input$CallBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$CallBoolExp<TRes> get filter =>
+      CopyWith$Input$CallBoolExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+}
+
+class Input$CallAggregateOrderBy {
+  factory Input$CallAggregateOrderBy({
+    Enum$OrderBy? count,
+    Input$CallMaxOrderBy? max,
+    Input$CallMinOrderBy? min,
+  }) =>
+      Input$CallAggregateOrderBy._({
+        if (count != null) r'count': count,
+        if (max != null) r'max': max,
+        if (min != null) r'min': min,
+      });
+
+  Input$CallAggregateOrderBy._(this._$data);
+
+  factory Input$CallAggregateOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] =
+          l$count == null ? null : fromJson$Enum$OrderBy((l$count as String));
+    }
+    if (data.containsKey('max')) {
+      final l$max = data['max'];
+      result$data['max'] = l$max == null
+          ? null
+          : Input$CallMaxOrderBy.fromJson((l$max as Map<String, dynamic>));
+    }
+    if (data.containsKey('min')) {
+      final l$min = data['min'];
+      result$data['min'] = l$min == null
+          ? null
+          : Input$CallMinOrderBy.fromJson((l$min as Map<String, dynamic>));
+    }
+    return Input$CallAggregateOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get count => (_$data['count'] as Enum$OrderBy?);
+
+  Input$CallMaxOrderBy? get max => (_$data['max'] as Input$CallMaxOrderBy?);
+
+  Input$CallMinOrderBy? get min => (_$data['min'] as Input$CallMinOrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] =
+          l$count == null ? null : toJson$Enum$OrderBy(l$count);
+    }
+    if (_$data.containsKey('max')) {
+      final l$max = max;
+      result$data['max'] = l$max?.toJson();
+    }
+    if (_$data.containsKey('min')) {
+      final l$min = min;
+      result$data['min'] = l$min?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CallAggregateOrderBy<Input$CallAggregateOrderBy>
+      get copyWith => CopyWith$Input$CallAggregateOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CallAggregateOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    final l$max = max;
+    final lOther$max = other.max;
+    if (_$data.containsKey('max') != other._$data.containsKey('max')) {
+      return false;
+    }
+    if (l$max != lOther$max) {
+      return false;
+    }
+    final l$min = min;
+    final lOther$min = other.min;
+    if (_$data.containsKey('min') != other._$data.containsKey('min')) {
+      return false;
+    }
+    if (l$min != lOther$min) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$count = count;
+    final l$max = max;
+    final l$min = min;
+    return Object.hashAll([
+      _$data.containsKey('count') ? l$count : const {},
+      _$data.containsKey('max') ? l$max : const {},
+      _$data.containsKey('min') ? l$min : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CallAggregateOrderBy<TRes> {
+  factory CopyWith$Input$CallAggregateOrderBy(
+    Input$CallAggregateOrderBy instance,
+    TRes Function(Input$CallAggregateOrderBy) then,
+  ) = _CopyWithImpl$Input$CallAggregateOrderBy;
+
+  factory CopyWith$Input$CallAggregateOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CallAggregateOrderBy;
+
+  TRes call({
+    Enum$OrderBy? count,
+    Input$CallMaxOrderBy? max,
+    Input$CallMinOrderBy? min,
+  });
+  CopyWith$Input$CallMaxOrderBy<TRes> get max;
+  CopyWith$Input$CallMinOrderBy<TRes> get min;
+}
+
+class _CopyWithImpl$Input$CallAggregateOrderBy<TRes>
+    implements CopyWith$Input$CallAggregateOrderBy<TRes> {
+  _CopyWithImpl$Input$CallAggregateOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CallAggregateOrderBy _instance;
+
+  final TRes Function(Input$CallAggregateOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? count = _undefined,
+    Object? max = _undefined,
+    Object? min = _undefined,
+  }) =>
+      _then(Input$CallAggregateOrderBy._({
+        ..._instance._$data,
+        if (count != _undefined) 'count': (count as Enum$OrderBy?),
+        if (max != _undefined) 'max': (max as Input$CallMaxOrderBy?),
+        if (min != _undefined) 'min': (min as Input$CallMinOrderBy?),
+      }));
+
+  CopyWith$Input$CallMaxOrderBy<TRes> get max {
+    final local$max = _instance.max;
+    return local$max == null
+        ? CopyWith$Input$CallMaxOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CallMaxOrderBy(local$max, (e) => call(max: e));
+  }
+
+  CopyWith$Input$CallMinOrderBy<TRes> get min {
+    final local$min = _instance.min;
+    return local$min == null
+        ? CopyWith$Input$CallMinOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CallMinOrderBy(local$min, (e) => call(min: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$CallAggregateOrderBy<TRes>
+    implements CopyWith$Input$CallAggregateOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CallAggregateOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? count,
+    Input$CallMaxOrderBy? max,
+    Input$CallMinOrderBy? min,
+  }) =>
+      _res;
+
+  CopyWith$Input$CallMaxOrderBy<TRes> get max =>
+      CopyWith$Input$CallMaxOrderBy.stub(_res);
+
+  CopyWith$Input$CallMinOrderBy<TRes> get min =>
+      CopyWith$Input$CallMinOrderBy.stub(_res);
+}
+
+class Input$CallBoolExp {
+  factory Input$CallBoolExp({
+    List<Input$CallBoolExp>? $_and,
+    Input$CallBoolExp? $_not,
+    List<Input$CallBoolExp>? $_or,
+    Input$IntArrayComparisonExp? address,
+    Input$JsonbComparisonExp? args,
+    Input$StringArrayComparisonExp? argsStr,
+    Input$BlockBoolExp? block,
+    Input$StringComparisonExp? blockId,
+    Input$JsonbComparisonExp? error,
+    Input$EventBoolExp? events,
+    Input$EventAggregateBoolExp? eventsAggregate,
+    Input$ExtrinsicBoolExp? extrinsic,
+    Input$StringComparisonExp? extrinsicId,
+    Input$StringComparisonExp? id,
+    Input$StringComparisonExp? name,
+    Input$StringComparisonExp? pallet,
+    Input$CallBoolExp? parent,
+    Input$StringComparisonExp? parentId,
+    Input$CallBoolExp? subcalls,
+    Input$CallAggregateBoolExp? subcallsAggregate,
+    Input$BooleanComparisonExp? success,
+  }) =>
+      Input$CallBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (address != null) r'address': address,
+        if (args != null) r'args': args,
+        if (argsStr != null) r'argsStr': argsStr,
+        if (block != null) r'block': block,
+        if (blockId != null) r'blockId': blockId,
+        if (error != null) r'error': error,
+        if (events != null) r'events': events,
+        if (eventsAggregate != null) r'eventsAggregate': eventsAggregate,
+        if (extrinsic != null) r'extrinsic': extrinsic,
+        if (extrinsicId != null) r'extrinsicId': extrinsicId,
+        if (id != null) r'id': id,
+        if (name != null) r'name': name,
+        if (pallet != null) r'pallet': pallet,
+        if (parent != null) r'parent': parent,
+        if (parentId != null) r'parentId': parentId,
+        if (subcalls != null) r'subcalls': subcalls,
+        if (subcallsAggregate != null) r'subcallsAggregate': subcallsAggregate,
+        if (success != null) r'success': success,
+      });
+
+  Input$CallBoolExp._(this._$data);
+
+  factory Input$CallBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map((e) => Input$CallBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$CallBoolExp.fromJson((l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map((e) => Input$CallBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('address')) {
+      final l$address = data['address'];
+      result$data['address'] = l$address == null
+          ? null
+          : Input$IntArrayComparisonExp.fromJson(
+              (l$address as Map<String, dynamic>));
+    }
+    if (data.containsKey('args')) {
+      final l$args = data['args'];
+      result$data['args'] = l$args == null
+          ? null
+          : Input$JsonbComparisonExp.fromJson((l$args as Map<String, dynamic>));
+    }
+    if (data.containsKey('argsStr')) {
+      final l$argsStr = data['argsStr'];
+      result$data['argsStr'] = l$argsStr == null
+          ? null
+          : Input$StringArrayComparisonExp.fromJson(
+              (l$argsStr as Map<String, dynamic>));
+    }
+    if (data.containsKey('block')) {
+      final l$block = data['block'];
+      result$data['block'] = l$block == null
+          ? null
+          : Input$BlockBoolExp.fromJson((l$block as Map<String, dynamic>));
+    }
+    if (data.containsKey('blockId')) {
+      final l$blockId = data['blockId'];
+      result$data['blockId'] = l$blockId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$blockId as Map<String, dynamic>));
+    }
+    if (data.containsKey('error')) {
+      final l$error = data['error'];
+      result$data['error'] = l$error == null
+          ? null
+          : Input$JsonbComparisonExp.fromJson(
+              (l$error as Map<String, dynamic>));
+    }
+    if (data.containsKey('events')) {
+      final l$events = data['events'];
+      result$data['events'] = l$events == null
+          ? null
+          : Input$EventBoolExp.fromJson((l$events as Map<String, dynamic>));
+    }
+    if (data.containsKey('eventsAggregate')) {
+      final l$eventsAggregate = data['eventsAggregate'];
+      result$data['eventsAggregate'] = l$eventsAggregate == null
+          ? null
+          : Input$EventAggregateBoolExp.fromJson(
+              (l$eventsAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('extrinsic')) {
+      final l$extrinsic = data['extrinsic'];
+      result$data['extrinsic'] = l$extrinsic == null
+          ? null
+          : Input$ExtrinsicBoolExp.fromJson(
+              (l$extrinsic as Map<String, dynamic>));
+    }
+    if (data.containsKey('extrinsicId')) {
+      final l$extrinsicId = data['extrinsicId'];
+      result$data['extrinsicId'] = l$extrinsicId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$extrinsicId as Map<String, dynamic>));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    if (data.containsKey('name')) {
+      final l$name = data['name'];
+      result$data['name'] = l$name == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$name as Map<String, dynamic>));
+    }
+    if (data.containsKey('pallet')) {
+      final l$pallet = data['pallet'];
+      result$data['pallet'] = l$pallet == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$pallet as Map<String, dynamic>));
+    }
+    if (data.containsKey('parent')) {
+      final l$parent = data['parent'];
+      result$data['parent'] = l$parent == null
+          ? null
+          : Input$CallBoolExp.fromJson((l$parent as Map<String, dynamic>));
+    }
+    if (data.containsKey('parentId')) {
+      final l$parentId = data['parentId'];
+      result$data['parentId'] = l$parentId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$parentId as Map<String, dynamic>));
+    }
+    if (data.containsKey('subcalls')) {
+      final l$subcalls = data['subcalls'];
+      result$data['subcalls'] = l$subcalls == null
+          ? null
+          : Input$CallBoolExp.fromJson((l$subcalls as Map<String, dynamic>));
+    }
+    if (data.containsKey('subcallsAggregate')) {
+      final l$subcallsAggregate = data['subcallsAggregate'];
+      result$data['subcallsAggregate'] = l$subcallsAggregate == null
+          ? null
+          : Input$CallAggregateBoolExp.fromJson(
+              (l$subcallsAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('success')) {
+      final l$success = data['success'];
+      result$data['success'] = l$success == null
+          ? null
+          : Input$BooleanComparisonExp.fromJson(
+              (l$success as Map<String, dynamic>));
+    }
+    return Input$CallBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$CallBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$CallBoolExp>?);
+
+  Input$CallBoolExp? get $_not => (_$data['_not'] as Input$CallBoolExp?);
+
+  List<Input$CallBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$CallBoolExp>?);
+
+  Input$IntArrayComparisonExp? get address =>
+      (_$data['address'] as Input$IntArrayComparisonExp?);
+
+  Input$JsonbComparisonExp? get args =>
+      (_$data['args'] as Input$JsonbComparisonExp?);
+
+  Input$StringArrayComparisonExp? get argsStr =>
+      (_$data['argsStr'] as Input$StringArrayComparisonExp?);
+
+  Input$BlockBoolExp? get block => (_$data['block'] as Input$BlockBoolExp?);
+
+  Input$StringComparisonExp? get blockId =>
+      (_$data['blockId'] as Input$StringComparisonExp?);
+
+  Input$JsonbComparisonExp? get error =>
+      (_$data['error'] as Input$JsonbComparisonExp?);
+
+  Input$EventBoolExp? get events => (_$data['events'] as Input$EventBoolExp?);
+
+  Input$EventAggregateBoolExp? get eventsAggregate =>
+      (_$data['eventsAggregate'] as Input$EventAggregateBoolExp?);
+
+  Input$ExtrinsicBoolExp? get extrinsic =>
+      (_$data['extrinsic'] as Input$ExtrinsicBoolExp?);
+
+  Input$StringComparisonExp? get extrinsicId =>
+      (_$data['extrinsicId'] as Input$StringComparisonExp?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Input$StringComparisonExp? get name =>
+      (_$data['name'] as Input$StringComparisonExp?);
+
+  Input$StringComparisonExp? get pallet =>
+      (_$data['pallet'] as Input$StringComparisonExp?);
+
+  Input$CallBoolExp? get parent => (_$data['parent'] as Input$CallBoolExp?);
+
+  Input$StringComparisonExp? get parentId =>
+      (_$data['parentId'] as Input$StringComparisonExp?);
+
+  Input$CallBoolExp? get subcalls => (_$data['subcalls'] as Input$CallBoolExp?);
+
+  Input$CallAggregateBoolExp? get subcallsAggregate =>
+      (_$data['subcallsAggregate'] as Input$CallAggregateBoolExp?);
+
+  Input$BooleanComparisonExp? get success =>
+      (_$data['success'] as Input$BooleanComparisonExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('address')) {
+      final l$address = address;
+      result$data['address'] = l$address?.toJson();
+    }
+    if (_$data.containsKey('args')) {
+      final l$args = args;
+      result$data['args'] = l$args?.toJson();
+    }
+    if (_$data.containsKey('argsStr')) {
+      final l$argsStr = argsStr;
+      result$data['argsStr'] = l$argsStr?.toJson();
+    }
+    if (_$data.containsKey('block')) {
+      final l$block = block;
+      result$data['block'] = l$block?.toJson();
+    }
+    if (_$data.containsKey('blockId')) {
+      final l$blockId = blockId;
+      result$data['blockId'] = l$blockId?.toJson();
+    }
+    if (_$data.containsKey('error')) {
+      final l$error = error;
+      result$data['error'] = l$error?.toJson();
+    }
+    if (_$data.containsKey('events')) {
+      final l$events = events;
+      result$data['events'] = l$events?.toJson();
+    }
+    if (_$data.containsKey('eventsAggregate')) {
+      final l$eventsAggregate = eventsAggregate;
+      result$data['eventsAggregate'] = l$eventsAggregate?.toJson();
+    }
+    if (_$data.containsKey('extrinsic')) {
+      final l$extrinsic = extrinsic;
+      result$data['extrinsic'] = l$extrinsic?.toJson();
+    }
+    if (_$data.containsKey('extrinsicId')) {
+      final l$extrinsicId = extrinsicId;
+      result$data['extrinsicId'] = l$extrinsicId?.toJson();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    if (_$data.containsKey('name')) {
+      final l$name = name;
+      result$data['name'] = l$name?.toJson();
+    }
+    if (_$data.containsKey('pallet')) {
+      final l$pallet = pallet;
+      result$data['pallet'] = l$pallet?.toJson();
+    }
+    if (_$data.containsKey('parent')) {
+      final l$parent = parent;
+      result$data['parent'] = l$parent?.toJson();
+    }
+    if (_$data.containsKey('parentId')) {
+      final l$parentId = parentId;
+      result$data['parentId'] = l$parentId?.toJson();
+    }
+    if (_$data.containsKey('subcalls')) {
+      final l$subcalls = subcalls;
+      result$data['subcalls'] = l$subcalls?.toJson();
+    }
+    if (_$data.containsKey('subcallsAggregate')) {
+      final l$subcallsAggregate = subcallsAggregate;
+      result$data['subcallsAggregate'] = l$subcallsAggregate?.toJson();
+    }
+    if (_$data.containsKey('success')) {
+      final l$success = success;
+      result$data['success'] = l$success?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CallBoolExp<Input$CallBoolExp> get copyWith =>
+      CopyWith$Input$CallBoolExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CallBoolExp) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$address = address;
+    final lOther$address = other.address;
+    if (_$data.containsKey('address') != other._$data.containsKey('address')) {
+      return false;
+    }
+    if (l$address != lOther$address) {
+      return false;
+    }
+    final l$args = args;
+    final lOther$args = other.args;
+    if (_$data.containsKey('args') != other._$data.containsKey('args')) {
+      return false;
+    }
+    if (l$args != lOther$args) {
+      return false;
+    }
+    final l$argsStr = argsStr;
+    final lOther$argsStr = other.argsStr;
+    if (_$data.containsKey('argsStr') != other._$data.containsKey('argsStr')) {
+      return false;
+    }
+    if (l$argsStr != lOther$argsStr) {
+      return false;
+    }
+    final l$block = block;
+    final lOther$block = other.block;
+    if (_$data.containsKey('block') != other._$data.containsKey('block')) {
+      return false;
+    }
+    if (l$block != lOther$block) {
+      return false;
+    }
+    final l$blockId = blockId;
+    final lOther$blockId = other.blockId;
+    if (_$data.containsKey('blockId') != other._$data.containsKey('blockId')) {
+      return false;
+    }
+    if (l$blockId != lOther$blockId) {
+      return false;
+    }
+    final l$error = error;
+    final lOther$error = other.error;
+    if (_$data.containsKey('error') != other._$data.containsKey('error')) {
+      return false;
+    }
+    if (l$error != lOther$error) {
+      return false;
+    }
+    final l$events = events;
+    final lOther$events = other.events;
+    if (_$data.containsKey('events') != other._$data.containsKey('events')) {
+      return false;
+    }
+    if (l$events != lOther$events) {
+      return false;
+    }
+    final l$eventsAggregate = eventsAggregate;
+    final lOther$eventsAggregate = other.eventsAggregate;
+    if (_$data.containsKey('eventsAggregate') !=
+        other._$data.containsKey('eventsAggregate')) {
+      return false;
+    }
+    if (l$eventsAggregate != lOther$eventsAggregate) {
+      return false;
+    }
+    final l$extrinsic = extrinsic;
+    final lOther$extrinsic = other.extrinsic;
+    if (_$data.containsKey('extrinsic') !=
+        other._$data.containsKey('extrinsic')) {
+      return false;
+    }
+    if (l$extrinsic != lOther$extrinsic) {
+      return false;
+    }
+    final l$extrinsicId = extrinsicId;
+    final lOther$extrinsicId = other.extrinsicId;
+    if (_$data.containsKey('extrinsicId') !=
+        other._$data.containsKey('extrinsicId')) {
+      return false;
+    }
+    if (l$extrinsicId != lOther$extrinsicId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$name = name;
+    final lOther$name = other.name;
+    if (_$data.containsKey('name') != other._$data.containsKey('name')) {
+      return false;
+    }
+    if (l$name != lOther$name) {
+      return false;
+    }
+    final l$pallet = pallet;
+    final lOther$pallet = other.pallet;
+    if (_$data.containsKey('pallet') != other._$data.containsKey('pallet')) {
+      return false;
+    }
+    if (l$pallet != lOther$pallet) {
+      return false;
+    }
+    final l$parent = parent;
+    final lOther$parent = other.parent;
+    if (_$data.containsKey('parent') != other._$data.containsKey('parent')) {
+      return false;
+    }
+    if (l$parent != lOther$parent) {
+      return false;
+    }
+    final l$parentId = parentId;
+    final lOther$parentId = other.parentId;
+    if (_$data.containsKey('parentId') !=
+        other._$data.containsKey('parentId')) {
+      return false;
+    }
+    if (l$parentId != lOther$parentId) {
+      return false;
+    }
+    final l$subcalls = subcalls;
+    final lOther$subcalls = other.subcalls;
+    if (_$data.containsKey('subcalls') !=
+        other._$data.containsKey('subcalls')) {
+      return false;
+    }
+    if (l$subcalls != lOther$subcalls) {
+      return false;
+    }
+    final l$subcallsAggregate = subcallsAggregate;
+    final lOther$subcallsAggregate = other.subcallsAggregate;
+    if (_$data.containsKey('subcallsAggregate') !=
+        other._$data.containsKey('subcallsAggregate')) {
+      return false;
+    }
+    if (l$subcallsAggregate != lOther$subcallsAggregate) {
+      return false;
+    }
+    final l$success = success;
+    final lOther$success = other.success;
+    if (_$data.containsKey('success') != other._$data.containsKey('success')) {
+      return false;
+    }
+    if (l$success != lOther$success) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$address = address;
+    final l$args = args;
+    final l$argsStr = argsStr;
+    final l$block = block;
+    final l$blockId = blockId;
+    final l$error = error;
+    final l$events = events;
+    final l$eventsAggregate = eventsAggregate;
+    final l$extrinsic = extrinsic;
+    final l$extrinsicId = extrinsicId;
+    final l$id = id;
+    final l$name = name;
+    final l$pallet = pallet;
+    final l$parent = parent;
+    final l$parentId = parentId;
+    final l$subcalls = subcalls;
+    final l$subcallsAggregate = subcallsAggregate;
+    final l$success = success;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('address') ? l$address : const {},
+      _$data.containsKey('args') ? l$args : const {},
+      _$data.containsKey('argsStr') ? l$argsStr : const {},
+      _$data.containsKey('block') ? l$block : const {},
+      _$data.containsKey('blockId') ? l$blockId : const {},
+      _$data.containsKey('error') ? l$error : const {},
+      _$data.containsKey('events') ? l$events : const {},
+      _$data.containsKey('eventsAggregate') ? l$eventsAggregate : const {},
+      _$data.containsKey('extrinsic') ? l$extrinsic : const {},
+      _$data.containsKey('extrinsicId') ? l$extrinsicId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('name') ? l$name : const {},
+      _$data.containsKey('pallet') ? l$pallet : const {},
+      _$data.containsKey('parent') ? l$parent : const {},
+      _$data.containsKey('parentId') ? l$parentId : const {},
+      _$data.containsKey('subcalls') ? l$subcalls : const {},
+      _$data.containsKey('subcallsAggregate') ? l$subcallsAggregate : const {},
+      _$data.containsKey('success') ? l$success : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CallBoolExp<TRes> {
+  factory CopyWith$Input$CallBoolExp(
+    Input$CallBoolExp instance,
+    TRes Function(Input$CallBoolExp) then,
+  ) = _CopyWithImpl$Input$CallBoolExp;
+
+  factory CopyWith$Input$CallBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$CallBoolExp;
+
+  TRes call({
+    List<Input$CallBoolExp>? $_and,
+    Input$CallBoolExp? $_not,
+    List<Input$CallBoolExp>? $_or,
+    Input$IntArrayComparisonExp? address,
+    Input$JsonbComparisonExp? args,
+    Input$StringArrayComparisonExp? argsStr,
+    Input$BlockBoolExp? block,
+    Input$StringComparisonExp? blockId,
+    Input$JsonbComparisonExp? error,
+    Input$EventBoolExp? events,
+    Input$EventAggregateBoolExp? eventsAggregate,
+    Input$ExtrinsicBoolExp? extrinsic,
+    Input$StringComparisonExp? extrinsicId,
+    Input$StringComparisonExp? id,
+    Input$StringComparisonExp? name,
+    Input$StringComparisonExp? pallet,
+    Input$CallBoolExp? parent,
+    Input$StringComparisonExp? parentId,
+    Input$CallBoolExp? subcalls,
+    Input$CallAggregateBoolExp? subcallsAggregate,
+    Input$BooleanComparisonExp? success,
+  });
+  TRes $_and(
+      Iterable<Input$CallBoolExp>? Function(
+              Iterable<CopyWith$Input$CallBoolExp<Input$CallBoolExp>>?)
+          _fn);
+  CopyWith$Input$CallBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$CallBoolExp>? Function(
+              Iterable<CopyWith$Input$CallBoolExp<Input$CallBoolExp>>?)
+          _fn);
+  CopyWith$Input$IntArrayComparisonExp<TRes> get address;
+  CopyWith$Input$JsonbComparisonExp<TRes> get args;
+  CopyWith$Input$StringArrayComparisonExp<TRes> get argsStr;
+  CopyWith$Input$BlockBoolExp<TRes> get block;
+  CopyWith$Input$StringComparisonExp<TRes> get blockId;
+  CopyWith$Input$JsonbComparisonExp<TRes> get error;
+  CopyWith$Input$EventBoolExp<TRes> get events;
+  CopyWith$Input$EventAggregateBoolExp<TRes> get eventsAggregate;
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get extrinsic;
+  CopyWith$Input$StringComparisonExp<TRes> get extrinsicId;
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+  CopyWith$Input$StringComparisonExp<TRes> get name;
+  CopyWith$Input$StringComparisonExp<TRes> get pallet;
+  CopyWith$Input$CallBoolExp<TRes> get parent;
+  CopyWith$Input$StringComparisonExp<TRes> get parentId;
+  CopyWith$Input$CallBoolExp<TRes> get subcalls;
+  CopyWith$Input$CallAggregateBoolExp<TRes> get subcallsAggregate;
+  CopyWith$Input$BooleanComparisonExp<TRes> get success;
+}
+
+class _CopyWithImpl$Input$CallBoolExp<TRes>
+    implements CopyWith$Input$CallBoolExp<TRes> {
+  _CopyWithImpl$Input$CallBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CallBoolExp _instance;
+
+  final TRes Function(Input$CallBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? address = _undefined,
+    Object? args = _undefined,
+    Object? argsStr = _undefined,
+    Object? block = _undefined,
+    Object? blockId = _undefined,
+    Object? error = _undefined,
+    Object? events = _undefined,
+    Object? eventsAggregate = _undefined,
+    Object? extrinsic = _undefined,
+    Object? extrinsicId = _undefined,
+    Object? id = _undefined,
+    Object? name = _undefined,
+    Object? pallet = _undefined,
+    Object? parent = _undefined,
+    Object? parentId = _undefined,
+    Object? subcalls = _undefined,
+    Object? subcallsAggregate = _undefined,
+    Object? success = _undefined,
+  }) =>
+      _then(Input$CallBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined) '_and': ($_and as List<Input$CallBoolExp>?),
+        if ($_not != _undefined) '_not': ($_not as Input$CallBoolExp?),
+        if ($_or != _undefined) '_or': ($_or as List<Input$CallBoolExp>?),
+        if (address != _undefined)
+          'address': (address as Input$IntArrayComparisonExp?),
+        if (args != _undefined) 'args': (args as Input$JsonbComparisonExp?),
+        if (argsStr != _undefined)
+          'argsStr': (argsStr as Input$StringArrayComparisonExp?),
+        if (block != _undefined) 'block': (block as Input$BlockBoolExp?),
+        if (blockId != _undefined)
+          'blockId': (blockId as Input$StringComparisonExp?),
+        if (error != _undefined) 'error': (error as Input$JsonbComparisonExp?),
+        if (events != _undefined) 'events': (events as Input$EventBoolExp?),
+        if (eventsAggregate != _undefined)
+          'eventsAggregate': (eventsAggregate as Input$EventAggregateBoolExp?),
+        if (extrinsic != _undefined)
+          'extrinsic': (extrinsic as Input$ExtrinsicBoolExp?),
+        if (extrinsicId != _undefined)
+          'extrinsicId': (extrinsicId as Input$StringComparisonExp?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+        if (name != _undefined) 'name': (name as Input$StringComparisonExp?),
+        if (pallet != _undefined)
+          'pallet': (pallet as Input$StringComparisonExp?),
+        if (parent != _undefined) 'parent': (parent as Input$CallBoolExp?),
+        if (parentId != _undefined)
+          'parentId': (parentId as Input$StringComparisonExp?),
+        if (subcalls != _undefined)
+          'subcalls': (subcalls as Input$CallBoolExp?),
+        if (subcallsAggregate != _undefined)
+          'subcallsAggregate':
+              (subcallsAggregate as Input$CallAggregateBoolExp?),
+        if (success != _undefined)
+          'success': (success as Input$BooleanComparisonExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$CallBoolExp>? Function(
+                  Iterable<CopyWith$Input$CallBoolExp<Input$CallBoolExp>>?)
+              _fn) =>
+      call(
+          $_and: _fn(_instance.$_and?.map((e) => CopyWith$Input$CallBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$CallBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$CallBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CallBoolExp(local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$CallBoolExp>? Function(
+                  Iterable<CopyWith$Input$CallBoolExp<Input$CallBoolExp>>?)
+              _fn) =>
+      call(
+          $_or: _fn(_instance.$_or?.map((e) => CopyWith$Input$CallBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$IntArrayComparisonExp<TRes> get address {
+    final local$address = _instance.address;
+    return local$address == null
+        ? CopyWith$Input$IntArrayComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntArrayComparisonExp(
+            local$address, (e) => call(address: e));
+  }
+
+  CopyWith$Input$JsonbComparisonExp<TRes> get args {
+    final local$args = _instance.args;
+    return local$args == null
+        ? CopyWith$Input$JsonbComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$JsonbComparisonExp(local$args, (e) => call(args: e));
+  }
+
+  CopyWith$Input$StringArrayComparisonExp<TRes> get argsStr {
+    final local$argsStr = _instance.argsStr;
+    return local$argsStr == null
+        ? CopyWith$Input$StringArrayComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringArrayComparisonExp(
+            local$argsStr, (e) => call(argsStr: e));
+  }
+
+  CopyWith$Input$BlockBoolExp<TRes> get block {
+    final local$block = _instance.block;
+    return local$block == null
+        ? CopyWith$Input$BlockBoolExp.stub(_then(_instance))
+        : CopyWith$Input$BlockBoolExp(local$block, (e) => call(block: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get blockId {
+    final local$blockId = _instance.blockId;
+    return local$blockId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$blockId, (e) => call(blockId: e));
+  }
+
+  CopyWith$Input$JsonbComparisonExp<TRes> get error {
+    final local$error = _instance.error;
+    return local$error == null
+        ? CopyWith$Input$JsonbComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$JsonbComparisonExp(local$error, (e) => call(error: e));
+  }
+
+  CopyWith$Input$EventBoolExp<TRes> get events {
+    final local$events = _instance.events;
+    return local$events == null
+        ? CopyWith$Input$EventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$EventBoolExp(local$events, (e) => call(events: e));
+  }
+
+  CopyWith$Input$EventAggregateBoolExp<TRes> get eventsAggregate {
+    final local$eventsAggregate = _instance.eventsAggregate;
+    return local$eventsAggregate == null
+        ? CopyWith$Input$EventAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$EventAggregateBoolExp(
+            local$eventsAggregate, (e) => call(eventsAggregate: e));
+  }
+
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get extrinsic {
+    final local$extrinsic = _instance.extrinsic;
+    return local$extrinsic == null
+        ? CopyWith$Input$ExtrinsicBoolExp.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicBoolExp(
+            local$extrinsic, (e) => call(extrinsic: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get extrinsicId {
+    final local$extrinsicId = _instance.extrinsicId;
+    return local$extrinsicId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$extrinsicId, (e) => call(extrinsicId: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get name {
+    final local$name = _instance.name;
+    return local$name == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$name, (e) => call(name: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get pallet {
+    final local$pallet = _instance.pallet;
+    return local$pallet == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$pallet, (e) => call(pallet: e));
+  }
+
+  CopyWith$Input$CallBoolExp<TRes> get parent {
+    final local$parent = _instance.parent;
+    return local$parent == null
+        ? CopyWith$Input$CallBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CallBoolExp(local$parent, (e) => call(parent: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get parentId {
+    final local$parentId = _instance.parentId;
+    return local$parentId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$parentId, (e) => call(parentId: e));
+  }
+
+  CopyWith$Input$CallBoolExp<TRes> get subcalls {
+    final local$subcalls = _instance.subcalls;
+    return local$subcalls == null
+        ? CopyWith$Input$CallBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CallBoolExp(local$subcalls, (e) => call(subcalls: e));
+  }
+
+  CopyWith$Input$CallAggregateBoolExp<TRes> get subcallsAggregate {
+    final local$subcallsAggregate = _instance.subcallsAggregate;
+    return local$subcallsAggregate == null
+        ? CopyWith$Input$CallAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CallAggregateBoolExp(
+            local$subcallsAggregate, (e) => call(subcallsAggregate: e));
+  }
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get success {
+    final local$success = _instance.success;
+    return local$success == null
+        ? CopyWith$Input$BooleanComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$BooleanComparisonExp(
+            local$success, (e) => call(success: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$CallBoolExp<TRes>
+    implements CopyWith$Input$CallBoolExp<TRes> {
+  _CopyWithStubImpl$Input$CallBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$CallBoolExp>? $_and,
+    Input$CallBoolExp? $_not,
+    List<Input$CallBoolExp>? $_or,
+    Input$IntArrayComparisonExp? address,
+    Input$JsonbComparisonExp? args,
+    Input$StringArrayComparisonExp? argsStr,
+    Input$BlockBoolExp? block,
+    Input$StringComparisonExp? blockId,
+    Input$JsonbComparisonExp? error,
+    Input$EventBoolExp? events,
+    Input$EventAggregateBoolExp? eventsAggregate,
+    Input$ExtrinsicBoolExp? extrinsic,
+    Input$StringComparisonExp? extrinsicId,
+    Input$StringComparisonExp? id,
+    Input$StringComparisonExp? name,
+    Input$StringComparisonExp? pallet,
+    Input$CallBoolExp? parent,
+    Input$StringComparisonExp? parentId,
+    Input$CallBoolExp? subcalls,
+    Input$CallAggregateBoolExp? subcallsAggregate,
+    Input$BooleanComparisonExp? success,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$CallBoolExp<TRes> get $_not =>
+      CopyWith$Input$CallBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$IntArrayComparisonExp<TRes> get address =>
+      CopyWith$Input$IntArrayComparisonExp.stub(_res);
+
+  CopyWith$Input$JsonbComparisonExp<TRes> get args =>
+      CopyWith$Input$JsonbComparisonExp.stub(_res);
+
+  CopyWith$Input$StringArrayComparisonExp<TRes> get argsStr =>
+      CopyWith$Input$StringArrayComparisonExp.stub(_res);
+
+  CopyWith$Input$BlockBoolExp<TRes> get block =>
+      CopyWith$Input$BlockBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get blockId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$JsonbComparisonExp<TRes> get error =>
+      CopyWith$Input$JsonbComparisonExp.stub(_res);
+
+  CopyWith$Input$EventBoolExp<TRes> get events =>
+      CopyWith$Input$EventBoolExp.stub(_res);
+
+  CopyWith$Input$EventAggregateBoolExp<TRes> get eventsAggregate =>
+      CopyWith$Input$EventAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get extrinsic =>
+      CopyWith$Input$ExtrinsicBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get extrinsicId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get name =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get pallet =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$CallBoolExp<TRes> get parent =>
+      CopyWith$Input$CallBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get parentId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$CallBoolExp<TRes> get subcalls =>
+      CopyWith$Input$CallBoolExp.stub(_res);
+
+  CopyWith$Input$CallAggregateBoolExp<TRes> get subcallsAggregate =>
+      CopyWith$Input$CallAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get success =>
+      CopyWith$Input$BooleanComparisonExp.stub(_res);
+}
+
+class Input$CallMaxOrderBy {
+  factory Input$CallMaxOrderBy({
+    Enum$OrderBy? address,
+    Enum$OrderBy? argsStr,
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Enum$OrderBy? parentId,
+  }) =>
+      Input$CallMaxOrderBy._({
+        if (address != null) r'address': address,
+        if (argsStr != null) r'argsStr': argsStr,
+        if (blockId != null) r'blockId': blockId,
+        if (extrinsicId != null) r'extrinsicId': extrinsicId,
+        if (id != null) r'id': id,
+        if (name != null) r'name': name,
+        if (pallet != null) r'pallet': pallet,
+        if (parentId != null) r'parentId': parentId,
+      });
+
+  Input$CallMaxOrderBy._(this._$data);
+
+  factory Input$CallMaxOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('address')) {
+      final l$address = data['address'];
+      result$data['address'] = l$address == null
+          ? null
+          : fromJson$Enum$OrderBy((l$address as String));
+    }
+    if (data.containsKey('argsStr')) {
+      final l$argsStr = data['argsStr'];
+      result$data['argsStr'] = l$argsStr == null
+          ? null
+          : fromJson$Enum$OrderBy((l$argsStr as String));
+    }
+    if (data.containsKey('blockId')) {
+      final l$blockId = data['blockId'];
+      result$data['blockId'] = l$blockId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockId as String));
+    }
+    if (data.containsKey('extrinsicId')) {
+      final l$extrinsicId = data['extrinsicId'];
+      result$data['extrinsicId'] = l$extrinsicId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$extrinsicId as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('name')) {
+      final l$name = data['name'];
+      result$data['name'] =
+          l$name == null ? null : fromJson$Enum$OrderBy((l$name as String));
+    }
+    if (data.containsKey('pallet')) {
+      final l$pallet = data['pallet'];
+      result$data['pallet'] =
+          l$pallet == null ? null : fromJson$Enum$OrderBy((l$pallet as String));
+    }
+    if (data.containsKey('parentId')) {
+      final l$parentId = data['parentId'];
+      result$data['parentId'] = l$parentId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$parentId as String));
+    }
+    return Input$CallMaxOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get address => (_$data['address'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get argsStr => (_$data['argsStr'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockId => (_$data['blockId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get extrinsicId => (_$data['extrinsicId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get name => (_$data['name'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get pallet => (_$data['pallet'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get parentId => (_$data['parentId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('address')) {
+      final l$address = address;
+      result$data['address'] =
+          l$address == null ? null : toJson$Enum$OrderBy(l$address);
+    }
+    if (_$data.containsKey('argsStr')) {
+      final l$argsStr = argsStr;
+      result$data['argsStr'] =
+          l$argsStr == null ? null : toJson$Enum$OrderBy(l$argsStr);
+    }
+    if (_$data.containsKey('blockId')) {
+      final l$blockId = blockId;
+      result$data['blockId'] =
+          l$blockId == null ? null : toJson$Enum$OrderBy(l$blockId);
+    }
+    if (_$data.containsKey('extrinsicId')) {
+      final l$extrinsicId = extrinsicId;
+      result$data['extrinsicId'] =
+          l$extrinsicId == null ? null : toJson$Enum$OrderBy(l$extrinsicId);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('name')) {
+      final l$name = name;
+      result$data['name'] = l$name == null ? null : toJson$Enum$OrderBy(l$name);
+    }
+    if (_$data.containsKey('pallet')) {
+      final l$pallet = pallet;
+      result$data['pallet'] =
+          l$pallet == null ? null : toJson$Enum$OrderBy(l$pallet);
+    }
+    if (_$data.containsKey('parentId')) {
+      final l$parentId = parentId;
+      result$data['parentId'] =
+          l$parentId == null ? null : toJson$Enum$OrderBy(l$parentId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CallMaxOrderBy<Input$CallMaxOrderBy> get copyWith =>
+      CopyWith$Input$CallMaxOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CallMaxOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$address = address;
+    final lOther$address = other.address;
+    if (_$data.containsKey('address') != other._$data.containsKey('address')) {
+      return false;
+    }
+    if (l$address != lOther$address) {
+      return false;
+    }
+    final l$argsStr = argsStr;
+    final lOther$argsStr = other.argsStr;
+    if (_$data.containsKey('argsStr') != other._$data.containsKey('argsStr')) {
+      return false;
+    }
+    if (l$argsStr != lOther$argsStr) {
+      return false;
+    }
+    final l$blockId = blockId;
+    final lOther$blockId = other.blockId;
+    if (_$data.containsKey('blockId') != other._$data.containsKey('blockId')) {
+      return false;
+    }
+    if (l$blockId != lOther$blockId) {
+      return false;
+    }
+    final l$extrinsicId = extrinsicId;
+    final lOther$extrinsicId = other.extrinsicId;
+    if (_$data.containsKey('extrinsicId') !=
+        other._$data.containsKey('extrinsicId')) {
+      return false;
+    }
+    if (l$extrinsicId != lOther$extrinsicId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$name = name;
+    final lOther$name = other.name;
+    if (_$data.containsKey('name') != other._$data.containsKey('name')) {
+      return false;
+    }
+    if (l$name != lOther$name) {
+      return false;
+    }
+    final l$pallet = pallet;
+    final lOther$pallet = other.pallet;
+    if (_$data.containsKey('pallet') != other._$data.containsKey('pallet')) {
+      return false;
+    }
+    if (l$pallet != lOther$pallet) {
+      return false;
+    }
+    final l$parentId = parentId;
+    final lOther$parentId = other.parentId;
+    if (_$data.containsKey('parentId') !=
+        other._$data.containsKey('parentId')) {
+      return false;
+    }
+    if (l$parentId != lOther$parentId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$address = address;
+    final l$argsStr = argsStr;
+    final l$blockId = blockId;
+    final l$extrinsicId = extrinsicId;
+    final l$id = id;
+    final l$name = name;
+    final l$pallet = pallet;
+    final l$parentId = parentId;
+    return Object.hashAll([
+      _$data.containsKey('address') ? l$address : const {},
+      _$data.containsKey('argsStr') ? l$argsStr : const {},
+      _$data.containsKey('blockId') ? l$blockId : const {},
+      _$data.containsKey('extrinsicId') ? l$extrinsicId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('name') ? l$name : const {},
+      _$data.containsKey('pallet') ? l$pallet : const {},
+      _$data.containsKey('parentId') ? l$parentId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CallMaxOrderBy<TRes> {
+  factory CopyWith$Input$CallMaxOrderBy(
+    Input$CallMaxOrderBy instance,
+    TRes Function(Input$CallMaxOrderBy) then,
+  ) = _CopyWithImpl$Input$CallMaxOrderBy;
+
+  factory CopyWith$Input$CallMaxOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CallMaxOrderBy;
+
+  TRes call({
+    Enum$OrderBy? address,
+    Enum$OrderBy? argsStr,
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Enum$OrderBy? parentId,
+  });
+}
+
+class _CopyWithImpl$Input$CallMaxOrderBy<TRes>
+    implements CopyWith$Input$CallMaxOrderBy<TRes> {
+  _CopyWithImpl$Input$CallMaxOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CallMaxOrderBy _instance;
+
+  final TRes Function(Input$CallMaxOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? address = _undefined,
+    Object? argsStr = _undefined,
+    Object? blockId = _undefined,
+    Object? extrinsicId = _undefined,
+    Object? id = _undefined,
+    Object? name = _undefined,
+    Object? pallet = _undefined,
+    Object? parentId = _undefined,
+  }) =>
+      _then(Input$CallMaxOrderBy._({
+        ..._instance._$data,
+        if (address != _undefined) 'address': (address as Enum$OrderBy?),
+        if (argsStr != _undefined) 'argsStr': (argsStr as Enum$OrderBy?),
+        if (blockId != _undefined) 'blockId': (blockId as Enum$OrderBy?),
+        if (extrinsicId != _undefined)
+          'extrinsicId': (extrinsicId as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (name != _undefined) 'name': (name as Enum$OrderBy?),
+        if (pallet != _undefined) 'pallet': (pallet as Enum$OrderBy?),
+        if (parentId != _undefined) 'parentId': (parentId as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CallMaxOrderBy<TRes>
+    implements CopyWith$Input$CallMaxOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CallMaxOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? address,
+    Enum$OrderBy? argsStr,
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Enum$OrderBy? parentId,
+  }) =>
+      _res;
+}
+
+class Input$CallMinOrderBy {
+  factory Input$CallMinOrderBy({
+    Enum$OrderBy? address,
+    Enum$OrderBy? argsStr,
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Enum$OrderBy? parentId,
+  }) =>
+      Input$CallMinOrderBy._({
+        if (address != null) r'address': address,
+        if (argsStr != null) r'argsStr': argsStr,
+        if (blockId != null) r'blockId': blockId,
+        if (extrinsicId != null) r'extrinsicId': extrinsicId,
+        if (id != null) r'id': id,
+        if (name != null) r'name': name,
+        if (pallet != null) r'pallet': pallet,
+        if (parentId != null) r'parentId': parentId,
+      });
+
+  Input$CallMinOrderBy._(this._$data);
+
+  factory Input$CallMinOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('address')) {
+      final l$address = data['address'];
+      result$data['address'] = l$address == null
+          ? null
+          : fromJson$Enum$OrderBy((l$address as String));
+    }
+    if (data.containsKey('argsStr')) {
+      final l$argsStr = data['argsStr'];
+      result$data['argsStr'] = l$argsStr == null
+          ? null
+          : fromJson$Enum$OrderBy((l$argsStr as String));
+    }
+    if (data.containsKey('blockId')) {
+      final l$blockId = data['blockId'];
+      result$data['blockId'] = l$blockId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockId as String));
+    }
+    if (data.containsKey('extrinsicId')) {
+      final l$extrinsicId = data['extrinsicId'];
+      result$data['extrinsicId'] = l$extrinsicId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$extrinsicId as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('name')) {
+      final l$name = data['name'];
+      result$data['name'] =
+          l$name == null ? null : fromJson$Enum$OrderBy((l$name as String));
+    }
+    if (data.containsKey('pallet')) {
+      final l$pallet = data['pallet'];
+      result$data['pallet'] =
+          l$pallet == null ? null : fromJson$Enum$OrderBy((l$pallet as String));
+    }
+    if (data.containsKey('parentId')) {
+      final l$parentId = data['parentId'];
+      result$data['parentId'] = l$parentId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$parentId as String));
+    }
+    return Input$CallMinOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get address => (_$data['address'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get argsStr => (_$data['argsStr'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockId => (_$data['blockId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get extrinsicId => (_$data['extrinsicId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get name => (_$data['name'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get pallet => (_$data['pallet'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get parentId => (_$data['parentId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('address')) {
+      final l$address = address;
+      result$data['address'] =
+          l$address == null ? null : toJson$Enum$OrderBy(l$address);
+    }
+    if (_$data.containsKey('argsStr')) {
+      final l$argsStr = argsStr;
+      result$data['argsStr'] =
+          l$argsStr == null ? null : toJson$Enum$OrderBy(l$argsStr);
+    }
+    if (_$data.containsKey('blockId')) {
+      final l$blockId = blockId;
+      result$data['blockId'] =
+          l$blockId == null ? null : toJson$Enum$OrderBy(l$blockId);
+    }
+    if (_$data.containsKey('extrinsicId')) {
+      final l$extrinsicId = extrinsicId;
+      result$data['extrinsicId'] =
+          l$extrinsicId == null ? null : toJson$Enum$OrderBy(l$extrinsicId);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('name')) {
+      final l$name = name;
+      result$data['name'] = l$name == null ? null : toJson$Enum$OrderBy(l$name);
+    }
+    if (_$data.containsKey('pallet')) {
+      final l$pallet = pallet;
+      result$data['pallet'] =
+          l$pallet == null ? null : toJson$Enum$OrderBy(l$pallet);
+    }
+    if (_$data.containsKey('parentId')) {
+      final l$parentId = parentId;
+      result$data['parentId'] =
+          l$parentId == null ? null : toJson$Enum$OrderBy(l$parentId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CallMinOrderBy<Input$CallMinOrderBy> get copyWith =>
+      CopyWith$Input$CallMinOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CallMinOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$address = address;
+    final lOther$address = other.address;
+    if (_$data.containsKey('address') != other._$data.containsKey('address')) {
+      return false;
+    }
+    if (l$address != lOther$address) {
+      return false;
+    }
+    final l$argsStr = argsStr;
+    final lOther$argsStr = other.argsStr;
+    if (_$data.containsKey('argsStr') != other._$data.containsKey('argsStr')) {
+      return false;
+    }
+    if (l$argsStr != lOther$argsStr) {
+      return false;
+    }
+    final l$blockId = blockId;
+    final lOther$blockId = other.blockId;
+    if (_$data.containsKey('blockId') != other._$data.containsKey('blockId')) {
+      return false;
+    }
+    if (l$blockId != lOther$blockId) {
+      return false;
+    }
+    final l$extrinsicId = extrinsicId;
+    final lOther$extrinsicId = other.extrinsicId;
+    if (_$data.containsKey('extrinsicId') !=
+        other._$data.containsKey('extrinsicId')) {
+      return false;
+    }
+    if (l$extrinsicId != lOther$extrinsicId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$name = name;
+    final lOther$name = other.name;
+    if (_$data.containsKey('name') != other._$data.containsKey('name')) {
+      return false;
+    }
+    if (l$name != lOther$name) {
+      return false;
+    }
+    final l$pallet = pallet;
+    final lOther$pallet = other.pallet;
+    if (_$data.containsKey('pallet') != other._$data.containsKey('pallet')) {
+      return false;
+    }
+    if (l$pallet != lOther$pallet) {
+      return false;
+    }
+    final l$parentId = parentId;
+    final lOther$parentId = other.parentId;
+    if (_$data.containsKey('parentId') !=
+        other._$data.containsKey('parentId')) {
+      return false;
+    }
+    if (l$parentId != lOther$parentId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$address = address;
+    final l$argsStr = argsStr;
+    final l$blockId = blockId;
+    final l$extrinsicId = extrinsicId;
+    final l$id = id;
+    final l$name = name;
+    final l$pallet = pallet;
+    final l$parentId = parentId;
+    return Object.hashAll([
+      _$data.containsKey('address') ? l$address : const {},
+      _$data.containsKey('argsStr') ? l$argsStr : const {},
+      _$data.containsKey('blockId') ? l$blockId : const {},
+      _$data.containsKey('extrinsicId') ? l$extrinsicId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('name') ? l$name : const {},
+      _$data.containsKey('pallet') ? l$pallet : const {},
+      _$data.containsKey('parentId') ? l$parentId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CallMinOrderBy<TRes> {
+  factory CopyWith$Input$CallMinOrderBy(
+    Input$CallMinOrderBy instance,
+    TRes Function(Input$CallMinOrderBy) then,
+  ) = _CopyWithImpl$Input$CallMinOrderBy;
+
+  factory CopyWith$Input$CallMinOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CallMinOrderBy;
+
+  TRes call({
+    Enum$OrderBy? address,
+    Enum$OrderBy? argsStr,
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Enum$OrderBy? parentId,
+  });
+}
+
+class _CopyWithImpl$Input$CallMinOrderBy<TRes>
+    implements CopyWith$Input$CallMinOrderBy<TRes> {
+  _CopyWithImpl$Input$CallMinOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CallMinOrderBy _instance;
+
+  final TRes Function(Input$CallMinOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? address = _undefined,
+    Object? argsStr = _undefined,
+    Object? blockId = _undefined,
+    Object? extrinsicId = _undefined,
+    Object? id = _undefined,
+    Object? name = _undefined,
+    Object? pallet = _undefined,
+    Object? parentId = _undefined,
+  }) =>
+      _then(Input$CallMinOrderBy._({
+        ..._instance._$data,
+        if (address != _undefined) 'address': (address as Enum$OrderBy?),
+        if (argsStr != _undefined) 'argsStr': (argsStr as Enum$OrderBy?),
+        if (blockId != _undefined) 'blockId': (blockId as Enum$OrderBy?),
+        if (extrinsicId != _undefined)
+          'extrinsicId': (extrinsicId as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (name != _undefined) 'name': (name as Enum$OrderBy?),
+        if (pallet != _undefined) 'pallet': (pallet as Enum$OrderBy?),
+        if (parentId != _undefined) 'parentId': (parentId as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CallMinOrderBy<TRes>
+    implements CopyWith$Input$CallMinOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CallMinOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? address,
+    Enum$OrderBy? argsStr,
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Enum$OrderBy? parentId,
+  }) =>
+      _res;
+}
+
+class Input$CallOrderBy {
+  factory Input$CallOrderBy({
+    Enum$OrderBy? address,
+    Enum$OrderBy? args,
+    Enum$OrderBy? argsStr,
+    Input$BlockOrderBy? block,
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? error,
+    Input$EventAggregateOrderBy? eventsAggregate,
+    Input$ExtrinsicOrderBy? extrinsic,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Input$CallOrderBy? parent,
+    Enum$OrderBy? parentId,
+    Input$CallAggregateOrderBy? subcallsAggregate,
+    Enum$OrderBy? success,
+  }) =>
+      Input$CallOrderBy._({
+        if (address != null) r'address': address,
+        if (args != null) r'args': args,
+        if (argsStr != null) r'argsStr': argsStr,
+        if (block != null) r'block': block,
+        if (blockId != null) r'blockId': blockId,
+        if (error != null) r'error': error,
+        if (eventsAggregate != null) r'eventsAggregate': eventsAggregate,
+        if (extrinsic != null) r'extrinsic': extrinsic,
+        if (extrinsicId != null) r'extrinsicId': extrinsicId,
+        if (id != null) r'id': id,
+        if (name != null) r'name': name,
+        if (pallet != null) r'pallet': pallet,
+        if (parent != null) r'parent': parent,
+        if (parentId != null) r'parentId': parentId,
+        if (subcallsAggregate != null) r'subcallsAggregate': subcallsAggregate,
+        if (success != null) r'success': success,
+      });
+
+  Input$CallOrderBy._(this._$data);
+
+  factory Input$CallOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('address')) {
+      final l$address = data['address'];
+      result$data['address'] = l$address == null
+          ? null
+          : fromJson$Enum$OrderBy((l$address as String));
+    }
+    if (data.containsKey('args')) {
+      final l$args = data['args'];
+      result$data['args'] =
+          l$args == null ? null : fromJson$Enum$OrderBy((l$args as String));
+    }
+    if (data.containsKey('argsStr')) {
+      final l$argsStr = data['argsStr'];
+      result$data['argsStr'] = l$argsStr == null
+          ? null
+          : fromJson$Enum$OrderBy((l$argsStr as String));
+    }
+    if (data.containsKey('block')) {
+      final l$block = data['block'];
+      result$data['block'] = l$block == null
+          ? null
+          : Input$BlockOrderBy.fromJson((l$block as Map<String, dynamic>));
+    }
+    if (data.containsKey('blockId')) {
+      final l$blockId = data['blockId'];
+      result$data['blockId'] = l$blockId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockId as String));
+    }
+    if (data.containsKey('error')) {
+      final l$error = data['error'];
+      result$data['error'] =
+          l$error == null ? null : fromJson$Enum$OrderBy((l$error as String));
+    }
+    if (data.containsKey('eventsAggregate')) {
+      final l$eventsAggregate = data['eventsAggregate'];
+      result$data['eventsAggregate'] = l$eventsAggregate == null
+          ? null
+          : Input$EventAggregateOrderBy.fromJson(
+              (l$eventsAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('extrinsic')) {
+      final l$extrinsic = data['extrinsic'];
+      result$data['extrinsic'] = l$extrinsic == null
+          ? null
+          : Input$ExtrinsicOrderBy.fromJson(
+              (l$extrinsic as Map<String, dynamic>));
+    }
+    if (data.containsKey('extrinsicId')) {
+      final l$extrinsicId = data['extrinsicId'];
+      result$data['extrinsicId'] = l$extrinsicId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$extrinsicId as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('name')) {
+      final l$name = data['name'];
+      result$data['name'] =
+          l$name == null ? null : fromJson$Enum$OrderBy((l$name as String));
+    }
+    if (data.containsKey('pallet')) {
+      final l$pallet = data['pallet'];
+      result$data['pallet'] =
+          l$pallet == null ? null : fromJson$Enum$OrderBy((l$pallet as String));
+    }
+    if (data.containsKey('parent')) {
+      final l$parent = data['parent'];
+      result$data['parent'] = l$parent == null
+          ? null
+          : Input$CallOrderBy.fromJson((l$parent as Map<String, dynamic>));
+    }
+    if (data.containsKey('parentId')) {
+      final l$parentId = data['parentId'];
+      result$data['parentId'] = l$parentId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$parentId as String));
+    }
+    if (data.containsKey('subcallsAggregate')) {
+      final l$subcallsAggregate = data['subcallsAggregate'];
+      result$data['subcallsAggregate'] = l$subcallsAggregate == null
+          ? null
+          : Input$CallAggregateOrderBy.fromJson(
+              (l$subcallsAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('success')) {
+      final l$success = data['success'];
+      result$data['success'] = l$success == null
+          ? null
+          : fromJson$Enum$OrderBy((l$success as String));
+    }
+    return Input$CallOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get address => (_$data['address'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get args => (_$data['args'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get argsStr => (_$data['argsStr'] as Enum$OrderBy?);
+
+  Input$BlockOrderBy? get block => (_$data['block'] as Input$BlockOrderBy?);
+
+  Enum$OrderBy? get blockId => (_$data['blockId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get error => (_$data['error'] as Enum$OrderBy?);
+
+  Input$EventAggregateOrderBy? get eventsAggregate =>
+      (_$data['eventsAggregate'] as Input$EventAggregateOrderBy?);
+
+  Input$ExtrinsicOrderBy? get extrinsic =>
+      (_$data['extrinsic'] as Input$ExtrinsicOrderBy?);
+
+  Enum$OrderBy? get extrinsicId => (_$data['extrinsicId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get name => (_$data['name'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get pallet => (_$data['pallet'] as Enum$OrderBy?);
+
+  Input$CallOrderBy? get parent => (_$data['parent'] as Input$CallOrderBy?);
+
+  Enum$OrderBy? get parentId => (_$data['parentId'] as Enum$OrderBy?);
+
+  Input$CallAggregateOrderBy? get subcallsAggregate =>
+      (_$data['subcallsAggregate'] as Input$CallAggregateOrderBy?);
+
+  Enum$OrderBy? get success => (_$data['success'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('address')) {
+      final l$address = address;
+      result$data['address'] =
+          l$address == null ? null : toJson$Enum$OrderBy(l$address);
+    }
+    if (_$data.containsKey('args')) {
+      final l$args = args;
+      result$data['args'] = l$args == null ? null : toJson$Enum$OrderBy(l$args);
+    }
+    if (_$data.containsKey('argsStr')) {
+      final l$argsStr = argsStr;
+      result$data['argsStr'] =
+          l$argsStr == null ? null : toJson$Enum$OrderBy(l$argsStr);
+    }
+    if (_$data.containsKey('block')) {
+      final l$block = block;
+      result$data['block'] = l$block?.toJson();
+    }
+    if (_$data.containsKey('blockId')) {
+      final l$blockId = blockId;
+      result$data['blockId'] =
+          l$blockId == null ? null : toJson$Enum$OrderBy(l$blockId);
+    }
+    if (_$data.containsKey('error')) {
+      final l$error = error;
+      result$data['error'] =
+          l$error == null ? null : toJson$Enum$OrderBy(l$error);
+    }
+    if (_$data.containsKey('eventsAggregate')) {
+      final l$eventsAggregate = eventsAggregate;
+      result$data['eventsAggregate'] = l$eventsAggregate?.toJson();
+    }
+    if (_$data.containsKey('extrinsic')) {
+      final l$extrinsic = extrinsic;
+      result$data['extrinsic'] = l$extrinsic?.toJson();
+    }
+    if (_$data.containsKey('extrinsicId')) {
+      final l$extrinsicId = extrinsicId;
+      result$data['extrinsicId'] =
+          l$extrinsicId == null ? null : toJson$Enum$OrderBy(l$extrinsicId);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('name')) {
+      final l$name = name;
+      result$data['name'] = l$name == null ? null : toJson$Enum$OrderBy(l$name);
+    }
+    if (_$data.containsKey('pallet')) {
+      final l$pallet = pallet;
+      result$data['pallet'] =
+          l$pallet == null ? null : toJson$Enum$OrderBy(l$pallet);
+    }
+    if (_$data.containsKey('parent')) {
+      final l$parent = parent;
+      result$data['parent'] = l$parent?.toJson();
+    }
+    if (_$data.containsKey('parentId')) {
+      final l$parentId = parentId;
+      result$data['parentId'] =
+          l$parentId == null ? null : toJson$Enum$OrderBy(l$parentId);
+    }
+    if (_$data.containsKey('subcallsAggregate')) {
+      final l$subcallsAggregate = subcallsAggregate;
+      result$data['subcallsAggregate'] = l$subcallsAggregate?.toJson();
+    }
+    if (_$data.containsKey('success')) {
+      final l$success = success;
+      result$data['success'] =
+          l$success == null ? null : toJson$Enum$OrderBy(l$success);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CallOrderBy<Input$CallOrderBy> get copyWith =>
+      CopyWith$Input$CallOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CallOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$address = address;
+    final lOther$address = other.address;
+    if (_$data.containsKey('address') != other._$data.containsKey('address')) {
+      return false;
+    }
+    if (l$address != lOther$address) {
+      return false;
+    }
+    final l$args = args;
+    final lOther$args = other.args;
+    if (_$data.containsKey('args') != other._$data.containsKey('args')) {
+      return false;
+    }
+    if (l$args != lOther$args) {
+      return false;
+    }
+    final l$argsStr = argsStr;
+    final lOther$argsStr = other.argsStr;
+    if (_$data.containsKey('argsStr') != other._$data.containsKey('argsStr')) {
+      return false;
+    }
+    if (l$argsStr != lOther$argsStr) {
+      return false;
+    }
+    final l$block = block;
+    final lOther$block = other.block;
+    if (_$data.containsKey('block') != other._$data.containsKey('block')) {
+      return false;
+    }
+    if (l$block != lOther$block) {
+      return false;
+    }
+    final l$blockId = blockId;
+    final lOther$blockId = other.blockId;
+    if (_$data.containsKey('blockId') != other._$data.containsKey('blockId')) {
+      return false;
+    }
+    if (l$blockId != lOther$blockId) {
+      return false;
+    }
+    final l$error = error;
+    final lOther$error = other.error;
+    if (_$data.containsKey('error') != other._$data.containsKey('error')) {
+      return false;
+    }
+    if (l$error != lOther$error) {
+      return false;
+    }
+    final l$eventsAggregate = eventsAggregate;
+    final lOther$eventsAggregate = other.eventsAggregate;
+    if (_$data.containsKey('eventsAggregate') !=
+        other._$data.containsKey('eventsAggregate')) {
+      return false;
+    }
+    if (l$eventsAggregate != lOther$eventsAggregate) {
+      return false;
+    }
+    final l$extrinsic = extrinsic;
+    final lOther$extrinsic = other.extrinsic;
+    if (_$data.containsKey('extrinsic') !=
+        other._$data.containsKey('extrinsic')) {
+      return false;
+    }
+    if (l$extrinsic != lOther$extrinsic) {
+      return false;
+    }
+    final l$extrinsicId = extrinsicId;
+    final lOther$extrinsicId = other.extrinsicId;
+    if (_$data.containsKey('extrinsicId') !=
+        other._$data.containsKey('extrinsicId')) {
+      return false;
+    }
+    if (l$extrinsicId != lOther$extrinsicId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$name = name;
+    final lOther$name = other.name;
+    if (_$data.containsKey('name') != other._$data.containsKey('name')) {
+      return false;
+    }
+    if (l$name != lOther$name) {
+      return false;
+    }
+    final l$pallet = pallet;
+    final lOther$pallet = other.pallet;
+    if (_$data.containsKey('pallet') != other._$data.containsKey('pallet')) {
+      return false;
+    }
+    if (l$pallet != lOther$pallet) {
+      return false;
+    }
+    final l$parent = parent;
+    final lOther$parent = other.parent;
+    if (_$data.containsKey('parent') != other._$data.containsKey('parent')) {
+      return false;
+    }
+    if (l$parent != lOther$parent) {
+      return false;
+    }
+    final l$parentId = parentId;
+    final lOther$parentId = other.parentId;
+    if (_$data.containsKey('parentId') !=
+        other._$data.containsKey('parentId')) {
+      return false;
+    }
+    if (l$parentId != lOther$parentId) {
+      return false;
+    }
+    final l$subcallsAggregate = subcallsAggregate;
+    final lOther$subcallsAggregate = other.subcallsAggregate;
+    if (_$data.containsKey('subcallsAggregate') !=
+        other._$data.containsKey('subcallsAggregate')) {
+      return false;
+    }
+    if (l$subcallsAggregate != lOther$subcallsAggregate) {
+      return false;
+    }
+    final l$success = success;
+    final lOther$success = other.success;
+    if (_$data.containsKey('success') != other._$data.containsKey('success')) {
+      return false;
+    }
+    if (l$success != lOther$success) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$address = address;
+    final l$args = args;
+    final l$argsStr = argsStr;
+    final l$block = block;
+    final l$blockId = blockId;
+    final l$error = error;
+    final l$eventsAggregate = eventsAggregate;
+    final l$extrinsic = extrinsic;
+    final l$extrinsicId = extrinsicId;
+    final l$id = id;
+    final l$name = name;
+    final l$pallet = pallet;
+    final l$parent = parent;
+    final l$parentId = parentId;
+    final l$subcallsAggregate = subcallsAggregate;
+    final l$success = success;
+    return Object.hashAll([
+      _$data.containsKey('address') ? l$address : const {},
+      _$data.containsKey('args') ? l$args : const {},
+      _$data.containsKey('argsStr') ? l$argsStr : const {},
+      _$data.containsKey('block') ? l$block : const {},
+      _$data.containsKey('blockId') ? l$blockId : const {},
+      _$data.containsKey('error') ? l$error : const {},
+      _$data.containsKey('eventsAggregate') ? l$eventsAggregate : const {},
+      _$data.containsKey('extrinsic') ? l$extrinsic : const {},
+      _$data.containsKey('extrinsicId') ? l$extrinsicId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('name') ? l$name : const {},
+      _$data.containsKey('pallet') ? l$pallet : const {},
+      _$data.containsKey('parent') ? l$parent : const {},
+      _$data.containsKey('parentId') ? l$parentId : const {},
+      _$data.containsKey('subcallsAggregate') ? l$subcallsAggregate : const {},
+      _$data.containsKey('success') ? l$success : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CallOrderBy<TRes> {
+  factory CopyWith$Input$CallOrderBy(
+    Input$CallOrderBy instance,
+    TRes Function(Input$CallOrderBy) then,
+  ) = _CopyWithImpl$Input$CallOrderBy;
+
+  factory CopyWith$Input$CallOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CallOrderBy;
+
+  TRes call({
+    Enum$OrderBy? address,
+    Enum$OrderBy? args,
+    Enum$OrderBy? argsStr,
+    Input$BlockOrderBy? block,
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? error,
+    Input$EventAggregateOrderBy? eventsAggregate,
+    Input$ExtrinsicOrderBy? extrinsic,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Input$CallOrderBy? parent,
+    Enum$OrderBy? parentId,
+    Input$CallAggregateOrderBy? subcallsAggregate,
+    Enum$OrderBy? success,
+  });
+  CopyWith$Input$BlockOrderBy<TRes> get block;
+  CopyWith$Input$EventAggregateOrderBy<TRes> get eventsAggregate;
+  CopyWith$Input$ExtrinsicOrderBy<TRes> get extrinsic;
+  CopyWith$Input$CallOrderBy<TRes> get parent;
+  CopyWith$Input$CallAggregateOrderBy<TRes> get subcallsAggregate;
+}
+
+class _CopyWithImpl$Input$CallOrderBy<TRes>
+    implements CopyWith$Input$CallOrderBy<TRes> {
+  _CopyWithImpl$Input$CallOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CallOrderBy _instance;
+
+  final TRes Function(Input$CallOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? address = _undefined,
+    Object? args = _undefined,
+    Object? argsStr = _undefined,
+    Object? block = _undefined,
+    Object? blockId = _undefined,
+    Object? error = _undefined,
+    Object? eventsAggregate = _undefined,
+    Object? extrinsic = _undefined,
+    Object? extrinsicId = _undefined,
+    Object? id = _undefined,
+    Object? name = _undefined,
+    Object? pallet = _undefined,
+    Object? parent = _undefined,
+    Object? parentId = _undefined,
+    Object? subcallsAggregate = _undefined,
+    Object? success = _undefined,
+  }) =>
+      _then(Input$CallOrderBy._({
+        ..._instance._$data,
+        if (address != _undefined) 'address': (address as Enum$OrderBy?),
+        if (args != _undefined) 'args': (args as Enum$OrderBy?),
+        if (argsStr != _undefined) 'argsStr': (argsStr as Enum$OrderBy?),
+        if (block != _undefined) 'block': (block as Input$BlockOrderBy?),
+        if (blockId != _undefined) 'blockId': (blockId as Enum$OrderBy?),
+        if (error != _undefined) 'error': (error as Enum$OrderBy?),
+        if (eventsAggregate != _undefined)
+          'eventsAggregate': (eventsAggregate as Input$EventAggregateOrderBy?),
+        if (extrinsic != _undefined)
+          'extrinsic': (extrinsic as Input$ExtrinsicOrderBy?),
+        if (extrinsicId != _undefined)
+          'extrinsicId': (extrinsicId as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (name != _undefined) 'name': (name as Enum$OrderBy?),
+        if (pallet != _undefined) 'pallet': (pallet as Enum$OrderBy?),
+        if (parent != _undefined) 'parent': (parent as Input$CallOrderBy?),
+        if (parentId != _undefined) 'parentId': (parentId as Enum$OrderBy?),
+        if (subcallsAggregate != _undefined)
+          'subcallsAggregate':
+              (subcallsAggregate as Input$CallAggregateOrderBy?),
+        if (success != _undefined) 'success': (success as Enum$OrderBy?),
+      }));
+
+  CopyWith$Input$BlockOrderBy<TRes> get block {
+    final local$block = _instance.block;
+    return local$block == null
+        ? CopyWith$Input$BlockOrderBy.stub(_then(_instance))
+        : CopyWith$Input$BlockOrderBy(local$block, (e) => call(block: e));
+  }
+
+  CopyWith$Input$EventAggregateOrderBy<TRes> get eventsAggregate {
+    final local$eventsAggregate = _instance.eventsAggregate;
+    return local$eventsAggregate == null
+        ? CopyWith$Input$EventAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventAggregateOrderBy(
+            local$eventsAggregate, (e) => call(eventsAggregate: e));
+  }
+
+  CopyWith$Input$ExtrinsicOrderBy<TRes> get extrinsic {
+    final local$extrinsic = _instance.extrinsic;
+    return local$extrinsic == null
+        ? CopyWith$Input$ExtrinsicOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicOrderBy(
+            local$extrinsic, (e) => call(extrinsic: e));
+  }
+
+  CopyWith$Input$CallOrderBy<TRes> get parent {
+    final local$parent = _instance.parent;
+    return local$parent == null
+        ? CopyWith$Input$CallOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CallOrderBy(local$parent, (e) => call(parent: e));
+  }
+
+  CopyWith$Input$CallAggregateOrderBy<TRes> get subcallsAggregate {
+    final local$subcallsAggregate = _instance.subcallsAggregate;
+    return local$subcallsAggregate == null
+        ? CopyWith$Input$CallAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CallAggregateOrderBy(
+            local$subcallsAggregate, (e) => call(subcallsAggregate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$CallOrderBy<TRes>
+    implements CopyWith$Input$CallOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CallOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? address,
+    Enum$OrderBy? args,
+    Enum$OrderBy? argsStr,
+    Input$BlockOrderBy? block,
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? error,
+    Input$EventAggregateOrderBy? eventsAggregate,
+    Input$ExtrinsicOrderBy? extrinsic,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Input$CallOrderBy? parent,
+    Enum$OrderBy? parentId,
+    Input$CallAggregateOrderBy? subcallsAggregate,
+    Enum$OrderBy? success,
+  }) =>
+      _res;
+
+  CopyWith$Input$BlockOrderBy<TRes> get block =>
+      CopyWith$Input$BlockOrderBy.stub(_res);
+
+  CopyWith$Input$EventAggregateOrderBy<TRes> get eventsAggregate =>
+      CopyWith$Input$EventAggregateOrderBy.stub(_res);
+
+  CopyWith$Input$ExtrinsicOrderBy<TRes> get extrinsic =>
+      CopyWith$Input$ExtrinsicOrderBy.stub(_res);
+
+  CopyWith$Input$CallOrderBy<TRes> get parent =>
+      CopyWith$Input$CallOrderBy.stub(_res);
+
+  CopyWith$Input$CallAggregateOrderBy<TRes> get subcallsAggregate =>
+      CopyWith$Input$CallAggregateOrderBy.stub(_res);
+}
+
+class Input$CertAggregateBoolExp {
+  factory Input$CertAggregateBoolExp({
+    Input$certAggregateBoolExpBool_and? bool_and,
+    Input$certAggregateBoolExpBool_or? bool_or,
+    Input$certAggregateBoolExpCount? count,
+  }) =>
+      Input$CertAggregateBoolExp._({
+        if (bool_and != null) r'bool_and': bool_and,
+        if (bool_or != null) r'bool_or': bool_or,
+        if (count != null) r'count': count,
+      });
+
+  Input$CertAggregateBoolExp._(this._$data);
+
+  factory Input$CertAggregateBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('bool_and')) {
+      final l$bool_and = data['bool_and'];
+      result$data['bool_and'] = l$bool_and == null
+          ? null
+          : Input$certAggregateBoolExpBool_and.fromJson(
+              (l$bool_and as Map<String, dynamic>));
+    }
+    if (data.containsKey('bool_or')) {
+      final l$bool_or = data['bool_or'];
+      result$data['bool_or'] = l$bool_or == null
+          ? null
+          : Input$certAggregateBoolExpBool_or.fromJson(
+              (l$bool_or as Map<String, dynamic>));
+    }
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] = l$count == null
+          ? null
+          : Input$certAggregateBoolExpCount.fromJson(
+              (l$count as Map<String, dynamic>));
+    }
+    return Input$CertAggregateBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$certAggregateBoolExpBool_and? get bool_and =>
+      (_$data['bool_and'] as Input$certAggregateBoolExpBool_and?);
+
+  Input$certAggregateBoolExpBool_or? get bool_or =>
+      (_$data['bool_or'] as Input$certAggregateBoolExpBool_or?);
+
+  Input$certAggregateBoolExpCount? get count =>
+      (_$data['count'] as Input$certAggregateBoolExpCount?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('bool_and')) {
+      final l$bool_and = bool_and;
+      result$data['bool_and'] = l$bool_and?.toJson();
+    }
+    if (_$data.containsKey('bool_or')) {
+      final l$bool_or = bool_or;
+      result$data['bool_or'] = l$bool_or?.toJson();
+    }
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] = l$count?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertAggregateBoolExp<Input$CertAggregateBoolExp>
+      get copyWith => CopyWith$Input$CertAggregateBoolExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertAggregateBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$bool_and = bool_and;
+    final lOther$bool_and = other.bool_and;
+    if (_$data.containsKey('bool_and') !=
+        other._$data.containsKey('bool_and')) {
+      return false;
+    }
+    if (l$bool_and != lOther$bool_and) {
+      return false;
+    }
+    final l$bool_or = bool_or;
+    final lOther$bool_or = other.bool_or;
+    if (_$data.containsKey('bool_or') != other._$data.containsKey('bool_or')) {
+      return false;
+    }
+    if (l$bool_or != lOther$bool_or) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$bool_and = bool_and;
+    final l$bool_or = bool_or;
+    final l$count = count;
+    return Object.hashAll([
+      _$data.containsKey('bool_and') ? l$bool_and : const {},
+      _$data.containsKey('bool_or') ? l$bool_or : const {},
+      _$data.containsKey('count') ? l$count : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertAggregateBoolExp<TRes> {
+  factory CopyWith$Input$CertAggregateBoolExp(
+    Input$CertAggregateBoolExp instance,
+    TRes Function(Input$CertAggregateBoolExp) then,
+  ) = _CopyWithImpl$Input$CertAggregateBoolExp;
+
+  factory CopyWith$Input$CertAggregateBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertAggregateBoolExp;
+
+  TRes call({
+    Input$certAggregateBoolExpBool_and? bool_and,
+    Input$certAggregateBoolExpBool_or? bool_or,
+    Input$certAggregateBoolExpCount? count,
+  });
+  CopyWith$Input$certAggregateBoolExpBool_and<TRes> get bool_and;
+  CopyWith$Input$certAggregateBoolExpBool_or<TRes> get bool_or;
+  CopyWith$Input$certAggregateBoolExpCount<TRes> get count;
+}
+
+class _CopyWithImpl$Input$CertAggregateBoolExp<TRes>
+    implements CopyWith$Input$CertAggregateBoolExp<TRes> {
+  _CopyWithImpl$Input$CertAggregateBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertAggregateBoolExp _instance;
+
+  final TRes Function(Input$CertAggregateBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? bool_and = _undefined,
+    Object? bool_or = _undefined,
+    Object? count = _undefined,
+  }) =>
+      _then(Input$CertAggregateBoolExp._({
+        ..._instance._$data,
+        if (bool_and != _undefined)
+          'bool_and': (bool_and as Input$certAggregateBoolExpBool_and?),
+        if (bool_or != _undefined)
+          'bool_or': (bool_or as Input$certAggregateBoolExpBool_or?),
+        if (count != _undefined)
+          'count': (count as Input$certAggregateBoolExpCount?),
+      }));
+
+  CopyWith$Input$certAggregateBoolExpBool_and<TRes> get bool_and {
+    final local$bool_and = _instance.bool_and;
+    return local$bool_and == null
+        ? CopyWith$Input$certAggregateBoolExpBool_and.stub(_then(_instance))
+        : CopyWith$Input$certAggregateBoolExpBool_and(
+            local$bool_and, (e) => call(bool_and: e));
+  }
+
+  CopyWith$Input$certAggregateBoolExpBool_or<TRes> get bool_or {
+    final local$bool_or = _instance.bool_or;
+    return local$bool_or == null
+        ? CopyWith$Input$certAggregateBoolExpBool_or.stub(_then(_instance))
+        : CopyWith$Input$certAggregateBoolExpBool_or(
+            local$bool_or, (e) => call(bool_or: e));
+  }
+
+  CopyWith$Input$certAggregateBoolExpCount<TRes> get count {
+    final local$count = _instance.count;
+    return local$count == null
+        ? CopyWith$Input$certAggregateBoolExpCount.stub(_then(_instance))
+        : CopyWith$Input$certAggregateBoolExpCount(
+            local$count, (e) => call(count: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$CertAggregateBoolExp<TRes>
+    implements CopyWith$Input$CertAggregateBoolExp<TRes> {
+  _CopyWithStubImpl$Input$CertAggregateBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    Input$certAggregateBoolExpBool_and? bool_and,
+    Input$certAggregateBoolExpBool_or? bool_or,
+    Input$certAggregateBoolExpCount? count,
+  }) =>
+      _res;
+
+  CopyWith$Input$certAggregateBoolExpBool_and<TRes> get bool_and =>
+      CopyWith$Input$certAggregateBoolExpBool_and.stub(_res);
+
+  CopyWith$Input$certAggregateBoolExpBool_or<TRes> get bool_or =>
+      CopyWith$Input$certAggregateBoolExpBool_or.stub(_res);
+
+  CopyWith$Input$certAggregateBoolExpCount<TRes> get count =>
+      CopyWith$Input$certAggregateBoolExpCount.stub(_res);
+}
+
+class Input$certAggregateBoolExpBool_and {
+  factory Input$certAggregateBoolExpBool_and({
+    required Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns
+        arguments,
+    bool? distinct,
+    Input$CertBoolExp? filter,
+    required Input$BooleanComparisonExp predicate,
+  }) =>
+      Input$certAggregateBoolExpBool_and._({
+        r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$certAggregateBoolExpBool_and._(this._$data);
+
+  factory Input$certAggregateBoolExpBool_and.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    final l$arguments = data['arguments'];
+    result$data['arguments'] =
+        fromJson$Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns(
+            (l$arguments as String));
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$CertBoolExp.fromJson((l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] = Input$BooleanComparisonExp.fromJson(
+        (l$predicate as Map<String, dynamic>));
+    return Input$certAggregateBoolExpBool_and._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns
+      get arguments => (_$data['arguments']
+          as Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$CertBoolExp? get filter => (_$data['filter'] as Input$CertBoolExp?);
+
+  Input$BooleanComparisonExp get predicate =>
+      (_$data['predicate'] as Input$BooleanComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    final l$arguments = arguments;
+    result$data['arguments'] =
+        toJson$Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns(
+            l$arguments);
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$certAggregateBoolExpBool_and<
+          Input$certAggregateBoolExpBool_and>
+      get copyWith => CopyWith$Input$certAggregateBoolExpBool_and(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$certAggregateBoolExpBool_and) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      l$arguments,
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$certAggregateBoolExpBool_and<TRes> {
+  factory CopyWith$Input$certAggregateBoolExpBool_and(
+    Input$certAggregateBoolExpBool_and instance,
+    TRes Function(Input$certAggregateBoolExpBool_and) then,
+  ) = _CopyWithImpl$Input$certAggregateBoolExpBool_and;
+
+  factory CopyWith$Input$certAggregateBoolExpBool_and.stub(TRes res) =
+      _CopyWithStubImpl$Input$certAggregateBoolExpBool_and;
+
+  TRes call({
+    Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns?
+        arguments,
+    bool? distinct,
+    Input$CertBoolExp? filter,
+    Input$BooleanComparisonExp? predicate,
+  });
+  CopyWith$Input$CertBoolExp<TRes> get filter;
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$certAggregateBoolExpBool_and<TRes>
+    implements CopyWith$Input$certAggregateBoolExpBool_and<TRes> {
+  _CopyWithImpl$Input$certAggregateBoolExpBool_and(
+    this._instance,
+    this._then,
+  );
+
+  final Input$certAggregateBoolExpBool_and _instance;
+
+  final TRes Function(Input$certAggregateBoolExpBool_and) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$certAggregateBoolExpBool_and._({
+        ..._instance._$data,
+        if (arguments != _undefined && arguments != null)
+          'arguments': (arguments
+              as Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined) 'filter': (filter as Input$CertBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$BooleanComparisonExp),
+      }));
+
+  CopyWith$Input$CertBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$CertBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CertBoolExp(local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$BooleanComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$certAggregateBoolExpBool_and<TRes>
+    implements CopyWith$Input$certAggregateBoolExpBool_and<TRes> {
+  _CopyWithStubImpl$Input$certAggregateBoolExpBool_and(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns?
+        arguments,
+    bool? distinct,
+    Input$CertBoolExp? filter,
+    Input$BooleanComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$CertBoolExp<TRes> get filter =>
+      CopyWith$Input$CertBoolExp.stub(_res);
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate =>
+      CopyWith$Input$BooleanComparisonExp.stub(_res);
+}
+
+class Input$certAggregateBoolExpBool_or {
+  factory Input$certAggregateBoolExpBool_or({
+    required Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns
+        arguments,
+    bool? distinct,
+    Input$CertBoolExp? filter,
+    required Input$BooleanComparisonExp predicate,
+  }) =>
+      Input$certAggregateBoolExpBool_or._({
+        r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$certAggregateBoolExpBool_or._(this._$data);
+
+  factory Input$certAggregateBoolExpBool_or.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    final l$arguments = data['arguments'];
+    result$data['arguments'] =
+        fromJson$Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns(
+            (l$arguments as String));
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$CertBoolExp.fromJson((l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] = Input$BooleanComparisonExp.fromJson(
+        (l$predicate as Map<String, dynamic>));
+    return Input$certAggregateBoolExpBool_or._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns
+      get arguments => (_$data['arguments']
+          as Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$CertBoolExp? get filter => (_$data['filter'] as Input$CertBoolExp?);
+
+  Input$BooleanComparisonExp get predicate =>
+      (_$data['predicate'] as Input$BooleanComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    final l$arguments = arguments;
+    result$data['arguments'] =
+        toJson$Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns(
+            l$arguments);
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$certAggregateBoolExpBool_or<Input$certAggregateBoolExpBool_or>
+      get copyWith => CopyWith$Input$certAggregateBoolExpBool_or(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$certAggregateBoolExpBool_or) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      l$arguments,
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$certAggregateBoolExpBool_or<TRes> {
+  factory CopyWith$Input$certAggregateBoolExpBool_or(
+    Input$certAggregateBoolExpBool_or instance,
+    TRes Function(Input$certAggregateBoolExpBool_or) then,
+  ) = _CopyWithImpl$Input$certAggregateBoolExpBool_or;
+
+  factory CopyWith$Input$certAggregateBoolExpBool_or.stub(TRes res) =
+      _CopyWithStubImpl$Input$certAggregateBoolExpBool_or;
+
+  TRes call({
+    Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns? arguments,
+    bool? distinct,
+    Input$CertBoolExp? filter,
+    Input$BooleanComparisonExp? predicate,
+  });
+  CopyWith$Input$CertBoolExp<TRes> get filter;
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$certAggregateBoolExpBool_or<TRes>
+    implements CopyWith$Input$certAggregateBoolExpBool_or<TRes> {
+  _CopyWithImpl$Input$certAggregateBoolExpBool_or(
+    this._instance,
+    this._then,
+  );
+
+  final Input$certAggregateBoolExpBool_or _instance;
+
+  final TRes Function(Input$certAggregateBoolExpBool_or) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$certAggregateBoolExpBool_or._({
+        ..._instance._$data,
+        if (arguments != _undefined && arguments != null)
+          'arguments': (arguments
+              as Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined) 'filter': (filter as Input$CertBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$BooleanComparisonExp),
+      }));
+
+  CopyWith$Input$CertBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$CertBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CertBoolExp(local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$BooleanComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$certAggregateBoolExpBool_or<TRes>
+    implements CopyWith$Input$certAggregateBoolExpBool_or<TRes> {
+  _CopyWithStubImpl$Input$certAggregateBoolExpBool_or(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns? arguments,
+    bool? distinct,
+    Input$CertBoolExp? filter,
+    Input$BooleanComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$CertBoolExp<TRes> get filter =>
+      CopyWith$Input$CertBoolExp.stub(_res);
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate =>
+      CopyWith$Input$BooleanComparisonExp.stub(_res);
+}
+
+class Input$certAggregateBoolExpCount {
+  factory Input$certAggregateBoolExpCount({
+    List<Enum$CertSelectColumn>? arguments,
+    bool? distinct,
+    Input$CertBoolExp? filter,
+    required Input$IntComparisonExp predicate,
+  }) =>
+      Input$certAggregateBoolExpCount._({
+        if (arguments != null) r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$certAggregateBoolExpCount._(this._$data);
+
+  factory Input$certAggregateBoolExpCount.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('arguments')) {
+      final l$arguments = data['arguments'];
+      result$data['arguments'] = (l$arguments as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$CertSelectColumn((e as String)))
+          .toList();
+    }
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$CertBoolExp.fromJson((l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] =
+        Input$IntComparisonExp.fromJson((l$predicate as Map<String, dynamic>));
+    return Input$certAggregateBoolExpCount._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Enum$CertSelectColumn>? get arguments =>
+      (_$data['arguments'] as List<Enum$CertSelectColumn>?);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$CertBoolExp? get filter => (_$data['filter'] as Input$CertBoolExp?);
+
+  Input$IntComparisonExp get predicate =>
+      (_$data['predicate'] as Input$IntComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('arguments')) {
+      final l$arguments = arguments;
+      result$data['arguments'] =
+          l$arguments?.map((e) => toJson$Enum$CertSelectColumn(e)).toList();
+    }
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$certAggregateBoolExpCount<Input$certAggregateBoolExpCount>
+      get copyWith => CopyWith$Input$certAggregateBoolExpCount(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$certAggregateBoolExpCount) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (_$data.containsKey('arguments') !=
+        other._$data.containsKey('arguments')) {
+      return false;
+    }
+    if (l$arguments != null && lOther$arguments != null) {
+      if (l$arguments.length != lOther$arguments.length) {
+        return false;
+      }
+      for (int i = 0; i < l$arguments.length; i++) {
+        final l$arguments$entry = l$arguments[i];
+        final lOther$arguments$entry = lOther$arguments[i];
+        if (l$arguments$entry != lOther$arguments$entry) {
+          return false;
+        }
+      }
+    } else if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      _$data.containsKey('arguments')
+          ? l$arguments == null
+              ? null
+              : Object.hashAll(l$arguments.map((v) => v))
+          : const {},
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$certAggregateBoolExpCount<TRes> {
+  factory CopyWith$Input$certAggregateBoolExpCount(
+    Input$certAggregateBoolExpCount instance,
+    TRes Function(Input$certAggregateBoolExpCount) then,
+  ) = _CopyWithImpl$Input$certAggregateBoolExpCount;
+
+  factory CopyWith$Input$certAggregateBoolExpCount.stub(TRes res) =
+      _CopyWithStubImpl$Input$certAggregateBoolExpCount;
+
+  TRes call({
+    List<Enum$CertSelectColumn>? arguments,
+    bool? distinct,
+    Input$CertBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  });
+  CopyWith$Input$CertBoolExp<TRes> get filter;
+  CopyWith$Input$IntComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$certAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$certAggregateBoolExpCount<TRes> {
+  _CopyWithImpl$Input$certAggregateBoolExpCount(
+    this._instance,
+    this._then,
+  );
+
+  final Input$certAggregateBoolExpCount _instance;
+
+  final TRes Function(Input$certAggregateBoolExpCount) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$certAggregateBoolExpCount._({
+        ..._instance._$data,
+        if (arguments != _undefined)
+          'arguments': (arguments as List<Enum$CertSelectColumn>?),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined) 'filter': (filter as Input$CertBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$IntComparisonExp),
+      }));
+
+  CopyWith$Input$CertBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$CertBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CertBoolExp(local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$IntComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$certAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$certAggregateBoolExpCount<TRes> {
+  _CopyWithStubImpl$Input$certAggregateBoolExpCount(this._res);
+
+  TRes _res;
+
+  call({
+    List<Enum$CertSelectColumn>? arguments,
+    bool? distinct,
+    Input$CertBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$CertBoolExp<TRes> get filter =>
+      CopyWith$Input$CertBoolExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+}
+
+class Input$CertAggregateOrderBy {
+  factory Input$CertAggregateOrderBy({
+    Input$CertAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$CertMaxOrderBy? max,
+    Input$CertMinOrderBy? min,
+    Input$CertStddevOrderBy? stddev,
+    Input$CertStddevPopOrderBy? stddevPop,
+    Input$CertStddevSampOrderBy? stddevSamp,
+    Input$CertSumOrderBy? sum,
+    Input$CertVarPopOrderBy? varPop,
+    Input$CertVarSampOrderBy? varSamp,
+    Input$CertVarianceOrderBy? variance,
+  }) =>
+      Input$CertAggregateOrderBy._({
+        if (avg != null) r'avg': avg,
+        if (count != null) r'count': count,
+        if (max != null) r'max': max,
+        if (min != null) r'min': min,
+        if (stddev != null) r'stddev': stddev,
+        if (stddevPop != null) r'stddevPop': stddevPop,
+        if (stddevSamp != null) r'stddevSamp': stddevSamp,
+        if (sum != null) r'sum': sum,
+        if (varPop != null) r'varPop': varPop,
+        if (varSamp != null) r'varSamp': varSamp,
+        if (variance != null) r'variance': variance,
+      });
+
+  Input$CertAggregateOrderBy._(this._$data);
+
+  factory Input$CertAggregateOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('avg')) {
+      final l$avg = data['avg'];
+      result$data['avg'] = l$avg == null
+          ? null
+          : Input$CertAvgOrderBy.fromJson((l$avg as Map<String, dynamic>));
+    }
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] =
+          l$count == null ? null : fromJson$Enum$OrderBy((l$count as String));
+    }
+    if (data.containsKey('max')) {
+      final l$max = data['max'];
+      result$data['max'] = l$max == null
+          ? null
+          : Input$CertMaxOrderBy.fromJson((l$max as Map<String, dynamic>));
+    }
+    if (data.containsKey('min')) {
+      final l$min = data['min'];
+      result$data['min'] = l$min == null
+          ? null
+          : Input$CertMinOrderBy.fromJson((l$min as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddev')) {
+      final l$stddev = data['stddev'];
+      result$data['stddev'] = l$stddev == null
+          ? null
+          : Input$CertStddevOrderBy.fromJson(
+              (l$stddev as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevPop')) {
+      final l$stddevPop = data['stddevPop'];
+      result$data['stddevPop'] = l$stddevPop == null
+          ? null
+          : Input$CertStddevPopOrderBy.fromJson(
+              (l$stddevPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevSamp')) {
+      final l$stddevSamp = data['stddevSamp'];
+      result$data['stddevSamp'] = l$stddevSamp == null
+          ? null
+          : Input$CertStddevSampOrderBy.fromJson(
+              (l$stddevSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('sum')) {
+      final l$sum = data['sum'];
+      result$data['sum'] = l$sum == null
+          ? null
+          : Input$CertSumOrderBy.fromJson((l$sum as Map<String, dynamic>));
+    }
+    if (data.containsKey('varPop')) {
+      final l$varPop = data['varPop'];
+      result$data['varPop'] = l$varPop == null
+          ? null
+          : Input$CertVarPopOrderBy.fromJson(
+              (l$varPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('varSamp')) {
+      final l$varSamp = data['varSamp'];
+      result$data['varSamp'] = l$varSamp == null
+          ? null
+          : Input$CertVarSampOrderBy.fromJson(
+              (l$varSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('variance')) {
+      final l$variance = data['variance'];
+      result$data['variance'] = l$variance == null
+          ? null
+          : Input$CertVarianceOrderBy.fromJson(
+              (l$variance as Map<String, dynamic>));
+    }
+    return Input$CertAggregateOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$CertAvgOrderBy? get avg => (_$data['avg'] as Input$CertAvgOrderBy?);
+
+  Enum$OrderBy? get count => (_$data['count'] as Enum$OrderBy?);
+
+  Input$CertMaxOrderBy? get max => (_$data['max'] as Input$CertMaxOrderBy?);
+
+  Input$CertMinOrderBy? get min => (_$data['min'] as Input$CertMinOrderBy?);
+
+  Input$CertStddevOrderBy? get stddev =>
+      (_$data['stddev'] as Input$CertStddevOrderBy?);
+
+  Input$CertStddevPopOrderBy? get stddevPop =>
+      (_$data['stddevPop'] as Input$CertStddevPopOrderBy?);
+
+  Input$CertStddevSampOrderBy? get stddevSamp =>
+      (_$data['stddevSamp'] as Input$CertStddevSampOrderBy?);
+
+  Input$CertSumOrderBy? get sum => (_$data['sum'] as Input$CertSumOrderBy?);
+
+  Input$CertVarPopOrderBy? get varPop =>
+      (_$data['varPop'] as Input$CertVarPopOrderBy?);
+
+  Input$CertVarSampOrderBy? get varSamp =>
+      (_$data['varSamp'] as Input$CertVarSampOrderBy?);
+
+  Input$CertVarianceOrderBy? get variance =>
+      (_$data['variance'] as Input$CertVarianceOrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('avg')) {
+      final l$avg = avg;
+      result$data['avg'] = l$avg?.toJson();
+    }
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] =
+          l$count == null ? null : toJson$Enum$OrderBy(l$count);
+    }
+    if (_$data.containsKey('max')) {
+      final l$max = max;
+      result$data['max'] = l$max?.toJson();
+    }
+    if (_$data.containsKey('min')) {
+      final l$min = min;
+      result$data['min'] = l$min?.toJson();
+    }
+    if (_$data.containsKey('stddev')) {
+      final l$stddev = stddev;
+      result$data['stddev'] = l$stddev?.toJson();
+    }
+    if (_$data.containsKey('stddevPop')) {
+      final l$stddevPop = stddevPop;
+      result$data['stddevPop'] = l$stddevPop?.toJson();
+    }
+    if (_$data.containsKey('stddevSamp')) {
+      final l$stddevSamp = stddevSamp;
+      result$data['stddevSamp'] = l$stddevSamp?.toJson();
+    }
+    if (_$data.containsKey('sum')) {
+      final l$sum = sum;
+      result$data['sum'] = l$sum?.toJson();
+    }
+    if (_$data.containsKey('varPop')) {
+      final l$varPop = varPop;
+      result$data['varPop'] = l$varPop?.toJson();
+    }
+    if (_$data.containsKey('varSamp')) {
+      final l$varSamp = varSamp;
+      result$data['varSamp'] = l$varSamp?.toJson();
+    }
+    if (_$data.containsKey('variance')) {
+      final l$variance = variance;
+      result$data['variance'] = l$variance?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertAggregateOrderBy<Input$CertAggregateOrderBy>
+      get copyWith => CopyWith$Input$CertAggregateOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertAggregateOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$avg = avg;
+    final lOther$avg = other.avg;
+    if (_$data.containsKey('avg') != other._$data.containsKey('avg')) {
+      return false;
+    }
+    if (l$avg != lOther$avg) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    final l$max = max;
+    final lOther$max = other.max;
+    if (_$data.containsKey('max') != other._$data.containsKey('max')) {
+      return false;
+    }
+    if (l$max != lOther$max) {
+      return false;
+    }
+    final l$min = min;
+    final lOther$min = other.min;
+    if (_$data.containsKey('min') != other._$data.containsKey('min')) {
+      return false;
+    }
+    if (l$min != lOther$min) {
+      return false;
+    }
+    final l$stddev = stddev;
+    final lOther$stddev = other.stddev;
+    if (_$data.containsKey('stddev') != other._$data.containsKey('stddev')) {
+      return false;
+    }
+    if (l$stddev != lOther$stddev) {
+      return false;
+    }
+    final l$stddevPop = stddevPop;
+    final lOther$stddevPop = other.stddevPop;
+    if (_$data.containsKey('stddevPop') !=
+        other._$data.containsKey('stddevPop')) {
+      return false;
+    }
+    if (l$stddevPop != lOther$stddevPop) {
+      return false;
+    }
+    final l$stddevSamp = stddevSamp;
+    final lOther$stddevSamp = other.stddevSamp;
+    if (_$data.containsKey('stddevSamp') !=
+        other._$data.containsKey('stddevSamp')) {
+      return false;
+    }
+    if (l$stddevSamp != lOther$stddevSamp) {
+      return false;
+    }
+    final l$sum = sum;
+    final lOther$sum = other.sum;
+    if (_$data.containsKey('sum') != other._$data.containsKey('sum')) {
+      return false;
+    }
+    if (l$sum != lOther$sum) {
+      return false;
+    }
+    final l$varPop = varPop;
+    final lOther$varPop = other.varPop;
+    if (_$data.containsKey('varPop') != other._$data.containsKey('varPop')) {
+      return false;
+    }
+    if (l$varPop != lOther$varPop) {
+      return false;
+    }
+    final l$varSamp = varSamp;
+    final lOther$varSamp = other.varSamp;
+    if (_$data.containsKey('varSamp') != other._$data.containsKey('varSamp')) {
+      return false;
+    }
+    if (l$varSamp != lOther$varSamp) {
+      return false;
+    }
+    final l$variance = variance;
+    final lOther$variance = other.variance;
+    if (_$data.containsKey('variance') !=
+        other._$data.containsKey('variance')) {
+      return false;
+    }
+    if (l$variance != lOther$variance) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$avg = avg;
+    final l$count = count;
+    final l$max = max;
+    final l$min = min;
+    final l$stddev = stddev;
+    final l$stddevPop = stddevPop;
+    final l$stddevSamp = stddevSamp;
+    final l$sum = sum;
+    final l$varPop = varPop;
+    final l$varSamp = varSamp;
+    final l$variance = variance;
+    return Object.hashAll([
+      _$data.containsKey('avg') ? l$avg : const {},
+      _$data.containsKey('count') ? l$count : const {},
+      _$data.containsKey('max') ? l$max : const {},
+      _$data.containsKey('min') ? l$min : const {},
+      _$data.containsKey('stddev') ? l$stddev : const {},
+      _$data.containsKey('stddevPop') ? l$stddevPop : const {},
+      _$data.containsKey('stddevSamp') ? l$stddevSamp : const {},
+      _$data.containsKey('sum') ? l$sum : const {},
+      _$data.containsKey('varPop') ? l$varPop : const {},
+      _$data.containsKey('varSamp') ? l$varSamp : const {},
+      _$data.containsKey('variance') ? l$variance : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertAggregateOrderBy<TRes> {
+  factory CopyWith$Input$CertAggregateOrderBy(
+    Input$CertAggregateOrderBy instance,
+    TRes Function(Input$CertAggregateOrderBy) then,
+  ) = _CopyWithImpl$Input$CertAggregateOrderBy;
+
+  factory CopyWith$Input$CertAggregateOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertAggregateOrderBy;
+
+  TRes call({
+    Input$CertAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$CertMaxOrderBy? max,
+    Input$CertMinOrderBy? min,
+    Input$CertStddevOrderBy? stddev,
+    Input$CertStddevPopOrderBy? stddevPop,
+    Input$CertStddevSampOrderBy? stddevSamp,
+    Input$CertSumOrderBy? sum,
+    Input$CertVarPopOrderBy? varPop,
+    Input$CertVarSampOrderBy? varSamp,
+    Input$CertVarianceOrderBy? variance,
+  });
+  CopyWith$Input$CertAvgOrderBy<TRes> get avg;
+  CopyWith$Input$CertMaxOrderBy<TRes> get max;
+  CopyWith$Input$CertMinOrderBy<TRes> get min;
+  CopyWith$Input$CertStddevOrderBy<TRes> get stddev;
+  CopyWith$Input$CertStddevPopOrderBy<TRes> get stddevPop;
+  CopyWith$Input$CertStddevSampOrderBy<TRes> get stddevSamp;
+  CopyWith$Input$CertSumOrderBy<TRes> get sum;
+  CopyWith$Input$CertVarPopOrderBy<TRes> get varPop;
+  CopyWith$Input$CertVarSampOrderBy<TRes> get varSamp;
+  CopyWith$Input$CertVarianceOrderBy<TRes> get variance;
+}
+
+class _CopyWithImpl$Input$CertAggregateOrderBy<TRes>
+    implements CopyWith$Input$CertAggregateOrderBy<TRes> {
+  _CopyWithImpl$Input$CertAggregateOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertAggregateOrderBy _instance;
+
+  final TRes Function(Input$CertAggregateOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? avg = _undefined,
+    Object? count = _undefined,
+    Object? max = _undefined,
+    Object? min = _undefined,
+    Object? stddev = _undefined,
+    Object? stddevPop = _undefined,
+    Object? stddevSamp = _undefined,
+    Object? sum = _undefined,
+    Object? varPop = _undefined,
+    Object? varSamp = _undefined,
+    Object? variance = _undefined,
+  }) =>
+      _then(Input$CertAggregateOrderBy._({
+        ..._instance._$data,
+        if (avg != _undefined) 'avg': (avg as Input$CertAvgOrderBy?),
+        if (count != _undefined) 'count': (count as Enum$OrderBy?),
+        if (max != _undefined) 'max': (max as Input$CertMaxOrderBy?),
+        if (min != _undefined) 'min': (min as Input$CertMinOrderBy?),
+        if (stddev != _undefined)
+          'stddev': (stddev as Input$CertStddevOrderBy?),
+        if (stddevPop != _undefined)
+          'stddevPop': (stddevPop as Input$CertStddevPopOrderBy?),
+        if (stddevSamp != _undefined)
+          'stddevSamp': (stddevSamp as Input$CertStddevSampOrderBy?),
+        if (sum != _undefined) 'sum': (sum as Input$CertSumOrderBy?),
+        if (varPop != _undefined)
+          'varPop': (varPop as Input$CertVarPopOrderBy?),
+        if (varSamp != _undefined)
+          'varSamp': (varSamp as Input$CertVarSampOrderBy?),
+        if (variance != _undefined)
+          'variance': (variance as Input$CertVarianceOrderBy?),
+      }));
+
+  CopyWith$Input$CertAvgOrderBy<TRes> get avg {
+    final local$avg = _instance.avg;
+    return local$avg == null
+        ? CopyWith$Input$CertAvgOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertAvgOrderBy(local$avg, (e) => call(avg: e));
+  }
+
+  CopyWith$Input$CertMaxOrderBy<TRes> get max {
+    final local$max = _instance.max;
+    return local$max == null
+        ? CopyWith$Input$CertMaxOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertMaxOrderBy(local$max, (e) => call(max: e));
+  }
+
+  CopyWith$Input$CertMinOrderBy<TRes> get min {
+    final local$min = _instance.min;
+    return local$min == null
+        ? CopyWith$Input$CertMinOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertMinOrderBy(local$min, (e) => call(min: e));
+  }
+
+  CopyWith$Input$CertStddevOrderBy<TRes> get stddev {
+    final local$stddev = _instance.stddev;
+    return local$stddev == null
+        ? CopyWith$Input$CertStddevOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertStddevOrderBy(
+            local$stddev, (e) => call(stddev: e));
+  }
+
+  CopyWith$Input$CertStddevPopOrderBy<TRes> get stddevPop {
+    final local$stddevPop = _instance.stddevPop;
+    return local$stddevPop == null
+        ? CopyWith$Input$CertStddevPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertStddevPopOrderBy(
+            local$stddevPop, (e) => call(stddevPop: e));
+  }
+
+  CopyWith$Input$CertStddevSampOrderBy<TRes> get stddevSamp {
+    final local$stddevSamp = _instance.stddevSamp;
+    return local$stddevSamp == null
+        ? CopyWith$Input$CertStddevSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertStddevSampOrderBy(
+            local$stddevSamp, (e) => call(stddevSamp: e));
+  }
+
+  CopyWith$Input$CertSumOrderBy<TRes> get sum {
+    final local$sum = _instance.sum;
+    return local$sum == null
+        ? CopyWith$Input$CertSumOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertSumOrderBy(local$sum, (e) => call(sum: e));
+  }
+
+  CopyWith$Input$CertVarPopOrderBy<TRes> get varPop {
+    final local$varPop = _instance.varPop;
+    return local$varPop == null
+        ? CopyWith$Input$CertVarPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertVarPopOrderBy(
+            local$varPop, (e) => call(varPop: e));
+  }
+
+  CopyWith$Input$CertVarSampOrderBy<TRes> get varSamp {
+    final local$varSamp = _instance.varSamp;
+    return local$varSamp == null
+        ? CopyWith$Input$CertVarSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertVarSampOrderBy(
+            local$varSamp, (e) => call(varSamp: e));
+  }
+
+  CopyWith$Input$CertVarianceOrderBy<TRes> get variance {
+    final local$variance = _instance.variance;
+    return local$variance == null
+        ? CopyWith$Input$CertVarianceOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertVarianceOrderBy(
+            local$variance, (e) => call(variance: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$CertAggregateOrderBy<TRes>
+    implements CopyWith$Input$CertAggregateOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertAggregateOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Input$CertAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$CertMaxOrderBy? max,
+    Input$CertMinOrderBy? min,
+    Input$CertStddevOrderBy? stddev,
+    Input$CertStddevPopOrderBy? stddevPop,
+    Input$CertStddevSampOrderBy? stddevSamp,
+    Input$CertSumOrderBy? sum,
+    Input$CertVarPopOrderBy? varPop,
+    Input$CertVarSampOrderBy? varSamp,
+    Input$CertVarianceOrderBy? variance,
+  }) =>
+      _res;
+
+  CopyWith$Input$CertAvgOrderBy<TRes> get avg =>
+      CopyWith$Input$CertAvgOrderBy.stub(_res);
+
+  CopyWith$Input$CertMaxOrderBy<TRes> get max =>
+      CopyWith$Input$CertMaxOrderBy.stub(_res);
+
+  CopyWith$Input$CertMinOrderBy<TRes> get min =>
+      CopyWith$Input$CertMinOrderBy.stub(_res);
+
+  CopyWith$Input$CertStddevOrderBy<TRes> get stddev =>
+      CopyWith$Input$CertStddevOrderBy.stub(_res);
+
+  CopyWith$Input$CertStddevPopOrderBy<TRes> get stddevPop =>
+      CopyWith$Input$CertStddevPopOrderBy.stub(_res);
+
+  CopyWith$Input$CertStddevSampOrderBy<TRes> get stddevSamp =>
+      CopyWith$Input$CertStddevSampOrderBy.stub(_res);
+
+  CopyWith$Input$CertSumOrderBy<TRes> get sum =>
+      CopyWith$Input$CertSumOrderBy.stub(_res);
+
+  CopyWith$Input$CertVarPopOrderBy<TRes> get varPop =>
+      CopyWith$Input$CertVarPopOrderBy.stub(_res);
+
+  CopyWith$Input$CertVarSampOrderBy<TRes> get varSamp =>
+      CopyWith$Input$CertVarSampOrderBy.stub(_res);
+
+  CopyWith$Input$CertVarianceOrderBy<TRes> get variance =>
+      CopyWith$Input$CertVarianceOrderBy.stub(_res);
+}
+
+class Input$CertAvgOrderBy {
+  factory Input$CertAvgOrderBy({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      Input$CertAvgOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+        if (expireOn != null) r'expireOn': expireOn,
+      });
+
+  Input$CertAvgOrderBy._(this._$data);
+
+  factory Input$CertAvgOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    if (data.containsKey('expireOn')) {
+      final l$expireOn = data['expireOn'];
+      result$data['expireOn'] = l$expireOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$expireOn as String));
+    }
+    return Input$CertAvgOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get expireOn => (_$data['expireOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    if (_$data.containsKey('expireOn')) {
+      final l$expireOn = expireOn;
+      result$data['expireOn'] =
+          l$expireOn == null ? null : toJson$Enum$OrderBy(l$expireOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertAvgOrderBy<Input$CertAvgOrderBy> get copyWith =>
+      CopyWith$Input$CertAvgOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertAvgOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$expireOn = expireOn;
+    final lOther$expireOn = other.expireOn;
+    if (_$data.containsKey('expireOn') !=
+        other._$data.containsKey('expireOn')) {
+      return false;
+    }
+    if (l$expireOn != lOther$expireOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    final l$expireOn = expireOn;
+    return Object.hashAll([
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('expireOn') ? l$expireOn : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertAvgOrderBy<TRes> {
+  factory CopyWith$Input$CertAvgOrderBy(
+    Input$CertAvgOrderBy instance,
+    TRes Function(Input$CertAvgOrderBy) then,
+  ) = _CopyWithImpl$Input$CertAvgOrderBy;
+
+  factory CopyWith$Input$CertAvgOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertAvgOrderBy;
+
+  TRes call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  });
+}
+
+class _CopyWithImpl$Input$CertAvgOrderBy<TRes>
+    implements CopyWith$Input$CertAvgOrderBy<TRes> {
+  _CopyWithImpl$Input$CertAvgOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertAvgOrderBy _instance;
+
+  final TRes Function(Input$CertAvgOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? createdOn = _undefined,
+    Object? expireOn = _undefined,
+  }) =>
+      _then(Input$CertAvgOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+        if (expireOn != _undefined) 'expireOn': (expireOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertAvgOrderBy<TRes>
+    implements CopyWith$Input$CertAvgOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertAvgOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      _res;
+}
+
+class Input$CertBoolExp {
+  factory Input$CertBoolExp({
+    List<Input$CertBoolExp>? $_and,
+    Input$CertBoolExp? $_not,
+    List<Input$CertBoolExp>? $_or,
+    Input$CertEventBoolExp? certHistory,
+    Input$CertEventAggregateBoolExp? certHistoryAggregate,
+    Input$IntComparisonExp? createdOn,
+    Input$IntComparisonExp? expireOn,
+    Input$StringComparisonExp? id,
+    Input$BooleanComparisonExp? isActive,
+    Input$IdentityBoolExp? issuer,
+    Input$StringComparisonExp? issuerId,
+    Input$IdentityBoolExp? receiver,
+    Input$StringComparisonExp? receiverId,
+  }) =>
+      Input$CertBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (certHistory != null) r'certHistory': certHistory,
+        if (certHistoryAggregate != null)
+          r'certHistoryAggregate': certHistoryAggregate,
+        if (createdOn != null) r'createdOn': createdOn,
+        if (expireOn != null) r'expireOn': expireOn,
+        if (id != null) r'id': id,
+        if (isActive != null) r'isActive': isActive,
+        if (issuer != null) r'issuer': issuer,
+        if (issuerId != null) r'issuerId': issuerId,
+        if (receiver != null) r'receiver': receiver,
+        if (receiverId != null) r'receiverId': receiverId,
+      });
+
+  Input$CertBoolExp._(this._$data);
+
+  factory Input$CertBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map((e) => Input$CertBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$CertBoolExp.fromJson((l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map((e) => Input$CertBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('certHistory')) {
+      final l$certHistory = data['certHistory'];
+      result$data['certHistory'] = l$certHistory == null
+          ? null
+          : Input$CertEventBoolExp.fromJson(
+              (l$certHistory as Map<String, dynamic>));
+    }
+    if (data.containsKey('certHistoryAggregate')) {
+      final l$certHistoryAggregate = data['certHistoryAggregate'];
+      result$data['certHistoryAggregate'] = l$certHistoryAggregate == null
+          ? null
+          : Input$CertEventAggregateBoolExp.fromJson(
+              (l$certHistoryAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$createdOn as Map<String, dynamic>));
+    }
+    if (data.containsKey('expireOn')) {
+      final l$expireOn = data['expireOn'];
+      result$data['expireOn'] = l$expireOn == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$expireOn as Map<String, dynamic>));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    if (data.containsKey('isActive')) {
+      final l$isActive = data['isActive'];
+      result$data['isActive'] = l$isActive == null
+          ? null
+          : Input$BooleanComparisonExp.fromJson(
+              (l$isActive as Map<String, dynamic>));
+    }
+    if (data.containsKey('issuer')) {
+      final l$issuer = data['issuer'];
+      result$data['issuer'] = l$issuer == null
+          ? null
+          : Input$IdentityBoolExp.fromJson((l$issuer as Map<String, dynamic>));
+    }
+    if (data.containsKey('issuerId')) {
+      final l$issuerId = data['issuerId'];
+      result$data['issuerId'] = l$issuerId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$issuerId as Map<String, dynamic>));
+    }
+    if (data.containsKey('receiver')) {
+      final l$receiver = data['receiver'];
+      result$data['receiver'] = l$receiver == null
+          ? null
+          : Input$IdentityBoolExp.fromJson(
+              (l$receiver as Map<String, dynamic>));
+    }
+    if (data.containsKey('receiverId')) {
+      final l$receiverId = data['receiverId'];
+      result$data['receiverId'] = l$receiverId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$receiverId as Map<String, dynamic>));
+    }
+    return Input$CertBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$CertBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$CertBoolExp>?);
+
+  Input$CertBoolExp? get $_not => (_$data['_not'] as Input$CertBoolExp?);
+
+  List<Input$CertBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$CertBoolExp>?);
+
+  Input$CertEventBoolExp? get certHistory =>
+      (_$data['certHistory'] as Input$CertEventBoolExp?);
+
+  Input$CertEventAggregateBoolExp? get certHistoryAggregate =>
+      (_$data['certHistoryAggregate'] as Input$CertEventAggregateBoolExp?);
+
+  Input$IntComparisonExp? get createdOn =>
+      (_$data['createdOn'] as Input$IntComparisonExp?);
+
+  Input$IntComparisonExp? get expireOn =>
+      (_$data['expireOn'] as Input$IntComparisonExp?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Input$BooleanComparisonExp? get isActive =>
+      (_$data['isActive'] as Input$BooleanComparisonExp?);
+
+  Input$IdentityBoolExp? get issuer =>
+      (_$data['issuer'] as Input$IdentityBoolExp?);
+
+  Input$StringComparisonExp? get issuerId =>
+      (_$data['issuerId'] as Input$StringComparisonExp?);
+
+  Input$IdentityBoolExp? get receiver =>
+      (_$data['receiver'] as Input$IdentityBoolExp?);
+
+  Input$StringComparisonExp? get receiverId =>
+      (_$data['receiverId'] as Input$StringComparisonExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('certHistory')) {
+      final l$certHistory = certHistory;
+      result$data['certHistory'] = l$certHistory?.toJson();
+    }
+    if (_$data.containsKey('certHistoryAggregate')) {
+      final l$certHistoryAggregate = certHistoryAggregate;
+      result$data['certHistoryAggregate'] = l$certHistoryAggregate?.toJson();
+    }
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] = l$createdOn?.toJson();
+    }
+    if (_$data.containsKey('expireOn')) {
+      final l$expireOn = expireOn;
+      result$data['expireOn'] = l$expireOn?.toJson();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    if (_$data.containsKey('isActive')) {
+      final l$isActive = isActive;
+      result$data['isActive'] = l$isActive?.toJson();
+    }
+    if (_$data.containsKey('issuer')) {
+      final l$issuer = issuer;
+      result$data['issuer'] = l$issuer?.toJson();
+    }
+    if (_$data.containsKey('issuerId')) {
+      final l$issuerId = issuerId;
+      result$data['issuerId'] = l$issuerId?.toJson();
+    }
+    if (_$data.containsKey('receiver')) {
+      final l$receiver = receiver;
+      result$data['receiver'] = l$receiver?.toJson();
+    }
+    if (_$data.containsKey('receiverId')) {
+      final l$receiverId = receiverId;
+      result$data['receiverId'] = l$receiverId?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertBoolExp<Input$CertBoolExp> get copyWith =>
+      CopyWith$Input$CertBoolExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertBoolExp) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$certHistory = certHistory;
+    final lOther$certHistory = other.certHistory;
+    if (_$data.containsKey('certHistory') !=
+        other._$data.containsKey('certHistory')) {
+      return false;
+    }
+    if (l$certHistory != lOther$certHistory) {
+      return false;
+    }
+    final l$certHistoryAggregate = certHistoryAggregate;
+    final lOther$certHistoryAggregate = other.certHistoryAggregate;
+    if (_$data.containsKey('certHistoryAggregate') !=
+        other._$data.containsKey('certHistoryAggregate')) {
+      return false;
+    }
+    if (l$certHistoryAggregate != lOther$certHistoryAggregate) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$expireOn = expireOn;
+    final lOther$expireOn = other.expireOn;
+    if (_$data.containsKey('expireOn') !=
+        other._$data.containsKey('expireOn')) {
+      return false;
+    }
+    if (l$expireOn != lOther$expireOn) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$isActive = isActive;
+    final lOther$isActive = other.isActive;
+    if (_$data.containsKey('isActive') !=
+        other._$data.containsKey('isActive')) {
+      return false;
+    }
+    if (l$isActive != lOther$isActive) {
+      return false;
+    }
+    final l$issuer = issuer;
+    final lOther$issuer = other.issuer;
+    if (_$data.containsKey('issuer') != other._$data.containsKey('issuer')) {
+      return false;
+    }
+    if (l$issuer != lOther$issuer) {
+      return false;
+    }
+    final l$issuerId = issuerId;
+    final lOther$issuerId = other.issuerId;
+    if (_$data.containsKey('issuerId') !=
+        other._$data.containsKey('issuerId')) {
+      return false;
+    }
+    if (l$issuerId != lOther$issuerId) {
+      return false;
+    }
+    final l$receiver = receiver;
+    final lOther$receiver = other.receiver;
+    if (_$data.containsKey('receiver') !=
+        other._$data.containsKey('receiver')) {
+      return false;
+    }
+    if (l$receiver != lOther$receiver) {
+      return false;
+    }
+    final l$receiverId = receiverId;
+    final lOther$receiverId = other.receiverId;
+    if (_$data.containsKey('receiverId') !=
+        other._$data.containsKey('receiverId')) {
+      return false;
+    }
+    if (l$receiverId != lOther$receiverId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$certHistory = certHistory;
+    final l$certHistoryAggregate = certHistoryAggregate;
+    final l$createdOn = createdOn;
+    final l$expireOn = expireOn;
+    final l$id = id;
+    final l$isActive = isActive;
+    final l$issuer = issuer;
+    final l$issuerId = issuerId;
+    final l$receiver = receiver;
+    final l$receiverId = receiverId;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('certHistory') ? l$certHistory : const {},
+      _$data.containsKey('certHistoryAggregate')
+          ? l$certHistoryAggregate
+          : const {},
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('expireOn') ? l$expireOn : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('isActive') ? l$isActive : const {},
+      _$data.containsKey('issuer') ? l$issuer : const {},
+      _$data.containsKey('issuerId') ? l$issuerId : const {},
+      _$data.containsKey('receiver') ? l$receiver : const {},
+      _$data.containsKey('receiverId') ? l$receiverId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertBoolExp<TRes> {
+  factory CopyWith$Input$CertBoolExp(
+    Input$CertBoolExp instance,
+    TRes Function(Input$CertBoolExp) then,
+  ) = _CopyWithImpl$Input$CertBoolExp;
+
+  factory CopyWith$Input$CertBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertBoolExp;
+
+  TRes call({
+    List<Input$CertBoolExp>? $_and,
+    Input$CertBoolExp? $_not,
+    List<Input$CertBoolExp>? $_or,
+    Input$CertEventBoolExp? certHistory,
+    Input$CertEventAggregateBoolExp? certHistoryAggregate,
+    Input$IntComparisonExp? createdOn,
+    Input$IntComparisonExp? expireOn,
+    Input$StringComparisonExp? id,
+    Input$BooleanComparisonExp? isActive,
+    Input$IdentityBoolExp? issuer,
+    Input$StringComparisonExp? issuerId,
+    Input$IdentityBoolExp? receiver,
+    Input$StringComparisonExp? receiverId,
+  });
+  TRes $_and(
+      Iterable<Input$CertBoolExp>? Function(
+              Iterable<CopyWith$Input$CertBoolExp<Input$CertBoolExp>>?)
+          _fn);
+  CopyWith$Input$CertBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$CertBoolExp>? Function(
+              Iterable<CopyWith$Input$CertBoolExp<Input$CertBoolExp>>?)
+          _fn);
+  CopyWith$Input$CertEventBoolExp<TRes> get certHistory;
+  CopyWith$Input$CertEventAggregateBoolExp<TRes> get certHistoryAggregate;
+  CopyWith$Input$IntComparisonExp<TRes> get createdOn;
+  CopyWith$Input$IntComparisonExp<TRes> get expireOn;
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+  CopyWith$Input$BooleanComparisonExp<TRes> get isActive;
+  CopyWith$Input$IdentityBoolExp<TRes> get issuer;
+  CopyWith$Input$StringComparisonExp<TRes> get issuerId;
+  CopyWith$Input$IdentityBoolExp<TRes> get receiver;
+  CopyWith$Input$StringComparisonExp<TRes> get receiverId;
+}
+
+class _CopyWithImpl$Input$CertBoolExp<TRes>
+    implements CopyWith$Input$CertBoolExp<TRes> {
+  _CopyWithImpl$Input$CertBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertBoolExp _instance;
+
+  final TRes Function(Input$CertBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? certHistory = _undefined,
+    Object? certHistoryAggregate = _undefined,
+    Object? createdOn = _undefined,
+    Object? expireOn = _undefined,
+    Object? id = _undefined,
+    Object? isActive = _undefined,
+    Object? issuer = _undefined,
+    Object? issuerId = _undefined,
+    Object? receiver = _undefined,
+    Object? receiverId = _undefined,
+  }) =>
+      _then(Input$CertBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined) '_and': ($_and as List<Input$CertBoolExp>?),
+        if ($_not != _undefined) '_not': ($_not as Input$CertBoolExp?),
+        if ($_or != _undefined) '_or': ($_or as List<Input$CertBoolExp>?),
+        if (certHistory != _undefined)
+          'certHistory': (certHistory as Input$CertEventBoolExp?),
+        if (certHistoryAggregate != _undefined)
+          'certHistoryAggregate':
+              (certHistoryAggregate as Input$CertEventAggregateBoolExp?),
+        if (createdOn != _undefined)
+          'createdOn': (createdOn as Input$IntComparisonExp?),
+        if (expireOn != _undefined)
+          'expireOn': (expireOn as Input$IntComparisonExp?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+        if (isActive != _undefined)
+          'isActive': (isActive as Input$BooleanComparisonExp?),
+        if (issuer != _undefined) 'issuer': (issuer as Input$IdentityBoolExp?),
+        if (issuerId != _undefined)
+          'issuerId': (issuerId as Input$StringComparisonExp?),
+        if (receiver != _undefined)
+          'receiver': (receiver as Input$IdentityBoolExp?),
+        if (receiverId != _undefined)
+          'receiverId': (receiverId as Input$StringComparisonExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$CertBoolExp>? Function(
+                  Iterable<CopyWith$Input$CertBoolExp<Input$CertBoolExp>>?)
+              _fn) =>
+      call(
+          $_and: _fn(_instance.$_and?.map((e) => CopyWith$Input$CertBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$CertBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$CertBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CertBoolExp(local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$CertBoolExp>? Function(
+                  Iterable<CopyWith$Input$CertBoolExp<Input$CertBoolExp>>?)
+              _fn) =>
+      call(
+          $_or: _fn(_instance.$_or?.map((e) => CopyWith$Input$CertBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$CertEventBoolExp<TRes> get certHistory {
+    final local$certHistory = _instance.certHistory;
+    return local$certHistory == null
+        ? CopyWith$Input$CertEventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CertEventBoolExp(
+            local$certHistory, (e) => call(certHistory: e));
+  }
+
+  CopyWith$Input$CertEventAggregateBoolExp<TRes> get certHistoryAggregate {
+    final local$certHistoryAggregate = _instance.certHistoryAggregate;
+    return local$certHistoryAggregate == null
+        ? CopyWith$Input$CertEventAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CertEventAggregateBoolExp(
+            local$certHistoryAggregate, (e) => call(certHistoryAggregate: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get createdOn {
+    final local$createdOn = _instance.createdOn;
+    return local$createdOn == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$createdOn, (e) => call(createdOn: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get expireOn {
+    final local$expireOn = _instance.expireOn;
+    return local$expireOn == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$expireOn, (e) => call(expireOn: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get isActive {
+    final local$isActive = _instance.isActive;
+    return local$isActive == null
+        ? CopyWith$Input$BooleanComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$BooleanComparisonExp(
+            local$isActive, (e) => call(isActive: e));
+  }
+
+  CopyWith$Input$IdentityBoolExp<TRes> get issuer {
+    final local$issuer = _instance.issuer;
+    return local$issuer == null
+        ? CopyWith$Input$IdentityBoolExp.stub(_then(_instance))
+        : CopyWith$Input$IdentityBoolExp(local$issuer, (e) => call(issuer: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get issuerId {
+    final local$issuerId = _instance.issuerId;
+    return local$issuerId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$issuerId, (e) => call(issuerId: e));
+  }
+
+  CopyWith$Input$IdentityBoolExp<TRes> get receiver {
+    final local$receiver = _instance.receiver;
+    return local$receiver == null
+        ? CopyWith$Input$IdentityBoolExp.stub(_then(_instance))
+        : CopyWith$Input$IdentityBoolExp(
+            local$receiver, (e) => call(receiver: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get receiverId {
+    final local$receiverId = _instance.receiverId;
+    return local$receiverId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$receiverId, (e) => call(receiverId: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$CertBoolExp<TRes>
+    implements CopyWith$Input$CertBoolExp<TRes> {
+  _CopyWithStubImpl$Input$CertBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$CertBoolExp>? $_and,
+    Input$CertBoolExp? $_not,
+    List<Input$CertBoolExp>? $_or,
+    Input$CertEventBoolExp? certHistory,
+    Input$CertEventAggregateBoolExp? certHistoryAggregate,
+    Input$IntComparisonExp? createdOn,
+    Input$IntComparisonExp? expireOn,
+    Input$StringComparisonExp? id,
+    Input$BooleanComparisonExp? isActive,
+    Input$IdentityBoolExp? issuer,
+    Input$StringComparisonExp? issuerId,
+    Input$IdentityBoolExp? receiver,
+    Input$StringComparisonExp? receiverId,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$CertBoolExp<TRes> get $_not =>
+      CopyWith$Input$CertBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$CertEventBoolExp<TRes> get certHistory =>
+      CopyWith$Input$CertEventBoolExp.stub(_res);
+
+  CopyWith$Input$CertEventAggregateBoolExp<TRes> get certHistoryAggregate =>
+      CopyWith$Input$CertEventAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get createdOn =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get expireOn =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get isActive =>
+      CopyWith$Input$BooleanComparisonExp.stub(_res);
+
+  CopyWith$Input$IdentityBoolExp<TRes> get issuer =>
+      CopyWith$Input$IdentityBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get issuerId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$IdentityBoolExp<TRes> get receiver =>
+      CopyWith$Input$IdentityBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get receiverId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+}
+
+class Input$CertEventAggregateBoolExp {
+  factory Input$CertEventAggregateBoolExp(
+          {Input$certEventAggregateBoolExpCount? count}) =>
+      Input$CertEventAggregateBoolExp._({
+        if (count != null) r'count': count,
+      });
+
+  Input$CertEventAggregateBoolExp._(this._$data);
+
+  factory Input$CertEventAggregateBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] = l$count == null
+          ? null
+          : Input$certEventAggregateBoolExpCount.fromJson(
+              (l$count as Map<String, dynamic>));
+    }
+    return Input$CertEventAggregateBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$certEventAggregateBoolExpCount? get count =>
+      (_$data['count'] as Input$certEventAggregateBoolExpCount?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] = l$count?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertEventAggregateBoolExp<Input$CertEventAggregateBoolExp>
+      get copyWith => CopyWith$Input$CertEventAggregateBoolExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertEventAggregateBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$count = count;
+    return Object.hashAll([_$data.containsKey('count') ? l$count : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$CertEventAggregateBoolExp<TRes> {
+  factory CopyWith$Input$CertEventAggregateBoolExp(
+    Input$CertEventAggregateBoolExp instance,
+    TRes Function(Input$CertEventAggregateBoolExp) then,
+  ) = _CopyWithImpl$Input$CertEventAggregateBoolExp;
+
+  factory CopyWith$Input$CertEventAggregateBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertEventAggregateBoolExp;
+
+  TRes call({Input$certEventAggregateBoolExpCount? count});
+  CopyWith$Input$certEventAggregateBoolExpCount<TRes> get count;
+}
+
+class _CopyWithImpl$Input$CertEventAggregateBoolExp<TRes>
+    implements CopyWith$Input$CertEventAggregateBoolExp<TRes> {
+  _CopyWithImpl$Input$CertEventAggregateBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertEventAggregateBoolExp _instance;
+
+  final TRes Function(Input$CertEventAggregateBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? count = _undefined}) =>
+      _then(Input$CertEventAggregateBoolExp._({
+        ..._instance._$data,
+        if (count != _undefined)
+          'count': (count as Input$certEventAggregateBoolExpCount?),
+      }));
+
+  CopyWith$Input$certEventAggregateBoolExpCount<TRes> get count {
+    final local$count = _instance.count;
+    return local$count == null
+        ? CopyWith$Input$certEventAggregateBoolExpCount.stub(_then(_instance))
+        : CopyWith$Input$certEventAggregateBoolExpCount(
+            local$count, (e) => call(count: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$CertEventAggregateBoolExp<TRes>
+    implements CopyWith$Input$CertEventAggregateBoolExp<TRes> {
+  _CopyWithStubImpl$Input$CertEventAggregateBoolExp(this._res);
+
+  TRes _res;
+
+  call({Input$certEventAggregateBoolExpCount? count}) => _res;
+
+  CopyWith$Input$certEventAggregateBoolExpCount<TRes> get count =>
+      CopyWith$Input$certEventAggregateBoolExpCount.stub(_res);
+}
+
+class Input$certEventAggregateBoolExpCount {
+  factory Input$certEventAggregateBoolExpCount({
+    List<Enum$CertEventSelectColumn>? arguments,
+    bool? distinct,
+    Input$CertEventBoolExp? filter,
+    required Input$IntComparisonExp predicate,
+  }) =>
+      Input$certEventAggregateBoolExpCount._({
+        if (arguments != null) r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$certEventAggregateBoolExpCount._(this._$data);
+
+  factory Input$certEventAggregateBoolExpCount.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('arguments')) {
+      final l$arguments = data['arguments'];
+      result$data['arguments'] = (l$arguments as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$CertEventSelectColumn((e as String)))
+          .toList();
+    }
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$CertEventBoolExp.fromJson((l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] =
+        Input$IntComparisonExp.fromJson((l$predicate as Map<String, dynamic>));
+    return Input$certEventAggregateBoolExpCount._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Enum$CertEventSelectColumn>? get arguments =>
+      (_$data['arguments'] as List<Enum$CertEventSelectColumn>?);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$CertEventBoolExp? get filter =>
+      (_$data['filter'] as Input$CertEventBoolExp?);
+
+  Input$IntComparisonExp get predicate =>
+      (_$data['predicate'] as Input$IntComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('arguments')) {
+      final l$arguments = arguments;
+      result$data['arguments'] = l$arguments
+          ?.map((e) => toJson$Enum$CertEventSelectColumn(e))
+          .toList();
+    }
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$certEventAggregateBoolExpCount<
+          Input$certEventAggregateBoolExpCount>
+      get copyWith => CopyWith$Input$certEventAggregateBoolExpCount(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$certEventAggregateBoolExpCount) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (_$data.containsKey('arguments') !=
+        other._$data.containsKey('arguments')) {
+      return false;
+    }
+    if (l$arguments != null && lOther$arguments != null) {
+      if (l$arguments.length != lOther$arguments.length) {
+        return false;
+      }
+      for (int i = 0; i < l$arguments.length; i++) {
+        final l$arguments$entry = l$arguments[i];
+        final lOther$arguments$entry = lOther$arguments[i];
+        if (l$arguments$entry != lOther$arguments$entry) {
+          return false;
+        }
+      }
+    } else if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      _$data.containsKey('arguments')
+          ? l$arguments == null
+              ? null
+              : Object.hashAll(l$arguments.map((v) => v))
+          : const {},
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$certEventAggregateBoolExpCount<TRes> {
+  factory CopyWith$Input$certEventAggregateBoolExpCount(
+    Input$certEventAggregateBoolExpCount instance,
+    TRes Function(Input$certEventAggregateBoolExpCount) then,
+  ) = _CopyWithImpl$Input$certEventAggregateBoolExpCount;
+
+  factory CopyWith$Input$certEventAggregateBoolExpCount.stub(TRes res) =
+      _CopyWithStubImpl$Input$certEventAggregateBoolExpCount;
+
+  TRes call({
+    List<Enum$CertEventSelectColumn>? arguments,
+    bool? distinct,
+    Input$CertEventBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  });
+  CopyWith$Input$CertEventBoolExp<TRes> get filter;
+  CopyWith$Input$IntComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$certEventAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$certEventAggregateBoolExpCount<TRes> {
+  _CopyWithImpl$Input$certEventAggregateBoolExpCount(
+    this._instance,
+    this._then,
+  );
+
+  final Input$certEventAggregateBoolExpCount _instance;
+
+  final TRes Function(Input$certEventAggregateBoolExpCount) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$certEventAggregateBoolExpCount._({
+        ..._instance._$data,
+        if (arguments != _undefined)
+          'arguments': (arguments as List<Enum$CertEventSelectColumn>?),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined) 'filter': (filter as Input$CertEventBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$IntComparisonExp),
+      }));
+
+  CopyWith$Input$CertEventBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$CertEventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CertEventBoolExp(local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$IntComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$certEventAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$certEventAggregateBoolExpCount<TRes> {
+  _CopyWithStubImpl$Input$certEventAggregateBoolExpCount(this._res);
+
+  TRes _res;
+
+  call({
+    List<Enum$CertEventSelectColumn>? arguments,
+    bool? distinct,
+    Input$CertEventBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$CertEventBoolExp<TRes> get filter =>
+      CopyWith$Input$CertEventBoolExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+}
+
+class Input$CertEventAggregateOrderBy {
+  factory Input$CertEventAggregateOrderBy({
+    Input$CertEventAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$CertEventMaxOrderBy? max,
+    Input$CertEventMinOrderBy? min,
+    Input$CertEventStddevOrderBy? stddev,
+    Input$CertEventStddevPopOrderBy? stddevPop,
+    Input$CertEventStddevSampOrderBy? stddevSamp,
+    Input$CertEventSumOrderBy? sum,
+    Input$CertEventVarPopOrderBy? varPop,
+    Input$CertEventVarSampOrderBy? varSamp,
+    Input$CertEventVarianceOrderBy? variance,
+  }) =>
+      Input$CertEventAggregateOrderBy._({
+        if (avg != null) r'avg': avg,
+        if (count != null) r'count': count,
+        if (max != null) r'max': max,
+        if (min != null) r'min': min,
+        if (stddev != null) r'stddev': stddev,
+        if (stddevPop != null) r'stddevPop': stddevPop,
+        if (stddevSamp != null) r'stddevSamp': stddevSamp,
+        if (sum != null) r'sum': sum,
+        if (varPop != null) r'varPop': varPop,
+        if (varSamp != null) r'varSamp': varSamp,
+        if (variance != null) r'variance': variance,
+      });
+
+  Input$CertEventAggregateOrderBy._(this._$data);
+
+  factory Input$CertEventAggregateOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('avg')) {
+      final l$avg = data['avg'];
+      result$data['avg'] = l$avg == null
+          ? null
+          : Input$CertEventAvgOrderBy.fromJson((l$avg as Map<String, dynamic>));
+    }
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] =
+          l$count == null ? null : fromJson$Enum$OrderBy((l$count as String));
+    }
+    if (data.containsKey('max')) {
+      final l$max = data['max'];
+      result$data['max'] = l$max == null
+          ? null
+          : Input$CertEventMaxOrderBy.fromJson((l$max as Map<String, dynamic>));
+    }
+    if (data.containsKey('min')) {
+      final l$min = data['min'];
+      result$data['min'] = l$min == null
+          ? null
+          : Input$CertEventMinOrderBy.fromJson((l$min as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddev')) {
+      final l$stddev = data['stddev'];
+      result$data['stddev'] = l$stddev == null
+          ? null
+          : Input$CertEventStddevOrderBy.fromJson(
+              (l$stddev as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevPop')) {
+      final l$stddevPop = data['stddevPop'];
+      result$data['stddevPop'] = l$stddevPop == null
+          ? null
+          : Input$CertEventStddevPopOrderBy.fromJson(
+              (l$stddevPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevSamp')) {
+      final l$stddevSamp = data['stddevSamp'];
+      result$data['stddevSamp'] = l$stddevSamp == null
+          ? null
+          : Input$CertEventStddevSampOrderBy.fromJson(
+              (l$stddevSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('sum')) {
+      final l$sum = data['sum'];
+      result$data['sum'] = l$sum == null
+          ? null
+          : Input$CertEventSumOrderBy.fromJson((l$sum as Map<String, dynamic>));
+    }
+    if (data.containsKey('varPop')) {
+      final l$varPop = data['varPop'];
+      result$data['varPop'] = l$varPop == null
+          ? null
+          : Input$CertEventVarPopOrderBy.fromJson(
+              (l$varPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('varSamp')) {
+      final l$varSamp = data['varSamp'];
+      result$data['varSamp'] = l$varSamp == null
+          ? null
+          : Input$CertEventVarSampOrderBy.fromJson(
+              (l$varSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('variance')) {
+      final l$variance = data['variance'];
+      result$data['variance'] = l$variance == null
+          ? null
+          : Input$CertEventVarianceOrderBy.fromJson(
+              (l$variance as Map<String, dynamic>));
+    }
+    return Input$CertEventAggregateOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$CertEventAvgOrderBy? get avg =>
+      (_$data['avg'] as Input$CertEventAvgOrderBy?);
+
+  Enum$OrderBy? get count => (_$data['count'] as Enum$OrderBy?);
+
+  Input$CertEventMaxOrderBy? get max =>
+      (_$data['max'] as Input$CertEventMaxOrderBy?);
+
+  Input$CertEventMinOrderBy? get min =>
+      (_$data['min'] as Input$CertEventMinOrderBy?);
+
+  Input$CertEventStddevOrderBy? get stddev =>
+      (_$data['stddev'] as Input$CertEventStddevOrderBy?);
+
+  Input$CertEventStddevPopOrderBy? get stddevPop =>
+      (_$data['stddevPop'] as Input$CertEventStddevPopOrderBy?);
+
+  Input$CertEventStddevSampOrderBy? get stddevSamp =>
+      (_$data['stddevSamp'] as Input$CertEventStddevSampOrderBy?);
+
+  Input$CertEventSumOrderBy? get sum =>
+      (_$data['sum'] as Input$CertEventSumOrderBy?);
+
+  Input$CertEventVarPopOrderBy? get varPop =>
+      (_$data['varPop'] as Input$CertEventVarPopOrderBy?);
+
+  Input$CertEventVarSampOrderBy? get varSamp =>
+      (_$data['varSamp'] as Input$CertEventVarSampOrderBy?);
+
+  Input$CertEventVarianceOrderBy? get variance =>
+      (_$data['variance'] as Input$CertEventVarianceOrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('avg')) {
+      final l$avg = avg;
+      result$data['avg'] = l$avg?.toJson();
+    }
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] =
+          l$count == null ? null : toJson$Enum$OrderBy(l$count);
+    }
+    if (_$data.containsKey('max')) {
+      final l$max = max;
+      result$data['max'] = l$max?.toJson();
+    }
+    if (_$data.containsKey('min')) {
+      final l$min = min;
+      result$data['min'] = l$min?.toJson();
+    }
+    if (_$data.containsKey('stddev')) {
+      final l$stddev = stddev;
+      result$data['stddev'] = l$stddev?.toJson();
+    }
+    if (_$data.containsKey('stddevPop')) {
+      final l$stddevPop = stddevPop;
+      result$data['stddevPop'] = l$stddevPop?.toJson();
+    }
+    if (_$data.containsKey('stddevSamp')) {
+      final l$stddevSamp = stddevSamp;
+      result$data['stddevSamp'] = l$stddevSamp?.toJson();
+    }
+    if (_$data.containsKey('sum')) {
+      final l$sum = sum;
+      result$data['sum'] = l$sum?.toJson();
+    }
+    if (_$data.containsKey('varPop')) {
+      final l$varPop = varPop;
+      result$data['varPop'] = l$varPop?.toJson();
+    }
+    if (_$data.containsKey('varSamp')) {
+      final l$varSamp = varSamp;
+      result$data['varSamp'] = l$varSamp?.toJson();
+    }
+    if (_$data.containsKey('variance')) {
+      final l$variance = variance;
+      result$data['variance'] = l$variance?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertEventAggregateOrderBy<Input$CertEventAggregateOrderBy>
+      get copyWith => CopyWith$Input$CertEventAggregateOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertEventAggregateOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$avg = avg;
+    final lOther$avg = other.avg;
+    if (_$data.containsKey('avg') != other._$data.containsKey('avg')) {
+      return false;
+    }
+    if (l$avg != lOther$avg) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    final l$max = max;
+    final lOther$max = other.max;
+    if (_$data.containsKey('max') != other._$data.containsKey('max')) {
+      return false;
+    }
+    if (l$max != lOther$max) {
+      return false;
+    }
+    final l$min = min;
+    final lOther$min = other.min;
+    if (_$data.containsKey('min') != other._$data.containsKey('min')) {
+      return false;
+    }
+    if (l$min != lOther$min) {
+      return false;
+    }
+    final l$stddev = stddev;
+    final lOther$stddev = other.stddev;
+    if (_$data.containsKey('stddev') != other._$data.containsKey('stddev')) {
+      return false;
+    }
+    if (l$stddev != lOther$stddev) {
+      return false;
+    }
+    final l$stddevPop = stddevPop;
+    final lOther$stddevPop = other.stddevPop;
+    if (_$data.containsKey('stddevPop') !=
+        other._$data.containsKey('stddevPop')) {
+      return false;
+    }
+    if (l$stddevPop != lOther$stddevPop) {
+      return false;
+    }
+    final l$stddevSamp = stddevSamp;
+    final lOther$stddevSamp = other.stddevSamp;
+    if (_$data.containsKey('stddevSamp') !=
+        other._$data.containsKey('stddevSamp')) {
+      return false;
+    }
+    if (l$stddevSamp != lOther$stddevSamp) {
+      return false;
+    }
+    final l$sum = sum;
+    final lOther$sum = other.sum;
+    if (_$data.containsKey('sum') != other._$data.containsKey('sum')) {
+      return false;
+    }
+    if (l$sum != lOther$sum) {
+      return false;
+    }
+    final l$varPop = varPop;
+    final lOther$varPop = other.varPop;
+    if (_$data.containsKey('varPop') != other._$data.containsKey('varPop')) {
+      return false;
+    }
+    if (l$varPop != lOther$varPop) {
+      return false;
+    }
+    final l$varSamp = varSamp;
+    final lOther$varSamp = other.varSamp;
+    if (_$data.containsKey('varSamp') != other._$data.containsKey('varSamp')) {
+      return false;
+    }
+    if (l$varSamp != lOther$varSamp) {
+      return false;
+    }
+    final l$variance = variance;
+    final lOther$variance = other.variance;
+    if (_$data.containsKey('variance') !=
+        other._$data.containsKey('variance')) {
+      return false;
+    }
+    if (l$variance != lOther$variance) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$avg = avg;
+    final l$count = count;
+    final l$max = max;
+    final l$min = min;
+    final l$stddev = stddev;
+    final l$stddevPop = stddevPop;
+    final l$stddevSamp = stddevSamp;
+    final l$sum = sum;
+    final l$varPop = varPop;
+    final l$varSamp = varSamp;
+    final l$variance = variance;
+    return Object.hashAll([
+      _$data.containsKey('avg') ? l$avg : const {},
+      _$data.containsKey('count') ? l$count : const {},
+      _$data.containsKey('max') ? l$max : const {},
+      _$data.containsKey('min') ? l$min : const {},
+      _$data.containsKey('stddev') ? l$stddev : const {},
+      _$data.containsKey('stddevPop') ? l$stddevPop : const {},
+      _$data.containsKey('stddevSamp') ? l$stddevSamp : const {},
+      _$data.containsKey('sum') ? l$sum : const {},
+      _$data.containsKey('varPop') ? l$varPop : const {},
+      _$data.containsKey('varSamp') ? l$varSamp : const {},
+      _$data.containsKey('variance') ? l$variance : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertEventAggregateOrderBy<TRes> {
+  factory CopyWith$Input$CertEventAggregateOrderBy(
+    Input$CertEventAggregateOrderBy instance,
+    TRes Function(Input$CertEventAggregateOrderBy) then,
+  ) = _CopyWithImpl$Input$CertEventAggregateOrderBy;
+
+  factory CopyWith$Input$CertEventAggregateOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertEventAggregateOrderBy;
+
+  TRes call({
+    Input$CertEventAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$CertEventMaxOrderBy? max,
+    Input$CertEventMinOrderBy? min,
+    Input$CertEventStddevOrderBy? stddev,
+    Input$CertEventStddevPopOrderBy? stddevPop,
+    Input$CertEventStddevSampOrderBy? stddevSamp,
+    Input$CertEventSumOrderBy? sum,
+    Input$CertEventVarPopOrderBy? varPop,
+    Input$CertEventVarSampOrderBy? varSamp,
+    Input$CertEventVarianceOrderBy? variance,
+  });
+  CopyWith$Input$CertEventAvgOrderBy<TRes> get avg;
+  CopyWith$Input$CertEventMaxOrderBy<TRes> get max;
+  CopyWith$Input$CertEventMinOrderBy<TRes> get min;
+  CopyWith$Input$CertEventStddevOrderBy<TRes> get stddev;
+  CopyWith$Input$CertEventStddevPopOrderBy<TRes> get stddevPop;
+  CopyWith$Input$CertEventStddevSampOrderBy<TRes> get stddevSamp;
+  CopyWith$Input$CertEventSumOrderBy<TRes> get sum;
+  CopyWith$Input$CertEventVarPopOrderBy<TRes> get varPop;
+  CopyWith$Input$CertEventVarSampOrderBy<TRes> get varSamp;
+  CopyWith$Input$CertEventVarianceOrderBy<TRes> get variance;
+}
+
+class _CopyWithImpl$Input$CertEventAggregateOrderBy<TRes>
+    implements CopyWith$Input$CertEventAggregateOrderBy<TRes> {
+  _CopyWithImpl$Input$CertEventAggregateOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertEventAggregateOrderBy _instance;
+
+  final TRes Function(Input$CertEventAggregateOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? avg = _undefined,
+    Object? count = _undefined,
+    Object? max = _undefined,
+    Object? min = _undefined,
+    Object? stddev = _undefined,
+    Object? stddevPop = _undefined,
+    Object? stddevSamp = _undefined,
+    Object? sum = _undefined,
+    Object? varPop = _undefined,
+    Object? varSamp = _undefined,
+    Object? variance = _undefined,
+  }) =>
+      _then(Input$CertEventAggregateOrderBy._({
+        ..._instance._$data,
+        if (avg != _undefined) 'avg': (avg as Input$CertEventAvgOrderBy?),
+        if (count != _undefined) 'count': (count as Enum$OrderBy?),
+        if (max != _undefined) 'max': (max as Input$CertEventMaxOrderBy?),
+        if (min != _undefined) 'min': (min as Input$CertEventMinOrderBy?),
+        if (stddev != _undefined)
+          'stddev': (stddev as Input$CertEventStddevOrderBy?),
+        if (stddevPop != _undefined)
+          'stddevPop': (stddevPop as Input$CertEventStddevPopOrderBy?),
+        if (stddevSamp != _undefined)
+          'stddevSamp': (stddevSamp as Input$CertEventStddevSampOrderBy?),
+        if (sum != _undefined) 'sum': (sum as Input$CertEventSumOrderBy?),
+        if (varPop != _undefined)
+          'varPop': (varPop as Input$CertEventVarPopOrderBy?),
+        if (varSamp != _undefined)
+          'varSamp': (varSamp as Input$CertEventVarSampOrderBy?),
+        if (variance != _undefined)
+          'variance': (variance as Input$CertEventVarianceOrderBy?),
+      }));
+
+  CopyWith$Input$CertEventAvgOrderBy<TRes> get avg {
+    final local$avg = _instance.avg;
+    return local$avg == null
+        ? CopyWith$Input$CertEventAvgOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertEventAvgOrderBy(local$avg, (e) => call(avg: e));
+  }
+
+  CopyWith$Input$CertEventMaxOrderBy<TRes> get max {
+    final local$max = _instance.max;
+    return local$max == null
+        ? CopyWith$Input$CertEventMaxOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertEventMaxOrderBy(local$max, (e) => call(max: e));
+  }
+
+  CopyWith$Input$CertEventMinOrderBy<TRes> get min {
+    final local$min = _instance.min;
+    return local$min == null
+        ? CopyWith$Input$CertEventMinOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertEventMinOrderBy(local$min, (e) => call(min: e));
+  }
+
+  CopyWith$Input$CertEventStddevOrderBy<TRes> get stddev {
+    final local$stddev = _instance.stddev;
+    return local$stddev == null
+        ? CopyWith$Input$CertEventStddevOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertEventStddevOrderBy(
+            local$stddev, (e) => call(stddev: e));
+  }
+
+  CopyWith$Input$CertEventStddevPopOrderBy<TRes> get stddevPop {
+    final local$stddevPop = _instance.stddevPop;
+    return local$stddevPop == null
+        ? CopyWith$Input$CertEventStddevPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertEventStddevPopOrderBy(
+            local$stddevPop, (e) => call(stddevPop: e));
+  }
+
+  CopyWith$Input$CertEventStddevSampOrderBy<TRes> get stddevSamp {
+    final local$stddevSamp = _instance.stddevSamp;
+    return local$stddevSamp == null
+        ? CopyWith$Input$CertEventStddevSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertEventStddevSampOrderBy(
+            local$stddevSamp, (e) => call(stddevSamp: e));
+  }
+
+  CopyWith$Input$CertEventSumOrderBy<TRes> get sum {
+    final local$sum = _instance.sum;
+    return local$sum == null
+        ? CopyWith$Input$CertEventSumOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertEventSumOrderBy(local$sum, (e) => call(sum: e));
+  }
+
+  CopyWith$Input$CertEventVarPopOrderBy<TRes> get varPop {
+    final local$varPop = _instance.varPop;
+    return local$varPop == null
+        ? CopyWith$Input$CertEventVarPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertEventVarPopOrderBy(
+            local$varPop, (e) => call(varPop: e));
+  }
+
+  CopyWith$Input$CertEventVarSampOrderBy<TRes> get varSamp {
+    final local$varSamp = _instance.varSamp;
+    return local$varSamp == null
+        ? CopyWith$Input$CertEventVarSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertEventVarSampOrderBy(
+            local$varSamp, (e) => call(varSamp: e));
+  }
+
+  CopyWith$Input$CertEventVarianceOrderBy<TRes> get variance {
+    final local$variance = _instance.variance;
+    return local$variance == null
+        ? CopyWith$Input$CertEventVarianceOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertEventVarianceOrderBy(
+            local$variance, (e) => call(variance: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$CertEventAggregateOrderBy<TRes>
+    implements CopyWith$Input$CertEventAggregateOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertEventAggregateOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Input$CertEventAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$CertEventMaxOrderBy? max,
+    Input$CertEventMinOrderBy? min,
+    Input$CertEventStddevOrderBy? stddev,
+    Input$CertEventStddevPopOrderBy? stddevPop,
+    Input$CertEventStddevSampOrderBy? stddevSamp,
+    Input$CertEventSumOrderBy? sum,
+    Input$CertEventVarPopOrderBy? varPop,
+    Input$CertEventVarSampOrderBy? varSamp,
+    Input$CertEventVarianceOrderBy? variance,
+  }) =>
+      _res;
+
+  CopyWith$Input$CertEventAvgOrderBy<TRes> get avg =>
+      CopyWith$Input$CertEventAvgOrderBy.stub(_res);
+
+  CopyWith$Input$CertEventMaxOrderBy<TRes> get max =>
+      CopyWith$Input$CertEventMaxOrderBy.stub(_res);
+
+  CopyWith$Input$CertEventMinOrderBy<TRes> get min =>
+      CopyWith$Input$CertEventMinOrderBy.stub(_res);
+
+  CopyWith$Input$CertEventStddevOrderBy<TRes> get stddev =>
+      CopyWith$Input$CertEventStddevOrderBy.stub(_res);
+
+  CopyWith$Input$CertEventStddevPopOrderBy<TRes> get stddevPop =>
+      CopyWith$Input$CertEventStddevPopOrderBy.stub(_res);
+
+  CopyWith$Input$CertEventStddevSampOrderBy<TRes> get stddevSamp =>
+      CopyWith$Input$CertEventStddevSampOrderBy.stub(_res);
+
+  CopyWith$Input$CertEventSumOrderBy<TRes> get sum =>
+      CopyWith$Input$CertEventSumOrderBy.stub(_res);
+
+  CopyWith$Input$CertEventVarPopOrderBy<TRes> get varPop =>
+      CopyWith$Input$CertEventVarPopOrderBy.stub(_res);
+
+  CopyWith$Input$CertEventVarSampOrderBy<TRes> get varSamp =>
+      CopyWith$Input$CertEventVarSampOrderBy.stub(_res);
+
+  CopyWith$Input$CertEventVarianceOrderBy<TRes> get variance =>
+      CopyWith$Input$CertEventVarianceOrderBy.stub(_res);
+}
+
+class Input$CertEventAvgOrderBy {
+  factory Input$CertEventAvgOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$CertEventAvgOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$CertEventAvgOrderBy._(this._$data);
+
+  factory Input$CertEventAvgOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$CertEventAvgOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertEventAvgOrderBy<Input$CertEventAvgOrderBy> get copyWith =>
+      CopyWith$Input$CertEventAvgOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertEventAvgOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$CertEventAvgOrderBy<TRes> {
+  factory CopyWith$Input$CertEventAvgOrderBy(
+    Input$CertEventAvgOrderBy instance,
+    TRes Function(Input$CertEventAvgOrderBy) then,
+  ) = _CopyWithImpl$Input$CertEventAvgOrderBy;
+
+  factory CopyWith$Input$CertEventAvgOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertEventAvgOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$CertEventAvgOrderBy<TRes>
+    implements CopyWith$Input$CertEventAvgOrderBy<TRes> {
+  _CopyWithImpl$Input$CertEventAvgOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertEventAvgOrderBy _instance;
+
+  final TRes Function(Input$CertEventAvgOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$CertEventAvgOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertEventAvgOrderBy<TRes>
+    implements CopyWith$Input$CertEventAvgOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertEventAvgOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$CertEventBoolExp {
+  factory Input$CertEventBoolExp({
+    List<Input$CertEventBoolExp>? $_and,
+    Input$CertEventBoolExp? $_not,
+    List<Input$CertEventBoolExp>? $_or,
+    Input$IntComparisonExp? blockNumber,
+    Input$CertBoolExp? cert,
+    Input$StringComparisonExp? certId,
+    Input$EventBoolExp? event,
+    Input$StringComparisonExp? eventId,
+    Input$EventTypeEnumComparisonExp? eventType,
+    Input$StringComparisonExp? id,
+  }) =>
+      Input$CertEventBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (cert != null) r'cert': cert,
+        if (certId != null) r'certId': certId,
+        if (event != null) r'event': event,
+        if (eventId != null) r'eventId': eventId,
+        if (eventType != null) r'eventType': eventType,
+        if (id != null) r'id': id,
+      });
+
+  Input$CertEventBoolExp._(this._$data);
+
+  factory Input$CertEventBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map((e) =>
+              Input$CertEventBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$CertEventBoolExp.fromJson((l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map((e) =>
+              Input$CertEventBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$blockNumber as Map<String, dynamic>));
+    }
+    if (data.containsKey('cert')) {
+      final l$cert = data['cert'];
+      result$data['cert'] = l$cert == null
+          ? null
+          : Input$CertBoolExp.fromJson((l$cert as Map<String, dynamic>));
+    }
+    if (data.containsKey('certId')) {
+      final l$certId = data['certId'];
+      result$data['certId'] = l$certId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$certId as Map<String, dynamic>));
+    }
+    if (data.containsKey('event')) {
+      final l$event = data['event'];
+      result$data['event'] = l$event == null
+          ? null
+          : Input$EventBoolExp.fromJson((l$event as Map<String, dynamic>));
+    }
+    if (data.containsKey('eventId')) {
+      final l$eventId = data['eventId'];
+      result$data['eventId'] = l$eventId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$eventId as Map<String, dynamic>));
+    }
+    if (data.containsKey('eventType')) {
+      final l$eventType = data['eventType'];
+      result$data['eventType'] = l$eventType == null
+          ? null
+          : Input$EventTypeEnumComparisonExp.fromJson(
+              (l$eventType as Map<String, dynamic>));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    return Input$CertEventBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$CertEventBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$CertEventBoolExp>?);
+
+  Input$CertEventBoolExp? get $_not =>
+      (_$data['_not'] as Input$CertEventBoolExp?);
+
+  List<Input$CertEventBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$CertEventBoolExp>?);
+
+  Input$IntComparisonExp? get blockNumber =>
+      (_$data['blockNumber'] as Input$IntComparisonExp?);
+
+  Input$CertBoolExp? get cert => (_$data['cert'] as Input$CertBoolExp?);
+
+  Input$StringComparisonExp? get certId =>
+      (_$data['certId'] as Input$StringComparisonExp?);
+
+  Input$EventBoolExp? get event => (_$data['event'] as Input$EventBoolExp?);
+
+  Input$StringComparisonExp? get eventId =>
+      (_$data['eventId'] as Input$StringComparisonExp?);
+
+  Input$EventTypeEnumComparisonExp? get eventType =>
+      (_$data['eventType'] as Input$EventTypeEnumComparisonExp?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] = l$blockNumber?.toJson();
+    }
+    if (_$data.containsKey('cert')) {
+      final l$cert = cert;
+      result$data['cert'] = l$cert?.toJson();
+    }
+    if (_$data.containsKey('certId')) {
+      final l$certId = certId;
+      result$data['certId'] = l$certId?.toJson();
+    }
+    if (_$data.containsKey('event')) {
+      final l$event = event;
+      result$data['event'] = l$event?.toJson();
+    }
+    if (_$data.containsKey('eventId')) {
+      final l$eventId = eventId;
+      result$data['eventId'] = l$eventId?.toJson();
+    }
+    if (_$data.containsKey('eventType')) {
+      final l$eventType = eventType;
+      result$data['eventType'] = l$eventType?.toJson();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertEventBoolExp<Input$CertEventBoolExp> get copyWith =>
+      CopyWith$Input$CertEventBoolExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertEventBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$cert = cert;
+    final lOther$cert = other.cert;
+    if (_$data.containsKey('cert') != other._$data.containsKey('cert')) {
+      return false;
+    }
+    if (l$cert != lOther$cert) {
+      return false;
+    }
+    final l$certId = certId;
+    final lOther$certId = other.certId;
+    if (_$data.containsKey('certId') != other._$data.containsKey('certId')) {
+      return false;
+    }
+    if (l$certId != lOther$certId) {
+      return false;
+    }
+    final l$event = event;
+    final lOther$event = other.event;
+    if (_$data.containsKey('event') != other._$data.containsKey('event')) {
+      return false;
+    }
+    if (l$event != lOther$event) {
+      return false;
+    }
+    final l$eventId = eventId;
+    final lOther$eventId = other.eventId;
+    if (_$data.containsKey('eventId') != other._$data.containsKey('eventId')) {
+      return false;
+    }
+    if (l$eventId != lOther$eventId) {
+      return false;
+    }
+    final l$eventType = eventType;
+    final lOther$eventType = other.eventType;
+    if (_$data.containsKey('eventType') !=
+        other._$data.containsKey('eventType')) {
+      return false;
+    }
+    if (l$eventType != lOther$eventType) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$blockNumber = blockNumber;
+    final l$cert = cert;
+    final l$certId = certId;
+    final l$event = event;
+    final l$eventId = eventId;
+    final l$eventType = eventType;
+    final l$id = id;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('cert') ? l$cert : const {},
+      _$data.containsKey('certId') ? l$certId : const {},
+      _$data.containsKey('event') ? l$event : const {},
+      _$data.containsKey('eventId') ? l$eventId : const {},
+      _$data.containsKey('eventType') ? l$eventType : const {},
+      _$data.containsKey('id') ? l$id : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertEventBoolExp<TRes> {
+  factory CopyWith$Input$CertEventBoolExp(
+    Input$CertEventBoolExp instance,
+    TRes Function(Input$CertEventBoolExp) then,
+  ) = _CopyWithImpl$Input$CertEventBoolExp;
+
+  factory CopyWith$Input$CertEventBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertEventBoolExp;
+
+  TRes call({
+    List<Input$CertEventBoolExp>? $_and,
+    Input$CertEventBoolExp? $_not,
+    List<Input$CertEventBoolExp>? $_or,
+    Input$IntComparisonExp? blockNumber,
+    Input$CertBoolExp? cert,
+    Input$StringComparisonExp? certId,
+    Input$EventBoolExp? event,
+    Input$StringComparisonExp? eventId,
+    Input$EventTypeEnumComparisonExp? eventType,
+    Input$StringComparisonExp? id,
+  });
+  TRes $_and(
+      Iterable<Input$CertEventBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$CertEventBoolExp<Input$CertEventBoolExp>>?)
+          _fn);
+  CopyWith$Input$CertEventBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$CertEventBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$CertEventBoolExp<Input$CertEventBoolExp>>?)
+          _fn);
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber;
+  CopyWith$Input$CertBoolExp<TRes> get cert;
+  CopyWith$Input$StringComparisonExp<TRes> get certId;
+  CopyWith$Input$EventBoolExp<TRes> get event;
+  CopyWith$Input$StringComparisonExp<TRes> get eventId;
+  CopyWith$Input$EventTypeEnumComparisonExp<TRes> get eventType;
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+}
+
+class _CopyWithImpl$Input$CertEventBoolExp<TRes>
+    implements CopyWith$Input$CertEventBoolExp<TRes> {
+  _CopyWithImpl$Input$CertEventBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertEventBoolExp _instance;
+
+  final TRes Function(Input$CertEventBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? blockNumber = _undefined,
+    Object? cert = _undefined,
+    Object? certId = _undefined,
+    Object? event = _undefined,
+    Object? eventId = _undefined,
+    Object? eventType = _undefined,
+    Object? id = _undefined,
+  }) =>
+      _then(Input$CertEventBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined)
+          '_and': ($_and as List<Input$CertEventBoolExp>?),
+        if ($_not != _undefined) '_not': ($_not as Input$CertEventBoolExp?),
+        if ($_or != _undefined) '_or': ($_or as List<Input$CertEventBoolExp>?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Input$IntComparisonExp?),
+        if (cert != _undefined) 'cert': (cert as Input$CertBoolExp?),
+        if (certId != _undefined)
+          'certId': (certId as Input$StringComparisonExp?),
+        if (event != _undefined) 'event': (event as Input$EventBoolExp?),
+        if (eventId != _undefined)
+          'eventId': (eventId as Input$StringComparisonExp?),
+        if (eventType != _undefined)
+          'eventType': (eventType as Input$EventTypeEnumComparisonExp?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$CertEventBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$CertEventBoolExp<Input$CertEventBoolExp>>?)
+              _fn) =>
+      call(
+          $_and:
+              _fn(_instance.$_and?.map((e) => CopyWith$Input$CertEventBoolExp(
+                    e,
+                    (i) => i,
+                  )))?.toList());
+
+  CopyWith$Input$CertEventBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$CertEventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CertEventBoolExp(local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$CertEventBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$CertEventBoolExp<Input$CertEventBoolExp>>?)
+              _fn) =>
+      call(
+          $_or: _fn(_instance.$_or?.map((e) => CopyWith$Input$CertEventBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber {
+    final local$blockNumber = _instance.blockNumber;
+    return local$blockNumber == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$blockNumber, (e) => call(blockNumber: e));
+  }
+
+  CopyWith$Input$CertBoolExp<TRes> get cert {
+    final local$cert = _instance.cert;
+    return local$cert == null
+        ? CopyWith$Input$CertBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CertBoolExp(local$cert, (e) => call(cert: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get certId {
+    final local$certId = _instance.certId;
+    return local$certId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$certId, (e) => call(certId: e));
+  }
+
+  CopyWith$Input$EventBoolExp<TRes> get event {
+    final local$event = _instance.event;
+    return local$event == null
+        ? CopyWith$Input$EventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$EventBoolExp(local$event, (e) => call(event: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get eventId {
+    final local$eventId = _instance.eventId;
+    return local$eventId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$eventId, (e) => call(eventId: e));
+  }
+
+  CopyWith$Input$EventTypeEnumComparisonExp<TRes> get eventType {
+    final local$eventType = _instance.eventType;
+    return local$eventType == null
+        ? CopyWith$Input$EventTypeEnumComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$EventTypeEnumComparisonExp(
+            local$eventType, (e) => call(eventType: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$CertEventBoolExp<TRes>
+    implements CopyWith$Input$CertEventBoolExp<TRes> {
+  _CopyWithStubImpl$Input$CertEventBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$CertEventBoolExp>? $_and,
+    Input$CertEventBoolExp? $_not,
+    List<Input$CertEventBoolExp>? $_or,
+    Input$IntComparisonExp? blockNumber,
+    Input$CertBoolExp? cert,
+    Input$StringComparisonExp? certId,
+    Input$EventBoolExp? event,
+    Input$StringComparisonExp? eventId,
+    Input$EventTypeEnumComparisonExp? eventType,
+    Input$StringComparisonExp? id,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$CertEventBoolExp<TRes> get $_not =>
+      CopyWith$Input$CertEventBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$CertBoolExp<TRes> get cert =>
+      CopyWith$Input$CertBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get certId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$EventBoolExp<TRes> get event =>
+      CopyWith$Input$EventBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get eventId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$EventTypeEnumComparisonExp<TRes> get eventType =>
+      CopyWith$Input$EventTypeEnumComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+}
+
+class Input$CertEventMaxOrderBy {
+  factory Input$CertEventMaxOrderBy({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? certId,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+  }) =>
+      Input$CertEventMaxOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (certId != null) r'certId': certId,
+        if (eventId != null) r'eventId': eventId,
+        if (id != null) r'id': id,
+      });
+
+  Input$CertEventMaxOrderBy._(this._$data);
+
+  factory Input$CertEventMaxOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('certId')) {
+      final l$certId = data['certId'];
+      result$data['certId'] =
+          l$certId == null ? null : fromJson$Enum$OrderBy((l$certId as String));
+    }
+    if (data.containsKey('eventId')) {
+      final l$eventId = data['eventId'];
+      result$data['eventId'] = l$eventId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$eventId as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    return Input$CertEventMaxOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get certId => (_$data['certId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get eventId => (_$data['eventId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('certId')) {
+      final l$certId = certId;
+      result$data['certId'] =
+          l$certId == null ? null : toJson$Enum$OrderBy(l$certId);
+    }
+    if (_$data.containsKey('eventId')) {
+      final l$eventId = eventId;
+      result$data['eventId'] =
+          l$eventId == null ? null : toJson$Enum$OrderBy(l$eventId);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertEventMaxOrderBy<Input$CertEventMaxOrderBy> get copyWith =>
+      CopyWith$Input$CertEventMaxOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertEventMaxOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$certId = certId;
+    final lOther$certId = other.certId;
+    if (_$data.containsKey('certId') != other._$data.containsKey('certId')) {
+      return false;
+    }
+    if (l$certId != lOther$certId) {
+      return false;
+    }
+    final l$eventId = eventId;
+    final lOther$eventId = other.eventId;
+    if (_$data.containsKey('eventId') != other._$data.containsKey('eventId')) {
+      return false;
+    }
+    if (l$eventId != lOther$eventId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    final l$certId = certId;
+    final l$eventId = eventId;
+    final l$id = id;
+    return Object.hashAll([
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('certId') ? l$certId : const {},
+      _$data.containsKey('eventId') ? l$eventId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertEventMaxOrderBy<TRes> {
+  factory CopyWith$Input$CertEventMaxOrderBy(
+    Input$CertEventMaxOrderBy instance,
+    TRes Function(Input$CertEventMaxOrderBy) then,
+  ) = _CopyWithImpl$Input$CertEventMaxOrderBy;
+
+  factory CopyWith$Input$CertEventMaxOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertEventMaxOrderBy;
+
+  TRes call({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? certId,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+  });
+}
+
+class _CopyWithImpl$Input$CertEventMaxOrderBy<TRes>
+    implements CopyWith$Input$CertEventMaxOrderBy<TRes> {
+  _CopyWithImpl$Input$CertEventMaxOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertEventMaxOrderBy _instance;
+
+  final TRes Function(Input$CertEventMaxOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? blockNumber = _undefined,
+    Object? certId = _undefined,
+    Object? eventId = _undefined,
+    Object? id = _undefined,
+  }) =>
+      _then(Input$CertEventMaxOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (certId != _undefined) 'certId': (certId as Enum$OrderBy?),
+        if (eventId != _undefined) 'eventId': (eventId as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertEventMaxOrderBy<TRes>
+    implements CopyWith$Input$CertEventMaxOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertEventMaxOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? certId,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+  }) =>
+      _res;
+}
+
+class Input$CertEventMinOrderBy {
+  factory Input$CertEventMinOrderBy({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? certId,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+  }) =>
+      Input$CertEventMinOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (certId != null) r'certId': certId,
+        if (eventId != null) r'eventId': eventId,
+        if (id != null) r'id': id,
+      });
+
+  Input$CertEventMinOrderBy._(this._$data);
+
+  factory Input$CertEventMinOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('certId')) {
+      final l$certId = data['certId'];
+      result$data['certId'] =
+          l$certId == null ? null : fromJson$Enum$OrderBy((l$certId as String));
+    }
+    if (data.containsKey('eventId')) {
+      final l$eventId = data['eventId'];
+      result$data['eventId'] = l$eventId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$eventId as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    return Input$CertEventMinOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get certId => (_$data['certId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get eventId => (_$data['eventId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('certId')) {
+      final l$certId = certId;
+      result$data['certId'] =
+          l$certId == null ? null : toJson$Enum$OrderBy(l$certId);
+    }
+    if (_$data.containsKey('eventId')) {
+      final l$eventId = eventId;
+      result$data['eventId'] =
+          l$eventId == null ? null : toJson$Enum$OrderBy(l$eventId);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertEventMinOrderBy<Input$CertEventMinOrderBy> get copyWith =>
+      CopyWith$Input$CertEventMinOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertEventMinOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$certId = certId;
+    final lOther$certId = other.certId;
+    if (_$data.containsKey('certId') != other._$data.containsKey('certId')) {
+      return false;
+    }
+    if (l$certId != lOther$certId) {
+      return false;
+    }
+    final l$eventId = eventId;
+    final lOther$eventId = other.eventId;
+    if (_$data.containsKey('eventId') != other._$data.containsKey('eventId')) {
+      return false;
+    }
+    if (l$eventId != lOther$eventId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    final l$certId = certId;
+    final l$eventId = eventId;
+    final l$id = id;
+    return Object.hashAll([
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('certId') ? l$certId : const {},
+      _$data.containsKey('eventId') ? l$eventId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertEventMinOrderBy<TRes> {
+  factory CopyWith$Input$CertEventMinOrderBy(
+    Input$CertEventMinOrderBy instance,
+    TRes Function(Input$CertEventMinOrderBy) then,
+  ) = _CopyWithImpl$Input$CertEventMinOrderBy;
+
+  factory CopyWith$Input$CertEventMinOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertEventMinOrderBy;
+
+  TRes call({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? certId,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+  });
+}
+
+class _CopyWithImpl$Input$CertEventMinOrderBy<TRes>
+    implements CopyWith$Input$CertEventMinOrderBy<TRes> {
+  _CopyWithImpl$Input$CertEventMinOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertEventMinOrderBy _instance;
+
+  final TRes Function(Input$CertEventMinOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? blockNumber = _undefined,
+    Object? certId = _undefined,
+    Object? eventId = _undefined,
+    Object? id = _undefined,
+  }) =>
+      _then(Input$CertEventMinOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (certId != _undefined) 'certId': (certId as Enum$OrderBy?),
+        if (eventId != _undefined) 'eventId': (eventId as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertEventMinOrderBy<TRes>
+    implements CopyWith$Input$CertEventMinOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertEventMinOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? certId,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+  }) =>
+      _res;
+}
+
+class Input$CertEventOrderBy {
+  factory Input$CertEventOrderBy({
+    Enum$OrderBy? blockNumber,
+    Input$CertOrderBy? cert,
+    Enum$OrderBy? certId,
+    Input$EventOrderBy? event,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? eventType,
+    Enum$OrderBy? id,
+  }) =>
+      Input$CertEventOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (cert != null) r'cert': cert,
+        if (certId != null) r'certId': certId,
+        if (event != null) r'event': event,
+        if (eventId != null) r'eventId': eventId,
+        if (eventType != null) r'eventType': eventType,
+        if (id != null) r'id': id,
+      });
+
+  Input$CertEventOrderBy._(this._$data);
+
+  factory Input$CertEventOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('cert')) {
+      final l$cert = data['cert'];
+      result$data['cert'] = l$cert == null
+          ? null
+          : Input$CertOrderBy.fromJson((l$cert as Map<String, dynamic>));
+    }
+    if (data.containsKey('certId')) {
+      final l$certId = data['certId'];
+      result$data['certId'] =
+          l$certId == null ? null : fromJson$Enum$OrderBy((l$certId as String));
+    }
+    if (data.containsKey('event')) {
+      final l$event = data['event'];
+      result$data['event'] = l$event == null
+          ? null
+          : Input$EventOrderBy.fromJson((l$event as Map<String, dynamic>));
+    }
+    if (data.containsKey('eventId')) {
+      final l$eventId = data['eventId'];
+      result$data['eventId'] = l$eventId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$eventId as String));
+    }
+    if (data.containsKey('eventType')) {
+      final l$eventType = data['eventType'];
+      result$data['eventType'] = l$eventType == null
+          ? null
+          : fromJson$Enum$OrderBy((l$eventType as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    return Input$CertEventOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Input$CertOrderBy? get cert => (_$data['cert'] as Input$CertOrderBy?);
+
+  Enum$OrderBy? get certId => (_$data['certId'] as Enum$OrderBy?);
+
+  Input$EventOrderBy? get event => (_$data['event'] as Input$EventOrderBy?);
+
+  Enum$OrderBy? get eventId => (_$data['eventId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get eventType => (_$data['eventType'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('cert')) {
+      final l$cert = cert;
+      result$data['cert'] = l$cert?.toJson();
+    }
+    if (_$data.containsKey('certId')) {
+      final l$certId = certId;
+      result$data['certId'] =
+          l$certId == null ? null : toJson$Enum$OrderBy(l$certId);
+    }
+    if (_$data.containsKey('event')) {
+      final l$event = event;
+      result$data['event'] = l$event?.toJson();
+    }
+    if (_$data.containsKey('eventId')) {
+      final l$eventId = eventId;
+      result$data['eventId'] =
+          l$eventId == null ? null : toJson$Enum$OrderBy(l$eventId);
+    }
+    if (_$data.containsKey('eventType')) {
+      final l$eventType = eventType;
+      result$data['eventType'] =
+          l$eventType == null ? null : toJson$Enum$OrderBy(l$eventType);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertEventOrderBy<Input$CertEventOrderBy> get copyWith =>
+      CopyWith$Input$CertEventOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertEventOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$cert = cert;
+    final lOther$cert = other.cert;
+    if (_$data.containsKey('cert') != other._$data.containsKey('cert')) {
+      return false;
+    }
+    if (l$cert != lOther$cert) {
+      return false;
+    }
+    final l$certId = certId;
+    final lOther$certId = other.certId;
+    if (_$data.containsKey('certId') != other._$data.containsKey('certId')) {
+      return false;
+    }
+    if (l$certId != lOther$certId) {
+      return false;
+    }
+    final l$event = event;
+    final lOther$event = other.event;
+    if (_$data.containsKey('event') != other._$data.containsKey('event')) {
+      return false;
+    }
+    if (l$event != lOther$event) {
+      return false;
+    }
+    final l$eventId = eventId;
+    final lOther$eventId = other.eventId;
+    if (_$data.containsKey('eventId') != other._$data.containsKey('eventId')) {
+      return false;
+    }
+    if (l$eventId != lOther$eventId) {
+      return false;
+    }
+    final l$eventType = eventType;
+    final lOther$eventType = other.eventType;
+    if (_$data.containsKey('eventType') !=
+        other._$data.containsKey('eventType')) {
+      return false;
+    }
+    if (l$eventType != lOther$eventType) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    final l$cert = cert;
+    final l$certId = certId;
+    final l$event = event;
+    final l$eventId = eventId;
+    final l$eventType = eventType;
+    final l$id = id;
+    return Object.hashAll([
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('cert') ? l$cert : const {},
+      _$data.containsKey('certId') ? l$certId : const {},
+      _$data.containsKey('event') ? l$event : const {},
+      _$data.containsKey('eventId') ? l$eventId : const {},
+      _$data.containsKey('eventType') ? l$eventType : const {},
+      _$data.containsKey('id') ? l$id : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertEventOrderBy<TRes> {
+  factory CopyWith$Input$CertEventOrderBy(
+    Input$CertEventOrderBy instance,
+    TRes Function(Input$CertEventOrderBy) then,
+  ) = _CopyWithImpl$Input$CertEventOrderBy;
+
+  factory CopyWith$Input$CertEventOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertEventOrderBy;
+
+  TRes call({
+    Enum$OrderBy? blockNumber,
+    Input$CertOrderBy? cert,
+    Enum$OrderBy? certId,
+    Input$EventOrderBy? event,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? eventType,
+    Enum$OrderBy? id,
+  });
+  CopyWith$Input$CertOrderBy<TRes> get cert;
+  CopyWith$Input$EventOrderBy<TRes> get event;
+}
+
+class _CopyWithImpl$Input$CertEventOrderBy<TRes>
+    implements CopyWith$Input$CertEventOrderBy<TRes> {
+  _CopyWithImpl$Input$CertEventOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertEventOrderBy _instance;
+
+  final TRes Function(Input$CertEventOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? blockNumber = _undefined,
+    Object? cert = _undefined,
+    Object? certId = _undefined,
+    Object? event = _undefined,
+    Object? eventId = _undefined,
+    Object? eventType = _undefined,
+    Object? id = _undefined,
+  }) =>
+      _then(Input$CertEventOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (cert != _undefined) 'cert': (cert as Input$CertOrderBy?),
+        if (certId != _undefined) 'certId': (certId as Enum$OrderBy?),
+        if (event != _undefined) 'event': (event as Input$EventOrderBy?),
+        if (eventId != _undefined) 'eventId': (eventId as Enum$OrderBy?),
+        if (eventType != _undefined) 'eventType': (eventType as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+      }));
+
+  CopyWith$Input$CertOrderBy<TRes> get cert {
+    final local$cert = _instance.cert;
+    return local$cert == null
+        ? CopyWith$Input$CertOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertOrderBy(local$cert, (e) => call(cert: e));
+  }
+
+  CopyWith$Input$EventOrderBy<TRes> get event {
+    final local$event = _instance.event;
+    return local$event == null
+        ? CopyWith$Input$EventOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventOrderBy(local$event, (e) => call(event: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$CertEventOrderBy<TRes>
+    implements CopyWith$Input$CertEventOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertEventOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? blockNumber,
+    Input$CertOrderBy? cert,
+    Enum$OrderBy? certId,
+    Input$EventOrderBy? event,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? eventType,
+    Enum$OrderBy? id,
+  }) =>
+      _res;
+
+  CopyWith$Input$CertOrderBy<TRes> get cert =>
+      CopyWith$Input$CertOrderBy.stub(_res);
+
+  CopyWith$Input$EventOrderBy<TRes> get event =>
+      CopyWith$Input$EventOrderBy.stub(_res);
+}
+
+class Input$CertEventStddevOrderBy {
+  factory Input$CertEventStddevOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$CertEventStddevOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$CertEventStddevOrderBy._(this._$data);
+
+  factory Input$CertEventStddevOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$CertEventStddevOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertEventStddevOrderBy<Input$CertEventStddevOrderBy>
+      get copyWith => CopyWith$Input$CertEventStddevOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertEventStddevOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$CertEventStddevOrderBy<TRes> {
+  factory CopyWith$Input$CertEventStddevOrderBy(
+    Input$CertEventStddevOrderBy instance,
+    TRes Function(Input$CertEventStddevOrderBy) then,
+  ) = _CopyWithImpl$Input$CertEventStddevOrderBy;
+
+  factory CopyWith$Input$CertEventStddevOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertEventStddevOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$CertEventStddevOrderBy<TRes>
+    implements CopyWith$Input$CertEventStddevOrderBy<TRes> {
+  _CopyWithImpl$Input$CertEventStddevOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertEventStddevOrderBy _instance;
+
+  final TRes Function(Input$CertEventStddevOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$CertEventStddevOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertEventStddevOrderBy<TRes>
+    implements CopyWith$Input$CertEventStddevOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertEventStddevOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$CertEventStddevPopOrderBy {
+  factory Input$CertEventStddevPopOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$CertEventStddevPopOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$CertEventStddevPopOrderBy._(this._$data);
+
+  factory Input$CertEventStddevPopOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$CertEventStddevPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertEventStddevPopOrderBy<Input$CertEventStddevPopOrderBy>
+      get copyWith => CopyWith$Input$CertEventStddevPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertEventStddevPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$CertEventStddevPopOrderBy<TRes> {
+  factory CopyWith$Input$CertEventStddevPopOrderBy(
+    Input$CertEventStddevPopOrderBy instance,
+    TRes Function(Input$CertEventStddevPopOrderBy) then,
+  ) = _CopyWithImpl$Input$CertEventStddevPopOrderBy;
+
+  factory CopyWith$Input$CertEventStddevPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertEventStddevPopOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$CertEventStddevPopOrderBy<TRes>
+    implements CopyWith$Input$CertEventStddevPopOrderBy<TRes> {
+  _CopyWithImpl$Input$CertEventStddevPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertEventStddevPopOrderBy _instance;
+
+  final TRes Function(Input$CertEventStddevPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$CertEventStddevPopOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertEventStddevPopOrderBy<TRes>
+    implements CopyWith$Input$CertEventStddevPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertEventStddevPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$CertEventStddevSampOrderBy {
+  factory Input$CertEventStddevSampOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$CertEventStddevSampOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$CertEventStddevSampOrderBy._(this._$data);
+
+  factory Input$CertEventStddevSampOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$CertEventStddevSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertEventStddevSampOrderBy<Input$CertEventStddevSampOrderBy>
+      get copyWith => CopyWith$Input$CertEventStddevSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertEventStddevSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$CertEventStddevSampOrderBy<TRes> {
+  factory CopyWith$Input$CertEventStddevSampOrderBy(
+    Input$CertEventStddevSampOrderBy instance,
+    TRes Function(Input$CertEventStddevSampOrderBy) then,
+  ) = _CopyWithImpl$Input$CertEventStddevSampOrderBy;
+
+  factory CopyWith$Input$CertEventStddevSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertEventStddevSampOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$CertEventStddevSampOrderBy<TRes>
+    implements CopyWith$Input$CertEventStddevSampOrderBy<TRes> {
+  _CopyWithImpl$Input$CertEventStddevSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertEventStddevSampOrderBy _instance;
+
+  final TRes Function(Input$CertEventStddevSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$CertEventStddevSampOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertEventStddevSampOrderBy<TRes>
+    implements CopyWith$Input$CertEventStddevSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertEventStddevSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$CertEventSumOrderBy {
+  factory Input$CertEventSumOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$CertEventSumOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$CertEventSumOrderBy._(this._$data);
+
+  factory Input$CertEventSumOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$CertEventSumOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertEventSumOrderBy<Input$CertEventSumOrderBy> get copyWith =>
+      CopyWith$Input$CertEventSumOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertEventSumOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$CertEventSumOrderBy<TRes> {
+  factory CopyWith$Input$CertEventSumOrderBy(
+    Input$CertEventSumOrderBy instance,
+    TRes Function(Input$CertEventSumOrderBy) then,
+  ) = _CopyWithImpl$Input$CertEventSumOrderBy;
+
+  factory CopyWith$Input$CertEventSumOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertEventSumOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$CertEventSumOrderBy<TRes>
+    implements CopyWith$Input$CertEventSumOrderBy<TRes> {
+  _CopyWithImpl$Input$CertEventSumOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertEventSumOrderBy _instance;
+
+  final TRes Function(Input$CertEventSumOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$CertEventSumOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertEventSumOrderBy<TRes>
+    implements CopyWith$Input$CertEventSumOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertEventSumOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$CertEventVarianceOrderBy {
+  factory Input$CertEventVarianceOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$CertEventVarianceOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$CertEventVarianceOrderBy._(this._$data);
+
+  factory Input$CertEventVarianceOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$CertEventVarianceOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertEventVarianceOrderBy<Input$CertEventVarianceOrderBy>
+      get copyWith => CopyWith$Input$CertEventVarianceOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertEventVarianceOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$CertEventVarianceOrderBy<TRes> {
+  factory CopyWith$Input$CertEventVarianceOrderBy(
+    Input$CertEventVarianceOrderBy instance,
+    TRes Function(Input$CertEventVarianceOrderBy) then,
+  ) = _CopyWithImpl$Input$CertEventVarianceOrderBy;
+
+  factory CopyWith$Input$CertEventVarianceOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertEventVarianceOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$CertEventVarianceOrderBy<TRes>
+    implements CopyWith$Input$CertEventVarianceOrderBy<TRes> {
+  _CopyWithImpl$Input$CertEventVarianceOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertEventVarianceOrderBy _instance;
+
+  final TRes Function(Input$CertEventVarianceOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$CertEventVarianceOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertEventVarianceOrderBy<TRes>
+    implements CopyWith$Input$CertEventVarianceOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertEventVarianceOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$CertEventVarPopOrderBy {
+  factory Input$CertEventVarPopOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$CertEventVarPopOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$CertEventVarPopOrderBy._(this._$data);
+
+  factory Input$CertEventVarPopOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$CertEventVarPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertEventVarPopOrderBy<Input$CertEventVarPopOrderBy>
+      get copyWith => CopyWith$Input$CertEventVarPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertEventVarPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$CertEventVarPopOrderBy<TRes> {
+  factory CopyWith$Input$CertEventVarPopOrderBy(
+    Input$CertEventVarPopOrderBy instance,
+    TRes Function(Input$CertEventVarPopOrderBy) then,
+  ) = _CopyWithImpl$Input$CertEventVarPopOrderBy;
+
+  factory CopyWith$Input$CertEventVarPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertEventVarPopOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$CertEventVarPopOrderBy<TRes>
+    implements CopyWith$Input$CertEventVarPopOrderBy<TRes> {
+  _CopyWithImpl$Input$CertEventVarPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertEventVarPopOrderBy _instance;
+
+  final TRes Function(Input$CertEventVarPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$CertEventVarPopOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertEventVarPopOrderBy<TRes>
+    implements CopyWith$Input$CertEventVarPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertEventVarPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$CertEventVarSampOrderBy {
+  factory Input$CertEventVarSampOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$CertEventVarSampOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$CertEventVarSampOrderBy._(this._$data);
+
+  factory Input$CertEventVarSampOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$CertEventVarSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertEventVarSampOrderBy<Input$CertEventVarSampOrderBy>
+      get copyWith => CopyWith$Input$CertEventVarSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertEventVarSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$CertEventVarSampOrderBy<TRes> {
+  factory CopyWith$Input$CertEventVarSampOrderBy(
+    Input$CertEventVarSampOrderBy instance,
+    TRes Function(Input$CertEventVarSampOrderBy) then,
+  ) = _CopyWithImpl$Input$CertEventVarSampOrderBy;
+
+  factory CopyWith$Input$CertEventVarSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertEventVarSampOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$CertEventVarSampOrderBy<TRes>
+    implements CopyWith$Input$CertEventVarSampOrderBy<TRes> {
+  _CopyWithImpl$Input$CertEventVarSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertEventVarSampOrderBy _instance;
+
+  final TRes Function(Input$CertEventVarSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$CertEventVarSampOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertEventVarSampOrderBy<TRes>
+    implements CopyWith$Input$CertEventVarSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertEventVarSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$CertMaxOrderBy {
+  factory Input$CertMaxOrderBy({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? issuerId,
+    Enum$OrderBy? receiverId,
+  }) =>
+      Input$CertMaxOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+        if (expireOn != null) r'expireOn': expireOn,
+        if (id != null) r'id': id,
+        if (issuerId != null) r'issuerId': issuerId,
+        if (receiverId != null) r'receiverId': receiverId,
+      });
+
+  Input$CertMaxOrderBy._(this._$data);
+
+  factory Input$CertMaxOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    if (data.containsKey('expireOn')) {
+      final l$expireOn = data['expireOn'];
+      result$data['expireOn'] = l$expireOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$expireOn as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('issuerId')) {
+      final l$issuerId = data['issuerId'];
+      result$data['issuerId'] = l$issuerId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$issuerId as String));
+    }
+    if (data.containsKey('receiverId')) {
+      final l$receiverId = data['receiverId'];
+      result$data['receiverId'] = l$receiverId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$receiverId as String));
+    }
+    return Input$CertMaxOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get expireOn => (_$data['expireOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get issuerId => (_$data['issuerId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get receiverId => (_$data['receiverId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    if (_$data.containsKey('expireOn')) {
+      final l$expireOn = expireOn;
+      result$data['expireOn'] =
+          l$expireOn == null ? null : toJson$Enum$OrderBy(l$expireOn);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('issuerId')) {
+      final l$issuerId = issuerId;
+      result$data['issuerId'] =
+          l$issuerId == null ? null : toJson$Enum$OrderBy(l$issuerId);
+    }
+    if (_$data.containsKey('receiverId')) {
+      final l$receiverId = receiverId;
+      result$data['receiverId'] =
+          l$receiverId == null ? null : toJson$Enum$OrderBy(l$receiverId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertMaxOrderBy<Input$CertMaxOrderBy> get copyWith =>
+      CopyWith$Input$CertMaxOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertMaxOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$expireOn = expireOn;
+    final lOther$expireOn = other.expireOn;
+    if (_$data.containsKey('expireOn') !=
+        other._$data.containsKey('expireOn')) {
+      return false;
+    }
+    if (l$expireOn != lOther$expireOn) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$issuerId = issuerId;
+    final lOther$issuerId = other.issuerId;
+    if (_$data.containsKey('issuerId') !=
+        other._$data.containsKey('issuerId')) {
+      return false;
+    }
+    if (l$issuerId != lOther$issuerId) {
+      return false;
+    }
+    final l$receiverId = receiverId;
+    final lOther$receiverId = other.receiverId;
+    if (_$data.containsKey('receiverId') !=
+        other._$data.containsKey('receiverId')) {
+      return false;
+    }
+    if (l$receiverId != lOther$receiverId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    final l$expireOn = expireOn;
+    final l$id = id;
+    final l$issuerId = issuerId;
+    final l$receiverId = receiverId;
+    return Object.hashAll([
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('expireOn') ? l$expireOn : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('issuerId') ? l$issuerId : const {},
+      _$data.containsKey('receiverId') ? l$receiverId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertMaxOrderBy<TRes> {
+  factory CopyWith$Input$CertMaxOrderBy(
+    Input$CertMaxOrderBy instance,
+    TRes Function(Input$CertMaxOrderBy) then,
+  ) = _CopyWithImpl$Input$CertMaxOrderBy;
+
+  factory CopyWith$Input$CertMaxOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertMaxOrderBy;
+
+  TRes call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? issuerId,
+    Enum$OrderBy? receiverId,
+  });
+}
+
+class _CopyWithImpl$Input$CertMaxOrderBy<TRes>
+    implements CopyWith$Input$CertMaxOrderBy<TRes> {
+  _CopyWithImpl$Input$CertMaxOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertMaxOrderBy _instance;
+
+  final TRes Function(Input$CertMaxOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? createdOn = _undefined,
+    Object? expireOn = _undefined,
+    Object? id = _undefined,
+    Object? issuerId = _undefined,
+    Object? receiverId = _undefined,
+  }) =>
+      _then(Input$CertMaxOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+        if (expireOn != _undefined) 'expireOn': (expireOn as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (issuerId != _undefined) 'issuerId': (issuerId as Enum$OrderBy?),
+        if (receiverId != _undefined)
+          'receiverId': (receiverId as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertMaxOrderBy<TRes>
+    implements CopyWith$Input$CertMaxOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertMaxOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? issuerId,
+    Enum$OrderBy? receiverId,
+  }) =>
+      _res;
+}
+
+class Input$CertMinOrderBy {
+  factory Input$CertMinOrderBy({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? issuerId,
+    Enum$OrderBy? receiverId,
+  }) =>
+      Input$CertMinOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+        if (expireOn != null) r'expireOn': expireOn,
+        if (id != null) r'id': id,
+        if (issuerId != null) r'issuerId': issuerId,
+        if (receiverId != null) r'receiverId': receiverId,
+      });
+
+  Input$CertMinOrderBy._(this._$data);
+
+  factory Input$CertMinOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    if (data.containsKey('expireOn')) {
+      final l$expireOn = data['expireOn'];
+      result$data['expireOn'] = l$expireOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$expireOn as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('issuerId')) {
+      final l$issuerId = data['issuerId'];
+      result$data['issuerId'] = l$issuerId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$issuerId as String));
+    }
+    if (data.containsKey('receiverId')) {
+      final l$receiverId = data['receiverId'];
+      result$data['receiverId'] = l$receiverId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$receiverId as String));
+    }
+    return Input$CertMinOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get expireOn => (_$data['expireOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get issuerId => (_$data['issuerId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get receiverId => (_$data['receiverId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    if (_$data.containsKey('expireOn')) {
+      final l$expireOn = expireOn;
+      result$data['expireOn'] =
+          l$expireOn == null ? null : toJson$Enum$OrderBy(l$expireOn);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('issuerId')) {
+      final l$issuerId = issuerId;
+      result$data['issuerId'] =
+          l$issuerId == null ? null : toJson$Enum$OrderBy(l$issuerId);
+    }
+    if (_$data.containsKey('receiverId')) {
+      final l$receiverId = receiverId;
+      result$data['receiverId'] =
+          l$receiverId == null ? null : toJson$Enum$OrderBy(l$receiverId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertMinOrderBy<Input$CertMinOrderBy> get copyWith =>
+      CopyWith$Input$CertMinOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertMinOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$expireOn = expireOn;
+    final lOther$expireOn = other.expireOn;
+    if (_$data.containsKey('expireOn') !=
+        other._$data.containsKey('expireOn')) {
+      return false;
+    }
+    if (l$expireOn != lOther$expireOn) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$issuerId = issuerId;
+    final lOther$issuerId = other.issuerId;
+    if (_$data.containsKey('issuerId') !=
+        other._$data.containsKey('issuerId')) {
+      return false;
+    }
+    if (l$issuerId != lOther$issuerId) {
+      return false;
+    }
+    final l$receiverId = receiverId;
+    final lOther$receiverId = other.receiverId;
+    if (_$data.containsKey('receiverId') !=
+        other._$data.containsKey('receiverId')) {
+      return false;
+    }
+    if (l$receiverId != lOther$receiverId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    final l$expireOn = expireOn;
+    final l$id = id;
+    final l$issuerId = issuerId;
+    final l$receiverId = receiverId;
+    return Object.hashAll([
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('expireOn') ? l$expireOn : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('issuerId') ? l$issuerId : const {},
+      _$data.containsKey('receiverId') ? l$receiverId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertMinOrderBy<TRes> {
+  factory CopyWith$Input$CertMinOrderBy(
+    Input$CertMinOrderBy instance,
+    TRes Function(Input$CertMinOrderBy) then,
+  ) = _CopyWithImpl$Input$CertMinOrderBy;
+
+  factory CopyWith$Input$CertMinOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertMinOrderBy;
+
+  TRes call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? issuerId,
+    Enum$OrderBy? receiverId,
+  });
+}
+
+class _CopyWithImpl$Input$CertMinOrderBy<TRes>
+    implements CopyWith$Input$CertMinOrderBy<TRes> {
+  _CopyWithImpl$Input$CertMinOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertMinOrderBy _instance;
+
+  final TRes Function(Input$CertMinOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? createdOn = _undefined,
+    Object? expireOn = _undefined,
+    Object? id = _undefined,
+    Object? issuerId = _undefined,
+    Object? receiverId = _undefined,
+  }) =>
+      _then(Input$CertMinOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+        if (expireOn != _undefined) 'expireOn': (expireOn as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (issuerId != _undefined) 'issuerId': (issuerId as Enum$OrderBy?),
+        if (receiverId != _undefined)
+          'receiverId': (receiverId as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertMinOrderBy<TRes>
+    implements CopyWith$Input$CertMinOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertMinOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? issuerId,
+    Enum$OrderBy? receiverId,
+  }) =>
+      _res;
+}
+
+class Input$CertOrderBy {
+  factory Input$CertOrderBy({
+    Input$CertEventAggregateOrderBy? certHistoryAggregate,
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? isActive,
+    Input$IdentityOrderBy? issuer,
+    Enum$OrderBy? issuerId,
+    Input$IdentityOrderBy? receiver,
+    Enum$OrderBy? receiverId,
+  }) =>
+      Input$CertOrderBy._({
+        if (certHistoryAggregate != null)
+          r'certHistoryAggregate': certHistoryAggregate,
+        if (createdOn != null) r'createdOn': createdOn,
+        if (expireOn != null) r'expireOn': expireOn,
+        if (id != null) r'id': id,
+        if (isActive != null) r'isActive': isActive,
+        if (issuer != null) r'issuer': issuer,
+        if (issuerId != null) r'issuerId': issuerId,
+        if (receiver != null) r'receiver': receiver,
+        if (receiverId != null) r'receiverId': receiverId,
+      });
+
+  Input$CertOrderBy._(this._$data);
+
+  factory Input$CertOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('certHistoryAggregate')) {
+      final l$certHistoryAggregate = data['certHistoryAggregate'];
+      result$data['certHistoryAggregate'] = l$certHistoryAggregate == null
+          ? null
+          : Input$CertEventAggregateOrderBy.fromJson(
+              (l$certHistoryAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    if (data.containsKey('expireOn')) {
+      final l$expireOn = data['expireOn'];
+      result$data['expireOn'] = l$expireOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$expireOn as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('isActive')) {
+      final l$isActive = data['isActive'];
+      result$data['isActive'] = l$isActive == null
+          ? null
+          : fromJson$Enum$OrderBy((l$isActive as String));
+    }
+    if (data.containsKey('issuer')) {
+      final l$issuer = data['issuer'];
+      result$data['issuer'] = l$issuer == null
+          ? null
+          : Input$IdentityOrderBy.fromJson((l$issuer as Map<String, dynamic>));
+    }
+    if (data.containsKey('issuerId')) {
+      final l$issuerId = data['issuerId'];
+      result$data['issuerId'] = l$issuerId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$issuerId as String));
+    }
+    if (data.containsKey('receiver')) {
+      final l$receiver = data['receiver'];
+      result$data['receiver'] = l$receiver == null
+          ? null
+          : Input$IdentityOrderBy.fromJson(
+              (l$receiver as Map<String, dynamic>));
+    }
+    if (data.containsKey('receiverId')) {
+      final l$receiverId = data['receiverId'];
+      result$data['receiverId'] = l$receiverId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$receiverId as String));
+    }
+    return Input$CertOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$CertEventAggregateOrderBy? get certHistoryAggregate =>
+      (_$data['certHistoryAggregate'] as Input$CertEventAggregateOrderBy?);
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get expireOn => (_$data['expireOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get isActive => (_$data['isActive'] as Enum$OrderBy?);
+
+  Input$IdentityOrderBy? get issuer =>
+      (_$data['issuer'] as Input$IdentityOrderBy?);
+
+  Enum$OrderBy? get issuerId => (_$data['issuerId'] as Enum$OrderBy?);
+
+  Input$IdentityOrderBy? get receiver =>
+      (_$data['receiver'] as Input$IdentityOrderBy?);
+
+  Enum$OrderBy? get receiverId => (_$data['receiverId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('certHistoryAggregate')) {
+      final l$certHistoryAggregate = certHistoryAggregate;
+      result$data['certHistoryAggregate'] = l$certHistoryAggregate?.toJson();
+    }
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    if (_$data.containsKey('expireOn')) {
+      final l$expireOn = expireOn;
+      result$data['expireOn'] =
+          l$expireOn == null ? null : toJson$Enum$OrderBy(l$expireOn);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('isActive')) {
+      final l$isActive = isActive;
+      result$data['isActive'] =
+          l$isActive == null ? null : toJson$Enum$OrderBy(l$isActive);
+    }
+    if (_$data.containsKey('issuer')) {
+      final l$issuer = issuer;
+      result$data['issuer'] = l$issuer?.toJson();
+    }
+    if (_$data.containsKey('issuerId')) {
+      final l$issuerId = issuerId;
+      result$data['issuerId'] =
+          l$issuerId == null ? null : toJson$Enum$OrderBy(l$issuerId);
+    }
+    if (_$data.containsKey('receiver')) {
+      final l$receiver = receiver;
+      result$data['receiver'] = l$receiver?.toJson();
+    }
+    if (_$data.containsKey('receiverId')) {
+      final l$receiverId = receiverId;
+      result$data['receiverId'] =
+          l$receiverId == null ? null : toJson$Enum$OrderBy(l$receiverId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertOrderBy<Input$CertOrderBy> get copyWith =>
+      CopyWith$Input$CertOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$certHistoryAggregate = certHistoryAggregate;
+    final lOther$certHistoryAggregate = other.certHistoryAggregate;
+    if (_$data.containsKey('certHistoryAggregate') !=
+        other._$data.containsKey('certHistoryAggregate')) {
+      return false;
+    }
+    if (l$certHistoryAggregate != lOther$certHistoryAggregate) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$expireOn = expireOn;
+    final lOther$expireOn = other.expireOn;
+    if (_$data.containsKey('expireOn') !=
+        other._$data.containsKey('expireOn')) {
+      return false;
+    }
+    if (l$expireOn != lOther$expireOn) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$isActive = isActive;
+    final lOther$isActive = other.isActive;
+    if (_$data.containsKey('isActive') !=
+        other._$data.containsKey('isActive')) {
+      return false;
+    }
+    if (l$isActive != lOther$isActive) {
+      return false;
+    }
+    final l$issuer = issuer;
+    final lOther$issuer = other.issuer;
+    if (_$data.containsKey('issuer') != other._$data.containsKey('issuer')) {
+      return false;
+    }
+    if (l$issuer != lOther$issuer) {
+      return false;
+    }
+    final l$issuerId = issuerId;
+    final lOther$issuerId = other.issuerId;
+    if (_$data.containsKey('issuerId') !=
+        other._$data.containsKey('issuerId')) {
+      return false;
+    }
+    if (l$issuerId != lOther$issuerId) {
+      return false;
+    }
+    final l$receiver = receiver;
+    final lOther$receiver = other.receiver;
+    if (_$data.containsKey('receiver') !=
+        other._$data.containsKey('receiver')) {
+      return false;
+    }
+    if (l$receiver != lOther$receiver) {
+      return false;
+    }
+    final l$receiverId = receiverId;
+    final lOther$receiverId = other.receiverId;
+    if (_$data.containsKey('receiverId') !=
+        other._$data.containsKey('receiverId')) {
+      return false;
+    }
+    if (l$receiverId != lOther$receiverId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$certHistoryAggregate = certHistoryAggregate;
+    final l$createdOn = createdOn;
+    final l$expireOn = expireOn;
+    final l$id = id;
+    final l$isActive = isActive;
+    final l$issuer = issuer;
+    final l$issuerId = issuerId;
+    final l$receiver = receiver;
+    final l$receiverId = receiverId;
+    return Object.hashAll([
+      _$data.containsKey('certHistoryAggregate')
+          ? l$certHistoryAggregate
+          : const {},
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('expireOn') ? l$expireOn : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('isActive') ? l$isActive : const {},
+      _$data.containsKey('issuer') ? l$issuer : const {},
+      _$data.containsKey('issuerId') ? l$issuerId : const {},
+      _$data.containsKey('receiver') ? l$receiver : const {},
+      _$data.containsKey('receiverId') ? l$receiverId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertOrderBy<TRes> {
+  factory CopyWith$Input$CertOrderBy(
+    Input$CertOrderBy instance,
+    TRes Function(Input$CertOrderBy) then,
+  ) = _CopyWithImpl$Input$CertOrderBy;
+
+  factory CopyWith$Input$CertOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertOrderBy;
+
+  TRes call({
+    Input$CertEventAggregateOrderBy? certHistoryAggregate,
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? isActive,
+    Input$IdentityOrderBy? issuer,
+    Enum$OrderBy? issuerId,
+    Input$IdentityOrderBy? receiver,
+    Enum$OrderBy? receiverId,
+  });
+  CopyWith$Input$CertEventAggregateOrderBy<TRes> get certHistoryAggregate;
+  CopyWith$Input$IdentityOrderBy<TRes> get issuer;
+  CopyWith$Input$IdentityOrderBy<TRes> get receiver;
+}
+
+class _CopyWithImpl$Input$CertOrderBy<TRes>
+    implements CopyWith$Input$CertOrderBy<TRes> {
+  _CopyWithImpl$Input$CertOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertOrderBy _instance;
+
+  final TRes Function(Input$CertOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? certHistoryAggregate = _undefined,
+    Object? createdOn = _undefined,
+    Object? expireOn = _undefined,
+    Object? id = _undefined,
+    Object? isActive = _undefined,
+    Object? issuer = _undefined,
+    Object? issuerId = _undefined,
+    Object? receiver = _undefined,
+    Object? receiverId = _undefined,
+  }) =>
+      _then(Input$CertOrderBy._({
+        ..._instance._$data,
+        if (certHistoryAggregate != _undefined)
+          'certHistoryAggregate':
+              (certHistoryAggregate as Input$CertEventAggregateOrderBy?),
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+        if (expireOn != _undefined) 'expireOn': (expireOn as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (isActive != _undefined) 'isActive': (isActive as Enum$OrderBy?),
+        if (issuer != _undefined) 'issuer': (issuer as Input$IdentityOrderBy?),
+        if (issuerId != _undefined) 'issuerId': (issuerId as Enum$OrderBy?),
+        if (receiver != _undefined)
+          'receiver': (receiver as Input$IdentityOrderBy?),
+        if (receiverId != _undefined)
+          'receiverId': (receiverId as Enum$OrderBy?),
+      }));
+
+  CopyWith$Input$CertEventAggregateOrderBy<TRes> get certHistoryAggregate {
+    final local$certHistoryAggregate = _instance.certHistoryAggregate;
+    return local$certHistoryAggregate == null
+        ? CopyWith$Input$CertEventAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertEventAggregateOrderBy(
+            local$certHistoryAggregate, (e) => call(certHistoryAggregate: e));
+  }
+
+  CopyWith$Input$IdentityOrderBy<TRes> get issuer {
+    final local$issuer = _instance.issuer;
+    return local$issuer == null
+        ? CopyWith$Input$IdentityOrderBy.stub(_then(_instance))
+        : CopyWith$Input$IdentityOrderBy(local$issuer, (e) => call(issuer: e));
+  }
+
+  CopyWith$Input$IdentityOrderBy<TRes> get receiver {
+    final local$receiver = _instance.receiver;
+    return local$receiver == null
+        ? CopyWith$Input$IdentityOrderBy.stub(_then(_instance))
+        : CopyWith$Input$IdentityOrderBy(
+            local$receiver, (e) => call(receiver: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$CertOrderBy<TRes>
+    implements CopyWith$Input$CertOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Input$CertEventAggregateOrderBy? certHistoryAggregate,
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? isActive,
+    Input$IdentityOrderBy? issuer,
+    Enum$OrderBy? issuerId,
+    Input$IdentityOrderBy? receiver,
+    Enum$OrderBy? receiverId,
+  }) =>
+      _res;
+
+  CopyWith$Input$CertEventAggregateOrderBy<TRes> get certHistoryAggregate =>
+      CopyWith$Input$CertEventAggregateOrderBy.stub(_res);
+
+  CopyWith$Input$IdentityOrderBy<TRes> get issuer =>
+      CopyWith$Input$IdentityOrderBy.stub(_res);
+
+  CopyWith$Input$IdentityOrderBy<TRes> get receiver =>
+      CopyWith$Input$IdentityOrderBy.stub(_res);
+}
+
+class Input$CertStddevOrderBy {
+  factory Input$CertStddevOrderBy({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      Input$CertStddevOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+        if (expireOn != null) r'expireOn': expireOn,
+      });
+
+  Input$CertStddevOrderBy._(this._$data);
+
+  factory Input$CertStddevOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    if (data.containsKey('expireOn')) {
+      final l$expireOn = data['expireOn'];
+      result$data['expireOn'] = l$expireOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$expireOn as String));
+    }
+    return Input$CertStddevOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get expireOn => (_$data['expireOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    if (_$data.containsKey('expireOn')) {
+      final l$expireOn = expireOn;
+      result$data['expireOn'] =
+          l$expireOn == null ? null : toJson$Enum$OrderBy(l$expireOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertStddevOrderBy<Input$CertStddevOrderBy> get copyWith =>
+      CopyWith$Input$CertStddevOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertStddevOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$expireOn = expireOn;
+    final lOther$expireOn = other.expireOn;
+    if (_$data.containsKey('expireOn') !=
+        other._$data.containsKey('expireOn')) {
+      return false;
+    }
+    if (l$expireOn != lOther$expireOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    final l$expireOn = expireOn;
+    return Object.hashAll([
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('expireOn') ? l$expireOn : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertStddevOrderBy<TRes> {
+  factory CopyWith$Input$CertStddevOrderBy(
+    Input$CertStddevOrderBy instance,
+    TRes Function(Input$CertStddevOrderBy) then,
+  ) = _CopyWithImpl$Input$CertStddevOrderBy;
+
+  factory CopyWith$Input$CertStddevOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertStddevOrderBy;
+
+  TRes call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  });
+}
+
+class _CopyWithImpl$Input$CertStddevOrderBy<TRes>
+    implements CopyWith$Input$CertStddevOrderBy<TRes> {
+  _CopyWithImpl$Input$CertStddevOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertStddevOrderBy _instance;
+
+  final TRes Function(Input$CertStddevOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? createdOn = _undefined,
+    Object? expireOn = _undefined,
+  }) =>
+      _then(Input$CertStddevOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+        if (expireOn != _undefined) 'expireOn': (expireOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertStddevOrderBy<TRes>
+    implements CopyWith$Input$CertStddevOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertStddevOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      _res;
+}
+
+class Input$CertStddevPopOrderBy {
+  factory Input$CertStddevPopOrderBy({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      Input$CertStddevPopOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+        if (expireOn != null) r'expireOn': expireOn,
+      });
+
+  Input$CertStddevPopOrderBy._(this._$data);
+
+  factory Input$CertStddevPopOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    if (data.containsKey('expireOn')) {
+      final l$expireOn = data['expireOn'];
+      result$data['expireOn'] = l$expireOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$expireOn as String));
+    }
+    return Input$CertStddevPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get expireOn => (_$data['expireOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    if (_$data.containsKey('expireOn')) {
+      final l$expireOn = expireOn;
+      result$data['expireOn'] =
+          l$expireOn == null ? null : toJson$Enum$OrderBy(l$expireOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertStddevPopOrderBy<Input$CertStddevPopOrderBy>
+      get copyWith => CopyWith$Input$CertStddevPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertStddevPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$expireOn = expireOn;
+    final lOther$expireOn = other.expireOn;
+    if (_$data.containsKey('expireOn') !=
+        other._$data.containsKey('expireOn')) {
+      return false;
+    }
+    if (l$expireOn != lOther$expireOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    final l$expireOn = expireOn;
+    return Object.hashAll([
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('expireOn') ? l$expireOn : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertStddevPopOrderBy<TRes> {
+  factory CopyWith$Input$CertStddevPopOrderBy(
+    Input$CertStddevPopOrderBy instance,
+    TRes Function(Input$CertStddevPopOrderBy) then,
+  ) = _CopyWithImpl$Input$CertStddevPopOrderBy;
+
+  factory CopyWith$Input$CertStddevPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertStddevPopOrderBy;
+
+  TRes call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  });
+}
+
+class _CopyWithImpl$Input$CertStddevPopOrderBy<TRes>
+    implements CopyWith$Input$CertStddevPopOrderBy<TRes> {
+  _CopyWithImpl$Input$CertStddevPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertStddevPopOrderBy _instance;
+
+  final TRes Function(Input$CertStddevPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? createdOn = _undefined,
+    Object? expireOn = _undefined,
+  }) =>
+      _then(Input$CertStddevPopOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+        if (expireOn != _undefined) 'expireOn': (expireOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertStddevPopOrderBy<TRes>
+    implements CopyWith$Input$CertStddevPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertStddevPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      _res;
+}
+
+class Input$CertStddevSampOrderBy {
+  factory Input$CertStddevSampOrderBy({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      Input$CertStddevSampOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+        if (expireOn != null) r'expireOn': expireOn,
+      });
+
+  Input$CertStddevSampOrderBy._(this._$data);
+
+  factory Input$CertStddevSampOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    if (data.containsKey('expireOn')) {
+      final l$expireOn = data['expireOn'];
+      result$data['expireOn'] = l$expireOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$expireOn as String));
+    }
+    return Input$CertStddevSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get expireOn => (_$data['expireOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    if (_$data.containsKey('expireOn')) {
+      final l$expireOn = expireOn;
+      result$data['expireOn'] =
+          l$expireOn == null ? null : toJson$Enum$OrderBy(l$expireOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertStddevSampOrderBy<Input$CertStddevSampOrderBy>
+      get copyWith => CopyWith$Input$CertStddevSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertStddevSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$expireOn = expireOn;
+    final lOther$expireOn = other.expireOn;
+    if (_$data.containsKey('expireOn') !=
+        other._$data.containsKey('expireOn')) {
+      return false;
+    }
+    if (l$expireOn != lOther$expireOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    final l$expireOn = expireOn;
+    return Object.hashAll([
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('expireOn') ? l$expireOn : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertStddevSampOrderBy<TRes> {
+  factory CopyWith$Input$CertStddevSampOrderBy(
+    Input$CertStddevSampOrderBy instance,
+    TRes Function(Input$CertStddevSampOrderBy) then,
+  ) = _CopyWithImpl$Input$CertStddevSampOrderBy;
+
+  factory CopyWith$Input$CertStddevSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertStddevSampOrderBy;
+
+  TRes call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  });
+}
+
+class _CopyWithImpl$Input$CertStddevSampOrderBy<TRes>
+    implements CopyWith$Input$CertStddevSampOrderBy<TRes> {
+  _CopyWithImpl$Input$CertStddevSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertStddevSampOrderBy _instance;
+
+  final TRes Function(Input$CertStddevSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? createdOn = _undefined,
+    Object? expireOn = _undefined,
+  }) =>
+      _then(Input$CertStddevSampOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+        if (expireOn != _undefined) 'expireOn': (expireOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertStddevSampOrderBy<TRes>
+    implements CopyWith$Input$CertStddevSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertStddevSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      _res;
+}
+
+class Input$CertSumOrderBy {
+  factory Input$CertSumOrderBy({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      Input$CertSumOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+        if (expireOn != null) r'expireOn': expireOn,
+      });
+
+  Input$CertSumOrderBy._(this._$data);
+
+  factory Input$CertSumOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    if (data.containsKey('expireOn')) {
+      final l$expireOn = data['expireOn'];
+      result$data['expireOn'] = l$expireOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$expireOn as String));
+    }
+    return Input$CertSumOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get expireOn => (_$data['expireOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    if (_$data.containsKey('expireOn')) {
+      final l$expireOn = expireOn;
+      result$data['expireOn'] =
+          l$expireOn == null ? null : toJson$Enum$OrderBy(l$expireOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertSumOrderBy<Input$CertSumOrderBy> get copyWith =>
+      CopyWith$Input$CertSumOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertSumOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$expireOn = expireOn;
+    final lOther$expireOn = other.expireOn;
+    if (_$data.containsKey('expireOn') !=
+        other._$data.containsKey('expireOn')) {
+      return false;
+    }
+    if (l$expireOn != lOther$expireOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    final l$expireOn = expireOn;
+    return Object.hashAll([
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('expireOn') ? l$expireOn : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertSumOrderBy<TRes> {
+  factory CopyWith$Input$CertSumOrderBy(
+    Input$CertSumOrderBy instance,
+    TRes Function(Input$CertSumOrderBy) then,
+  ) = _CopyWithImpl$Input$CertSumOrderBy;
+
+  factory CopyWith$Input$CertSumOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertSumOrderBy;
+
+  TRes call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  });
+}
+
+class _CopyWithImpl$Input$CertSumOrderBy<TRes>
+    implements CopyWith$Input$CertSumOrderBy<TRes> {
+  _CopyWithImpl$Input$CertSumOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertSumOrderBy _instance;
+
+  final TRes Function(Input$CertSumOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? createdOn = _undefined,
+    Object? expireOn = _undefined,
+  }) =>
+      _then(Input$CertSumOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+        if (expireOn != _undefined) 'expireOn': (expireOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertSumOrderBy<TRes>
+    implements CopyWith$Input$CertSumOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertSumOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      _res;
+}
+
+class Input$CertVarianceOrderBy {
+  factory Input$CertVarianceOrderBy({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      Input$CertVarianceOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+        if (expireOn != null) r'expireOn': expireOn,
+      });
+
+  Input$CertVarianceOrderBy._(this._$data);
+
+  factory Input$CertVarianceOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    if (data.containsKey('expireOn')) {
+      final l$expireOn = data['expireOn'];
+      result$data['expireOn'] = l$expireOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$expireOn as String));
+    }
+    return Input$CertVarianceOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get expireOn => (_$data['expireOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    if (_$data.containsKey('expireOn')) {
+      final l$expireOn = expireOn;
+      result$data['expireOn'] =
+          l$expireOn == null ? null : toJson$Enum$OrderBy(l$expireOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertVarianceOrderBy<Input$CertVarianceOrderBy> get copyWith =>
+      CopyWith$Input$CertVarianceOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertVarianceOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$expireOn = expireOn;
+    final lOther$expireOn = other.expireOn;
+    if (_$data.containsKey('expireOn') !=
+        other._$data.containsKey('expireOn')) {
+      return false;
+    }
+    if (l$expireOn != lOther$expireOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    final l$expireOn = expireOn;
+    return Object.hashAll([
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('expireOn') ? l$expireOn : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertVarianceOrderBy<TRes> {
+  factory CopyWith$Input$CertVarianceOrderBy(
+    Input$CertVarianceOrderBy instance,
+    TRes Function(Input$CertVarianceOrderBy) then,
+  ) = _CopyWithImpl$Input$CertVarianceOrderBy;
+
+  factory CopyWith$Input$CertVarianceOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertVarianceOrderBy;
+
+  TRes call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  });
+}
+
+class _CopyWithImpl$Input$CertVarianceOrderBy<TRes>
+    implements CopyWith$Input$CertVarianceOrderBy<TRes> {
+  _CopyWithImpl$Input$CertVarianceOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertVarianceOrderBy _instance;
+
+  final TRes Function(Input$CertVarianceOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? createdOn = _undefined,
+    Object? expireOn = _undefined,
+  }) =>
+      _then(Input$CertVarianceOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+        if (expireOn != _undefined) 'expireOn': (expireOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertVarianceOrderBy<TRes>
+    implements CopyWith$Input$CertVarianceOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertVarianceOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      _res;
+}
+
+class Input$CertVarPopOrderBy {
+  factory Input$CertVarPopOrderBy({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      Input$CertVarPopOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+        if (expireOn != null) r'expireOn': expireOn,
+      });
+
+  Input$CertVarPopOrderBy._(this._$data);
+
+  factory Input$CertVarPopOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    if (data.containsKey('expireOn')) {
+      final l$expireOn = data['expireOn'];
+      result$data['expireOn'] = l$expireOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$expireOn as String));
+    }
+    return Input$CertVarPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get expireOn => (_$data['expireOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    if (_$data.containsKey('expireOn')) {
+      final l$expireOn = expireOn;
+      result$data['expireOn'] =
+          l$expireOn == null ? null : toJson$Enum$OrderBy(l$expireOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertVarPopOrderBy<Input$CertVarPopOrderBy> get copyWith =>
+      CopyWith$Input$CertVarPopOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertVarPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$expireOn = expireOn;
+    final lOther$expireOn = other.expireOn;
+    if (_$data.containsKey('expireOn') !=
+        other._$data.containsKey('expireOn')) {
+      return false;
+    }
+    if (l$expireOn != lOther$expireOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    final l$expireOn = expireOn;
+    return Object.hashAll([
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('expireOn') ? l$expireOn : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertVarPopOrderBy<TRes> {
+  factory CopyWith$Input$CertVarPopOrderBy(
+    Input$CertVarPopOrderBy instance,
+    TRes Function(Input$CertVarPopOrderBy) then,
+  ) = _CopyWithImpl$Input$CertVarPopOrderBy;
+
+  factory CopyWith$Input$CertVarPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertVarPopOrderBy;
+
+  TRes call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  });
+}
+
+class _CopyWithImpl$Input$CertVarPopOrderBy<TRes>
+    implements CopyWith$Input$CertVarPopOrderBy<TRes> {
+  _CopyWithImpl$Input$CertVarPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertVarPopOrderBy _instance;
+
+  final TRes Function(Input$CertVarPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? createdOn = _undefined,
+    Object? expireOn = _undefined,
+  }) =>
+      _then(Input$CertVarPopOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+        if (expireOn != _undefined) 'expireOn': (expireOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertVarPopOrderBy<TRes>
+    implements CopyWith$Input$CertVarPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertVarPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      _res;
+}
+
+class Input$CertVarSampOrderBy {
+  factory Input$CertVarSampOrderBy({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      Input$CertVarSampOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+        if (expireOn != null) r'expireOn': expireOn,
+      });
+
+  Input$CertVarSampOrderBy._(this._$data);
+
+  factory Input$CertVarSampOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    if (data.containsKey('expireOn')) {
+      final l$expireOn = data['expireOn'];
+      result$data['expireOn'] = l$expireOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$expireOn as String));
+    }
+    return Input$CertVarSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get expireOn => (_$data['expireOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    if (_$data.containsKey('expireOn')) {
+      final l$expireOn = expireOn;
+      result$data['expireOn'] =
+          l$expireOn == null ? null : toJson$Enum$OrderBy(l$expireOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CertVarSampOrderBy<Input$CertVarSampOrderBy> get copyWith =>
+      CopyWith$Input$CertVarSampOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CertVarSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$expireOn = expireOn;
+    final lOther$expireOn = other.expireOn;
+    if (_$data.containsKey('expireOn') !=
+        other._$data.containsKey('expireOn')) {
+      return false;
+    }
+    if (l$expireOn != lOther$expireOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    final l$expireOn = expireOn;
+    return Object.hashAll([
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('expireOn') ? l$expireOn : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CertVarSampOrderBy<TRes> {
+  factory CopyWith$Input$CertVarSampOrderBy(
+    Input$CertVarSampOrderBy instance,
+    TRes Function(Input$CertVarSampOrderBy) then,
+  ) = _CopyWithImpl$Input$CertVarSampOrderBy;
+
+  factory CopyWith$Input$CertVarSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$CertVarSampOrderBy;
+
+  TRes call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  });
+}
+
+class _CopyWithImpl$Input$CertVarSampOrderBy<TRes>
+    implements CopyWith$Input$CertVarSampOrderBy<TRes> {
+  _CopyWithImpl$Input$CertVarSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CertVarSampOrderBy _instance;
+
+  final TRes Function(Input$CertVarSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? createdOn = _undefined,
+    Object? expireOn = _undefined,
+  }) =>
+      _then(Input$CertVarSampOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+        if (expireOn != _undefined) 'expireOn': (expireOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CertVarSampOrderBy<TRes>
+    implements CopyWith$Input$CertVarSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$CertVarSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+  }) =>
+      _res;
+}
+
+class Input$ChangeOwnerKeyAggregateBoolExp {
+  factory Input$ChangeOwnerKeyAggregateBoolExp(
+          {Input$changeOwnerKeyAggregateBoolExpCount? count}) =>
+      Input$ChangeOwnerKeyAggregateBoolExp._({
+        if (count != null) r'count': count,
+      });
+
+  Input$ChangeOwnerKeyAggregateBoolExp._(this._$data);
+
+  factory Input$ChangeOwnerKeyAggregateBoolExp.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] = l$count == null
+          ? null
+          : Input$changeOwnerKeyAggregateBoolExpCount.fromJson(
+              (l$count as Map<String, dynamic>));
+    }
+    return Input$ChangeOwnerKeyAggregateBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$changeOwnerKeyAggregateBoolExpCount? get count =>
+      (_$data['count'] as Input$changeOwnerKeyAggregateBoolExpCount?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] = l$count?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ChangeOwnerKeyAggregateBoolExp<
+          Input$ChangeOwnerKeyAggregateBoolExp>
+      get copyWith => CopyWith$Input$ChangeOwnerKeyAggregateBoolExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ChangeOwnerKeyAggregateBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$count = count;
+    return Object.hashAll([_$data.containsKey('count') ? l$count : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$ChangeOwnerKeyAggregateBoolExp<TRes> {
+  factory CopyWith$Input$ChangeOwnerKeyAggregateBoolExp(
+    Input$ChangeOwnerKeyAggregateBoolExp instance,
+    TRes Function(Input$ChangeOwnerKeyAggregateBoolExp) then,
+  ) = _CopyWithImpl$Input$ChangeOwnerKeyAggregateBoolExp;
+
+  factory CopyWith$Input$ChangeOwnerKeyAggregateBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$ChangeOwnerKeyAggregateBoolExp;
+
+  TRes call({Input$changeOwnerKeyAggregateBoolExpCount? count});
+  CopyWith$Input$changeOwnerKeyAggregateBoolExpCount<TRes> get count;
+}
+
+class _CopyWithImpl$Input$ChangeOwnerKeyAggregateBoolExp<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyAggregateBoolExp<TRes> {
+  _CopyWithImpl$Input$ChangeOwnerKeyAggregateBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ChangeOwnerKeyAggregateBoolExp _instance;
+
+  final TRes Function(Input$ChangeOwnerKeyAggregateBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? count = _undefined}) =>
+      _then(Input$ChangeOwnerKeyAggregateBoolExp._({
+        ..._instance._$data,
+        if (count != _undefined)
+          'count': (count as Input$changeOwnerKeyAggregateBoolExpCount?),
+      }));
+
+  CopyWith$Input$changeOwnerKeyAggregateBoolExpCount<TRes> get count {
+    final local$count = _instance.count;
+    return local$count == null
+        ? CopyWith$Input$changeOwnerKeyAggregateBoolExpCount.stub(
+            _then(_instance))
+        : CopyWith$Input$changeOwnerKeyAggregateBoolExpCount(
+            local$count, (e) => call(count: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$ChangeOwnerKeyAggregateBoolExp<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyAggregateBoolExp<TRes> {
+  _CopyWithStubImpl$Input$ChangeOwnerKeyAggregateBoolExp(this._res);
+
+  TRes _res;
+
+  call({Input$changeOwnerKeyAggregateBoolExpCount? count}) => _res;
+
+  CopyWith$Input$changeOwnerKeyAggregateBoolExpCount<TRes> get count =>
+      CopyWith$Input$changeOwnerKeyAggregateBoolExpCount.stub(_res);
+}
+
+class Input$changeOwnerKeyAggregateBoolExpCount {
+  factory Input$changeOwnerKeyAggregateBoolExpCount({
+    List<Enum$ChangeOwnerKeySelectColumn>? arguments,
+    bool? distinct,
+    Input$ChangeOwnerKeyBoolExp? filter,
+    required Input$IntComparisonExp predicate,
+  }) =>
+      Input$changeOwnerKeyAggregateBoolExpCount._({
+        if (arguments != null) r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$changeOwnerKeyAggregateBoolExpCount._(this._$data);
+
+  factory Input$changeOwnerKeyAggregateBoolExpCount.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('arguments')) {
+      final l$arguments = data['arguments'];
+      result$data['arguments'] = (l$arguments as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$ChangeOwnerKeySelectColumn((e as String)))
+          .toList();
+    }
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$ChangeOwnerKeyBoolExp.fromJson(
+              (l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] =
+        Input$IntComparisonExp.fromJson((l$predicate as Map<String, dynamic>));
+    return Input$changeOwnerKeyAggregateBoolExpCount._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Enum$ChangeOwnerKeySelectColumn>? get arguments =>
+      (_$data['arguments'] as List<Enum$ChangeOwnerKeySelectColumn>?);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$ChangeOwnerKeyBoolExp? get filter =>
+      (_$data['filter'] as Input$ChangeOwnerKeyBoolExp?);
+
+  Input$IntComparisonExp get predicate =>
+      (_$data['predicate'] as Input$IntComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('arguments')) {
+      final l$arguments = arguments;
+      result$data['arguments'] = l$arguments
+          ?.map((e) => toJson$Enum$ChangeOwnerKeySelectColumn(e))
+          .toList();
+    }
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$changeOwnerKeyAggregateBoolExpCount<
+          Input$changeOwnerKeyAggregateBoolExpCount>
+      get copyWith => CopyWith$Input$changeOwnerKeyAggregateBoolExpCount(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$changeOwnerKeyAggregateBoolExpCount) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (_$data.containsKey('arguments') !=
+        other._$data.containsKey('arguments')) {
+      return false;
+    }
+    if (l$arguments != null && lOther$arguments != null) {
+      if (l$arguments.length != lOther$arguments.length) {
+        return false;
+      }
+      for (int i = 0; i < l$arguments.length; i++) {
+        final l$arguments$entry = l$arguments[i];
+        final lOther$arguments$entry = lOther$arguments[i];
+        if (l$arguments$entry != lOther$arguments$entry) {
+          return false;
+        }
+      }
+    } else if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      _$data.containsKey('arguments')
+          ? l$arguments == null
+              ? null
+              : Object.hashAll(l$arguments.map((v) => v))
+          : const {},
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$changeOwnerKeyAggregateBoolExpCount<TRes> {
+  factory CopyWith$Input$changeOwnerKeyAggregateBoolExpCount(
+    Input$changeOwnerKeyAggregateBoolExpCount instance,
+    TRes Function(Input$changeOwnerKeyAggregateBoolExpCount) then,
+  ) = _CopyWithImpl$Input$changeOwnerKeyAggregateBoolExpCount;
+
+  factory CopyWith$Input$changeOwnerKeyAggregateBoolExpCount.stub(TRes res) =
+      _CopyWithStubImpl$Input$changeOwnerKeyAggregateBoolExpCount;
+
+  TRes call({
+    List<Enum$ChangeOwnerKeySelectColumn>? arguments,
+    bool? distinct,
+    Input$ChangeOwnerKeyBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  });
+  CopyWith$Input$ChangeOwnerKeyBoolExp<TRes> get filter;
+  CopyWith$Input$IntComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$changeOwnerKeyAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$changeOwnerKeyAggregateBoolExpCount<TRes> {
+  _CopyWithImpl$Input$changeOwnerKeyAggregateBoolExpCount(
+    this._instance,
+    this._then,
+  );
+
+  final Input$changeOwnerKeyAggregateBoolExpCount _instance;
+
+  final TRes Function(Input$changeOwnerKeyAggregateBoolExpCount) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$changeOwnerKeyAggregateBoolExpCount._({
+        ..._instance._$data,
+        if (arguments != _undefined)
+          'arguments': (arguments as List<Enum$ChangeOwnerKeySelectColumn>?),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined)
+          'filter': (filter as Input$ChangeOwnerKeyBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$IntComparisonExp),
+      }));
+
+  CopyWith$Input$ChangeOwnerKeyBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$ChangeOwnerKeyBoolExp.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyBoolExp(
+            local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$IntComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$changeOwnerKeyAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$changeOwnerKeyAggregateBoolExpCount<TRes> {
+  _CopyWithStubImpl$Input$changeOwnerKeyAggregateBoolExpCount(this._res);
+
+  TRes _res;
+
+  call({
+    List<Enum$ChangeOwnerKeySelectColumn>? arguments,
+    bool? distinct,
+    Input$ChangeOwnerKeyBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$ChangeOwnerKeyBoolExp<TRes> get filter =>
+      CopyWith$Input$ChangeOwnerKeyBoolExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+}
+
+class Input$ChangeOwnerKeyAggregateOrderBy {
+  factory Input$ChangeOwnerKeyAggregateOrderBy({
+    Input$ChangeOwnerKeyAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$ChangeOwnerKeyMaxOrderBy? max,
+    Input$ChangeOwnerKeyMinOrderBy? min,
+    Input$ChangeOwnerKeyStddevOrderBy? stddev,
+    Input$ChangeOwnerKeyStddevPopOrderBy? stddevPop,
+    Input$ChangeOwnerKeyStddevSampOrderBy? stddevSamp,
+    Input$ChangeOwnerKeySumOrderBy? sum,
+    Input$ChangeOwnerKeyVarPopOrderBy? varPop,
+    Input$ChangeOwnerKeyVarSampOrderBy? varSamp,
+    Input$ChangeOwnerKeyVarianceOrderBy? variance,
+  }) =>
+      Input$ChangeOwnerKeyAggregateOrderBy._({
+        if (avg != null) r'avg': avg,
+        if (count != null) r'count': count,
+        if (max != null) r'max': max,
+        if (min != null) r'min': min,
+        if (stddev != null) r'stddev': stddev,
+        if (stddevPop != null) r'stddevPop': stddevPop,
+        if (stddevSamp != null) r'stddevSamp': stddevSamp,
+        if (sum != null) r'sum': sum,
+        if (varPop != null) r'varPop': varPop,
+        if (varSamp != null) r'varSamp': varSamp,
+        if (variance != null) r'variance': variance,
+      });
+
+  Input$ChangeOwnerKeyAggregateOrderBy._(this._$data);
+
+  factory Input$ChangeOwnerKeyAggregateOrderBy.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('avg')) {
+      final l$avg = data['avg'];
+      result$data['avg'] = l$avg == null
+          ? null
+          : Input$ChangeOwnerKeyAvgOrderBy.fromJson(
+              (l$avg as Map<String, dynamic>));
+    }
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] =
+          l$count == null ? null : fromJson$Enum$OrderBy((l$count as String));
+    }
+    if (data.containsKey('max')) {
+      final l$max = data['max'];
+      result$data['max'] = l$max == null
+          ? null
+          : Input$ChangeOwnerKeyMaxOrderBy.fromJson(
+              (l$max as Map<String, dynamic>));
+    }
+    if (data.containsKey('min')) {
+      final l$min = data['min'];
+      result$data['min'] = l$min == null
+          ? null
+          : Input$ChangeOwnerKeyMinOrderBy.fromJson(
+              (l$min as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddev')) {
+      final l$stddev = data['stddev'];
+      result$data['stddev'] = l$stddev == null
+          ? null
+          : Input$ChangeOwnerKeyStddevOrderBy.fromJson(
+              (l$stddev as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevPop')) {
+      final l$stddevPop = data['stddevPop'];
+      result$data['stddevPop'] = l$stddevPop == null
+          ? null
+          : Input$ChangeOwnerKeyStddevPopOrderBy.fromJson(
+              (l$stddevPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevSamp')) {
+      final l$stddevSamp = data['stddevSamp'];
+      result$data['stddevSamp'] = l$stddevSamp == null
+          ? null
+          : Input$ChangeOwnerKeyStddevSampOrderBy.fromJson(
+              (l$stddevSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('sum')) {
+      final l$sum = data['sum'];
+      result$data['sum'] = l$sum == null
+          ? null
+          : Input$ChangeOwnerKeySumOrderBy.fromJson(
+              (l$sum as Map<String, dynamic>));
+    }
+    if (data.containsKey('varPop')) {
+      final l$varPop = data['varPop'];
+      result$data['varPop'] = l$varPop == null
+          ? null
+          : Input$ChangeOwnerKeyVarPopOrderBy.fromJson(
+              (l$varPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('varSamp')) {
+      final l$varSamp = data['varSamp'];
+      result$data['varSamp'] = l$varSamp == null
+          ? null
+          : Input$ChangeOwnerKeyVarSampOrderBy.fromJson(
+              (l$varSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('variance')) {
+      final l$variance = data['variance'];
+      result$data['variance'] = l$variance == null
+          ? null
+          : Input$ChangeOwnerKeyVarianceOrderBy.fromJson(
+              (l$variance as Map<String, dynamic>));
+    }
+    return Input$ChangeOwnerKeyAggregateOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$ChangeOwnerKeyAvgOrderBy? get avg =>
+      (_$data['avg'] as Input$ChangeOwnerKeyAvgOrderBy?);
+
+  Enum$OrderBy? get count => (_$data['count'] as Enum$OrderBy?);
+
+  Input$ChangeOwnerKeyMaxOrderBy? get max =>
+      (_$data['max'] as Input$ChangeOwnerKeyMaxOrderBy?);
+
+  Input$ChangeOwnerKeyMinOrderBy? get min =>
+      (_$data['min'] as Input$ChangeOwnerKeyMinOrderBy?);
+
+  Input$ChangeOwnerKeyStddevOrderBy? get stddev =>
+      (_$data['stddev'] as Input$ChangeOwnerKeyStddevOrderBy?);
+
+  Input$ChangeOwnerKeyStddevPopOrderBy? get stddevPop =>
+      (_$data['stddevPop'] as Input$ChangeOwnerKeyStddevPopOrderBy?);
+
+  Input$ChangeOwnerKeyStddevSampOrderBy? get stddevSamp =>
+      (_$data['stddevSamp'] as Input$ChangeOwnerKeyStddevSampOrderBy?);
+
+  Input$ChangeOwnerKeySumOrderBy? get sum =>
+      (_$data['sum'] as Input$ChangeOwnerKeySumOrderBy?);
+
+  Input$ChangeOwnerKeyVarPopOrderBy? get varPop =>
+      (_$data['varPop'] as Input$ChangeOwnerKeyVarPopOrderBy?);
+
+  Input$ChangeOwnerKeyVarSampOrderBy? get varSamp =>
+      (_$data['varSamp'] as Input$ChangeOwnerKeyVarSampOrderBy?);
+
+  Input$ChangeOwnerKeyVarianceOrderBy? get variance =>
+      (_$data['variance'] as Input$ChangeOwnerKeyVarianceOrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('avg')) {
+      final l$avg = avg;
+      result$data['avg'] = l$avg?.toJson();
+    }
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] =
+          l$count == null ? null : toJson$Enum$OrderBy(l$count);
+    }
+    if (_$data.containsKey('max')) {
+      final l$max = max;
+      result$data['max'] = l$max?.toJson();
+    }
+    if (_$data.containsKey('min')) {
+      final l$min = min;
+      result$data['min'] = l$min?.toJson();
+    }
+    if (_$data.containsKey('stddev')) {
+      final l$stddev = stddev;
+      result$data['stddev'] = l$stddev?.toJson();
+    }
+    if (_$data.containsKey('stddevPop')) {
+      final l$stddevPop = stddevPop;
+      result$data['stddevPop'] = l$stddevPop?.toJson();
+    }
+    if (_$data.containsKey('stddevSamp')) {
+      final l$stddevSamp = stddevSamp;
+      result$data['stddevSamp'] = l$stddevSamp?.toJson();
+    }
+    if (_$data.containsKey('sum')) {
+      final l$sum = sum;
+      result$data['sum'] = l$sum?.toJson();
+    }
+    if (_$data.containsKey('varPop')) {
+      final l$varPop = varPop;
+      result$data['varPop'] = l$varPop?.toJson();
+    }
+    if (_$data.containsKey('varSamp')) {
+      final l$varSamp = varSamp;
+      result$data['varSamp'] = l$varSamp?.toJson();
+    }
+    if (_$data.containsKey('variance')) {
+      final l$variance = variance;
+      result$data['variance'] = l$variance?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ChangeOwnerKeyAggregateOrderBy<
+          Input$ChangeOwnerKeyAggregateOrderBy>
+      get copyWith => CopyWith$Input$ChangeOwnerKeyAggregateOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ChangeOwnerKeyAggregateOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$avg = avg;
+    final lOther$avg = other.avg;
+    if (_$data.containsKey('avg') != other._$data.containsKey('avg')) {
+      return false;
+    }
+    if (l$avg != lOther$avg) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    final l$max = max;
+    final lOther$max = other.max;
+    if (_$data.containsKey('max') != other._$data.containsKey('max')) {
+      return false;
+    }
+    if (l$max != lOther$max) {
+      return false;
+    }
+    final l$min = min;
+    final lOther$min = other.min;
+    if (_$data.containsKey('min') != other._$data.containsKey('min')) {
+      return false;
+    }
+    if (l$min != lOther$min) {
+      return false;
+    }
+    final l$stddev = stddev;
+    final lOther$stddev = other.stddev;
+    if (_$data.containsKey('stddev') != other._$data.containsKey('stddev')) {
+      return false;
+    }
+    if (l$stddev != lOther$stddev) {
+      return false;
+    }
+    final l$stddevPop = stddevPop;
+    final lOther$stddevPop = other.stddevPop;
+    if (_$data.containsKey('stddevPop') !=
+        other._$data.containsKey('stddevPop')) {
+      return false;
+    }
+    if (l$stddevPop != lOther$stddevPop) {
+      return false;
+    }
+    final l$stddevSamp = stddevSamp;
+    final lOther$stddevSamp = other.stddevSamp;
+    if (_$data.containsKey('stddevSamp') !=
+        other._$data.containsKey('stddevSamp')) {
+      return false;
+    }
+    if (l$stddevSamp != lOther$stddevSamp) {
+      return false;
+    }
+    final l$sum = sum;
+    final lOther$sum = other.sum;
+    if (_$data.containsKey('sum') != other._$data.containsKey('sum')) {
+      return false;
+    }
+    if (l$sum != lOther$sum) {
+      return false;
+    }
+    final l$varPop = varPop;
+    final lOther$varPop = other.varPop;
+    if (_$data.containsKey('varPop') != other._$data.containsKey('varPop')) {
+      return false;
+    }
+    if (l$varPop != lOther$varPop) {
+      return false;
+    }
+    final l$varSamp = varSamp;
+    final lOther$varSamp = other.varSamp;
+    if (_$data.containsKey('varSamp') != other._$data.containsKey('varSamp')) {
+      return false;
+    }
+    if (l$varSamp != lOther$varSamp) {
+      return false;
+    }
+    final l$variance = variance;
+    final lOther$variance = other.variance;
+    if (_$data.containsKey('variance') !=
+        other._$data.containsKey('variance')) {
+      return false;
+    }
+    if (l$variance != lOther$variance) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$avg = avg;
+    final l$count = count;
+    final l$max = max;
+    final l$min = min;
+    final l$stddev = stddev;
+    final l$stddevPop = stddevPop;
+    final l$stddevSamp = stddevSamp;
+    final l$sum = sum;
+    final l$varPop = varPop;
+    final l$varSamp = varSamp;
+    final l$variance = variance;
+    return Object.hashAll([
+      _$data.containsKey('avg') ? l$avg : const {},
+      _$data.containsKey('count') ? l$count : const {},
+      _$data.containsKey('max') ? l$max : const {},
+      _$data.containsKey('min') ? l$min : const {},
+      _$data.containsKey('stddev') ? l$stddev : const {},
+      _$data.containsKey('stddevPop') ? l$stddevPop : const {},
+      _$data.containsKey('stddevSamp') ? l$stddevSamp : const {},
+      _$data.containsKey('sum') ? l$sum : const {},
+      _$data.containsKey('varPop') ? l$varPop : const {},
+      _$data.containsKey('varSamp') ? l$varSamp : const {},
+      _$data.containsKey('variance') ? l$variance : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ChangeOwnerKeyAggregateOrderBy<TRes> {
+  factory CopyWith$Input$ChangeOwnerKeyAggregateOrderBy(
+    Input$ChangeOwnerKeyAggregateOrderBy instance,
+    TRes Function(Input$ChangeOwnerKeyAggregateOrderBy) then,
+  ) = _CopyWithImpl$Input$ChangeOwnerKeyAggregateOrderBy;
+
+  factory CopyWith$Input$ChangeOwnerKeyAggregateOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ChangeOwnerKeyAggregateOrderBy;
+
+  TRes call({
+    Input$ChangeOwnerKeyAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$ChangeOwnerKeyMaxOrderBy? max,
+    Input$ChangeOwnerKeyMinOrderBy? min,
+    Input$ChangeOwnerKeyStddevOrderBy? stddev,
+    Input$ChangeOwnerKeyStddevPopOrderBy? stddevPop,
+    Input$ChangeOwnerKeyStddevSampOrderBy? stddevSamp,
+    Input$ChangeOwnerKeySumOrderBy? sum,
+    Input$ChangeOwnerKeyVarPopOrderBy? varPop,
+    Input$ChangeOwnerKeyVarSampOrderBy? varSamp,
+    Input$ChangeOwnerKeyVarianceOrderBy? variance,
+  });
+  CopyWith$Input$ChangeOwnerKeyAvgOrderBy<TRes> get avg;
+  CopyWith$Input$ChangeOwnerKeyMaxOrderBy<TRes> get max;
+  CopyWith$Input$ChangeOwnerKeyMinOrderBy<TRes> get min;
+  CopyWith$Input$ChangeOwnerKeyStddevOrderBy<TRes> get stddev;
+  CopyWith$Input$ChangeOwnerKeyStddevPopOrderBy<TRes> get stddevPop;
+  CopyWith$Input$ChangeOwnerKeyStddevSampOrderBy<TRes> get stddevSamp;
+  CopyWith$Input$ChangeOwnerKeySumOrderBy<TRes> get sum;
+  CopyWith$Input$ChangeOwnerKeyVarPopOrderBy<TRes> get varPop;
+  CopyWith$Input$ChangeOwnerKeyVarSampOrderBy<TRes> get varSamp;
+  CopyWith$Input$ChangeOwnerKeyVarianceOrderBy<TRes> get variance;
+}
+
+class _CopyWithImpl$Input$ChangeOwnerKeyAggregateOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyAggregateOrderBy<TRes> {
+  _CopyWithImpl$Input$ChangeOwnerKeyAggregateOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ChangeOwnerKeyAggregateOrderBy _instance;
+
+  final TRes Function(Input$ChangeOwnerKeyAggregateOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? avg = _undefined,
+    Object? count = _undefined,
+    Object? max = _undefined,
+    Object? min = _undefined,
+    Object? stddev = _undefined,
+    Object? stddevPop = _undefined,
+    Object? stddevSamp = _undefined,
+    Object? sum = _undefined,
+    Object? varPop = _undefined,
+    Object? varSamp = _undefined,
+    Object? variance = _undefined,
+  }) =>
+      _then(Input$ChangeOwnerKeyAggregateOrderBy._({
+        ..._instance._$data,
+        if (avg != _undefined) 'avg': (avg as Input$ChangeOwnerKeyAvgOrderBy?),
+        if (count != _undefined) 'count': (count as Enum$OrderBy?),
+        if (max != _undefined) 'max': (max as Input$ChangeOwnerKeyMaxOrderBy?),
+        if (min != _undefined) 'min': (min as Input$ChangeOwnerKeyMinOrderBy?),
+        if (stddev != _undefined)
+          'stddev': (stddev as Input$ChangeOwnerKeyStddevOrderBy?),
+        if (stddevPop != _undefined)
+          'stddevPop': (stddevPop as Input$ChangeOwnerKeyStddevPopOrderBy?),
+        if (stddevSamp != _undefined)
+          'stddevSamp': (stddevSamp as Input$ChangeOwnerKeyStddevSampOrderBy?),
+        if (sum != _undefined) 'sum': (sum as Input$ChangeOwnerKeySumOrderBy?),
+        if (varPop != _undefined)
+          'varPop': (varPop as Input$ChangeOwnerKeyVarPopOrderBy?),
+        if (varSamp != _undefined)
+          'varSamp': (varSamp as Input$ChangeOwnerKeyVarSampOrderBy?),
+        if (variance != _undefined)
+          'variance': (variance as Input$ChangeOwnerKeyVarianceOrderBy?),
+      }));
+
+  CopyWith$Input$ChangeOwnerKeyAvgOrderBy<TRes> get avg {
+    final local$avg = _instance.avg;
+    return local$avg == null
+        ? CopyWith$Input$ChangeOwnerKeyAvgOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyAvgOrderBy(
+            local$avg, (e) => call(avg: e));
+  }
+
+  CopyWith$Input$ChangeOwnerKeyMaxOrderBy<TRes> get max {
+    final local$max = _instance.max;
+    return local$max == null
+        ? CopyWith$Input$ChangeOwnerKeyMaxOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyMaxOrderBy(
+            local$max, (e) => call(max: e));
+  }
+
+  CopyWith$Input$ChangeOwnerKeyMinOrderBy<TRes> get min {
+    final local$min = _instance.min;
+    return local$min == null
+        ? CopyWith$Input$ChangeOwnerKeyMinOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyMinOrderBy(
+            local$min, (e) => call(min: e));
+  }
+
+  CopyWith$Input$ChangeOwnerKeyStddevOrderBy<TRes> get stddev {
+    final local$stddev = _instance.stddev;
+    return local$stddev == null
+        ? CopyWith$Input$ChangeOwnerKeyStddevOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyStddevOrderBy(
+            local$stddev, (e) => call(stddev: e));
+  }
+
+  CopyWith$Input$ChangeOwnerKeyStddevPopOrderBy<TRes> get stddevPop {
+    final local$stddevPop = _instance.stddevPop;
+    return local$stddevPop == null
+        ? CopyWith$Input$ChangeOwnerKeyStddevPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyStddevPopOrderBy(
+            local$stddevPop, (e) => call(stddevPop: e));
+  }
+
+  CopyWith$Input$ChangeOwnerKeyStddevSampOrderBy<TRes> get stddevSamp {
+    final local$stddevSamp = _instance.stddevSamp;
+    return local$stddevSamp == null
+        ? CopyWith$Input$ChangeOwnerKeyStddevSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyStddevSampOrderBy(
+            local$stddevSamp, (e) => call(stddevSamp: e));
+  }
+
+  CopyWith$Input$ChangeOwnerKeySumOrderBy<TRes> get sum {
+    final local$sum = _instance.sum;
+    return local$sum == null
+        ? CopyWith$Input$ChangeOwnerKeySumOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeySumOrderBy(
+            local$sum, (e) => call(sum: e));
+  }
+
+  CopyWith$Input$ChangeOwnerKeyVarPopOrderBy<TRes> get varPop {
+    final local$varPop = _instance.varPop;
+    return local$varPop == null
+        ? CopyWith$Input$ChangeOwnerKeyVarPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyVarPopOrderBy(
+            local$varPop, (e) => call(varPop: e));
+  }
+
+  CopyWith$Input$ChangeOwnerKeyVarSampOrderBy<TRes> get varSamp {
+    final local$varSamp = _instance.varSamp;
+    return local$varSamp == null
+        ? CopyWith$Input$ChangeOwnerKeyVarSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyVarSampOrderBy(
+            local$varSamp, (e) => call(varSamp: e));
+  }
+
+  CopyWith$Input$ChangeOwnerKeyVarianceOrderBy<TRes> get variance {
+    final local$variance = _instance.variance;
+    return local$variance == null
+        ? CopyWith$Input$ChangeOwnerKeyVarianceOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyVarianceOrderBy(
+            local$variance, (e) => call(variance: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$ChangeOwnerKeyAggregateOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyAggregateOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ChangeOwnerKeyAggregateOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Input$ChangeOwnerKeyAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$ChangeOwnerKeyMaxOrderBy? max,
+    Input$ChangeOwnerKeyMinOrderBy? min,
+    Input$ChangeOwnerKeyStddevOrderBy? stddev,
+    Input$ChangeOwnerKeyStddevPopOrderBy? stddevPop,
+    Input$ChangeOwnerKeyStddevSampOrderBy? stddevSamp,
+    Input$ChangeOwnerKeySumOrderBy? sum,
+    Input$ChangeOwnerKeyVarPopOrderBy? varPop,
+    Input$ChangeOwnerKeyVarSampOrderBy? varSamp,
+    Input$ChangeOwnerKeyVarianceOrderBy? variance,
+  }) =>
+      _res;
+
+  CopyWith$Input$ChangeOwnerKeyAvgOrderBy<TRes> get avg =>
+      CopyWith$Input$ChangeOwnerKeyAvgOrderBy.stub(_res);
+
+  CopyWith$Input$ChangeOwnerKeyMaxOrderBy<TRes> get max =>
+      CopyWith$Input$ChangeOwnerKeyMaxOrderBy.stub(_res);
+
+  CopyWith$Input$ChangeOwnerKeyMinOrderBy<TRes> get min =>
+      CopyWith$Input$ChangeOwnerKeyMinOrderBy.stub(_res);
+
+  CopyWith$Input$ChangeOwnerKeyStddevOrderBy<TRes> get stddev =>
+      CopyWith$Input$ChangeOwnerKeyStddevOrderBy.stub(_res);
+
+  CopyWith$Input$ChangeOwnerKeyStddevPopOrderBy<TRes> get stddevPop =>
+      CopyWith$Input$ChangeOwnerKeyStddevPopOrderBy.stub(_res);
+
+  CopyWith$Input$ChangeOwnerKeyStddevSampOrderBy<TRes> get stddevSamp =>
+      CopyWith$Input$ChangeOwnerKeyStddevSampOrderBy.stub(_res);
+
+  CopyWith$Input$ChangeOwnerKeySumOrderBy<TRes> get sum =>
+      CopyWith$Input$ChangeOwnerKeySumOrderBy.stub(_res);
+
+  CopyWith$Input$ChangeOwnerKeyVarPopOrderBy<TRes> get varPop =>
+      CopyWith$Input$ChangeOwnerKeyVarPopOrderBy.stub(_res);
+
+  CopyWith$Input$ChangeOwnerKeyVarSampOrderBy<TRes> get varSamp =>
+      CopyWith$Input$ChangeOwnerKeyVarSampOrderBy.stub(_res);
+
+  CopyWith$Input$ChangeOwnerKeyVarianceOrderBy<TRes> get variance =>
+      CopyWith$Input$ChangeOwnerKeyVarianceOrderBy.stub(_res);
+}
+
+class Input$ChangeOwnerKeyAvgOrderBy {
+  factory Input$ChangeOwnerKeyAvgOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$ChangeOwnerKeyAvgOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$ChangeOwnerKeyAvgOrderBy._(this._$data);
+
+  factory Input$ChangeOwnerKeyAvgOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$ChangeOwnerKeyAvgOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ChangeOwnerKeyAvgOrderBy<Input$ChangeOwnerKeyAvgOrderBy>
+      get copyWith => CopyWith$Input$ChangeOwnerKeyAvgOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ChangeOwnerKeyAvgOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$ChangeOwnerKeyAvgOrderBy<TRes> {
+  factory CopyWith$Input$ChangeOwnerKeyAvgOrderBy(
+    Input$ChangeOwnerKeyAvgOrderBy instance,
+    TRes Function(Input$ChangeOwnerKeyAvgOrderBy) then,
+  ) = _CopyWithImpl$Input$ChangeOwnerKeyAvgOrderBy;
+
+  factory CopyWith$Input$ChangeOwnerKeyAvgOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ChangeOwnerKeyAvgOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$ChangeOwnerKeyAvgOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyAvgOrderBy<TRes> {
+  _CopyWithImpl$Input$ChangeOwnerKeyAvgOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ChangeOwnerKeyAvgOrderBy _instance;
+
+  final TRes Function(Input$ChangeOwnerKeyAvgOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$ChangeOwnerKeyAvgOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ChangeOwnerKeyAvgOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyAvgOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ChangeOwnerKeyAvgOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$ChangeOwnerKeyBoolExp {
+  factory Input$ChangeOwnerKeyBoolExp({
+    List<Input$ChangeOwnerKeyBoolExp>? $_and,
+    Input$ChangeOwnerKeyBoolExp? $_not,
+    List<Input$ChangeOwnerKeyBoolExp>? $_or,
+    Input$IntComparisonExp? blockNumber,
+    Input$StringComparisonExp? id,
+    Input$IdentityBoolExp? identity,
+    Input$StringComparisonExp? identityId,
+    Input$AccountBoolExp? next,
+    Input$StringComparisonExp? nextId,
+    Input$AccountBoolExp? previous,
+    Input$StringComparisonExp? previousId,
+  }) =>
+      Input$ChangeOwnerKeyBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (id != null) r'id': id,
+        if (identity != null) r'identity': identity,
+        if (identityId != null) r'identityId': identityId,
+        if (next != null) r'next': next,
+        if (nextId != null) r'nextId': nextId,
+        if (previous != null) r'previous': previous,
+        if (previousId != null) r'previousId': previousId,
+      });
+
+  Input$ChangeOwnerKeyBoolExp._(this._$data);
+
+  factory Input$ChangeOwnerKeyBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map((e) =>
+              Input$ChangeOwnerKeyBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$ChangeOwnerKeyBoolExp.fromJson(
+              (l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map((e) =>
+              Input$ChangeOwnerKeyBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$blockNumber as Map<String, dynamic>));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    if (data.containsKey('identity')) {
+      final l$identity = data['identity'];
+      result$data['identity'] = l$identity == null
+          ? null
+          : Input$IdentityBoolExp.fromJson(
+              (l$identity as Map<String, dynamic>));
+    }
+    if (data.containsKey('identityId')) {
+      final l$identityId = data['identityId'];
+      result$data['identityId'] = l$identityId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$identityId as Map<String, dynamic>));
+    }
+    if (data.containsKey('next')) {
+      final l$next = data['next'];
+      result$data['next'] = l$next == null
+          ? null
+          : Input$AccountBoolExp.fromJson((l$next as Map<String, dynamic>));
+    }
+    if (data.containsKey('nextId')) {
+      final l$nextId = data['nextId'];
+      result$data['nextId'] = l$nextId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$nextId as Map<String, dynamic>));
+    }
+    if (data.containsKey('previous')) {
+      final l$previous = data['previous'];
+      result$data['previous'] = l$previous == null
+          ? null
+          : Input$AccountBoolExp.fromJson((l$previous as Map<String, dynamic>));
+    }
+    if (data.containsKey('previousId')) {
+      final l$previousId = data['previousId'];
+      result$data['previousId'] = l$previousId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$previousId as Map<String, dynamic>));
+    }
+    return Input$ChangeOwnerKeyBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$ChangeOwnerKeyBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$ChangeOwnerKeyBoolExp>?);
+
+  Input$ChangeOwnerKeyBoolExp? get $_not =>
+      (_$data['_not'] as Input$ChangeOwnerKeyBoolExp?);
+
+  List<Input$ChangeOwnerKeyBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$ChangeOwnerKeyBoolExp>?);
+
+  Input$IntComparisonExp? get blockNumber =>
+      (_$data['blockNumber'] as Input$IntComparisonExp?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Input$IdentityBoolExp? get identity =>
+      (_$data['identity'] as Input$IdentityBoolExp?);
+
+  Input$StringComparisonExp? get identityId =>
+      (_$data['identityId'] as Input$StringComparisonExp?);
+
+  Input$AccountBoolExp? get next => (_$data['next'] as Input$AccountBoolExp?);
+
+  Input$StringComparisonExp? get nextId =>
+      (_$data['nextId'] as Input$StringComparisonExp?);
+
+  Input$AccountBoolExp? get previous =>
+      (_$data['previous'] as Input$AccountBoolExp?);
+
+  Input$StringComparisonExp? get previousId =>
+      (_$data['previousId'] as Input$StringComparisonExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] = l$blockNumber?.toJson();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    if (_$data.containsKey('identity')) {
+      final l$identity = identity;
+      result$data['identity'] = l$identity?.toJson();
+    }
+    if (_$data.containsKey('identityId')) {
+      final l$identityId = identityId;
+      result$data['identityId'] = l$identityId?.toJson();
+    }
+    if (_$data.containsKey('next')) {
+      final l$next = next;
+      result$data['next'] = l$next?.toJson();
+    }
+    if (_$data.containsKey('nextId')) {
+      final l$nextId = nextId;
+      result$data['nextId'] = l$nextId?.toJson();
+    }
+    if (_$data.containsKey('previous')) {
+      final l$previous = previous;
+      result$data['previous'] = l$previous?.toJson();
+    }
+    if (_$data.containsKey('previousId')) {
+      final l$previousId = previousId;
+      result$data['previousId'] = l$previousId?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ChangeOwnerKeyBoolExp<Input$ChangeOwnerKeyBoolExp>
+      get copyWith => CopyWith$Input$ChangeOwnerKeyBoolExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ChangeOwnerKeyBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$identity = identity;
+    final lOther$identity = other.identity;
+    if (_$data.containsKey('identity') !=
+        other._$data.containsKey('identity')) {
+      return false;
+    }
+    if (l$identity != lOther$identity) {
+      return false;
+    }
+    final l$identityId = identityId;
+    final lOther$identityId = other.identityId;
+    if (_$data.containsKey('identityId') !=
+        other._$data.containsKey('identityId')) {
+      return false;
+    }
+    if (l$identityId != lOther$identityId) {
+      return false;
+    }
+    final l$next = next;
+    final lOther$next = other.next;
+    if (_$data.containsKey('next') != other._$data.containsKey('next')) {
+      return false;
+    }
+    if (l$next != lOther$next) {
+      return false;
+    }
+    final l$nextId = nextId;
+    final lOther$nextId = other.nextId;
+    if (_$data.containsKey('nextId') != other._$data.containsKey('nextId')) {
+      return false;
+    }
+    if (l$nextId != lOther$nextId) {
+      return false;
+    }
+    final l$previous = previous;
+    final lOther$previous = other.previous;
+    if (_$data.containsKey('previous') !=
+        other._$data.containsKey('previous')) {
+      return false;
+    }
+    if (l$previous != lOther$previous) {
+      return false;
+    }
+    final l$previousId = previousId;
+    final lOther$previousId = other.previousId;
+    if (_$data.containsKey('previousId') !=
+        other._$data.containsKey('previousId')) {
+      return false;
+    }
+    if (l$previousId != lOther$previousId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$blockNumber = blockNumber;
+    final l$id = id;
+    final l$identity = identity;
+    final l$identityId = identityId;
+    final l$next = next;
+    final l$nextId = nextId;
+    final l$previous = previous;
+    final l$previousId = previousId;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('identity') ? l$identity : const {},
+      _$data.containsKey('identityId') ? l$identityId : const {},
+      _$data.containsKey('next') ? l$next : const {},
+      _$data.containsKey('nextId') ? l$nextId : const {},
+      _$data.containsKey('previous') ? l$previous : const {},
+      _$data.containsKey('previousId') ? l$previousId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ChangeOwnerKeyBoolExp<TRes> {
+  factory CopyWith$Input$ChangeOwnerKeyBoolExp(
+    Input$ChangeOwnerKeyBoolExp instance,
+    TRes Function(Input$ChangeOwnerKeyBoolExp) then,
+  ) = _CopyWithImpl$Input$ChangeOwnerKeyBoolExp;
+
+  factory CopyWith$Input$ChangeOwnerKeyBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$ChangeOwnerKeyBoolExp;
+
+  TRes call({
+    List<Input$ChangeOwnerKeyBoolExp>? $_and,
+    Input$ChangeOwnerKeyBoolExp? $_not,
+    List<Input$ChangeOwnerKeyBoolExp>? $_or,
+    Input$IntComparisonExp? blockNumber,
+    Input$StringComparisonExp? id,
+    Input$IdentityBoolExp? identity,
+    Input$StringComparisonExp? identityId,
+    Input$AccountBoolExp? next,
+    Input$StringComparisonExp? nextId,
+    Input$AccountBoolExp? previous,
+    Input$StringComparisonExp? previousId,
+  });
+  TRes $_and(
+      Iterable<Input$ChangeOwnerKeyBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$ChangeOwnerKeyBoolExp<
+                      Input$ChangeOwnerKeyBoolExp>>?)
+          _fn);
+  CopyWith$Input$ChangeOwnerKeyBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$ChangeOwnerKeyBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$ChangeOwnerKeyBoolExp<
+                      Input$ChangeOwnerKeyBoolExp>>?)
+          _fn);
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber;
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+  CopyWith$Input$IdentityBoolExp<TRes> get identity;
+  CopyWith$Input$StringComparisonExp<TRes> get identityId;
+  CopyWith$Input$AccountBoolExp<TRes> get next;
+  CopyWith$Input$StringComparisonExp<TRes> get nextId;
+  CopyWith$Input$AccountBoolExp<TRes> get previous;
+  CopyWith$Input$StringComparisonExp<TRes> get previousId;
+}
+
+class _CopyWithImpl$Input$ChangeOwnerKeyBoolExp<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyBoolExp<TRes> {
+  _CopyWithImpl$Input$ChangeOwnerKeyBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ChangeOwnerKeyBoolExp _instance;
+
+  final TRes Function(Input$ChangeOwnerKeyBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? blockNumber = _undefined,
+    Object? id = _undefined,
+    Object? identity = _undefined,
+    Object? identityId = _undefined,
+    Object? next = _undefined,
+    Object? nextId = _undefined,
+    Object? previous = _undefined,
+    Object? previousId = _undefined,
+  }) =>
+      _then(Input$ChangeOwnerKeyBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined)
+          '_and': ($_and as List<Input$ChangeOwnerKeyBoolExp>?),
+        if ($_not != _undefined)
+          '_not': ($_not as Input$ChangeOwnerKeyBoolExp?),
+        if ($_or != _undefined)
+          '_or': ($_or as List<Input$ChangeOwnerKeyBoolExp>?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Input$IntComparisonExp?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+        if (identity != _undefined)
+          'identity': (identity as Input$IdentityBoolExp?),
+        if (identityId != _undefined)
+          'identityId': (identityId as Input$StringComparisonExp?),
+        if (next != _undefined) 'next': (next as Input$AccountBoolExp?),
+        if (nextId != _undefined)
+          'nextId': (nextId as Input$StringComparisonExp?),
+        if (previous != _undefined)
+          'previous': (previous as Input$AccountBoolExp?),
+        if (previousId != _undefined)
+          'previousId': (previousId as Input$StringComparisonExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$ChangeOwnerKeyBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$ChangeOwnerKeyBoolExp<
+                          Input$ChangeOwnerKeyBoolExp>>?)
+              _fn) =>
+      call(
+          $_and: _fn(
+              _instance.$_and?.map((e) => CopyWith$Input$ChangeOwnerKeyBoolExp(
+                    e,
+                    (i) => i,
+                  )))?.toList());
+
+  CopyWith$Input$ChangeOwnerKeyBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$ChangeOwnerKeyBoolExp.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyBoolExp(
+            local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$ChangeOwnerKeyBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$ChangeOwnerKeyBoolExp<
+                          Input$ChangeOwnerKeyBoolExp>>?)
+              _fn) =>
+      call(
+          $_or: _fn(
+              _instance.$_or?.map((e) => CopyWith$Input$ChangeOwnerKeyBoolExp(
+                    e,
+                    (i) => i,
+                  )))?.toList());
+
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber {
+    final local$blockNumber = _instance.blockNumber;
+    return local$blockNumber == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$blockNumber, (e) => call(blockNumber: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+
+  CopyWith$Input$IdentityBoolExp<TRes> get identity {
+    final local$identity = _instance.identity;
+    return local$identity == null
+        ? CopyWith$Input$IdentityBoolExp.stub(_then(_instance))
+        : CopyWith$Input$IdentityBoolExp(
+            local$identity, (e) => call(identity: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get identityId {
+    final local$identityId = _instance.identityId;
+    return local$identityId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$identityId, (e) => call(identityId: e));
+  }
+
+  CopyWith$Input$AccountBoolExp<TRes> get next {
+    final local$next = _instance.next;
+    return local$next == null
+        ? CopyWith$Input$AccountBoolExp.stub(_then(_instance))
+        : CopyWith$Input$AccountBoolExp(local$next, (e) => call(next: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get nextId {
+    final local$nextId = _instance.nextId;
+    return local$nextId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$nextId, (e) => call(nextId: e));
+  }
+
+  CopyWith$Input$AccountBoolExp<TRes> get previous {
+    final local$previous = _instance.previous;
+    return local$previous == null
+        ? CopyWith$Input$AccountBoolExp.stub(_then(_instance))
+        : CopyWith$Input$AccountBoolExp(
+            local$previous, (e) => call(previous: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get previousId {
+    final local$previousId = _instance.previousId;
+    return local$previousId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$previousId, (e) => call(previousId: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$ChangeOwnerKeyBoolExp<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyBoolExp<TRes> {
+  _CopyWithStubImpl$Input$ChangeOwnerKeyBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$ChangeOwnerKeyBoolExp>? $_and,
+    Input$ChangeOwnerKeyBoolExp? $_not,
+    List<Input$ChangeOwnerKeyBoolExp>? $_or,
+    Input$IntComparisonExp? blockNumber,
+    Input$StringComparisonExp? id,
+    Input$IdentityBoolExp? identity,
+    Input$StringComparisonExp? identityId,
+    Input$AccountBoolExp? next,
+    Input$StringComparisonExp? nextId,
+    Input$AccountBoolExp? previous,
+    Input$StringComparisonExp? previousId,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$ChangeOwnerKeyBoolExp<TRes> get $_not =>
+      CopyWith$Input$ChangeOwnerKeyBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$IdentityBoolExp<TRes> get identity =>
+      CopyWith$Input$IdentityBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get identityId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$AccountBoolExp<TRes> get next =>
+      CopyWith$Input$AccountBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get nextId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$AccountBoolExp<TRes> get previous =>
+      CopyWith$Input$AccountBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get previousId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+}
+
+class Input$ChangeOwnerKeyMaxOrderBy {
+  factory Input$ChangeOwnerKeyMaxOrderBy({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+    Enum$OrderBy? nextId,
+    Enum$OrderBy? previousId,
+  }) =>
+      Input$ChangeOwnerKeyMaxOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (id != null) r'id': id,
+        if (identityId != null) r'identityId': identityId,
+        if (nextId != null) r'nextId': nextId,
+        if (previousId != null) r'previousId': previousId,
+      });
+
+  Input$ChangeOwnerKeyMaxOrderBy._(this._$data);
+
+  factory Input$ChangeOwnerKeyMaxOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('identityId')) {
+      final l$identityId = data['identityId'];
+      result$data['identityId'] = l$identityId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$identityId as String));
+    }
+    if (data.containsKey('nextId')) {
+      final l$nextId = data['nextId'];
+      result$data['nextId'] =
+          l$nextId == null ? null : fromJson$Enum$OrderBy((l$nextId as String));
+    }
+    if (data.containsKey('previousId')) {
+      final l$previousId = data['previousId'];
+      result$data['previousId'] = l$previousId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$previousId as String));
+    }
+    return Input$ChangeOwnerKeyMaxOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get identityId => (_$data['identityId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get nextId => (_$data['nextId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get previousId => (_$data['previousId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('identityId')) {
+      final l$identityId = identityId;
+      result$data['identityId'] =
+          l$identityId == null ? null : toJson$Enum$OrderBy(l$identityId);
+    }
+    if (_$data.containsKey('nextId')) {
+      final l$nextId = nextId;
+      result$data['nextId'] =
+          l$nextId == null ? null : toJson$Enum$OrderBy(l$nextId);
+    }
+    if (_$data.containsKey('previousId')) {
+      final l$previousId = previousId;
+      result$data['previousId'] =
+          l$previousId == null ? null : toJson$Enum$OrderBy(l$previousId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ChangeOwnerKeyMaxOrderBy<Input$ChangeOwnerKeyMaxOrderBy>
+      get copyWith => CopyWith$Input$ChangeOwnerKeyMaxOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ChangeOwnerKeyMaxOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$identityId = identityId;
+    final lOther$identityId = other.identityId;
+    if (_$data.containsKey('identityId') !=
+        other._$data.containsKey('identityId')) {
+      return false;
+    }
+    if (l$identityId != lOther$identityId) {
+      return false;
+    }
+    final l$nextId = nextId;
+    final lOther$nextId = other.nextId;
+    if (_$data.containsKey('nextId') != other._$data.containsKey('nextId')) {
+      return false;
+    }
+    if (l$nextId != lOther$nextId) {
+      return false;
+    }
+    final l$previousId = previousId;
+    final lOther$previousId = other.previousId;
+    if (_$data.containsKey('previousId') !=
+        other._$data.containsKey('previousId')) {
+      return false;
+    }
+    if (l$previousId != lOther$previousId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    final l$id = id;
+    final l$identityId = identityId;
+    final l$nextId = nextId;
+    final l$previousId = previousId;
+    return Object.hashAll([
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('identityId') ? l$identityId : const {},
+      _$data.containsKey('nextId') ? l$nextId : const {},
+      _$data.containsKey('previousId') ? l$previousId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ChangeOwnerKeyMaxOrderBy<TRes> {
+  factory CopyWith$Input$ChangeOwnerKeyMaxOrderBy(
+    Input$ChangeOwnerKeyMaxOrderBy instance,
+    TRes Function(Input$ChangeOwnerKeyMaxOrderBy) then,
+  ) = _CopyWithImpl$Input$ChangeOwnerKeyMaxOrderBy;
+
+  factory CopyWith$Input$ChangeOwnerKeyMaxOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ChangeOwnerKeyMaxOrderBy;
+
+  TRes call({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+    Enum$OrderBy? nextId,
+    Enum$OrderBy? previousId,
+  });
+}
+
+class _CopyWithImpl$Input$ChangeOwnerKeyMaxOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyMaxOrderBy<TRes> {
+  _CopyWithImpl$Input$ChangeOwnerKeyMaxOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ChangeOwnerKeyMaxOrderBy _instance;
+
+  final TRes Function(Input$ChangeOwnerKeyMaxOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? blockNumber = _undefined,
+    Object? id = _undefined,
+    Object? identityId = _undefined,
+    Object? nextId = _undefined,
+    Object? previousId = _undefined,
+  }) =>
+      _then(Input$ChangeOwnerKeyMaxOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (identityId != _undefined)
+          'identityId': (identityId as Enum$OrderBy?),
+        if (nextId != _undefined) 'nextId': (nextId as Enum$OrderBy?),
+        if (previousId != _undefined)
+          'previousId': (previousId as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ChangeOwnerKeyMaxOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyMaxOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ChangeOwnerKeyMaxOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+    Enum$OrderBy? nextId,
+    Enum$OrderBy? previousId,
+  }) =>
+      _res;
+}
+
+class Input$ChangeOwnerKeyMinOrderBy {
+  factory Input$ChangeOwnerKeyMinOrderBy({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+    Enum$OrderBy? nextId,
+    Enum$OrderBy? previousId,
+  }) =>
+      Input$ChangeOwnerKeyMinOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (id != null) r'id': id,
+        if (identityId != null) r'identityId': identityId,
+        if (nextId != null) r'nextId': nextId,
+        if (previousId != null) r'previousId': previousId,
+      });
+
+  Input$ChangeOwnerKeyMinOrderBy._(this._$data);
+
+  factory Input$ChangeOwnerKeyMinOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('identityId')) {
+      final l$identityId = data['identityId'];
+      result$data['identityId'] = l$identityId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$identityId as String));
+    }
+    if (data.containsKey('nextId')) {
+      final l$nextId = data['nextId'];
+      result$data['nextId'] =
+          l$nextId == null ? null : fromJson$Enum$OrderBy((l$nextId as String));
+    }
+    if (data.containsKey('previousId')) {
+      final l$previousId = data['previousId'];
+      result$data['previousId'] = l$previousId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$previousId as String));
+    }
+    return Input$ChangeOwnerKeyMinOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get identityId => (_$data['identityId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get nextId => (_$data['nextId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get previousId => (_$data['previousId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('identityId')) {
+      final l$identityId = identityId;
+      result$data['identityId'] =
+          l$identityId == null ? null : toJson$Enum$OrderBy(l$identityId);
+    }
+    if (_$data.containsKey('nextId')) {
+      final l$nextId = nextId;
+      result$data['nextId'] =
+          l$nextId == null ? null : toJson$Enum$OrderBy(l$nextId);
+    }
+    if (_$data.containsKey('previousId')) {
+      final l$previousId = previousId;
+      result$data['previousId'] =
+          l$previousId == null ? null : toJson$Enum$OrderBy(l$previousId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ChangeOwnerKeyMinOrderBy<Input$ChangeOwnerKeyMinOrderBy>
+      get copyWith => CopyWith$Input$ChangeOwnerKeyMinOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ChangeOwnerKeyMinOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$identityId = identityId;
+    final lOther$identityId = other.identityId;
+    if (_$data.containsKey('identityId') !=
+        other._$data.containsKey('identityId')) {
+      return false;
+    }
+    if (l$identityId != lOther$identityId) {
+      return false;
+    }
+    final l$nextId = nextId;
+    final lOther$nextId = other.nextId;
+    if (_$data.containsKey('nextId') != other._$data.containsKey('nextId')) {
+      return false;
+    }
+    if (l$nextId != lOther$nextId) {
+      return false;
+    }
+    final l$previousId = previousId;
+    final lOther$previousId = other.previousId;
+    if (_$data.containsKey('previousId') !=
+        other._$data.containsKey('previousId')) {
+      return false;
+    }
+    if (l$previousId != lOther$previousId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    final l$id = id;
+    final l$identityId = identityId;
+    final l$nextId = nextId;
+    final l$previousId = previousId;
+    return Object.hashAll([
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('identityId') ? l$identityId : const {},
+      _$data.containsKey('nextId') ? l$nextId : const {},
+      _$data.containsKey('previousId') ? l$previousId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ChangeOwnerKeyMinOrderBy<TRes> {
+  factory CopyWith$Input$ChangeOwnerKeyMinOrderBy(
+    Input$ChangeOwnerKeyMinOrderBy instance,
+    TRes Function(Input$ChangeOwnerKeyMinOrderBy) then,
+  ) = _CopyWithImpl$Input$ChangeOwnerKeyMinOrderBy;
+
+  factory CopyWith$Input$ChangeOwnerKeyMinOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ChangeOwnerKeyMinOrderBy;
+
+  TRes call({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+    Enum$OrderBy? nextId,
+    Enum$OrderBy? previousId,
+  });
+}
+
+class _CopyWithImpl$Input$ChangeOwnerKeyMinOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyMinOrderBy<TRes> {
+  _CopyWithImpl$Input$ChangeOwnerKeyMinOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ChangeOwnerKeyMinOrderBy _instance;
+
+  final TRes Function(Input$ChangeOwnerKeyMinOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? blockNumber = _undefined,
+    Object? id = _undefined,
+    Object? identityId = _undefined,
+    Object? nextId = _undefined,
+    Object? previousId = _undefined,
+  }) =>
+      _then(Input$ChangeOwnerKeyMinOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (identityId != _undefined)
+          'identityId': (identityId as Enum$OrderBy?),
+        if (nextId != _undefined) 'nextId': (nextId as Enum$OrderBy?),
+        if (previousId != _undefined)
+          'previousId': (previousId as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ChangeOwnerKeyMinOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyMinOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ChangeOwnerKeyMinOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+    Enum$OrderBy? nextId,
+    Enum$OrderBy? previousId,
+  }) =>
+      _res;
+}
+
+class Input$ChangeOwnerKeyOrderBy {
+  factory Input$ChangeOwnerKeyOrderBy({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Input$IdentityOrderBy? identity,
+    Enum$OrderBy? identityId,
+    Input$AccountOrderBy? next,
+    Enum$OrderBy? nextId,
+    Input$AccountOrderBy? previous,
+    Enum$OrderBy? previousId,
+  }) =>
+      Input$ChangeOwnerKeyOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (id != null) r'id': id,
+        if (identity != null) r'identity': identity,
+        if (identityId != null) r'identityId': identityId,
+        if (next != null) r'next': next,
+        if (nextId != null) r'nextId': nextId,
+        if (previous != null) r'previous': previous,
+        if (previousId != null) r'previousId': previousId,
+      });
+
+  Input$ChangeOwnerKeyOrderBy._(this._$data);
+
+  factory Input$ChangeOwnerKeyOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('identity')) {
+      final l$identity = data['identity'];
+      result$data['identity'] = l$identity == null
+          ? null
+          : Input$IdentityOrderBy.fromJson(
+              (l$identity as Map<String, dynamic>));
+    }
+    if (data.containsKey('identityId')) {
+      final l$identityId = data['identityId'];
+      result$data['identityId'] = l$identityId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$identityId as String));
+    }
+    if (data.containsKey('next')) {
+      final l$next = data['next'];
+      result$data['next'] = l$next == null
+          ? null
+          : Input$AccountOrderBy.fromJson((l$next as Map<String, dynamic>));
+    }
+    if (data.containsKey('nextId')) {
+      final l$nextId = data['nextId'];
+      result$data['nextId'] =
+          l$nextId == null ? null : fromJson$Enum$OrderBy((l$nextId as String));
+    }
+    if (data.containsKey('previous')) {
+      final l$previous = data['previous'];
+      result$data['previous'] = l$previous == null
+          ? null
+          : Input$AccountOrderBy.fromJson((l$previous as Map<String, dynamic>));
+    }
+    if (data.containsKey('previousId')) {
+      final l$previousId = data['previousId'];
+      result$data['previousId'] = l$previousId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$previousId as String));
+    }
+    return Input$ChangeOwnerKeyOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Input$IdentityOrderBy? get identity =>
+      (_$data['identity'] as Input$IdentityOrderBy?);
+
+  Enum$OrderBy? get identityId => (_$data['identityId'] as Enum$OrderBy?);
+
+  Input$AccountOrderBy? get next => (_$data['next'] as Input$AccountOrderBy?);
+
+  Enum$OrderBy? get nextId => (_$data['nextId'] as Enum$OrderBy?);
+
+  Input$AccountOrderBy? get previous =>
+      (_$data['previous'] as Input$AccountOrderBy?);
+
+  Enum$OrderBy? get previousId => (_$data['previousId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('identity')) {
+      final l$identity = identity;
+      result$data['identity'] = l$identity?.toJson();
+    }
+    if (_$data.containsKey('identityId')) {
+      final l$identityId = identityId;
+      result$data['identityId'] =
+          l$identityId == null ? null : toJson$Enum$OrderBy(l$identityId);
+    }
+    if (_$data.containsKey('next')) {
+      final l$next = next;
+      result$data['next'] = l$next?.toJson();
+    }
+    if (_$data.containsKey('nextId')) {
+      final l$nextId = nextId;
+      result$data['nextId'] =
+          l$nextId == null ? null : toJson$Enum$OrderBy(l$nextId);
+    }
+    if (_$data.containsKey('previous')) {
+      final l$previous = previous;
+      result$data['previous'] = l$previous?.toJson();
+    }
+    if (_$data.containsKey('previousId')) {
+      final l$previousId = previousId;
+      result$data['previousId'] =
+          l$previousId == null ? null : toJson$Enum$OrderBy(l$previousId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ChangeOwnerKeyOrderBy<Input$ChangeOwnerKeyOrderBy>
+      get copyWith => CopyWith$Input$ChangeOwnerKeyOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ChangeOwnerKeyOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$identity = identity;
+    final lOther$identity = other.identity;
+    if (_$data.containsKey('identity') !=
+        other._$data.containsKey('identity')) {
+      return false;
+    }
+    if (l$identity != lOther$identity) {
+      return false;
+    }
+    final l$identityId = identityId;
+    final lOther$identityId = other.identityId;
+    if (_$data.containsKey('identityId') !=
+        other._$data.containsKey('identityId')) {
+      return false;
+    }
+    if (l$identityId != lOther$identityId) {
+      return false;
+    }
+    final l$next = next;
+    final lOther$next = other.next;
+    if (_$data.containsKey('next') != other._$data.containsKey('next')) {
+      return false;
+    }
+    if (l$next != lOther$next) {
+      return false;
+    }
+    final l$nextId = nextId;
+    final lOther$nextId = other.nextId;
+    if (_$data.containsKey('nextId') != other._$data.containsKey('nextId')) {
+      return false;
+    }
+    if (l$nextId != lOther$nextId) {
+      return false;
+    }
+    final l$previous = previous;
+    final lOther$previous = other.previous;
+    if (_$data.containsKey('previous') !=
+        other._$data.containsKey('previous')) {
+      return false;
+    }
+    if (l$previous != lOther$previous) {
+      return false;
+    }
+    final l$previousId = previousId;
+    final lOther$previousId = other.previousId;
+    if (_$data.containsKey('previousId') !=
+        other._$data.containsKey('previousId')) {
+      return false;
+    }
+    if (l$previousId != lOther$previousId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    final l$id = id;
+    final l$identity = identity;
+    final l$identityId = identityId;
+    final l$next = next;
+    final l$nextId = nextId;
+    final l$previous = previous;
+    final l$previousId = previousId;
+    return Object.hashAll([
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('identity') ? l$identity : const {},
+      _$data.containsKey('identityId') ? l$identityId : const {},
+      _$data.containsKey('next') ? l$next : const {},
+      _$data.containsKey('nextId') ? l$nextId : const {},
+      _$data.containsKey('previous') ? l$previous : const {},
+      _$data.containsKey('previousId') ? l$previousId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ChangeOwnerKeyOrderBy<TRes> {
+  factory CopyWith$Input$ChangeOwnerKeyOrderBy(
+    Input$ChangeOwnerKeyOrderBy instance,
+    TRes Function(Input$ChangeOwnerKeyOrderBy) then,
+  ) = _CopyWithImpl$Input$ChangeOwnerKeyOrderBy;
+
+  factory CopyWith$Input$ChangeOwnerKeyOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ChangeOwnerKeyOrderBy;
+
+  TRes call({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Input$IdentityOrderBy? identity,
+    Enum$OrderBy? identityId,
+    Input$AccountOrderBy? next,
+    Enum$OrderBy? nextId,
+    Input$AccountOrderBy? previous,
+    Enum$OrderBy? previousId,
+  });
+  CopyWith$Input$IdentityOrderBy<TRes> get identity;
+  CopyWith$Input$AccountOrderBy<TRes> get next;
+  CopyWith$Input$AccountOrderBy<TRes> get previous;
+}
+
+class _CopyWithImpl$Input$ChangeOwnerKeyOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyOrderBy<TRes> {
+  _CopyWithImpl$Input$ChangeOwnerKeyOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ChangeOwnerKeyOrderBy _instance;
+
+  final TRes Function(Input$ChangeOwnerKeyOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? blockNumber = _undefined,
+    Object? id = _undefined,
+    Object? identity = _undefined,
+    Object? identityId = _undefined,
+    Object? next = _undefined,
+    Object? nextId = _undefined,
+    Object? previous = _undefined,
+    Object? previousId = _undefined,
+  }) =>
+      _then(Input$ChangeOwnerKeyOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (identity != _undefined)
+          'identity': (identity as Input$IdentityOrderBy?),
+        if (identityId != _undefined)
+          'identityId': (identityId as Enum$OrderBy?),
+        if (next != _undefined) 'next': (next as Input$AccountOrderBy?),
+        if (nextId != _undefined) 'nextId': (nextId as Enum$OrderBy?),
+        if (previous != _undefined)
+          'previous': (previous as Input$AccountOrderBy?),
+        if (previousId != _undefined)
+          'previousId': (previousId as Enum$OrderBy?),
+      }));
+
+  CopyWith$Input$IdentityOrderBy<TRes> get identity {
+    final local$identity = _instance.identity;
+    return local$identity == null
+        ? CopyWith$Input$IdentityOrderBy.stub(_then(_instance))
+        : CopyWith$Input$IdentityOrderBy(
+            local$identity, (e) => call(identity: e));
+  }
+
+  CopyWith$Input$AccountOrderBy<TRes> get next {
+    final local$next = _instance.next;
+    return local$next == null
+        ? CopyWith$Input$AccountOrderBy.stub(_then(_instance))
+        : CopyWith$Input$AccountOrderBy(local$next, (e) => call(next: e));
+  }
+
+  CopyWith$Input$AccountOrderBy<TRes> get previous {
+    final local$previous = _instance.previous;
+    return local$previous == null
+        ? CopyWith$Input$AccountOrderBy.stub(_then(_instance))
+        : CopyWith$Input$AccountOrderBy(
+            local$previous, (e) => call(previous: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$ChangeOwnerKeyOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ChangeOwnerKeyOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Input$IdentityOrderBy? identity,
+    Enum$OrderBy? identityId,
+    Input$AccountOrderBy? next,
+    Enum$OrderBy? nextId,
+    Input$AccountOrderBy? previous,
+    Enum$OrderBy? previousId,
+  }) =>
+      _res;
+
+  CopyWith$Input$IdentityOrderBy<TRes> get identity =>
+      CopyWith$Input$IdentityOrderBy.stub(_res);
+
+  CopyWith$Input$AccountOrderBy<TRes> get next =>
+      CopyWith$Input$AccountOrderBy.stub(_res);
+
+  CopyWith$Input$AccountOrderBy<TRes> get previous =>
+      CopyWith$Input$AccountOrderBy.stub(_res);
+}
+
+class Input$ChangeOwnerKeyStddevOrderBy {
+  factory Input$ChangeOwnerKeyStddevOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$ChangeOwnerKeyStddevOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$ChangeOwnerKeyStddevOrderBy._(this._$data);
+
+  factory Input$ChangeOwnerKeyStddevOrderBy.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$ChangeOwnerKeyStddevOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ChangeOwnerKeyStddevOrderBy<Input$ChangeOwnerKeyStddevOrderBy>
+      get copyWith => CopyWith$Input$ChangeOwnerKeyStddevOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ChangeOwnerKeyStddevOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$ChangeOwnerKeyStddevOrderBy<TRes> {
+  factory CopyWith$Input$ChangeOwnerKeyStddevOrderBy(
+    Input$ChangeOwnerKeyStddevOrderBy instance,
+    TRes Function(Input$ChangeOwnerKeyStddevOrderBy) then,
+  ) = _CopyWithImpl$Input$ChangeOwnerKeyStddevOrderBy;
+
+  factory CopyWith$Input$ChangeOwnerKeyStddevOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ChangeOwnerKeyStddevOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$ChangeOwnerKeyStddevOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyStddevOrderBy<TRes> {
+  _CopyWithImpl$Input$ChangeOwnerKeyStddevOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ChangeOwnerKeyStddevOrderBy _instance;
+
+  final TRes Function(Input$ChangeOwnerKeyStddevOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$ChangeOwnerKeyStddevOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ChangeOwnerKeyStddevOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyStddevOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ChangeOwnerKeyStddevOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$ChangeOwnerKeyStddevPopOrderBy {
+  factory Input$ChangeOwnerKeyStddevPopOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$ChangeOwnerKeyStddevPopOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$ChangeOwnerKeyStddevPopOrderBy._(this._$data);
+
+  factory Input$ChangeOwnerKeyStddevPopOrderBy.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$ChangeOwnerKeyStddevPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ChangeOwnerKeyStddevPopOrderBy<
+          Input$ChangeOwnerKeyStddevPopOrderBy>
+      get copyWith => CopyWith$Input$ChangeOwnerKeyStddevPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ChangeOwnerKeyStddevPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$ChangeOwnerKeyStddevPopOrderBy<TRes> {
+  factory CopyWith$Input$ChangeOwnerKeyStddevPopOrderBy(
+    Input$ChangeOwnerKeyStddevPopOrderBy instance,
+    TRes Function(Input$ChangeOwnerKeyStddevPopOrderBy) then,
+  ) = _CopyWithImpl$Input$ChangeOwnerKeyStddevPopOrderBy;
+
+  factory CopyWith$Input$ChangeOwnerKeyStddevPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ChangeOwnerKeyStddevPopOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$ChangeOwnerKeyStddevPopOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyStddevPopOrderBy<TRes> {
+  _CopyWithImpl$Input$ChangeOwnerKeyStddevPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ChangeOwnerKeyStddevPopOrderBy _instance;
+
+  final TRes Function(Input$ChangeOwnerKeyStddevPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$ChangeOwnerKeyStddevPopOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ChangeOwnerKeyStddevPopOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyStddevPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ChangeOwnerKeyStddevPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$ChangeOwnerKeyStddevSampOrderBy {
+  factory Input$ChangeOwnerKeyStddevSampOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$ChangeOwnerKeyStddevSampOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$ChangeOwnerKeyStddevSampOrderBy._(this._$data);
+
+  factory Input$ChangeOwnerKeyStddevSampOrderBy.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$ChangeOwnerKeyStddevSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ChangeOwnerKeyStddevSampOrderBy<
+          Input$ChangeOwnerKeyStddevSampOrderBy>
+      get copyWith => CopyWith$Input$ChangeOwnerKeyStddevSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ChangeOwnerKeyStddevSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$ChangeOwnerKeyStddevSampOrderBy<TRes> {
+  factory CopyWith$Input$ChangeOwnerKeyStddevSampOrderBy(
+    Input$ChangeOwnerKeyStddevSampOrderBy instance,
+    TRes Function(Input$ChangeOwnerKeyStddevSampOrderBy) then,
+  ) = _CopyWithImpl$Input$ChangeOwnerKeyStddevSampOrderBy;
+
+  factory CopyWith$Input$ChangeOwnerKeyStddevSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ChangeOwnerKeyStddevSampOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$ChangeOwnerKeyStddevSampOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyStddevSampOrderBy<TRes> {
+  _CopyWithImpl$Input$ChangeOwnerKeyStddevSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ChangeOwnerKeyStddevSampOrderBy _instance;
+
+  final TRes Function(Input$ChangeOwnerKeyStddevSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$ChangeOwnerKeyStddevSampOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ChangeOwnerKeyStddevSampOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyStddevSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ChangeOwnerKeyStddevSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$ChangeOwnerKeySumOrderBy {
+  factory Input$ChangeOwnerKeySumOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$ChangeOwnerKeySumOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$ChangeOwnerKeySumOrderBy._(this._$data);
+
+  factory Input$ChangeOwnerKeySumOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$ChangeOwnerKeySumOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ChangeOwnerKeySumOrderBy<Input$ChangeOwnerKeySumOrderBy>
+      get copyWith => CopyWith$Input$ChangeOwnerKeySumOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ChangeOwnerKeySumOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$ChangeOwnerKeySumOrderBy<TRes> {
+  factory CopyWith$Input$ChangeOwnerKeySumOrderBy(
+    Input$ChangeOwnerKeySumOrderBy instance,
+    TRes Function(Input$ChangeOwnerKeySumOrderBy) then,
+  ) = _CopyWithImpl$Input$ChangeOwnerKeySumOrderBy;
+
+  factory CopyWith$Input$ChangeOwnerKeySumOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ChangeOwnerKeySumOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$ChangeOwnerKeySumOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeySumOrderBy<TRes> {
+  _CopyWithImpl$Input$ChangeOwnerKeySumOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ChangeOwnerKeySumOrderBy _instance;
+
+  final TRes Function(Input$ChangeOwnerKeySumOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$ChangeOwnerKeySumOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ChangeOwnerKeySumOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeySumOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ChangeOwnerKeySumOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$ChangeOwnerKeyVarianceOrderBy {
+  factory Input$ChangeOwnerKeyVarianceOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$ChangeOwnerKeyVarianceOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$ChangeOwnerKeyVarianceOrderBy._(this._$data);
+
+  factory Input$ChangeOwnerKeyVarianceOrderBy.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$ChangeOwnerKeyVarianceOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ChangeOwnerKeyVarianceOrderBy<
+          Input$ChangeOwnerKeyVarianceOrderBy>
+      get copyWith => CopyWith$Input$ChangeOwnerKeyVarianceOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ChangeOwnerKeyVarianceOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$ChangeOwnerKeyVarianceOrderBy<TRes> {
+  factory CopyWith$Input$ChangeOwnerKeyVarianceOrderBy(
+    Input$ChangeOwnerKeyVarianceOrderBy instance,
+    TRes Function(Input$ChangeOwnerKeyVarianceOrderBy) then,
+  ) = _CopyWithImpl$Input$ChangeOwnerKeyVarianceOrderBy;
+
+  factory CopyWith$Input$ChangeOwnerKeyVarianceOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ChangeOwnerKeyVarianceOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$ChangeOwnerKeyVarianceOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyVarianceOrderBy<TRes> {
+  _CopyWithImpl$Input$ChangeOwnerKeyVarianceOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ChangeOwnerKeyVarianceOrderBy _instance;
+
+  final TRes Function(Input$ChangeOwnerKeyVarianceOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$ChangeOwnerKeyVarianceOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ChangeOwnerKeyVarianceOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyVarianceOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ChangeOwnerKeyVarianceOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$ChangeOwnerKeyVarPopOrderBy {
+  factory Input$ChangeOwnerKeyVarPopOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$ChangeOwnerKeyVarPopOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$ChangeOwnerKeyVarPopOrderBy._(this._$data);
+
+  factory Input$ChangeOwnerKeyVarPopOrderBy.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$ChangeOwnerKeyVarPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ChangeOwnerKeyVarPopOrderBy<Input$ChangeOwnerKeyVarPopOrderBy>
+      get copyWith => CopyWith$Input$ChangeOwnerKeyVarPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ChangeOwnerKeyVarPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$ChangeOwnerKeyVarPopOrderBy<TRes> {
+  factory CopyWith$Input$ChangeOwnerKeyVarPopOrderBy(
+    Input$ChangeOwnerKeyVarPopOrderBy instance,
+    TRes Function(Input$ChangeOwnerKeyVarPopOrderBy) then,
+  ) = _CopyWithImpl$Input$ChangeOwnerKeyVarPopOrderBy;
+
+  factory CopyWith$Input$ChangeOwnerKeyVarPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ChangeOwnerKeyVarPopOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$ChangeOwnerKeyVarPopOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyVarPopOrderBy<TRes> {
+  _CopyWithImpl$Input$ChangeOwnerKeyVarPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ChangeOwnerKeyVarPopOrderBy _instance;
+
+  final TRes Function(Input$ChangeOwnerKeyVarPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$ChangeOwnerKeyVarPopOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ChangeOwnerKeyVarPopOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyVarPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ChangeOwnerKeyVarPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$ChangeOwnerKeyVarSampOrderBy {
+  factory Input$ChangeOwnerKeyVarSampOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$ChangeOwnerKeyVarSampOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$ChangeOwnerKeyVarSampOrderBy._(this._$data);
+
+  factory Input$ChangeOwnerKeyVarSampOrderBy.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$ChangeOwnerKeyVarSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ChangeOwnerKeyVarSampOrderBy<
+          Input$ChangeOwnerKeyVarSampOrderBy>
+      get copyWith => CopyWith$Input$ChangeOwnerKeyVarSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ChangeOwnerKeyVarSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$ChangeOwnerKeyVarSampOrderBy<TRes> {
+  factory CopyWith$Input$ChangeOwnerKeyVarSampOrderBy(
+    Input$ChangeOwnerKeyVarSampOrderBy instance,
+    TRes Function(Input$ChangeOwnerKeyVarSampOrderBy) then,
+  ) = _CopyWithImpl$Input$ChangeOwnerKeyVarSampOrderBy;
+
+  factory CopyWith$Input$ChangeOwnerKeyVarSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ChangeOwnerKeyVarSampOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$ChangeOwnerKeyVarSampOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyVarSampOrderBy<TRes> {
+  _CopyWithImpl$Input$ChangeOwnerKeyVarSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ChangeOwnerKeyVarSampOrderBy _instance;
+
+  final TRes Function(Input$ChangeOwnerKeyVarSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$ChangeOwnerKeyVarSampOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ChangeOwnerKeyVarSampOrderBy<TRes>
+    implements CopyWith$Input$ChangeOwnerKeyVarSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ChangeOwnerKeyVarSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$CounterLevelEnumComparisonExp {
+  factory Input$CounterLevelEnumComparisonExp({
+    Enum$CounterLevelEnum? $_eq,
+    List<Enum$CounterLevelEnum>? $_in,
+    bool? $_isNull,
+    Enum$CounterLevelEnum? $_neq,
+    List<Enum$CounterLevelEnum>? $_nin,
+  }) =>
+      Input$CounterLevelEnumComparisonExp._({
+        if ($_eq != null) r'_eq': $_eq,
+        if ($_in != null) r'_in': $_in,
+        if ($_isNull != null) r'_isNull': $_isNull,
+        if ($_neq != null) r'_neq': $_neq,
+        if ($_nin != null) r'_nin': $_nin,
+      });
+
+  Input$CounterLevelEnumComparisonExp._(this._$data);
+
+  factory Input$CounterLevelEnumComparisonExp.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_eq')) {
+      final l$$_eq = data['_eq'];
+      result$data['_eq'] = l$$_eq == null
+          ? null
+          : fromJson$Enum$CounterLevelEnum((l$$_eq as String));
+    }
+    if (data.containsKey('_in')) {
+      final l$$_in = data['_in'];
+      result$data['_in'] = (l$$_in as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$CounterLevelEnum((e as String)))
+          .toList();
+    }
+    if (data.containsKey('_isNull')) {
+      final l$$_isNull = data['_isNull'];
+      result$data['_isNull'] = (l$$_isNull as bool?);
+    }
+    if (data.containsKey('_neq')) {
+      final l$$_neq = data['_neq'];
+      result$data['_neq'] = l$$_neq == null
+          ? null
+          : fromJson$Enum$CounterLevelEnum((l$$_neq as String));
+    }
+    if (data.containsKey('_nin')) {
+      final l$$_nin = data['_nin'];
+      result$data['_nin'] = (l$$_nin as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$CounterLevelEnum((e as String)))
+          .toList();
+    }
+    return Input$CounterLevelEnumComparisonExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$CounterLevelEnum? get $_eq => (_$data['_eq'] as Enum$CounterLevelEnum?);
+
+  List<Enum$CounterLevelEnum>? get $_in =>
+      (_$data['_in'] as List<Enum$CounterLevelEnum>?);
+
+  bool? get $_isNull => (_$data['_isNull'] as bool?);
+
+  Enum$CounterLevelEnum? get $_neq =>
+      (_$data['_neq'] as Enum$CounterLevelEnum?);
+
+  List<Enum$CounterLevelEnum>? get $_nin =>
+      (_$data['_nin'] as List<Enum$CounterLevelEnum>?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_eq')) {
+      final l$$_eq = $_eq;
+      result$data['_eq'] =
+          l$$_eq == null ? null : toJson$Enum$CounterLevelEnum(l$$_eq);
+    }
+    if (_$data.containsKey('_in')) {
+      final l$$_in = $_in;
+      result$data['_in'] =
+          l$$_in?.map((e) => toJson$Enum$CounterLevelEnum(e)).toList();
+    }
+    if (_$data.containsKey('_isNull')) {
+      final l$$_isNull = $_isNull;
+      result$data['_isNull'] = l$$_isNull;
+    }
+    if (_$data.containsKey('_neq')) {
+      final l$$_neq = $_neq;
+      result$data['_neq'] =
+          l$$_neq == null ? null : toJson$Enum$CounterLevelEnum(l$$_neq);
+    }
+    if (_$data.containsKey('_nin')) {
+      final l$$_nin = $_nin;
+      result$data['_nin'] =
+          l$$_nin?.map((e) => toJson$Enum$CounterLevelEnum(e)).toList();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$CounterLevelEnumComparisonExp<
+          Input$CounterLevelEnumComparisonExp>
+      get copyWith => CopyWith$Input$CounterLevelEnumComparisonExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$CounterLevelEnumComparisonExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_eq = $_eq;
+    final lOther$$_eq = other.$_eq;
+    if (_$data.containsKey('_eq') != other._$data.containsKey('_eq')) {
+      return false;
+    }
+    if (l$$_eq != lOther$$_eq) {
+      return false;
+    }
+    final l$$_in = $_in;
+    final lOther$$_in = other.$_in;
+    if (_$data.containsKey('_in') != other._$data.containsKey('_in')) {
+      return false;
+    }
+    if (l$$_in != null && lOther$$_in != null) {
+      if (l$$_in.length != lOther$$_in.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_in.length; i++) {
+        final l$$_in$entry = l$$_in[i];
+        final lOther$$_in$entry = lOther$$_in[i];
+        if (l$$_in$entry != lOther$$_in$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_in != lOther$$_in) {
+      return false;
+    }
+    final l$$_isNull = $_isNull;
+    final lOther$$_isNull = other.$_isNull;
+    if (_$data.containsKey('_isNull') != other._$data.containsKey('_isNull')) {
+      return false;
+    }
+    if (l$$_isNull != lOther$$_isNull) {
+      return false;
+    }
+    final l$$_neq = $_neq;
+    final lOther$$_neq = other.$_neq;
+    if (_$data.containsKey('_neq') != other._$data.containsKey('_neq')) {
+      return false;
+    }
+    if (l$$_neq != lOther$$_neq) {
+      return false;
+    }
+    final l$$_nin = $_nin;
+    final lOther$$_nin = other.$_nin;
+    if (_$data.containsKey('_nin') != other._$data.containsKey('_nin')) {
+      return false;
+    }
+    if (l$$_nin != null && lOther$$_nin != null) {
+      if (l$$_nin.length != lOther$$_nin.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_nin.length; i++) {
+        final l$$_nin$entry = l$$_nin[i];
+        final lOther$$_nin$entry = lOther$$_nin[i];
+        if (l$$_nin$entry != lOther$$_nin$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_nin != lOther$$_nin) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_eq = $_eq;
+    final l$$_in = $_in;
+    final l$$_isNull = $_isNull;
+    final l$$_neq = $_neq;
+    final l$$_nin = $_nin;
+    return Object.hashAll([
+      _$data.containsKey('_eq') ? l$$_eq : const {},
+      _$data.containsKey('_in')
+          ? l$$_in == null
+              ? null
+              : Object.hashAll(l$$_in.map((v) => v))
+          : const {},
+      _$data.containsKey('_isNull') ? l$$_isNull : const {},
+      _$data.containsKey('_neq') ? l$$_neq : const {},
+      _$data.containsKey('_nin')
+          ? l$$_nin == null
+              ? null
+              : Object.hashAll(l$$_nin.map((v) => v))
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$CounterLevelEnumComparisonExp<TRes> {
+  factory CopyWith$Input$CounterLevelEnumComparisonExp(
+    Input$CounterLevelEnumComparisonExp instance,
+    TRes Function(Input$CounterLevelEnumComparisonExp) then,
+  ) = _CopyWithImpl$Input$CounterLevelEnumComparisonExp;
+
+  factory CopyWith$Input$CounterLevelEnumComparisonExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$CounterLevelEnumComparisonExp;
+
+  TRes call({
+    Enum$CounterLevelEnum? $_eq,
+    List<Enum$CounterLevelEnum>? $_in,
+    bool? $_isNull,
+    Enum$CounterLevelEnum? $_neq,
+    List<Enum$CounterLevelEnum>? $_nin,
+  });
+}
+
+class _CopyWithImpl$Input$CounterLevelEnumComparisonExp<TRes>
+    implements CopyWith$Input$CounterLevelEnumComparisonExp<TRes> {
+  _CopyWithImpl$Input$CounterLevelEnumComparisonExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$CounterLevelEnumComparisonExp _instance;
+
+  final TRes Function(Input$CounterLevelEnumComparisonExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_eq = _undefined,
+    Object? $_in = _undefined,
+    Object? $_isNull = _undefined,
+    Object? $_neq = _undefined,
+    Object? $_nin = _undefined,
+  }) =>
+      _then(Input$CounterLevelEnumComparisonExp._({
+        ..._instance._$data,
+        if ($_eq != _undefined) '_eq': ($_eq as Enum$CounterLevelEnum?),
+        if ($_in != _undefined) '_in': ($_in as List<Enum$CounterLevelEnum>?),
+        if ($_isNull != _undefined) '_isNull': ($_isNull as bool?),
+        if ($_neq != _undefined) '_neq': ($_neq as Enum$CounterLevelEnum?),
+        if ($_nin != _undefined)
+          '_nin': ($_nin as List<Enum$CounterLevelEnum>?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$CounterLevelEnumComparisonExp<TRes>
+    implements CopyWith$Input$CounterLevelEnumComparisonExp<TRes> {
+  _CopyWithStubImpl$Input$CounterLevelEnumComparisonExp(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$CounterLevelEnum? $_eq,
+    List<Enum$CounterLevelEnum>? $_in,
+    bool? $_isNull,
+    Enum$CounterLevelEnum? $_neq,
+    List<Enum$CounterLevelEnum>? $_nin,
+  }) =>
+      _res;
+}
+
+class Input$EventAggregateBoolExp {
+  factory Input$EventAggregateBoolExp(
+          {Input$eventAggregateBoolExpCount? count}) =>
+      Input$EventAggregateBoolExp._({
+        if (count != null) r'count': count,
+      });
+
+  Input$EventAggregateBoolExp._(this._$data);
+
+  factory Input$EventAggregateBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] = l$count == null
+          ? null
+          : Input$eventAggregateBoolExpCount.fromJson(
+              (l$count as Map<String, dynamic>));
+    }
+    return Input$EventAggregateBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$eventAggregateBoolExpCount? get count =>
+      (_$data['count'] as Input$eventAggregateBoolExpCount?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] = l$count?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$EventAggregateBoolExp<Input$EventAggregateBoolExp>
+      get copyWith => CopyWith$Input$EventAggregateBoolExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$EventAggregateBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$count = count;
+    return Object.hashAll([_$data.containsKey('count') ? l$count : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$EventAggregateBoolExp<TRes> {
+  factory CopyWith$Input$EventAggregateBoolExp(
+    Input$EventAggregateBoolExp instance,
+    TRes Function(Input$EventAggregateBoolExp) then,
+  ) = _CopyWithImpl$Input$EventAggregateBoolExp;
+
+  factory CopyWith$Input$EventAggregateBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$EventAggregateBoolExp;
+
+  TRes call({Input$eventAggregateBoolExpCount? count});
+  CopyWith$Input$eventAggregateBoolExpCount<TRes> get count;
+}
+
+class _CopyWithImpl$Input$EventAggregateBoolExp<TRes>
+    implements CopyWith$Input$EventAggregateBoolExp<TRes> {
+  _CopyWithImpl$Input$EventAggregateBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$EventAggregateBoolExp _instance;
+
+  final TRes Function(Input$EventAggregateBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? count = _undefined}) =>
+      _then(Input$EventAggregateBoolExp._({
+        ..._instance._$data,
+        if (count != _undefined)
+          'count': (count as Input$eventAggregateBoolExpCount?),
+      }));
+
+  CopyWith$Input$eventAggregateBoolExpCount<TRes> get count {
+    final local$count = _instance.count;
+    return local$count == null
+        ? CopyWith$Input$eventAggregateBoolExpCount.stub(_then(_instance))
+        : CopyWith$Input$eventAggregateBoolExpCount(
+            local$count, (e) => call(count: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$EventAggregateBoolExp<TRes>
+    implements CopyWith$Input$EventAggregateBoolExp<TRes> {
+  _CopyWithStubImpl$Input$EventAggregateBoolExp(this._res);
+
+  TRes _res;
+
+  call({Input$eventAggregateBoolExpCount? count}) => _res;
+
+  CopyWith$Input$eventAggregateBoolExpCount<TRes> get count =>
+      CopyWith$Input$eventAggregateBoolExpCount.stub(_res);
+}
+
+class Input$eventAggregateBoolExpCount {
+  factory Input$eventAggregateBoolExpCount({
+    List<Enum$EventSelectColumn>? arguments,
+    bool? distinct,
+    Input$EventBoolExp? filter,
+    required Input$IntComparisonExp predicate,
+  }) =>
+      Input$eventAggregateBoolExpCount._({
+        if (arguments != null) r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$eventAggregateBoolExpCount._(this._$data);
+
+  factory Input$eventAggregateBoolExpCount.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('arguments')) {
+      final l$arguments = data['arguments'];
+      result$data['arguments'] = (l$arguments as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$EventSelectColumn((e as String)))
+          .toList();
+    }
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$EventBoolExp.fromJson((l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] =
+        Input$IntComparisonExp.fromJson((l$predicate as Map<String, dynamic>));
+    return Input$eventAggregateBoolExpCount._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Enum$EventSelectColumn>? get arguments =>
+      (_$data['arguments'] as List<Enum$EventSelectColumn>?);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$EventBoolExp? get filter => (_$data['filter'] as Input$EventBoolExp?);
+
+  Input$IntComparisonExp get predicate =>
+      (_$data['predicate'] as Input$IntComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('arguments')) {
+      final l$arguments = arguments;
+      result$data['arguments'] =
+          l$arguments?.map((e) => toJson$Enum$EventSelectColumn(e)).toList();
+    }
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$eventAggregateBoolExpCount<Input$eventAggregateBoolExpCount>
+      get copyWith => CopyWith$Input$eventAggregateBoolExpCount(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$eventAggregateBoolExpCount) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (_$data.containsKey('arguments') !=
+        other._$data.containsKey('arguments')) {
+      return false;
+    }
+    if (l$arguments != null && lOther$arguments != null) {
+      if (l$arguments.length != lOther$arguments.length) {
+        return false;
+      }
+      for (int i = 0; i < l$arguments.length; i++) {
+        final l$arguments$entry = l$arguments[i];
+        final lOther$arguments$entry = lOther$arguments[i];
+        if (l$arguments$entry != lOther$arguments$entry) {
+          return false;
+        }
+      }
+    } else if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      _$data.containsKey('arguments')
+          ? l$arguments == null
+              ? null
+              : Object.hashAll(l$arguments.map((v) => v))
+          : const {},
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$eventAggregateBoolExpCount<TRes> {
+  factory CopyWith$Input$eventAggregateBoolExpCount(
+    Input$eventAggregateBoolExpCount instance,
+    TRes Function(Input$eventAggregateBoolExpCount) then,
+  ) = _CopyWithImpl$Input$eventAggregateBoolExpCount;
+
+  factory CopyWith$Input$eventAggregateBoolExpCount.stub(TRes res) =
+      _CopyWithStubImpl$Input$eventAggregateBoolExpCount;
+
+  TRes call({
+    List<Enum$EventSelectColumn>? arguments,
+    bool? distinct,
+    Input$EventBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  });
+  CopyWith$Input$EventBoolExp<TRes> get filter;
+  CopyWith$Input$IntComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$eventAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$eventAggregateBoolExpCount<TRes> {
+  _CopyWithImpl$Input$eventAggregateBoolExpCount(
+    this._instance,
+    this._then,
+  );
+
+  final Input$eventAggregateBoolExpCount _instance;
+
+  final TRes Function(Input$eventAggregateBoolExpCount) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$eventAggregateBoolExpCount._({
+        ..._instance._$data,
+        if (arguments != _undefined)
+          'arguments': (arguments as List<Enum$EventSelectColumn>?),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined) 'filter': (filter as Input$EventBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$IntComparisonExp),
+      }));
+
+  CopyWith$Input$EventBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$EventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$EventBoolExp(local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$IntComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$eventAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$eventAggregateBoolExpCount<TRes> {
+  _CopyWithStubImpl$Input$eventAggregateBoolExpCount(this._res);
+
+  TRes _res;
+
+  call({
+    List<Enum$EventSelectColumn>? arguments,
+    bool? distinct,
+    Input$EventBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$EventBoolExp<TRes> get filter =>
+      CopyWith$Input$EventBoolExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+}
+
+class Input$EventAggregateOrderBy {
+  factory Input$EventAggregateOrderBy({
+    Input$EventAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$EventMaxOrderBy? max,
+    Input$EventMinOrderBy? min,
+    Input$EventStddevOrderBy? stddev,
+    Input$EventStddevPopOrderBy? stddevPop,
+    Input$EventStddevSampOrderBy? stddevSamp,
+    Input$EventSumOrderBy? sum,
+    Input$EventVarPopOrderBy? varPop,
+    Input$EventVarSampOrderBy? varSamp,
+    Input$EventVarianceOrderBy? variance,
+  }) =>
+      Input$EventAggregateOrderBy._({
+        if (avg != null) r'avg': avg,
+        if (count != null) r'count': count,
+        if (max != null) r'max': max,
+        if (min != null) r'min': min,
+        if (stddev != null) r'stddev': stddev,
+        if (stddevPop != null) r'stddevPop': stddevPop,
+        if (stddevSamp != null) r'stddevSamp': stddevSamp,
+        if (sum != null) r'sum': sum,
+        if (varPop != null) r'varPop': varPop,
+        if (varSamp != null) r'varSamp': varSamp,
+        if (variance != null) r'variance': variance,
+      });
+
+  Input$EventAggregateOrderBy._(this._$data);
+
+  factory Input$EventAggregateOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('avg')) {
+      final l$avg = data['avg'];
+      result$data['avg'] = l$avg == null
+          ? null
+          : Input$EventAvgOrderBy.fromJson((l$avg as Map<String, dynamic>));
+    }
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] =
+          l$count == null ? null : fromJson$Enum$OrderBy((l$count as String));
+    }
+    if (data.containsKey('max')) {
+      final l$max = data['max'];
+      result$data['max'] = l$max == null
+          ? null
+          : Input$EventMaxOrderBy.fromJson((l$max as Map<String, dynamic>));
+    }
+    if (data.containsKey('min')) {
+      final l$min = data['min'];
+      result$data['min'] = l$min == null
+          ? null
+          : Input$EventMinOrderBy.fromJson((l$min as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddev')) {
+      final l$stddev = data['stddev'];
+      result$data['stddev'] = l$stddev == null
+          ? null
+          : Input$EventStddevOrderBy.fromJson(
+              (l$stddev as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevPop')) {
+      final l$stddevPop = data['stddevPop'];
+      result$data['stddevPop'] = l$stddevPop == null
+          ? null
+          : Input$EventStddevPopOrderBy.fromJson(
+              (l$stddevPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevSamp')) {
+      final l$stddevSamp = data['stddevSamp'];
+      result$data['stddevSamp'] = l$stddevSamp == null
+          ? null
+          : Input$EventStddevSampOrderBy.fromJson(
+              (l$stddevSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('sum')) {
+      final l$sum = data['sum'];
+      result$data['sum'] = l$sum == null
+          ? null
+          : Input$EventSumOrderBy.fromJson((l$sum as Map<String, dynamic>));
+    }
+    if (data.containsKey('varPop')) {
+      final l$varPop = data['varPop'];
+      result$data['varPop'] = l$varPop == null
+          ? null
+          : Input$EventVarPopOrderBy.fromJson(
+              (l$varPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('varSamp')) {
+      final l$varSamp = data['varSamp'];
+      result$data['varSamp'] = l$varSamp == null
+          ? null
+          : Input$EventVarSampOrderBy.fromJson(
+              (l$varSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('variance')) {
+      final l$variance = data['variance'];
+      result$data['variance'] = l$variance == null
+          ? null
+          : Input$EventVarianceOrderBy.fromJson(
+              (l$variance as Map<String, dynamic>));
+    }
+    return Input$EventAggregateOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$EventAvgOrderBy? get avg => (_$data['avg'] as Input$EventAvgOrderBy?);
+
+  Enum$OrderBy? get count => (_$data['count'] as Enum$OrderBy?);
+
+  Input$EventMaxOrderBy? get max => (_$data['max'] as Input$EventMaxOrderBy?);
+
+  Input$EventMinOrderBy? get min => (_$data['min'] as Input$EventMinOrderBy?);
+
+  Input$EventStddevOrderBy? get stddev =>
+      (_$data['stddev'] as Input$EventStddevOrderBy?);
+
+  Input$EventStddevPopOrderBy? get stddevPop =>
+      (_$data['stddevPop'] as Input$EventStddevPopOrderBy?);
+
+  Input$EventStddevSampOrderBy? get stddevSamp =>
+      (_$data['stddevSamp'] as Input$EventStddevSampOrderBy?);
+
+  Input$EventSumOrderBy? get sum => (_$data['sum'] as Input$EventSumOrderBy?);
+
+  Input$EventVarPopOrderBy? get varPop =>
+      (_$data['varPop'] as Input$EventVarPopOrderBy?);
+
+  Input$EventVarSampOrderBy? get varSamp =>
+      (_$data['varSamp'] as Input$EventVarSampOrderBy?);
+
+  Input$EventVarianceOrderBy? get variance =>
+      (_$data['variance'] as Input$EventVarianceOrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('avg')) {
+      final l$avg = avg;
+      result$data['avg'] = l$avg?.toJson();
+    }
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] =
+          l$count == null ? null : toJson$Enum$OrderBy(l$count);
+    }
+    if (_$data.containsKey('max')) {
+      final l$max = max;
+      result$data['max'] = l$max?.toJson();
+    }
+    if (_$data.containsKey('min')) {
+      final l$min = min;
+      result$data['min'] = l$min?.toJson();
+    }
+    if (_$data.containsKey('stddev')) {
+      final l$stddev = stddev;
+      result$data['stddev'] = l$stddev?.toJson();
+    }
+    if (_$data.containsKey('stddevPop')) {
+      final l$stddevPop = stddevPop;
+      result$data['stddevPop'] = l$stddevPop?.toJson();
+    }
+    if (_$data.containsKey('stddevSamp')) {
+      final l$stddevSamp = stddevSamp;
+      result$data['stddevSamp'] = l$stddevSamp?.toJson();
+    }
+    if (_$data.containsKey('sum')) {
+      final l$sum = sum;
+      result$data['sum'] = l$sum?.toJson();
+    }
+    if (_$data.containsKey('varPop')) {
+      final l$varPop = varPop;
+      result$data['varPop'] = l$varPop?.toJson();
+    }
+    if (_$data.containsKey('varSamp')) {
+      final l$varSamp = varSamp;
+      result$data['varSamp'] = l$varSamp?.toJson();
+    }
+    if (_$data.containsKey('variance')) {
+      final l$variance = variance;
+      result$data['variance'] = l$variance?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$EventAggregateOrderBy<Input$EventAggregateOrderBy>
+      get copyWith => CopyWith$Input$EventAggregateOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$EventAggregateOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$avg = avg;
+    final lOther$avg = other.avg;
+    if (_$data.containsKey('avg') != other._$data.containsKey('avg')) {
+      return false;
+    }
+    if (l$avg != lOther$avg) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    final l$max = max;
+    final lOther$max = other.max;
+    if (_$data.containsKey('max') != other._$data.containsKey('max')) {
+      return false;
+    }
+    if (l$max != lOther$max) {
+      return false;
+    }
+    final l$min = min;
+    final lOther$min = other.min;
+    if (_$data.containsKey('min') != other._$data.containsKey('min')) {
+      return false;
+    }
+    if (l$min != lOther$min) {
+      return false;
+    }
+    final l$stddev = stddev;
+    final lOther$stddev = other.stddev;
+    if (_$data.containsKey('stddev') != other._$data.containsKey('stddev')) {
+      return false;
+    }
+    if (l$stddev != lOther$stddev) {
+      return false;
+    }
+    final l$stddevPop = stddevPop;
+    final lOther$stddevPop = other.stddevPop;
+    if (_$data.containsKey('stddevPop') !=
+        other._$data.containsKey('stddevPop')) {
+      return false;
+    }
+    if (l$stddevPop != lOther$stddevPop) {
+      return false;
+    }
+    final l$stddevSamp = stddevSamp;
+    final lOther$stddevSamp = other.stddevSamp;
+    if (_$data.containsKey('stddevSamp') !=
+        other._$data.containsKey('stddevSamp')) {
+      return false;
+    }
+    if (l$stddevSamp != lOther$stddevSamp) {
+      return false;
+    }
+    final l$sum = sum;
+    final lOther$sum = other.sum;
+    if (_$data.containsKey('sum') != other._$data.containsKey('sum')) {
+      return false;
+    }
+    if (l$sum != lOther$sum) {
+      return false;
+    }
+    final l$varPop = varPop;
+    final lOther$varPop = other.varPop;
+    if (_$data.containsKey('varPop') != other._$data.containsKey('varPop')) {
+      return false;
+    }
+    if (l$varPop != lOther$varPop) {
+      return false;
+    }
+    final l$varSamp = varSamp;
+    final lOther$varSamp = other.varSamp;
+    if (_$data.containsKey('varSamp') != other._$data.containsKey('varSamp')) {
+      return false;
+    }
+    if (l$varSamp != lOther$varSamp) {
+      return false;
+    }
+    final l$variance = variance;
+    final lOther$variance = other.variance;
+    if (_$data.containsKey('variance') !=
+        other._$data.containsKey('variance')) {
+      return false;
+    }
+    if (l$variance != lOther$variance) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$avg = avg;
+    final l$count = count;
+    final l$max = max;
+    final l$min = min;
+    final l$stddev = stddev;
+    final l$stddevPop = stddevPop;
+    final l$stddevSamp = stddevSamp;
+    final l$sum = sum;
+    final l$varPop = varPop;
+    final l$varSamp = varSamp;
+    final l$variance = variance;
+    return Object.hashAll([
+      _$data.containsKey('avg') ? l$avg : const {},
+      _$data.containsKey('count') ? l$count : const {},
+      _$data.containsKey('max') ? l$max : const {},
+      _$data.containsKey('min') ? l$min : const {},
+      _$data.containsKey('stddev') ? l$stddev : const {},
+      _$data.containsKey('stddevPop') ? l$stddevPop : const {},
+      _$data.containsKey('stddevSamp') ? l$stddevSamp : const {},
+      _$data.containsKey('sum') ? l$sum : const {},
+      _$data.containsKey('varPop') ? l$varPop : const {},
+      _$data.containsKey('varSamp') ? l$varSamp : const {},
+      _$data.containsKey('variance') ? l$variance : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$EventAggregateOrderBy<TRes> {
+  factory CopyWith$Input$EventAggregateOrderBy(
+    Input$EventAggregateOrderBy instance,
+    TRes Function(Input$EventAggregateOrderBy) then,
+  ) = _CopyWithImpl$Input$EventAggregateOrderBy;
+
+  factory CopyWith$Input$EventAggregateOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$EventAggregateOrderBy;
+
+  TRes call({
+    Input$EventAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$EventMaxOrderBy? max,
+    Input$EventMinOrderBy? min,
+    Input$EventStddevOrderBy? stddev,
+    Input$EventStddevPopOrderBy? stddevPop,
+    Input$EventStddevSampOrderBy? stddevSamp,
+    Input$EventSumOrderBy? sum,
+    Input$EventVarPopOrderBy? varPop,
+    Input$EventVarSampOrderBy? varSamp,
+    Input$EventVarianceOrderBy? variance,
+  });
+  CopyWith$Input$EventAvgOrderBy<TRes> get avg;
+  CopyWith$Input$EventMaxOrderBy<TRes> get max;
+  CopyWith$Input$EventMinOrderBy<TRes> get min;
+  CopyWith$Input$EventStddevOrderBy<TRes> get stddev;
+  CopyWith$Input$EventStddevPopOrderBy<TRes> get stddevPop;
+  CopyWith$Input$EventStddevSampOrderBy<TRes> get stddevSamp;
+  CopyWith$Input$EventSumOrderBy<TRes> get sum;
+  CopyWith$Input$EventVarPopOrderBy<TRes> get varPop;
+  CopyWith$Input$EventVarSampOrderBy<TRes> get varSamp;
+  CopyWith$Input$EventVarianceOrderBy<TRes> get variance;
+}
+
+class _CopyWithImpl$Input$EventAggregateOrderBy<TRes>
+    implements CopyWith$Input$EventAggregateOrderBy<TRes> {
+  _CopyWithImpl$Input$EventAggregateOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$EventAggregateOrderBy _instance;
+
+  final TRes Function(Input$EventAggregateOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? avg = _undefined,
+    Object? count = _undefined,
+    Object? max = _undefined,
+    Object? min = _undefined,
+    Object? stddev = _undefined,
+    Object? stddevPop = _undefined,
+    Object? stddevSamp = _undefined,
+    Object? sum = _undefined,
+    Object? varPop = _undefined,
+    Object? varSamp = _undefined,
+    Object? variance = _undefined,
+  }) =>
+      _then(Input$EventAggregateOrderBy._({
+        ..._instance._$data,
+        if (avg != _undefined) 'avg': (avg as Input$EventAvgOrderBy?),
+        if (count != _undefined) 'count': (count as Enum$OrderBy?),
+        if (max != _undefined) 'max': (max as Input$EventMaxOrderBy?),
+        if (min != _undefined) 'min': (min as Input$EventMinOrderBy?),
+        if (stddev != _undefined)
+          'stddev': (stddev as Input$EventStddevOrderBy?),
+        if (stddevPop != _undefined)
+          'stddevPop': (stddevPop as Input$EventStddevPopOrderBy?),
+        if (stddevSamp != _undefined)
+          'stddevSamp': (stddevSamp as Input$EventStddevSampOrderBy?),
+        if (sum != _undefined) 'sum': (sum as Input$EventSumOrderBy?),
+        if (varPop != _undefined)
+          'varPop': (varPop as Input$EventVarPopOrderBy?),
+        if (varSamp != _undefined)
+          'varSamp': (varSamp as Input$EventVarSampOrderBy?),
+        if (variance != _undefined)
+          'variance': (variance as Input$EventVarianceOrderBy?),
+      }));
+
+  CopyWith$Input$EventAvgOrderBy<TRes> get avg {
+    final local$avg = _instance.avg;
+    return local$avg == null
+        ? CopyWith$Input$EventAvgOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventAvgOrderBy(local$avg, (e) => call(avg: e));
+  }
+
+  CopyWith$Input$EventMaxOrderBy<TRes> get max {
+    final local$max = _instance.max;
+    return local$max == null
+        ? CopyWith$Input$EventMaxOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventMaxOrderBy(local$max, (e) => call(max: e));
+  }
+
+  CopyWith$Input$EventMinOrderBy<TRes> get min {
+    final local$min = _instance.min;
+    return local$min == null
+        ? CopyWith$Input$EventMinOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventMinOrderBy(local$min, (e) => call(min: e));
+  }
+
+  CopyWith$Input$EventStddevOrderBy<TRes> get stddev {
+    final local$stddev = _instance.stddev;
+    return local$stddev == null
+        ? CopyWith$Input$EventStddevOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventStddevOrderBy(
+            local$stddev, (e) => call(stddev: e));
+  }
+
+  CopyWith$Input$EventStddevPopOrderBy<TRes> get stddevPop {
+    final local$stddevPop = _instance.stddevPop;
+    return local$stddevPop == null
+        ? CopyWith$Input$EventStddevPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventStddevPopOrderBy(
+            local$stddevPop, (e) => call(stddevPop: e));
+  }
+
+  CopyWith$Input$EventStddevSampOrderBy<TRes> get stddevSamp {
+    final local$stddevSamp = _instance.stddevSamp;
+    return local$stddevSamp == null
+        ? CopyWith$Input$EventStddevSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventStddevSampOrderBy(
+            local$stddevSamp, (e) => call(stddevSamp: e));
+  }
+
+  CopyWith$Input$EventSumOrderBy<TRes> get sum {
+    final local$sum = _instance.sum;
+    return local$sum == null
+        ? CopyWith$Input$EventSumOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventSumOrderBy(local$sum, (e) => call(sum: e));
+  }
+
+  CopyWith$Input$EventVarPopOrderBy<TRes> get varPop {
+    final local$varPop = _instance.varPop;
+    return local$varPop == null
+        ? CopyWith$Input$EventVarPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventVarPopOrderBy(
+            local$varPop, (e) => call(varPop: e));
+  }
+
+  CopyWith$Input$EventVarSampOrderBy<TRes> get varSamp {
+    final local$varSamp = _instance.varSamp;
+    return local$varSamp == null
+        ? CopyWith$Input$EventVarSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventVarSampOrderBy(
+            local$varSamp, (e) => call(varSamp: e));
+  }
+
+  CopyWith$Input$EventVarianceOrderBy<TRes> get variance {
+    final local$variance = _instance.variance;
+    return local$variance == null
+        ? CopyWith$Input$EventVarianceOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventVarianceOrderBy(
+            local$variance, (e) => call(variance: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$EventAggregateOrderBy<TRes>
+    implements CopyWith$Input$EventAggregateOrderBy<TRes> {
+  _CopyWithStubImpl$Input$EventAggregateOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Input$EventAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$EventMaxOrderBy? max,
+    Input$EventMinOrderBy? min,
+    Input$EventStddevOrderBy? stddev,
+    Input$EventStddevPopOrderBy? stddevPop,
+    Input$EventStddevSampOrderBy? stddevSamp,
+    Input$EventSumOrderBy? sum,
+    Input$EventVarPopOrderBy? varPop,
+    Input$EventVarSampOrderBy? varSamp,
+    Input$EventVarianceOrderBy? variance,
+  }) =>
+      _res;
+
+  CopyWith$Input$EventAvgOrderBy<TRes> get avg =>
+      CopyWith$Input$EventAvgOrderBy.stub(_res);
+
+  CopyWith$Input$EventMaxOrderBy<TRes> get max =>
+      CopyWith$Input$EventMaxOrderBy.stub(_res);
+
+  CopyWith$Input$EventMinOrderBy<TRes> get min =>
+      CopyWith$Input$EventMinOrderBy.stub(_res);
+
+  CopyWith$Input$EventStddevOrderBy<TRes> get stddev =>
+      CopyWith$Input$EventStddevOrderBy.stub(_res);
+
+  CopyWith$Input$EventStddevPopOrderBy<TRes> get stddevPop =>
+      CopyWith$Input$EventStddevPopOrderBy.stub(_res);
+
+  CopyWith$Input$EventStddevSampOrderBy<TRes> get stddevSamp =>
+      CopyWith$Input$EventStddevSampOrderBy.stub(_res);
+
+  CopyWith$Input$EventSumOrderBy<TRes> get sum =>
+      CopyWith$Input$EventSumOrderBy.stub(_res);
+
+  CopyWith$Input$EventVarPopOrderBy<TRes> get varPop =>
+      CopyWith$Input$EventVarPopOrderBy.stub(_res);
+
+  CopyWith$Input$EventVarSampOrderBy<TRes> get varSamp =>
+      CopyWith$Input$EventVarSampOrderBy.stub(_res);
+
+  CopyWith$Input$EventVarianceOrderBy<TRes> get variance =>
+      CopyWith$Input$EventVarianceOrderBy.stub(_res);
+}
+
+class Input$EventAvgOrderBy {
+  factory Input$EventAvgOrderBy({Enum$OrderBy? index}) =>
+      Input$EventAvgOrderBy._({
+        if (index != null) r'index': index,
+      });
+
+  Input$EventAvgOrderBy._(this._$data);
+
+  factory Input$EventAvgOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    return Input$EventAvgOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$EventAvgOrderBy<Input$EventAvgOrderBy> get copyWith =>
+      CopyWith$Input$EventAvgOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$EventAvgOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$index = index;
+    return Object.hashAll([_$data.containsKey('index') ? l$index : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$EventAvgOrderBy<TRes> {
+  factory CopyWith$Input$EventAvgOrderBy(
+    Input$EventAvgOrderBy instance,
+    TRes Function(Input$EventAvgOrderBy) then,
+  ) = _CopyWithImpl$Input$EventAvgOrderBy;
+
+  factory CopyWith$Input$EventAvgOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$EventAvgOrderBy;
+
+  TRes call({Enum$OrderBy? index});
+}
+
+class _CopyWithImpl$Input$EventAvgOrderBy<TRes>
+    implements CopyWith$Input$EventAvgOrderBy<TRes> {
+  _CopyWithImpl$Input$EventAvgOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$EventAvgOrderBy _instance;
+
+  final TRes Function(Input$EventAvgOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? index = _undefined}) => _then(Input$EventAvgOrderBy._({
+        ..._instance._$data,
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$EventAvgOrderBy<TRes>
+    implements CopyWith$Input$EventAvgOrderBy<TRes> {
+  _CopyWithStubImpl$Input$EventAvgOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? index}) => _res;
+}
+
+class Input$EventBoolExp {
+  factory Input$EventBoolExp({
+    List<Input$EventBoolExp>? $_and,
+    Input$EventBoolExp? $_not,
+    List<Input$EventBoolExp>? $_or,
+    Input$JsonbComparisonExp? args,
+    Input$StringArrayComparisonExp? argsStr,
+    Input$BlockBoolExp? block,
+    Input$StringComparisonExp? blockId,
+    Input$CallBoolExp? $call,
+    Input$StringComparisonExp? callId,
+    Input$ExtrinsicBoolExp? extrinsic,
+    Input$StringComparisonExp? extrinsicId,
+    Input$StringComparisonExp? id,
+    Input$IntComparisonExp? index,
+    Input$StringComparisonExp? name,
+    Input$StringComparisonExp? pallet,
+    Input$StringComparisonExp? phase,
+  }) =>
+      Input$EventBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (args != null) r'args': args,
+        if (argsStr != null) r'argsStr': argsStr,
+        if (block != null) r'block': block,
+        if (blockId != null) r'blockId': blockId,
+        if ($call != null) r'call': $call,
+        if (callId != null) r'callId': callId,
+        if (extrinsic != null) r'extrinsic': extrinsic,
+        if (extrinsicId != null) r'extrinsicId': extrinsicId,
+        if (id != null) r'id': id,
+        if (index != null) r'index': index,
+        if (name != null) r'name': name,
+        if (pallet != null) r'pallet': pallet,
+        if (phase != null) r'phase': phase,
+      });
+
+  Input$EventBoolExp._(this._$data);
+
+  factory Input$EventBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map((e) => Input$EventBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$EventBoolExp.fromJson((l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map((e) => Input$EventBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('args')) {
+      final l$args = data['args'];
+      result$data['args'] = l$args == null
+          ? null
+          : Input$JsonbComparisonExp.fromJson((l$args as Map<String, dynamic>));
+    }
+    if (data.containsKey('argsStr')) {
+      final l$argsStr = data['argsStr'];
+      result$data['argsStr'] = l$argsStr == null
+          ? null
+          : Input$StringArrayComparisonExp.fromJson(
+              (l$argsStr as Map<String, dynamic>));
+    }
+    if (data.containsKey('block')) {
+      final l$block = data['block'];
+      result$data['block'] = l$block == null
+          ? null
+          : Input$BlockBoolExp.fromJson((l$block as Map<String, dynamic>));
+    }
+    if (data.containsKey('blockId')) {
+      final l$blockId = data['blockId'];
+      result$data['blockId'] = l$blockId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$blockId as Map<String, dynamic>));
+    }
+    if (data.containsKey('call')) {
+      final l$$call = data['call'];
+      result$data['call'] = l$$call == null
+          ? null
+          : Input$CallBoolExp.fromJson((l$$call as Map<String, dynamic>));
+    }
+    if (data.containsKey('callId')) {
+      final l$callId = data['callId'];
+      result$data['callId'] = l$callId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$callId as Map<String, dynamic>));
+    }
+    if (data.containsKey('extrinsic')) {
+      final l$extrinsic = data['extrinsic'];
+      result$data['extrinsic'] = l$extrinsic == null
+          ? null
+          : Input$ExtrinsicBoolExp.fromJson(
+              (l$extrinsic as Map<String, dynamic>));
+    }
+    if (data.containsKey('extrinsicId')) {
+      final l$extrinsicId = data['extrinsicId'];
+      result$data['extrinsicId'] = l$extrinsicId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$extrinsicId as Map<String, dynamic>));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] = l$index == null
+          ? null
+          : Input$IntComparisonExp.fromJson((l$index as Map<String, dynamic>));
+    }
+    if (data.containsKey('name')) {
+      final l$name = data['name'];
+      result$data['name'] = l$name == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$name as Map<String, dynamic>));
+    }
+    if (data.containsKey('pallet')) {
+      final l$pallet = data['pallet'];
+      result$data['pallet'] = l$pallet == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$pallet as Map<String, dynamic>));
+    }
+    if (data.containsKey('phase')) {
+      final l$phase = data['phase'];
+      result$data['phase'] = l$phase == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$phase as Map<String, dynamic>));
+    }
+    return Input$EventBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$EventBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$EventBoolExp>?);
+
+  Input$EventBoolExp? get $_not => (_$data['_not'] as Input$EventBoolExp?);
+
+  List<Input$EventBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$EventBoolExp>?);
+
+  Input$JsonbComparisonExp? get args =>
+      (_$data['args'] as Input$JsonbComparisonExp?);
+
+  Input$StringArrayComparisonExp? get argsStr =>
+      (_$data['argsStr'] as Input$StringArrayComparisonExp?);
+
+  Input$BlockBoolExp? get block => (_$data['block'] as Input$BlockBoolExp?);
+
+  Input$StringComparisonExp? get blockId =>
+      (_$data['blockId'] as Input$StringComparisonExp?);
+
+  Input$CallBoolExp? get $call => (_$data['call'] as Input$CallBoolExp?);
+
+  Input$StringComparisonExp? get callId =>
+      (_$data['callId'] as Input$StringComparisonExp?);
+
+  Input$ExtrinsicBoolExp? get extrinsic =>
+      (_$data['extrinsic'] as Input$ExtrinsicBoolExp?);
+
+  Input$StringComparisonExp? get extrinsicId =>
+      (_$data['extrinsicId'] as Input$StringComparisonExp?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Input$IntComparisonExp? get index =>
+      (_$data['index'] as Input$IntComparisonExp?);
+
+  Input$StringComparisonExp? get name =>
+      (_$data['name'] as Input$StringComparisonExp?);
+
+  Input$StringComparisonExp? get pallet =>
+      (_$data['pallet'] as Input$StringComparisonExp?);
+
+  Input$StringComparisonExp? get phase =>
+      (_$data['phase'] as Input$StringComparisonExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('args')) {
+      final l$args = args;
+      result$data['args'] = l$args?.toJson();
+    }
+    if (_$data.containsKey('argsStr')) {
+      final l$argsStr = argsStr;
+      result$data['argsStr'] = l$argsStr?.toJson();
+    }
+    if (_$data.containsKey('block')) {
+      final l$block = block;
+      result$data['block'] = l$block?.toJson();
+    }
+    if (_$data.containsKey('blockId')) {
+      final l$blockId = blockId;
+      result$data['blockId'] = l$blockId?.toJson();
+    }
+    if (_$data.containsKey('call')) {
+      final l$$call = $call;
+      result$data['call'] = l$$call?.toJson();
+    }
+    if (_$data.containsKey('callId')) {
+      final l$callId = callId;
+      result$data['callId'] = l$callId?.toJson();
+    }
+    if (_$data.containsKey('extrinsic')) {
+      final l$extrinsic = extrinsic;
+      result$data['extrinsic'] = l$extrinsic?.toJson();
+    }
+    if (_$data.containsKey('extrinsicId')) {
+      final l$extrinsicId = extrinsicId;
+      result$data['extrinsicId'] = l$extrinsicId?.toJson();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] = l$index?.toJson();
+    }
+    if (_$data.containsKey('name')) {
+      final l$name = name;
+      result$data['name'] = l$name?.toJson();
+    }
+    if (_$data.containsKey('pallet')) {
+      final l$pallet = pallet;
+      result$data['pallet'] = l$pallet?.toJson();
+    }
+    if (_$data.containsKey('phase')) {
+      final l$phase = phase;
+      result$data['phase'] = l$phase?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$EventBoolExp<Input$EventBoolExp> get copyWith =>
+      CopyWith$Input$EventBoolExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$EventBoolExp) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$args = args;
+    final lOther$args = other.args;
+    if (_$data.containsKey('args') != other._$data.containsKey('args')) {
+      return false;
+    }
+    if (l$args != lOther$args) {
+      return false;
+    }
+    final l$argsStr = argsStr;
+    final lOther$argsStr = other.argsStr;
+    if (_$data.containsKey('argsStr') != other._$data.containsKey('argsStr')) {
+      return false;
+    }
+    if (l$argsStr != lOther$argsStr) {
+      return false;
+    }
+    final l$block = block;
+    final lOther$block = other.block;
+    if (_$data.containsKey('block') != other._$data.containsKey('block')) {
+      return false;
+    }
+    if (l$block != lOther$block) {
+      return false;
+    }
+    final l$blockId = blockId;
+    final lOther$blockId = other.blockId;
+    if (_$data.containsKey('blockId') != other._$data.containsKey('blockId')) {
+      return false;
+    }
+    if (l$blockId != lOther$blockId) {
+      return false;
+    }
+    final l$$call = $call;
+    final lOther$$call = other.$call;
+    if (_$data.containsKey('call') != other._$data.containsKey('call')) {
+      return false;
+    }
+    if (l$$call != lOther$$call) {
+      return false;
+    }
+    final l$callId = callId;
+    final lOther$callId = other.callId;
+    if (_$data.containsKey('callId') != other._$data.containsKey('callId')) {
+      return false;
+    }
+    if (l$callId != lOther$callId) {
+      return false;
+    }
+    final l$extrinsic = extrinsic;
+    final lOther$extrinsic = other.extrinsic;
+    if (_$data.containsKey('extrinsic') !=
+        other._$data.containsKey('extrinsic')) {
+      return false;
+    }
+    if (l$extrinsic != lOther$extrinsic) {
+      return false;
+    }
+    final l$extrinsicId = extrinsicId;
+    final lOther$extrinsicId = other.extrinsicId;
+    if (_$data.containsKey('extrinsicId') !=
+        other._$data.containsKey('extrinsicId')) {
+      return false;
+    }
+    if (l$extrinsicId != lOther$extrinsicId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$name = name;
+    final lOther$name = other.name;
+    if (_$data.containsKey('name') != other._$data.containsKey('name')) {
+      return false;
+    }
+    if (l$name != lOther$name) {
+      return false;
+    }
+    final l$pallet = pallet;
+    final lOther$pallet = other.pallet;
+    if (_$data.containsKey('pallet') != other._$data.containsKey('pallet')) {
+      return false;
+    }
+    if (l$pallet != lOther$pallet) {
+      return false;
+    }
+    final l$phase = phase;
+    final lOther$phase = other.phase;
+    if (_$data.containsKey('phase') != other._$data.containsKey('phase')) {
+      return false;
+    }
+    if (l$phase != lOther$phase) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$args = args;
+    final l$argsStr = argsStr;
+    final l$block = block;
+    final l$blockId = blockId;
+    final l$$call = $call;
+    final l$callId = callId;
+    final l$extrinsic = extrinsic;
+    final l$extrinsicId = extrinsicId;
+    final l$id = id;
+    final l$index = index;
+    final l$name = name;
+    final l$pallet = pallet;
+    final l$phase = phase;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('args') ? l$args : const {},
+      _$data.containsKey('argsStr') ? l$argsStr : const {},
+      _$data.containsKey('block') ? l$block : const {},
+      _$data.containsKey('blockId') ? l$blockId : const {},
+      _$data.containsKey('call') ? l$$call : const {},
+      _$data.containsKey('callId') ? l$callId : const {},
+      _$data.containsKey('extrinsic') ? l$extrinsic : const {},
+      _$data.containsKey('extrinsicId') ? l$extrinsicId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('name') ? l$name : const {},
+      _$data.containsKey('pallet') ? l$pallet : const {},
+      _$data.containsKey('phase') ? l$phase : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$EventBoolExp<TRes> {
+  factory CopyWith$Input$EventBoolExp(
+    Input$EventBoolExp instance,
+    TRes Function(Input$EventBoolExp) then,
+  ) = _CopyWithImpl$Input$EventBoolExp;
+
+  factory CopyWith$Input$EventBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$EventBoolExp;
+
+  TRes call({
+    List<Input$EventBoolExp>? $_and,
+    Input$EventBoolExp? $_not,
+    List<Input$EventBoolExp>? $_or,
+    Input$JsonbComparisonExp? args,
+    Input$StringArrayComparisonExp? argsStr,
+    Input$BlockBoolExp? block,
+    Input$StringComparisonExp? blockId,
+    Input$CallBoolExp? $call,
+    Input$StringComparisonExp? callId,
+    Input$ExtrinsicBoolExp? extrinsic,
+    Input$StringComparisonExp? extrinsicId,
+    Input$StringComparisonExp? id,
+    Input$IntComparisonExp? index,
+    Input$StringComparisonExp? name,
+    Input$StringComparisonExp? pallet,
+    Input$StringComparisonExp? phase,
+  });
+  TRes $_and(
+      Iterable<Input$EventBoolExp>? Function(
+              Iterable<CopyWith$Input$EventBoolExp<Input$EventBoolExp>>?)
+          _fn);
+  CopyWith$Input$EventBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$EventBoolExp>? Function(
+              Iterable<CopyWith$Input$EventBoolExp<Input$EventBoolExp>>?)
+          _fn);
+  CopyWith$Input$JsonbComparisonExp<TRes> get args;
+  CopyWith$Input$StringArrayComparisonExp<TRes> get argsStr;
+  CopyWith$Input$BlockBoolExp<TRes> get block;
+  CopyWith$Input$StringComparisonExp<TRes> get blockId;
+  CopyWith$Input$CallBoolExp<TRes> get $call;
+  CopyWith$Input$StringComparisonExp<TRes> get callId;
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get extrinsic;
+  CopyWith$Input$StringComparisonExp<TRes> get extrinsicId;
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+  CopyWith$Input$IntComparisonExp<TRes> get index;
+  CopyWith$Input$StringComparisonExp<TRes> get name;
+  CopyWith$Input$StringComparisonExp<TRes> get pallet;
+  CopyWith$Input$StringComparisonExp<TRes> get phase;
+}
+
+class _CopyWithImpl$Input$EventBoolExp<TRes>
+    implements CopyWith$Input$EventBoolExp<TRes> {
+  _CopyWithImpl$Input$EventBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$EventBoolExp _instance;
+
+  final TRes Function(Input$EventBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? args = _undefined,
+    Object? argsStr = _undefined,
+    Object? block = _undefined,
+    Object? blockId = _undefined,
+    Object? $call = _undefined,
+    Object? callId = _undefined,
+    Object? extrinsic = _undefined,
+    Object? extrinsicId = _undefined,
+    Object? id = _undefined,
+    Object? index = _undefined,
+    Object? name = _undefined,
+    Object? pallet = _undefined,
+    Object? phase = _undefined,
+  }) =>
+      _then(Input$EventBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined) '_and': ($_and as List<Input$EventBoolExp>?),
+        if ($_not != _undefined) '_not': ($_not as Input$EventBoolExp?),
+        if ($_or != _undefined) '_or': ($_or as List<Input$EventBoolExp>?),
+        if (args != _undefined) 'args': (args as Input$JsonbComparisonExp?),
+        if (argsStr != _undefined)
+          'argsStr': (argsStr as Input$StringArrayComparisonExp?),
+        if (block != _undefined) 'block': (block as Input$BlockBoolExp?),
+        if (blockId != _undefined)
+          'blockId': (blockId as Input$StringComparisonExp?),
+        if ($call != _undefined) 'call': ($call as Input$CallBoolExp?),
+        if (callId != _undefined)
+          'callId': (callId as Input$StringComparisonExp?),
+        if (extrinsic != _undefined)
+          'extrinsic': (extrinsic as Input$ExtrinsicBoolExp?),
+        if (extrinsicId != _undefined)
+          'extrinsicId': (extrinsicId as Input$StringComparisonExp?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+        if (index != _undefined) 'index': (index as Input$IntComparisonExp?),
+        if (name != _undefined) 'name': (name as Input$StringComparisonExp?),
+        if (pallet != _undefined)
+          'pallet': (pallet as Input$StringComparisonExp?),
+        if (phase != _undefined) 'phase': (phase as Input$StringComparisonExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$EventBoolExp>? Function(
+                  Iterable<CopyWith$Input$EventBoolExp<Input$EventBoolExp>>?)
+              _fn) =>
+      call(
+          $_and: _fn(_instance.$_and?.map((e) => CopyWith$Input$EventBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$EventBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$EventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$EventBoolExp(local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$EventBoolExp>? Function(
+                  Iterable<CopyWith$Input$EventBoolExp<Input$EventBoolExp>>?)
+              _fn) =>
+      call(
+          $_or: _fn(_instance.$_or?.map((e) => CopyWith$Input$EventBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$JsonbComparisonExp<TRes> get args {
+    final local$args = _instance.args;
+    return local$args == null
+        ? CopyWith$Input$JsonbComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$JsonbComparisonExp(local$args, (e) => call(args: e));
+  }
+
+  CopyWith$Input$StringArrayComparisonExp<TRes> get argsStr {
+    final local$argsStr = _instance.argsStr;
+    return local$argsStr == null
+        ? CopyWith$Input$StringArrayComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringArrayComparisonExp(
+            local$argsStr, (e) => call(argsStr: e));
+  }
+
+  CopyWith$Input$BlockBoolExp<TRes> get block {
+    final local$block = _instance.block;
+    return local$block == null
+        ? CopyWith$Input$BlockBoolExp.stub(_then(_instance))
+        : CopyWith$Input$BlockBoolExp(local$block, (e) => call(block: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get blockId {
+    final local$blockId = _instance.blockId;
+    return local$blockId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$blockId, (e) => call(blockId: e));
+  }
+
+  CopyWith$Input$CallBoolExp<TRes> get $call {
+    final local$$call = _instance.$call;
+    return local$$call == null
+        ? CopyWith$Input$CallBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CallBoolExp(local$$call, (e) => call($call: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get callId {
+    final local$callId = _instance.callId;
+    return local$callId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$callId, (e) => call(callId: e));
+  }
+
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get extrinsic {
+    final local$extrinsic = _instance.extrinsic;
+    return local$extrinsic == null
+        ? CopyWith$Input$ExtrinsicBoolExp.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicBoolExp(
+            local$extrinsic, (e) => call(extrinsic: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get extrinsicId {
+    final local$extrinsicId = _instance.extrinsicId;
+    return local$extrinsicId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$extrinsicId, (e) => call(extrinsicId: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get index {
+    final local$index = _instance.index;
+    return local$index == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(local$index, (e) => call(index: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get name {
+    final local$name = _instance.name;
+    return local$name == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$name, (e) => call(name: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get pallet {
+    final local$pallet = _instance.pallet;
+    return local$pallet == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$pallet, (e) => call(pallet: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get phase {
+    final local$phase = _instance.phase;
+    return local$phase == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$phase, (e) => call(phase: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$EventBoolExp<TRes>
+    implements CopyWith$Input$EventBoolExp<TRes> {
+  _CopyWithStubImpl$Input$EventBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$EventBoolExp>? $_and,
+    Input$EventBoolExp? $_not,
+    List<Input$EventBoolExp>? $_or,
+    Input$JsonbComparisonExp? args,
+    Input$StringArrayComparisonExp? argsStr,
+    Input$BlockBoolExp? block,
+    Input$StringComparisonExp? blockId,
+    Input$CallBoolExp? $call,
+    Input$StringComparisonExp? callId,
+    Input$ExtrinsicBoolExp? extrinsic,
+    Input$StringComparisonExp? extrinsicId,
+    Input$StringComparisonExp? id,
+    Input$IntComparisonExp? index,
+    Input$StringComparisonExp? name,
+    Input$StringComparisonExp? pallet,
+    Input$StringComparisonExp? phase,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$EventBoolExp<TRes> get $_not =>
+      CopyWith$Input$EventBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$JsonbComparisonExp<TRes> get args =>
+      CopyWith$Input$JsonbComparisonExp.stub(_res);
+
+  CopyWith$Input$StringArrayComparisonExp<TRes> get argsStr =>
+      CopyWith$Input$StringArrayComparisonExp.stub(_res);
+
+  CopyWith$Input$BlockBoolExp<TRes> get block =>
+      CopyWith$Input$BlockBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get blockId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$CallBoolExp<TRes> get $call =>
+      CopyWith$Input$CallBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get callId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get extrinsic =>
+      CopyWith$Input$ExtrinsicBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get extrinsicId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get index =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get name =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get pallet =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get phase =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+}
+
+class Input$EventMaxOrderBy {
+  factory Input$EventMaxOrderBy({
+    Enum$OrderBy? argsStr,
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? callId,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Enum$OrderBy? phase,
+  }) =>
+      Input$EventMaxOrderBy._({
+        if (argsStr != null) r'argsStr': argsStr,
+        if (blockId != null) r'blockId': blockId,
+        if (callId != null) r'callId': callId,
+        if (extrinsicId != null) r'extrinsicId': extrinsicId,
+        if (id != null) r'id': id,
+        if (index != null) r'index': index,
+        if (name != null) r'name': name,
+        if (pallet != null) r'pallet': pallet,
+        if (phase != null) r'phase': phase,
+      });
+
+  Input$EventMaxOrderBy._(this._$data);
+
+  factory Input$EventMaxOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('argsStr')) {
+      final l$argsStr = data['argsStr'];
+      result$data['argsStr'] = l$argsStr == null
+          ? null
+          : fromJson$Enum$OrderBy((l$argsStr as String));
+    }
+    if (data.containsKey('blockId')) {
+      final l$blockId = data['blockId'];
+      result$data['blockId'] = l$blockId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockId as String));
+    }
+    if (data.containsKey('callId')) {
+      final l$callId = data['callId'];
+      result$data['callId'] =
+          l$callId == null ? null : fromJson$Enum$OrderBy((l$callId as String));
+    }
+    if (data.containsKey('extrinsicId')) {
+      final l$extrinsicId = data['extrinsicId'];
+      result$data['extrinsicId'] = l$extrinsicId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$extrinsicId as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    if (data.containsKey('name')) {
+      final l$name = data['name'];
+      result$data['name'] =
+          l$name == null ? null : fromJson$Enum$OrderBy((l$name as String));
+    }
+    if (data.containsKey('pallet')) {
+      final l$pallet = data['pallet'];
+      result$data['pallet'] =
+          l$pallet == null ? null : fromJson$Enum$OrderBy((l$pallet as String));
+    }
+    if (data.containsKey('phase')) {
+      final l$phase = data['phase'];
+      result$data['phase'] =
+          l$phase == null ? null : fromJson$Enum$OrderBy((l$phase as String));
+    }
+    return Input$EventMaxOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get argsStr => (_$data['argsStr'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockId => (_$data['blockId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get callId => (_$data['callId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get extrinsicId => (_$data['extrinsicId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get name => (_$data['name'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get pallet => (_$data['pallet'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get phase => (_$data['phase'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('argsStr')) {
+      final l$argsStr = argsStr;
+      result$data['argsStr'] =
+          l$argsStr == null ? null : toJson$Enum$OrderBy(l$argsStr);
+    }
+    if (_$data.containsKey('blockId')) {
+      final l$blockId = blockId;
+      result$data['blockId'] =
+          l$blockId == null ? null : toJson$Enum$OrderBy(l$blockId);
+    }
+    if (_$data.containsKey('callId')) {
+      final l$callId = callId;
+      result$data['callId'] =
+          l$callId == null ? null : toJson$Enum$OrderBy(l$callId);
+    }
+    if (_$data.containsKey('extrinsicId')) {
+      final l$extrinsicId = extrinsicId;
+      result$data['extrinsicId'] =
+          l$extrinsicId == null ? null : toJson$Enum$OrderBy(l$extrinsicId);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    if (_$data.containsKey('name')) {
+      final l$name = name;
+      result$data['name'] = l$name == null ? null : toJson$Enum$OrderBy(l$name);
+    }
+    if (_$data.containsKey('pallet')) {
+      final l$pallet = pallet;
+      result$data['pallet'] =
+          l$pallet == null ? null : toJson$Enum$OrderBy(l$pallet);
+    }
+    if (_$data.containsKey('phase')) {
+      final l$phase = phase;
+      result$data['phase'] =
+          l$phase == null ? null : toJson$Enum$OrderBy(l$phase);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$EventMaxOrderBy<Input$EventMaxOrderBy> get copyWith =>
+      CopyWith$Input$EventMaxOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$EventMaxOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$argsStr = argsStr;
+    final lOther$argsStr = other.argsStr;
+    if (_$data.containsKey('argsStr') != other._$data.containsKey('argsStr')) {
+      return false;
+    }
+    if (l$argsStr != lOther$argsStr) {
+      return false;
+    }
+    final l$blockId = blockId;
+    final lOther$blockId = other.blockId;
+    if (_$data.containsKey('blockId') != other._$data.containsKey('blockId')) {
+      return false;
+    }
+    if (l$blockId != lOther$blockId) {
+      return false;
+    }
+    final l$callId = callId;
+    final lOther$callId = other.callId;
+    if (_$data.containsKey('callId') != other._$data.containsKey('callId')) {
+      return false;
+    }
+    if (l$callId != lOther$callId) {
+      return false;
+    }
+    final l$extrinsicId = extrinsicId;
+    final lOther$extrinsicId = other.extrinsicId;
+    if (_$data.containsKey('extrinsicId') !=
+        other._$data.containsKey('extrinsicId')) {
+      return false;
+    }
+    if (l$extrinsicId != lOther$extrinsicId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$name = name;
+    final lOther$name = other.name;
+    if (_$data.containsKey('name') != other._$data.containsKey('name')) {
+      return false;
+    }
+    if (l$name != lOther$name) {
+      return false;
+    }
+    final l$pallet = pallet;
+    final lOther$pallet = other.pallet;
+    if (_$data.containsKey('pallet') != other._$data.containsKey('pallet')) {
+      return false;
+    }
+    if (l$pallet != lOther$pallet) {
+      return false;
+    }
+    final l$phase = phase;
+    final lOther$phase = other.phase;
+    if (_$data.containsKey('phase') != other._$data.containsKey('phase')) {
+      return false;
+    }
+    if (l$phase != lOther$phase) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$argsStr = argsStr;
+    final l$blockId = blockId;
+    final l$callId = callId;
+    final l$extrinsicId = extrinsicId;
+    final l$id = id;
+    final l$index = index;
+    final l$name = name;
+    final l$pallet = pallet;
+    final l$phase = phase;
+    return Object.hashAll([
+      _$data.containsKey('argsStr') ? l$argsStr : const {},
+      _$data.containsKey('blockId') ? l$blockId : const {},
+      _$data.containsKey('callId') ? l$callId : const {},
+      _$data.containsKey('extrinsicId') ? l$extrinsicId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('name') ? l$name : const {},
+      _$data.containsKey('pallet') ? l$pallet : const {},
+      _$data.containsKey('phase') ? l$phase : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$EventMaxOrderBy<TRes> {
+  factory CopyWith$Input$EventMaxOrderBy(
+    Input$EventMaxOrderBy instance,
+    TRes Function(Input$EventMaxOrderBy) then,
+  ) = _CopyWithImpl$Input$EventMaxOrderBy;
+
+  factory CopyWith$Input$EventMaxOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$EventMaxOrderBy;
+
+  TRes call({
+    Enum$OrderBy? argsStr,
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? callId,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Enum$OrderBy? phase,
+  });
+}
+
+class _CopyWithImpl$Input$EventMaxOrderBy<TRes>
+    implements CopyWith$Input$EventMaxOrderBy<TRes> {
+  _CopyWithImpl$Input$EventMaxOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$EventMaxOrderBy _instance;
+
+  final TRes Function(Input$EventMaxOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? argsStr = _undefined,
+    Object? blockId = _undefined,
+    Object? callId = _undefined,
+    Object? extrinsicId = _undefined,
+    Object? id = _undefined,
+    Object? index = _undefined,
+    Object? name = _undefined,
+    Object? pallet = _undefined,
+    Object? phase = _undefined,
+  }) =>
+      _then(Input$EventMaxOrderBy._({
+        ..._instance._$data,
+        if (argsStr != _undefined) 'argsStr': (argsStr as Enum$OrderBy?),
+        if (blockId != _undefined) 'blockId': (blockId as Enum$OrderBy?),
+        if (callId != _undefined) 'callId': (callId as Enum$OrderBy?),
+        if (extrinsicId != _undefined)
+          'extrinsicId': (extrinsicId as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+        if (name != _undefined) 'name': (name as Enum$OrderBy?),
+        if (pallet != _undefined) 'pallet': (pallet as Enum$OrderBy?),
+        if (phase != _undefined) 'phase': (phase as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$EventMaxOrderBy<TRes>
+    implements CopyWith$Input$EventMaxOrderBy<TRes> {
+  _CopyWithStubImpl$Input$EventMaxOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? argsStr,
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? callId,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Enum$OrderBy? phase,
+  }) =>
+      _res;
+}
+
+class Input$EventMinOrderBy {
+  factory Input$EventMinOrderBy({
+    Enum$OrderBy? argsStr,
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? callId,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Enum$OrderBy? phase,
+  }) =>
+      Input$EventMinOrderBy._({
+        if (argsStr != null) r'argsStr': argsStr,
+        if (blockId != null) r'blockId': blockId,
+        if (callId != null) r'callId': callId,
+        if (extrinsicId != null) r'extrinsicId': extrinsicId,
+        if (id != null) r'id': id,
+        if (index != null) r'index': index,
+        if (name != null) r'name': name,
+        if (pallet != null) r'pallet': pallet,
+        if (phase != null) r'phase': phase,
+      });
+
+  Input$EventMinOrderBy._(this._$data);
+
+  factory Input$EventMinOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('argsStr')) {
+      final l$argsStr = data['argsStr'];
+      result$data['argsStr'] = l$argsStr == null
+          ? null
+          : fromJson$Enum$OrderBy((l$argsStr as String));
+    }
+    if (data.containsKey('blockId')) {
+      final l$blockId = data['blockId'];
+      result$data['blockId'] = l$blockId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockId as String));
+    }
+    if (data.containsKey('callId')) {
+      final l$callId = data['callId'];
+      result$data['callId'] =
+          l$callId == null ? null : fromJson$Enum$OrderBy((l$callId as String));
+    }
+    if (data.containsKey('extrinsicId')) {
+      final l$extrinsicId = data['extrinsicId'];
+      result$data['extrinsicId'] = l$extrinsicId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$extrinsicId as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    if (data.containsKey('name')) {
+      final l$name = data['name'];
+      result$data['name'] =
+          l$name == null ? null : fromJson$Enum$OrderBy((l$name as String));
+    }
+    if (data.containsKey('pallet')) {
+      final l$pallet = data['pallet'];
+      result$data['pallet'] =
+          l$pallet == null ? null : fromJson$Enum$OrderBy((l$pallet as String));
+    }
+    if (data.containsKey('phase')) {
+      final l$phase = data['phase'];
+      result$data['phase'] =
+          l$phase == null ? null : fromJson$Enum$OrderBy((l$phase as String));
+    }
+    return Input$EventMinOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get argsStr => (_$data['argsStr'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockId => (_$data['blockId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get callId => (_$data['callId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get extrinsicId => (_$data['extrinsicId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get name => (_$data['name'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get pallet => (_$data['pallet'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get phase => (_$data['phase'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('argsStr')) {
+      final l$argsStr = argsStr;
+      result$data['argsStr'] =
+          l$argsStr == null ? null : toJson$Enum$OrderBy(l$argsStr);
+    }
+    if (_$data.containsKey('blockId')) {
+      final l$blockId = blockId;
+      result$data['blockId'] =
+          l$blockId == null ? null : toJson$Enum$OrderBy(l$blockId);
+    }
+    if (_$data.containsKey('callId')) {
+      final l$callId = callId;
+      result$data['callId'] =
+          l$callId == null ? null : toJson$Enum$OrderBy(l$callId);
+    }
+    if (_$data.containsKey('extrinsicId')) {
+      final l$extrinsicId = extrinsicId;
+      result$data['extrinsicId'] =
+          l$extrinsicId == null ? null : toJson$Enum$OrderBy(l$extrinsicId);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    if (_$data.containsKey('name')) {
+      final l$name = name;
+      result$data['name'] = l$name == null ? null : toJson$Enum$OrderBy(l$name);
+    }
+    if (_$data.containsKey('pallet')) {
+      final l$pallet = pallet;
+      result$data['pallet'] =
+          l$pallet == null ? null : toJson$Enum$OrderBy(l$pallet);
+    }
+    if (_$data.containsKey('phase')) {
+      final l$phase = phase;
+      result$data['phase'] =
+          l$phase == null ? null : toJson$Enum$OrderBy(l$phase);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$EventMinOrderBy<Input$EventMinOrderBy> get copyWith =>
+      CopyWith$Input$EventMinOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$EventMinOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$argsStr = argsStr;
+    final lOther$argsStr = other.argsStr;
+    if (_$data.containsKey('argsStr') != other._$data.containsKey('argsStr')) {
+      return false;
+    }
+    if (l$argsStr != lOther$argsStr) {
+      return false;
+    }
+    final l$blockId = blockId;
+    final lOther$blockId = other.blockId;
+    if (_$data.containsKey('blockId') != other._$data.containsKey('blockId')) {
+      return false;
+    }
+    if (l$blockId != lOther$blockId) {
+      return false;
+    }
+    final l$callId = callId;
+    final lOther$callId = other.callId;
+    if (_$data.containsKey('callId') != other._$data.containsKey('callId')) {
+      return false;
+    }
+    if (l$callId != lOther$callId) {
+      return false;
+    }
+    final l$extrinsicId = extrinsicId;
+    final lOther$extrinsicId = other.extrinsicId;
+    if (_$data.containsKey('extrinsicId') !=
+        other._$data.containsKey('extrinsicId')) {
+      return false;
+    }
+    if (l$extrinsicId != lOther$extrinsicId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$name = name;
+    final lOther$name = other.name;
+    if (_$data.containsKey('name') != other._$data.containsKey('name')) {
+      return false;
+    }
+    if (l$name != lOther$name) {
+      return false;
+    }
+    final l$pallet = pallet;
+    final lOther$pallet = other.pallet;
+    if (_$data.containsKey('pallet') != other._$data.containsKey('pallet')) {
+      return false;
+    }
+    if (l$pallet != lOther$pallet) {
+      return false;
+    }
+    final l$phase = phase;
+    final lOther$phase = other.phase;
+    if (_$data.containsKey('phase') != other._$data.containsKey('phase')) {
+      return false;
+    }
+    if (l$phase != lOther$phase) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$argsStr = argsStr;
+    final l$blockId = blockId;
+    final l$callId = callId;
+    final l$extrinsicId = extrinsicId;
+    final l$id = id;
+    final l$index = index;
+    final l$name = name;
+    final l$pallet = pallet;
+    final l$phase = phase;
+    return Object.hashAll([
+      _$data.containsKey('argsStr') ? l$argsStr : const {},
+      _$data.containsKey('blockId') ? l$blockId : const {},
+      _$data.containsKey('callId') ? l$callId : const {},
+      _$data.containsKey('extrinsicId') ? l$extrinsicId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('name') ? l$name : const {},
+      _$data.containsKey('pallet') ? l$pallet : const {},
+      _$data.containsKey('phase') ? l$phase : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$EventMinOrderBy<TRes> {
+  factory CopyWith$Input$EventMinOrderBy(
+    Input$EventMinOrderBy instance,
+    TRes Function(Input$EventMinOrderBy) then,
+  ) = _CopyWithImpl$Input$EventMinOrderBy;
+
+  factory CopyWith$Input$EventMinOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$EventMinOrderBy;
+
+  TRes call({
+    Enum$OrderBy? argsStr,
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? callId,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Enum$OrderBy? phase,
+  });
+}
+
+class _CopyWithImpl$Input$EventMinOrderBy<TRes>
+    implements CopyWith$Input$EventMinOrderBy<TRes> {
+  _CopyWithImpl$Input$EventMinOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$EventMinOrderBy _instance;
+
+  final TRes Function(Input$EventMinOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? argsStr = _undefined,
+    Object? blockId = _undefined,
+    Object? callId = _undefined,
+    Object? extrinsicId = _undefined,
+    Object? id = _undefined,
+    Object? index = _undefined,
+    Object? name = _undefined,
+    Object? pallet = _undefined,
+    Object? phase = _undefined,
+  }) =>
+      _then(Input$EventMinOrderBy._({
+        ..._instance._$data,
+        if (argsStr != _undefined) 'argsStr': (argsStr as Enum$OrderBy?),
+        if (blockId != _undefined) 'blockId': (blockId as Enum$OrderBy?),
+        if (callId != _undefined) 'callId': (callId as Enum$OrderBy?),
+        if (extrinsicId != _undefined)
+          'extrinsicId': (extrinsicId as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+        if (name != _undefined) 'name': (name as Enum$OrderBy?),
+        if (pallet != _undefined) 'pallet': (pallet as Enum$OrderBy?),
+        if (phase != _undefined) 'phase': (phase as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$EventMinOrderBy<TRes>
+    implements CopyWith$Input$EventMinOrderBy<TRes> {
+  _CopyWithStubImpl$Input$EventMinOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? argsStr,
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? callId,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Enum$OrderBy? phase,
+  }) =>
+      _res;
+}
+
+class Input$EventOrderBy {
+  factory Input$EventOrderBy({
+    Enum$OrderBy? args,
+    Enum$OrderBy? argsStr,
+    Input$BlockOrderBy? block,
+    Enum$OrderBy? blockId,
+    Input$CallOrderBy? $call,
+    Enum$OrderBy? callId,
+    Input$ExtrinsicOrderBy? extrinsic,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Enum$OrderBy? phase,
+  }) =>
+      Input$EventOrderBy._({
+        if (args != null) r'args': args,
+        if (argsStr != null) r'argsStr': argsStr,
+        if (block != null) r'block': block,
+        if (blockId != null) r'blockId': blockId,
+        if ($call != null) r'call': $call,
+        if (callId != null) r'callId': callId,
+        if (extrinsic != null) r'extrinsic': extrinsic,
+        if (extrinsicId != null) r'extrinsicId': extrinsicId,
+        if (id != null) r'id': id,
+        if (index != null) r'index': index,
+        if (name != null) r'name': name,
+        if (pallet != null) r'pallet': pallet,
+        if (phase != null) r'phase': phase,
+      });
+
+  Input$EventOrderBy._(this._$data);
+
+  factory Input$EventOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('args')) {
+      final l$args = data['args'];
+      result$data['args'] =
+          l$args == null ? null : fromJson$Enum$OrderBy((l$args as String));
+    }
+    if (data.containsKey('argsStr')) {
+      final l$argsStr = data['argsStr'];
+      result$data['argsStr'] = l$argsStr == null
+          ? null
+          : fromJson$Enum$OrderBy((l$argsStr as String));
+    }
+    if (data.containsKey('block')) {
+      final l$block = data['block'];
+      result$data['block'] = l$block == null
+          ? null
+          : Input$BlockOrderBy.fromJson((l$block as Map<String, dynamic>));
+    }
+    if (data.containsKey('blockId')) {
+      final l$blockId = data['blockId'];
+      result$data['blockId'] = l$blockId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockId as String));
+    }
+    if (data.containsKey('call')) {
+      final l$$call = data['call'];
+      result$data['call'] = l$$call == null
+          ? null
+          : Input$CallOrderBy.fromJson((l$$call as Map<String, dynamic>));
+    }
+    if (data.containsKey('callId')) {
+      final l$callId = data['callId'];
+      result$data['callId'] =
+          l$callId == null ? null : fromJson$Enum$OrderBy((l$callId as String));
+    }
+    if (data.containsKey('extrinsic')) {
+      final l$extrinsic = data['extrinsic'];
+      result$data['extrinsic'] = l$extrinsic == null
+          ? null
+          : Input$ExtrinsicOrderBy.fromJson(
+              (l$extrinsic as Map<String, dynamic>));
+    }
+    if (data.containsKey('extrinsicId')) {
+      final l$extrinsicId = data['extrinsicId'];
+      result$data['extrinsicId'] = l$extrinsicId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$extrinsicId as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    if (data.containsKey('name')) {
+      final l$name = data['name'];
+      result$data['name'] =
+          l$name == null ? null : fromJson$Enum$OrderBy((l$name as String));
+    }
+    if (data.containsKey('pallet')) {
+      final l$pallet = data['pallet'];
+      result$data['pallet'] =
+          l$pallet == null ? null : fromJson$Enum$OrderBy((l$pallet as String));
+    }
+    if (data.containsKey('phase')) {
+      final l$phase = data['phase'];
+      result$data['phase'] =
+          l$phase == null ? null : fromJson$Enum$OrderBy((l$phase as String));
+    }
+    return Input$EventOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get args => (_$data['args'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get argsStr => (_$data['argsStr'] as Enum$OrderBy?);
+
+  Input$BlockOrderBy? get block => (_$data['block'] as Input$BlockOrderBy?);
+
+  Enum$OrderBy? get blockId => (_$data['blockId'] as Enum$OrderBy?);
+
+  Input$CallOrderBy? get $call => (_$data['call'] as Input$CallOrderBy?);
+
+  Enum$OrderBy? get callId => (_$data['callId'] as Enum$OrderBy?);
+
+  Input$ExtrinsicOrderBy? get extrinsic =>
+      (_$data['extrinsic'] as Input$ExtrinsicOrderBy?);
+
+  Enum$OrderBy? get extrinsicId => (_$data['extrinsicId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get name => (_$data['name'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get pallet => (_$data['pallet'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get phase => (_$data['phase'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('args')) {
+      final l$args = args;
+      result$data['args'] = l$args == null ? null : toJson$Enum$OrderBy(l$args);
+    }
+    if (_$data.containsKey('argsStr')) {
+      final l$argsStr = argsStr;
+      result$data['argsStr'] =
+          l$argsStr == null ? null : toJson$Enum$OrderBy(l$argsStr);
+    }
+    if (_$data.containsKey('block')) {
+      final l$block = block;
+      result$data['block'] = l$block?.toJson();
+    }
+    if (_$data.containsKey('blockId')) {
+      final l$blockId = blockId;
+      result$data['blockId'] =
+          l$blockId == null ? null : toJson$Enum$OrderBy(l$blockId);
+    }
+    if (_$data.containsKey('call')) {
+      final l$$call = $call;
+      result$data['call'] = l$$call?.toJson();
+    }
+    if (_$data.containsKey('callId')) {
+      final l$callId = callId;
+      result$data['callId'] =
+          l$callId == null ? null : toJson$Enum$OrderBy(l$callId);
+    }
+    if (_$data.containsKey('extrinsic')) {
+      final l$extrinsic = extrinsic;
+      result$data['extrinsic'] = l$extrinsic?.toJson();
+    }
+    if (_$data.containsKey('extrinsicId')) {
+      final l$extrinsicId = extrinsicId;
+      result$data['extrinsicId'] =
+          l$extrinsicId == null ? null : toJson$Enum$OrderBy(l$extrinsicId);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    if (_$data.containsKey('name')) {
+      final l$name = name;
+      result$data['name'] = l$name == null ? null : toJson$Enum$OrderBy(l$name);
+    }
+    if (_$data.containsKey('pallet')) {
+      final l$pallet = pallet;
+      result$data['pallet'] =
+          l$pallet == null ? null : toJson$Enum$OrderBy(l$pallet);
+    }
+    if (_$data.containsKey('phase')) {
+      final l$phase = phase;
+      result$data['phase'] =
+          l$phase == null ? null : toJson$Enum$OrderBy(l$phase);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$EventOrderBy<Input$EventOrderBy> get copyWith =>
+      CopyWith$Input$EventOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$EventOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$args = args;
+    final lOther$args = other.args;
+    if (_$data.containsKey('args') != other._$data.containsKey('args')) {
+      return false;
+    }
+    if (l$args != lOther$args) {
+      return false;
+    }
+    final l$argsStr = argsStr;
+    final lOther$argsStr = other.argsStr;
+    if (_$data.containsKey('argsStr') != other._$data.containsKey('argsStr')) {
+      return false;
+    }
+    if (l$argsStr != lOther$argsStr) {
+      return false;
+    }
+    final l$block = block;
+    final lOther$block = other.block;
+    if (_$data.containsKey('block') != other._$data.containsKey('block')) {
+      return false;
+    }
+    if (l$block != lOther$block) {
+      return false;
+    }
+    final l$blockId = blockId;
+    final lOther$blockId = other.blockId;
+    if (_$data.containsKey('blockId') != other._$data.containsKey('blockId')) {
+      return false;
+    }
+    if (l$blockId != lOther$blockId) {
+      return false;
+    }
+    final l$$call = $call;
+    final lOther$$call = other.$call;
+    if (_$data.containsKey('call') != other._$data.containsKey('call')) {
+      return false;
+    }
+    if (l$$call != lOther$$call) {
+      return false;
+    }
+    final l$callId = callId;
+    final lOther$callId = other.callId;
+    if (_$data.containsKey('callId') != other._$data.containsKey('callId')) {
+      return false;
+    }
+    if (l$callId != lOther$callId) {
+      return false;
+    }
+    final l$extrinsic = extrinsic;
+    final lOther$extrinsic = other.extrinsic;
+    if (_$data.containsKey('extrinsic') !=
+        other._$data.containsKey('extrinsic')) {
+      return false;
+    }
+    if (l$extrinsic != lOther$extrinsic) {
+      return false;
+    }
+    final l$extrinsicId = extrinsicId;
+    final lOther$extrinsicId = other.extrinsicId;
+    if (_$data.containsKey('extrinsicId') !=
+        other._$data.containsKey('extrinsicId')) {
+      return false;
+    }
+    if (l$extrinsicId != lOther$extrinsicId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$name = name;
+    final lOther$name = other.name;
+    if (_$data.containsKey('name') != other._$data.containsKey('name')) {
+      return false;
+    }
+    if (l$name != lOther$name) {
+      return false;
+    }
+    final l$pallet = pallet;
+    final lOther$pallet = other.pallet;
+    if (_$data.containsKey('pallet') != other._$data.containsKey('pallet')) {
+      return false;
+    }
+    if (l$pallet != lOther$pallet) {
+      return false;
+    }
+    final l$phase = phase;
+    final lOther$phase = other.phase;
+    if (_$data.containsKey('phase') != other._$data.containsKey('phase')) {
+      return false;
+    }
+    if (l$phase != lOther$phase) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$args = args;
+    final l$argsStr = argsStr;
+    final l$block = block;
+    final l$blockId = blockId;
+    final l$$call = $call;
+    final l$callId = callId;
+    final l$extrinsic = extrinsic;
+    final l$extrinsicId = extrinsicId;
+    final l$id = id;
+    final l$index = index;
+    final l$name = name;
+    final l$pallet = pallet;
+    final l$phase = phase;
+    return Object.hashAll([
+      _$data.containsKey('args') ? l$args : const {},
+      _$data.containsKey('argsStr') ? l$argsStr : const {},
+      _$data.containsKey('block') ? l$block : const {},
+      _$data.containsKey('blockId') ? l$blockId : const {},
+      _$data.containsKey('call') ? l$$call : const {},
+      _$data.containsKey('callId') ? l$callId : const {},
+      _$data.containsKey('extrinsic') ? l$extrinsic : const {},
+      _$data.containsKey('extrinsicId') ? l$extrinsicId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('name') ? l$name : const {},
+      _$data.containsKey('pallet') ? l$pallet : const {},
+      _$data.containsKey('phase') ? l$phase : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$EventOrderBy<TRes> {
+  factory CopyWith$Input$EventOrderBy(
+    Input$EventOrderBy instance,
+    TRes Function(Input$EventOrderBy) then,
+  ) = _CopyWithImpl$Input$EventOrderBy;
+
+  factory CopyWith$Input$EventOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$EventOrderBy;
+
+  TRes call({
+    Enum$OrderBy? args,
+    Enum$OrderBy? argsStr,
+    Input$BlockOrderBy? block,
+    Enum$OrderBy? blockId,
+    Input$CallOrderBy? $call,
+    Enum$OrderBy? callId,
+    Input$ExtrinsicOrderBy? extrinsic,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Enum$OrderBy? phase,
+  });
+  CopyWith$Input$BlockOrderBy<TRes> get block;
+  CopyWith$Input$CallOrderBy<TRes> get $call;
+  CopyWith$Input$ExtrinsicOrderBy<TRes> get extrinsic;
+}
+
+class _CopyWithImpl$Input$EventOrderBy<TRes>
+    implements CopyWith$Input$EventOrderBy<TRes> {
+  _CopyWithImpl$Input$EventOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$EventOrderBy _instance;
+
+  final TRes Function(Input$EventOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? args = _undefined,
+    Object? argsStr = _undefined,
+    Object? block = _undefined,
+    Object? blockId = _undefined,
+    Object? $call = _undefined,
+    Object? callId = _undefined,
+    Object? extrinsic = _undefined,
+    Object? extrinsicId = _undefined,
+    Object? id = _undefined,
+    Object? index = _undefined,
+    Object? name = _undefined,
+    Object? pallet = _undefined,
+    Object? phase = _undefined,
+  }) =>
+      _then(Input$EventOrderBy._({
+        ..._instance._$data,
+        if (args != _undefined) 'args': (args as Enum$OrderBy?),
+        if (argsStr != _undefined) 'argsStr': (argsStr as Enum$OrderBy?),
+        if (block != _undefined) 'block': (block as Input$BlockOrderBy?),
+        if (blockId != _undefined) 'blockId': (blockId as Enum$OrderBy?),
+        if ($call != _undefined) 'call': ($call as Input$CallOrderBy?),
+        if (callId != _undefined) 'callId': (callId as Enum$OrderBy?),
+        if (extrinsic != _undefined)
+          'extrinsic': (extrinsic as Input$ExtrinsicOrderBy?),
+        if (extrinsicId != _undefined)
+          'extrinsicId': (extrinsicId as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+        if (name != _undefined) 'name': (name as Enum$OrderBy?),
+        if (pallet != _undefined) 'pallet': (pallet as Enum$OrderBy?),
+        if (phase != _undefined) 'phase': (phase as Enum$OrderBy?),
+      }));
+
+  CopyWith$Input$BlockOrderBy<TRes> get block {
+    final local$block = _instance.block;
+    return local$block == null
+        ? CopyWith$Input$BlockOrderBy.stub(_then(_instance))
+        : CopyWith$Input$BlockOrderBy(local$block, (e) => call(block: e));
+  }
+
+  CopyWith$Input$CallOrderBy<TRes> get $call {
+    final local$$call = _instance.$call;
+    return local$$call == null
+        ? CopyWith$Input$CallOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CallOrderBy(local$$call, (e) => call($call: e));
+  }
+
+  CopyWith$Input$ExtrinsicOrderBy<TRes> get extrinsic {
+    final local$extrinsic = _instance.extrinsic;
+    return local$extrinsic == null
+        ? CopyWith$Input$ExtrinsicOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicOrderBy(
+            local$extrinsic, (e) => call(extrinsic: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$EventOrderBy<TRes>
+    implements CopyWith$Input$EventOrderBy<TRes> {
+  _CopyWithStubImpl$Input$EventOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? args,
+    Enum$OrderBy? argsStr,
+    Input$BlockOrderBy? block,
+    Enum$OrderBy? blockId,
+    Input$CallOrderBy? $call,
+    Enum$OrderBy? callId,
+    Input$ExtrinsicOrderBy? extrinsic,
+    Enum$OrderBy? extrinsicId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? name,
+    Enum$OrderBy? pallet,
+    Enum$OrderBy? phase,
+  }) =>
+      _res;
+
+  CopyWith$Input$BlockOrderBy<TRes> get block =>
+      CopyWith$Input$BlockOrderBy.stub(_res);
+
+  CopyWith$Input$CallOrderBy<TRes> get $call =>
+      CopyWith$Input$CallOrderBy.stub(_res);
+
+  CopyWith$Input$ExtrinsicOrderBy<TRes> get extrinsic =>
+      CopyWith$Input$ExtrinsicOrderBy.stub(_res);
+}
+
+class Input$EventStddevOrderBy {
+  factory Input$EventStddevOrderBy({Enum$OrderBy? index}) =>
+      Input$EventStddevOrderBy._({
+        if (index != null) r'index': index,
+      });
+
+  Input$EventStddevOrderBy._(this._$data);
+
+  factory Input$EventStddevOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    return Input$EventStddevOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$EventStddevOrderBy<Input$EventStddevOrderBy> get copyWith =>
+      CopyWith$Input$EventStddevOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$EventStddevOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$index = index;
+    return Object.hashAll([_$data.containsKey('index') ? l$index : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$EventStddevOrderBy<TRes> {
+  factory CopyWith$Input$EventStddevOrderBy(
+    Input$EventStddevOrderBy instance,
+    TRes Function(Input$EventStddevOrderBy) then,
+  ) = _CopyWithImpl$Input$EventStddevOrderBy;
+
+  factory CopyWith$Input$EventStddevOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$EventStddevOrderBy;
+
+  TRes call({Enum$OrderBy? index});
+}
+
+class _CopyWithImpl$Input$EventStddevOrderBy<TRes>
+    implements CopyWith$Input$EventStddevOrderBy<TRes> {
+  _CopyWithImpl$Input$EventStddevOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$EventStddevOrderBy _instance;
+
+  final TRes Function(Input$EventStddevOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? index = _undefined}) => _then(Input$EventStddevOrderBy._({
+        ..._instance._$data,
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$EventStddevOrderBy<TRes>
+    implements CopyWith$Input$EventStddevOrderBy<TRes> {
+  _CopyWithStubImpl$Input$EventStddevOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? index}) => _res;
+}
+
+class Input$EventStddevPopOrderBy {
+  factory Input$EventStddevPopOrderBy({Enum$OrderBy? index}) =>
+      Input$EventStddevPopOrderBy._({
+        if (index != null) r'index': index,
+      });
+
+  Input$EventStddevPopOrderBy._(this._$data);
+
+  factory Input$EventStddevPopOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    return Input$EventStddevPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$EventStddevPopOrderBy<Input$EventStddevPopOrderBy>
+      get copyWith => CopyWith$Input$EventStddevPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$EventStddevPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$index = index;
+    return Object.hashAll([_$data.containsKey('index') ? l$index : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$EventStddevPopOrderBy<TRes> {
+  factory CopyWith$Input$EventStddevPopOrderBy(
+    Input$EventStddevPopOrderBy instance,
+    TRes Function(Input$EventStddevPopOrderBy) then,
+  ) = _CopyWithImpl$Input$EventStddevPopOrderBy;
+
+  factory CopyWith$Input$EventStddevPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$EventStddevPopOrderBy;
+
+  TRes call({Enum$OrderBy? index});
+}
+
+class _CopyWithImpl$Input$EventStddevPopOrderBy<TRes>
+    implements CopyWith$Input$EventStddevPopOrderBy<TRes> {
+  _CopyWithImpl$Input$EventStddevPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$EventStddevPopOrderBy _instance;
+
+  final TRes Function(Input$EventStddevPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? index = _undefined}) =>
+      _then(Input$EventStddevPopOrderBy._({
+        ..._instance._$data,
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$EventStddevPopOrderBy<TRes>
+    implements CopyWith$Input$EventStddevPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$EventStddevPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? index}) => _res;
+}
+
+class Input$EventStddevSampOrderBy {
+  factory Input$EventStddevSampOrderBy({Enum$OrderBy? index}) =>
+      Input$EventStddevSampOrderBy._({
+        if (index != null) r'index': index,
+      });
+
+  Input$EventStddevSampOrderBy._(this._$data);
+
+  factory Input$EventStddevSampOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    return Input$EventStddevSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$EventStddevSampOrderBy<Input$EventStddevSampOrderBy>
+      get copyWith => CopyWith$Input$EventStddevSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$EventStddevSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$index = index;
+    return Object.hashAll([_$data.containsKey('index') ? l$index : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$EventStddevSampOrderBy<TRes> {
+  factory CopyWith$Input$EventStddevSampOrderBy(
+    Input$EventStddevSampOrderBy instance,
+    TRes Function(Input$EventStddevSampOrderBy) then,
+  ) = _CopyWithImpl$Input$EventStddevSampOrderBy;
+
+  factory CopyWith$Input$EventStddevSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$EventStddevSampOrderBy;
+
+  TRes call({Enum$OrderBy? index});
+}
+
+class _CopyWithImpl$Input$EventStddevSampOrderBy<TRes>
+    implements CopyWith$Input$EventStddevSampOrderBy<TRes> {
+  _CopyWithImpl$Input$EventStddevSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$EventStddevSampOrderBy _instance;
+
+  final TRes Function(Input$EventStddevSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? index = _undefined}) =>
+      _then(Input$EventStddevSampOrderBy._({
+        ..._instance._$data,
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$EventStddevSampOrderBy<TRes>
+    implements CopyWith$Input$EventStddevSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$EventStddevSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? index}) => _res;
+}
+
+class Input$EventSumOrderBy {
+  factory Input$EventSumOrderBy({Enum$OrderBy? index}) =>
+      Input$EventSumOrderBy._({
+        if (index != null) r'index': index,
+      });
+
+  Input$EventSumOrderBy._(this._$data);
+
+  factory Input$EventSumOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    return Input$EventSumOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$EventSumOrderBy<Input$EventSumOrderBy> get copyWith =>
+      CopyWith$Input$EventSumOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$EventSumOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$index = index;
+    return Object.hashAll([_$data.containsKey('index') ? l$index : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$EventSumOrderBy<TRes> {
+  factory CopyWith$Input$EventSumOrderBy(
+    Input$EventSumOrderBy instance,
+    TRes Function(Input$EventSumOrderBy) then,
+  ) = _CopyWithImpl$Input$EventSumOrderBy;
+
+  factory CopyWith$Input$EventSumOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$EventSumOrderBy;
+
+  TRes call({Enum$OrderBy? index});
+}
+
+class _CopyWithImpl$Input$EventSumOrderBy<TRes>
+    implements CopyWith$Input$EventSumOrderBy<TRes> {
+  _CopyWithImpl$Input$EventSumOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$EventSumOrderBy _instance;
+
+  final TRes Function(Input$EventSumOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? index = _undefined}) => _then(Input$EventSumOrderBy._({
+        ..._instance._$data,
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$EventSumOrderBy<TRes>
+    implements CopyWith$Input$EventSumOrderBy<TRes> {
+  _CopyWithStubImpl$Input$EventSumOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? index}) => _res;
+}
+
+class Input$EventTypeEnumComparisonExp {
+  factory Input$EventTypeEnumComparisonExp({
+    Enum$EventTypeEnum? $_eq,
+    List<Enum$EventTypeEnum>? $_in,
+    bool? $_isNull,
+    Enum$EventTypeEnum? $_neq,
+    List<Enum$EventTypeEnum>? $_nin,
+  }) =>
+      Input$EventTypeEnumComparisonExp._({
+        if ($_eq != null) r'_eq': $_eq,
+        if ($_in != null) r'_in': $_in,
+        if ($_isNull != null) r'_isNull': $_isNull,
+        if ($_neq != null) r'_neq': $_neq,
+        if ($_nin != null) r'_nin': $_nin,
+      });
+
+  Input$EventTypeEnumComparisonExp._(this._$data);
+
+  factory Input$EventTypeEnumComparisonExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_eq')) {
+      final l$$_eq = data['_eq'];
+      result$data['_eq'] = l$$_eq == null
+          ? null
+          : fromJson$Enum$EventTypeEnum((l$$_eq as String));
+    }
+    if (data.containsKey('_in')) {
+      final l$$_in = data['_in'];
+      result$data['_in'] = (l$$_in as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$EventTypeEnum((e as String)))
+          .toList();
+    }
+    if (data.containsKey('_isNull')) {
+      final l$$_isNull = data['_isNull'];
+      result$data['_isNull'] = (l$$_isNull as bool?);
+    }
+    if (data.containsKey('_neq')) {
+      final l$$_neq = data['_neq'];
+      result$data['_neq'] = l$$_neq == null
+          ? null
+          : fromJson$Enum$EventTypeEnum((l$$_neq as String));
+    }
+    if (data.containsKey('_nin')) {
+      final l$$_nin = data['_nin'];
+      result$data['_nin'] = (l$$_nin as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$EventTypeEnum((e as String)))
+          .toList();
+    }
+    return Input$EventTypeEnumComparisonExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$EventTypeEnum? get $_eq => (_$data['_eq'] as Enum$EventTypeEnum?);
+
+  List<Enum$EventTypeEnum>? get $_in =>
+      (_$data['_in'] as List<Enum$EventTypeEnum>?);
+
+  bool? get $_isNull => (_$data['_isNull'] as bool?);
+
+  Enum$EventTypeEnum? get $_neq => (_$data['_neq'] as Enum$EventTypeEnum?);
+
+  List<Enum$EventTypeEnum>? get $_nin =>
+      (_$data['_nin'] as List<Enum$EventTypeEnum>?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_eq')) {
+      final l$$_eq = $_eq;
+      result$data['_eq'] =
+          l$$_eq == null ? null : toJson$Enum$EventTypeEnum(l$$_eq);
+    }
+    if (_$data.containsKey('_in')) {
+      final l$$_in = $_in;
+      result$data['_in'] =
+          l$$_in?.map((e) => toJson$Enum$EventTypeEnum(e)).toList();
+    }
+    if (_$data.containsKey('_isNull')) {
+      final l$$_isNull = $_isNull;
+      result$data['_isNull'] = l$$_isNull;
+    }
+    if (_$data.containsKey('_neq')) {
+      final l$$_neq = $_neq;
+      result$data['_neq'] =
+          l$$_neq == null ? null : toJson$Enum$EventTypeEnum(l$$_neq);
+    }
+    if (_$data.containsKey('_nin')) {
+      final l$$_nin = $_nin;
+      result$data['_nin'] =
+          l$$_nin?.map((e) => toJson$Enum$EventTypeEnum(e)).toList();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$EventTypeEnumComparisonExp<Input$EventTypeEnumComparisonExp>
+      get copyWith => CopyWith$Input$EventTypeEnumComparisonExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$EventTypeEnumComparisonExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_eq = $_eq;
+    final lOther$$_eq = other.$_eq;
+    if (_$data.containsKey('_eq') != other._$data.containsKey('_eq')) {
+      return false;
+    }
+    if (l$$_eq != lOther$$_eq) {
+      return false;
+    }
+    final l$$_in = $_in;
+    final lOther$$_in = other.$_in;
+    if (_$data.containsKey('_in') != other._$data.containsKey('_in')) {
+      return false;
+    }
+    if (l$$_in != null && lOther$$_in != null) {
+      if (l$$_in.length != lOther$$_in.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_in.length; i++) {
+        final l$$_in$entry = l$$_in[i];
+        final lOther$$_in$entry = lOther$$_in[i];
+        if (l$$_in$entry != lOther$$_in$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_in != lOther$$_in) {
+      return false;
+    }
+    final l$$_isNull = $_isNull;
+    final lOther$$_isNull = other.$_isNull;
+    if (_$data.containsKey('_isNull') != other._$data.containsKey('_isNull')) {
+      return false;
+    }
+    if (l$$_isNull != lOther$$_isNull) {
+      return false;
+    }
+    final l$$_neq = $_neq;
+    final lOther$$_neq = other.$_neq;
+    if (_$data.containsKey('_neq') != other._$data.containsKey('_neq')) {
+      return false;
+    }
+    if (l$$_neq != lOther$$_neq) {
+      return false;
+    }
+    final l$$_nin = $_nin;
+    final lOther$$_nin = other.$_nin;
+    if (_$data.containsKey('_nin') != other._$data.containsKey('_nin')) {
+      return false;
+    }
+    if (l$$_nin != null && lOther$$_nin != null) {
+      if (l$$_nin.length != lOther$$_nin.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_nin.length; i++) {
+        final l$$_nin$entry = l$$_nin[i];
+        final lOther$$_nin$entry = lOther$$_nin[i];
+        if (l$$_nin$entry != lOther$$_nin$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_nin != lOther$$_nin) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_eq = $_eq;
+    final l$$_in = $_in;
+    final l$$_isNull = $_isNull;
+    final l$$_neq = $_neq;
+    final l$$_nin = $_nin;
+    return Object.hashAll([
+      _$data.containsKey('_eq') ? l$$_eq : const {},
+      _$data.containsKey('_in')
+          ? l$$_in == null
+              ? null
+              : Object.hashAll(l$$_in.map((v) => v))
+          : const {},
+      _$data.containsKey('_isNull') ? l$$_isNull : const {},
+      _$data.containsKey('_neq') ? l$$_neq : const {},
+      _$data.containsKey('_nin')
+          ? l$$_nin == null
+              ? null
+              : Object.hashAll(l$$_nin.map((v) => v))
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$EventTypeEnumComparisonExp<TRes> {
+  factory CopyWith$Input$EventTypeEnumComparisonExp(
+    Input$EventTypeEnumComparisonExp instance,
+    TRes Function(Input$EventTypeEnumComparisonExp) then,
+  ) = _CopyWithImpl$Input$EventTypeEnumComparisonExp;
+
+  factory CopyWith$Input$EventTypeEnumComparisonExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$EventTypeEnumComparisonExp;
+
+  TRes call({
+    Enum$EventTypeEnum? $_eq,
+    List<Enum$EventTypeEnum>? $_in,
+    bool? $_isNull,
+    Enum$EventTypeEnum? $_neq,
+    List<Enum$EventTypeEnum>? $_nin,
+  });
+}
+
+class _CopyWithImpl$Input$EventTypeEnumComparisonExp<TRes>
+    implements CopyWith$Input$EventTypeEnumComparisonExp<TRes> {
+  _CopyWithImpl$Input$EventTypeEnumComparisonExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$EventTypeEnumComparisonExp _instance;
+
+  final TRes Function(Input$EventTypeEnumComparisonExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_eq = _undefined,
+    Object? $_in = _undefined,
+    Object? $_isNull = _undefined,
+    Object? $_neq = _undefined,
+    Object? $_nin = _undefined,
+  }) =>
+      _then(Input$EventTypeEnumComparisonExp._({
+        ..._instance._$data,
+        if ($_eq != _undefined) '_eq': ($_eq as Enum$EventTypeEnum?),
+        if ($_in != _undefined) '_in': ($_in as List<Enum$EventTypeEnum>?),
+        if ($_isNull != _undefined) '_isNull': ($_isNull as bool?),
+        if ($_neq != _undefined) '_neq': ($_neq as Enum$EventTypeEnum?),
+        if ($_nin != _undefined) '_nin': ($_nin as List<Enum$EventTypeEnum>?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$EventTypeEnumComparisonExp<TRes>
+    implements CopyWith$Input$EventTypeEnumComparisonExp<TRes> {
+  _CopyWithStubImpl$Input$EventTypeEnumComparisonExp(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$EventTypeEnum? $_eq,
+    List<Enum$EventTypeEnum>? $_in,
+    bool? $_isNull,
+    Enum$EventTypeEnum? $_neq,
+    List<Enum$EventTypeEnum>? $_nin,
+  }) =>
+      _res;
+}
+
+class Input$EventVarianceOrderBy {
+  factory Input$EventVarianceOrderBy({Enum$OrderBy? index}) =>
+      Input$EventVarianceOrderBy._({
+        if (index != null) r'index': index,
+      });
+
+  Input$EventVarianceOrderBy._(this._$data);
+
+  factory Input$EventVarianceOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    return Input$EventVarianceOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$EventVarianceOrderBy<Input$EventVarianceOrderBy>
+      get copyWith => CopyWith$Input$EventVarianceOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$EventVarianceOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$index = index;
+    return Object.hashAll([_$data.containsKey('index') ? l$index : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$EventVarianceOrderBy<TRes> {
+  factory CopyWith$Input$EventVarianceOrderBy(
+    Input$EventVarianceOrderBy instance,
+    TRes Function(Input$EventVarianceOrderBy) then,
+  ) = _CopyWithImpl$Input$EventVarianceOrderBy;
+
+  factory CopyWith$Input$EventVarianceOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$EventVarianceOrderBy;
+
+  TRes call({Enum$OrderBy? index});
+}
+
+class _CopyWithImpl$Input$EventVarianceOrderBy<TRes>
+    implements CopyWith$Input$EventVarianceOrderBy<TRes> {
+  _CopyWithImpl$Input$EventVarianceOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$EventVarianceOrderBy _instance;
+
+  final TRes Function(Input$EventVarianceOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? index = _undefined}) =>
+      _then(Input$EventVarianceOrderBy._({
+        ..._instance._$data,
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$EventVarianceOrderBy<TRes>
+    implements CopyWith$Input$EventVarianceOrderBy<TRes> {
+  _CopyWithStubImpl$Input$EventVarianceOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? index}) => _res;
+}
+
+class Input$EventVarPopOrderBy {
+  factory Input$EventVarPopOrderBy({Enum$OrderBy? index}) =>
+      Input$EventVarPopOrderBy._({
+        if (index != null) r'index': index,
+      });
+
+  Input$EventVarPopOrderBy._(this._$data);
+
+  factory Input$EventVarPopOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    return Input$EventVarPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$EventVarPopOrderBy<Input$EventVarPopOrderBy> get copyWith =>
+      CopyWith$Input$EventVarPopOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$EventVarPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$index = index;
+    return Object.hashAll([_$data.containsKey('index') ? l$index : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$EventVarPopOrderBy<TRes> {
+  factory CopyWith$Input$EventVarPopOrderBy(
+    Input$EventVarPopOrderBy instance,
+    TRes Function(Input$EventVarPopOrderBy) then,
+  ) = _CopyWithImpl$Input$EventVarPopOrderBy;
+
+  factory CopyWith$Input$EventVarPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$EventVarPopOrderBy;
+
+  TRes call({Enum$OrderBy? index});
+}
+
+class _CopyWithImpl$Input$EventVarPopOrderBy<TRes>
+    implements CopyWith$Input$EventVarPopOrderBy<TRes> {
+  _CopyWithImpl$Input$EventVarPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$EventVarPopOrderBy _instance;
+
+  final TRes Function(Input$EventVarPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? index = _undefined}) => _then(Input$EventVarPopOrderBy._({
+        ..._instance._$data,
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$EventVarPopOrderBy<TRes>
+    implements CopyWith$Input$EventVarPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$EventVarPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? index}) => _res;
+}
+
+class Input$EventVarSampOrderBy {
+  factory Input$EventVarSampOrderBy({Enum$OrderBy? index}) =>
+      Input$EventVarSampOrderBy._({
+        if (index != null) r'index': index,
+      });
+
+  Input$EventVarSampOrderBy._(this._$data);
+
+  factory Input$EventVarSampOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    return Input$EventVarSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$EventVarSampOrderBy<Input$EventVarSampOrderBy> get copyWith =>
+      CopyWith$Input$EventVarSampOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$EventVarSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$index = index;
+    return Object.hashAll([_$data.containsKey('index') ? l$index : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$EventVarSampOrderBy<TRes> {
+  factory CopyWith$Input$EventVarSampOrderBy(
+    Input$EventVarSampOrderBy instance,
+    TRes Function(Input$EventVarSampOrderBy) then,
+  ) = _CopyWithImpl$Input$EventVarSampOrderBy;
+
+  factory CopyWith$Input$EventVarSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$EventVarSampOrderBy;
+
+  TRes call({Enum$OrderBy? index});
+}
+
+class _CopyWithImpl$Input$EventVarSampOrderBy<TRes>
+    implements CopyWith$Input$EventVarSampOrderBy<TRes> {
+  _CopyWithImpl$Input$EventVarSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$EventVarSampOrderBy _instance;
+
+  final TRes Function(Input$EventVarSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? index = _undefined}) => _then(Input$EventVarSampOrderBy._({
+        ..._instance._$data,
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$EventVarSampOrderBy<TRes>
+    implements CopyWith$Input$EventVarSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$EventVarSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? index}) => _res;
+}
+
+class Input$ExtrinsicAggregateBoolExp {
+  factory Input$ExtrinsicAggregateBoolExp({
+    Input$extrinsicAggregateBoolExpBool_and? bool_and,
+    Input$extrinsicAggregateBoolExpBool_or? bool_or,
+    Input$extrinsicAggregateBoolExpCount? count,
+  }) =>
+      Input$ExtrinsicAggregateBoolExp._({
+        if (bool_and != null) r'bool_and': bool_and,
+        if (bool_or != null) r'bool_or': bool_or,
+        if (count != null) r'count': count,
+      });
+
+  Input$ExtrinsicAggregateBoolExp._(this._$data);
+
+  factory Input$ExtrinsicAggregateBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('bool_and')) {
+      final l$bool_and = data['bool_and'];
+      result$data['bool_and'] = l$bool_and == null
+          ? null
+          : Input$extrinsicAggregateBoolExpBool_and.fromJson(
+              (l$bool_and as Map<String, dynamic>));
+    }
+    if (data.containsKey('bool_or')) {
+      final l$bool_or = data['bool_or'];
+      result$data['bool_or'] = l$bool_or == null
+          ? null
+          : Input$extrinsicAggregateBoolExpBool_or.fromJson(
+              (l$bool_or as Map<String, dynamic>));
+    }
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] = l$count == null
+          ? null
+          : Input$extrinsicAggregateBoolExpCount.fromJson(
+              (l$count as Map<String, dynamic>));
+    }
+    return Input$ExtrinsicAggregateBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$extrinsicAggregateBoolExpBool_and? get bool_and =>
+      (_$data['bool_and'] as Input$extrinsicAggregateBoolExpBool_and?);
+
+  Input$extrinsicAggregateBoolExpBool_or? get bool_or =>
+      (_$data['bool_or'] as Input$extrinsicAggregateBoolExpBool_or?);
+
+  Input$extrinsicAggregateBoolExpCount? get count =>
+      (_$data['count'] as Input$extrinsicAggregateBoolExpCount?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('bool_and')) {
+      final l$bool_and = bool_and;
+      result$data['bool_and'] = l$bool_and?.toJson();
+    }
+    if (_$data.containsKey('bool_or')) {
+      final l$bool_or = bool_or;
+      result$data['bool_or'] = l$bool_or?.toJson();
+    }
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] = l$count?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ExtrinsicAggregateBoolExp<Input$ExtrinsicAggregateBoolExp>
+      get copyWith => CopyWith$Input$ExtrinsicAggregateBoolExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ExtrinsicAggregateBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$bool_and = bool_and;
+    final lOther$bool_and = other.bool_and;
+    if (_$data.containsKey('bool_and') !=
+        other._$data.containsKey('bool_and')) {
+      return false;
+    }
+    if (l$bool_and != lOther$bool_and) {
+      return false;
+    }
+    final l$bool_or = bool_or;
+    final lOther$bool_or = other.bool_or;
+    if (_$data.containsKey('bool_or') != other._$data.containsKey('bool_or')) {
+      return false;
+    }
+    if (l$bool_or != lOther$bool_or) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$bool_and = bool_and;
+    final l$bool_or = bool_or;
+    final l$count = count;
+    return Object.hashAll([
+      _$data.containsKey('bool_and') ? l$bool_and : const {},
+      _$data.containsKey('bool_or') ? l$bool_or : const {},
+      _$data.containsKey('count') ? l$count : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ExtrinsicAggregateBoolExp<TRes> {
+  factory CopyWith$Input$ExtrinsicAggregateBoolExp(
+    Input$ExtrinsicAggregateBoolExp instance,
+    TRes Function(Input$ExtrinsicAggregateBoolExp) then,
+  ) = _CopyWithImpl$Input$ExtrinsicAggregateBoolExp;
+
+  factory CopyWith$Input$ExtrinsicAggregateBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$ExtrinsicAggregateBoolExp;
+
+  TRes call({
+    Input$extrinsicAggregateBoolExpBool_and? bool_and,
+    Input$extrinsicAggregateBoolExpBool_or? bool_or,
+    Input$extrinsicAggregateBoolExpCount? count,
+  });
+  CopyWith$Input$extrinsicAggregateBoolExpBool_and<TRes> get bool_and;
+  CopyWith$Input$extrinsicAggregateBoolExpBool_or<TRes> get bool_or;
+  CopyWith$Input$extrinsicAggregateBoolExpCount<TRes> get count;
+}
+
+class _CopyWithImpl$Input$ExtrinsicAggregateBoolExp<TRes>
+    implements CopyWith$Input$ExtrinsicAggregateBoolExp<TRes> {
+  _CopyWithImpl$Input$ExtrinsicAggregateBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ExtrinsicAggregateBoolExp _instance;
+
+  final TRes Function(Input$ExtrinsicAggregateBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? bool_and = _undefined,
+    Object? bool_or = _undefined,
+    Object? count = _undefined,
+  }) =>
+      _then(Input$ExtrinsicAggregateBoolExp._({
+        ..._instance._$data,
+        if (bool_and != _undefined)
+          'bool_and': (bool_and as Input$extrinsicAggregateBoolExpBool_and?),
+        if (bool_or != _undefined)
+          'bool_or': (bool_or as Input$extrinsicAggregateBoolExpBool_or?),
+        if (count != _undefined)
+          'count': (count as Input$extrinsicAggregateBoolExpCount?),
+      }));
+
+  CopyWith$Input$extrinsicAggregateBoolExpBool_and<TRes> get bool_and {
+    final local$bool_and = _instance.bool_and;
+    return local$bool_and == null
+        ? CopyWith$Input$extrinsicAggregateBoolExpBool_and.stub(
+            _then(_instance))
+        : CopyWith$Input$extrinsicAggregateBoolExpBool_and(
+            local$bool_and, (e) => call(bool_and: e));
+  }
+
+  CopyWith$Input$extrinsicAggregateBoolExpBool_or<TRes> get bool_or {
+    final local$bool_or = _instance.bool_or;
+    return local$bool_or == null
+        ? CopyWith$Input$extrinsicAggregateBoolExpBool_or.stub(_then(_instance))
+        : CopyWith$Input$extrinsicAggregateBoolExpBool_or(
+            local$bool_or, (e) => call(bool_or: e));
+  }
+
+  CopyWith$Input$extrinsicAggregateBoolExpCount<TRes> get count {
+    final local$count = _instance.count;
+    return local$count == null
+        ? CopyWith$Input$extrinsicAggregateBoolExpCount.stub(_then(_instance))
+        : CopyWith$Input$extrinsicAggregateBoolExpCount(
+            local$count, (e) => call(count: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$ExtrinsicAggregateBoolExp<TRes>
+    implements CopyWith$Input$ExtrinsicAggregateBoolExp<TRes> {
+  _CopyWithStubImpl$Input$ExtrinsicAggregateBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    Input$extrinsicAggregateBoolExpBool_and? bool_and,
+    Input$extrinsicAggregateBoolExpBool_or? bool_or,
+    Input$extrinsicAggregateBoolExpCount? count,
+  }) =>
+      _res;
+
+  CopyWith$Input$extrinsicAggregateBoolExpBool_and<TRes> get bool_and =>
+      CopyWith$Input$extrinsicAggregateBoolExpBool_and.stub(_res);
+
+  CopyWith$Input$extrinsicAggregateBoolExpBool_or<TRes> get bool_or =>
+      CopyWith$Input$extrinsicAggregateBoolExpBool_or.stub(_res);
+
+  CopyWith$Input$extrinsicAggregateBoolExpCount<TRes> get count =>
+      CopyWith$Input$extrinsicAggregateBoolExpCount.stub(_res);
+}
+
+class Input$extrinsicAggregateBoolExpBool_and {
+  factory Input$extrinsicAggregateBoolExpBool_and({
+    required Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns
+        arguments,
+    bool? distinct,
+    Input$ExtrinsicBoolExp? filter,
+    required Input$BooleanComparisonExp predicate,
+  }) =>
+      Input$extrinsicAggregateBoolExpBool_and._({
+        r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$extrinsicAggregateBoolExpBool_and._(this._$data);
+
+  factory Input$extrinsicAggregateBoolExpBool_and.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    final l$arguments = data['arguments'];
+    result$data['arguments'] =
+        fromJson$Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns(
+            (l$arguments as String));
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$ExtrinsicBoolExp.fromJson((l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] = Input$BooleanComparisonExp.fromJson(
+        (l$predicate as Map<String, dynamic>));
+    return Input$extrinsicAggregateBoolExpBool_and._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns
+      get arguments => (_$data['arguments']
+          as Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$ExtrinsicBoolExp? get filter =>
+      (_$data['filter'] as Input$ExtrinsicBoolExp?);
+
+  Input$BooleanComparisonExp get predicate =>
+      (_$data['predicate'] as Input$BooleanComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    final l$arguments = arguments;
+    result$data['arguments'] =
+        toJson$Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns(
+            l$arguments);
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$extrinsicAggregateBoolExpBool_and<
+          Input$extrinsicAggregateBoolExpBool_and>
+      get copyWith => CopyWith$Input$extrinsicAggregateBoolExpBool_and(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$extrinsicAggregateBoolExpBool_and) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      l$arguments,
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$extrinsicAggregateBoolExpBool_and<TRes> {
+  factory CopyWith$Input$extrinsicAggregateBoolExpBool_and(
+    Input$extrinsicAggregateBoolExpBool_and instance,
+    TRes Function(Input$extrinsicAggregateBoolExpBool_and) then,
+  ) = _CopyWithImpl$Input$extrinsicAggregateBoolExpBool_and;
+
+  factory CopyWith$Input$extrinsicAggregateBoolExpBool_and.stub(TRes res) =
+      _CopyWithStubImpl$Input$extrinsicAggregateBoolExpBool_and;
+
+  TRes call({
+    Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns?
+        arguments,
+    bool? distinct,
+    Input$ExtrinsicBoolExp? filter,
+    Input$BooleanComparisonExp? predicate,
+  });
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get filter;
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$extrinsicAggregateBoolExpBool_and<TRes>
+    implements CopyWith$Input$extrinsicAggregateBoolExpBool_and<TRes> {
+  _CopyWithImpl$Input$extrinsicAggregateBoolExpBool_and(
+    this._instance,
+    this._then,
+  );
+
+  final Input$extrinsicAggregateBoolExpBool_and _instance;
+
+  final TRes Function(Input$extrinsicAggregateBoolExpBool_and) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$extrinsicAggregateBoolExpBool_and._({
+        ..._instance._$data,
+        if (arguments != _undefined && arguments != null)
+          'arguments': (arguments
+              as Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined) 'filter': (filter as Input$ExtrinsicBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$BooleanComparisonExp),
+      }));
+
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$ExtrinsicBoolExp.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicBoolExp(local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$BooleanComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$extrinsicAggregateBoolExpBool_and<TRes>
+    implements CopyWith$Input$extrinsicAggregateBoolExpBool_and<TRes> {
+  _CopyWithStubImpl$Input$extrinsicAggregateBoolExpBool_and(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns?
+        arguments,
+    bool? distinct,
+    Input$ExtrinsicBoolExp? filter,
+    Input$BooleanComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get filter =>
+      CopyWith$Input$ExtrinsicBoolExp.stub(_res);
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate =>
+      CopyWith$Input$BooleanComparisonExp.stub(_res);
+}
+
+class Input$extrinsicAggregateBoolExpBool_or {
+  factory Input$extrinsicAggregateBoolExpBool_or({
+    required Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns
+        arguments,
+    bool? distinct,
+    Input$ExtrinsicBoolExp? filter,
+    required Input$BooleanComparisonExp predicate,
+  }) =>
+      Input$extrinsicAggregateBoolExpBool_or._({
+        r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$extrinsicAggregateBoolExpBool_or._(this._$data);
+
+  factory Input$extrinsicAggregateBoolExpBool_or.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    final l$arguments = data['arguments'];
+    result$data['arguments'] =
+        fromJson$Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns(
+            (l$arguments as String));
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$ExtrinsicBoolExp.fromJson((l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] = Input$BooleanComparisonExp.fromJson(
+        (l$predicate as Map<String, dynamic>));
+    return Input$extrinsicAggregateBoolExpBool_or._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns
+      get arguments => (_$data['arguments']
+          as Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$ExtrinsicBoolExp? get filter =>
+      (_$data['filter'] as Input$ExtrinsicBoolExp?);
+
+  Input$BooleanComparisonExp get predicate =>
+      (_$data['predicate'] as Input$BooleanComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    final l$arguments = arguments;
+    result$data['arguments'] =
+        toJson$Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns(
+            l$arguments);
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$extrinsicAggregateBoolExpBool_or<
+          Input$extrinsicAggregateBoolExpBool_or>
+      get copyWith => CopyWith$Input$extrinsicAggregateBoolExpBool_or(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$extrinsicAggregateBoolExpBool_or) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      l$arguments,
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$extrinsicAggregateBoolExpBool_or<TRes> {
+  factory CopyWith$Input$extrinsicAggregateBoolExpBool_or(
+    Input$extrinsicAggregateBoolExpBool_or instance,
+    TRes Function(Input$extrinsicAggregateBoolExpBool_or) then,
+  ) = _CopyWithImpl$Input$extrinsicAggregateBoolExpBool_or;
+
+  factory CopyWith$Input$extrinsicAggregateBoolExpBool_or.stub(TRes res) =
+      _CopyWithStubImpl$Input$extrinsicAggregateBoolExpBool_or;
+
+  TRes call({
+    Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns?
+        arguments,
+    bool? distinct,
+    Input$ExtrinsicBoolExp? filter,
+    Input$BooleanComparisonExp? predicate,
+  });
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get filter;
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$extrinsicAggregateBoolExpBool_or<TRes>
+    implements CopyWith$Input$extrinsicAggregateBoolExpBool_or<TRes> {
+  _CopyWithImpl$Input$extrinsicAggregateBoolExpBool_or(
+    this._instance,
+    this._then,
+  );
+
+  final Input$extrinsicAggregateBoolExpBool_or _instance;
+
+  final TRes Function(Input$extrinsicAggregateBoolExpBool_or) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$extrinsicAggregateBoolExpBool_or._({
+        ..._instance._$data,
+        if (arguments != _undefined && arguments != null)
+          'arguments': (arguments
+              as Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined) 'filter': (filter as Input$ExtrinsicBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$BooleanComparisonExp),
+      }));
+
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$ExtrinsicBoolExp.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicBoolExp(local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$BooleanComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$extrinsicAggregateBoolExpBool_or<TRes>
+    implements CopyWith$Input$extrinsicAggregateBoolExpBool_or<TRes> {
+  _CopyWithStubImpl$Input$extrinsicAggregateBoolExpBool_or(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns?
+        arguments,
+    bool? distinct,
+    Input$ExtrinsicBoolExp? filter,
+    Input$BooleanComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get filter =>
+      CopyWith$Input$ExtrinsicBoolExp.stub(_res);
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get predicate =>
+      CopyWith$Input$BooleanComparisonExp.stub(_res);
+}
+
+class Input$extrinsicAggregateBoolExpCount {
+  factory Input$extrinsicAggregateBoolExpCount({
+    List<Enum$ExtrinsicSelectColumn>? arguments,
+    bool? distinct,
+    Input$ExtrinsicBoolExp? filter,
+    required Input$IntComparisonExp predicate,
+  }) =>
+      Input$extrinsicAggregateBoolExpCount._({
+        if (arguments != null) r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$extrinsicAggregateBoolExpCount._(this._$data);
+
+  factory Input$extrinsicAggregateBoolExpCount.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('arguments')) {
+      final l$arguments = data['arguments'];
+      result$data['arguments'] = (l$arguments as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$ExtrinsicSelectColumn((e as String)))
+          .toList();
+    }
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$ExtrinsicBoolExp.fromJson((l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] =
+        Input$IntComparisonExp.fromJson((l$predicate as Map<String, dynamic>));
+    return Input$extrinsicAggregateBoolExpCount._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Enum$ExtrinsicSelectColumn>? get arguments =>
+      (_$data['arguments'] as List<Enum$ExtrinsicSelectColumn>?);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$ExtrinsicBoolExp? get filter =>
+      (_$data['filter'] as Input$ExtrinsicBoolExp?);
+
+  Input$IntComparisonExp get predicate =>
+      (_$data['predicate'] as Input$IntComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('arguments')) {
+      final l$arguments = arguments;
+      result$data['arguments'] = l$arguments
+          ?.map((e) => toJson$Enum$ExtrinsicSelectColumn(e))
+          .toList();
+    }
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$extrinsicAggregateBoolExpCount<
+          Input$extrinsicAggregateBoolExpCount>
+      get copyWith => CopyWith$Input$extrinsicAggregateBoolExpCount(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$extrinsicAggregateBoolExpCount) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (_$data.containsKey('arguments') !=
+        other._$data.containsKey('arguments')) {
+      return false;
+    }
+    if (l$arguments != null && lOther$arguments != null) {
+      if (l$arguments.length != lOther$arguments.length) {
+        return false;
+      }
+      for (int i = 0; i < l$arguments.length; i++) {
+        final l$arguments$entry = l$arguments[i];
+        final lOther$arguments$entry = lOther$arguments[i];
+        if (l$arguments$entry != lOther$arguments$entry) {
+          return false;
+        }
+      }
+    } else if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      _$data.containsKey('arguments')
+          ? l$arguments == null
+              ? null
+              : Object.hashAll(l$arguments.map((v) => v))
+          : const {},
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$extrinsicAggregateBoolExpCount<TRes> {
+  factory CopyWith$Input$extrinsicAggregateBoolExpCount(
+    Input$extrinsicAggregateBoolExpCount instance,
+    TRes Function(Input$extrinsicAggregateBoolExpCount) then,
+  ) = _CopyWithImpl$Input$extrinsicAggregateBoolExpCount;
+
+  factory CopyWith$Input$extrinsicAggregateBoolExpCount.stub(TRes res) =
+      _CopyWithStubImpl$Input$extrinsicAggregateBoolExpCount;
+
+  TRes call({
+    List<Enum$ExtrinsicSelectColumn>? arguments,
+    bool? distinct,
+    Input$ExtrinsicBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  });
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get filter;
+  CopyWith$Input$IntComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$extrinsicAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$extrinsicAggregateBoolExpCount<TRes> {
+  _CopyWithImpl$Input$extrinsicAggregateBoolExpCount(
+    this._instance,
+    this._then,
+  );
+
+  final Input$extrinsicAggregateBoolExpCount _instance;
+
+  final TRes Function(Input$extrinsicAggregateBoolExpCount) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$extrinsicAggregateBoolExpCount._({
+        ..._instance._$data,
+        if (arguments != _undefined)
+          'arguments': (arguments as List<Enum$ExtrinsicSelectColumn>?),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined) 'filter': (filter as Input$ExtrinsicBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$IntComparisonExp),
+      }));
+
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$ExtrinsicBoolExp.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicBoolExp(local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$IntComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$extrinsicAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$extrinsicAggregateBoolExpCount<TRes> {
+  _CopyWithStubImpl$Input$extrinsicAggregateBoolExpCount(this._res);
+
+  TRes _res;
+
+  call({
+    List<Enum$ExtrinsicSelectColumn>? arguments,
+    bool? distinct,
+    Input$ExtrinsicBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get filter =>
+      CopyWith$Input$ExtrinsicBoolExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+}
+
+class Input$ExtrinsicAggregateOrderBy {
+  factory Input$ExtrinsicAggregateOrderBy({
+    Input$ExtrinsicAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$ExtrinsicMaxOrderBy? max,
+    Input$ExtrinsicMinOrderBy? min,
+    Input$ExtrinsicStddevOrderBy? stddev,
+    Input$ExtrinsicStddevPopOrderBy? stddevPop,
+    Input$ExtrinsicStddevSampOrderBy? stddevSamp,
+    Input$ExtrinsicSumOrderBy? sum,
+    Input$ExtrinsicVarPopOrderBy? varPop,
+    Input$ExtrinsicVarSampOrderBy? varSamp,
+    Input$ExtrinsicVarianceOrderBy? variance,
+  }) =>
+      Input$ExtrinsicAggregateOrderBy._({
+        if (avg != null) r'avg': avg,
+        if (count != null) r'count': count,
+        if (max != null) r'max': max,
+        if (min != null) r'min': min,
+        if (stddev != null) r'stddev': stddev,
+        if (stddevPop != null) r'stddevPop': stddevPop,
+        if (stddevSamp != null) r'stddevSamp': stddevSamp,
+        if (sum != null) r'sum': sum,
+        if (varPop != null) r'varPop': varPop,
+        if (varSamp != null) r'varSamp': varSamp,
+        if (variance != null) r'variance': variance,
+      });
+
+  Input$ExtrinsicAggregateOrderBy._(this._$data);
+
+  factory Input$ExtrinsicAggregateOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('avg')) {
+      final l$avg = data['avg'];
+      result$data['avg'] = l$avg == null
+          ? null
+          : Input$ExtrinsicAvgOrderBy.fromJson((l$avg as Map<String, dynamic>));
+    }
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] =
+          l$count == null ? null : fromJson$Enum$OrderBy((l$count as String));
+    }
+    if (data.containsKey('max')) {
+      final l$max = data['max'];
+      result$data['max'] = l$max == null
+          ? null
+          : Input$ExtrinsicMaxOrderBy.fromJson((l$max as Map<String, dynamic>));
+    }
+    if (data.containsKey('min')) {
+      final l$min = data['min'];
+      result$data['min'] = l$min == null
+          ? null
+          : Input$ExtrinsicMinOrderBy.fromJson((l$min as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddev')) {
+      final l$stddev = data['stddev'];
+      result$data['stddev'] = l$stddev == null
+          ? null
+          : Input$ExtrinsicStddevOrderBy.fromJson(
+              (l$stddev as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevPop')) {
+      final l$stddevPop = data['stddevPop'];
+      result$data['stddevPop'] = l$stddevPop == null
+          ? null
+          : Input$ExtrinsicStddevPopOrderBy.fromJson(
+              (l$stddevPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevSamp')) {
+      final l$stddevSamp = data['stddevSamp'];
+      result$data['stddevSamp'] = l$stddevSamp == null
+          ? null
+          : Input$ExtrinsicStddevSampOrderBy.fromJson(
+              (l$stddevSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('sum')) {
+      final l$sum = data['sum'];
+      result$data['sum'] = l$sum == null
+          ? null
+          : Input$ExtrinsicSumOrderBy.fromJson((l$sum as Map<String, dynamic>));
+    }
+    if (data.containsKey('varPop')) {
+      final l$varPop = data['varPop'];
+      result$data['varPop'] = l$varPop == null
+          ? null
+          : Input$ExtrinsicVarPopOrderBy.fromJson(
+              (l$varPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('varSamp')) {
+      final l$varSamp = data['varSamp'];
+      result$data['varSamp'] = l$varSamp == null
+          ? null
+          : Input$ExtrinsicVarSampOrderBy.fromJson(
+              (l$varSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('variance')) {
+      final l$variance = data['variance'];
+      result$data['variance'] = l$variance == null
+          ? null
+          : Input$ExtrinsicVarianceOrderBy.fromJson(
+              (l$variance as Map<String, dynamic>));
+    }
+    return Input$ExtrinsicAggregateOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$ExtrinsicAvgOrderBy? get avg =>
+      (_$data['avg'] as Input$ExtrinsicAvgOrderBy?);
+
+  Enum$OrderBy? get count => (_$data['count'] as Enum$OrderBy?);
+
+  Input$ExtrinsicMaxOrderBy? get max =>
+      (_$data['max'] as Input$ExtrinsicMaxOrderBy?);
+
+  Input$ExtrinsicMinOrderBy? get min =>
+      (_$data['min'] as Input$ExtrinsicMinOrderBy?);
+
+  Input$ExtrinsicStddevOrderBy? get stddev =>
+      (_$data['stddev'] as Input$ExtrinsicStddevOrderBy?);
+
+  Input$ExtrinsicStddevPopOrderBy? get stddevPop =>
+      (_$data['stddevPop'] as Input$ExtrinsicStddevPopOrderBy?);
+
+  Input$ExtrinsicStddevSampOrderBy? get stddevSamp =>
+      (_$data['stddevSamp'] as Input$ExtrinsicStddevSampOrderBy?);
+
+  Input$ExtrinsicSumOrderBy? get sum =>
+      (_$data['sum'] as Input$ExtrinsicSumOrderBy?);
+
+  Input$ExtrinsicVarPopOrderBy? get varPop =>
+      (_$data['varPop'] as Input$ExtrinsicVarPopOrderBy?);
+
+  Input$ExtrinsicVarSampOrderBy? get varSamp =>
+      (_$data['varSamp'] as Input$ExtrinsicVarSampOrderBy?);
+
+  Input$ExtrinsicVarianceOrderBy? get variance =>
+      (_$data['variance'] as Input$ExtrinsicVarianceOrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('avg')) {
+      final l$avg = avg;
+      result$data['avg'] = l$avg?.toJson();
+    }
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] =
+          l$count == null ? null : toJson$Enum$OrderBy(l$count);
+    }
+    if (_$data.containsKey('max')) {
+      final l$max = max;
+      result$data['max'] = l$max?.toJson();
+    }
+    if (_$data.containsKey('min')) {
+      final l$min = min;
+      result$data['min'] = l$min?.toJson();
+    }
+    if (_$data.containsKey('stddev')) {
+      final l$stddev = stddev;
+      result$data['stddev'] = l$stddev?.toJson();
+    }
+    if (_$data.containsKey('stddevPop')) {
+      final l$stddevPop = stddevPop;
+      result$data['stddevPop'] = l$stddevPop?.toJson();
+    }
+    if (_$data.containsKey('stddevSamp')) {
+      final l$stddevSamp = stddevSamp;
+      result$data['stddevSamp'] = l$stddevSamp?.toJson();
+    }
+    if (_$data.containsKey('sum')) {
+      final l$sum = sum;
+      result$data['sum'] = l$sum?.toJson();
+    }
+    if (_$data.containsKey('varPop')) {
+      final l$varPop = varPop;
+      result$data['varPop'] = l$varPop?.toJson();
+    }
+    if (_$data.containsKey('varSamp')) {
+      final l$varSamp = varSamp;
+      result$data['varSamp'] = l$varSamp?.toJson();
+    }
+    if (_$data.containsKey('variance')) {
+      final l$variance = variance;
+      result$data['variance'] = l$variance?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ExtrinsicAggregateOrderBy<Input$ExtrinsicAggregateOrderBy>
+      get copyWith => CopyWith$Input$ExtrinsicAggregateOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ExtrinsicAggregateOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$avg = avg;
+    final lOther$avg = other.avg;
+    if (_$data.containsKey('avg') != other._$data.containsKey('avg')) {
+      return false;
+    }
+    if (l$avg != lOther$avg) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    final l$max = max;
+    final lOther$max = other.max;
+    if (_$data.containsKey('max') != other._$data.containsKey('max')) {
+      return false;
+    }
+    if (l$max != lOther$max) {
+      return false;
+    }
+    final l$min = min;
+    final lOther$min = other.min;
+    if (_$data.containsKey('min') != other._$data.containsKey('min')) {
+      return false;
+    }
+    if (l$min != lOther$min) {
+      return false;
+    }
+    final l$stddev = stddev;
+    final lOther$stddev = other.stddev;
+    if (_$data.containsKey('stddev') != other._$data.containsKey('stddev')) {
+      return false;
+    }
+    if (l$stddev != lOther$stddev) {
+      return false;
+    }
+    final l$stddevPop = stddevPop;
+    final lOther$stddevPop = other.stddevPop;
+    if (_$data.containsKey('stddevPop') !=
+        other._$data.containsKey('stddevPop')) {
+      return false;
+    }
+    if (l$stddevPop != lOther$stddevPop) {
+      return false;
+    }
+    final l$stddevSamp = stddevSamp;
+    final lOther$stddevSamp = other.stddevSamp;
+    if (_$data.containsKey('stddevSamp') !=
+        other._$data.containsKey('stddevSamp')) {
+      return false;
+    }
+    if (l$stddevSamp != lOther$stddevSamp) {
+      return false;
+    }
+    final l$sum = sum;
+    final lOther$sum = other.sum;
+    if (_$data.containsKey('sum') != other._$data.containsKey('sum')) {
+      return false;
+    }
+    if (l$sum != lOther$sum) {
+      return false;
+    }
+    final l$varPop = varPop;
+    final lOther$varPop = other.varPop;
+    if (_$data.containsKey('varPop') != other._$data.containsKey('varPop')) {
+      return false;
+    }
+    if (l$varPop != lOther$varPop) {
+      return false;
+    }
+    final l$varSamp = varSamp;
+    final lOther$varSamp = other.varSamp;
+    if (_$data.containsKey('varSamp') != other._$data.containsKey('varSamp')) {
+      return false;
+    }
+    if (l$varSamp != lOther$varSamp) {
+      return false;
+    }
+    final l$variance = variance;
+    final lOther$variance = other.variance;
+    if (_$data.containsKey('variance') !=
+        other._$data.containsKey('variance')) {
+      return false;
+    }
+    if (l$variance != lOther$variance) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$avg = avg;
+    final l$count = count;
+    final l$max = max;
+    final l$min = min;
+    final l$stddev = stddev;
+    final l$stddevPop = stddevPop;
+    final l$stddevSamp = stddevSamp;
+    final l$sum = sum;
+    final l$varPop = varPop;
+    final l$varSamp = varSamp;
+    final l$variance = variance;
+    return Object.hashAll([
+      _$data.containsKey('avg') ? l$avg : const {},
+      _$data.containsKey('count') ? l$count : const {},
+      _$data.containsKey('max') ? l$max : const {},
+      _$data.containsKey('min') ? l$min : const {},
+      _$data.containsKey('stddev') ? l$stddev : const {},
+      _$data.containsKey('stddevPop') ? l$stddevPop : const {},
+      _$data.containsKey('stddevSamp') ? l$stddevSamp : const {},
+      _$data.containsKey('sum') ? l$sum : const {},
+      _$data.containsKey('varPop') ? l$varPop : const {},
+      _$data.containsKey('varSamp') ? l$varSamp : const {},
+      _$data.containsKey('variance') ? l$variance : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ExtrinsicAggregateOrderBy<TRes> {
+  factory CopyWith$Input$ExtrinsicAggregateOrderBy(
+    Input$ExtrinsicAggregateOrderBy instance,
+    TRes Function(Input$ExtrinsicAggregateOrderBy) then,
+  ) = _CopyWithImpl$Input$ExtrinsicAggregateOrderBy;
+
+  factory CopyWith$Input$ExtrinsicAggregateOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ExtrinsicAggregateOrderBy;
+
+  TRes call({
+    Input$ExtrinsicAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$ExtrinsicMaxOrderBy? max,
+    Input$ExtrinsicMinOrderBy? min,
+    Input$ExtrinsicStddevOrderBy? stddev,
+    Input$ExtrinsicStddevPopOrderBy? stddevPop,
+    Input$ExtrinsicStddevSampOrderBy? stddevSamp,
+    Input$ExtrinsicSumOrderBy? sum,
+    Input$ExtrinsicVarPopOrderBy? varPop,
+    Input$ExtrinsicVarSampOrderBy? varSamp,
+    Input$ExtrinsicVarianceOrderBy? variance,
+  });
+  CopyWith$Input$ExtrinsicAvgOrderBy<TRes> get avg;
+  CopyWith$Input$ExtrinsicMaxOrderBy<TRes> get max;
+  CopyWith$Input$ExtrinsicMinOrderBy<TRes> get min;
+  CopyWith$Input$ExtrinsicStddevOrderBy<TRes> get stddev;
+  CopyWith$Input$ExtrinsicStddevPopOrderBy<TRes> get stddevPop;
+  CopyWith$Input$ExtrinsicStddevSampOrderBy<TRes> get stddevSamp;
+  CopyWith$Input$ExtrinsicSumOrderBy<TRes> get sum;
+  CopyWith$Input$ExtrinsicVarPopOrderBy<TRes> get varPop;
+  CopyWith$Input$ExtrinsicVarSampOrderBy<TRes> get varSamp;
+  CopyWith$Input$ExtrinsicVarianceOrderBy<TRes> get variance;
+}
+
+class _CopyWithImpl$Input$ExtrinsicAggregateOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicAggregateOrderBy<TRes> {
+  _CopyWithImpl$Input$ExtrinsicAggregateOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ExtrinsicAggregateOrderBy _instance;
+
+  final TRes Function(Input$ExtrinsicAggregateOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? avg = _undefined,
+    Object? count = _undefined,
+    Object? max = _undefined,
+    Object? min = _undefined,
+    Object? stddev = _undefined,
+    Object? stddevPop = _undefined,
+    Object? stddevSamp = _undefined,
+    Object? sum = _undefined,
+    Object? varPop = _undefined,
+    Object? varSamp = _undefined,
+    Object? variance = _undefined,
+  }) =>
+      _then(Input$ExtrinsicAggregateOrderBy._({
+        ..._instance._$data,
+        if (avg != _undefined) 'avg': (avg as Input$ExtrinsicAvgOrderBy?),
+        if (count != _undefined) 'count': (count as Enum$OrderBy?),
+        if (max != _undefined) 'max': (max as Input$ExtrinsicMaxOrderBy?),
+        if (min != _undefined) 'min': (min as Input$ExtrinsicMinOrderBy?),
+        if (stddev != _undefined)
+          'stddev': (stddev as Input$ExtrinsicStddevOrderBy?),
+        if (stddevPop != _undefined)
+          'stddevPop': (stddevPop as Input$ExtrinsicStddevPopOrderBy?),
+        if (stddevSamp != _undefined)
+          'stddevSamp': (stddevSamp as Input$ExtrinsicStddevSampOrderBy?),
+        if (sum != _undefined) 'sum': (sum as Input$ExtrinsicSumOrderBy?),
+        if (varPop != _undefined)
+          'varPop': (varPop as Input$ExtrinsicVarPopOrderBy?),
+        if (varSamp != _undefined)
+          'varSamp': (varSamp as Input$ExtrinsicVarSampOrderBy?),
+        if (variance != _undefined)
+          'variance': (variance as Input$ExtrinsicVarianceOrderBy?),
+      }));
+
+  CopyWith$Input$ExtrinsicAvgOrderBy<TRes> get avg {
+    final local$avg = _instance.avg;
+    return local$avg == null
+        ? CopyWith$Input$ExtrinsicAvgOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicAvgOrderBy(local$avg, (e) => call(avg: e));
+  }
+
+  CopyWith$Input$ExtrinsicMaxOrderBy<TRes> get max {
+    final local$max = _instance.max;
+    return local$max == null
+        ? CopyWith$Input$ExtrinsicMaxOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicMaxOrderBy(local$max, (e) => call(max: e));
+  }
+
+  CopyWith$Input$ExtrinsicMinOrderBy<TRes> get min {
+    final local$min = _instance.min;
+    return local$min == null
+        ? CopyWith$Input$ExtrinsicMinOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicMinOrderBy(local$min, (e) => call(min: e));
+  }
+
+  CopyWith$Input$ExtrinsicStddevOrderBy<TRes> get stddev {
+    final local$stddev = _instance.stddev;
+    return local$stddev == null
+        ? CopyWith$Input$ExtrinsicStddevOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicStddevOrderBy(
+            local$stddev, (e) => call(stddev: e));
+  }
+
+  CopyWith$Input$ExtrinsicStddevPopOrderBy<TRes> get stddevPop {
+    final local$stddevPop = _instance.stddevPop;
+    return local$stddevPop == null
+        ? CopyWith$Input$ExtrinsicStddevPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicStddevPopOrderBy(
+            local$stddevPop, (e) => call(stddevPop: e));
+  }
+
+  CopyWith$Input$ExtrinsicStddevSampOrderBy<TRes> get stddevSamp {
+    final local$stddevSamp = _instance.stddevSamp;
+    return local$stddevSamp == null
+        ? CopyWith$Input$ExtrinsicStddevSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicStddevSampOrderBy(
+            local$stddevSamp, (e) => call(stddevSamp: e));
+  }
+
+  CopyWith$Input$ExtrinsicSumOrderBy<TRes> get sum {
+    final local$sum = _instance.sum;
+    return local$sum == null
+        ? CopyWith$Input$ExtrinsicSumOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicSumOrderBy(local$sum, (e) => call(sum: e));
+  }
+
+  CopyWith$Input$ExtrinsicVarPopOrderBy<TRes> get varPop {
+    final local$varPop = _instance.varPop;
+    return local$varPop == null
+        ? CopyWith$Input$ExtrinsicVarPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicVarPopOrderBy(
+            local$varPop, (e) => call(varPop: e));
+  }
+
+  CopyWith$Input$ExtrinsicVarSampOrderBy<TRes> get varSamp {
+    final local$varSamp = _instance.varSamp;
+    return local$varSamp == null
+        ? CopyWith$Input$ExtrinsicVarSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicVarSampOrderBy(
+            local$varSamp, (e) => call(varSamp: e));
+  }
+
+  CopyWith$Input$ExtrinsicVarianceOrderBy<TRes> get variance {
+    final local$variance = _instance.variance;
+    return local$variance == null
+        ? CopyWith$Input$ExtrinsicVarianceOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicVarianceOrderBy(
+            local$variance, (e) => call(variance: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$ExtrinsicAggregateOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicAggregateOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ExtrinsicAggregateOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Input$ExtrinsicAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$ExtrinsicMaxOrderBy? max,
+    Input$ExtrinsicMinOrderBy? min,
+    Input$ExtrinsicStddevOrderBy? stddev,
+    Input$ExtrinsicStddevPopOrderBy? stddevPop,
+    Input$ExtrinsicStddevSampOrderBy? stddevSamp,
+    Input$ExtrinsicSumOrderBy? sum,
+    Input$ExtrinsicVarPopOrderBy? varPop,
+    Input$ExtrinsicVarSampOrderBy? varSamp,
+    Input$ExtrinsicVarianceOrderBy? variance,
+  }) =>
+      _res;
+
+  CopyWith$Input$ExtrinsicAvgOrderBy<TRes> get avg =>
+      CopyWith$Input$ExtrinsicAvgOrderBy.stub(_res);
+
+  CopyWith$Input$ExtrinsicMaxOrderBy<TRes> get max =>
+      CopyWith$Input$ExtrinsicMaxOrderBy.stub(_res);
+
+  CopyWith$Input$ExtrinsicMinOrderBy<TRes> get min =>
+      CopyWith$Input$ExtrinsicMinOrderBy.stub(_res);
+
+  CopyWith$Input$ExtrinsicStddevOrderBy<TRes> get stddev =>
+      CopyWith$Input$ExtrinsicStddevOrderBy.stub(_res);
+
+  CopyWith$Input$ExtrinsicStddevPopOrderBy<TRes> get stddevPop =>
+      CopyWith$Input$ExtrinsicStddevPopOrderBy.stub(_res);
+
+  CopyWith$Input$ExtrinsicStddevSampOrderBy<TRes> get stddevSamp =>
+      CopyWith$Input$ExtrinsicStddevSampOrderBy.stub(_res);
+
+  CopyWith$Input$ExtrinsicSumOrderBy<TRes> get sum =>
+      CopyWith$Input$ExtrinsicSumOrderBy.stub(_res);
+
+  CopyWith$Input$ExtrinsicVarPopOrderBy<TRes> get varPop =>
+      CopyWith$Input$ExtrinsicVarPopOrderBy.stub(_res);
+
+  CopyWith$Input$ExtrinsicVarSampOrderBy<TRes> get varSamp =>
+      CopyWith$Input$ExtrinsicVarSampOrderBy.stub(_res);
+
+  CopyWith$Input$ExtrinsicVarianceOrderBy<TRes> get variance =>
+      CopyWith$Input$ExtrinsicVarianceOrderBy.stub(_res);
+}
+
+class Input$ExtrinsicAvgOrderBy {
+  factory Input$ExtrinsicAvgOrderBy({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      Input$ExtrinsicAvgOrderBy._({
+        if (fee != null) r'fee': fee,
+        if (index != null) r'index': index,
+        if (tip != null) r'tip': tip,
+        if (version != null) r'version': version,
+      });
+
+  Input$ExtrinsicAvgOrderBy._(this._$data);
+
+  factory Input$ExtrinsicAvgOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('fee')) {
+      final l$fee = data['fee'];
+      result$data['fee'] =
+          l$fee == null ? null : fromJson$Enum$OrderBy((l$fee as String));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    if (data.containsKey('tip')) {
+      final l$tip = data['tip'];
+      result$data['tip'] =
+          l$tip == null ? null : fromJson$Enum$OrderBy((l$tip as String));
+    }
+    if (data.containsKey('version')) {
+      final l$version = data['version'];
+      result$data['version'] = l$version == null
+          ? null
+          : fromJson$Enum$OrderBy((l$version as String));
+    }
+    return Input$ExtrinsicAvgOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get fee => (_$data['fee'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get tip => (_$data['tip'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get version => (_$data['version'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('fee')) {
+      final l$fee = fee;
+      result$data['fee'] = l$fee == null ? null : toJson$Enum$OrderBy(l$fee);
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    if (_$data.containsKey('tip')) {
+      final l$tip = tip;
+      result$data['tip'] = l$tip == null ? null : toJson$Enum$OrderBy(l$tip);
+    }
+    if (_$data.containsKey('version')) {
+      final l$version = version;
+      result$data['version'] =
+          l$version == null ? null : toJson$Enum$OrderBy(l$version);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ExtrinsicAvgOrderBy<Input$ExtrinsicAvgOrderBy> get copyWith =>
+      CopyWith$Input$ExtrinsicAvgOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ExtrinsicAvgOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$fee = fee;
+    final lOther$fee = other.fee;
+    if (_$data.containsKey('fee') != other._$data.containsKey('fee')) {
+      return false;
+    }
+    if (l$fee != lOther$fee) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$tip = tip;
+    final lOther$tip = other.tip;
+    if (_$data.containsKey('tip') != other._$data.containsKey('tip')) {
+      return false;
+    }
+    if (l$tip != lOther$tip) {
+      return false;
+    }
+    final l$version = version;
+    final lOther$version = other.version;
+    if (_$data.containsKey('version') != other._$data.containsKey('version')) {
+      return false;
+    }
+    if (l$version != lOther$version) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$fee = fee;
+    final l$index = index;
+    final l$tip = tip;
+    final l$version = version;
+    return Object.hashAll([
+      _$data.containsKey('fee') ? l$fee : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('tip') ? l$tip : const {},
+      _$data.containsKey('version') ? l$version : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ExtrinsicAvgOrderBy<TRes> {
+  factory CopyWith$Input$ExtrinsicAvgOrderBy(
+    Input$ExtrinsicAvgOrderBy instance,
+    TRes Function(Input$ExtrinsicAvgOrderBy) then,
+  ) = _CopyWithImpl$Input$ExtrinsicAvgOrderBy;
+
+  factory CopyWith$Input$ExtrinsicAvgOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ExtrinsicAvgOrderBy;
+
+  TRes call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  });
+}
+
+class _CopyWithImpl$Input$ExtrinsicAvgOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicAvgOrderBy<TRes> {
+  _CopyWithImpl$Input$ExtrinsicAvgOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ExtrinsicAvgOrderBy _instance;
+
+  final TRes Function(Input$ExtrinsicAvgOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? fee = _undefined,
+    Object? index = _undefined,
+    Object? tip = _undefined,
+    Object? version = _undefined,
+  }) =>
+      _then(Input$ExtrinsicAvgOrderBy._({
+        ..._instance._$data,
+        if (fee != _undefined) 'fee': (fee as Enum$OrderBy?),
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+        if (tip != _undefined) 'tip': (tip as Enum$OrderBy?),
+        if (version != _undefined) 'version': (version as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ExtrinsicAvgOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicAvgOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ExtrinsicAvgOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      _res;
+}
+
+class Input$ExtrinsicBoolExp {
+  factory Input$ExtrinsicBoolExp({
+    List<Input$ExtrinsicBoolExp>? $_and,
+    Input$ExtrinsicBoolExp? $_not,
+    List<Input$ExtrinsicBoolExp>? $_or,
+    Input$BlockBoolExp? block,
+    Input$StringComparisonExp? blockId,
+    Input$CallBoolExp? $call,
+    Input$StringComparisonExp? callId,
+    Input$CallBoolExp? calls,
+    Input$CallAggregateBoolExp? callsAggregate,
+    Input$JsonbComparisonExp? error,
+    Input$EventBoolExp? events,
+    Input$EventAggregateBoolExp? eventsAggregate,
+    Input$NumericComparisonExp? fee,
+    Input$ByteaComparisonExp? hash,
+    Input$StringComparisonExp? id,
+    Input$IntComparisonExp? index,
+    Input$JsonbComparisonExp? signature,
+    Input$BooleanComparisonExp? success,
+    Input$NumericComparisonExp? tip,
+    Input$IntComparisonExp? version,
+  }) =>
+      Input$ExtrinsicBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (block != null) r'block': block,
+        if (blockId != null) r'blockId': blockId,
+        if ($call != null) r'call': $call,
+        if (callId != null) r'callId': callId,
+        if (calls != null) r'calls': calls,
+        if (callsAggregate != null) r'callsAggregate': callsAggregate,
+        if (error != null) r'error': error,
+        if (events != null) r'events': events,
+        if (eventsAggregate != null) r'eventsAggregate': eventsAggregate,
+        if (fee != null) r'fee': fee,
+        if (hash != null) r'hash': hash,
+        if (id != null) r'id': id,
+        if (index != null) r'index': index,
+        if (signature != null) r'signature': signature,
+        if (success != null) r'success': success,
+        if (tip != null) r'tip': tip,
+        if (version != null) r'version': version,
+      });
+
+  Input$ExtrinsicBoolExp._(this._$data);
+
+  factory Input$ExtrinsicBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map((e) =>
+              Input$ExtrinsicBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$ExtrinsicBoolExp.fromJson((l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map((e) =>
+              Input$ExtrinsicBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('block')) {
+      final l$block = data['block'];
+      result$data['block'] = l$block == null
+          ? null
+          : Input$BlockBoolExp.fromJson((l$block as Map<String, dynamic>));
+    }
+    if (data.containsKey('blockId')) {
+      final l$blockId = data['blockId'];
+      result$data['blockId'] = l$blockId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$blockId as Map<String, dynamic>));
+    }
+    if (data.containsKey('call')) {
+      final l$$call = data['call'];
+      result$data['call'] = l$$call == null
+          ? null
+          : Input$CallBoolExp.fromJson((l$$call as Map<String, dynamic>));
+    }
+    if (data.containsKey('callId')) {
+      final l$callId = data['callId'];
+      result$data['callId'] = l$callId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$callId as Map<String, dynamic>));
+    }
+    if (data.containsKey('calls')) {
+      final l$calls = data['calls'];
+      result$data['calls'] = l$calls == null
+          ? null
+          : Input$CallBoolExp.fromJson((l$calls as Map<String, dynamic>));
+    }
+    if (data.containsKey('callsAggregate')) {
+      final l$callsAggregate = data['callsAggregate'];
+      result$data['callsAggregate'] = l$callsAggregate == null
+          ? null
+          : Input$CallAggregateBoolExp.fromJson(
+              (l$callsAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('error')) {
+      final l$error = data['error'];
+      result$data['error'] = l$error == null
+          ? null
+          : Input$JsonbComparisonExp.fromJson(
+              (l$error as Map<String, dynamic>));
+    }
+    if (data.containsKey('events')) {
+      final l$events = data['events'];
+      result$data['events'] = l$events == null
+          ? null
+          : Input$EventBoolExp.fromJson((l$events as Map<String, dynamic>));
+    }
+    if (data.containsKey('eventsAggregate')) {
+      final l$eventsAggregate = data['eventsAggregate'];
+      result$data['eventsAggregate'] = l$eventsAggregate == null
+          ? null
+          : Input$EventAggregateBoolExp.fromJson(
+              (l$eventsAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('fee')) {
+      final l$fee = data['fee'];
+      result$data['fee'] = l$fee == null
+          ? null
+          : Input$NumericComparisonExp.fromJson(
+              (l$fee as Map<String, dynamic>));
+    }
+    if (data.containsKey('hash')) {
+      final l$hash = data['hash'];
+      result$data['hash'] = l$hash == null
+          ? null
+          : Input$ByteaComparisonExp.fromJson((l$hash as Map<String, dynamic>));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] = l$index == null
+          ? null
+          : Input$IntComparisonExp.fromJson((l$index as Map<String, dynamic>));
+    }
+    if (data.containsKey('signature')) {
+      final l$signature = data['signature'];
+      result$data['signature'] = l$signature == null
+          ? null
+          : Input$JsonbComparisonExp.fromJson(
+              (l$signature as Map<String, dynamic>));
+    }
+    if (data.containsKey('success')) {
+      final l$success = data['success'];
+      result$data['success'] = l$success == null
+          ? null
+          : Input$BooleanComparisonExp.fromJson(
+              (l$success as Map<String, dynamic>));
+    }
+    if (data.containsKey('tip')) {
+      final l$tip = data['tip'];
+      result$data['tip'] = l$tip == null
+          ? null
+          : Input$NumericComparisonExp.fromJson(
+              (l$tip as Map<String, dynamic>));
+    }
+    if (data.containsKey('version')) {
+      final l$version = data['version'];
+      result$data['version'] = l$version == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$version as Map<String, dynamic>));
+    }
+    return Input$ExtrinsicBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$ExtrinsicBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$ExtrinsicBoolExp>?);
+
+  Input$ExtrinsicBoolExp? get $_not =>
+      (_$data['_not'] as Input$ExtrinsicBoolExp?);
+
+  List<Input$ExtrinsicBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$ExtrinsicBoolExp>?);
+
+  Input$BlockBoolExp? get block => (_$data['block'] as Input$BlockBoolExp?);
+
+  Input$StringComparisonExp? get blockId =>
+      (_$data['blockId'] as Input$StringComparisonExp?);
+
+  Input$CallBoolExp? get $call => (_$data['call'] as Input$CallBoolExp?);
+
+  Input$StringComparisonExp? get callId =>
+      (_$data['callId'] as Input$StringComparisonExp?);
+
+  Input$CallBoolExp? get calls => (_$data['calls'] as Input$CallBoolExp?);
+
+  Input$CallAggregateBoolExp? get callsAggregate =>
+      (_$data['callsAggregate'] as Input$CallAggregateBoolExp?);
+
+  Input$JsonbComparisonExp? get error =>
+      (_$data['error'] as Input$JsonbComparisonExp?);
+
+  Input$EventBoolExp? get events => (_$data['events'] as Input$EventBoolExp?);
+
+  Input$EventAggregateBoolExp? get eventsAggregate =>
+      (_$data['eventsAggregate'] as Input$EventAggregateBoolExp?);
+
+  Input$NumericComparisonExp? get fee =>
+      (_$data['fee'] as Input$NumericComparisonExp?);
+
+  Input$ByteaComparisonExp? get hash =>
+      (_$data['hash'] as Input$ByteaComparisonExp?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Input$IntComparisonExp? get index =>
+      (_$data['index'] as Input$IntComparisonExp?);
+
+  Input$JsonbComparisonExp? get signature =>
+      (_$data['signature'] as Input$JsonbComparisonExp?);
+
+  Input$BooleanComparisonExp? get success =>
+      (_$data['success'] as Input$BooleanComparisonExp?);
+
+  Input$NumericComparisonExp? get tip =>
+      (_$data['tip'] as Input$NumericComparisonExp?);
+
+  Input$IntComparisonExp? get version =>
+      (_$data['version'] as Input$IntComparisonExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('block')) {
+      final l$block = block;
+      result$data['block'] = l$block?.toJson();
+    }
+    if (_$data.containsKey('blockId')) {
+      final l$blockId = blockId;
+      result$data['blockId'] = l$blockId?.toJson();
+    }
+    if (_$data.containsKey('call')) {
+      final l$$call = $call;
+      result$data['call'] = l$$call?.toJson();
+    }
+    if (_$data.containsKey('callId')) {
+      final l$callId = callId;
+      result$data['callId'] = l$callId?.toJson();
+    }
+    if (_$data.containsKey('calls')) {
+      final l$calls = calls;
+      result$data['calls'] = l$calls?.toJson();
+    }
+    if (_$data.containsKey('callsAggregate')) {
+      final l$callsAggregate = callsAggregate;
+      result$data['callsAggregate'] = l$callsAggregate?.toJson();
+    }
+    if (_$data.containsKey('error')) {
+      final l$error = error;
+      result$data['error'] = l$error?.toJson();
+    }
+    if (_$data.containsKey('events')) {
+      final l$events = events;
+      result$data['events'] = l$events?.toJson();
+    }
+    if (_$data.containsKey('eventsAggregate')) {
+      final l$eventsAggregate = eventsAggregate;
+      result$data['eventsAggregate'] = l$eventsAggregate?.toJson();
+    }
+    if (_$data.containsKey('fee')) {
+      final l$fee = fee;
+      result$data['fee'] = l$fee?.toJson();
+    }
+    if (_$data.containsKey('hash')) {
+      final l$hash = hash;
+      result$data['hash'] = l$hash?.toJson();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] = l$index?.toJson();
+    }
+    if (_$data.containsKey('signature')) {
+      final l$signature = signature;
+      result$data['signature'] = l$signature?.toJson();
+    }
+    if (_$data.containsKey('success')) {
+      final l$success = success;
+      result$data['success'] = l$success?.toJson();
+    }
+    if (_$data.containsKey('tip')) {
+      final l$tip = tip;
+      result$data['tip'] = l$tip?.toJson();
+    }
+    if (_$data.containsKey('version')) {
+      final l$version = version;
+      result$data['version'] = l$version?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ExtrinsicBoolExp<Input$ExtrinsicBoolExp> get copyWith =>
+      CopyWith$Input$ExtrinsicBoolExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ExtrinsicBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$block = block;
+    final lOther$block = other.block;
+    if (_$data.containsKey('block') != other._$data.containsKey('block')) {
+      return false;
+    }
+    if (l$block != lOther$block) {
+      return false;
+    }
+    final l$blockId = blockId;
+    final lOther$blockId = other.blockId;
+    if (_$data.containsKey('blockId') != other._$data.containsKey('blockId')) {
+      return false;
+    }
+    if (l$blockId != lOther$blockId) {
+      return false;
+    }
+    final l$$call = $call;
+    final lOther$$call = other.$call;
+    if (_$data.containsKey('call') != other._$data.containsKey('call')) {
+      return false;
+    }
+    if (l$$call != lOther$$call) {
+      return false;
+    }
+    final l$callId = callId;
+    final lOther$callId = other.callId;
+    if (_$data.containsKey('callId') != other._$data.containsKey('callId')) {
+      return false;
+    }
+    if (l$callId != lOther$callId) {
+      return false;
+    }
+    final l$calls = calls;
+    final lOther$calls = other.calls;
+    if (_$data.containsKey('calls') != other._$data.containsKey('calls')) {
+      return false;
+    }
+    if (l$calls != lOther$calls) {
+      return false;
+    }
+    final l$callsAggregate = callsAggregate;
+    final lOther$callsAggregate = other.callsAggregate;
+    if (_$data.containsKey('callsAggregate') !=
+        other._$data.containsKey('callsAggregate')) {
+      return false;
+    }
+    if (l$callsAggregate != lOther$callsAggregate) {
+      return false;
+    }
+    final l$error = error;
+    final lOther$error = other.error;
+    if (_$data.containsKey('error') != other._$data.containsKey('error')) {
+      return false;
+    }
+    if (l$error != lOther$error) {
+      return false;
+    }
+    final l$events = events;
+    final lOther$events = other.events;
+    if (_$data.containsKey('events') != other._$data.containsKey('events')) {
+      return false;
+    }
+    if (l$events != lOther$events) {
+      return false;
+    }
+    final l$eventsAggregate = eventsAggregate;
+    final lOther$eventsAggregate = other.eventsAggregate;
+    if (_$data.containsKey('eventsAggregate') !=
+        other._$data.containsKey('eventsAggregate')) {
+      return false;
+    }
+    if (l$eventsAggregate != lOther$eventsAggregate) {
+      return false;
+    }
+    final l$fee = fee;
+    final lOther$fee = other.fee;
+    if (_$data.containsKey('fee') != other._$data.containsKey('fee')) {
+      return false;
+    }
+    if (l$fee != lOther$fee) {
+      return false;
+    }
+    final l$hash = hash;
+    final lOther$hash = other.hash;
+    if (_$data.containsKey('hash') != other._$data.containsKey('hash')) {
+      return false;
+    }
+    if (l$hash != lOther$hash) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$signature = signature;
+    final lOther$signature = other.signature;
+    if (_$data.containsKey('signature') !=
+        other._$data.containsKey('signature')) {
+      return false;
+    }
+    if (l$signature != lOther$signature) {
+      return false;
+    }
+    final l$success = success;
+    final lOther$success = other.success;
+    if (_$data.containsKey('success') != other._$data.containsKey('success')) {
+      return false;
+    }
+    if (l$success != lOther$success) {
+      return false;
+    }
+    final l$tip = tip;
+    final lOther$tip = other.tip;
+    if (_$data.containsKey('tip') != other._$data.containsKey('tip')) {
+      return false;
+    }
+    if (l$tip != lOther$tip) {
+      return false;
+    }
+    final l$version = version;
+    final lOther$version = other.version;
+    if (_$data.containsKey('version') != other._$data.containsKey('version')) {
+      return false;
+    }
+    if (l$version != lOther$version) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$block = block;
+    final l$blockId = blockId;
+    final l$$call = $call;
+    final l$callId = callId;
+    final l$calls = calls;
+    final l$callsAggregate = callsAggregate;
+    final l$error = error;
+    final l$events = events;
+    final l$eventsAggregate = eventsAggregate;
+    final l$fee = fee;
+    final l$hash = hash;
+    final l$id = id;
+    final l$index = index;
+    final l$signature = signature;
+    final l$success = success;
+    final l$tip = tip;
+    final l$version = version;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('block') ? l$block : const {},
+      _$data.containsKey('blockId') ? l$blockId : const {},
+      _$data.containsKey('call') ? l$$call : const {},
+      _$data.containsKey('callId') ? l$callId : const {},
+      _$data.containsKey('calls') ? l$calls : const {},
+      _$data.containsKey('callsAggregate') ? l$callsAggregate : const {},
+      _$data.containsKey('error') ? l$error : const {},
+      _$data.containsKey('events') ? l$events : const {},
+      _$data.containsKey('eventsAggregate') ? l$eventsAggregate : const {},
+      _$data.containsKey('fee') ? l$fee : const {},
+      _$data.containsKey('hash') ? l$hash : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('signature') ? l$signature : const {},
+      _$data.containsKey('success') ? l$success : const {},
+      _$data.containsKey('tip') ? l$tip : const {},
+      _$data.containsKey('version') ? l$version : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ExtrinsicBoolExp<TRes> {
+  factory CopyWith$Input$ExtrinsicBoolExp(
+    Input$ExtrinsicBoolExp instance,
+    TRes Function(Input$ExtrinsicBoolExp) then,
+  ) = _CopyWithImpl$Input$ExtrinsicBoolExp;
+
+  factory CopyWith$Input$ExtrinsicBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$ExtrinsicBoolExp;
+
+  TRes call({
+    List<Input$ExtrinsicBoolExp>? $_and,
+    Input$ExtrinsicBoolExp? $_not,
+    List<Input$ExtrinsicBoolExp>? $_or,
+    Input$BlockBoolExp? block,
+    Input$StringComparisonExp? blockId,
+    Input$CallBoolExp? $call,
+    Input$StringComparisonExp? callId,
+    Input$CallBoolExp? calls,
+    Input$CallAggregateBoolExp? callsAggregate,
+    Input$JsonbComparisonExp? error,
+    Input$EventBoolExp? events,
+    Input$EventAggregateBoolExp? eventsAggregate,
+    Input$NumericComparisonExp? fee,
+    Input$ByteaComparisonExp? hash,
+    Input$StringComparisonExp? id,
+    Input$IntComparisonExp? index,
+    Input$JsonbComparisonExp? signature,
+    Input$BooleanComparisonExp? success,
+    Input$NumericComparisonExp? tip,
+    Input$IntComparisonExp? version,
+  });
+  TRes $_and(
+      Iterable<Input$ExtrinsicBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$ExtrinsicBoolExp<Input$ExtrinsicBoolExp>>?)
+          _fn);
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$ExtrinsicBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$ExtrinsicBoolExp<Input$ExtrinsicBoolExp>>?)
+          _fn);
+  CopyWith$Input$BlockBoolExp<TRes> get block;
+  CopyWith$Input$StringComparisonExp<TRes> get blockId;
+  CopyWith$Input$CallBoolExp<TRes> get $call;
+  CopyWith$Input$StringComparisonExp<TRes> get callId;
+  CopyWith$Input$CallBoolExp<TRes> get calls;
+  CopyWith$Input$CallAggregateBoolExp<TRes> get callsAggregate;
+  CopyWith$Input$JsonbComparisonExp<TRes> get error;
+  CopyWith$Input$EventBoolExp<TRes> get events;
+  CopyWith$Input$EventAggregateBoolExp<TRes> get eventsAggregate;
+  CopyWith$Input$NumericComparisonExp<TRes> get fee;
+  CopyWith$Input$ByteaComparisonExp<TRes> get hash;
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+  CopyWith$Input$IntComparisonExp<TRes> get index;
+  CopyWith$Input$JsonbComparisonExp<TRes> get signature;
+  CopyWith$Input$BooleanComparisonExp<TRes> get success;
+  CopyWith$Input$NumericComparisonExp<TRes> get tip;
+  CopyWith$Input$IntComparisonExp<TRes> get version;
+}
+
+class _CopyWithImpl$Input$ExtrinsicBoolExp<TRes>
+    implements CopyWith$Input$ExtrinsicBoolExp<TRes> {
+  _CopyWithImpl$Input$ExtrinsicBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ExtrinsicBoolExp _instance;
+
+  final TRes Function(Input$ExtrinsicBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? block = _undefined,
+    Object? blockId = _undefined,
+    Object? $call = _undefined,
+    Object? callId = _undefined,
+    Object? calls = _undefined,
+    Object? callsAggregate = _undefined,
+    Object? error = _undefined,
+    Object? events = _undefined,
+    Object? eventsAggregate = _undefined,
+    Object? fee = _undefined,
+    Object? hash = _undefined,
+    Object? id = _undefined,
+    Object? index = _undefined,
+    Object? signature = _undefined,
+    Object? success = _undefined,
+    Object? tip = _undefined,
+    Object? version = _undefined,
+  }) =>
+      _then(Input$ExtrinsicBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined)
+          '_and': ($_and as List<Input$ExtrinsicBoolExp>?),
+        if ($_not != _undefined) '_not': ($_not as Input$ExtrinsicBoolExp?),
+        if ($_or != _undefined) '_or': ($_or as List<Input$ExtrinsicBoolExp>?),
+        if (block != _undefined) 'block': (block as Input$BlockBoolExp?),
+        if (blockId != _undefined)
+          'blockId': (blockId as Input$StringComparisonExp?),
+        if ($call != _undefined) 'call': ($call as Input$CallBoolExp?),
+        if (callId != _undefined)
+          'callId': (callId as Input$StringComparisonExp?),
+        if (calls != _undefined) 'calls': (calls as Input$CallBoolExp?),
+        if (callsAggregate != _undefined)
+          'callsAggregate': (callsAggregate as Input$CallAggregateBoolExp?),
+        if (error != _undefined) 'error': (error as Input$JsonbComparisonExp?),
+        if (events != _undefined) 'events': (events as Input$EventBoolExp?),
+        if (eventsAggregate != _undefined)
+          'eventsAggregate': (eventsAggregate as Input$EventAggregateBoolExp?),
+        if (fee != _undefined) 'fee': (fee as Input$NumericComparisonExp?),
+        if (hash != _undefined) 'hash': (hash as Input$ByteaComparisonExp?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+        if (index != _undefined) 'index': (index as Input$IntComparisonExp?),
+        if (signature != _undefined)
+          'signature': (signature as Input$JsonbComparisonExp?),
+        if (success != _undefined)
+          'success': (success as Input$BooleanComparisonExp?),
+        if (tip != _undefined) 'tip': (tip as Input$NumericComparisonExp?),
+        if (version != _undefined)
+          'version': (version as Input$IntComparisonExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$ExtrinsicBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$ExtrinsicBoolExp<Input$ExtrinsicBoolExp>>?)
+              _fn) =>
+      call(
+          $_and:
+              _fn(_instance.$_and?.map((e) => CopyWith$Input$ExtrinsicBoolExp(
+                    e,
+                    (i) => i,
+                  )))?.toList());
+
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$ExtrinsicBoolExp.stub(_then(_instance))
+        : CopyWith$Input$ExtrinsicBoolExp(local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$ExtrinsicBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$ExtrinsicBoolExp<Input$ExtrinsicBoolExp>>?)
+              _fn) =>
+      call(
+          $_or: _fn(_instance.$_or?.map((e) => CopyWith$Input$ExtrinsicBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$BlockBoolExp<TRes> get block {
+    final local$block = _instance.block;
+    return local$block == null
+        ? CopyWith$Input$BlockBoolExp.stub(_then(_instance))
+        : CopyWith$Input$BlockBoolExp(local$block, (e) => call(block: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get blockId {
+    final local$blockId = _instance.blockId;
+    return local$blockId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$blockId, (e) => call(blockId: e));
+  }
+
+  CopyWith$Input$CallBoolExp<TRes> get $call {
+    final local$$call = _instance.$call;
+    return local$$call == null
+        ? CopyWith$Input$CallBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CallBoolExp(local$$call, (e) => call($call: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get callId {
+    final local$callId = _instance.callId;
+    return local$callId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$callId, (e) => call(callId: e));
+  }
+
+  CopyWith$Input$CallBoolExp<TRes> get calls {
+    final local$calls = _instance.calls;
+    return local$calls == null
+        ? CopyWith$Input$CallBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CallBoolExp(local$calls, (e) => call(calls: e));
+  }
+
+  CopyWith$Input$CallAggregateBoolExp<TRes> get callsAggregate {
+    final local$callsAggregate = _instance.callsAggregate;
+    return local$callsAggregate == null
+        ? CopyWith$Input$CallAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CallAggregateBoolExp(
+            local$callsAggregate, (e) => call(callsAggregate: e));
+  }
+
+  CopyWith$Input$JsonbComparisonExp<TRes> get error {
+    final local$error = _instance.error;
+    return local$error == null
+        ? CopyWith$Input$JsonbComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$JsonbComparisonExp(local$error, (e) => call(error: e));
+  }
+
+  CopyWith$Input$EventBoolExp<TRes> get events {
+    final local$events = _instance.events;
+    return local$events == null
+        ? CopyWith$Input$EventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$EventBoolExp(local$events, (e) => call(events: e));
+  }
+
+  CopyWith$Input$EventAggregateBoolExp<TRes> get eventsAggregate {
+    final local$eventsAggregate = _instance.eventsAggregate;
+    return local$eventsAggregate == null
+        ? CopyWith$Input$EventAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$EventAggregateBoolExp(
+            local$eventsAggregate, (e) => call(eventsAggregate: e));
+  }
+
+  CopyWith$Input$NumericComparisonExp<TRes> get fee {
+    final local$fee = _instance.fee;
+    return local$fee == null
+        ? CopyWith$Input$NumericComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$NumericComparisonExp(local$fee, (e) => call(fee: e));
+  }
+
+  CopyWith$Input$ByteaComparisonExp<TRes> get hash {
+    final local$hash = _instance.hash;
+    return local$hash == null
+        ? CopyWith$Input$ByteaComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$ByteaComparisonExp(local$hash, (e) => call(hash: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get index {
+    final local$index = _instance.index;
+    return local$index == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(local$index, (e) => call(index: e));
+  }
+
+  CopyWith$Input$JsonbComparisonExp<TRes> get signature {
+    final local$signature = _instance.signature;
+    return local$signature == null
+        ? CopyWith$Input$JsonbComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$JsonbComparisonExp(
+            local$signature, (e) => call(signature: e));
+  }
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get success {
+    final local$success = _instance.success;
+    return local$success == null
+        ? CopyWith$Input$BooleanComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$BooleanComparisonExp(
+            local$success, (e) => call(success: e));
+  }
+
+  CopyWith$Input$NumericComparisonExp<TRes> get tip {
+    final local$tip = _instance.tip;
+    return local$tip == null
+        ? CopyWith$Input$NumericComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$NumericComparisonExp(local$tip, (e) => call(tip: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get version {
+    final local$version = _instance.version;
+    return local$version == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$version, (e) => call(version: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$ExtrinsicBoolExp<TRes>
+    implements CopyWith$Input$ExtrinsicBoolExp<TRes> {
+  _CopyWithStubImpl$Input$ExtrinsicBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$ExtrinsicBoolExp>? $_and,
+    Input$ExtrinsicBoolExp? $_not,
+    List<Input$ExtrinsicBoolExp>? $_or,
+    Input$BlockBoolExp? block,
+    Input$StringComparisonExp? blockId,
+    Input$CallBoolExp? $call,
+    Input$StringComparisonExp? callId,
+    Input$CallBoolExp? calls,
+    Input$CallAggregateBoolExp? callsAggregate,
+    Input$JsonbComparisonExp? error,
+    Input$EventBoolExp? events,
+    Input$EventAggregateBoolExp? eventsAggregate,
+    Input$NumericComparisonExp? fee,
+    Input$ByteaComparisonExp? hash,
+    Input$StringComparisonExp? id,
+    Input$IntComparisonExp? index,
+    Input$JsonbComparisonExp? signature,
+    Input$BooleanComparisonExp? success,
+    Input$NumericComparisonExp? tip,
+    Input$IntComparisonExp? version,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$ExtrinsicBoolExp<TRes> get $_not =>
+      CopyWith$Input$ExtrinsicBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$BlockBoolExp<TRes> get block =>
+      CopyWith$Input$BlockBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get blockId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$CallBoolExp<TRes> get $call =>
+      CopyWith$Input$CallBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get callId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$CallBoolExp<TRes> get calls =>
+      CopyWith$Input$CallBoolExp.stub(_res);
+
+  CopyWith$Input$CallAggregateBoolExp<TRes> get callsAggregate =>
+      CopyWith$Input$CallAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$JsonbComparisonExp<TRes> get error =>
+      CopyWith$Input$JsonbComparisonExp.stub(_res);
+
+  CopyWith$Input$EventBoolExp<TRes> get events =>
+      CopyWith$Input$EventBoolExp.stub(_res);
+
+  CopyWith$Input$EventAggregateBoolExp<TRes> get eventsAggregate =>
+      CopyWith$Input$EventAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$NumericComparisonExp<TRes> get fee =>
+      CopyWith$Input$NumericComparisonExp.stub(_res);
+
+  CopyWith$Input$ByteaComparisonExp<TRes> get hash =>
+      CopyWith$Input$ByteaComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get index =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$JsonbComparisonExp<TRes> get signature =>
+      CopyWith$Input$JsonbComparisonExp.stub(_res);
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get success =>
+      CopyWith$Input$BooleanComparisonExp.stub(_res);
+
+  CopyWith$Input$NumericComparisonExp<TRes> get tip =>
+      CopyWith$Input$NumericComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get version =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+}
+
+class Input$ExtrinsicMaxOrderBy {
+  factory Input$ExtrinsicMaxOrderBy({
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? callId,
+    Enum$OrderBy? fee,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      Input$ExtrinsicMaxOrderBy._({
+        if (blockId != null) r'blockId': blockId,
+        if (callId != null) r'callId': callId,
+        if (fee != null) r'fee': fee,
+        if (id != null) r'id': id,
+        if (index != null) r'index': index,
+        if (tip != null) r'tip': tip,
+        if (version != null) r'version': version,
+      });
+
+  Input$ExtrinsicMaxOrderBy._(this._$data);
+
+  factory Input$ExtrinsicMaxOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockId')) {
+      final l$blockId = data['blockId'];
+      result$data['blockId'] = l$blockId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockId as String));
+    }
+    if (data.containsKey('callId')) {
+      final l$callId = data['callId'];
+      result$data['callId'] =
+          l$callId == null ? null : fromJson$Enum$OrderBy((l$callId as String));
+    }
+    if (data.containsKey('fee')) {
+      final l$fee = data['fee'];
+      result$data['fee'] =
+          l$fee == null ? null : fromJson$Enum$OrderBy((l$fee as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    if (data.containsKey('tip')) {
+      final l$tip = data['tip'];
+      result$data['tip'] =
+          l$tip == null ? null : fromJson$Enum$OrderBy((l$tip as String));
+    }
+    if (data.containsKey('version')) {
+      final l$version = data['version'];
+      result$data['version'] = l$version == null
+          ? null
+          : fromJson$Enum$OrderBy((l$version as String));
+    }
+    return Input$ExtrinsicMaxOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockId => (_$data['blockId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get callId => (_$data['callId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get fee => (_$data['fee'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get tip => (_$data['tip'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get version => (_$data['version'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockId')) {
+      final l$blockId = blockId;
+      result$data['blockId'] =
+          l$blockId == null ? null : toJson$Enum$OrderBy(l$blockId);
+    }
+    if (_$data.containsKey('callId')) {
+      final l$callId = callId;
+      result$data['callId'] =
+          l$callId == null ? null : toJson$Enum$OrderBy(l$callId);
+    }
+    if (_$data.containsKey('fee')) {
+      final l$fee = fee;
+      result$data['fee'] = l$fee == null ? null : toJson$Enum$OrderBy(l$fee);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    if (_$data.containsKey('tip')) {
+      final l$tip = tip;
+      result$data['tip'] = l$tip == null ? null : toJson$Enum$OrderBy(l$tip);
+    }
+    if (_$data.containsKey('version')) {
+      final l$version = version;
+      result$data['version'] =
+          l$version == null ? null : toJson$Enum$OrderBy(l$version);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ExtrinsicMaxOrderBy<Input$ExtrinsicMaxOrderBy> get copyWith =>
+      CopyWith$Input$ExtrinsicMaxOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ExtrinsicMaxOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockId = blockId;
+    final lOther$blockId = other.blockId;
+    if (_$data.containsKey('blockId') != other._$data.containsKey('blockId')) {
+      return false;
+    }
+    if (l$blockId != lOther$blockId) {
+      return false;
+    }
+    final l$callId = callId;
+    final lOther$callId = other.callId;
+    if (_$data.containsKey('callId') != other._$data.containsKey('callId')) {
+      return false;
+    }
+    if (l$callId != lOther$callId) {
+      return false;
+    }
+    final l$fee = fee;
+    final lOther$fee = other.fee;
+    if (_$data.containsKey('fee') != other._$data.containsKey('fee')) {
+      return false;
+    }
+    if (l$fee != lOther$fee) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$tip = tip;
+    final lOther$tip = other.tip;
+    if (_$data.containsKey('tip') != other._$data.containsKey('tip')) {
+      return false;
+    }
+    if (l$tip != lOther$tip) {
+      return false;
+    }
+    final l$version = version;
+    final lOther$version = other.version;
+    if (_$data.containsKey('version') != other._$data.containsKey('version')) {
+      return false;
+    }
+    if (l$version != lOther$version) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockId = blockId;
+    final l$callId = callId;
+    final l$fee = fee;
+    final l$id = id;
+    final l$index = index;
+    final l$tip = tip;
+    final l$version = version;
+    return Object.hashAll([
+      _$data.containsKey('blockId') ? l$blockId : const {},
+      _$data.containsKey('callId') ? l$callId : const {},
+      _$data.containsKey('fee') ? l$fee : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('tip') ? l$tip : const {},
+      _$data.containsKey('version') ? l$version : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ExtrinsicMaxOrderBy<TRes> {
+  factory CopyWith$Input$ExtrinsicMaxOrderBy(
+    Input$ExtrinsicMaxOrderBy instance,
+    TRes Function(Input$ExtrinsicMaxOrderBy) then,
+  ) = _CopyWithImpl$Input$ExtrinsicMaxOrderBy;
+
+  factory CopyWith$Input$ExtrinsicMaxOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ExtrinsicMaxOrderBy;
+
+  TRes call({
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? callId,
+    Enum$OrderBy? fee,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  });
+}
+
+class _CopyWithImpl$Input$ExtrinsicMaxOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicMaxOrderBy<TRes> {
+  _CopyWithImpl$Input$ExtrinsicMaxOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ExtrinsicMaxOrderBy _instance;
+
+  final TRes Function(Input$ExtrinsicMaxOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? blockId = _undefined,
+    Object? callId = _undefined,
+    Object? fee = _undefined,
+    Object? id = _undefined,
+    Object? index = _undefined,
+    Object? tip = _undefined,
+    Object? version = _undefined,
+  }) =>
+      _then(Input$ExtrinsicMaxOrderBy._({
+        ..._instance._$data,
+        if (blockId != _undefined) 'blockId': (blockId as Enum$OrderBy?),
+        if (callId != _undefined) 'callId': (callId as Enum$OrderBy?),
+        if (fee != _undefined) 'fee': (fee as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+        if (tip != _undefined) 'tip': (tip as Enum$OrderBy?),
+        if (version != _undefined) 'version': (version as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ExtrinsicMaxOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicMaxOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ExtrinsicMaxOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? callId,
+    Enum$OrderBy? fee,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      _res;
+}
+
+class Input$ExtrinsicMinOrderBy {
+  factory Input$ExtrinsicMinOrderBy({
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? callId,
+    Enum$OrderBy? fee,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      Input$ExtrinsicMinOrderBy._({
+        if (blockId != null) r'blockId': blockId,
+        if (callId != null) r'callId': callId,
+        if (fee != null) r'fee': fee,
+        if (id != null) r'id': id,
+        if (index != null) r'index': index,
+        if (tip != null) r'tip': tip,
+        if (version != null) r'version': version,
+      });
+
+  Input$ExtrinsicMinOrderBy._(this._$data);
+
+  factory Input$ExtrinsicMinOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockId')) {
+      final l$blockId = data['blockId'];
+      result$data['blockId'] = l$blockId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockId as String));
+    }
+    if (data.containsKey('callId')) {
+      final l$callId = data['callId'];
+      result$data['callId'] =
+          l$callId == null ? null : fromJson$Enum$OrderBy((l$callId as String));
+    }
+    if (data.containsKey('fee')) {
+      final l$fee = data['fee'];
+      result$data['fee'] =
+          l$fee == null ? null : fromJson$Enum$OrderBy((l$fee as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    if (data.containsKey('tip')) {
+      final l$tip = data['tip'];
+      result$data['tip'] =
+          l$tip == null ? null : fromJson$Enum$OrderBy((l$tip as String));
+    }
+    if (data.containsKey('version')) {
+      final l$version = data['version'];
+      result$data['version'] = l$version == null
+          ? null
+          : fromJson$Enum$OrderBy((l$version as String));
+    }
+    return Input$ExtrinsicMinOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockId => (_$data['blockId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get callId => (_$data['callId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get fee => (_$data['fee'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get tip => (_$data['tip'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get version => (_$data['version'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockId')) {
+      final l$blockId = blockId;
+      result$data['blockId'] =
+          l$blockId == null ? null : toJson$Enum$OrderBy(l$blockId);
+    }
+    if (_$data.containsKey('callId')) {
+      final l$callId = callId;
+      result$data['callId'] =
+          l$callId == null ? null : toJson$Enum$OrderBy(l$callId);
+    }
+    if (_$data.containsKey('fee')) {
+      final l$fee = fee;
+      result$data['fee'] = l$fee == null ? null : toJson$Enum$OrderBy(l$fee);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    if (_$data.containsKey('tip')) {
+      final l$tip = tip;
+      result$data['tip'] = l$tip == null ? null : toJson$Enum$OrderBy(l$tip);
+    }
+    if (_$data.containsKey('version')) {
+      final l$version = version;
+      result$data['version'] =
+          l$version == null ? null : toJson$Enum$OrderBy(l$version);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ExtrinsicMinOrderBy<Input$ExtrinsicMinOrderBy> get copyWith =>
+      CopyWith$Input$ExtrinsicMinOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ExtrinsicMinOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockId = blockId;
+    final lOther$blockId = other.blockId;
+    if (_$data.containsKey('blockId') != other._$data.containsKey('blockId')) {
+      return false;
+    }
+    if (l$blockId != lOther$blockId) {
+      return false;
+    }
+    final l$callId = callId;
+    final lOther$callId = other.callId;
+    if (_$data.containsKey('callId') != other._$data.containsKey('callId')) {
+      return false;
+    }
+    if (l$callId != lOther$callId) {
+      return false;
+    }
+    final l$fee = fee;
+    final lOther$fee = other.fee;
+    if (_$data.containsKey('fee') != other._$data.containsKey('fee')) {
+      return false;
+    }
+    if (l$fee != lOther$fee) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$tip = tip;
+    final lOther$tip = other.tip;
+    if (_$data.containsKey('tip') != other._$data.containsKey('tip')) {
+      return false;
+    }
+    if (l$tip != lOther$tip) {
+      return false;
+    }
+    final l$version = version;
+    final lOther$version = other.version;
+    if (_$data.containsKey('version') != other._$data.containsKey('version')) {
+      return false;
+    }
+    if (l$version != lOther$version) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockId = blockId;
+    final l$callId = callId;
+    final l$fee = fee;
+    final l$id = id;
+    final l$index = index;
+    final l$tip = tip;
+    final l$version = version;
+    return Object.hashAll([
+      _$data.containsKey('blockId') ? l$blockId : const {},
+      _$data.containsKey('callId') ? l$callId : const {},
+      _$data.containsKey('fee') ? l$fee : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('tip') ? l$tip : const {},
+      _$data.containsKey('version') ? l$version : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ExtrinsicMinOrderBy<TRes> {
+  factory CopyWith$Input$ExtrinsicMinOrderBy(
+    Input$ExtrinsicMinOrderBy instance,
+    TRes Function(Input$ExtrinsicMinOrderBy) then,
+  ) = _CopyWithImpl$Input$ExtrinsicMinOrderBy;
+
+  factory CopyWith$Input$ExtrinsicMinOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ExtrinsicMinOrderBy;
+
+  TRes call({
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? callId,
+    Enum$OrderBy? fee,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  });
+}
+
+class _CopyWithImpl$Input$ExtrinsicMinOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicMinOrderBy<TRes> {
+  _CopyWithImpl$Input$ExtrinsicMinOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ExtrinsicMinOrderBy _instance;
+
+  final TRes Function(Input$ExtrinsicMinOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? blockId = _undefined,
+    Object? callId = _undefined,
+    Object? fee = _undefined,
+    Object? id = _undefined,
+    Object? index = _undefined,
+    Object? tip = _undefined,
+    Object? version = _undefined,
+  }) =>
+      _then(Input$ExtrinsicMinOrderBy._({
+        ..._instance._$data,
+        if (blockId != _undefined) 'blockId': (blockId as Enum$OrderBy?),
+        if (callId != _undefined) 'callId': (callId as Enum$OrderBy?),
+        if (fee != _undefined) 'fee': (fee as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+        if (tip != _undefined) 'tip': (tip as Enum$OrderBy?),
+        if (version != _undefined) 'version': (version as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ExtrinsicMinOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicMinOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ExtrinsicMinOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? blockId,
+    Enum$OrderBy? callId,
+    Enum$OrderBy? fee,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      _res;
+}
+
+class Input$ExtrinsicOrderBy {
+  factory Input$ExtrinsicOrderBy({
+    Input$BlockOrderBy? block,
+    Enum$OrderBy? blockId,
+    Input$CallOrderBy? $call,
+    Enum$OrderBy? callId,
+    Input$CallAggregateOrderBy? callsAggregate,
+    Enum$OrderBy? error,
+    Input$EventAggregateOrderBy? eventsAggregate,
+    Enum$OrderBy? fee,
+    Enum$OrderBy? hash,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? signature,
+    Enum$OrderBy? success,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      Input$ExtrinsicOrderBy._({
+        if (block != null) r'block': block,
+        if (blockId != null) r'blockId': blockId,
+        if ($call != null) r'call': $call,
+        if (callId != null) r'callId': callId,
+        if (callsAggregate != null) r'callsAggregate': callsAggregate,
+        if (error != null) r'error': error,
+        if (eventsAggregate != null) r'eventsAggregate': eventsAggregate,
+        if (fee != null) r'fee': fee,
+        if (hash != null) r'hash': hash,
+        if (id != null) r'id': id,
+        if (index != null) r'index': index,
+        if (signature != null) r'signature': signature,
+        if (success != null) r'success': success,
+        if (tip != null) r'tip': tip,
+        if (version != null) r'version': version,
+      });
+
+  Input$ExtrinsicOrderBy._(this._$data);
+
+  factory Input$ExtrinsicOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('block')) {
+      final l$block = data['block'];
+      result$data['block'] = l$block == null
+          ? null
+          : Input$BlockOrderBy.fromJson((l$block as Map<String, dynamic>));
+    }
+    if (data.containsKey('blockId')) {
+      final l$blockId = data['blockId'];
+      result$data['blockId'] = l$blockId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockId as String));
+    }
+    if (data.containsKey('call')) {
+      final l$$call = data['call'];
+      result$data['call'] = l$$call == null
+          ? null
+          : Input$CallOrderBy.fromJson((l$$call as Map<String, dynamic>));
+    }
+    if (data.containsKey('callId')) {
+      final l$callId = data['callId'];
+      result$data['callId'] =
+          l$callId == null ? null : fromJson$Enum$OrderBy((l$callId as String));
+    }
+    if (data.containsKey('callsAggregate')) {
+      final l$callsAggregate = data['callsAggregate'];
+      result$data['callsAggregate'] = l$callsAggregate == null
+          ? null
+          : Input$CallAggregateOrderBy.fromJson(
+              (l$callsAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('error')) {
+      final l$error = data['error'];
+      result$data['error'] =
+          l$error == null ? null : fromJson$Enum$OrderBy((l$error as String));
+    }
+    if (data.containsKey('eventsAggregate')) {
+      final l$eventsAggregate = data['eventsAggregate'];
+      result$data['eventsAggregate'] = l$eventsAggregate == null
+          ? null
+          : Input$EventAggregateOrderBy.fromJson(
+              (l$eventsAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('fee')) {
+      final l$fee = data['fee'];
+      result$data['fee'] =
+          l$fee == null ? null : fromJson$Enum$OrderBy((l$fee as String));
+    }
+    if (data.containsKey('hash')) {
+      final l$hash = data['hash'];
+      result$data['hash'] =
+          l$hash == null ? null : fromJson$Enum$OrderBy((l$hash as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    if (data.containsKey('signature')) {
+      final l$signature = data['signature'];
+      result$data['signature'] = l$signature == null
+          ? null
+          : fromJson$Enum$OrderBy((l$signature as String));
+    }
+    if (data.containsKey('success')) {
+      final l$success = data['success'];
+      result$data['success'] = l$success == null
+          ? null
+          : fromJson$Enum$OrderBy((l$success as String));
+    }
+    if (data.containsKey('tip')) {
+      final l$tip = data['tip'];
+      result$data['tip'] =
+          l$tip == null ? null : fromJson$Enum$OrderBy((l$tip as String));
+    }
+    if (data.containsKey('version')) {
+      final l$version = data['version'];
+      result$data['version'] = l$version == null
+          ? null
+          : fromJson$Enum$OrderBy((l$version as String));
+    }
+    return Input$ExtrinsicOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$BlockOrderBy? get block => (_$data['block'] as Input$BlockOrderBy?);
+
+  Enum$OrderBy? get blockId => (_$data['blockId'] as Enum$OrderBy?);
+
+  Input$CallOrderBy? get $call => (_$data['call'] as Input$CallOrderBy?);
+
+  Enum$OrderBy? get callId => (_$data['callId'] as Enum$OrderBy?);
+
+  Input$CallAggregateOrderBy? get callsAggregate =>
+      (_$data['callsAggregate'] as Input$CallAggregateOrderBy?);
+
+  Enum$OrderBy? get error => (_$data['error'] as Enum$OrderBy?);
+
+  Input$EventAggregateOrderBy? get eventsAggregate =>
+      (_$data['eventsAggregate'] as Input$EventAggregateOrderBy?);
+
+  Enum$OrderBy? get fee => (_$data['fee'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get hash => (_$data['hash'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get signature => (_$data['signature'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get success => (_$data['success'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get tip => (_$data['tip'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get version => (_$data['version'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('block')) {
+      final l$block = block;
+      result$data['block'] = l$block?.toJson();
+    }
+    if (_$data.containsKey('blockId')) {
+      final l$blockId = blockId;
+      result$data['blockId'] =
+          l$blockId == null ? null : toJson$Enum$OrderBy(l$blockId);
+    }
+    if (_$data.containsKey('call')) {
+      final l$$call = $call;
+      result$data['call'] = l$$call?.toJson();
+    }
+    if (_$data.containsKey('callId')) {
+      final l$callId = callId;
+      result$data['callId'] =
+          l$callId == null ? null : toJson$Enum$OrderBy(l$callId);
+    }
+    if (_$data.containsKey('callsAggregate')) {
+      final l$callsAggregate = callsAggregate;
+      result$data['callsAggregate'] = l$callsAggregate?.toJson();
+    }
+    if (_$data.containsKey('error')) {
+      final l$error = error;
+      result$data['error'] =
+          l$error == null ? null : toJson$Enum$OrderBy(l$error);
+    }
+    if (_$data.containsKey('eventsAggregate')) {
+      final l$eventsAggregate = eventsAggregate;
+      result$data['eventsAggregate'] = l$eventsAggregate?.toJson();
+    }
+    if (_$data.containsKey('fee')) {
+      final l$fee = fee;
+      result$data['fee'] = l$fee == null ? null : toJson$Enum$OrderBy(l$fee);
+    }
+    if (_$data.containsKey('hash')) {
+      final l$hash = hash;
+      result$data['hash'] = l$hash == null ? null : toJson$Enum$OrderBy(l$hash);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    if (_$data.containsKey('signature')) {
+      final l$signature = signature;
+      result$data['signature'] =
+          l$signature == null ? null : toJson$Enum$OrderBy(l$signature);
+    }
+    if (_$data.containsKey('success')) {
+      final l$success = success;
+      result$data['success'] =
+          l$success == null ? null : toJson$Enum$OrderBy(l$success);
+    }
+    if (_$data.containsKey('tip')) {
+      final l$tip = tip;
+      result$data['tip'] = l$tip == null ? null : toJson$Enum$OrderBy(l$tip);
+    }
+    if (_$data.containsKey('version')) {
+      final l$version = version;
+      result$data['version'] =
+          l$version == null ? null : toJson$Enum$OrderBy(l$version);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ExtrinsicOrderBy<Input$ExtrinsicOrderBy> get copyWith =>
+      CopyWith$Input$ExtrinsicOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ExtrinsicOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$block = block;
+    final lOther$block = other.block;
+    if (_$data.containsKey('block') != other._$data.containsKey('block')) {
+      return false;
+    }
+    if (l$block != lOther$block) {
+      return false;
+    }
+    final l$blockId = blockId;
+    final lOther$blockId = other.blockId;
+    if (_$data.containsKey('blockId') != other._$data.containsKey('blockId')) {
+      return false;
+    }
+    if (l$blockId != lOther$blockId) {
+      return false;
+    }
+    final l$$call = $call;
+    final lOther$$call = other.$call;
+    if (_$data.containsKey('call') != other._$data.containsKey('call')) {
+      return false;
+    }
+    if (l$$call != lOther$$call) {
+      return false;
+    }
+    final l$callId = callId;
+    final lOther$callId = other.callId;
+    if (_$data.containsKey('callId') != other._$data.containsKey('callId')) {
+      return false;
+    }
+    if (l$callId != lOther$callId) {
+      return false;
+    }
+    final l$callsAggregate = callsAggregate;
+    final lOther$callsAggregate = other.callsAggregate;
+    if (_$data.containsKey('callsAggregate') !=
+        other._$data.containsKey('callsAggregate')) {
+      return false;
+    }
+    if (l$callsAggregate != lOther$callsAggregate) {
+      return false;
+    }
+    final l$error = error;
+    final lOther$error = other.error;
+    if (_$data.containsKey('error') != other._$data.containsKey('error')) {
+      return false;
+    }
+    if (l$error != lOther$error) {
+      return false;
+    }
+    final l$eventsAggregate = eventsAggregate;
+    final lOther$eventsAggregate = other.eventsAggregate;
+    if (_$data.containsKey('eventsAggregate') !=
+        other._$data.containsKey('eventsAggregate')) {
+      return false;
+    }
+    if (l$eventsAggregate != lOther$eventsAggregate) {
+      return false;
+    }
+    final l$fee = fee;
+    final lOther$fee = other.fee;
+    if (_$data.containsKey('fee') != other._$data.containsKey('fee')) {
+      return false;
+    }
+    if (l$fee != lOther$fee) {
+      return false;
+    }
+    final l$hash = hash;
+    final lOther$hash = other.hash;
+    if (_$data.containsKey('hash') != other._$data.containsKey('hash')) {
+      return false;
+    }
+    if (l$hash != lOther$hash) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$signature = signature;
+    final lOther$signature = other.signature;
+    if (_$data.containsKey('signature') !=
+        other._$data.containsKey('signature')) {
+      return false;
+    }
+    if (l$signature != lOther$signature) {
+      return false;
+    }
+    final l$success = success;
+    final lOther$success = other.success;
+    if (_$data.containsKey('success') != other._$data.containsKey('success')) {
+      return false;
+    }
+    if (l$success != lOther$success) {
+      return false;
+    }
+    final l$tip = tip;
+    final lOther$tip = other.tip;
+    if (_$data.containsKey('tip') != other._$data.containsKey('tip')) {
+      return false;
+    }
+    if (l$tip != lOther$tip) {
+      return false;
+    }
+    final l$version = version;
+    final lOther$version = other.version;
+    if (_$data.containsKey('version') != other._$data.containsKey('version')) {
+      return false;
+    }
+    if (l$version != lOther$version) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$block = block;
+    final l$blockId = blockId;
+    final l$$call = $call;
+    final l$callId = callId;
+    final l$callsAggregate = callsAggregate;
+    final l$error = error;
+    final l$eventsAggregate = eventsAggregate;
+    final l$fee = fee;
+    final l$hash = hash;
+    final l$id = id;
+    final l$index = index;
+    final l$signature = signature;
+    final l$success = success;
+    final l$tip = tip;
+    final l$version = version;
+    return Object.hashAll([
+      _$data.containsKey('block') ? l$block : const {},
+      _$data.containsKey('blockId') ? l$blockId : const {},
+      _$data.containsKey('call') ? l$$call : const {},
+      _$data.containsKey('callId') ? l$callId : const {},
+      _$data.containsKey('callsAggregate') ? l$callsAggregate : const {},
+      _$data.containsKey('error') ? l$error : const {},
+      _$data.containsKey('eventsAggregate') ? l$eventsAggregate : const {},
+      _$data.containsKey('fee') ? l$fee : const {},
+      _$data.containsKey('hash') ? l$hash : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('signature') ? l$signature : const {},
+      _$data.containsKey('success') ? l$success : const {},
+      _$data.containsKey('tip') ? l$tip : const {},
+      _$data.containsKey('version') ? l$version : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ExtrinsicOrderBy<TRes> {
+  factory CopyWith$Input$ExtrinsicOrderBy(
+    Input$ExtrinsicOrderBy instance,
+    TRes Function(Input$ExtrinsicOrderBy) then,
+  ) = _CopyWithImpl$Input$ExtrinsicOrderBy;
+
+  factory CopyWith$Input$ExtrinsicOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ExtrinsicOrderBy;
+
+  TRes call({
+    Input$BlockOrderBy? block,
+    Enum$OrderBy? blockId,
+    Input$CallOrderBy? $call,
+    Enum$OrderBy? callId,
+    Input$CallAggregateOrderBy? callsAggregate,
+    Enum$OrderBy? error,
+    Input$EventAggregateOrderBy? eventsAggregate,
+    Enum$OrderBy? fee,
+    Enum$OrderBy? hash,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? signature,
+    Enum$OrderBy? success,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  });
+  CopyWith$Input$BlockOrderBy<TRes> get block;
+  CopyWith$Input$CallOrderBy<TRes> get $call;
+  CopyWith$Input$CallAggregateOrderBy<TRes> get callsAggregate;
+  CopyWith$Input$EventAggregateOrderBy<TRes> get eventsAggregate;
+}
+
+class _CopyWithImpl$Input$ExtrinsicOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicOrderBy<TRes> {
+  _CopyWithImpl$Input$ExtrinsicOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ExtrinsicOrderBy _instance;
+
+  final TRes Function(Input$ExtrinsicOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? block = _undefined,
+    Object? blockId = _undefined,
+    Object? $call = _undefined,
+    Object? callId = _undefined,
+    Object? callsAggregate = _undefined,
+    Object? error = _undefined,
+    Object? eventsAggregate = _undefined,
+    Object? fee = _undefined,
+    Object? hash = _undefined,
+    Object? id = _undefined,
+    Object? index = _undefined,
+    Object? signature = _undefined,
+    Object? success = _undefined,
+    Object? tip = _undefined,
+    Object? version = _undefined,
+  }) =>
+      _then(Input$ExtrinsicOrderBy._({
+        ..._instance._$data,
+        if (block != _undefined) 'block': (block as Input$BlockOrderBy?),
+        if (blockId != _undefined) 'blockId': (blockId as Enum$OrderBy?),
+        if ($call != _undefined) 'call': ($call as Input$CallOrderBy?),
+        if (callId != _undefined) 'callId': (callId as Enum$OrderBy?),
+        if (callsAggregate != _undefined)
+          'callsAggregate': (callsAggregate as Input$CallAggregateOrderBy?),
+        if (error != _undefined) 'error': (error as Enum$OrderBy?),
+        if (eventsAggregate != _undefined)
+          'eventsAggregate': (eventsAggregate as Input$EventAggregateOrderBy?),
+        if (fee != _undefined) 'fee': (fee as Enum$OrderBy?),
+        if (hash != _undefined) 'hash': (hash as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+        if (signature != _undefined) 'signature': (signature as Enum$OrderBy?),
+        if (success != _undefined) 'success': (success as Enum$OrderBy?),
+        if (tip != _undefined) 'tip': (tip as Enum$OrderBy?),
+        if (version != _undefined) 'version': (version as Enum$OrderBy?),
+      }));
+
+  CopyWith$Input$BlockOrderBy<TRes> get block {
+    final local$block = _instance.block;
+    return local$block == null
+        ? CopyWith$Input$BlockOrderBy.stub(_then(_instance))
+        : CopyWith$Input$BlockOrderBy(local$block, (e) => call(block: e));
+  }
+
+  CopyWith$Input$CallOrderBy<TRes> get $call {
+    final local$$call = _instance.$call;
+    return local$$call == null
+        ? CopyWith$Input$CallOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CallOrderBy(local$$call, (e) => call($call: e));
+  }
+
+  CopyWith$Input$CallAggregateOrderBy<TRes> get callsAggregate {
+    final local$callsAggregate = _instance.callsAggregate;
+    return local$callsAggregate == null
+        ? CopyWith$Input$CallAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CallAggregateOrderBy(
+            local$callsAggregate, (e) => call(callsAggregate: e));
+  }
+
+  CopyWith$Input$EventAggregateOrderBy<TRes> get eventsAggregate {
+    final local$eventsAggregate = _instance.eventsAggregate;
+    return local$eventsAggregate == null
+        ? CopyWith$Input$EventAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventAggregateOrderBy(
+            local$eventsAggregate, (e) => call(eventsAggregate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$ExtrinsicOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ExtrinsicOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Input$BlockOrderBy? block,
+    Enum$OrderBy? blockId,
+    Input$CallOrderBy? $call,
+    Enum$OrderBy? callId,
+    Input$CallAggregateOrderBy? callsAggregate,
+    Enum$OrderBy? error,
+    Input$EventAggregateOrderBy? eventsAggregate,
+    Enum$OrderBy? fee,
+    Enum$OrderBy? hash,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? signature,
+    Enum$OrderBy? success,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      _res;
+
+  CopyWith$Input$BlockOrderBy<TRes> get block =>
+      CopyWith$Input$BlockOrderBy.stub(_res);
+
+  CopyWith$Input$CallOrderBy<TRes> get $call =>
+      CopyWith$Input$CallOrderBy.stub(_res);
+
+  CopyWith$Input$CallAggregateOrderBy<TRes> get callsAggregate =>
+      CopyWith$Input$CallAggregateOrderBy.stub(_res);
+
+  CopyWith$Input$EventAggregateOrderBy<TRes> get eventsAggregate =>
+      CopyWith$Input$EventAggregateOrderBy.stub(_res);
+}
+
+class Input$ExtrinsicStddevOrderBy {
+  factory Input$ExtrinsicStddevOrderBy({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      Input$ExtrinsicStddevOrderBy._({
+        if (fee != null) r'fee': fee,
+        if (index != null) r'index': index,
+        if (tip != null) r'tip': tip,
+        if (version != null) r'version': version,
+      });
+
+  Input$ExtrinsicStddevOrderBy._(this._$data);
+
+  factory Input$ExtrinsicStddevOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('fee')) {
+      final l$fee = data['fee'];
+      result$data['fee'] =
+          l$fee == null ? null : fromJson$Enum$OrderBy((l$fee as String));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    if (data.containsKey('tip')) {
+      final l$tip = data['tip'];
+      result$data['tip'] =
+          l$tip == null ? null : fromJson$Enum$OrderBy((l$tip as String));
+    }
+    if (data.containsKey('version')) {
+      final l$version = data['version'];
+      result$data['version'] = l$version == null
+          ? null
+          : fromJson$Enum$OrderBy((l$version as String));
+    }
+    return Input$ExtrinsicStddevOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get fee => (_$data['fee'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get tip => (_$data['tip'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get version => (_$data['version'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('fee')) {
+      final l$fee = fee;
+      result$data['fee'] = l$fee == null ? null : toJson$Enum$OrderBy(l$fee);
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    if (_$data.containsKey('tip')) {
+      final l$tip = tip;
+      result$data['tip'] = l$tip == null ? null : toJson$Enum$OrderBy(l$tip);
+    }
+    if (_$data.containsKey('version')) {
+      final l$version = version;
+      result$data['version'] =
+          l$version == null ? null : toJson$Enum$OrderBy(l$version);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ExtrinsicStddevOrderBy<Input$ExtrinsicStddevOrderBy>
+      get copyWith => CopyWith$Input$ExtrinsicStddevOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ExtrinsicStddevOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$fee = fee;
+    final lOther$fee = other.fee;
+    if (_$data.containsKey('fee') != other._$data.containsKey('fee')) {
+      return false;
+    }
+    if (l$fee != lOther$fee) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$tip = tip;
+    final lOther$tip = other.tip;
+    if (_$data.containsKey('tip') != other._$data.containsKey('tip')) {
+      return false;
+    }
+    if (l$tip != lOther$tip) {
+      return false;
+    }
+    final l$version = version;
+    final lOther$version = other.version;
+    if (_$data.containsKey('version') != other._$data.containsKey('version')) {
+      return false;
+    }
+    if (l$version != lOther$version) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$fee = fee;
+    final l$index = index;
+    final l$tip = tip;
+    final l$version = version;
+    return Object.hashAll([
+      _$data.containsKey('fee') ? l$fee : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('tip') ? l$tip : const {},
+      _$data.containsKey('version') ? l$version : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ExtrinsicStddevOrderBy<TRes> {
+  factory CopyWith$Input$ExtrinsicStddevOrderBy(
+    Input$ExtrinsicStddevOrderBy instance,
+    TRes Function(Input$ExtrinsicStddevOrderBy) then,
+  ) = _CopyWithImpl$Input$ExtrinsicStddevOrderBy;
+
+  factory CopyWith$Input$ExtrinsicStddevOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ExtrinsicStddevOrderBy;
+
+  TRes call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  });
+}
+
+class _CopyWithImpl$Input$ExtrinsicStddevOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicStddevOrderBy<TRes> {
+  _CopyWithImpl$Input$ExtrinsicStddevOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ExtrinsicStddevOrderBy _instance;
+
+  final TRes Function(Input$ExtrinsicStddevOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? fee = _undefined,
+    Object? index = _undefined,
+    Object? tip = _undefined,
+    Object? version = _undefined,
+  }) =>
+      _then(Input$ExtrinsicStddevOrderBy._({
+        ..._instance._$data,
+        if (fee != _undefined) 'fee': (fee as Enum$OrderBy?),
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+        if (tip != _undefined) 'tip': (tip as Enum$OrderBy?),
+        if (version != _undefined) 'version': (version as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ExtrinsicStddevOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicStddevOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ExtrinsicStddevOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      _res;
+}
+
+class Input$ExtrinsicStddevPopOrderBy {
+  factory Input$ExtrinsicStddevPopOrderBy({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      Input$ExtrinsicStddevPopOrderBy._({
+        if (fee != null) r'fee': fee,
+        if (index != null) r'index': index,
+        if (tip != null) r'tip': tip,
+        if (version != null) r'version': version,
+      });
+
+  Input$ExtrinsicStddevPopOrderBy._(this._$data);
+
+  factory Input$ExtrinsicStddevPopOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('fee')) {
+      final l$fee = data['fee'];
+      result$data['fee'] =
+          l$fee == null ? null : fromJson$Enum$OrderBy((l$fee as String));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    if (data.containsKey('tip')) {
+      final l$tip = data['tip'];
+      result$data['tip'] =
+          l$tip == null ? null : fromJson$Enum$OrderBy((l$tip as String));
+    }
+    if (data.containsKey('version')) {
+      final l$version = data['version'];
+      result$data['version'] = l$version == null
+          ? null
+          : fromJson$Enum$OrderBy((l$version as String));
+    }
+    return Input$ExtrinsicStddevPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get fee => (_$data['fee'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get tip => (_$data['tip'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get version => (_$data['version'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('fee')) {
+      final l$fee = fee;
+      result$data['fee'] = l$fee == null ? null : toJson$Enum$OrderBy(l$fee);
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    if (_$data.containsKey('tip')) {
+      final l$tip = tip;
+      result$data['tip'] = l$tip == null ? null : toJson$Enum$OrderBy(l$tip);
+    }
+    if (_$data.containsKey('version')) {
+      final l$version = version;
+      result$data['version'] =
+          l$version == null ? null : toJson$Enum$OrderBy(l$version);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ExtrinsicStddevPopOrderBy<Input$ExtrinsicStddevPopOrderBy>
+      get copyWith => CopyWith$Input$ExtrinsicStddevPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ExtrinsicStddevPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$fee = fee;
+    final lOther$fee = other.fee;
+    if (_$data.containsKey('fee') != other._$data.containsKey('fee')) {
+      return false;
+    }
+    if (l$fee != lOther$fee) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$tip = tip;
+    final lOther$tip = other.tip;
+    if (_$data.containsKey('tip') != other._$data.containsKey('tip')) {
+      return false;
+    }
+    if (l$tip != lOther$tip) {
+      return false;
+    }
+    final l$version = version;
+    final lOther$version = other.version;
+    if (_$data.containsKey('version') != other._$data.containsKey('version')) {
+      return false;
+    }
+    if (l$version != lOther$version) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$fee = fee;
+    final l$index = index;
+    final l$tip = tip;
+    final l$version = version;
+    return Object.hashAll([
+      _$data.containsKey('fee') ? l$fee : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('tip') ? l$tip : const {},
+      _$data.containsKey('version') ? l$version : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ExtrinsicStddevPopOrderBy<TRes> {
+  factory CopyWith$Input$ExtrinsicStddevPopOrderBy(
+    Input$ExtrinsicStddevPopOrderBy instance,
+    TRes Function(Input$ExtrinsicStddevPopOrderBy) then,
+  ) = _CopyWithImpl$Input$ExtrinsicStddevPopOrderBy;
+
+  factory CopyWith$Input$ExtrinsicStddevPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ExtrinsicStddevPopOrderBy;
+
+  TRes call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  });
+}
+
+class _CopyWithImpl$Input$ExtrinsicStddevPopOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicStddevPopOrderBy<TRes> {
+  _CopyWithImpl$Input$ExtrinsicStddevPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ExtrinsicStddevPopOrderBy _instance;
+
+  final TRes Function(Input$ExtrinsicStddevPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? fee = _undefined,
+    Object? index = _undefined,
+    Object? tip = _undefined,
+    Object? version = _undefined,
+  }) =>
+      _then(Input$ExtrinsicStddevPopOrderBy._({
+        ..._instance._$data,
+        if (fee != _undefined) 'fee': (fee as Enum$OrderBy?),
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+        if (tip != _undefined) 'tip': (tip as Enum$OrderBy?),
+        if (version != _undefined) 'version': (version as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ExtrinsicStddevPopOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicStddevPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ExtrinsicStddevPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      _res;
+}
+
+class Input$ExtrinsicStddevSampOrderBy {
+  factory Input$ExtrinsicStddevSampOrderBy({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      Input$ExtrinsicStddevSampOrderBy._({
+        if (fee != null) r'fee': fee,
+        if (index != null) r'index': index,
+        if (tip != null) r'tip': tip,
+        if (version != null) r'version': version,
+      });
+
+  Input$ExtrinsicStddevSampOrderBy._(this._$data);
+
+  factory Input$ExtrinsicStddevSampOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('fee')) {
+      final l$fee = data['fee'];
+      result$data['fee'] =
+          l$fee == null ? null : fromJson$Enum$OrderBy((l$fee as String));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    if (data.containsKey('tip')) {
+      final l$tip = data['tip'];
+      result$data['tip'] =
+          l$tip == null ? null : fromJson$Enum$OrderBy((l$tip as String));
+    }
+    if (data.containsKey('version')) {
+      final l$version = data['version'];
+      result$data['version'] = l$version == null
+          ? null
+          : fromJson$Enum$OrderBy((l$version as String));
+    }
+    return Input$ExtrinsicStddevSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get fee => (_$data['fee'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get tip => (_$data['tip'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get version => (_$data['version'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('fee')) {
+      final l$fee = fee;
+      result$data['fee'] = l$fee == null ? null : toJson$Enum$OrderBy(l$fee);
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    if (_$data.containsKey('tip')) {
+      final l$tip = tip;
+      result$data['tip'] = l$tip == null ? null : toJson$Enum$OrderBy(l$tip);
+    }
+    if (_$data.containsKey('version')) {
+      final l$version = version;
+      result$data['version'] =
+          l$version == null ? null : toJson$Enum$OrderBy(l$version);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ExtrinsicStddevSampOrderBy<Input$ExtrinsicStddevSampOrderBy>
+      get copyWith => CopyWith$Input$ExtrinsicStddevSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ExtrinsicStddevSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$fee = fee;
+    final lOther$fee = other.fee;
+    if (_$data.containsKey('fee') != other._$data.containsKey('fee')) {
+      return false;
+    }
+    if (l$fee != lOther$fee) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$tip = tip;
+    final lOther$tip = other.tip;
+    if (_$data.containsKey('tip') != other._$data.containsKey('tip')) {
+      return false;
+    }
+    if (l$tip != lOther$tip) {
+      return false;
+    }
+    final l$version = version;
+    final lOther$version = other.version;
+    if (_$data.containsKey('version') != other._$data.containsKey('version')) {
+      return false;
+    }
+    if (l$version != lOther$version) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$fee = fee;
+    final l$index = index;
+    final l$tip = tip;
+    final l$version = version;
+    return Object.hashAll([
+      _$data.containsKey('fee') ? l$fee : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('tip') ? l$tip : const {},
+      _$data.containsKey('version') ? l$version : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ExtrinsicStddevSampOrderBy<TRes> {
+  factory CopyWith$Input$ExtrinsicStddevSampOrderBy(
+    Input$ExtrinsicStddevSampOrderBy instance,
+    TRes Function(Input$ExtrinsicStddevSampOrderBy) then,
+  ) = _CopyWithImpl$Input$ExtrinsicStddevSampOrderBy;
+
+  factory CopyWith$Input$ExtrinsicStddevSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ExtrinsicStddevSampOrderBy;
+
+  TRes call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  });
+}
+
+class _CopyWithImpl$Input$ExtrinsicStddevSampOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicStddevSampOrderBy<TRes> {
+  _CopyWithImpl$Input$ExtrinsicStddevSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ExtrinsicStddevSampOrderBy _instance;
+
+  final TRes Function(Input$ExtrinsicStddevSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? fee = _undefined,
+    Object? index = _undefined,
+    Object? tip = _undefined,
+    Object? version = _undefined,
+  }) =>
+      _then(Input$ExtrinsicStddevSampOrderBy._({
+        ..._instance._$data,
+        if (fee != _undefined) 'fee': (fee as Enum$OrderBy?),
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+        if (tip != _undefined) 'tip': (tip as Enum$OrderBy?),
+        if (version != _undefined) 'version': (version as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ExtrinsicStddevSampOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicStddevSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ExtrinsicStddevSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      _res;
+}
+
+class Input$ExtrinsicSumOrderBy {
+  factory Input$ExtrinsicSumOrderBy({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      Input$ExtrinsicSumOrderBy._({
+        if (fee != null) r'fee': fee,
+        if (index != null) r'index': index,
+        if (tip != null) r'tip': tip,
+        if (version != null) r'version': version,
+      });
+
+  Input$ExtrinsicSumOrderBy._(this._$data);
+
+  factory Input$ExtrinsicSumOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('fee')) {
+      final l$fee = data['fee'];
+      result$data['fee'] =
+          l$fee == null ? null : fromJson$Enum$OrderBy((l$fee as String));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    if (data.containsKey('tip')) {
+      final l$tip = data['tip'];
+      result$data['tip'] =
+          l$tip == null ? null : fromJson$Enum$OrderBy((l$tip as String));
+    }
+    if (data.containsKey('version')) {
+      final l$version = data['version'];
+      result$data['version'] = l$version == null
+          ? null
+          : fromJson$Enum$OrderBy((l$version as String));
+    }
+    return Input$ExtrinsicSumOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get fee => (_$data['fee'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get tip => (_$data['tip'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get version => (_$data['version'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('fee')) {
+      final l$fee = fee;
+      result$data['fee'] = l$fee == null ? null : toJson$Enum$OrderBy(l$fee);
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    if (_$data.containsKey('tip')) {
+      final l$tip = tip;
+      result$data['tip'] = l$tip == null ? null : toJson$Enum$OrderBy(l$tip);
+    }
+    if (_$data.containsKey('version')) {
+      final l$version = version;
+      result$data['version'] =
+          l$version == null ? null : toJson$Enum$OrderBy(l$version);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ExtrinsicSumOrderBy<Input$ExtrinsicSumOrderBy> get copyWith =>
+      CopyWith$Input$ExtrinsicSumOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ExtrinsicSumOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$fee = fee;
+    final lOther$fee = other.fee;
+    if (_$data.containsKey('fee') != other._$data.containsKey('fee')) {
+      return false;
+    }
+    if (l$fee != lOther$fee) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$tip = tip;
+    final lOther$tip = other.tip;
+    if (_$data.containsKey('tip') != other._$data.containsKey('tip')) {
+      return false;
+    }
+    if (l$tip != lOther$tip) {
+      return false;
+    }
+    final l$version = version;
+    final lOther$version = other.version;
+    if (_$data.containsKey('version') != other._$data.containsKey('version')) {
+      return false;
+    }
+    if (l$version != lOther$version) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$fee = fee;
+    final l$index = index;
+    final l$tip = tip;
+    final l$version = version;
+    return Object.hashAll([
+      _$data.containsKey('fee') ? l$fee : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('tip') ? l$tip : const {},
+      _$data.containsKey('version') ? l$version : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ExtrinsicSumOrderBy<TRes> {
+  factory CopyWith$Input$ExtrinsicSumOrderBy(
+    Input$ExtrinsicSumOrderBy instance,
+    TRes Function(Input$ExtrinsicSumOrderBy) then,
+  ) = _CopyWithImpl$Input$ExtrinsicSumOrderBy;
+
+  factory CopyWith$Input$ExtrinsicSumOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ExtrinsicSumOrderBy;
+
+  TRes call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  });
+}
+
+class _CopyWithImpl$Input$ExtrinsicSumOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicSumOrderBy<TRes> {
+  _CopyWithImpl$Input$ExtrinsicSumOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ExtrinsicSumOrderBy _instance;
+
+  final TRes Function(Input$ExtrinsicSumOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? fee = _undefined,
+    Object? index = _undefined,
+    Object? tip = _undefined,
+    Object? version = _undefined,
+  }) =>
+      _then(Input$ExtrinsicSumOrderBy._({
+        ..._instance._$data,
+        if (fee != _undefined) 'fee': (fee as Enum$OrderBy?),
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+        if (tip != _undefined) 'tip': (tip as Enum$OrderBy?),
+        if (version != _undefined) 'version': (version as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ExtrinsicSumOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicSumOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ExtrinsicSumOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      _res;
+}
+
+class Input$ExtrinsicVarianceOrderBy {
+  factory Input$ExtrinsicVarianceOrderBy({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      Input$ExtrinsicVarianceOrderBy._({
+        if (fee != null) r'fee': fee,
+        if (index != null) r'index': index,
+        if (tip != null) r'tip': tip,
+        if (version != null) r'version': version,
+      });
+
+  Input$ExtrinsicVarianceOrderBy._(this._$data);
+
+  factory Input$ExtrinsicVarianceOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('fee')) {
+      final l$fee = data['fee'];
+      result$data['fee'] =
+          l$fee == null ? null : fromJson$Enum$OrderBy((l$fee as String));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    if (data.containsKey('tip')) {
+      final l$tip = data['tip'];
+      result$data['tip'] =
+          l$tip == null ? null : fromJson$Enum$OrderBy((l$tip as String));
+    }
+    if (data.containsKey('version')) {
+      final l$version = data['version'];
+      result$data['version'] = l$version == null
+          ? null
+          : fromJson$Enum$OrderBy((l$version as String));
+    }
+    return Input$ExtrinsicVarianceOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get fee => (_$data['fee'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get tip => (_$data['tip'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get version => (_$data['version'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('fee')) {
+      final l$fee = fee;
+      result$data['fee'] = l$fee == null ? null : toJson$Enum$OrderBy(l$fee);
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    if (_$data.containsKey('tip')) {
+      final l$tip = tip;
+      result$data['tip'] = l$tip == null ? null : toJson$Enum$OrderBy(l$tip);
+    }
+    if (_$data.containsKey('version')) {
+      final l$version = version;
+      result$data['version'] =
+          l$version == null ? null : toJson$Enum$OrderBy(l$version);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ExtrinsicVarianceOrderBy<Input$ExtrinsicVarianceOrderBy>
+      get copyWith => CopyWith$Input$ExtrinsicVarianceOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ExtrinsicVarianceOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$fee = fee;
+    final lOther$fee = other.fee;
+    if (_$data.containsKey('fee') != other._$data.containsKey('fee')) {
+      return false;
+    }
+    if (l$fee != lOther$fee) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$tip = tip;
+    final lOther$tip = other.tip;
+    if (_$data.containsKey('tip') != other._$data.containsKey('tip')) {
+      return false;
+    }
+    if (l$tip != lOther$tip) {
+      return false;
+    }
+    final l$version = version;
+    final lOther$version = other.version;
+    if (_$data.containsKey('version') != other._$data.containsKey('version')) {
+      return false;
+    }
+    if (l$version != lOther$version) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$fee = fee;
+    final l$index = index;
+    final l$tip = tip;
+    final l$version = version;
+    return Object.hashAll([
+      _$data.containsKey('fee') ? l$fee : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('tip') ? l$tip : const {},
+      _$data.containsKey('version') ? l$version : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ExtrinsicVarianceOrderBy<TRes> {
+  factory CopyWith$Input$ExtrinsicVarianceOrderBy(
+    Input$ExtrinsicVarianceOrderBy instance,
+    TRes Function(Input$ExtrinsicVarianceOrderBy) then,
+  ) = _CopyWithImpl$Input$ExtrinsicVarianceOrderBy;
+
+  factory CopyWith$Input$ExtrinsicVarianceOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ExtrinsicVarianceOrderBy;
+
+  TRes call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  });
+}
+
+class _CopyWithImpl$Input$ExtrinsicVarianceOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicVarianceOrderBy<TRes> {
+  _CopyWithImpl$Input$ExtrinsicVarianceOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ExtrinsicVarianceOrderBy _instance;
+
+  final TRes Function(Input$ExtrinsicVarianceOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? fee = _undefined,
+    Object? index = _undefined,
+    Object? tip = _undefined,
+    Object? version = _undefined,
+  }) =>
+      _then(Input$ExtrinsicVarianceOrderBy._({
+        ..._instance._$data,
+        if (fee != _undefined) 'fee': (fee as Enum$OrderBy?),
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+        if (tip != _undefined) 'tip': (tip as Enum$OrderBy?),
+        if (version != _undefined) 'version': (version as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ExtrinsicVarianceOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicVarianceOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ExtrinsicVarianceOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      _res;
+}
+
+class Input$ExtrinsicVarPopOrderBy {
+  factory Input$ExtrinsicVarPopOrderBy({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      Input$ExtrinsicVarPopOrderBy._({
+        if (fee != null) r'fee': fee,
+        if (index != null) r'index': index,
+        if (tip != null) r'tip': tip,
+        if (version != null) r'version': version,
+      });
+
+  Input$ExtrinsicVarPopOrderBy._(this._$data);
+
+  factory Input$ExtrinsicVarPopOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('fee')) {
+      final l$fee = data['fee'];
+      result$data['fee'] =
+          l$fee == null ? null : fromJson$Enum$OrderBy((l$fee as String));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    if (data.containsKey('tip')) {
+      final l$tip = data['tip'];
+      result$data['tip'] =
+          l$tip == null ? null : fromJson$Enum$OrderBy((l$tip as String));
+    }
+    if (data.containsKey('version')) {
+      final l$version = data['version'];
+      result$data['version'] = l$version == null
+          ? null
+          : fromJson$Enum$OrderBy((l$version as String));
+    }
+    return Input$ExtrinsicVarPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get fee => (_$data['fee'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get tip => (_$data['tip'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get version => (_$data['version'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('fee')) {
+      final l$fee = fee;
+      result$data['fee'] = l$fee == null ? null : toJson$Enum$OrderBy(l$fee);
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    if (_$data.containsKey('tip')) {
+      final l$tip = tip;
+      result$data['tip'] = l$tip == null ? null : toJson$Enum$OrderBy(l$tip);
+    }
+    if (_$data.containsKey('version')) {
+      final l$version = version;
+      result$data['version'] =
+          l$version == null ? null : toJson$Enum$OrderBy(l$version);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ExtrinsicVarPopOrderBy<Input$ExtrinsicVarPopOrderBy>
+      get copyWith => CopyWith$Input$ExtrinsicVarPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ExtrinsicVarPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$fee = fee;
+    final lOther$fee = other.fee;
+    if (_$data.containsKey('fee') != other._$data.containsKey('fee')) {
+      return false;
+    }
+    if (l$fee != lOther$fee) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$tip = tip;
+    final lOther$tip = other.tip;
+    if (_$data.containsKey('tip') != other._$data.containsKey('tip')) {
+      return false;
+    }
+    if (l$tip != lOther$tip) {
+      return false;
+    }
+    final l$version = version;
+    final lOther$version = other.version;
+    if (_$data.containsKey('version') != other._$data.containsKey('version')) {
+      return false;
+    }
+    if (l$version != lOther$version) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$fee = fee;
+    final l$index = index;
+    final l$tip = tip;
+    final l$version = version;
+    return Object.hashAll([
+      _$data.containsKey('fee') ? l$fee : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('tip') ? l$tip : const {},
+      _$data.containsKey('version') ? l$version : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ExtrinsicVarPopOrderBy<TRes> {
+  factory CopyWith$Input$ExtrinsicVarPopOrderBy(
+    Input$ExtrinsicVarPopOrderBy instance,
+    TRes Function(Input$ExtrinsicVarPopOrderBy) then,
+  ) = _CopyWithImpl$Input$ExtrinsicVarPopOrderBy;
+
+  factory CopyWith$Input$ExtrinsicVarPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ExtrinsicVarPopOrderBy;
+
+  TRes call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  });
+}
+
+class _CopyWithImpl$Input$ExtrinsicVarPopOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicVarPopOrderBy<TRes> {
+  _CopyWithImpl$Input$ExtrinsicVarPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ExtrinsicVarPopOrderBy _instance;
+
+  final TRes Function(Input$ExtrinsicVarPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? fee = _undefined,
+    Object? index = _undefined,
+    Object? tip = _undefined,
+    Object? version = _undefined,
+  }) =>
+      _then(Input$ExtrinsicVarPopOrderBy._({
+        ..._instance._$data,
+        if (fee != _undefined) 'fee': (fee as Enum$OrderBy?),
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+        if (tip != _undefined) 'tip': (tip as Enum$OrderBy?),
+        if (version != _undefined) 'version': (version as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ExtrinsicVarPopOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicVarPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ExtrinsicVarPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      _res;
+}
+
+class Input$ExtrinsicVarSampOrderBy {
+  factory Input$ExtrinsicVarSampOrderBy({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      Input$ExtrinsicVarSampOrderBy._({
+        if (fee != null) r'fee': fee,
+        if (index != null) r'index': index,
+        if (tip != null) r'tip': tip,
+        if (version != null) r'version': version,
+      });
+
+  Input$ExtrinsicVarSampOrderBy._(this._$data);
+
+  factory Input$ExtrinsicVarSampOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('fee')) {
+      final l$fee = data['fee'];
+      result$data['fee'] =
+          l$fee == null ? null : fromJson$Enum$OrderBy((l$fee as String));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    if (data.containsKey('tip')) {
+      final l$tip = data['tip'];
+      result$data['tip'] =
+          l$tip == null ? null : fromJson$Enum$OrderBy((l$tip as String));
+    }
+    if (data.containsKey('version')) {
+      final l$version = data['version'];
+      result$data['version'] = l$version == null
+          ? null
+          : fromJson$Enum$OrderBy((l$version as String));
+    }
+    return Input$ExtrinsicVarSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get fee => (_$data['fee'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get tip => (_$data['tip'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get version => (_$data['version'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('fee')) {
+      final l$fee = fee;
+      result$data['fee'] = l$fee == null ? null : toJson$Enum$OrderBy(l$fee);
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    if (_$data.containsKey('tip')) {
+      final l$tip = tip;
+      result$data['tip'] = l$tip == null ? null : toJson$Enum$OrderBy(l$tip);
+    }
+    if (_$data.containsKey('version')) {
+      final l$version = version;
+      result$data['version'] =
+          l$version == null ? null : toJson$Enum$OrderBy(l$version);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ExtrinsicVarSampOrderBy<Input$ExtrinsicVarSampOrderBy>
+      get copyWith => CopyWith$Input$ExtrinsicVarSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ExtrinsicVarSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$fee = fee;
+    final lOther$fee = other.fee;
+    if (_$data.containsKey('fee') != other._$data.containsKey('fee')) {
+      return false;
+    }
+    if (l$fee != lOther$fee) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$tip = tip;
+    final lOther$tip = other.tip;
+    if (_$data.containsKey('tip') != other._$data.containsKey('tip')) {
+      return false;
+    }
+    if (l$tip != lOther$tip) {
+      return false;
+    }
+    final l$version = version;
+    final lOther$version = other.version;
+    if (_$data.containsKey('version') != other._$data.containsKey('version')) {
+      return false;
+    }
+    if (l$version != lOther$version) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$fee = fee;
+    final l$index = index;
+    final l$tip = tip;
+    final l$version = version;
+    return Object.hashAll([
+      _$data.containsKey('fee') ? l$fee : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('tip') ? l$tip : const {},
+      _$data.containsKey('version') ? l$version : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ExtrinsicVarSampOrderBy<TRes> {
+  factory CopyWith$Input$ExtrinsicVarSampOrderBy(
+    Input$ExtrinsicVarSampOrderBy instance,
+    TRes Function(Input$ExtrinsicVarSampOrderBy) then,
+  ) = _CopyWithImpl$Input$ExtrinsicVarSampOrderBy;
+
+  factory CopyWith$Input$ExtrinsicVarSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ExtrinsicVarSampOrderBy;
+
+  TRes call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  });
+}
+
+class _CopyWithImpl$Input$ExtrinsicVarSampOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicVarSampOrderBy<TRes> {
+  _CopyWithImpl$Input$ExtrinsicVarSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ExtrinsicVarSampOrderBy _instance;
+
+  final TRes Function(Input$ExtrinsicVarSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? fee = _undefined,
+    Object? index = _undefined,
+    Object? tip = _undefined,
+    Object? version = _undefined,
+  }) =>
+      _then(Input$ExtrinsicVarSampOrderBy._({
+        ..._instance._$data,
+        if (fee != _undefined) 'fee': (fee as Enum$OrderBy?),
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+        if (tip != _undefined) 'tip': (tip as Enum$OrderBy?),
+        if (version != _undefined) 'version': (version as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ExtrinsicVarSampOrderBy<TRes>
+    implements CopyWith$Input$ExtrinsicVarSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ExtrinsicVarSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? fee,
+    Enum$OrderBy? index,
+    Enum$OrderBy? tip,
+    Enum$OrderBy? version,
+  }) =>
+      _res;
+}
+
+class Input$getUdHistoryArgs {
+  factory Input$getUdHistoryArgs({String? identity_row}) =>
+      Input$getUdHistoryArgs._({
+        if (identity_row != null) r'identity_row': identity_row,
+      });
+
+  Input$getUdHistoryArgs._(this._$data);
+
+  factory Input$getUdHistoryArgs.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('identity_row')) {
+      final l$identity_row = data['identity_row'];
+      result$data['identity_row'] = (l$identity_row as String?);
+    }
+    return Input$getUdHistoryArgs._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  String? get identity_row => (_$data['identity_row'] as String?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('identity_row')) {
+      final l$identity_row = identity_row;
+      result$data['identity_row'] = l$identity_row;
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$getUdHistoryArgs<Input$getUdHistoryArgs> get copyWith =>
+      CopyWith$Input$getUdHistoryArgs(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$getUdHistoryArgs) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$identity_row = identity_row;
+    final lOther$identity_row = other.identity_row;
+    if (_$data.containsKey('identity_row') !=
+        other._$data.containsKey('identity_row')) {
+      return false;
+    }
+    if (l$identity_row != lOther$identity_row) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$identity_row = identity_row;
+    return Object.hashAll(
+        [_$data.containsKey('identity_row') ? l$identity_row : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$getUdHistoryArgs<TRes> {
+  factory CopyWith$Input$getUdHistoryArgs(
+    Input$getUdHistoryArgs instance,
+    TRes Function(Input$getUdHistoryArgs) then,
+  ) = _CopyWithImpl$Input$getUdHistoryArgs;
+
+  factory CopyWith$Input$getUdHistoryArgs.stub(TRes res) =
+      _CopyWithStubImpl$Input$getUdHistoryArgs;
+
+  TRes call({String? identity_row});
+}
+
+class _CopyWithImpl$Input$getUdHistoryArgs<TRes>
+    implements CopyWith$Input$getUdHistoryArgs<TRes> {
+  _CopyWithImpl$Input$getUdHistoryArgs(
+    this._instance,
+    this._then,
+  );
+
+  final Input$getUdHistoryArgs _instance;
+
+  final TRes Function(Input$getUdHistoryArgs) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? identity_row = _undefined}) =>
+      _then(Input$getUdHistoryArgs._({
+        ..._instance._$data,
+        if (identity_row != _undefined)
+          'identity_row': (identity_row as String?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$getUdHistoryArgs<TRes>
+    implements CopyWith$Input$getUdHistoryArgs<TRes> {
+  _CopyWithStubImpl$Input$getUdHistoryArgs(this._res);
+
+  TRes _res;
+
+  call({String? identity_row}) => _res;
+}
+
+class Input$IdentityBoolExp {
+  factory Input$IdentityBoolExp({
+    List<Input$IdentityBoolExp>? $_and,
+    Input$IdentityBoolExp? $_not,
+    List<Input$IdentityBoolExp>? $_or,
+    Input$AccountBoolExp? account,
+    Input$StringComparisonExp? accountId,
+    Input$CertBoolExp? certIssued,
+    Input$CertAggregateBoolExp? certIssuedAggregate,
+    Input$CertBoolExp? certReceived,
+    Input$CertAggregateBoolExp? certReceivedAggregate,
+    Input$EventBoolExp? createdIn,
+    Input$StringComparisonExp? createdInId,
+    Input$IntComparisonExp? createdOn,
+    Input$IntComparisonExp? expireOn,
+    Input$StringComparisonExp? id,
+    Input$IntComparisonExp? index,
+    Input$BooleanComparisonExp? isMember,
+    Input$IntComparisonExp? lastChangeOn,
+    Input$AccountBoolExp? linkedAccount,
+    Input$AccountAggregateBoolExp? linkedAccountAggregate,
+    Input$MembershipEventBoolExp? membershipHistory,
+    Input$MembershipEventAggregateBoolExp? membershipHistoryAggregate,
+    Input$StringComparisonExp? name,
+    Input$ChangeOwnerKeyBoolExp? ownerKeyChange,
+    Input$ChangeOwnerKeyAggregateBoolExp? ownerKeyChangeAggregate,
+    Input$SmithCertBoolExp? smithCertIssued,
+    Input$SmithCertAggregateBoolExp? smithCertIssuedAggregate,
+    Input$SmithCertBoolExp? smithCertReceived,
+    Input$SmithCertAggregateBoolExp? smithCertReceivedAggregate,
+    Input$SmithStatusEnumComparisonExp? smithStatus,
+    Input$IdentityStatusEnumComparisonExp? status,
+    Input$UdHistoryBoolExp? udHistory,
+  }) =>
+      Input$IdentityBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (account != null) r'account': account,
+        if (accountId != null) r'accountId': accountId,
+        if (certIssued != null) r'certIssued': certIssued,
+        if (certIssuedAggregate != null)
+          r'certIssuedAggregate': certIssuedAggregate,
+        if (certReceived != null) r'certReceived': certReceived,
+        if (certReceivedAggregate != null)
+          r'certReceivedAggregate': certReceivedAggregate,
+        if (createdIn != null) r'createdIn': createdIn,
+        if (createdInId != null) r'createdInId': createdInId,
+        if (createdOn != null) r'createdOn': createdOn,
+        if (expireOn != null) r'expireOn': expireOn,
+        if (id != null) r'id': id,
+        if (index != null) r'index': index,
+        if (isMember != null) r'isMember': isMember,
+        if (lastChangeOn != null) r'lastChangeOn': lastChangeOn,
+        if (linkedAccount != null) r'linkedAccount': linkedAccount,
+        if (linkedAccountAggregate != null)
+          r'linkedAccountAggregate': linkedAccountAggregate,
+        if (membershipHistory != null) r'membershipHistory': membershipHistory,
+        if (membershipHistoryAggregate != null)
+          r'membershipHistoryAggregate': membershipHistoryAggregate,
+        if (name != null) r'name': name,
+        if (ownerKeyChange != null) r'ownerKeyChange': ownerKeyChange,
+        if (ownerKeyChangeAggregate != null)
+          r'ownerKeyChangeAggregate': ownerKeyChangeAggregate,
+        if (smithCertIssued != null) r'smithCertIssued': smithCertIssued,
+        if (smithCertIssuedAggregate != null)
+          r'smithCertIssuedAggregate': smithCertIssuedAggregate,
+        if (smithCertReceived != null) r'smithCertReceived': smithCertReceived,
+        if (smithCertReceivedAggregate != null)
+          r'smithCertReceivedAggregate': smithCertReceivedAggregate,
+        if (smithStatus != null) r'smithStatus': smithStatus,
+        if (status != null) r'status': status,
+        if (udHistory != null) r'udHistory': udHistory,
+      });
+
+  Input$IdentityBoolExp._(this._$data);
+
+  factory Input$IdentityBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map((e) =>
+              Input$IdentityBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$IdentityBoolExp.fromJson((l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map((e) =>
+              Input$IdentityBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('account')) {
+      final l$account = data['account'];
+      result$data['account'] = l$account == null
+          ? null
+          : Input$AccountBoolExp.fromJson((l$account as Map<String, dynamic>));
+    }
+    if (data.containsKey('accountId')) {
+      final l$accountId = data['accountId'];
+      result$data['accountId'] = l$accountId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$accountId as Map<String, dynamic>));
+    }
+    if (data.containsKey('certIssued')) {
+      final l$certIssued = data['certIssued'];
+      result$data['certIssued'] = l$certIssued == null
+          ? null
+          : Input$CertBoolExp.fromJson((l$certIssued as Map<String, dynamic>));
+    }
+    if (data.containsKey('certIssuedAggregate')) {
+      final l$certIssuedAggregate = data['certIssuedAggregate'];
+      result$data['certIssuedAggregate'] = l$certIssuedAggregate == null
+          ? null
+          : Input$CertAggregateBoolExp.fromJson(
+              (l$certIssuedAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('certReceived')) {
+      final l$certReceived = data['certReceived'];
+      result$data['certReceived'] = l$certReceived == null
+          ? null
+          : Input$CertBoolExp.fromJson(
+              (l$certReceived as Map<String, dynamic>));
+    }
+    if (data.containsKey('certReceivedAggregate')) {
+      final l$certReceivedAggregate = data['certReceivedAggregate'];
+      result$data['certReceivedAggregate'] = l$certReceivedAggregate == null
+          ? null
+          : Input$CertAggregateBoolExp.fromJson(
+              (l$certReceivedAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('createdIn')) {
+      final l$createdIn = data['createdIn'];
+      result$data['createdIn'] = l$createdIn == null
+          ? null
+          : Input$EventBoolExp.fromJson((l$createdIn as Map<String, dynamic>));
+    }
+    if (data.containsKey('createdInId')) {
+      final l$createdInId = data['createdInId'];
+      result$data['createdInId'] = l$createdInId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$createdInId as Map<String, dynamic>));
+    }
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$createdOn as Map<String, dynamic>));
+    }
+    if (data.containsKey('expireOn')) {
+      final l$expireOn = data['expireOn'];
+      result$data['expireOn'] = l$expireOn == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$expireOn as Map<String, dynamic>));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] = l$index == null
+          ? null
+          : Input$IntComparisonExp.fromJson((l$index as Map<String, dynamic>));
+    }
+    if (data.containsKey('isMember')) {
+      final l$isMember = data['isMember'];
+      result$data['isMember'] = l$isMember == null
+          ? null
+          : Input$BooleanComparisonExp.fromJson(
+              (l$isMember as Map<String, dynamic>));
+    }
+    if (data.containsKey('lastChangeOn')) {
+      final l$lastChangeOn = data['lastChangeOn'];
+      result$data['lastChangeOn'] = l$lastChangeOn == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$lastChangeOn as Map<String, dynamic>));
+    }
+    if (data.containsKey('linkedAccount')) {
+      final l$linkedAccount = data['linkedAccount'];
+      result$data['linkedAccount'] = l$linkedAccount == null
+          ? null
+          : Input$AccountBoolExp.fromJson(
+              (l$linkedAccount as Map<String, dynamic>));
+    }
+    if (data.containsKey('linkedAccountAggregate')) {
+      final l$linkedAccountAggregate = data['linkedAccountAggregate'];
+      result$data['linkedAccountAggregate'] = l$linkedAccountAggregate == null
+          ? null
+          : Input$AccountAggregateBoolExp.fromJson(
+              (l$linkedAccountAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('membershipHistory')) {
+      final l$membershipHistory = data['membershipHistory'];
+      result$data['membershipHistory'] = l$membershipHistory == null
+          ? null
+          : Input$MembershipEventBoolExp.fromJson(
+              (l$membershipHistory as Map<String, dynamic>));
+    }
+    if (data.containsKey('membershipHistoryAggregate')) {
+      final l$membershipHistoryAggregate = data['membershipHistoryAggregate'];
+      result$data['membershipHistoryAggregate'] =
+          l$membershipHistoryAggregate == null
+              ? null
+              : Input$MembershipEventAggregateBoolExp.fromJson(
+                  (l$membershipHistoryAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('name')) {
+      final l$name = data['name'];
+      result$data['name'] = l$name == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$name as Map<String, dynamic>));
+    }
+    if (data.containsKey('ownerKeyChange')) {
+      final l$ownerKeyChange = data['ownerKeyChange'];
+      result$data['ownerKeyChange'] = l$ownerKeyChange == null
+          ? null
+          : Input$ChangeOwnerKeyBoolExp.fromJson(
+              (l$ownerKeyChange as Map<String, dynamic>));
+    }
+    if (data.containsKey('ownerKeyChangeAggregate')) {
+      final l$ownerKeyChangeAggregate = data['ownerKeyChangeAggregate'];
+      result$data['ownerKeyChangeAggregate'] = l$ownerKeyChangeAggregate == null
+          ? null
+          : Input$ChangeOwnerKeyAggregateBoolExp.fromJson(
+              (l$ownerKeyChangeAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('smithCertIssued')) {
+      final l$smithCertIssued = data['smithCertIssued'];
+      result$data['smithCertIssued'] = l$smithCertIssued == null
+          ? null
+          : Input$SmithCertBoolExp.fromJson(
+              (l$smithCertIssued as Map<String, dynamic>));
+    }
+    if (data.containsKey('smithCertIssuedAggregate')) {
+      final l$smithCertIssuedAggregate = data['smithCertIssuedAggregate'];
+      result$data['smithCertIssuedAggregate'] =
+          l$smithCertIssuedAggregate == null
+              ? null
+              : Input$SmithCertAggregateBoolExp.fromJson(
+                  (l$smithCertIssuedAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('smithCertReceived')) {
+      final l$smithCertReceived = data['smithCertReceived'];
+      result$data['smithCertReceived'] = l$smithCertReceived == null
+          ? null
+          : Input$SmithCertBoolExp.fromJson(
+              (l$smithCertReceived as Map<String, dynamic>));
+    }
+    if (data.containsKey('smithCertReceivedAggregate')) {
+      final l$smithCertReceivedAggregate = data['smithCertReceivedAggregate'];
+      result$data['smithCertReceivedAggregate'] =
+          l$smithCertReceivedAggregate == null
+              ? null
+              : Input$SmithCertAggregateBoolExp.fromJson(
+                  (l$smithCertReceivedAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('smithStatus')) {
+      final l$smithStatus = data['smithStatus'];
+      result$data['smithStatus'] = l$smithStatus == null
+          ? null
+          : Input$SmithStatusEnumComparisonExp.fromJson(
+              (l$smithStatus as Map<String, dynamic>));
+    }
+    if (data.containsKey('status')) {
+      final l$status = data['status'];
+      result$data['status'] = l$status == null
+          ? null
+          : Input$IdentityStatusEnumComparisonExp.fromJson(
+              (l$status as Map<String, dynamic>));
+    }
+    if (data.containsKey('udHistory')) {
+      final l$udHistory = data['udHistory'];
+      result$data['udHistory'] = l$udHistory == null
+          ? null
+          : Input$UdHistoryBoolExp.fromJson(
+              (l$udHistory as Map<String, dynamic>));
+    }
+    return Input$IdentityBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$IdentityBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$IdentityBoolExp>?);
+
+  Input$IdentityBoolExp? get $_not =>
+      (_$data['_not'] as Input$IdentityBoolExp?);
+
+  List<Input$IdentityBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$IdentityBoolExp>?);
+
+  Input$AccountBoolExp? get account =>
+      (_$data['account'] as Input$AccountBoolExp?);
+
+  Input$StringComparisonExp? get accountId =>
+      (_$data['accountId'] as Input$StringComparisonExp?);
+
+  Input$CertBoolExp? get certIssued =>
+      (_$data['certIssued'] as Input$CertBoolExp?);
+
+  Input$CertAggregateBoolExp? get certIssuedAggregate =>
+      (_$data['certIssuedAggregate'] as Input$CertAggregateBoolExp?);
+
+  Input$CertBoolExp? get certReceived =>
+      (_$data['certReceived'] as Input$CertBoolExp?);
+
+  Input$CertAggregateBoolExp? get certReceivedAggregate =>
+      (_$data['certReceivedAggregate'] as Input$CertAggregateBoolExp?);
+
+  Input$EventBoolExp? get createdIn =>
+      (_$data['createdIn'] as Input$EventBoolExp?);
+
+  Input$StringComparisonExp? get createdInId =>
+      (_$data['createdInId'] as Input$StringComparisonExp?);
+
+  Input$IntComparisonExp? get createdOn =>
+      (_$data['createdOn'] as Input$IntComparisonExp?);
+
+  Input$IntComparisonExp? get expireOn =>
+      (_$data['expireOn'] as Input$IntComparisonExp?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Input$IntComparisonExp? get index =>
+      (_$data['index'] as Input$IntComparisonExp?);
+
+  Input$BooleanComparisonExp? get isMember =>
+      (_$data['isMember'] as Input$BooleanComparisonExp?);
+
+  Input$IntComparisonExp? get lastChangeOn =>
+      (_$data['lastChangeOn'] as Input$IntComparisonExp?);
+
+  Input$AccountBoolExp? get linkedAccount =>
+      (_$data['linkedAccount'] as Input$AccountBoolExp?);
+
+  Input$AccountAggregateBoolExp? get linkedAccountAggregate =>
+      (_$data['linkedAccountAggregate'] as Input$AccountAggregateBoolExp?);
+
+  Input$MembershipEventBoolExp? get membershipHistory =>
+      (_$data['membershipHistory'] as Input$MembershipEventBoolExp?);
+
+  Input$MembershipEventAggregateBoolExp? get membershipHistoryAggregate =>
+      (_$data['membershipHistoryAggregate']
+          as Input$MembershipEventAggregateBoolExp?);
+
+  Input$StringComparisonExp? get name =>
+      (_$data['name'] as Input$StringComparisonExp?);
+
+  Input$ChangeOwnerKeyBoolExp? get ownerKeyChange =>
+      (_$data['ownerKeyChange'] as Input$ChangeOwnerKeyBoolExp?);
+
+  Input$ChangeOwnerKeyAggregateBoolExp? get ownerKeyChangeAggregate =>
+      (_$data['ownerKeyChangeAggregate']
+          as Input$ChangeOwnerKeyAggregateBoolExp?);
+
+  Input$SmithCertBoolExp? get smithCertIssued =>
+      (_$data['smithCertIssued'] as Input$SmithCertBoolExp?);
+
+  Input$SmithCertAggregateBoolExp? get smithCertIssuedAggregate =>
+      (_$data['smithCertIssuedAggregate'] as Input$SmithCertAggregateBoolExp?);
+
+  Input$SmithCertBoolExp? get smithCertReceived =>
+      (_$data['smithCertReceived'] as Input$SmithCertBoolExp?);
+
+  Input$SmithCertAggregateBoolExp? get smithCertReceivedAggregate =>
+      (_$data['smithCertReceivedAggregate']
+          as Input$SmithCertAggregateBoolExp?);
+
+  Input$SmithStatusEnumComparisonExp? get smithStatus =>
+      (_$data['smithStatus'] as Input$SmithStatusEnumComparisonExp?);
+
+  Input$IdentityStatusEnumComparisonExp? get status =>
+      (_$data['status'] as Input$IdentityStatusEnumComparisonExp?);
+
+  Input$UdHistoryBoolExp? get udHistory =>
+      (_$data['udHistory'] as Input$UdHistoryBoolExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('account')) {
+      final l$account = account;
+      result$data['account'] = l$account?.toJson();
+    }
+    if (_$data.containsKey('accountId')) {
+      final l$accountId = accountId;
+      result$data['accountId'] = l$accountId?.toJson();
+    }
+    if (_$data.containsKey('certIssued')) {
+      final l$certIssued = certIssued;
+      result$data['certIssued'] = l$certIssued?.toJson();
+    }
+    if (_$data.containsKey('certIssuedAggregate')) {
+      final l$certIssuedAggregate = certIssuedAggregate;
+      result$data['certIssuedAggregate'] = l$certIssuedAggregate?.toJson();
+    }
+    if (_$data.containsKey('certReceived')) {
+      final l$certReceived = certReceived;
+      result$data['certReceived'] = l$certReceived?.toJson();
+    }
+    if (_$data.containsKey('certReceivedAggregate')) {
+      final l$certReceivedAggregate = certReceivedAggregate;
+      result$data['certReceivedAggregate'] = l$certReceivedAggregate?.toJson();
+    }
+    if (_$data.containsKey('createdIn')) {
+      final l$createdIn = createdIn;
+      result$data['createdIn'] = l$createdIn?.toJson();
+    }
+    if (_$data.containsKey('createdInId')) {
+      final l$createdInId = createdInId;
+      result$data['createdInId'] = l$createdInId?.toJson();
+    }
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] = l$createdOn?.toJson();
+    }
+    if (_$data.containsKey('expireOn')) {
+      final l$expireOn = expireOn;
+      result$data['expireOn'] = l$expireOn?.toJson();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] = l$index?.toJson();
+    }
+    if (_$data.containsKey('isMember')) {
+      final l$isMember = isMember;
+      result$data['isMember'] = l$isMember?.toJson();
+    }
+    if (_$data.containsKey('lastChangeOn')) {
+      final l$lastChangeOn = lastChangeOn;
+      result$data['lastChangeOn'] = l$lastChangeOn?.toJson();
+    }
+    if (_$data.containsKey('linkedAccount')) {
+      final l$linkedAccount = linkedAccount;
+      result$data['linkedAccount'] = l$linkedAccount?.toJson();
+    }
+    if (_$data.containsKey('linkedAccountAggregate')) {
+      final l$linkedAccountAggregate = linkedAccountAggregate;
+      result$data['linkedAccountAggregate'] =
+          l$linkedAccountAggregate?.toJson();
+    }
+    if (_$data.containsKey('membershipHistory')) {
+      final l$membershipHistory = membershipHistory;
+      result$data['membershipHistory'] = l$membershipHistory?.toJson();
+    }
+    if (_$data.containsKey('membershipHistoryAggregate')) {
+      final l$membershipHistoryAggregate = membershipHistoryAggregate;
+      result$data['membershipHistoryAggregate'] =
+          l$membershipHistoryAggregate?.toJson();
+    }
+    if (_$data.containsKey('name')) {
+      final l$name = name;
+      result$data['name'] = l$name?.toJson();
+    }
+    if (_$data.containsKey('ownerKeyChange')) {
+      final l$ownerKeyChange = ownerKeyChange;
+      result$data['ownerKeyChange'] = l$ownerKeyChange?.toJson();
+    }
+    if (_$data.containsKey('ownerKeyChangeAggregate')) {
+      final l$ownerKeyChangeAggregate = ownerKeyChangeAggregate;
+      result$data['ownerKeyChangeAggregate'] =
+          l$ownerKeyChangeAggregate?.toJson();
+    }
+    if (_$data.containsKey('smithCertIssued')) {
+      final l$smithCertIssued = smithCertIssued;
+      result$data['smithCertIssued'] = l$smithCertIssued?.toJson();
+    }
+    if (_$data.containsKey('smithCertIssuedAggregate')) {
+      final l$smithCertIssuedAggregate = smithCertIssuedAggregate;
+      result$data['smithCertIssuedAggregate'] =
+          l$smithCertIssuedAggregate?.toJson();
+    }
+    if (_$data.containsKey('smithCertReceived')) {
+      final l$smithCertReceived = smithCertReceived;
+      result$data['smithCertReceived'] = l$smithCertReceived?.toJson();
+    }
+    if (_$data.containsKey('smithCertReceivedAggregate')) {
+      final l$smithCertReceivedAggregate = smithCertReceivedAggregate;
+      result$data['smithCertReceivedAggregate'] =
+          l$smithCertReceivedAggregate?.toJson();
+    }
+    if (_$data.containsKey('smithStatus')) {
+      final l$smithStatus = smithStatus;
+      result$data['smithStatus'] = l$smithStatus?.toJson();
+    }
+    if (_$data.containsKey('status')) {
+      final l$status = status;
+      result$data['status'] = l$status?.toJson();
+    }
+    if (_$data.containsKey('udHistory')) {
+      final l$udHistory = udHistory;
+      result$data['udHistory'] = l$udHistory?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$IdentityBoolExp<Input$IdentityBoolExp> get copyWith =>
+      CopyWith$Input$IdentityBoolExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$IdentityBoolExp) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$account = account;
+    final lOther$account = other.account;
+    if (_$data.containsKey('account') != other._$data.containsKey('account')) {
+      return false;
+    }
+    if (l$account != lOther$account) {
+      return false;
+    }
+    final l$accountId = accountId;
+    final lOther$accountId = other.accountId;
+    if (_$data.containsKey('accountId') !=
+        other._$data.containsKey('accountId')) {
+      return false;
+    }
+    if (l$accountId != lOther$accountId) {
+      return false;
+    }
+    final l$certIssued = certIssued;
+    final lOther$certIssued = other.certIssued;
+    if (_$data.containsKey('certIssued') !=
+        other._$data.containsKey('certIssued')) {
+      return false;
+    }
+    if (l$certIssued != lOther$certIssued) {
+      return false;
+    }
+    final l$certIssuedAggregate = certIssuedAggregate;
+    final lOther$certIssuedAggregate = other.certIssuedAggregate;
+    if (_$data.containsKey('certIssuedAggregate') !=
+        other._$data.containsKey('certIssuedAggregate')) {
+      return false;
+    }
+    if (l$certIssuedAggregate != lOther$certIssuedAggregate) {
+      return false;
+    }
+    final l$certReceived = certReceived;
+    final lOther$certReceived = other.certReceived;
+    if (_$data.containsKey('certReceived') !=
+        other._$data.containsKey('certReceived')) {
+      return false;
+    }
+    if (l$certReceived != lOther$certReceived) {
+      return false;
+    }
+    final l$certReceivedAggregate = certReceivedAggregate;
+    final lOther$certReceivedAggregate = other.certReceivedAggregate;
+    if (_$data.containsKey('certReceivedAggregate') !=
+        other._$data.containsKey('certReceivedAggregate')) {
+      return false;
+    }
+    if (l$certReceivedAggregate != lOther$certReceivedAggregate) {
+      return false;
+    }
+    final l$createdIn = createdIn;
+    final lOther$createdIn = other.createdIn;
+    if (_$data.containsKey('createdIn') !=
+        other._$data.containsKey('createdIn')) {
+      return false;
+    }
+    if (l$createdIn != lOther$createdIn) {
+      return false;
+    }
+    final l$createdInId = createdInId;
+    final lOther$createdInId = other.createdInId;
+    if (_$data.containsKey('createdInId') !=
+        other._$data.containsKey('createdInId')) {
+      return false;
+    }
+    if (l$createdInId != lOther$createdInId) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$expireOn = expireOn;
+    final lOther$expireOn = other.expireOn;
+    if (_$data.containsKey('expireOn') !=
+        other._$data.containsKey('expireOn')) {
+      return false;
+    }
+    if (l$expireOn != lOther$expireOn) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$isMember = isMember;
+    final lOther$isMember = other.isMember;
+    if (_$data.containsKey('isMember') !=
+        other._$data.containsKey('isMember')) {
+      return false;
+    }
+    if (l$isMember != lOther$isMember) {
+      return false;
+    }
+    final l$lastChangeOn = lastChangeOn;
+    final lOther$lastChangeOn = other.lastChangeOn;
+    if (_$data.containsKey('lastChangeOn') !=
+        other._$data.containsKey('lastChangeOn')) {
+      return false;
+    }
+    if (l$lastChangeOn != lOther$lastChangeOn) {
+      return false;
+    }
+    final l$linkedAccount = linkedAccount;
+    final lOther$linkedAccount = other.linkedAccount;
+    if (_$data.containsKey('linkedAccount') !=
+        other._$data.containsKey('linkedAccount')) {
+      return false;
+    }
+    if (l$linkedAccount != lOther$linkedAccount) {
+      return false;
+    }
+    final l$linkedAccountAggregate = linkedAccountAggregate;
+    final lOther$linkedAccountAggregate = other.linkedAccountAggregate;
+    if (_$data.containsKey('linkedAccountAggregate') !=
+        other._$data.containsKey('linkedAccountAggregate')) {
+      return false;
+    }
+    if (l$linkedAccountAggregate != lOther$linkedAccountAggregate) {
+      return false;
+    }
+    final l$membershipHistory = membershipHistory;
+    final lOther$membershipHistory = other.membershipHistory;
+    if (_$data.containsKey('membershipHistory') !=
+        other._$data.containsKey('membershipHistory')) {
+      return false;
+    }
+    if (l$membershipHistory != lOther$membershipHistory) {
+      return false;
+    }
+    final l$membershipHistoryAggregate = membershipHistoryAggregate;
+    final lOther$membershipHistoryAggregate = other.membershipHistoryAggregate;
+    if (_$data.containsKey('membershipHistoryAggregate') !=
+        other._$data.containsKey('membershipHistoryAggregate')) {
+      return false;
+    }
+    if (l$membershipHistoryAggregate != lOther$membershipHistoryAggregate) {
+      return false;
+    }
+    final l$name = name;
+    final lOther$name = other.name;
+    if (_$data.containsKey('name') != other._$data.containsKey('name')) {
+      return false;
+    }
+    if (l$name != lOther$name) {
+      return false;
+    }
+    final l$ownerKeyChange = ownerKeyChange;
+    final lOther$ownerKeyChange = other.ownerKeyChange;
+    if (_$data.containsKey('ownerKeyChange') !=
+        other._$data.containsKey('ownerKeyChange')) {
+      return false;
+    }
+    if (l$ownerKeyChange != lOther$ownerKeyChange) {
+      return false;
+    }
+    final l$ownerKeyChangeAggregate = ownerKeyChangeAggregate;
+    final lOther$ownerKeyChangeAggregate = other.ownerKeyChangeAggregate;
+    if (_$data.containsKey('ownerKeyChangeAggregate') !=
+        other._$data.containsKey('ownerKeyChangeAggregate')) {
+      return false;
+    }
+    if (l$ownerKeyChangeAggregate != lOther$ownerKeyChangeAggregate) {
+      return false;
+    }
+    final l$smithCertIssued = smithCertIssued;
+    final lOther$smithCertIssued = other.smithCertIssued;
+    if (_$data.containsKey('smithCertIssued') !=
+        other._$data.containsKey('smithCertIssued')) {
+      return false;
+    }
+    if (l$smithCertIssued != lOther$smithCertIssued) {
+      return false;
+    }
+    final l$smithCertIssuedAggregate = smithCertIssuedAggregate;
+    final lOther$smithCertIssuedAggregate = other.smithCertIssuedAggregate;
+    if (_$data.containsKey('smithCertIssuedAggregate') !=
+        other._$data.containsKey('smithCertIssuedAggregate')) {
+      return false;
+    }
+    if (l$smithCertIssuedAggregate != lOther$smithCertIssuedAggregate) {
+      return false;
+    }
+    final l$smithCertReceived = smithCertReceived;
+    final lOther$smithCertReceived = other.smithCertReceived;
+    if (_$data.containsKey('smithCertReceived') !=
+        other._$data.containsKey('smithCertReceived')) {
+      return false;
+    }
+    if (l$smithCertReceived != lOther$smithCertReceived) {
+      return false;
+    }
+    final l$smithCertReceivedAggregate = smithCertReceivedAggregate;
+    final lOther$smithCertReceivedAggregate = other.smithCertReceivedAggregate;
+    if (_$data.containsKey('smithCertReceivedAggregate') !=
+        other._$data.containsKey('smithCertReceivedAggregate')) {
+      return false;
+    }
+    if (l$smithCertReceivedAggregate != lOther$smithCertReceivedAggregate) {
+      return false;
+    }
+    final l$smithStatus = smithStatus;
+    final lOther$smithStatus = other.smithStatus;
+    if (_$data.containsKey('smithStatus') !=
+        other._$data.containsKey('smithStatus')) {
+      return false;
+    }
+    if (l$smithStatus != lOther$smithStatus) {
+      return false;
+    }
+    final l$status = status;
+    final lOther$status = other.status;
+    if (_$data.containsKey('status') != other._$data.containsKey('status')) {
+      return false;
+    }
+    if (l$status != lOther$status) {
+      return false;
+    }
+    final l$udHistory = udHistory;
+    final lOther$udHistory = other.udHistory;
+    if (_$data.containsKey('udHistory') !=
+        other._$data.containsKey('udHistory')) {
+      return false;
+    }
+    if (l$udHistory != lOther$udHistory) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$account = account;
+    final l$accountId = accountId;
+    final l$certIssued = certIssued;
+    final l$certIssuedAggregate = certIssuedAggregate;
+    final l$certReceived = certReceived;
+    final l$certReceivedAggregate = certReceivedAggregate;
+    final l$createdIn = createdIn;
+    final l$createdInId = createdInId;
+    final l$createdOn = createdOn;
+    final l$expireOn = expireOn;
+    final l$id = id;
+    final l$index = index;
+    final l$isMember = isMember;
+    final l$lastChangeOn = lastChangeOn;
+    final l$linkedAccount = linkedAccount;
+    final l$linkedAccountAggregate = linkedAccountAggregate;
+    final l$membershipHistory = membershipHistory;
+    final l$membershipHistoryAggregate = membershipHistoryAggregate;
+    final l$name = name;
+    final l$ownerKeyChange = ownerKeyChange;
+    final l$ownerKeyChangeAggregate = ownerKeyChangeAggregate;
+    final l$smithCertIssued = smithCertIssued;
+    final l$smithCertIssuedAggregate = smithCertIssuedAggregate;
+    final l$smithCertReceived = smithCertReceived;
+    final l$smithCertReceivedAggregate = smithCertReceivedAggregate;
+    final l$smithStatus = smithStatus;
+    final l$status = status;
+    final l$udHistory = udHistory;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('account') ? l$account : const {},
+      _$data.containsKey('accountId') ? l$accountId : const {},
+      _$data.containsKey('certIssued') ? l$certIssued : const {},
+      _$data.containsKey('certIssuedAggregate')
+          ? l$certIssuedAggregate
+          : const {},
+      _$data.containsKey('certReceived') ? l$certReceived : const {},
+      _$data.containsKey('certReceivedAggregate')
+          ? l$certReceivedAggregate
+          : const {},
+      _$data.containsKey('createdIn') ? l$createdIn : const {},
+      _$data.containsKey('createdInId') ? l$createdInId : const {},
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('expireOn') ? l$expireOn : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('isMember') ? l$isMember : const {},
+      _$data.containsKey('lastChangeOn') ? l$lastChangeOn : const {},
+      _$data.containsKey('linkedAccount') ? l$linkedAccount : const {},
+      _$data.containsKey('linkedAccountAggregate')
+          ? l$linkedAccountAggregate
+          : const {},
+      _$data.containsKey('membershipHistory') ? l$membershipHistory : const {},
+      _$data.containsKey('membershipHistoryAggregate')
+          ? l$membershipHistoryAggregate
+          : const {},
+      _$data.containsKey('name') ? l$name : const {},
+      _$data.containsKey('ownerKeyChange') ? l$ownerKeyChange : const {},
+      _$data.containsKey('ownerKeyChangeAggregate')
+          ? l$ownerKeyChangeAggregate
+          : const {},
+      _$data.containsKey('smithCertIssued') ? l$smithCertIssued : const {},
+      _$data.containsKey('smithCertIssuedAggregate')
+          ? l$smithCertIssuedAggregate
+          : const {},
+      _$data.containsKey('smithCertReceived') ? l$smithCertReceived : const {},
+      _$data.containsKey('smithCertReceivedAggregate')
+          ? l$smithCertReceivedAggregate
+          : const {},
+      _$data.containsKey('smithStatus') ? l$smithStatus : const {},
+      _$data.containsKey('status') ? l$status : const {},
+      _$data.containsKey('udHistory') ? l$udHistory : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$IdentityBoolExp<TRes> {
+  factory CopyWith$Input$IdentityBoolExp(
+    Input$IdentityBoolExp instance,
+    TRes Function(Input$IdentityBoolExp) then,
+  ) = _CopyWithImpl$Input$IdentityBoolExp;
+
+  factory CopyWith$Input$IdentityBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$IdentityBoolExp;
+
+  TRes call({
+    List<Input$IdentityBoolExp>? $_and,
+    Input$IdentityBoolExp? $_not,
+    List<Input$IdentityBoolExp>? $_or,
+    Input$AccountBoolExp? account,
+    Input$StringComparisonExp? accountId,
+    Input$CertBoolExp? certIssued,
+    Input$CertAggregateBoolExp? certIssuedAggregate,
+    Input$CertBoolExp? certReceived,
+    Input$CertAggregateBoolExp? certReceivedAggregate,
+    Input$EventBoolExp? createdIn,
+    Input$StringComparisonExp? createdInId,
+    Input$IntComparisonExp? createdOn,
+    Input$IntComparisonExp? expireOn,
+    Input$StringComparisonExp? id,
+    Input$IntComparisonExp? index,
+    Input$BooleanComparisonExp? isMember,
+    Input$IntComparisonExp? lastChangeOn,
+    Input$AccountBoolExp? linkedAccount,
+    Input$AccountAggregateBoolExp? linkedAccountAggregate,
+    Input$MembershipEventBoolExp? membershipHistory,
+    Input$MembershipEventAggregateBoolExp? membershipHistoryAggregate,
+    Input$StringComparisonExp? name,
+    Input$ChangeOwnerKeyBoolExp? ownerKeyChange,
+    Input$ChangeOwnerKeyAggregateBoolExp? ownerKeyChangeAggregate,
+    Input$SmithCertBoolExp? smithCertIssued,
+    Input$SmithCertAggregateBoolExp? smithCertIssuedAggregate,
+    Input$SmithCertBoolExp? smithCertReceived,
+    Input$SmithCertAggregateBoolExp? smithCertReceivedAggregate,
+    Input$SmithStatusEnumComparisonExp? smithStatus,
+    Input$IdentityStatusEnumComparisonExp? status,
+    Input$UdHistoryBoolExp? udHistory,
+  });
+  TRes $_and(
+      Iterable<Input$IdentityBoolExp>? Function(
+              Iterable<CopyWith$Input$IdentityBoolExp<Input$IdentityBoolExp>>?)
+          _fn);
+  CopyWith$Input$IdentityBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$IdentityBoolExp>? Function(
+              Iterable<CopyWith$Input$IdentityBoolExp<Input$IdentityBoolExp>>?)
+          _fn);
+  CopyWith$Input$AccountBoolExp<TRes> get account;
+  CopyWith$Input$StringComparisonExp<TRes> get accountId;
+  CopyWith$Input$CertBoolExp<TRes> get certIssued;
+  CopyWith$Input$CertAggregateBoolExp<TRes> get certIssuedAggregate;
+  CopyWith$Input$CertBoolExp<TRes> get certReceived;
+  CopyWith$Input$CertAggregateBoolExp<TRes> get certReceivedAggregate;
+  CopyWith$Input$EventBoolExp<TRes> get createdIn;
+  CopyWith$Input$StringComparisonExp<TRes> get createdInId;
+  CopyWith$Input$IntComparisonExp<TRes> get createdOn;
+  CopyWith$Input$IntComparisonExp<TRes> get expireOn;
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+  CopyWith$Input$IntComparisonExp<TRes> get index;
+  CopyWith$Input$BooleanComparisonExp<TRes> get isMember;
+  CopyWith$Input$IntComparisonExp<TRes> get lastChangeOn;
+  CopyWith$Input$AccountBoolExp<TRes> get linkedAccount;
+  CopyWith$Input$AccountAggregateBoolExp<TRes> get linkedAccountAggregate;
+  CopyWith$Input$MembershipEventBoolExp<TRes> get membershipHistory;
+  CopyWith$Input$MembershipEventAggregateBoolExp<TRes>
+      get membershipHistoryAggregate;
+  CopyWith$Input$StringComparisonExp<TRes> get name;
+  CopyWith$Input$ChangeOwnerKeyBoolExp<TRes> get ownerKeyChange;
+  CopyWith$Input$ChangeOwnerKeyAggregateBoolExp<TRes>
+      get ownerKeyChangeAggregate;
+  CopyWith$Input$SmithCertBoolExp<TRes> get smithCertIssued;
+  CopyWith$Input$SmithCertAggregateBoolExp<TRes> get smithCertIssuedAggregate;
+  CopyWith$Input$SmithCertBoolExp<TRes> get smithCertReceived;
+  CopyWith$Input$SmithCertAggregateBoolExp<TRes> get smithCertReceivedAggregate;
+  CopyWith$Input$SmithStatusEnumComparisonExp<TRes> get smithStatus;
+  CopyWith$Input$IdentityStatusEnumComparisonExp<TRes> get status;
+  CopyWith$Input$UdHistoryBoolExp<TRes> get udHistory;
+}
+
+class _CopyWithImpl$Input$IdentityBoolExp<TRes>
+    implements CopyWith$Input$IdentityBoolExp<TRes> {
+  _CopyWithImpl$Input$IdentityBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$IdentityBoolExp _instance;
+
+  final TRes Function(Input$IdentityBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? account = _undefined,
+    Object? accountId = _undefined,
+    Object? certIssued = _undefined,
+    Object? certIssuedAggregate = _undefined,
+    Object? certReceived = _undefined,
+    Object? certReceivedAggregate = _undefined,
+    Object? createdIn = _undefined,
+    Object? createdInId = _undefined,
+    Object? createdOn = _undefined,
+    Object? expireOn = _undefined,
+    Object? id = _undefined,
+    Object? index = _undefined,
+    Object? isMember = _undefined,
+    Object? lastChangeOn = _undefined,
+    Object? linkedAccount = _undefined,
+    Object? linkedAccountAggregate = _undefined,
+    Object? membershipHistory = _undefined,
+    Object? membershipHistoryAggregate = _undefined,
+    Object? name = _undefined,
+    Object? ownerKeyChange = _undefined,
+    Object? ownerKeyChangeAggregate = _undefined,
+    Object? smithCertIssued = _undefined,
+    Object? smithCertIssuedAggregate = _undefined,
+    Object? smithCertReceived = _undefined,
+    Object? smithCertReceivedAggregate = _undefined,
+    Object? smithStatus = _undefined,
+    Object? status = _undefined,
+    Object? udHistory = _undefined,
+  }) =>
+      _then(Input$IdentityBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined)
+          '_and': ($_and as List<Input$IdentityBoolExp>?),
+        if ($_not != _undefined) '_not': ($_not as Input$IdentityBoolExp?),
+        if ($_or != _undefined) '_or': ($_or as List<Input$IdentityBoolExp>?),
+        if (account != _undefined)
+          'account': (account as Input$AccountBoolExp?),
+        if (accountId != _undefined)
+          'accountId': (accountId as Input$StringComparisonExp?),
+        if (certIssued != _undefined)
+          'certIssued': (certIssued as Input$CertBoolExp?),
+        if (certIssuedAggregate != _undefined)
+          'certIssuedAggregate':
+              (certIssuedAggregate as Input$CertAggregateBoolExp?),
+        if (certReceived != _undefined)
+          'certReceived': (certReceived as Input$CertBoolExp?),
+        if (certReceivedAggregate != _undefined)
+          'certReceivedAggregate':
+              (certReceivedAggregate as Input$CertAggregateBoolExp?),
+        if (createdIn != _undefined)
+          'createdIn': (createdIn as Input$EventBoolExp?),
+        if (createdInId != _undefined)
+          'createdInId': (createdInId as Input$StringComparisonExp?),
+        if (createdOn != _undefined)
+          'createdOn': (createdOn as Input$IntComparisonExp?),
+        if (expireOn != _undefined)
+          'expireOn': (expireOn as Input$IntComparisonExp?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+        if (index != _undefined) 'index': (index as Input$IntComparisonExp?),
+        if (isMember != _undefined)
+          'isMember': (isMember as Input$BooleanComparisonExp?),
+        if (lastChangeOn != _undefined)
+          'lastChangeOn': (lastChangeOn as Input$IntComparisonExp?),
+        if (linkedAccount != _undefined)
+          'linkedAccount': (linkedAccount as Input$AccountBoolExp?),
+        if (linkedAccountAggregate != _undefined)
+          'linkedAccountAggregate':
+              (linkedAccountAggregate as Input$AccountAggregateBoolExp?),
+        if (membershipHistory != _undefined)
+          'membershipHistory':
+              (membershipHistory as Input$MembershipEventBoolExp?),
+        if (membershipHistoryAggregate != _undefined)
+          'membershipHistoryAggregate': (membershipHistoryAggregate
+              as Input$MembershipEventAggregateBoolExp?),
+        if (name != _undefined) 'name': (name as Input$StringComparisonExp?),
+        if (ownerKeyChange != _undefined)
+          'ownerKeyChange': (ownerKeyChange as Input$ChangeOwnerKeyBoolExp?),
+        if (ownerKeyChangeAggregate != _undefined)
+          'ownerKeyChangeAggregate': (ownerKeyChangeAggregate
+              as Input$ChangeOwnerKeyAggregateBoolExp?),
+        if (smithCertIssued != _undefined)
+          'smithCertIssued': (smithCertIssued as Input$SmithCertBoolExp?),
+        if (smithCertIssuedAggregate != _undefined)
+          'smithCertIssuedAggregate':
+              (smithCertIssuedAggregate as Input$SmithCertAggregateBoolExp?),
+        if (smithCertReceived != _undefined)
+          'smithCertReceived': (smithCertReceived as Input$SmithCertBoolExp?),
+        if (smithCertReceivedAggregate != _undefined)
+          'smithCertReceivedAggregate':
+              (smithCertReceivedAggregate as Input$SmithCertAggregateBoolExp?),
+        if (smithStatus != _undefined)
+          'smithStatus': (smithStatus as Input$SmithStatusEnumComparisonExp?),
+        if (status != _undefined)
+          'status': (status as Input$IdentityStatusEnumComparisonExp?),
+        if (udHistory != _undefined)
+          'udHistory': (udHistory as Input$UdHistoryBoolExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$IdentityBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$IdentityBoolExp<Input$IdentityBoolExp>>?)
+              _fn) =>
+      call(
+          $_and: _fn(_instance.$_and?.map((e) => CopyWith$Input$IdentityBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$IdentityBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$IdentityBoolExp.stub(_then(_instance))
+        : CopyWith$Input$IdentityBoolExp(local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$IdentityBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$IdentityBoolExp<Input$IdentityBoolExp>>?)
+              _fn) =>
+      call(
+          $_or: _fn(_instance.$_or?.map((e) => CopyWith$Input$IdentityBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$AccountBoolExp<TRes> get account {
+    final local$account = _instance.account;
+    return local$account == null
+        ? CopyWith$Input$AccountBoolExp.stub(_then(_instance))
+        : CopyWith$Input$AccountBoolExp(local$account, (e) => call(account: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get accountId {
+    final local$accountId = _instance.accountId;
+    return local$accountId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$accountId, (e) => call(accountId: e));
+  }
+
+  CopyWith$Input$CertBoolExp<TRes> get certIssued {
+    final local$certIssued = _instance.certIssued;
+    return local$certIssued == null
+        ? CopyWith$Input$CertBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CertBoolExp(
+            local$certIssued, (e) => call(certIssued: e));
+  }
+
+  CopyWith$Input$CertAggregateBoolExp<TRes> get certIssuedAggregate {
+    final local$certIssuedAggregate = _instance.certIssuedAggregate;
+    return local$certIssuedAggregate == null
+        ? CopyWith$Input$CertAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CertAggregateBoolExp(
+            local$certIssuedAggregate, (e) => call(certIssuedAggregate: e));
+  }
+
+  CopyWith$Input$CertBoolExp<TRes> get certReceived {
+    final local$certReceived = _instance.certReceived;
+    return local$certReceived == null
+        ? CopyWith$Input$CertBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CertBoolExp(
+            local$certReceived, (e) => call(certReceived: e));
+  }
+
+  CopyWith$Input$CertAggregateBoolExp<TRes> get certReceivedAggregate {
+    final local$certReceivedAggregate = _instance.certReceivedAggregate;
+    return local$certReceivedAggregate == null
+        ? CopyWith$Input$CertAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$CertAggregateBoolExp(
+            local$certReceivedAggregate, (e) => call(certReceivedAggregate: e));
+  }
+
+  CopyWith$Input$EventBoolExp<TRes> get createdIn {
+    final local$createdIn = _instance.createdIn;
+    return local$createdIn == null
+        ? CopyWith$Input$EventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$EventBoolExp(
+            local$createdIn, (e) => call(createdIn: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get createdInId {
+    final local$createdInId = _instance.createdInId;
+    return local$createdInId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$createdInId, (e) => call(createdInId: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get createdOn {
+    final local$createdOn = _instance.createdOn;
+    return local$createdOn == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$createdOn, (e) => call(createdOn: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get expireOn {
+    final local$expireOn = _instance.expireOn;
+    return local$expireOn == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$expireOn, (e) => call(expireOn: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get index {
+    final local$index = _instance.index;
+    return local$index == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(local$index, (e) => call(index: e));
+  }
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get isMember {
+    final local$isMember = _instance.isMember;
+    return local$isMember == null
+        ? CopyWith$Input$BooleanComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$BooleanComparisonExp(
+            local$isMember, (e) => call(isMember: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get lastChangeOn {
+    final local$lastChangeOn = _instance.lastChangeOn;
+    return local$lastChangeOn == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$lastChangeOn, (e) => call(lastChangeOn: e));
+  }
+
+  CopyWith$Input$AccountBoolExp<TRes> get linkedAccount {
+    final local$linkedAccount = _instance.linkedAccount;
+    return local$linkedAccount == null
+        ? CopyWith$Input$AccountBoolExp.stub(_then(_instance))
+        : CopyWith$Input$AccountBoolExp(
+            local$linkedAccount, (e) => call(linkedAccount: e));
+  }
+
+  CopyWith$Input$AccountAggregateBoolExp<TRes> get linkedAccountAggregate {
+    final local$linkedAccountAggregate = _instance.linkedAccountAggregate;
+    return local$linkedAccountAggregate == null
+        ? CopyWith$Input$AccountAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$AccountAggregateBoolExp(local$linkedAccountAggregate,
+            (e) => call(linkedAccountAggregate: e));
+  }
+
+  CopyWith$Input$MembershipEventBoolExp<TRes> get membershipHistory {
+    final local$membershipHistory = _instance.membershipHistory;
+    return local$membershipHistory == null
+        ? CopyWith$Input$MembershipEventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$MembershipEventBoolExp(
+            local$membershipHistory, (e) => call(membershipHistory: e));
+  }
+
+  CopyWith$Input$MembershipEventAggregateBoolExp<TRes>
+      get membershipHistoryAggregate {
+    final local$membershipHistoryAggregate =
+        _instance.membershipHistoryAggregate;
+    return local$membershipHistoryAggregate == null
+        ? CopyWith$Input$MembershipEventAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$MembershipEventAggregateBoolExp(
+            local$membershipHistoryAggregate,
+            (e) => call(membershipHistoryAggregate: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get name {
+    final local$name = _instance.name;
+    return local$name == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$name, (e) => call(name: e));
+  }
+
+  CopyWith$Input$ChangeOwnerKeyBoolExp<TRes> get ownerKeyChange {
+    final local$ownerKeyChange = _instance.ownerKeyChange;
+    return local$ownerKeyChange == null
+        ? CopyWith$Input$ChangeOwnerKeyBoolExp.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyBoolExp(
+            local$ownerKeyChange, (e) => call(ownerKeyChange: e));
+  }
+
+  CopyWith$Input$ChangeOwnerKeyAggregateBoolExp<TRes>
+      get ownerKeyChangeAggregate {
+    final local$ownerKeyChangeAggregate = _instance.ownerKeyChangeAggregate;
+    return local$ownerKeyChangeAggregate == null
+        ? CopyWith$Input$ChangeOwnerKeyAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyAggregateBoolExp(
+            local$ownerKeyChangeAggregate,
+            (e) => call(ownerKeyChangeAggregate: e));
+  }
+
+  CopyWith$Input$SmithCertBoolExp<TRes> get smithCertIssued {
+    final local$smithCertIssued = _instance.smithCertIssued;
+    return local$smithCertIssued == null
+        ? CopyWith$Input$SmithCertBoolExp.stub(_then(_instance))
+        : CopyWith$Input$SmithCertBoolExp(
+            local$smithCertIssued, (e) => call(smithCertIssued: e));
+  }
+
+  CopyWith$Input$SmithCertAggregateBoolExp<TRes> get smithCertIssuedAggregate {
+    final local$smithCertIssuedAggregate = _instance.smithCertIssuedAggregate;
+    return local$smithCertIssuedAggregate == null
+        ? CopyWith$Input$SmithCertAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$SmithCertAggregateBoolExp(
+            local$smithCertIssuedAggregate,
+            (e) => call(smithCertIssuedAggregate: e));
+  }
+
+  CopyWith$Input$SmithCertBoolExp<TRes> get smithCertReceived {
+    final local$smithCertReceived = _instance.smithCertReceived;
+    return local$smithCertReceived == null
+        ? CopyWith$Input$SmithCertBoolExp.stub(_then(_instance))
+        : CopyWith$Input$SmithCertBoolExp(
+            local$smithCertReceived, (e) => call(smithCertReceived: e));
+  }
+
+  CopyWith$Input$SmithCertAggregateBoolExp<TRes>
+      get smithCertReceivedAggregate {
+    final local$smithCertReceivedAggregate =
+        _instance.smithCertReceivedAggregate;
+    return local$smithCertReceivedAggregate == null
+        ? CopyWith$Input$SmithCertAggregateBoolExp.stub(_then(_instance))
+        : CopyWith$Input$SmithCertAggregateBoolExp(
+            local$smithCertReceivedAggregate,
+            (e) => call(smithCertReceivedAggregate: e));
+  }
+
+  CopyWith$Input$SmithStatusEnumComparisonExp<TRes> get smithStatus {
+    final local$smithStatus = _instance.smithStatus;
+    return local$smithStatus == null
+        ? CopyWith$Input$SmithStatusEnumComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$SmithStatusEnumComparisonExp(
+            local$smithStatus, (e) => call(smithStatus: e));
+  }
+
+  CopyWith$Input$IdentityStatusEnumComparisonExp<TRes> get status {
+    final local$status = _instance.status;
+    return local$status == null
+        ? CopyWith$Input$IdentityStatusEnumComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IdentityStatusEnumComparisonExp(
+            local$status, (e) => call(status: e));
+  }
+
+  CopyWith$Input$UdHistoryBoolExp<TRes> get udHistory {
+    final local$udHistory = _instance.udHistory;
+    return local$udHistory == null
+        ? CopyWith$Input$UdHistoryBoolExp.stub(_then(_instance))
+        : CopyWith$Input$UdHistoryBoolExp(
+            local$udHistory, (e) => call(udHistory: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$IdentityBoolExp<TRes>
+    implements CopyWith$Input$IdentityBoolExp<TRes> {
+  _CopyWithStubImpl$Input$IdentityBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$IdentityBoolExp>? $_and,
+    Input$IdentityBoolExp? $_not,
+    List<Input$IdentityBoolExp>? $_or,
+    Input$AccountBoolExp? account,
+    Input$StringComparisonExp? accountId,
+    Input$CertBoolExp? certIssued,
+    Input$CertAggregateBoolExp? certIssuedAggregate,
+    Input$CertBoolExp? certReceived,
+    Input$CertAggregateBoolExp? certReceivedAggregate,
+    Input$EventBoolExp? createdIn,
+    Input$StringComparisonExp? createdInId,
+    Input$IntComparisonExp? createdOn,
+    Input$IntComparisonExp? expireOn,
+    Input$StringComparisonExp? id,
+    Input$IntComparisonExp? index,
+    Input$BooleanComparisonExp? isMember,
+    Input$IntComparisonExp? lastChangeOn,
+    Input$AccountBoolExp? linkedAccount,
+    Input$AccountAggregateBoolExp? linkedAccountAggregate,
+    Input$MembershipEventBoolExp? membershipHistory,
+    Input$MembershipEventAggregateBoolExp? membershipHistoryAggregate,
+    Input$StringComparisonExp? name,
+    Input$ChangeOwnerKeyBoolExp? ownerKeyChange,
+    Input$ChangeOwnerKeyAggregateBoolExp? ownerKeyChangeAggregate,
+    Input$SmithCertBoolExp? smithCertIssued,
+    Input$SmithCertAggregateBoolExp? smithCertIssuedAggregate,
+    Input$SmithCertBoolExp? smithCertReceived,
+    Input$SmithCertAggregateBoolExp? smithCertReceivedAggregate,
+    Input$SmithStatusEnumComparisonExp? smithStatus,
+    Input$IdentityStatusEnumComparisonExp? status,
+    Input$UdHistoryBoolExp? udHistory,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$IdentityBoolExp<TRes> get $_not =>
+      CopyWith$Input$IdentityBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$AccountBoolExp<TRes> get account =>
+      CopyWith$Input$AccountBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get accountId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$CertBoolExp<TRes> get certIssued =>
+      CopyWith$Input$CertBoolExp.stub(_res);
+
+  CopyWith$Input$CertAggregateBoolExp<TRes> get certIssuedAggregate =>
+      CopyWith$Input$CertAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$CertBoolExp<TRes> get certReceived =>
+      CopyWith$Input$CertBoolExp.stub(_res);
+
+  CopyWith$Input$CertAggregateBoolExp<TRes> get certReceivedAggregate =>
+      CopyWith$Input$CertAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$EventBoolExp<TRes> get createdIn =>
+      CopyWith$Input$EventBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get createdInId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get createdOn =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get expireOn =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get index =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$BooleanComparisonExp<TRes> get isMember =>
+      CopyWith$Input$BooleanComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get lastChangeOn =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$AccountBoolExp<TRes> get linkedAccount =>
+      CopyWith$Input$AccountBoolExp.stub(_res);
+
+  CopyWith$Input$AccountAggregateBoolExp<TRes> get linkedAccountAggregate =>
+      CopyWith$Input$AccountAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$MembershipEventBoolExp<TRes> get membershipHistory =>
+      CopyWith$Input$MembershipEventBoolExp.stub(_res);
+
+  CopyWith$Input$MembershipEventAggregateBoolExp<TRes>
+      get membershipHistoryAggregate =>
+          CopyWith$Input$MembershipEventAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get name =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$ChangeOwnerKeyBoolExp<TRes> get ownerKeyChange =>
+      CopyWith$Input$ChangeOwnerKeyBoolExp.stub(_res);
+
+  CopyWith$Input$ChangeOwnerKeyAggregateBoolExp<TRes>
+      get ownerKeyChangeAggregate =>
+          CopyWith$Input$ChangeOwnerKeyAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$SmithCertBoolExp<TRes> get smithCertIssued =>
+      CopyWith$Input$SmithCertBoolExp.stub(_res);
+
+  CopyWith$Input$SmithCertAggregateBoolExp<TRes> get smithCertIssuedAggregate =>
+      CopyWith$Input$SmithCertAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$SmithCertBoolExp<TRes> get smithCertReceived =>
+      CopyWith$Input$SmithCertBoolExp.stub(_res);
+
+  CopyWith$Input$SmithCertAggregateBoolExp<TRes>
+      get smithCertReceivedAggregate =>
+          CopyWith$Input$SmithCertAggregateBoolExp.stub(_res);
+
+  CopyWith$Input$SmithStatusEnumComparisonExp<TRes> get smithStatus =>
+      CopyWith$Input$SmithStatusEnumComparisonExp.stub(_res);
+
+  CopyWith$Input$IdentityStatusEnumComparisonExp<TRes> get status =>
+      CopyWith$Input$IdentityStatusEnumComparisonExp.stub(_res);
+
+  CopyWith$Input$UdHistoryBoolExp<TRes> get udHistory =>
+      CopyWith$Input$UdHistoryBoolExp.stub(_res);
+}
+
+class Input$IdentityOrderBy {
+  factory Input$IdentityOrderBy({
+    Input$AccountOrderBy? account,
+    Enum$OrderBy? accountId,
+    Input$CertAggregateOrderBy? certIssuedAggregate,
+    Input$CertAggregateOrderBy? certReceivedAggregate,
+    Input$EventOrderBy? createdIn,
+    Enum$OrderBy? createdInId,
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? isMember,
+    Enum$OrderBy? lastChangeOn,
+    Input$AccountAggregateOrderBy? linkedAccountAggregate,
+    Input$MembershipEventAggregateOrderBy? membershipHistoryAggregate,
+    Enum$OrderBy? name,
+    Input$ChangeOwnerKeyAggregateOrderBy? ownerKeyChangeAggregate,
+    Input$SmithCertAggregateOrderBy? smithCertIssuedAggregate,
+    Input$SmithCertAggregateOrderBy? smithCertReceivedAggregate,
+    Enum$OrderBy? smithStatus,
+    Enum$OrderBy? status,
+    Input$UdHistoryAggregateOrderBy? udHistoryAggregate,
+  }) =>
+      Input$IdentityOrderBy._({
+        if (account != null) r'account': account,
+        if (accountId != null) r'accountId': accountId,
+        if (certIssuedAggregate != null)
+          r'certIssuedAggregate': certIssuedAggregate,
+        if (certReceivedAggregate != null)
+          r'certReceivedAggregate': certReceivedAggregate,
+        if (createdIn != null) r'createdIn': createdIn,
+        if (createdInId != null) r'createdInId': createdInId,
+        if (createdOn != null) r'createdOn': createdOn,
+        if (expireOn != null) r'expireOn': expireOn,
+        if (id != null) r'id': id,
+        if (index != null) r'index': index,
+        if (isMember != null) r'isMember': isMember,
+        if (lastChangeOn != null) r'lastChangeOn': lastChangeOn,
+        if (linkedAccountAggregate != null)
+          r'linkedAccountAggregate': linkedAccountAggregate,
+        if (membershipHistoryAggregate != null)
+          r'membershipHistoryAggregate': membershipHistoryAggregate,
+        if (name != null) r'name': name,
+        if (ownerKeyChangeAggregate != null)
+          r'ownerKeyChangeAggregate': ownerKeyChangeAggregate,
+        if (smithCertIssuedAggregate != null)
+          r'smithCertIssuedAggregate': smithCertIssuedAggregate,
+        if (smithCertReceivedAggregate != null)
+          r'smithCertReceivedAggregate': smithCertReceivedAggregate,
+        if (smithStatus != null) r'smithStatus': smithStatus,
+        if (status != null) r'status': status,
+        if (udHistoryAggregate != null)
+          r'udHistoryAggregate': udHistoryAggregate,
+      });
+
+  Input$IdentityOrderBy._(this._$data);
+
+  factory Input$IdentityOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('account')) {
+      final l$account = data['account'];
+      result$data['account'] = l$account == null
+          ? null
+          : Input$AccountOrderBy.fromJson((l$account as Map<String, dynamic>));
+    }
+    if (data.containsKey('accountId')) {
+      final l$accountId = data['accountId'];
+      result$data['accountId'] = l$accountId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$accountId as String));
+    }
+    if (data.containsKey('certIssuedAggregate')) {
+      final l$certIssuedAggregate = data['certIssuedAggregate'];
+      result$data['certIssuedAggregate'] = l$certIssuedAggregate == null
+          ? null
+          : Input$CertAggregateOrderBy.fromJson(
+              (l$certIssuedAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('certReceivedAggregate')) {
+      final l$certReceivedAggregate = data['certReceivedAggregate'];
+      result$data['certReceivedAggregate'] = l$certReceivedAggregate == null
+          ? null
+          : Input$CertAggregateOrderBy.fromJson(
+              (l$certReceivedAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('createdIn')) {
+      final l$createdIn = data['createdIn'];
+      result$data['createdIn'] = l$createdIn == null
+          ? null
+          : Input$EventOrderBy.fromJson((l$createdIn as Map<String, dynamic>));
+    }
+    if (data.containsKey('createdInId')) {
+      final l$createdInId = data['createdInId'];
+      result$data['createdInId'] = l$createdInId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdInId as String));
+    }
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    if (data.containsKey('expireOn')) {
+      final l$expireOn = data['expireOn'];
+      result$data['expireOn'] = l$expireOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$expireOn as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('index')) {
+      final l$index = data['index'];
+      result$data['index'] =
+          l$index == null ? null : fromJson$Enum$OrderBy((l$index as String));
+    }
+    if (data.containsKey('isMember')) {
+      final l$isMember = data['isMember'];
+      result$data['isMember'] = l$isMember == null
+          ? null
+          : fromJson$Enum$OrderBy((l$isMember as String));
+    }
+    if (data.containsKey('lastChangeOn')) {
+      final l$lastChangeOn = data['lastChangeOn'];
+      result$data['lastChangeOn'] = l$lastChangeOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$lastChangeOn as String));
+    }
+    if (data.containsKey('linkedAccountAggregate')) {
+      final l$linkedAccountAggregate = data['linkedAccountAggregate'];
+      result$data['linkedAccountAggregate'] = l$linkedAccountAggregate == null
+          ? null
+          : Input$AccountAggregateOrderBy.fromJson(
+              (l$linkedAccountAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('membershipHistoryAggregate')) {
+      final l$membershipHistoryAggregate = data['membershipHistoryAggregate'];
+      result$data['membershipHistoryAggregate'] =
+          l$membershipHistoryAggregate == null
+              ? null
+              : Input$MembershipEventAggregateOrderBy.fromJson(
+                  (l$membershipHistoryAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('name')) {
+      final l$name = data['name'];
+      result$data['name'] =
+          l$name == null ? null : fromJson$Enum$OrderBy((l$name as String));
+    }
+    if (data.containsKey('ownerKeyChangeAggregate')) {
+      final l$ownerKeyChangeAggregate = data['ownerKeyChangeAggregate'];
+      result$data['ownerKeyChangeAggregate'] = l$ownerKeyChangeAggregate == null
+          ? null
+          : Input$ChangeOwnerKeyAggregateOrderBy.fromJson(
+              (l$ownerKeyChangeAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('smithCertIssuedAggregate')) {
+      final l$smithCertIssuedAggregate = data['smithCertIssuedAggregate'];
+      result$data['smithCertIssuedAggregate'] =
+          l$smithCertIssuedAggregate == null
+              ? null
+              : Input$SmithCertAggregateOrderBy.fromJson(
+                  (l$smithCertIssuedAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('smithCertReceivedAggregate')) {
+      final l$smithCertReceivedAggregate = data['smithCertReceivedAggregate'];
+      result$data['smithCertReceivedAggregate'] =
+          l$smithCertReceivedAggregate == null
+              ? null
+              : Input$SmithCertAggregateOrderBy.fromJson(
+                  (l$smithCertReceivedAggregate as Map<String, dynamic>));
+    }
+    if (data.containsKey('smithStatus')) {
+      final l$smithStatus = data['smithStatus'];
+      result$data['smithStatus'] = l$smithStatus == null
+          ? null
+          : fromJson$Enum$OrderBy((l$smithStatus as String));
+    }
+    if (data.containsKey('status')) {
+      final l$status = data['status'];
+      result$data['status'] =
+          l$status == null ? null : fromJson$Enum$OrderBy((l$status as String));
+    }
+    if (data.containsKey('udHistoryAggregate')) {
+      final l$udHistoryAggregate = data['udHistoryAggregate'];
+      result$data['udHistoryAggregate'] = l$udHistoryAggregate == null
+          ? null
+          : Input$UdHistoryAggregateOrderBy.fromJson(
+              (l$udHistoryAggregate as Map<String, dynamic>));
+    }
+    return Input$IdentityOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$AccountOrderBy? get account =>
+      (_$data['account'] as Input$AccountOrderBy?);
+
+  Enum$OrderBy? get accountId => (_$data['accountId'] as Enum$OrderBy?);
+
+  Input$CertAggregateOrderBy? get certIssuedAggregate =>
+      (_$data['certIssuedAggregate'] as Input$CertAggregateOrderBy?);
+
+  Input$CertAggregateOrderBy? get certReceivedAggregate =>
+      (_$data['certReceivedAggregate'] as Input$CertAggregateOrderBy?);
+
+  Input$EventOrderBy? get createdIn =>
+      (_$data['createdIn'] as Input$EventOrderBy?);
+
+  Enum$OrderBy? get createdInId => (_$data['createdInId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get expireOn => (_$data['expireOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get index => (_$data['index'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get isMember => (_$data['isMember'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get lastChangeOn => (_$data['lastChangeOn'] as Enum$OrderBy?);
+
+  Input$AccountAggregateOrderBy? get linkedAccountAggregate =>
+      (_$data['linkedAccountAggregate'] as Input$AccountAggregateOrderBy?);
+
+  Input$MembershipEventAggregateOrderBy? get membershipHistoryAggregate =>
+      (_$data['membershipHistoryAggregate']
+          as Input$MembershipEventAggregateOrderBy?);
+
+  Enum$OrderBy? get name => (_$data['name'] as Enum$OrderBy?);
+
+  Input$ChangeOwnerKeyAggregateOrderBy? get ownerKeyChangeAggregate =>
+      (_$data['ownerKeyChangeAggregate']
+          as Input$ChangeOwnerKeyAggregateOrderBy?);
+
+  Input$SmithCertAggregateOrderBy? get smithCertIssuedAggregate =>
+      (_$data['smithCertIssuedAggregate'] as Input$SmithCertAggregateOrderBy?);
+
+  Input$SmithCertAggregateOrderBy? get smithCertReceivedAggregate =>
+      (_$data['smithCertReceivedAggregate']
+          as Input$SmithCertAggregateOrderBy?);
+
+  Enum$OrderBy? get smithStatus => (_$data['smithStatus'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get status => (_$data['status'] as Enum$OrderBy?);
+
+  Input$UdHistoryAggregateOrderBy? get udHistoryAggregate =>
+      (_$data['udHistoryAggregate'] as Input$UdHistoryAggregateOrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('account')) {
+      final l$account = account;
+      result$data['account'] = l$account?.toJson();
+    }
+    if (_$data.containsKey('accountId')) {
+      final l$accountId = accountId;
+      result$data['accountId'] =
+          l$accountId == null ? null : toJson$Enum$OrderBy(l$accountId);
+    }
+    if (_$data.containsKey('certIssuedAggregate')) {
+      final l$certIssuedAggregate = certIssuedAggregate;
+      result$data['certIssuedAggregate'] = l$certIssuedAggregate?.toJson();
+    }
+    if (_$data.containsKey('certReceivedAggregate')) {
+      final l$certReceivedAggregate = certReceivedAggregate;
+      result$data['certReceivedAggregate'] = l$certReceivedAggregate?.toJson();
+    }
+    if (_$data.containsKey('createdIn')) {
+      final l$createdIn = createdIn;
+      result$data['createdIn'] = l$createdIn?.toJson();
+    }
+    if (_$data.containsKey('createdInId')) {
+      final l$createdInId = createdInId;
+      result$data['createdInId'] =
+          l$createdInId == null ? null : toJson$Enum$OrderBy(l$createdInId);
+    }
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    if (_$data.containsKey('expireOn')) {
+      final l$expireOn = expireOn;
+      result$data['expireOn'] =
+          l$expireOn == null ? null : toJson$Enum$OrderBy(l$expireOn);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('index')) {
+      final l$index = index;
+      result$data['index'] =
+          l$index == null ? null : toJson$Enum$OrderBy(l$index);
+    }
+    if (_$data.containsKey('isMember')) {
+      final l$isMember = isMember;
+      result$data['isMember'] =
+          l$isMember == null ? null : toJson$Enum$OrderBy(l$isMember);
+    }
+    if (_$data.containsKey('lastChangeOn')) {
+      final l$lastChangeOn = lastChangeOn;
+      result$data['lastChangeOn'] =
+          l$lastChangeOn == null ? null : toJson$Enum$OrderBy(l$lastChangeOn);
+    }
+    if (_$data.containsKey('linkedAccountAggregate')) {
+      final l$linkedAccountAggregate = linkedAccountAggregate;
+      result$data['linkedAccountAggregate'] =
+          l$linkedAccountAggregate?.toJson();
+    }
+    if (_$data.containsKey('membershipHistoryAggregate')) {
+      final l$membershipHistoryAggregate = membershipHistoryAggregate;
+      result$data['membershipHistoryAggregate'] =
+          l$membershipHistoryAggregate?.toJson();
+    }
+    if (_$data.containsKey('name')) {
+      final l$name = name;
+      result$data['name'] = l$name == null ? null : toJson$Enum$OrderBy(l$name);
+    }
+    if (_$data.containsKey('ownerKeyChangeAggregate')) {
+      final l$ownerKeyChangeAggregate = ownerKeyChangeAggregate;
+      result$data['ownerKeyChangeAggregate'] =
+          l$ownerKeyChangeAggregate?.toJson();
+    }
+    if (_$data.containsKey('smithCertIssuedAggregate')) {
+      final l$smithCertIssuedAggregate = smithCertIssuedAggregate;
+      result$data['smithCertIssuedAggregate'] =
+          l$smithCertIssuedAggregate?.toJson();
+    }
+    if (_$data.containsKey('smithCertReceivedAggregate')) {
+      final l$smithCertReceivedAggregate = smithCertReceivedAggregate;
+      result$data['smithCertReceivedAggregate'] =
+          l$smithCertReceivedAggregate?.toJson();
+    }
+    if (_$data.containsKey('smithStatus')) {
+      final l$smithStatus = smithStatus;
+      result$data['smithStatus'] =
+          l$smithStatus == null ? null : toJson$Enum$OrderBy(l$smithStatus);
+    }
+    if (_$data.containsKey('status')) {
+      final l$status = status;
+      result$data['status'] =
+          l$status == null ? null : toJson$Enum$OrderBy(l$status);
+    }
+    if (_$data.containsKey('udHistoryAggregate')) {
+      final l$udHistoryAggregate = udHistoryAggregate;
+      result$data['udHistoryAggregate'] = l$udHistoryAggregate?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$IdentityOrderBy<Input$IdentityOrderBy> get copyWith =>
+      CopyWith$Input$IdentityOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$IdentityOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$account = account;
+    final lOther$account = other.account;
+    if (_$data.containsKey('account') != other._$data.containsKey('account')) {
+      return false;
+    }
+    if (l$account != lOther$account) {
+      return false;
+    }
+    final l$accountId = accountId;
+    final lOther$accountId = other.accountId;
+    if (_$data.containsKey('accountId') !=
+        other._$data.containsKey('accountId')) {
+      return false;
+    }
+    if (l$accountId != lOther$accountId) {
+      return false;
+    }
+    final l$certIssuedAggregate = certIssuedAggregate;
+    final lOther$certIssuedAggregate = other.certIssuedAggregate;
+    if (_$data.containsKey('certIssuedAggregate') !=
+        other._$data.containsKey('certIssuedAggregate')) {
+      return false;
+    }
+    if (l$certIssuedAggregate != lOther$certIssuedAggregate) {
+      return false;
+    }
+    final l$certReceivedAggregate = certReceivedAggregate;
+    final lOther$certReceivedAggregate = other.certReceivedAggregate;
+    if (_$data.containsKey('certReceivedAggregate') !=
+        other._$data.containsKey('certReceivedAggregate')) {
+      return false;
+    }
+    if (l$certReceivedAggregate != lOther$certReceivedAggregate) {
+      return false;
+    }
+    final l$createdIn = createdIn;
+    final lOther$createdIn = other.createdIn;
+    if (_$data.containsKey('createdIn') !=
+        other._$data.containsKey('createdIn')) {
+      return false;
+    }
+    if (l$createdIn != lOther$createdIn) {
+      return false;
+    }
+    final l$createdInId = createdInId;
+    final lOther$createdInId = other.createdInId;
+    if (_$data.containsKey('createdInId') !=
+        other._$data.containsKey('createdInId')) {
+      return false;
+    }
+    if (l$createdInId != lOther$createdInId) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$expireOn = expireOn;
+    final lOther$expireOn = other.expireOn;
+    if (_$data.containsKey('expireOn') !=
+        other._$data.containsKey('expireOn')) {
+      return false;
+    }
+    if (l$expireOn != lOther$expireOn) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$index = index;
+    final lOther$index = other.index;
+    if (_$data.containsKey('index') != other._$data.containsKey('index')) {
+      return false;
+    }
+    if (l$index != lOther$index) {
+      return false;
+    }
+    final l$isMember = isMember;
+    final lOther$isMember = other.isMember;
+    if (_$data.containsKey('isMember') !=
+        other._$data.containsKey('isMember')) {
+      return false;
+    }
+    if (l$isMember != lOther$isMember) {
+      return false;
+    }
+    final l$lastChangeOn = lastChangeOn;
+    final lOther$lastChangeOn = other.lastChangeOn;
+    if (_$data.containsKey('lastChangeOn') !=
+        other._$data.containsKey('lastChangeOn')) {
+      return false;
+    }
+    if (l$lastChangeOn != lOther$lastChangeOn) {
+      return false;
+    }
+    final l$linkedAccountAggregate = linkedAccountAggregate;
+    final lOther$linkedAccountAggregate = other.linkedAccountAggregate;
+    if (_$data.containsKey('linkedAccountAggregate') !=
+        other._$data.containsKey('linkedAccountAggregate')) {
+      return false;
+    }
+    if (l$linkedAccountAggregate != lOther$linkedAccountAggregate) {
+      return false;
+    }
+    final l$membershipHistoryAggregate = membershipHistoryAggregate;
+    final lOther$membershipHistoryAggregate = other.membershipHistoryAggregate;
+    if (_$data.containsKey('membershipHistoryAggregate') !=
+        other._$data.containsKey('membershipHistoryAggregate')) {
+      return false;
+    }
+    if (l$membershipHistoryAggregate != lOther$membershipHistoryAggregate) {
+      return false;
+    }
+    final l$name = name;
+    final lOther$name = other.name;
+    if (_$data.containsKey('name') != other._$data.containsKey('name')) {
+      return false;
+    }
+    if (l$name != lOther$name) {
+      return false;
+    }
+    final l$ownerKeyChangeAggregate = ownerKeyChangeAggregate;
+    final lOther$ownerKeyChangeAggregate = other.ownerKeyChangeAggregate;
+    if (_$data.containsKey('ownerKeyChangeAggregate') !=
+        other._$data.containsKey('ownerKeyChangeAggregate')) {
+      return false;
+    }
+    if (l$ownerKeyChangeAggregate != lOther$ownerKeyChangeAggregate) {
+      return false;
+    }
+    final l$smithCertIssuedAggregate = smithCertIssuedAggregate;
+    final lOther$smithCertIssuedAggregate = other.smithCertIssuedAggregate;
+    if (_$data.containsKey('smithCertIssuedAggregate') !=
+        other._$data.containsKey('smithCertIssuedAggregate')) {
+      return false;
+    }
+    if (l$smithCertIssuedAggregate != lOther$smithCertIssuedAggregate) {
+      return false;
+    }
+    final l$smithCertReceivedAggregate = smithCertReceivedAggregate;
+    final lOther$smithCertReceivedAggregate = other.smithCertReceivedAggregate;
+    if (_$data.containsKey('smithCertReceivedAggregate') !=
+        other._$data.containsKey('smithCertReceivedAggregate')) {
+      return false;
+    }
+    if (l$smithCertReceivedAggregate != lOther$smithCertReceivedAggregate) {
+      return false;
+    }
+    final l$smithStatus = smithStatus;
+    final lOther$smithStatus = other.smithStatus;
+    if (_$data.containsKey('smithStatus') !=
+        other._$data.containsKey('smithStatus')) {
+      return false;
+    }
+    if (l$smithStatus != lOther$smithStatus) {
+      return false;
+    }
+    final l$status = status;
+    final lOther$status = other.status;
+    if (_$data.containsKey('status') != other._$data.containsKey('status')) {
+      return false;
+    }
+    if (l$status != lOther$status) {
+      return false;
+    }
+    final l$udHistoryAggregate = udHistoryAggregate;
+    final lOther$udHistoryAggregate = other.udHistoryAggregate;
+    if (_$data.containsKey('udHistoryAggregate') !=
+        other._$data.containsKey('udHistoryAggregate')) {
+      return false;
+    }
+    if (l$udHistoryAggregate != lOther$udHistoryAggregate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$account = account;
+    final l$accountId = accountId;
+    final l$certIssuedAggregate = certIssuedAggregate;
+    final l$certReceivedAggregate = certReceivedAggregate;
+    final l$createdIn = createdIn;
+    final l$createdInId = createdInId;
+    final l$createdOn = createdOn;
+    final l$expireOn = expireOn;
+    final l$id = id;
+    final l$index = index;
+    final l$isMember = isMember;
+    final l$lastChangeOn = lastChangeOn;
+    final l$linkedAccountAggregate = linkedAccountAggregate;
+    final l$membershipHistoryAggregate = membershipHistoryAggregate;
+    final l$name = name;
+    final l$ownerKeyChangeAggregate = ownerKeyChangeAggregate;
+    final l$smithCertIssuedAggregate = smithCertIssuedAggregate;
+    final l$smithCertReceivedAggregate = smithCertReceivedAggregate;
+    final l$smithStatus = smithStatus;
+    final l$status = status;
+    final l$udHistoryAggregate = udHistoryAggregate;
+    return Object.hashAll([
+      _$data.containsKey('account') ? l$account : const {},
+      _$data.containsKey('accountId') ? l$accountId : const {},
+      _$data.containsKey('certIssuedAggregate')
+          ? l$certIssuedAggregate
+          : const {},
+      _$data.containsKey('certReceivedAggregate')
+          ? l$certReceivedAggregate
+          : const {},
+      _$data.containsKey('createdIn') ? l$createdIn : const {},
+      _$data.containsKey('createdInId') ? l$createdInId : const {},
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('expireOn') ? l$expireOn : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('index') ? l$index : const {},
+      _$data.containsKey('isMember') ? l$isMember : const {},
+      _$data.containsKey('lastChangeOn') ? l$lastChangeOn : const {},
+      _$data.containsKey('linkedAccountAggregate')
+          ? l$linkedAccountAggregate
+          : const {},
+      _$data.containsKey('membershipHistoryAggregate')
+          ? l$membershipHistoryAggregate
+          : const {},
+      _$data.containsKey('name') ? l$name : const {},
+      _$data.containsKey('ownerKeyChangeAggregate')
+          ? l$ownerKeyChangeAggregate
+          : const {},
+      _$data.containsKey('smithCertIssuedAggregate')
+          ? l$smithCertIssuedAggregate
+          : const {},
+      _$data.containsKey('smithCertReceivedAggregate')
+          ? l$smithCertReceivedAggregate
+          : const {},
+      _$data.containsKey('smithStatus') ? l$smithStatus : const {},
+      _$data.containsKey('status') ? l$status : const {},
+      _$data.containsKey('udHistoryAggregate')
+          ? l$udHistoryAggregate
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$IdentityOrderBy<TRes> {
+  factory CopyWith$Input$IdentityOrderBy(
+    Input$IdentityOrderBy instance,
+    TRes Function(Input$IdentityOrderBy) then,
+  ) = _CopyWithImpl$Input$IdentityOrderBy;
+
+  factory CopyWith$Input$IdentityOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$IdentityOrderBy;
+
+  TRes call({
+    Input$AccountOrderBy? account,
+    Enum$OrderBy? accountId,
+    Input$CertAggregateOrderBy? certIssuedAggregate,
+    Input$CertAggregateOrderBy? certReceivedAggregate,
+    Input$EventOrderBy? createdIn,
+    Enum$OrderBy? createdInId,
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? isMember,
+    Enum$OrderBy? lastChangeOn,
+    Input$AccountAggregateOrderBy? linkedAccountAggregate,
+    Input$MembershipEventAggregateOrderBy? membershipHistoryAggregate,
+    Enum$OrderBy? name,
+    Input$ChangeOwnerKeyAggregateOrderBy? ownerKeyChangeAggregate,
+    Input$SmithCertAggregateOrderBy? smithCertIssuedAggregate,
+    Input$SmithCertAggregateOrderBy? smithCertReceivedAggregate,
+    Enum$OrderBy? smithStatus,
+    Enum$OrderBy? status,
+    Input$UdHistoryAggregateOrderBy? udHistoryAggregate,
+  });
+  CopyWith$Input$AccountOrderBy<TRes> get account;
+  CopyWith$Input$CertAggregateOrderBy<TRes> get certIssuedAggregate;
+  CopyWith$Input$CertAggregateOrderBy<TRes> get certReceivedAggregate;
+  CopyWith$Input$EventOrderBy<TRes> get createdIn;
+  CopyWith$Input$AccountAggregateOrderBy<TRes> get linkedAccountAggregate;
+  CopyWith$Input$MembershipEventAggregateOrderBy<TRes>
+      get membershipHistoryAggregate;
+  CopyWith$Input$ChangeOwnerKeyAggregateOrderBy<TRes>
+      get ownerKeyChangeAggregate;
+  CopyWith$Input$SmithCertAggregateOrderBy<TRes> get smithCertIssuedAggregate;
+  CopyWith$Input$SmithCertAggregateOrderBy<TRes> get smithCertReceivedAggregate;
+  CopyWith$Input$UdHistoryAggregateOrderBy<TRes> get udHistoryAggregate;
+}
+
+class _CopyWithImpl$Input$IdentityOrderBy<TRes>
+    implements CopyWith$Input$IdentityOrderBy<TRes> {
+  _CopyWithImpl$Input$IdentityOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$IdentityOrderBy _instance;
+
+  final TRes Function(Input$IdentityOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? account = _undefined,
+    Object? accountId = _undefined,
+    Object? certIssuedAggregate = _undefined,
+    Object? certReceivedAggregate = _undefined,
+    Object? createdIn = _undefined,
+    Object? createdInId = _undefined,
+    Object? createdOn = _undefined,
+    Object? expireOn = _undefined,
+    Object? id = _undefined,
+    Object? index = _undefined,
+    Object? isMember = _undefined,
+    Object? lastChangeOn = _undefined,
+    Object? linkedAccountAggregate = _undefined,
+    Object? membershipHistoryAggregate = _undefined,
+    Object? name = _undefined,
+    Object? ownerKeyChangeAggregate = _undefined,
+    Object? smithCertIssuedAggregate = _undefined,
+    Object? smithCertReceivedAggregate = _undefined,
+    Object? smithStatus = _undefined,
+    Object? status = _undefined,
+    Object? udHistoryAggregate = _undefined,
+  }) =>
+      _then(Input$IdentityOrderBy._({
+        ..._instance._$data,
+        if (account != _undefined)
+          'account': (account as Input$AccountOrderBy?),
+        if (accountId != _undefined) 'accountId': (accountId as Enum$OrderBy?),
+        if (certIssuedAggregate != _undefined)
+          'certIssuedAggregate':
+              (certIssuedAggregate as Input$CertAggregateOrderBy?),
+        if (certReceivedAggregate != _undefined)
+          'certReceivedAggregate':
+              (certReceivedAggregate as Input$CertAggregateOrderBy?),
+        if (createdIn != _undefined)
+          'createdIn': (createdIn as Input$EventOrderBy?),
+        if (createdInId != _undefined)
+          'createdInId': (createdInId as Enum$OrderBy?),
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+        if (expireOn != _undefined) 'expireOn': (expireOn as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (index != _undefined) 'index': (index as Enum$OrderBy?),
+        if (isMember != _undefined) 'isMember': (isMember as Enum$OrderBy?),
+        if (lastChangeOn != _undefined)
+          'lastChangeOn': (lastChangeOn as Enum$OrderBy?),
+        if (linkedAccountAggregate != _undefined)
+          'linkedAccountAggregate':
+              (linkedAccountAggregate as Input$AccountAggregateOrderBy?),
+        if (membershipHistoryAggregate != _undefined)
+          'membershipHistoryAggregate': (membershipHistoryAggregate
+              as Input$MembershipEventAggregateOrderBy?),
+        if (name != _undefined) 'name': (name as Enum$OrderBy?),
+        if (ownerKeyChangeAggregate != _undefined)
+          'ownerKeyChangeAggregate': (ownerKeyChangeAggregate
+              as Input$ChangeOwnerKeyAggregateOrderBy?),
+        if (smithCertIssuedAggregate != _undefined)
+          'smithCertIssuedAggregate':
+              (smithCertIssuedAggregate as Input$SmithCertAggregateOrderBy?),
+        if (smithCertReceivedAggregate != _undefined)
+          'smithCertReceivedAggregate':
+              (smithCertReceivedAggregate as Input$SmithCertAggregateOrderBy?),
+        if (smithStatus != _undefined)
+          'smithStatus': (smithStatus as Enum$OrderBy?),
+        if (status != _undefined) 'status': (status as Enum$OrderBy?),
+        if (udHistoryAggregate != _undefined)
+          'udHistoryAggregate':
+              (udHistoryAggregate as Input$UdHistoryAggregateOrderBy?),
+      }));
+
+  CopyWith$Input$AccountOrderBy<TRes> get account {
+    final local$account = _instance.account;
+    return local$account == null
+        ? CopyWith$Input$AccountOrderBy.stub(_then(_instance))
+        : CopyWith$Input$AccountOrderBy(local$account, (e) => call(account: e));
+  }
+
+  CopyWith$Input$CertAggregateOrderBy<TRes> get certIssuedAggregate {
+    final local$certIssuedAggregate = _instance.certIssuedAggregate;
+    return local$certIssuedAggregate == null
+        ? CopyWith$Input$CertAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertAggregateOrderBy(
+            local$certIssuedAggregate, (e) => call(certIssuedAggregate: e));
+  }
+
+  CopyWith$Input$CertAggregateOrderBy<TRes> get certReceivedAggregate {
+    final local$certReceivedAggregate = _instance.certReceivedAggregate;
+    return local$certReceivedAggregate == null
+        ? CopyWith$Input$CertAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$CertAggregateOrderBy(
+            local$certReceivedAggregate, (e) => call(certReceivedAggregate: e));
+  }
+
+  CopyWith$Input$EventOrderBy<TRes> get createdIn {
+    final local$createdIn = _instance.createdIn;
+    return local$createdIn == null
+        ? CopyWith$Input$EventOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventOrderBy(
+            local$createdIn, (e) => call(createdIn: e));
+  }
+
+  CopyWith$Input$AccountAggregateOrderBy<TRes> get linkedAccountAggregate {
+    final local$linkedAccountAggregate = _instance.linkedAccountAggregate;
+    return local$linkedAccountAggregate == null
+        ? CopyWith$Input$AccountAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$AccountAggregateOrderBy(local$linkedAccountAggregate,
+            (e) => call(linkedAccountAggregate: e));
+  }
+
+  CopyWith$Input$MembershipEventAggregateOrderBy<TRes>
+      get membershipHistoryAggregate {
+    final local$membershipHistoryAggregate =
+        _instance.membershipHistoryAggregate;
+    return local$membershipHistoryAggregate == null
+        ? CopyWith$Input$MembershipEventAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$MembershipEventAggregateOrderBy(
+            local$membershipHistoryAggregate,
+            (e) => call(membershipHistoryAggregate: e));
+  }
+
+  CopyWith$Input$ChangeOwnerKeyAggregateOrderBy<TRes>
+      get ownerKeyChangeAggregate {
+    final local$ownerKeyChangeAggregate = _instance.ownerKeyChangeAggregate;
+    return local$ownerKeyChangeAggregate == null
+        ? CopyWith$Input$ChangeOwnerKeyAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$ChangeOwnerKeyAggregateOrderBy(
+            local$ownerKeyChangeAggregate,
+            (e) => call(ownerKeyChangeAggregate: e));
+  }
+
+  CopyWith$Input$SmithCertAggregateOrderBy<TRes> get smithCertIssuedAggregate {
+    final local$smithCertIssuedAggregate = _instance.smithCertIssuedAggregate;
+    return local$smithCertIssuedAggregate == null
+        ? CopyWith$Input$SmithCertAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$SmithCertAggregateOrderBy(
+            local$smithCertIssuedAggregate,
+            (e) => call(smithCertIssuedAggregate: e));
+  }
+
+  CopyWith$Input$SmithCertAggregateOrderBy<TRes>
+      get smithCertReceivedAggregate {
+    final local$smithCertReceivedAggregate =
+        _instance.smithCertReceivedAggregate;
+    return local$smithCertReceivedAggregate == null
+        ? CopyWith$Input$SmithCertAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$SmithCertAggregateOrderBy(
+            local$smithCertReceivedAggregate,
+            (e) => call(smithCertReceivedAggregate: e));
+  }
+
+  CopyWith$Input$UdHistoryAggregateOrderBy<TRes> get udHistoryAggregate {
+    final local$udHistoryAggregate = _instance.udHistoryAggregate;
+    return local$udHistoryAggregate == null
+        ? CopyWith$Input$UdHistoryAggregateOrderBy.stub(_then(_instance))
+        : CopyWith$Input$UdHistoryAggregateOrderBy(
+            local$udHistoryAggregate, (e) => call(udHistoryAggregate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$IdentityOrderBy<TRes>
+    implements CopyWith$Input$IdentityOrderBy<TRes> {
+  _CopyWithStubImpl$Input$IdentityOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Input$AccountOrderBy? account,
+    Enum$OrderBy? accountId,
+    Input$CertAggregateOrderBy? certIssuedAggregate,
+    Input$CertAggregateOrderBy? certReceivedAggregate,
+    Input$EventOrderBy? createdIn,
+    Enum$OrderBy? createdInId,
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? expireOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? index,
+    Enum$OrderBy? isMember,
+    Enum$OrderBy? lastChangeOn,
+    Input$AccountAggregateOrderBy? linkedAccountAggregate,
+    Input$MembershipEventAggregateOrderBy? membershipHistoryAggregate,
+    Enum$OrderBy? name,
+    Input$ChangeOwnerKeyAggregateOrderBy? ownerKeyChangeAggregate,
+    Input$SmithCertAggregateOrderBy? smithCertIssuedAggregate,
+    Input$SmithCertAggregateOrderBy? smithCertReceivedAggregate,
+    Enum$OrderBy? smithStatus,
+    Enum$OrderBy? status,
+    Input$UdHistoryAggregateOrderBy? udHistoryAggregate,
+  }) =>
+      _res;
+
+  CopyWith$Input$AccountOrderBy<TRes> get account =>
+      CopyWith$Input$AccountOrderBy.stub(_res);
+
+  CopyWith$Input$CertAggregateOrderBy<TRes> get certIssuedAggregate =>
+      CopyWith$Input$CertAggregateOrderBy.stub(_res);
+
+  CopyWith$Input$CertAggregateOrderBy<TRes> get certReceivedAggregate =>
+      CopyWith$Input$CertAggregateOrderBy.stub(_res);
+
+  CopyWith$Input$EventOrderBy<TRes> get createdIn =>
+      CopyWith$Input$EventOrderBy.stub(_res);
+
+  CopyWith$Input$AccountAggregateOrderBy<TRes> get linkedAccountAggregate =>
+      CopyWith$Input$AccountAggregateOrderBy.stub(_res);
+
+  CopyWith$Input$MembershipEventAggregateOrderBy<TRes>
+      get membershipHistoryAggregate =>
+          CopyWith$Input$MembershipEventAggregateOrderBy.stub(_res);
+
+  CopyWith$Input$ChangeOwnerKeyAggregateOrderBy<TRes>
+      get ownerKeyChangeAggregate =>
+          CopyWith$Input$ChangeOwnerKeyAggregateOrderBy.stub(_res);
+
+  CopyWith$Input$SmithCertAggregateOrderBy<TRes> get smithCertIssuedAggregate =>
+      CopyWith$Input$SmithCertAggregateOrderBy.stub(_res);
+
+  CopyWith$Input$SmithCertAggregateOrderBy<TRes>
+      get smithCertReceivedAggregate =>
+          CopyWith$Input$SmithCertAggregateOrderBy.stub(_res);
+
+  CopyWith$Input$UdHistoryAggregateOrderBy<TRes> get udHistoryAggregate =>
+      CopyWith$Input$UdHistoryAggregateOrderBy.stub(_res);
+}
+
+class Input$IdentityStatusEnumComparisonExp {
+  factory Input$IdentityStatusEnumComparisonExp({
+    Enum$IdentityStatusEnum? $_eq,
+    List<Enum$IdentityStatusEnum>? $_in,
+    bool? $_isNull,
+    Enum$IdentityStatusEnum? $_neq,
+    List<Enum$IdentityStatusEnum>? $_nin,
+  }) =>
+      Input$IdentityStatusEnumComparisonExp._({
+        if ($_eq != null) r'_eq': $_eq,
+        if ($_in != null) r'_in': $_in,
+        if ($_isNull != null) r'_isNull': $_isNull,
+        if ($_neq != null) r'_neq': $_neq,
+        if ($_nin != null) r'_nin': $_nin,
+      });
+
+  Input$IdentityStatusEnumComparisonExp._(this._$data);
+
+  factory Input$IdentityStatusEnumComparisonExp.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_eq')) {
+      final l$$_eq = data['_eq'];
+      result$data['_eq'] = l$$_eq == null
+          ? null
+          : fromJson$Enum$IdentityStatusEnum((l$$_eq as String));
+    }
+    if (data.containsKey('_in')) {
+      final l$$_in = data['_in'];
+      result$data['_in'] = (l$$_in as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$IdentityStatusEnum((e as String)))
+          .toList();
+    }
+    if (data.containsKey('_isNull')) {
+      final l$$_isNull = data['_isNull'];
+      result$data['_isNull'] = (l$$_isNull as bool?);
+    }
+    if (data.containsKey('_neq')) {
+      final l$$_neq = data['_neq'];
+      result$data['_neq'] = l$$_neq == null
+          ? null
+          : fromJson$Enum$IdentityStatusEnum((l$$_neq as String));
+    }
+    if (data.containsKey('_nin')) {
+      final l$$_nin = data['_nin'];
+      result$data['_nin'] = (l$$_nin as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$IdentityStatusEnum((e as String)))
+          .toList();
+    }
+    return Input$IdentityStatusEnumComparisonExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$IdentityStatusEnum? get $_eq =>
+      (_$data['_eq'] as Enum$IdentityStatusEnum?);
+
+  List<Enum$IdentityStatusEnum>? get $_in =>
+      (_$data['_in'] as List<Enum$IdentityStatusEnum>?);
+
+  bool? get $_isNull => (_$data['_isNull'] as bool?);
+
+  Enum$IdentityStatusEnum? get $_neq =>
+      (_$data['_neq'] as Enum$IdentityStatusEnum?);
+
+  List<Enum$IdentityStatusEnum>? get $_nin =>
+      (_$data['_nin'] as List<Enum$IdentityStatusEnum>?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_eq')) {
+      final l$$_eq = $_eq;
+      result$data['_eq'] =
+          l$$_eq == null ? null : toJson$Enum$IdentityStatusEnum(l$$_eq);
+    }
+    if (_$data.containsKey('_in')) {
+      final l$$_in = $_in;
+      result$data['_in'] =
+          l$$_in?.map((e) => toJson$Enum$IdentityStatusEnum(e)).toList();
+    }
+    if (_$data.containsKey('_isNull')) {
+      final l$$_isNull = $_isNull;
+      result$data['_isNull'] = l$$_isNull;
+    }
+    if (_$data.containsKey('_neq')) {
+      final l$$_neq = $_neq;
+      result$data['_neq'] =
+          l$$_neq == null ? null : toJson$Enum$IdentityStatusEnum(l$$_neq);
+    }
+    if (_$data.containsKey('_nin')) {
+      final l$$_nin = $_nin;
+      result$data['_nin'] =
+          l$$_nin?.map((e) => toJson$Enum$IdentityStatusEnum(e)).toList();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$IdentityStatusEnumComparisonExp<
+          Input$IdentityStatusEnumComparisonExp>
+      get copyWith => CopyWith$Input$IdentityStatusEnumComparisonExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$IdentityStatusEnumComparisonExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_eq = $_eq;
+    final lOther$$_eq = other.$_eq;
+    if (_$data.containsKey('_eq') != other._$data.containsKey('_eq')) {
+      return false;
+    }
+    if (l$$_eq != lOther$$_eq) {
+      return false;
+    }
+    final l$$_in = $_in;
+    final lOther$$_in = other.$_in;
+    if (_$data.containsKey('_in') != other._$data.containsKey('_in')) {
+      return false;
+    }
+    if (l$$_in != null && lOther$$_in != null) {
+      if (l$$_in.length != lOther$$_in.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_in.length; i++) {
+        final l$$_in$entry = l$$_in[i];
+        final lOther$$_in$entry = lOther$$_in[i];
+        if (l$$_in$entry != lOther$$_in$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_in != lOther$$_in) {
+      return false;
+    }
+    final l$$_isNull = $_isNull;
+    final lOther$$_isNull = other.$_isNull;
+    if (_$data.containsKey('_isNull') != other._$data.containsKey('_isNull')) {
+      return false;
+    }
+    if (l$$_isNull != lOther$$_isNull) {
+      return false;
+    }
+    final l$$_neq = $_neq;
+    final lOther$$_neq = other.$_neq;
+    if (_$data.containsKey('_neq') != other._$data.containsKey('_neq')) {
+      return false;
+    }
+    if (l$$_neq != lOther$$_neq) {
+      return false;
+    }
+    final l$$_nin = $_nin;
+    final lOther$$_nin = other.$_nin;
+    if (_$data.containsKey('_nin') != other._$data.containsKey('_nin')) {
+      return false;
+    }
+    if (l$$_nin != null && lOther$$_nin != null) {
+      if (l$$_nin.length != lOther$$_nin.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_nin.length; i++) {
+        final l$$_nin$entry = l$$_nin[i];
+        final lOther$$_nin$entry = lOther$$_nin[i];
+        if (l$$_nin$entry != lOther$$_nin$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_nin != lOther$$_nin) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_eq = $_eq;
+    final l$$_in = $_in;
+    final l$$_isNull = $_isNull;
+    final l$$_neq = $_neq;
+    final l$$_nin = $_nin;
+    return Object.hashAll([
+      _$data.containsKey('_eq') ? l$$_eq : const {},
+      _$data.containsKey('_in')
+          ? l$$_in == null
+              ? null
+              : Object.hashAll(l$$_in.map((v) => v))
+          : const {},
+      _$data.containsKey('_isNull') ? l$$_isNull : const {},
+      _$data.containsKey('_neq') ? l$$_neq : const {},
+      _$data.containsKey('_nin')
+          ? l$$_nin == null
+              ? null
+              : Object.hashAll(l$$_nin.map((v) => v))
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$IdentityStatusEnumComparisonExp<TRes> {
+  factory CopyWith$Input$IdentityStatusEnumComparisonExp(
+    Input$IdentityStatusEnumComparisonExp instance,
+    TRes Function(Input$IdentityStatusEnumComparisonExp) then,
+  ) = _CopyWithImpl$Input$IdentityStatusEnumComparisonExp;
+
+  factory CopyWith$Input$IdentityStatusEnumComparisonExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$IdentityStatusEnumComparisonExp;
+
+  TRes call({
+    Enum$IdentityStatusEnum? $_eq,
+    List<Enum$IdentityStatusEnum>? $_in,
+    bool? $_isNull,
+    Enum$IdentityStatusEnum? $_neq,
+    List<Enum$IdentityStatusEnum>? $_nin,
+  });
+}
+
+class _CopyWithImpl$Input$IdentityStatusEnumComparisonExp<TRes>
+    implements CopyWith$Input$IdentityStatusEnumComparisonExp<TRes> {
+  _CopyWithImpl$Input$IdentityStatusEnumComparisonExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$IdentityStatusEnumComparisonExp _instance;
+
+  final TRes Function(Input$IdentityStatusEnumComparisonExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_eq = _undefined,
+    Object? $_in = _undefined,
+    Object? $_isNull = _undefined,
+    Object? $_neq = _undefined,
+    Object? $_nin = _undefined,
+  }) =>
+      _then(Input$IdentityStatusEnumComparisonExp._({
+        ..._instance._$data,
+        if ($_eq != _undefined) '_eq': ($_eq as Enum$IdentityStatusEnum?),
+        if ($_in != _undefined) '_in': ($_in as List<Enum$IdentityStatusEnum>?),
+        if ($_isNull != _undefined) '_isNull': ($_isNull as bool?),
+        if ($_neq != _undefined) '_neq': ($_neq as Enum$IdentityStatusEnum?),
+        if ($_nin != _undefined)
+          '_nin': ($_nin as List<Enum$IdentityStatusEnum>?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$IdentityStatusEnumComparisonExp<TRes>
+    implements CopyWith$Input$IdentityStatusEnumComparisonExp<TRes> {
+  _CopyWithStubImpl$Input$IdentityStatusEnumComparisonExp(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$IdentityStatusEnum? $_eq,
+    List<Enum$IdentityStatusEnum>? $_in,
+    bool? $_isNull,
+    Enum$IdentityStatusEnum? $_neq,
+    List<Enum$IdentityStatusEnum>? $_nin,
+  }) =>
+      _res;
+}
+
+class Input$IntArrayComparisonExp {
+  factory Input$IntArrayComparisonExp({
+    List<int>? $_containedIn,
+    List<int>? $_contains,
+    List<int>? $_eq,
+    List<int>? $_gt,
+    List<int>? $_gte,
+    List<List<int>>? $_in,
+    bool? $_isNull,
+    List<int>? $_lt,
+    List<int>? $_lte,
+    List<int>? $_neq,
+    List<List<int>>? $_nin,
+  }) =>
+      Input$IntArrayComparisonExp._({
+        if ($_containedIn != null) r'_containedIn': $_containedIn,
+        if ($_contains != null) r'_contains': $_contains,
+        if ($_eq != null) r'_eq': $_eq,
+        if ($_gt != null) r'_gt': $_gt,
+        if ($_gte != null) r'_gte': $_gte,
+        if ($_in != null) r'_in': $_in,
+        if ($_isNull != null) r'_isNull': $_isNull,
+        if ($_lt != null) r'_lt': $_lt,
+        if ($_lte != null) r'_lte': $_lte,
+        if ($_neq != null) r'_neq': $_neq,
+        if ($_nin != null) r'_nin': $_nin,
+      });
+
+  Input$IntArrayComparisonExp._(this._$data);
+
+  factory Input$IntArrayComparisonExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_containedIn')) {
+      final l$$_containedIn = data['_containedIn'];
+      result$data['_containedIn'] =
+          (l$$_containedIn as List<dynamic>?)?.map((e) => (e as int)).toList();
+    }
+    if (data.containsKey('_contains')) {
+      final l$$_contains = data['_contains'];
+      result$data['_contains'] =
+          (l$$_contains as List<dynamic>?)?.map((e) => (e as int)).toList();
+    }
+    if (data.containsKey('_eq')) {
+      final l$$_eq = data['_eq'];
+      result$data['_eq'] =
+          (l$$_eq as List<dynamic>?)?.map((e) => (e as int)).toList();
+    }
+    if (data.containsKey('_gt')) {
+      final l$$_gt = data['_gt'];
+      result$data['_gt'] =
+          (l$$_gt as List<dynamic>?)?.map((e) => (e as int)).toList();
+    }
+    if (data.containsKey('_gte')) {
+      final l$$_gte = data['_gte'];
+      result$data['_gte'] =
+          (l$$_gte as List<dynamic>?)?.map((e) => (e as int)).toList();
+    }
+    if (data.containsKey('_in')) {
+      final l$$_in = data['_in'];
+      result$data['_in'] = (l$$_in as List<dynamic>?)
+          ?.map((e) => (e as List<dynamic>).map((e) => (e as int)).toList())
+          .toList();
+    }
+    if (data.containsKey('_isNull')) {
+      final l$$_isNull = data['_isNull'];
+      result$data['_isNull'] = (l$$_isNull as bool?);
+    }
+    if (data.containsKey('_lt')) {
+      final l$$_lt = data['_lt'];
+      result$data['_lt'] =
+          (l$$_lt as List<dynamic>?)?.map((e) => (e as int)).toList();
+    }
+    if (data.containsKey('_lte')) {
+      final l$$_lte = data['_lte'];
+      result$data['_lte'] =
+          (l$$_lte as List<dynamic>?)?.map((e) => (e as int)).toList();
+    }
+    if (data.containsKey('_neq')) {
+      final l$$_neq = data['_neq'];
+      result$data['_neq'] =
+          (l$$_neq as List<dynamic>?)?.map((e) => (e as int)).toList();
+    }
+    if (data.containsKey('_nin')) {
+      final l$$_nin = data['_nin'];
+      result$data['_nin'] = (l$$_nin as List<dynamic>?)
+          ?.map((e) => (e as List<dynamic>).map((e) => (e as int)).toList())
+          .toList();
+    }
+    return Input$IntArrayComparisonExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<int>? get $_containedIn => (_$data['_containedIn'] as List<int>?);
+
+  List<int>? get $_contains => (_$data['_contains'] as List<int>?);
+
+  List<int>? get $_eq => (_$data['_eq'] as List<int>?);
+
+  List<int>? get $_gt => (_$data['_gt'] as List<int>?);
+
+  List<int>? get $_gte => (_$data['_gte'] as List<int>?);
+
+  List<List<int>>? get $_in => (_$data['_in'] as List<List<int>>?);
+
+  bool? get $_isNull => (_$data['_isNull'] as bool?);
+
+  List<int>? get $_lt => (_$data['_lt'] as List<int>?);
+
+  List<int>? get $_lte => (_$data['_lte'] as List<int>?);
+
+  List<int>? get $_neq => (_$data['_neq'] as List<int>?);
+
+  List<List<int>>? get $_nin => (_$data['_nin'] as List<List<int>>?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_containedIn')) {
+      final l$$_containedIn = $_containedIn;
+      result$data['_containedIn'] = l$$_containedIn?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_contains')) {
+      final l$$_contains = $_contains;
+      result$data['_contains'] = l$$_contains?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_eq')) {
+      final l$$_eq = $_eq;
+      result$data['_eq'] = l$$_eq?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_gt')) {
+      final l$$_gt = $_gt;
+      result$data['_gt'] = l$$_gt?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_gte')) {
+      final l$$_gte = $_gte;
+      result$data['_gte'] = l$$_gte?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_in')) {
+      final l$$_in = $_in;
+      result$data['_in'] =
+          l$$_in?.map((e) => e.map((e) => e).toList()).toList();
+    }
+    if (_$data.containsKey('_isNull')) {
+      final l$$_isNull = $_isNull;
+      result$data['_isNull'] = l$$_isNull;
+    }
+    if (_$data.containsKey('_lt')) {
+      final l$$_lt = $_lt;
+      result$data['_lt'] = l$$_lt?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_lte')) {
+      final l$$_lte = $_lte;
+      result$data['_lte'] = l$$_lte?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_neq')) {
+      final l$$_neq = $_neq;
+      result$data['_neq'] = l$$_neq?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_nin')) {
+      final l$$_nin = $_nin;
+      result$data['_nin'] =
+          l$$_nin?.map((e) => e.map((e) => e).toList()).toList();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$IntArrayComparisonExp<Input$IntArrayComparisonExp>
+      get copyWith => CopyWith$Input$IntArrayComparisonExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$IntArrayComparisonExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_containedIn = $_containedIn;
+    final lOther$$_containedIn = other.$_containedIn;
+    if (_$data.containsKey('_containedIn') !=
+        other._$data.containsKey('_containedIn')) {
+      return false;
+    }
+    if (l$$_containedIn != null && lOther$$_containedIn != null) {
+      if (l$$_containedIn.length != lOther$$_containedIn.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_containedIn.length; i++) {
+        final l$$_containedIn$entry = l$$_containedIn[i];
+        final lOther$$_containedIn$entry = lOther$$_containedIn[i];
+        if (l$$_containedIn$entry != lOther$$_containedIn$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_containedIn != lOther$$_containedIn) {
+      return false;
+    }
+    final l$$_contains = $_contains;
+    final lOther$$_contains = other.$_contains;
+    if (_$data.containsKey('_contains') !=
+        other._$data.containsKey('_contains')) {
+      return false;
+    }
+    if (l$$_contains != null && lOther$$_contains != null) {
+      if (l$$_contains.length != lOther$$_contains.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_contains.length; i++) {
+        final l$$_contains$entry = l$$_contains[i];
+        final lOther$$_contains$entry = lOther$$_contains[i];
+        if (l$$_contains$entry != lOther$$_contains$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_contains != lOther$$_contains) {
+      return false;
+    }
+    final l$$_eq = $_eq;
+    final lOther$$_eq = other.$_eq;
+    if (_$data.containsKey('_eq') != other._$data.containsKey('_eq')) {
+      return false;
+    }
+    if (l$$_eq != null && lOther$$_eq != null) {
+      if (l$$_eq.length != lOther$$_eq.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_eq.length; i++) {
+        final l$$_eq$entry = l$$_eq[i];
+        final lOther$$_eq$entry = lOther$$_eq[i];
+        if (l$$_eq$entry != lOther$$_eq$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_eq != lOther$$_eq) {
+      return false;
+    }
+    final l$$_gt = $_gt;
+    final lOther$$_gt = other.$_gt;
+    if (_$data.containsKey('_gt') != other._$data.containsKey('_gt')) {
+      return false;
+    }
+    if (l$$_gt != null && lOther$$_gt != null) {
+      if (l$$_gt.length != lOther$$_gt.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_gt.length; i++) {
+        final l$$_gt$entry = l$$_gt[i];
+        final lOther$$_gt$entry = lOther$$_gt[i];
+        if (l$$_gt$entry != lOther$$_gt$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_gt != lOther$$_gt) {
+      return false;
+    }
+    final l$$_gte = $_gte;
+    final lOther$$_gte = other.$_gte;
+    if (_$data.containsKey('_gte') != other._$data.containsKey('_gte')) {
+      return false;
+    }
+    if (l$$_gte != null && lOther$$_gte != null) {
+      if (l$$_gte.length != lOther$$_gte.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_gte.length; i++) {
+        final l$$_gte$entry = l$$_gte[i];
+        final lOther$$_gte$entry = lOther$$_gte[i];
+        if (l$$_gte$entry != lOther$$_gte$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_gte != lOther$$_gte) {
+      return false;
+    }
+    final l$$_in = $_in;
+    final lOther$$_in = other.$_in;
+    if (_$data.containsKey('_in') != other._$data.containsKey('_in')) {
+      return false;
+    }
+    if (l$$_in != null && lOther$$_in != null) {
+      if (l$$_in.length != lOther$$_in.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_in.length; i++) {
+        final l$$_in$entry = l$$_in[i];
+        final lOther$$_in$entry = lOther$$_in[i];
+        if (l$$_in$entry.length != lOther$$_in$entry.length) {
+          return false;
+        }
+        for (int i = 0; i < l$$_in$entry.length; i++) {
+          final l$$_in$entry$entry = l$$_in$entry[i];
+          final lOther$$_in$entry$entry = lOther$$_in$entry[i];
+          if (l$$_in$entry$entry != lOther$$_in$entry$entry) {
+            return false;
+          }
+        }
+      }
+    } else if (l$$_in != lOther$$_in) {
+      return false;
+    }
+    final l$$_isNull = $_isNull;
+    final lOther$$_isNull = other.$_isNull;
+    if (_$data.containsKey('_isNull') != other._$data.containsKey('_isNull')) {
+      return false;
+    }
+    if (l$$_isNull != lOther$$_isNull) {
+      return false;
+    }
+    final l$$_lt = $_lt;
+    final lOther$$_lt = other.$_lt;
+    if (_$data.containsKey('_lt') != other._$data.containsKey('_lt')) {
+      return false;
+    }
+    if (l$$_lt != null && lOther$$_lt != null) {
+      if (l$$_lt.length != lOther$$_lt.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_lt.length; i++) {
+        final l$$_lt$entry = l$$_lt[i];
+        final lOther$$_lt$entry = lOther$$_lt[i];
+        if (l$$_lt$entry != lOther$$_lt$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_lt != lOther$$_lt) {
+      return false;
+    }
+    final l$$_lte = $_lte;
+    final lOther$$_lte = other.$_lte;
+    if (_$data.containsKey('_lte') != other._$data.containsKey('_lte')) {
+      return false;
+    }
+    if (l$$_lte != null && lOther$$_lte != null) {
+      if (l$$_lte.length != lOther$$_lte.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_lte.length; i++) {
+        final l$$_lte$entry = l$$_lte[i];
+        final lOther$$_lte$entry = lOther$$_lte[i];
+        if (l$$_lte$entry != lOther$$_lte$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_lte != lOther$$_lte) {
+      return false;
+    }
+    final l$$_neq = $_neq;
+    final lOther$$_neq = other.$_neq;
+    if (_$data.containsKey('_neq') != other._$data.containsKey('_neq')) {
+      return false;
+    }
+    if (l$$_neq != null && lOther$$_neq != null) {
+      if (l$$_neq.length != lOther$$_neq.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_neq.length; i++) {
+        final l$$_neq$entry = l$$_neq[i];
+        final lOther$$_neq$entry = lOther$$_neq[i];
+        if (l$$_neq$entry != lOther$$_neq$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_neq != lOther$$_neq) {
+      return false;
+    }
+    final l$$_nin = $_nin;
+    final lOther$$_nin = other.$_nin;
+    if (_$data.containsKey('_nin') != other._$data.containsKey('_nin')) {
+      return false;
+    }
+    if (l$$_nin != null && lOther$$_nin != null) {
+      if (l$$_nin.length != lOther$$_nin.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_nin.length; i++) {
+        final l$$_nin$entry = l$$_nin[i];
+        final lOther$$_nin$entry = lOther$$_nin[i];
+        if (l$$_nin$entry.length != lOther$$_nin$entry.length) {
+          return false;
+        }
+        for (int i = 0; i < l$$_nin$entry.length; i++) {
+          final l$$_nin$entry$entry = l$$_nin$entry[i];
+          final lOther$$_nin$entry$entry = lOther$$_nin$entry[i];
+          if (l$$_nin$entry$entry != lOther$$_nin$entry$entry) {
+            return false;
+          }
+        }
+      }
+    } else if (l$$_nin != lOther$$_nin) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_containedIn = $_containedIn;
+    final l$$_contains = $_contains;
+    final l$$_eq = $_eq;
+    final l$$_gt = $_gt;
+    final l$$_gte = $_gte;
+    final l$$_in = $_in;
+    final l$$_isNull = $_isNull;
+    final l$$_lt = $_lt;
+    final l$$_lte = $_lte;
+    final l$$_neq = $_neq;
+    final l$$_nin = $_nin;
+    return Object.hashAll([
+      _$data.containsKey('_containedIn')
+          ? l$$_containedIn == null
+              ? null
+              : Object.hashAll(l$$_containedIn.map((v) => v))
+          : const {},
+      _$data.containsKey('_contains')
+          ? l$$_contains == null
+              ? null
+              : Object.hashAll(l$$_contains.map((v) => v))
+          : const {},
+      _$data.containsKey('_eq')
+          ? l$$_eq == null
+              ? null
+              : Object.hashAll(l$$_eq.map((v) => v))
+          : const {},
+      _$data.containsKey('_gt')
+          ? l$$_gt == null
+              ? null
+              : Object.hashAll(l$$_gt.map((v) => v))
+          : const {},
+      _$data.containsKey('_gte')
+          ? l$$_gte == null
+              ? null
+              : Object.hashAll(l$$_gte.map((v) => v))
+          : const {},
+      _$data.containsKey('_in')
+          ? l$$_in == null
+              ? null
+              : Object.hashAll(
+                  l$$_in.map((v) => Object.hashAll(v.map((v) => v))))
+          : const {},
+      _$data.containsKey('_isNull') ? l$$_isNull : const {},
+      _$data.containsKey('_lt')
+          ? l$$_lt == null
+              ? null
+              : Object.hashAll(l$$_lt.map((v) => v))
+          : const {},
+      _$data.containsKey('_lte')
+          ? l$$_lte == null
+              ? null
+              : Object.hashAll(l$$_lte.map((v) => v))
+          : const {},
+      _$data.containsKey('_neq')
+          ? l$$_neq == null
+              ? null
+              : Object.hashAll(l$$_neq.map((v) => v))
+          : const {},
+      _$data.containsKey('_nin')
+          ? l$$_nin == null
+              ? null
+              : Object.hashAll(
+                  l$$_nin.map((v) => Object.hashAll(v.map((v) => v))))
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$IntArrayComparisonExp<TRes> {
+  factory CopyWith$Input$IntArrayComparisonExp(
+    Input$IntArrayComparisonExp instance,
+    TRes Function(Input$IntArrayComparisonExp) then,
+  ) = _CopyWithImpl$Input$IntArrayComparisonExp;
+
+  factory CopyWith$Input$IntArrayComparisonExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$IntArrayComparisonExp;
+
+  TRes call({
+    List<int>? $_containedIn,
+    List<int>? $_contains,
+    List<int>? $_eq,
+    List<int>? $_gt,
+    List<int>? $_gte,
+    List<List<int>>? $_in,
+    bool? $_isNull,
+    List<int>? $_lt,
+    List<int>? $_lte,
+    List<int>? $_neq,
+    List<List<int>>? $_nin,
+  });
+}
+
+class _CopyWithImpl$Input$IntArrayComparisonExp<TRes>
+    implements CopyWith$Input$IntArrayComparisonExp<TRes> {
+  _CopyWithImpl$Input$IntArrayComparisonExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$IntArrayComparisonExp _instance;
+
+  final TRes Function(Input$IntArrayComparisonExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_containedIn = _undefined,
+    Object? $_contains = _undefined,
+    Object? $_eq = _undefined,
+    Object? $_gt = _undefined,
+    Object? $_gte = _undefined,
+    Object? $_in = _undefined,
+    Object? $_isNull = _undefined,
+    Object? $_lt = _undefined,
+    Object? $_lte = _undefined,
+    Object? $_neq = _undefined,
+    Object? $_nin = _undefined,
+  }) =>
+      _then(Input$IntArrayComparisonExp._({
+        ..._instance._$data,
+        if ($_containedIn != _undefined)
+          '_containedIn': ($_containedIn as List<int>?),
+        if ($_contains != _undefined) '_contains': ($_contains as List<int>?),
+        if ($_eq != _undefined) '_eq': ($_eq as List<int>?),
+        if ($_gt != _undefined) '_gt': ($_gt as List<int>?),
+        if ($_gte != _undefined) '_gte': ($_gte as List<int>?),
+        if ($_in != _undefined) '_in': ($_in as List<List<int>>?),
+        if ($_isNull != _undefined) '_isNull': ($_isNull as bool?),
+        if ($_lt != _undefined) '_lt': ($_lt as List<int>?),
+        if ($_lte != _undefined) '_lte': ($_lte as List<int>?),
+        if ($_neq != _undefined) '_neq': ($_neq as List<int>?),
+        if ($_nin != _undefined) '_nin': ($_nin as List<List<int>>?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$IntArrayComparisonExp<TRes>
+    implements CopyWith$Input$IntArrayComparisonExp<TRes> {
+  _CopyWithStubImpl$Input$IntArrayComparisonExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<int>? $_containedIn,
+    List<int>? $_contains,
+    List<int>? $_eq,
+    List<int>? $_gt,
+    List<int>? $_gte,
+    List<List<int>>? $_in,
+    bool? $_isNull,
+    List<int>? $_lt,
+    List<int>? $_lte,
+    List<int>? $_neq,
+    List<List<int>>? $_nin,
+  }) =>
+      _res;
+}
+
+class Input$IntComparisonExp {
+  factory Input$IntComparisonExp({
+    int? $_eq,
+    int? $_gt,
+    int? $_gte,
+    List<int>? $_in,
+    bool? $_isNull,
+    int? $_lt,
+    int? $_lte,
+    int? $_neq,
+    List<int>? $_nin,
+  }) =>
+      Input$IntComparisonExp._({
+        if ($_eq != null) r'_eq': $_eq,
+        if ($_gt != null) r'_gt': $_gt,
+        if ($_gte != null) r'_gte': $_gte,
+        if ($_in != null) r'_in': $_in,
+        if ($_isNull != null) r'_isNull': $_isNull,
+        if ($_lt != null) r'_lt': $_lt,
+        if ($_lte != null) r'_lte': $_lte,
+        if ($_neq != null) r'_neq': $_neq,
+        if ($_nin != null) r'_nin': $_nin,
+      });
+
+  Input$IntComparisonExp._(this._$data);
+
+  factory Input$IntComparisonExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_eq')) {
+      final l$$_eq = data['_eq'];
+      result$data['_eq'] = (l$$_eq as int?);
+    }
+    if (data.containsKey('_gt')) {
+      final l$$_gt = data['_gt'];
+      result$data['_gt'] = (l$$_gt as int?);
+    }
+    if (data.containsKey('_gte')) {
+      final l$$_gte = data['_gte'];
+      result$data['_gte'] = (l$$_gte as int?);
+    }
+    if (data.containsKey('_in')) {
+      final l$$_in = data['_in'];
+      result$data['_in'] =
+          (l$$_in as List<dynamic>?)?.map((e) => (e as int)).toList();
+    }
+    if (data.containsKey('_isNull')) {
+      final l$$_isNull = data['_isNull'];
+      result$data['_isNull'] = (l$$_isNull as bool?);
+    }
+    if (data.containsKey('_lt')) {
+      final l$$_lt = data['_lt'];
+      result$data['_lt'] = (l$$_lt as int?);
+    }
+    if (data.containsKey('_lte')) {
+      final l$$_lte = data['_lte'];
+      result$data['_lte'] = (l$$_lte as int?);
+    }
+    if (data.containsKey('_neq')) {
+      final l$$_neq = data['_neq'];
+      result$data['_neq'] = (l$$_neq as int?);
+    }
+    if (data.containsKey('_nin')) {
+      final l$$_nin = data['_nin'];
+      result$data['_nin'] =
+          (l$$_nin as List<dynamic>?)?.map((e) => (e as int)).toList();
+    }
+    return Input$IntComparisonExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  int? get $_eq => (_$data['_eq'] as int?);
+
+  int? get $_gt => (_$data['_gt'] as int?);
+
+  int? get $_gte => (_$data['_gte'] as int?);
+
+  List<int>? get $_in => (_$data['_in'] as List<int>?);
+
+  bool? get $_isNull => (_$data['_isNull'] as bool?);
+
+  int? get $_lt => (_$data['_lt'] as int?);
+
+  int? get $_lte => (_$data['_lte'] as int?);
+
+  int? get $_neq => (_$data['_neq'] as int?);
+
+  List<int>? get $_nin => (_$data['_nin'] as List<int>?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_eq')) {
+      final l$$_eq = $_eq;
+      result$data['_eq'] = l$$_eq;
+    }
+    if (_$data.containsKey('_gt')) {
+      final l$$_gt = $_gt;
+      result$data['_gt'] = l$$_gt;
+    }
+    if (_$data.containsKey('_gte')) {
+      final l$$_gte = $_gte;
+      result$data['_gte'] = l$$_gte;
+    }
+    if (_$data.containsKey('_in')) {
+      final l$$_in = $_in;
+      result$data['_in'] = l$$_in?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_isNull')) {
+      final l$$_isNull = $_isNull;
+      result$data['_isNull'] = l$$_isNull;
+    }
+    if (_$data.containsKey('_lt')) {
+      final l$$_lt = $_lt;
+      result$data['_lt'] = l$$_lt;
+    }
+    if (_$data.containsKey('_lte')) {
+      final l$$_lte = $_lte;
+      result$data['_lte'] = l$$_lte;
+    }
+    if (_$data.containsKey('_neq')) {
+      final l$$_neq = $_neq;
+      result$data['_neq'] = l$$_neq;
+    }
+    if (_$data.containsKey('_nin')) {
+      final l$$_nin = $_nin;
+      result$data['_nin'] = l$$_nin?.map((e) => e).toList();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$IntComparisonExp<Input$IntComparisonExp> get copyWith =>
+      CopyWith$Input$IntComparisonExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$IntComparisonExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_eq = $_eq;
+    final lOther$$_eq = other.$_eq;
+    if (_$data.containsKey('_eq') != other._$data.containsKey('_eq')) {
+      return false;
+    }
+    if (l$$_eq != lOther$$_eq) {
+      return false;
+    }
+    final l$$_gt = $_gt;
+    final lOther$$_gt = other.$_gt;
+    if (_$data.containsKey('_gt') != other._$data.containsKey('_gt')) {
+      return false;
+    }
+    if (l$$_gt != lOther$$_gt) {
+      return false;
+    }
+    final l$$_gte = $_gte;
+    final lOther$$_gte = other.$_gte;
+    if (_$data.containsKey('_gte') != other._$data.containsKey('_gte')) {
+      return false;
+    }
+    if (l$$_gte != lOther$$_gte) {
+      return false;
+    }
+    final l$$_in = $_in;
+    final lOther$$_in = other.$_in;
+    if (_$data.containsKey('_in') != other._$data.containsKey('_in')) {
+      return false;
+    }
+    if (l$$_in != null && lOther$$_in != null) {
+      if (l$$_in.length != lOther$$_in.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_in.length; i++) {
+        final l$$_in$entry = l$$_in[i];
+        final lOther$$_in$entry = lOther$$_in[i];
+        if (l$$_in$entry != lOther$$_in$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_in != lOther$$_in) {
+      return false;
+    }
+    final l$$_isNull = $_isNull;
+    final lOther$$_isNull = other.$_isNull;
+    if (_$data.containsKey('_isNull') != other._$data.containsKey('_isNull')) {
+      return false;
+    }
+    if (l$$_isNull != lOther$$_isNull) {
+      return false;
+    }
+    final l$$_lt = $_lt;
+    final lOther$$_lt = other.$_lt;
+    if (_$data.containsKey('_lt') != other._$data.containsKey('_lt')) {
+      return false;
+    }
+    if (l$$_lt != lOther$$_lt) {
+      return false;
+    }
+    final l$$_lte = $_lte;
+    final lOther$$_lte = other.$_lte;
+    if (_$data.containsKey('_lte') != other._$data.containsKey('_lte')) {
+      return false;
+    }
+    if (l$$_lte != lOther$$_lte) {
+      return false;
+    }
+    final l$$_neq = $_neq;
+    final lOther$$_neq = other.$_neq;
+    if (_$data.containsKey('_neq') != other._$data.containsKey('_neq')) {
+      return false;
+    }
+    if (l$$_neq != lOther$$_neq) {
+      return false;
+    }
+    final l$$_nin = $_nin;
+    final lOther$$_nin = other.$_nin;
+    if (_$data.containsKey('_nin') != other._$data.containsKey('_nin')) {
+      return false;
+    }
+    if (l$$_nin != null && lOther$$_nin != null) {
+      if (l$$_nin.length != lOther$$_nin.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_nin.length; i++) {
+        final l$$_nin$entry = l$$_nin[i];
+        final lOther$$_nin$entry = lOther$$_nin[i];
+        if (l$$_nin$entry != lOther$$_nin$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_nin != lOther$$_nin) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_eq = $_eq;
+    final l$$_gt = $_gt;
+    final l$$_gte = $_gte;
+    final l$$_in = $_in;
+    final l$$_isNull = $_isNull;
+    final l$$_lt = $_lt;
+    final l$$_lte = $_lte;
+    final l$$_neq = $_neq;
+    final l$$_nin = $_nin;
+    return Object.hashAll([
+      _$data.containsKey('_eq') ? l$$_eq : const {},
+      _$data.containsKey('_gt') ? l$$_gt : const {},
+      _$data.containsKey('_gte') ? l$$_gte : const {},
+      _$data.containsKey('_in')
+          ? l$$_in == null
+              ? null
+              : Object.hashAll(l$$_in.map((v) => v))
+          : const {},
+      _$data.containsKey('_isNull') ? l$$_isNull : const {},
+      _$data.containsKey('_lt') ? l$$_lt : const {},
+      _$data.containsKey('_lte') ? l$$_lte : const {},
+      _$data.containsKey('_neq') ? l$$_neq : const {},
+      _$data.containsKey('_nin')
+          ? l$$_nin == null
+              ? null
+              : Object.hashAll(l$$_nin.map((v) => v))
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$IntComparisonExp<TRes> {
+  factory CopyWith$Input$IntComparisonExp(
+    Input$IntComparisonExp instance,
+    TRes Function(Input$IntComparisonExp) then,
+  ) = _CopyWithImpl$Input$IntComparisonExp;
+
+  factory CopyWith$Input$IntComparisonExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$IntComparisonExp;
+
+  TRes call({
+    int? $_eq,
+    int? $_gt,
+    int? $_gte,
+    List<int>? $_in,
+    bool? $_isNull,
+    int? $_lt,
+    int? $_lte,
+    int? $_neq,
+    List<int>? $_nin,
+  });
+}
+
+class _CopyWithImpl$Input$IntComparisonExp<TRes>
+    implements CopyWith$Input$IntComparisonExp<TRes> {
+  _CopyWithImpl$Input$IntComparisonExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$IntComparisonExp _instance;
+
+  final TRes Function(Input$IntComparisonExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_eq = _undefined,
+    Object? $_gt = _undefined,
+    Object? $_gte = _undefined,
+    Object? $_in = _undefined,
+    Object? $_isNull = _undefined,
+    Object? $_lt = _undefined,
+    Object? $_lte = _undefined,
+    Object? $_neq = _undefined,
+    Object? $_nin = _undefined,
+  }) =>
+      _then(Input$IntComparisonExp._({
+        ..._instance._$data,
+        if ($_eq != _undefined) '_eq': ($_eq as int?),
+        if ($_gt != _undefined) '_gt': ($_gt as int?),
+        if ($_gte != _undefined) '_gte': ($_gte as int?),
+        if ($_in != _undefined) '_in': ($_in as List<int>?),
+        if ($_isNull != _undefined) '_isNull': ($_isNull as bool?),
+        if ($_lt != _undefined) '_lt': ($_lt as int?),
+        if ($_lte != _undefined) '_lte': ($_lte as int?),
+        if ($_neq != _undefined) '_neq': ($_neq as int?),
+        if ($_nin != _undefined) '_nin': ($_nin as List<int>?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$IntComparisonExp<TRes>
+    implements CopyWith$Input$IntComparisonExp<TRes> {
+  _CopyWithStubImpl$Input$IntComparisonExp(this._res);
+
+  TRes _res;
+
+  call({
+    int? $_eq,
+    int? $_gt,
+    int? $_gte,
+    List<int>? $_in,
+    bool? $_isNull,
+    int? $_lt,
+    int? $_lte,
+    int? $_neq,
+    List<int>? $_nin,
+  }) =>
+      _res;
+}
+
+class Input$ItemsCounterBoolExp {
+  factory Input$ItemsCounterBoolExp({
+    List<Input$ItemsCounterBoolExp>? $_and,
+    Input$ItemsCounterBoolExp? $_not,
+    List<Input$ItemsCounterBoolExp>? $_or,
+    Input$StringComparisonExp? id,
+    Input$CounterLevelEnumComparisonExp? level,
+    Input$IntComparisonExp? total,
+    Input$ItemTypeEnumComparisonExp? type,
+  }) =>
+      Input$ItemsCounterBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (id != null) r'id': id,
+        if (level != null) r'level': level,
+        if (total != null) r'total': total,
+        if (type != null) r'type': type,
+      });
+
+  Input$ItemsCounterBoolExp._(this._$data);
+
+  factory Input$ItemsCounterBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map((e) =>
+              Input$ItemsCounterBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$ItemsCounterBoolExp.fromJson(
+              (l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map((e) =>
+              Input$ItemsCounterBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    if (data.containsKey('level')) {
+      final l$level = data['level'];
+      result$data['level'] = l$level == null
+          ? null
+          : Input$CounterLevelEnumComparisonExp.fromJson(
+              (l$level as Map<String, dynamic>));
+    }
+    if (data.containsKey('total')) {
+      final l$total = data['total'];
+      result$data['total'] = l$total == null
+          ? null
+          : Input$IntComparisonExp.fromJson((l$total as Map<String, dynamic>));
+    }
+    if (data.containsKey('type')) {
+      final l$type = data['type'];
+      result$data['type'] = l$type == null
+          ? null
+          : Input$ItemTypeEnumComparisonExp.fromJson(
+              (l$type as Map<String, dynamic>));
+    }
+    return Input$ItemsCounterBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$ItemsCounterBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$ItemsCounterBoolExp>?);
+
+  Input$ItemsCounterBoolExp? get $_not =>
+      (_$data['_not'] as Input$ItemsCounterBoolExp?);
+
+  List<Input$ItemsCounterBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$ItemsCounterBoolExp>?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Input$CounterLevelEnumComparisonExp? get level =>
+      (_$data['level'] as Input$CounterLevelEnumComparisonExp?);
+
+  Input$IntComparisonExp? get total =>
+      (_$data['total'] as Input$IntComparisonExp?);
+
+  Input$ItemTypeEnumComparisonExp? get type =>
+      (_$data['type'] as Input$ItemTypeEnumComparisonExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    if (_$data.containsKey('level')) {
+      final l$level = level;
+      result$data['level'] = l$level?.toJson();
+    }
+    if (_$data.containsKey('total')) {
+      final l$total = total;
+      result$data['total'] = l$total?.toJson();
+    }
+    if (_$data.containsKey('type')) {
+      final l$type = type;
+      result$data['type'] = l$type?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ItemsCounterBoolExp<Input$ItemsCounterBoolExp> get copyWith =>
+      CopyWith$Input$ItemsCounterBoolExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ItemsCounterBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$level = level;
+    final lOther$level = other.level;
+    if (_$data.containsKey('level') != other._$data.containsKey('level')) {
+      return false;
+    }
+    if (l$level != lOther$level) {
+      return false;
+    }
+    final l$total = total;
+    final lOther$total = other.total;
+    if (_$data.containsKey('total') != other._$data.containsKey('total')) {
+      return false;
+    }
+    if (l$total != lOther$total) {
+      return false;
+    }
+    final l$type = type;
+    final lOther$type = other.type;
+    if (_$data.containsKey('type') != other._$data.containsKey('type')) {
+      return false;
+    }
+    if (l$type != lOther$type) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$id = id;
+    final l$level = level;
+    final l$total = total;
+    final l$type = type;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('level') ? l$level : const {},
+      _$data.containsKey('total') ? l$total : const {},
+      _$data.containsKey('type') ? l$type : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ItemsCounterBoolExp<TRes> {
+  factory CopyWith$Input$ItemsCounterBoolExp(
+    Input$ItemsCounterBoolExp instance,
+    TRes Function(Input$ItemsCounterBoolExp) then,
+  ) = _CopyWithImpl$Input$ItemsCounterBoolExp;
+
+  factory CopyWith$Input$ItemsCounterBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$ItemsCounterBoolExp;
+
+  TRes call({
+    List<Input$ItemsCounterBoolExp>? $_and,
+    Input$ItemsCounterBoolExp? $_not,
+    List<Input$ItemsCounterBoolExp>? $_or,
+    Input$StringComparisonExp? id,
+    Input$CounterLevelEnumComparisonExp? level,
+    Input$IntComparisonExp? total,
+    Input$ItemTypeEnumComparisonExp? type,
+  });
+  TRes $_and(
+      Iterable<Input$ItemsCounterBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$ItemsCounterBoolExp<
+                      Input$ItemsCounterBoolExp>>?)
+          _fn);
+  CopyWith$Input$ItemsCounterBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$ItemsCounterBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$ItemsCounterBoolExp<
+                      Input$ItemsCounterBoolExp>>?)
+          _fn);
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+  CopyWith$Input$CounterLevelEnumComparisonExp<TRes> get level;
+  CopyWith$Input$IntComparisonExp<TRes> get total;
+  CopyWith$Input$ItemTypeEnumComparisonExp<TRes> get type;
+}
+
+class _CopyWithImpl$Input$ItemsCounterBoolExp<TRes>
+    implements CopyWith$Input$ItemsCounterBoolExp<TRes> {
+  _CopyWithImpl$Input$ItemsCounterBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ItemsCounterBoolExp _instance;
+
+  final TRes Function(Input$ItemsCounterBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? id = _undefined,
+    Object? level = _undefined,
+    Object? total = _undefined,
+    Object? type = _undefined,
+  }) =>
+      _then(Input$ItemsCounterBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined)
+          '_and': ($_and as List<Input$ItemsCounterBoolExp>?),
+        if ($_not != _undefined) '_not': ($_not as Input$ItemsCounterBoolExp?),
+        if ($_or != _undefined)
+          '_or': ($_or as List<Input$ItemsCounterBoolExp>?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+        if (level != _undefined)
+          'level': (level as Input$CounterLevelEnumComparisonExp?),
+        if (total != _undefined) 'total': (total as Input$IntComparisonExp?),
+        if (type != _undefined)
+          'type': (type as Input$ItemTypeEnumComparisonExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$ItemsCounterBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$ItemsCounterBoolExp<
+                          Input$ItemsCounterBoolExp>>?)
+              _fn) =>
+      call(
+          $_and: _fn(
+              _instance.$_and?.map((e) => CopyWith$Input$ItemsCounterBoolExp(
+                    e,
+                    (i) => i,
+                  )))?.toList());
+
+  CopyWith$Input$ItemsCounterBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$ItemsCounterBoolExp.stub(_then(_instance))
+        : CopyWith$Input$ItemsCounterBoolExp(
+            local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$ItemsCounterBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$ItemsCounterBoolExp<
+                          Input$ItemsCounterBoolExp>>?)
+              _fn) =>
+      call(
+          $_or:
+              _fn(_instance.$_or?.map((e) => CopyWith$Input$ItemsCounterBoolExp(
+                    e,
+                    (i) => i,
+                  )))?.toList());
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+
+  CopyWith$Input$CounterLevelEnumComparisonExp<TRes> get level {
+    final local$level = _instance.level;
+    return local$level == null
+        ? CopyWith$Input$CounterLevelEnumComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$CounterLevelEnumComparisonExp(
+            local$level, (e) => call(level: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get total {
+    final local$total = _instance.total;
+    return local$total == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(local$total, (e) => call(total: e));
+  }
+
+  CopyWith$Input$ItemTypeEnumComparisonExp<TRes> get type {
+    final local$type = _instance.type;
+    return local$type == null
+        ? CopyWith$Input$ItemTypeEnumComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$ItemTypeEnumComparisonExp(
+            local$type, (e) => call(type: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$ItemsCounterBoolExp<TRes>
+    implements CopyWith$Input$ItemsCounterBoolExp<TRes> {
+  _CopyWithStubImpl$Input$ItemsCounterBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$ItemsCounterBoolExp>? $_and,
+    Input$ItemsCounterBoolExp? $_not,
+    List<Input$ItemsCounterBoolExp>? $_or,
+    Input$StringComparisonExp? id,
+    Input$CounterLevelEnumComparisonExp? level,
+    Input$IntComparisonExp? total,
+    Input$ItemTypeEnumComparisonExp? type,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$ItemsCounterBoolExp<TRes> get $_not =>
+      CopyWith$Input$ItemsCounterBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$CounterLevelEnumComparisonExp<TRes> get level =>
+      CopyWith$Input$CounterLevelEnumComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get total =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$ItemTypeEnumComparisonExp<TRes> get type =>
+      CopyWith$Input$ItemTypeEnumComparisonExp.stub(_res);
+}
+
+class Input$ItemsCounterOrderBy {
+  factory Input$ItemsCounterOrderBy({
+    Enum$OrderBy? id,
+    Enum$OrderBy? level,
+    Enum$OrderBy? total,
+    Enum$OrderBy? type,
+  }) =>
+      Input$ItemsCounterOrderBy._({
+        if (id != null) r'id': id,
+        if (level != null) r'level': level,
+        if (total != null) r'total': total,
+        if (type != null) r'type': type,
+      });
+
+  Input$ItemsCounterOrderBy._(this._$data);
+
+  factory Input$ItemsCounterOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('level')) {
+      final l$level = data['level'];
+      result$data['level'] =
+          l$level == null ? null : fromJson$Enum$OrderBy((l$level as String));
+    }
+    if (data.containsKey('total')) {
+      final l$total = data['total'];
+      result$data['total'] =
+          l$total == null ? null : fromJson$Enum$OrderBy((l$total as String));
+    }
+    if (data.containsKey('type')) {
+      final l$type = data['type'];
+      result$data['type'] =
+          l$type == null ? null : fromJson$Enum$OrderBy((l$type as String));
+    }
+    return Input$ItemsCounterOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get level => (_$data['level'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get total => (_$data['total'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get type => (_$data['type'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('level')) {
+      final l$level = level;
+      result$data['level'] =
+          l$level == null ? null : toJson$Enum$OrderBy(l$level);
+    }
+    if (_$data.containsKey('total')) {
+      final l$total = total;
+      result$data['total'] =
+          l$total == null ? null : toJson$Enum$OrderBy(l$total);
+    }
+    if (_$data.containsKey('type')) {
+      final l$type = type;
+      result$data['type'] = l$type == null ? null : toJson$Enum$OrderBy(l$type);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ItemsCounterOrderBy<Input$ItemsCounterOrderBy> get copyWith =>
+      CopyWith$Input$ItemsCounterOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ItemsCounterOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$level = level;
+    final lOther$level = other.level;
+    if (_$data.containsKey('level') != other._$data.containsKey('level')) {
+      return false;
+    }
+    if (l$level != lOther$level) {
+      return false;
+    }
+    final l$total = total;
+    final lOther$total = other.total;
+    if (_$data.containsKey('total') != other._$data.containsKey('total')) {
+      return false;
+    }
+    if (l$total != lOther$total) {
+      return false;
+    }
+    final l$type = type;
+    final lOther$type = other.type;
+    if (_$data.containsKey('type') != other._$data.containsKey('type')) {
+      return false;
+    }
+    if (l$type != lOther$type) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$id = id;
+    final l$level = level;
+    final l$total = total;
+    final l$type = type;
+    return Object.hashAll([
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('level') ? l$level : const {},
+      _$data.containsKey('total') ? l$total : const {},
+      _$data.containsKey('type') ? l$type : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ItemsCounterOrderBy<TRes> {
+  factory CopyWith$Input$ItemsCounterOrderBy(
+    Input$ItemsCounterOrderBy instance,
+    TRes Function(Input$ItemsCounterOrderBy) then,
+  ) = _CopyWithImpl$Input$ItemsCounterOrderBy;
+
+  factory CopyWith$Input$ItemsCounterOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$ItemsCounterOrderBy;
+
+  TRes call({
+    Enum$OrderBy? id,
+    Enum$OrderBy? level,
+    Enum$OrderBy? total,
+    Enum$OrderBy? type,
+  });
+}
+
+class _CopyWithImpl$Input$ItemsCounterOrderBy<TRes>
+    implements CopyWith$Input$ItemsCounterOrderBy<TRes> {
+  _CopyWithImpl$Input$ItemsCounterOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ItemsCounterOrderBy _instance;
+
+  final TRes Function(Input$ItemsCounterOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? id = _undefined,
+    Object? level = _undefined,
+    Object? total = _undefined,
+    Object? type = _undefined,
+  }) =>
+      _then(Input$ItemsCounterOrderBy._({
+        ..._instance._$data,
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (level != _undefined) 'level': (level as Enum$OrderBy?),
+        if (total != _undefined) 'total': (total as Enum$OrderBy?),
+        if (type != _undefined) 'type': (type as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ItemsCounterOrderBy<TRes>
+    implements CopyWith$Input$ItemsCounterOrderBy<TRes> {
+  _CopyWithStubImpl$Input$ItemsCounterOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? id,
+    Enum$OrderBy? level,
+    Enum$OrderBy? total,
+    Enum$OrderBy? type,
+  }) =>
+      _res;
+}
+
+class Input$ItemTypeEnumComparisonExp {
+  factory Input$ItemTypeEnumComparisonExp({
+    Enum$ItemTypeEnum? $_eq,
+    List<Enum$ItemTypeEnum>? $_in,
+    bool? $_isNull,
+    Enum$ItemTypeEnum? $_neq,
+    List<Enum$ItemTypeEnum>? $_nin,
+  }) =>
+      Input$ItemTypeEnumComparisonExp._({
+        if ($_eq != null) r'_eq': $_eq,
+        if ($_in != null) r'_in': $_in,
+        if ($_isNull != null) r'_isNull': $_isNull,
+        if ($_neq != null) r'_neq': $_neq,
+        if ($_nin != null) r'_nin': $_nin,
+      });
+
+  Input$ItemTypeEnumComparisonExp._(this._$data);
+
+  factory Input$ItemTypeEnumComparisonExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_eq')) {
+      final l$$_eq = data['_eq'];
+      result$data['_eq'] = l$$_eq == null
+          ? null
+          : fromJson$Enum$ItemTypeEnum((l$$_eq as String));
+    }
+    if (data.containsKey('_in')) {
+      final l$$_in = data['_in'];
+      result$data['_in'] = (l$$_in as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$ItemTypeEnum((e as String)))
+          .toList();
+    }
+    if (data.containsKey('_isNull')) {
+      final l$$_isNull = data['_isNull'];
+      result$data['_isNull'] = (l$$_isNull as bool?);
+    }
+    if (data.containsKey('_neq')) {
+      final l$$_neq = data['_neq'];
+      result$data['_neq'] = l$$_neq == null
+          ? null
+          : fromJson$Enum$ItemTypeEnum((l$$_neq as String));
+    }
+    if (data.containsKey('_nin')) {
+      final l$$_nin = data['_nin'];
+      result$data['_nin'] = (l$$_nin as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$ItemTypeEnum((e as String)))
+          .toList();
+    }
+    return Input$ItemTypeEnumComparisonExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$ItemTypeEnum? get $_eq => (_$data['_eq'] as Enum$ItemTypeEnum?);
+
+  List<Enum$ItemTypeEnum>? get $_in =>
+      (_$data['_in'] as List<Enum$ItemTypeEnum>?);
+
+  bool? get $_isNull => (_$data['_isNull'] as bool?);
+
+  Enum$ItemTypeEnum? get $_neq => (_$data['_neq'] as Enum$ItemTypeEnum?);
+
+  List<Enum$ItemTypeEnum>? get $_nin =>
+      (_$data['_nin'] as List<Enum$ItemTypeEnum>?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_eq')) {
+      final l$$_eq = $_eq;
+      result$data['_eq'] =
+          l$$_eq == null ? null : toJson$Enum$ItemTypeEnum(l$$_eq);
+    }
+    if (_$data.containsKey('_in')) {
+      final l$$_in = $_in;
+      result$data['_in'] =
+          l$$_in?.map((e) => toJson$Enum$ItemTypeEnum(e)).toList();
+    }
+    if (_$data.containsKey('_isNull')) {
+      final l$$_isNull = $_isNull;
+      result$data['_isNull'] = l$$_isNull;
+    }
+    if (_$data.containsKey('_neq')) {
+      final l$$_neq = $_neq;
+      result$data['_neq'] =
+          l$$_neq == null ? null : toJson$Enum$ItemTypeEnum(l$$_neq);
+    }
+    if (_$data.containsKey('_nin')) {
+      final l$$_nin = $_nin;
+      result$data['_nin'] =
+          l$$_nin?.map((e) => toJson$Enum$ItemTypeEnum(e)).toList();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$ItemTypeEnumComparisonExp<Input$ItemTypeEnumComparisonExp>
+      get copyWith => CopyWith$Input$ItemTypeEnumComparisonExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$ItemTypeEnumComparisonExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_eq = $_eq;
+    final lOther$$_eq = other.$_eq;
+    if (_$data.containsKey('_eq') != other._$data.containsKey('_eq')) {
+      return false;
+    }
+    if (l$$_eq != lOther$$_eq) {
+      return false;
+    }
+    final l$$_in = $_in;
+    final lOther$$_in = other.$_in;
+    if (_$data.containsKey('_in') != other._$data.containsKey('_in')) {
+      return false;
+    }
+    if (l$$_in != null && lOther$$_in != null) {
+      if (l$$_in.length != lOther$$_in.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_in.length; i++) {
+        final l$$_in$entry = l$$_in[i];
+        final lOther$$_in$entry = lOther$$_in[i];
+        if (l$$_in$entry != lOther$$_in$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_in != lOther$$_in) {
+      return false;
+    }
+    final l$$_isNull = $_isNull;
+    final lOther$$_isNull = other.$_isNull;
+    if (_$data.containsKey('_isNull') != other._$data.containsKey('_isNull')) {
+      return false;
+    }
+    if (l$$_isNull != lOther$$_isNull) {
+      return false;
+    }
+    final l$$_neq = $_neq;
+    final lOther$$_neq = other.$_neq;
+    if (_$data.containsKey('_neq') != other._$data.containsKey('_neq')) {
+      return false;
+    }
+    if (l$$_neq != lOther$$_neq) {
+      return false;
+    }
+    final l$$_nin = $_nin;
+    final lOther$$_nin = other.$_nin;
+    if (_$data.containsKey('_nin') != other._$data.containsKey('_nin')) {
+      return false;
+    }
+    if (l$$_nin != null && lOther$$_nin != null) {
+      if (l$$_nin.length != lOther$$_nin.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_nin.length; i++) {
+        final l$$_nin$entry = l$$_nin[i];
+        final lOther$$_nin$entry = lOther$$_nin[i];
+        if (l$$_nin$entry != lOther$$_nin$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_nin != lOther$$_nin) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_eq = $_eq;
+    final l$$_in = $_in;
+    final l$$_isNull = $_isNull;
+    final l$$_neq = $_neq;
+    final l$$_nin = $_nin;
+    return Object.hashAll([
+      _$data.containsKey('_eq') ? l$$_eq : const {},
+      _$data.containsKey('_in')
+          ? l$$_in == null
+              ? null
+              : Object.hashAll(l$$_in.map((v) => v))
+          : const {},
+      _$data.containsKey('_isNull') ? l$$_isNull : const {},
+      _$data.containsKey('_neq') ? l$$_neq : const {},
+      _$data.containsKey('_nin')
+          ? l$$_nin == null
+              ? null
+              : Object.hashAll(l$$_nin.map((v) => v))
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$ItemTypeEnumComparisonExp<TRes> {
+  factory CopyWith$Input$ItemTypeEnumComparisonExp(
+    Input$ItemTypeEnumComparisonExp instance,
+    TRes Function(Input$ItemTypeEnumComparisonExp) then,
+  ) = _CopyWithImpl$Input$ItemTypeEnumComparisonExp;
+
+  factory CopyWith$Input$ItemTypeEnumComparisonExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$ItemTypeEnumComparisonExp;
+
+  TRes call({
+    Enum$ItemTypeEnum? $_eq,
+    List<Enum$ItemTypeEnum>? $_in,
+    bool? $_isNull,
+    Enum$ItemTypeEnum? $_neq,
+    List<Enum$ItemTypeEnum>? $_nin,
+  });
+}
+
+class _CopyWithImpl$Input$ItemTypeEnumComparisonExp<TRes>
+    implements CopyWith$Input$ItemTypeEnumComparisonExp<TRes> {
+  _CopyWithImpl$Input$ItemTypeEnumComparisonExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$ItemTypeEnumComparisonExp _instance;
+
+  final TRes Function(Input$ItemTypeEnumComparisonExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_eq = _undefined,
+    Object? $_in = _undefined,
+    Object? $_isNull = _undefined,
+    Object? $_neq = _undefined,
+    Object? $_nin = _undefined,
+  }) =>
+      _then(Input$ItemTypeEnumComparisonExp._({
+        ..._instance._$data,
+        if ($_eq != _undefined) '_eq': ($_eq as Enum$ItemTypeEnum?),
+        if ($_in != _undefined) '_in': ($_in as List<Enum$ItemTypeEnum>?),
+        if ($_isNull != _undefined) '_isNull': ($_isNull as bool?),
+        if ($_neq != _undefined) '_neq': ($_neq as Enum$ItemTypeEnum?),
+        if ($_nin != _undefined) '_nin': ($_nin as List<Enum$ItemTypeEnum>?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$ItemTypeEnumComparisonExp<TRes>
+    implements CopyWith$Input$ItemTypeEnumComparisonExp<TRes> {
+  _CopyWithStubImpl$Input$ItemTypeEnumComparisonExp(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$ItemTypeEnum? $_eq,
+    List<Enum$ItemTypeEnum>? $_in,
+    bool? $_isNull,
+    Enum$ItemTypeEnum? $_neq,
+    List<Enum$ItemTypeEnum>? $_nin,
+  }) =>
+      _res;
+}
+
+class Input$JsonbCastExp {
+  factory Input$JsonbCastExp({Input$StringComparisonExp? $String}) =>
+      Input$JsonbCastExp._({
+        if ($String != null) r'String': $String,
+      });
+
+  Input$JsonbCastExp._(this._$data);
+
+  factory Input$JsonbCastExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('String')) {
+      final l$$String = data['String'];
+      result$data['String'] = l$$String == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$$String as Map<String, dynamic>));
+    }
+    return Input$JsonbCastExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$StringComparisonExp? get $String =>
+      (_$data['String'] as Input$StringComparisonExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('String')) {
+      final l$$String = $String;
+      result$data['String'] = l$$String?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$JsonbCastExp<Input$JsonbCastExp> get copyWith =>
+      CopyWith$Input$JsonbCastExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$JsonbCastExp) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$String = $String;
+    final lOther$$String = other.$String;
+    if (_$data.containsKey('String') != other._$data.containsKey('String')) {
+      return false;
+    }
+    if (l$$String != lOther$$String) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$String = $String;
+    return Object.hashAll(
+        [_$data.containsKey('String') ? l$$String : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$JsonbCastExp<TRes> {
+  factory CopyWith$Input$JsonbCastExp(
+    Input$JsonbCastExp instance,
+    TRes Function(Input$JsonbCastExp) then,
+  ) = _CopyWithImpl$Input$JsonbCastExp;
+
+  factory CopyWith$Input$JsonbCastExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$JsonbCastExp;
+
+  TRes call({Input$StringComparisonExp? $String});
+  CopyWith$Input$StringComparisonExp<TRes> get $String;
+}
+
+class _CopyWithImpl$Input$JsonbCastExp<TRes>
+    implements CopyWith$Input$JsonbCastExp<TRes> {
+  _CopyWithImpl$Input$JsonbCastExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$JsonbCastExp _instance;
+
+  final TRes Function(Input$JsonbCastExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? $String = _undefined}) => _then(Input$JsonbCastExp._({
+        ..._instance._$data,
+        if ($String != _undefined)
+          'String': ($String as Input$StringComparisonExp?),
+      }));
+
+  CopyWith$Input$StringComparisonExp<TRes> get $String {
+    final local$$String = _instance.$String;
+    return local$$String == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$$String, (e) => call($String: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$JsonbCastExp<TRes>
+    implements CopyWith$Input$JsonbCastExp<TRes> {
+  _CopyWithStubImpl$Input$JsonbCastExp(this._res);
+
+  TRes _res;
+
+  call({Input$StringComparisonExp? $String}) => _res;
+
+  CopyWith$Input$StringComparisonExp<TRes> get $String =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+}
+
+class Input$JsonbComparisonExp {
+  factory Input$JsonbComparisonExp({
+    Input$JsonbCastExp? $_cast,
+    Map<String, dynamic>? $_containedIn,
+    Map<String, dynamic>? $_contains,
+    Map<String, dynamic>? $_eq,
+    Map<String, dynamic>? $_gt,
+    Map<String, dynamic>? $_gte,
+    String? $_hasKey,
+    List<String>? $_hasKeysAll,
+    List<String>? $_hasKeysAny,
+    List<Map<String, dynamic>>? $_in,
+    bool? $_isNull,
+    Map<String, dynamic>? $_lt,
+    Map<String, dynamic>? $_lte,
+    Map<String, dynamic>? $_neq,
+    List<Map<String, dynamic>>? $_nin,
+  }) =>
+      Input$JsonbComparisonExp._({
+        if ($_cast != null) r'_cast': $_cast,
+        if ($_containedIn != null) r'_containedIn': $_containedIn,
+        if ($_contains != null) r'_contains': $_contains,
+        if ($_eq != null) r'_eq': $_eq,
+        if ($_gt != null) r'_gt': $_gt,
+        if ($_gte != null) r'_gte': $_gte,
+        if ($_hasKey != null) r'_hasKey': $_hasKey,
+        if ($_hasKeysAll != null) r'_hasKeysAll': $_hasKeysAll,
+        if ($_hasKeysAny != null) r'_hasKeysAny': $_hasKeysAny,
+        if ($_in != null) r'_in': $_in,
+        if ($_isNull != null) r'_isNull': $_isNull,
+        if ($_lt != null) r'_lt': $_lt,
+        if ($_lte != null) r'_lte': $_lte,
+        if ($_neq != null) r'_neq': $_neq,
+        if ($_nin != null) r'_nin': $_nin,
+      });
+
+  Input$JsonbComparisonExp._(this._$data);
+
+  factory Input$JsonbComparisonExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_cast')) {
+      final l$$_cast = data['_cast'];
+      result$data['_cast'] = l$$_cast == null
+          ? null
+          : Input$JsonbCastExp.fromJson((l$$_cast as Map<String, dynamic>));
+    }
+    if (data.containsKey('_containedIn')) {
+      final l$$_containedIn = data['_containedIn'];
+      result$data['_containedIn'] = (l$$_containedIn as Map<String, dynamic>?);
+    }
+    if (data.containsKey('_contains')) {
+      final l$$_contains = data['_contains'];
+      result$data['_contains'] = (l$$_contains as Map<String, dynamic>?);
+    }
+    if (data.containsKey('_eq')) {
+      final l$$_eq = data['_eq'];
+      result$data['_eq'] = (l$$_eq as Map<String, dynamic>?);
+    }
+    if (data.containsKey('_gt')) {
+      final l$$_gt = data['_gt'];
+      result$data['_gt'] = (l$$_gt as Map<String, dynamic>?);
+    }
+    if (data.containsKey('_gte')) {
+      final l$$_gte = data['_gte'];
+      result$data['_gte'] = (l$$_gte as Map<String, dynamic>?);
+    }
+    if (data.containsKey('_hasKey')) {
+      final l$$_hasKey = data['_hasKey'];
+      result$data['_hasKey'] = (l$$_hasKey as String?);
+    }
+    if (data.containsKey('_hasKeysAll')) {
+      final l$$_hasKeysAll = data['_hasKeysAll'];
+      result$data['_hasKeysAll'] = (l$$_hasKeysAll as List<dynamic>?)
+          ?.map((e) => (e as String))
+          .toList();
+    }
+    if (data.containsKey('_hasKeysAny')) {
+      final l$$_hasKeysAny = data['_hasKeysAny'];
+      result$data['_hasKeysAny'] = (l$$_hasKeysAny as List<dynamic>?)
+          ?.map((e) => (e as String))
+          .toList();
+    }
+    if (data.containsKey('_in')) {
+      final l$$_in = data['_in'];
+      result$data['_in'] = (l$$_in as List<dynamic>?)
+          ?.map((e) => (e as Map<String, dynamic>))
+          .toList();
+    }
+    if (data.containsKey('_isNull')) {
+      final l$$_isNull = data['_isNull'];
+      result$data['_isNull'] = (l$$_isNull as bool?);
+    }
+    if (data.containsKey('_lt')) {
+      final l$$_lt = data['_lt'];
+      result$data['_lt'] = (l$$_lt as Map<String, dynamic>?);
+    }
+    if (data.containsKey('_lte')) {
+      final l$$_lte = data['_lte'];
+      result$data['_lte'] = (l$$_lte as Map<String, dynamic>?);
+    }
+    if (data.containsKey('_neq')) {
+      final l$$_neq = data['_neq'];
+      result$data['_neq'] = (l$$_neq as Map<String, dynamic>?);
+    }
+    if (data.containsKey('_nin')) {
+      final l$$_nin = data['_nin'];
+      result$data['_nin'] = (l$$_nin as List<dynamic>?)
+          ?.map((e) => (e as Map<String, dynamic>))
+          .toList();
+    }
+    return Input$JsonbComparisonExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$JsonbCastExp? get $_cast => (_$data['_cast'] as Input$JsonbCastExp?);
+
+  Map<String, dynamic>? get $_containedIn =>
+      (_$data['_containedIn'] as Map<String, dynamic>?);
+
+  Map<String, dynamic>? get $_contains =>
+      (_$data['_contains'] as Map<String, dynamic>?);
+
+  Map<String, dynamic>? get $_eq => (_$data['_eq'] as Map<String, dynamic>?);
+
+  Map<String, dynamic>? get $_gt => (_$data['_gt'] as Map<String, dynamic>?);
+
+  Map<String, dynamic>? get $_gte => (_$data['_gte'] as Map<String, dynamic>?);
+
+  String? get $_hasKey => (_$data['_hasKey'] as String?);
+
+  List<String>? get $_hasKeysAll => (_$data['_hasKeysAll'] as List<String>?);
+
+  List<String>? get $_hasKeysAny => (_$data['_hasKeysAny'] as List<String>?);
+
+  List<Map<String, dynamic>>? get $_in =>
+      (_$data['_in'] as List<Map<String, dynamic>>?);
+
+  bool? get $_isNull => (_$data['_isNull'] as bool?);
+
+  Map<String, dynamic>? get $_lt => (_$data['_lt'] as Map<String, dynamic>?);
+
+  Map<String, dynamic>? get $_lte => (_$data['_lte'] as Map<String, dynamic>?);
+
+  Map<String, dynamic>? get $_neq => (_$data['_neq'] as Map<String, dynamic>?);
+
+  List<Map<String, dynamic>>? get $_nin =>
+      (_$data['_nin'] as List<Map<String, dynamic>>?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_cast')) {
+      final l$$_cast = $_cast;
+      result$data['_cast'] = l$$_cast?.toJson();
+    }
+    if (_$data.containsKey('_containedIn')) {
+      final l$$_containedIn = $_containedIn;
+      result$data['_containedIn'] = l$$_containedIn;
+    }
+    if (_$data.containsKey('_contains')) {
+      final l$$_contains = $_contains;
+      result$data['_contains'] = l$$_contains;
+    }
+    if (_$data.containsKey('_eq')) {
+      final l$$_eq = $_eq;
+      result$data['_eq'] = l$$_eq;
+    }
+    if (_$data.containsKey('_gt')) {
+      final l$$_gt = $_gt;
+      result$data['_gt'] = l$$_gt;
+    }
+    if (_$data.containsKey('_gte')) {
+      final l$$_gte = $_gte;
+      result$data['_gte'] = l$$_gte;
+    }
+    if (_$data.containsKey('_hasKey')) {
+      final l$$_hasKey = $_hasKey;
+      result$data['_hasKey'] = l$$_hasKey;
+    }
+    if (_$data.containsKey('_hasKeysAll')) {
+      final l$$_hasKeysAll = $_hasKeysAll;
+      result$data['_hasKeysAll'] = l$$_hasKeysAll?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_hasKeysAny')) {
+      final l$$_hasKeysAny = $_hasKeysAny;
+      result$data['_hasKeysAny'] = l$$_hasKeysAny?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_in')) {
+      final l$$_in = $_in;
+      result$data['_in'] = l$$_in?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_isNull')) {
+      final l$$_isNull = $_isNull;
+      result$data['_isNull'] = l$$_isNull;
+    }
+    if (_$data.containsKey('_lt')) {
+      final l$$_lt = $_lt;
+      result$data['_lt'] = l$$_lt;
+    }
+    if (_$data.containsKey('_lte')) {
+      final l$$_lte = $_lte;
+      result$data['_lte'] = l$$_lte;
+    }
+    if (_$data.containsKey('_neq')) {
+      final l$$_neq = $_neq;
+      result$data['_neq'] = l$$_neq;
+    }
+    if (_$data.containsKey('_nin')) {
+      final l$$_nin = $_nin;
+      result$data['_nin'] = l$$_nin?.map((e) => e).toList();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$JsonbComparisonExp<Input$JsonbComparisonExp> get copyWith =>
+      CopyWith$Input$JsonbComparisonExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$JsonbComparisonExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_cast = $_cast;
+    final lOther$$_cast = other.$_cast;
+    if (_$data.containsKey('_cast') != other._$data.containsKey('_cast')) {
+      return false;
+    }
+    if (l$$_cast != lOther$$_cast) {
+      return false;
+    }
+    final l$$_containedIn = $_containedIn;
+    final lOther$$_containedIn = other.$_containedIn;
+    if (_$data.containsKey('_containedIn') !=
+        other._$data.containsKey('_containedIn')) {
+      return false;
+    }
+    if (l$$_containedIn != lOther$$_containedIn) {
+      return false;
+    }
+    final l$$_contains = $_contains;
+    final lOther$$_contains = other.$_contains;
+    if (_$data.containsKey('_contains') !=
+        other._$data.containsKey('_contains')) {
+      return false;
+    }
+    if (l$$_contains != lOther$$_contains) {
+      return false;
+    }
+    final l$$_eq = $_eq;
+    final lOther$$_eq = other.$_eq;
+    if (_$data.containsKey('_eq') != other._$data.containsKey('_eq')) {
+      return false;
+    }
+    if (l$$_eq != lOther$$_eq) {
+      return false;
+    }
+    final l$$_gt = $_gt;
+    final lOther$$_gt = other.$_gt;
+    if (_$data.containsKey('_gt') != other._$data.containsKey('_gt')) {
+      return false;
+    }
+    if (l$$_gt != lOther$$_gt) {
+      return false;
+    }
+    final l$$_gte = $_gte;
+    final lOther$$_gte = other.$_gte;
+    if (_$data.containsKey('_gte') != other._$data.containsKey('_gte')) {
+      return false;
+    }
+    if (l$$_gte != lOther$$_gte) {
+      return false;
+    }
+    final l$$_hasKey = $_hasKey;
+    final lOther$$_hasKey = other.$_hasKey;
+    if (_$data.containsKey('_hasKey') != other._$data.containsKey('_hasKey')) {
+      return false;
+    }
+    if (l$$_hasKey != lOther$$_hasKey) {
+      return false;
+    }
+    final l$$_hasKeysAll = $_hasKeysAll;
+    final lOther$$_hasKeysAll = other.$_hasKeysAll;
+    if (_$data.containsKey('_hasKeysAll') !=
+        other._$data.containsKey('_hasKeysAll')) {
+      return false;
+    }
+    if (l$$_hasKeysAll != null && lOther$$_hasKeysAll != null) {
+      if (l$$_hasKeysAll.length != lOther$$_hasKeysAll.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_hasKeysAll.length; i++) {
+        final l$$_hasKeysAll$entry = l$$_hasKeysAll[i];
+        final lOther$$_hasKeysAll$entry = lOther$$_hasKeysAll[i];
+        if (l$$_hasKeysAll$entry != lOther$$_hasKeysAll$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_hasKeysAll != lOther$$_hasKeysAll) {
+      return false;
+    }
+    final l$$_hasKeysAny = $_hasKeysAny;
+    final lOther$$_hasKeysAny = other.$_hasKeysAny;
+    if (_$data.containsKey('_hasKeysAny') !=
+        other._$data.containsKey('_hasKeysAny')) {
+      return false;
+    }
+    if (l$$_hasKeysAny != null && lOther$$_hasKeysAny != null) {
+      if (l$$_hasKeysAny.length != lOther$$_hasKeysAny.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_hasKeysAny.length; i++) {
+        final l$$_hasKeysAny$entry = l$$_hasKeysAny[i];
+        final lOther$$_hasKeysAny$entry = lOther$$_hasKeysAny[i];
+        if (l$$_hasKeysAny$entry != lOther$$_hasKeysAny$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_hasKeysAny != lOther$$_hasKeysAny) {
+      return false;
+    }
+    final l$$_in = $_in;
+    final lOther$$_in = other.$_in;
+    if (_$data.containsKey('_in') != other._$data.containsKey('_in')) {
+      return false;
+    }
+    if (l$$_in != null && lOther$$_in != null) {
+      if (l$$_in.length != lOther$$_in.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_in.length; i++) {
+        final l$$_in$entry = l$$_in[i];
+        final lOther$$_in$entry = lOther$$_in[i];
+        if (l$$_in$entry != lOther$$_in$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_in != lOther$$_in) {
+      return false;
+    }
+    final l$$_isNull = $_isNull;
+    final lOther$$_isNull = other.$_isNull;
+    if (_$data.containsKey('_isNull') != other._$data.containsKey('_isNull')) {
+      return false;
+    }
+    if (l$$_isNull != lOther$$_isNull) {
+      return false;
+    }
+    final l$$_lt = $_lt;
+    final lOther$$_lt = other.$_lt;
+    if (_$data.containsKey('_lt') != other._$data.containsKey('_lt')) {
+      return false;
+    }
+    if (l$$_lt != lOther$$_lt) {
+      return false;
+    }
+    final l$$_lte = $_lte;
+    final lOther$$_lte = other.$_lte;
+    if (_$data.containsKey('_lte') != other._$data.containsKey('_lte')) {
+      return false;
+    }
+    if (l$$_lte != lOther$$_lte) {
+      return false;
+    }
+    final l$$_neq = $_neq;
+    final lOther$$_neq = other.$_neq;
+    if (_$data.containsKey('_neq') != other._$data.containsKey('_neq')) {
+      return false;
+    }
+    if (l$$_neq != lOther$$_neq) {
+      return false;
+    }
+    final l$$_nin = $_nin;
+    final lOther$$_nin = other.$_nin;
+    if (_$data.containsKey('_nin') != other._$data.containsKey('_nin')) {
+      return false;
+    }
+    if (l$$_nin != null && lOther$$_nin != null) {
+      if (l$$_nin.length != lOther$$_nin.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_nin.length; i++) {
+        final l$$_nin$entry = l$$_nin[i];
+        final lOther$$_nin$entry = lOther$$_nin[i];
+        if (l$$_nin$entry != lOther$$_nin$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_nin != lOther$$_nin) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_cast = $_cast;
+    final l$$_containedIn = $_containedIn;
+    final l$$_contains = $_contains;
+    final l$$_eq = $_eq;
+    final l$$_gt = $_gt;
+    final l$$_gte = $_gte;
+    final l$$_hasKey = $_hasKey;
+    final l$$_hasKeysAll = $_hasKeysAll;
+    final l$$_hasKeysAny = $_hasKeysAny;
+    final l$$_in = $_in;
+    final l$$_isNull = $_isNull;
+    final l$$_lt = $_lt;
+    final l$$_lte = $_lte;
+    final l$$_neq = $_neq;
+    final l$$_nin = $_nin;
+    return Object.hashAll([
+      _$data.containsKey('_cast') ? l$$_cast : const {},
+      _$data.containsKey('_containedIn') ? l$$_containedIn : const {},
+      _$data.containsKey('_contains') ? l$$_contains : const {},
+      _$data.containsKey('_eq') ? l$$_eq : const {},
+      _$data.containsKey('_gt') ? l$$_gt : const {},
+      _$data.containsKey('_gte') ? l$$_gte : const {},
+      _$data.containsKey('_hasKey') ? l$$_hasKey : const {},
+      _$data.containsKey('_hasKeysAll')
+          ? l$$_hasKeysAll == null
+              ? null
+              : Object.hashAll(l$$_hasKeysAll.map((v) => v))
+          : const {},
+      _$data.containsKey('_hasKeysAny')
+          ? l$$_hasKeysAny == null
+              ? null
+              : Object.hashAll(l$$_hasKeysAny.map((v) => v))
+          : const {},
+      _$data.containsKey('_in')
+          ? l$$_in == null
+              ? null
+              : Object.hashAll(l$$_in.map((v) => v))
+          : const {},
+      _$data.containsKey('_isNull') ? l$$_isNull : const {},
+      _$data.containsKey('_lt') ? l$$_lt : const {},
+      _$data.containsKey('_lte') ? l$$_lte : const {},
+      _$data.containsKey('_neq') ? l$$_neq : const {},
+      _$data.containsKey('_nin')
+          ? l$$_nin == null
+              ? null
+              : Object.hashAll(l$$_nin.map((v) => v))
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$JsonbComparisonExp<TRes> {
+  factory CopyWith$Input$JsonbComparisonExp(
+    Input$JsonbComparisonExp instance,
+    TRes Function(Input$JsonbComparisonExp) then,
+  ) = _CopyWithImpl$Input$JsonbComparisonExp;
+
+  factory CopyWith$Input$JsonbComparisonExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$JsonbComparisonExp;
+
+  TRes call({
+    Input$JsonbCastExp? $_cast,
+    Map<String, dynamic>? $_containedIn,
+    Map<String, dynamic>? $_contains,
+    Map<String, dynamic>? $_eq,
+    Map<String, dynamic>? $_gt,
+    Map<String, dynamic>? $_gte,
+    String? $_hasKey,
+    List<String>? $_hasKeysAll,
+    List<String>? $_hasKeysAny,
+    List<Map<String, dynamic>>? $_in,
+    bool? $_isNull,
+    Map<String, dynamic>? $_lt,
+    Map<String, dynamic>? $_lte,
+    Map<String, dynamic>? $_neq,
+    List<Map<String, dynamic>>? $_nin,
+  });
+  CopyWith$Input$JsonbCastExp<TRes> get $_cast;
+}
+
+class _CopyWithImpl$Input$JsonbComparisonExp<TRes>
+    implements CopyWith$Input$JsonbComparisonExp<TRes> {
+  _CopyWithImpl$Input$JsonbComparisonExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$JsonbComparisonExp _instance;
+
+  final TRes Function(Input$JsonbComparisonExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_cast = _undefined,
+    Object? $_containedIn = _undefined,
+    Object? $_contains = _undefined,
+    Object? $_eq = _undefined,
+    Object? $_gt = _undefined,
+    Object? $_gte = _undefined,
+    Object? $_hasKey = _undefined,
+    Object? $_hasKeysAll = _undefined,
+    Object? $_hasKeysAny = _undefined,
+    Object? $_in = _undefined,
+    Object? $_isNull = _undefined,
+    Object? $_lt = _undefined,
+    Object? $_lte = _undefined,
+    Object? $_neq = _undefined,
+    Object? $_nin = _undefined,
+  }) =>
+      _then(Input$JsonbComparisonExp._({
+        ..._instance._$data,
+        if ($_cast != _undefined) '_cast': ($_cast as Input$JsonbCastExp?),
+        if ($_containedIn != _undefined)
+          '_containedIn': ($_containedIn as Map<String, dynamic>?),
+        if ($_contains != _undefined)
+          '_contains': ($_contains as Map<String, dynamic>?),
+        if ($_eq != _undefined) '_eq': ($_eq as Map<String, dynamic>?),
+        if ($_gt != _undefined) '_gt': ($_gt as Map<String, dynamic>?),
+        if ($_gte != _undefined) '_gte': ($_gte as Map<String, dynamic>?),
+        if ($_hasKey != _undefined) '_hasKey': ($_hasKey as String?),
+        if ($_hasKeysAll != _undefined)
+          '_hasKeysAll': ($_hasKeysAll as List<String>?),
+        if ($_hasKeysAny != _undefined)
+          '_hasKeysAny': ($_hasKeysAny as List<String>?),
+        if ($_in != _undefined) '_in': ($_in as List<Map<String, dynamic>>?),
+        if ($_isNull != _undefined) '_isNull': ($_isNull as bool?),
+        if ($_lt != _undefined) '_lt': ($_lt as Map<String, dynamic>?),
+        if ($_lte != _undefined) '_lte': ($_lte as Map<String, dynamic>?),
+        if ($_neq != _undefined) '_neq': ($_neq as Map<String, dynamic>?),
+        if ($_nin != _undefined) '_nin': ($_nin as List<Map<String, dynamic>>?),
+      }));
+
+  CopyWith$Input$JsonbCastExp<TRes> get $_cast {
+    final local$$_cast = _instance.$_cast;
+    return local$$_cast == null
+        ? CopyWith$Input$JsonbCastExp.stub(_then(_instance))
+        : CopyWith$Input$JsonbCastExp(local$$_cast, (e) => call($_cast: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$JsonbComparisonExp<TRes>
+    implements CopyWith$Input$JsonbComparisonExp<TRes> {
+  _CopyWithStubImpl$Input$JsonbComparisonExp(this._res);
+
+  TRes _res;
+
+  call({
+    Input$JsonbCastExp? $_cast,
+    Map<String, dynamic>? $_containedIn,
+    Map<String, dynamic>? $_contains,
+    Map<String, dynamic>? $_eq,
+    Map<String, dynamic>? $_gt,
+    Map<String, dynamic>? $_gte,
+    String? $_hasKey,
+    List<String>? $_hasKeysAll,
+    List<String>? $_hasKeysAny,
+    List<Map<String, dynamic>>? $_in,
+    bool? $_isNull,
+    Map<String, dynamic>? $_lt,
+    Map<String, dynamic>? $_lte,
+    Map<String, dynamic>? $_neq,
+    List<Map<String, dynamic>>? $_nin,
+  }) =>
+      _res;
+
+  CopyWith$Input$JsonbCastExp<TRes> get $_cast =>
+      CopyWith$Input$JsonbCastExp.stub(_res);
+}
+
+class Input$MembershipEventAggregateBoolExp {
+  factory Input$MembershipEventAggregateBoolExp(
+          {Input$membershipEventAggregateBoolExpCount? count}) =>
+      Input$MembershipEventAggregateBoolExp._({
+        if (count != null) r'count': count,
+      });
+
+  Input$MembershipEventAggregateBoolExp._(this._$data);
+
+  factory Input$MembershipEventAggregateBoolExp.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] = l$count == null
+          ? null
+          : Input$membershipEventAggregateBoolExpCount.fromJson(
+              (l$count as Map<String, dynamic>));
+    }
+    return Input$MembershipEventAggregateBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$membershipEventAggregateBoolExpCount? get count =>
+      (_$data['count'] as Input$membershipEventAggregateBoolExpCount?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] = l$count?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$MembershipEventAggregateBoolExp<
+          Input$MembershipEventAggregateBoolExp>
+      get copyWith => CopyWith$Input$MembershipEventAggregateBoolExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$MembershipEventAggregateBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$count = count;
+    return Object.hashAll([_$data.containsKey('count') ? l$count : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$MembershipEventAggregateBoolExp<TRes> {
+  factory CopyWith$Input$MembershipEventAggregateBoolExp(
+    Input$MembershipEventAggregateBoolExp instance,
+    TRes Function(Input$MembershipEventAggregateBoolExp) then,
+  ) = _CopyWithImpl$Input$MembershipEventAggregateBoolExp;
+
+  factory CopyWith$Input$MembershipEventAggregateBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$MembershipEventAggregateBoolExp;
+
+  TRes call({Input$membershipEventAggregateBoolExpCount? count});
+  CopyWith$Input$membershipEventAggregateBoolExpCount<TRes> get count;
+}
+
+class _CopyWithImpl$Input$MembershipEventAggregateBoolExp<TRes>
+    implements CopyWith$Input$MembershipEventAggregateBoolExp<TRes> {
+  _CopyWithImpl$Input$MembershipEventAggregateBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$MembershipEventAggregateBoolExp _instance;
+
+  final TRes Function(Input$MembershipEventAggregateBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? count = _undefined}) =>
+      _then(Input$MembershipEventAggregateBoolExp._({
+        ..._instance._$data,
+        if (count != _undefined)
+          'count': (count as Input$membershipEventAggregateBoolExpCount?),
+      }));
+
+  CopyWith$Input$membershipEventAggregateBoolExpCount<TRes> get count {
+    final local$count = _instance.count;
+    return local$count == null
+        ? CopyWith$Input$membershipEventAggregateBoolExpCount.stub(
+            _then(_instance))
+        : CopyWith$Input$membershipEventAggregateBoolExpCount(
+            local$count, (e) => call(count: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$MembershipEventAggregateBoolExp<TRes>
+    implements CopyWith$Input$MembershipEventAggregateBoolExp<TRes> {
+  _CopyWithStubImpl$Input$MembershipEventAggregateBoolExp(this._res);
+
+  TRes _res;
+
+  call({Input$membershipEventAggregateBoolExpCount? count}) => _res;
+
+  CopyWith$Input$membershipEventAggregateBoolExpCount<TRes> get count =>
+      CopyWith$Input$membershipEventAggregateBoolExpCount.stub(_res);
+}
+
+class Input$membershipEventAggregateBoolExpCount {
+  factory Input$membershipEventAggregateBoolExpCount({
+    List<Enum$MembershipEventSelectColumn>? arguments,
+    bool? distinct,
+    Input$MembershipEventBoolExp? filter,
+    required Input$IntComparisonExp predicate,
+  }) =>
+      Input$membershipEventAggregateBoolExpCount._({
+        if (arguments != null) r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$membershipEventAggregateBoolExpCount._(this._$data);
+
+  factory Input$membershipEventAggregateBoolExpCount.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('arguments')) {
+      final l$arguments = data['arguments'];
+      result$data['arguments'] = (l$arguments as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$MembershipEventSelectColumn((e as String)))
+          .toList();
+    }
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$MembershipEventBoolExp.fromJson(
+              (l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] =
+        Input$IntComparisonExp.fromJson((l$predicate as Map<String, dynamic>));
+    return Input$membershipEventAggregateBoolExpCount._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Enum$MembershipEventSelectColumn>? get arguments =>
+      (_$data['arguments'] as List<Enum$MembershipEventSelectColumn>?);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$MembershipEventBoolExp? get filter =>
+      (_$data['filter'] as Input$MembershipEventBoolExp?);
+
+  Input$IntComparisonExp get predicate =>
+      (_$data['predicate'] as Input$IntComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('arguments')) {
+      final l$arguments = arguments;
+      result$data['arguments'] = l$arguments
+          ?.map((e) => toJson$Enum$MembershipEventSelectColumn(e))
+          .toList();
+    }
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$membershipEventAggregateBoolExpCount<
+          Input$membershipEventAggregateBoolExpCount>
+      get copyWith => CopyWith$Input$membershipEventAggregateBoolExpCount(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$membershipEventAggregateBoolExpCount) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (_$data.containsKey('arguments') !=
+        other._$data.containsKey('arguments')) {
+      return false;
+    }
+    if (l$arguments != null && lOther$arguments != null) {
+      if (l$arguments.length != lOther$arguments.length) {
+        return false;
+      }
+      for (int i = 0; i < l$arguments.length; i++) {
+        final l$arguments$entry = l$arguments[i];
+        final lOther$arguments$entry = lOther$arguments[i];
+        if (l$arguments$entry != lOther$arguments$entry) {
+          return false;
+        }
+      }
+    } else if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      _$data.containsKey('arguments')
+          ? l$arguments == null
+              ? null
+              : Object.hashAll(l$arguments.map((v) => v))
+          : const {},
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$membershipEventAggregateBoolExpCount<TRes> {
+  factory CopyWith$Input$membershipEventAggregateBoolExpCount(
+    Input$membershipEventAggregateBoolExpCount instance,
+    TRes Function(Input$membershipEventAggregateBoolExpCount) then,
+  ) = _CopyWithImpl$Input$membershipEventAggregateBoolExpCount;
+
+  factory CopyWith$Input$membershipEventAggregateBoolExpCount.stub(TRes res) =
+      _CopyWithStubImpl$Input$membershipEventAggregateBoolExpCount;
+
+  TRes call({
+    List<Enum$MembershipEventSelectColumn>? arguments,
+    bool? distinct,
+    Input$MembershipEventBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  });
+  CopyWith$Input$MembershipEventBoolExp<TRes> get filter;
+  CopyWith$Input$IntComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$membershipEventAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$membershipEventAggregateBoolExpCount<TRes> {
+  _CopyWithImpl$Input$membershipEventAggregateBoolExpCount(
+    this._instance,
+    this._then,
+  );
+
+  final Input$membershipEventAggregateBoolExpCount _instance;
+
+  final TRes Function(Input$membershipEventAggregateBoolExpCount) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$membershipEventAggregateBoolExpCount._({
+        ..._instance._$data,
+        if (arguments != _undefined)
+          'arguments': (arguments as List<Enum$MembershipEventSelectColumn>?),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined)
+          'filter': (filter as Input$MembershipEventBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$IntComparisonExp),
+      }));
+
+  CopyWith$Input$MembershipEventBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$MembershipEventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$MembershipEventBoolExp(
+            local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$IntComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$membershipEventAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$membershipEventAggregateBoolExpCount<TRes> {
+  _CopyWithStubImpl$Input$membershipEventAggregateBoolExpCount(this._res);
+
+  TRes _res;
+
+  call({
+    List<Enum$MembershipEventSelectColumn>? arguments,
+    bool? distinct,
+    Input$MembershipEventBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$MembershipEventBoolExp<TRes> get filter =>
+      CopyWith$Input$MembershipEventBoolExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+}
+
+class Input$MembershipEventAggregateOrderBy {
+  factory Input$MembershipEventAggregateOrderBy({
+    Input$MembershipEventAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$MembershipEventMaxOrderBy? max,
+    Input$MembershipEventMinOrderBy? min,
+    Input$MembershipEventStddevOrderBy? stddev,
+    Input$MembershipEventStddevPopOrderBy? stddevPop,
+    Input$MembershipEventStddevSampOrderBy? stddevSamp,
+    Input$MembershipEventSumOrderBy? sum,
+    Input$MembershipEventVarPopOrderBy? varPop,
+    Input$MembershipEventVarSampOrderBy? varSamp,
+    Input$MembershipEventVarianceOrderBy? variance,
+  }) =>
+      Input$MembershipEventAggregateOrderBy._({
+        if (avg != null) r'avg': avg,
+        if (count != null) r'count': count,
+        if (max != null) r'max': max,
+        if (min != null) r'min': min,
+        if (stddev != null) r'stddev': stddev,
+        if (stddevPop != null) r'stddevPop': stddevPop,
+        if (stddevSamp != null) r'stddevSamp': stddevSamp,
+        if (sum != null) r'sum': sum,
+        if (varPop != null) r'varPop': varPop,
+        if (varSamp != null) r'varSamp': varSamp,
+        if (variance != null) r'variance': variance,
+      });
+
+  Input$MembershipEventAggregateOrderBy._(this._$data);
+
+  factory Input$MembershipEventAggregateOrderBy.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('avg')) {
+      final l$avg = data['avg'];
+      result$data['avg'] = l$avg == null
+          ? null
+          : Input$MembershipEventAvgOrderBy.fromJson(
+              (l$avg as Map<String, dynamic>));
+    }
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] =
+          l$count == null ? null : fromJson$Enum$OrderBy((l$count as String));
+    }
+    if (data.containsKey('max')) {
+      final l$max = data['max'];
+      result$data['max'] = l$max == null
+          ? null
+          : Input$MembershipEventMaxOrderBy.fromJson(
+              (l$max as Map<String, dynamic>));
+    }
+    if (data.containsKey('min')) {
+      final l$min = data['min'];
+      result$data['min'] = l$min == null
+          ? null
+          : Input$MembershipEventMinOrderBy.fromJson(
+              (l$min as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddev')) {
+      final l$stddev = data['stddev'];
+      result$data['stddev'] = l$stddev == null
+          ? null
+          : Input$MembershipEventStddevOrderBy.fromJson(
+              (l$stddev as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevPop')) {
+      final l$stddevPop = data['stddevPop'];
+      result$data['stddevPop'] = l$stddevPop == null
+          ? null
+          : Input$MembershipEventStddevPopOrderBy.fromJson(
+              (l$stddevPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevSamp')) {
+      final l$stddevSamp = data['stddevSamp'];
+      result$data['stddevSamp'] = l$stddevSamp == null
+          ? null
+          : Input$MembershipEventStddevSampOrderBy.fromJson(
+              (l$stddevSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('sum')) {
+      final l$sum = data['sum'];
+      result$data['sum'] = l$sum == null
+          ? null
+          : Input$MembershipEventSumOrderBy.fromJson(
+              (l$sum as Map<String, dynamic>));
+    }
+    if (data.containsKey('varPop')) {
+      final l$varPop = data['varPop'];
+      result$data['varPop'] = l$varPop == null
+          ? null
+          : Input$MembershipEventVarPopOrderBy.fromJson(
+              (l$varPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('varSamp')) {
+      final l$varSamp = data['varSamp'];
+      result$data['varSamp'] = l$varSamp == null
+          ? null
+          : Input$MembershipEventVarSampOrderBy.fromJson(
+              (l$varSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('variance')) {
+      final l$variance = data['variance'];
+      result$data['variance'] = l$variance == null
+          ? null
+          : Input$MembershipEventVarianceOrderBy.fromJson(
+              (l$variance as Map<String, dynamic>));
+    }
+    return Input$MembershipEventAggregateOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$MembershipEventAvgOrderBy? get avg =>
+      (_$data['avg'] as Input$MembershipEventAvgOrderBy?);
+
+  Enum$OrderBy? get count => (_$data['count'] as Enum$OrderBy?);
+
+  Input$MembershipEventMaxOrderBy? get max =>
+      (_$data['max'] as Input$MembershipEventMaxOrderBy?);
+
+  Input$MembershipEventMinOrderBy? get min =>
+      (_$data['min'] as Input$MembershipEventMinOrderBy?);
+
+  Input$MembershipEventStddevOrderBy? get stddev =>
+      (_$data['stddev'] as Input$MembershipEventStddevOrderBy?);
+
+  Input$MembershipEventStddevPopOrderBy? get stddevPop =>
+      (_$data['stddevPop'] as Input$MembershipEventStddevPopOrderBy?);
+
+  Input$MembershipEventStddevSampOrderBy? get stddevSamp =>
+      (_$data['stddevSamp'] as Input$MembershipEventStddevSampOrderBy?);
+
+  Input$MembershipEventSumOrderBy? get sum =>
+      (_$data['sum'] as Input$MembershipEventSumOrderBy?);
+
+  Input$MembershipEventVarPopOrderBy? get varPop =>
+      (_$data['varPop'] as Input$MembershipEventVarPopOrderBy?);
+
+  Input$MembershipEventVarSampOrderBy? get varSamp =>
+      (_$data['varSamp'] as Input$MembershipEventVarSampOrderBy?);
+
+  Input$MembershipEventVarianceOrderBy? get variance =>
+      (_$data['variance'] as Input$MembershipEventVarianceOrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('avg')) {
+      final l$avg = avg;
+      result$data['avg'] = l$avg?.toJson();
+    }
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] =
+          l$count == null ? null : toJson$Enum$OrderBy(l$count);
+    }
+    if (_$data.containsKey('max')) {
+      final l$max = max;
+      result$data['max'] = l$max?.toJson();
+    }
+    if (_$data.containsKey('min')) {
+      final l$min = min;
+      result$data['min'] = l$min?.toJson();
+    }
+    if (_$data.containsKey('stddev')) {
+      final l$stddev = stddev;
+      result$data['stddev'] = l$stddev?.toJson();
+    }
+    if (_$data.containsKey('stddevPop')) {
+      final l$stddevPop = stddevPop;
+      result$data['stddevPop'] = l$stddevPop?.toJson();
+    }
+    if (_$data.containsKey('stddevSamp')) {
+      final l$stddevSamp = stddevSamp;
+      result$data['stddevSamp'] = l$stddevSamp?.toJson();
+    }
+    if (_$data.containsKey('sum')) {
+      final l$sum = sum;
+      result$data['sum'] = l$sum?.toJson();
+    }
+    if (_$data.containsKey('varPop')) {
+      final l$varPop = varPop;
+      result$data['varPop'] = l$varPop?.toJson();
+    }
+    if (_$data.containsKey('varSamp')) {
+      final l$varSamp = varSamp;
+      result$data['varSamp'] = l$varSamp?.toJson();
+    }
+    if (_$data.containsKey('variance')) {
+      final l$variance = variance;
+      result$data['variance'] = l$variance?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$MembershipEventAggregateOrderBy<
+          Input$MembershipEventAggregateOrderBy>
+      get copyWith => CopyWith$Input$MembershipEventAggregateOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$MembershipEventAggregateOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$avg = avg;
+    final lOther$avg = other.avg;
+    if (_$data.containsKey('avg') != other._$data.containsKey('avg')) {
+      return false;
+    }
+    if (l$avg != lOther$avg) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    final l$max = max;
+    final lOther$max = other.max;
+    if (_$data.containsKey('max') != other._$data.containsKey('max')) {
+      return false;
+    }
+    if (l$max != lOther$max) {
+      return false;
+    }
+    final l$min = min;
+    final lOther$min = other.min;
+    if (_$data.containsKey('min') != other._$data.containsKey('min')) {
+      return false;
+    }
+    if (l$min != lOther$min) {
+      return false;
+    }
+    final l$stddev = stddev;
+    final lOther$stddev = other.stddev;
+    if (_$data.containsKey('stddev') != other._$data.containsKey('stddev')) {
+      return false;
+    }
+    if (l$stddev != lOther$stddev) {
+      return false;
+    }
+    final l$stddevPop = stddevPop;
+    final lOther$stddevPop = other.stddevPop;
+    if (_$data.containsKey('stddevPop') !=
+        other._$data.containsKey('stddevPop')) {
+      return false;
+    }
+    if (l$stddevPop != lOther$stddevPop) {
+      return false;
+    }
+    final l$stddevSamp = stddevSamp;
+    final lOther$stddevSamp = other.stddevSamp;
+    if (_$data.containsKey('stddevSamp') !=
+        other._$data.containsKey('stddevSamp')) {
+      return false;
+    }
+    if (l$stddevSamp != lOther$stddevSamp) {
+      return false;
+    }
+    final l$sum = sum;
+    final lOther$sum = other.sum;
+    if (_$data.containsKey('sum') != other._$data.containsKey('sum')) {
+      return false;
+    }
+    if (l$sum != lOther$sum) {
+      return false;
+    }
+    final l$varPop = varPop;
+    final lOther$varPop = other.varPop;
+    if (_$data.containsKey('varPop') != other._$data.containsKey('varPop')) {
+      return false;
+    }
+    if (l$varPop != lOther$varPop) {
+      return false;
+    }
+    final l$varSamp = varSamp;
+    final lOther$varSamp = other.varSamp;
+    if (_$data.containsKey('varSamp') != other._$data.containsKey('varSamp')) {
+      return false;
+    }
+    if (l$varSamp != lOther$varSamp) {
+      return false;
+    }
+    final l$variance = variance;
+    final lOther$variance = other.variance;
+    if (_$data.containsKey('variance') !=
+        other._$data.containsKey('variance')) {
+      return false;
+    }
+    if (l$variance != lOther$variance) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$avg = avg;
+    final l$count = count;
+    final l$max = max;
+    final l$min = min;
+    final l$stddev = stddev;
+    final l$stddevPop = stddevPop;
+    final l$stddevSamp = stddevSamp;
+    final l$sum = sum;
+    final l$varPop = varPop;
+    final l$varSamp = varSamp;
+    final l$variance = variance;
+    return Object.hashAll([
+      _$data.containsKey('avg') ? l$avg : const {},
+      _$data.containsKey('count') ? l$count : const {},
+      _$data.containsKey('max') ? l$max : const {},
+      _$data.containsKey('min') ? l$min : const {},
+      _$data.containsKey('stddev') ? l$stddev : const {},
+      _$data.containsKey('stddevPop') ? l$stddevPop : const {},
+      _$data.containsKey('stddevSamp') ? l$stddevSamp : const {},
+      _$data.containsKey('sum') ? l$sum : const {},
+      _$data.containsKey('varPop') ? l$varPop : const {},
+      _$data.containsKey('varSamp') ? l$varSamp : const {},
+      _$data.containsKey('variance') ? l$variance : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$MembershipEventAggregateOrderBy<TRes> {
+  factory CopyWith$Input$MembershipEventAggregateOrderBy(
+    Input$MembershipEventAggregateOrderBy instance,
+    TRes Function(Input$MembershipEventAggregateOrderBy) then,
+  ) = _CopyWithImpl$Input$MembershipEventAggregateOrderBy;
+
+  factory CopyWith$Input$MembershipEventAggregateOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$MembershipEventAggregateOrderBy;
+
+  TRes call({
+    Input$MembershipEventAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$MembershipEventMaxOrderBy? max,
+    Input$MembershipEventMinOrderBy? min,
+    Input$MembershipEventStddevOrderBy? stddev,
+    Input$MembershipEventStddevPopOrderBy? stddevPop,
+    Input$MembershipEventStddevSampOrderBy? stddevSamp,
+    Input$MembershipEventSumOrderBy? sum,
+    Input$MembershipEventVarPopOrderBy? varPop,
+    Input$MembershipEventVarSampOrderBy? varSamp,
+    Input$MembershipEventVarianceOrderBy? variance,
+  });
+  CopyWith$Input$MembershipEventAvgOrderBy<TRes> get avg;
+  CopyWith$Input$MembershipEventMaxOrderBy<TRes> get max;
+  CopyWith$Input$MembershipEventMinOrderBy<TRes> get min;
+  CopyWith$Input$MembershipEventStddevOrderBy<TRes> get stddev;
+  CopyWith$Input$MembershipEventStddevPopOrderBy<TRes> get stddevPop;
+  CopyWith$Input$MembershipEventStddevSampOrderBy<TRes> get stddevSamp;
+  CopyWith$Input$MembershipEventSumOrderBy<TRes> get sum;
+  CopyWith$Input$MembershipEventVarPopOrderBy<TRes> get varPop;
+  CopyWith$Input$MembershipEventVarSampOrderBy<TRes> get varSamp;
+  CopyWith$Input$MembershipEventVarianceOrderBy<TRes> get variance;
+}
+
+class _CopyWithImpl$Input$MembershipEventAggregateOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventAggregateOrderBy<TRes> {
+  _CopyWithImpl$Input$MembershipEventAggregateOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$MembershipEventAggregateOrderBy _instance;
+
+  final TRes Function(Input$MembershipEventAggregateOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? avg = _undefined,
+    Object? count = _undefined,
+    Object? max = _undefined,
+    Object? min = _undefined,
+    Object? stddev = _undefined,
+    Object? stddevPop = _undefined,
+    Object? stddevSamp = _undefined,
+    Object? sum = _undefined,
+    Object? varPop = _undefined,
+    Object? varSamp = _undefined,
+    Object? variance = _undefined,
+  }) =>
+      _then(Input$MembershipEventAggregateOrderBy._({
+        ..._instance._$data,
+        if (avg != _undefined) 'avg': (avg as Input$MembershipEventAvgOrderBy?),
+        if (count != _undefined) 'count': (count as Enum$OrderBy?),
+        if (max != _undefined) 'max': (max as Input$MembershipEventMaxOrderBy?),
+        if (min != _undefined) 'min': (min as Input$MembershipEventMinOrderBy?),
+        if (stddev != _undefined)
+          'stddev': (stddev as Input$MembershipEventStddevOrderBy?),
+        if (stddevPop != _undefined)
+          'stddevPop': (stddevPop as Input$MembershipEventStddevPopOrderBy?),
+        if (stddevSamp != _undefined)
+          'stddevSamp': (stddevSamp as Input$MembershipEventStddevSampOrderBy?),
+        if (sum != _undefined) 'sum': (sum as Input$MembershipEventSumOrderBy?),
+        if (varPop != _undefined)
+          'varPop': (varPop as Input$MembershipEventVarPopOrderBy?),
+        if (varSamp != _undefined)
+          'varSamp': (varSamp as Input$MembershipEventVarSampOrderBy?),
+        if (variance != _undefined)
+          'variance': (variance as Input$MembershipEventVarianceOrderBy?),
+      }));
+
+  CopyWith$Input$MembershipEventAvgOrderBy<TRes> get avg {
+    final local$avg = _instance.avg;
+    return local$avg == null
+        ? CopyWith$Input$MembershipEventAvgOrderBy.stub(_then(_instance))
+        : CopyWith$Input$MembershipEventAvgOrderBy(
+            local$avg, (e) => call(avg: e));
+  }
+
+  CopyWith$Input$MembershipEventMaxOrderBy<TRes> get max {
+    final local$max = _instance.max;
+    return local$max == null
+        ? CopyWith$Input$MembershipEventMaxOrderBy.stub(_then(_instance))
+        : CopyWith$Input$MembershipEventMaxOrderBy(
+            local$max, (e) => call(max: e));
+  }
+
+  CopyWith$Input$MembershipEventMinOrderBy<TRes> get min {
+    final local$min = _instance.min;
+    return local$min == null
+        ? CopyWith$Input$MembershipEventMinOrderBy.stub(_then(_instance))
+        : CopyWith$Input$MembershipEventMinOrderBy(
+            local$min, (e) => call(min: e));
+  }
+
+  CopyWith$Input$MembershipEventStddevOrderBy<TRes> get stddev {
+    final local$stddev = _instance.stddev;
+    return local$stddev == null
+        ? CopyWith$Input$MembershipEventStddevOrderBy.stub(_then(_instance))
+        : CopyWith$Input$MembershipEventStddevOrderBy(
+            local$stddev, (e) => call(stddev: e));
+  }
+
+  CopyWith$Input$MembershipEventStddevPopOrderBy<TRes> get stddevPop {
+    final local$stddevPop = _instance.stddevPop;
+    return local$stddevPop == null
+        ? CopyWith$Input$MembershipEventStddevPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$MembershipEventStddevPopOrderBy(
+            local$stddevPop, (e) => call(stddevPop: e));
+  }
+
+  CopyWith$Input$MembershipEventStddevSampOrderBy<TRes> get stddevSamp {
+    final local$stddevSamp = _instance.stddevSamp;
+    return local$stddevSamp == null
+        ? CopyWith$Input$MembershipEventStddevSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$MembershipEventStddevSampOrderBy(
+            local$stddevSamp, (e) => call(stddevSamp: e));
+  }
+
+  CopyWith$Input$MembershipEventSumOrderBy<TRes> get sum {
+    final local$sum = _instance.sum;
+    return local$sum == null
+        ? CopyWith$Input$MembershipEventSumOrderBy.stub(_then(_instance))
+        : CopyWith$Input$MembershipEventSumOrderBy(
+            local$sum, (e) => call(sum: e));
+  }
+
+  CopyWith$Input$MembershipEventVarPopOrderBy<TRes> get varPop {
+    final local$varPop = _instance.varPop;
+    return local$varPop == null
+        ? CopyWith$Input$MembershipEventVarPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$MembershipEventVarPopOrderBy(
+            local$varPop, (e) => call(varPop: e));
+  }
+
+  CopyWith$Input$MembershipEventVarSampOrderBy<TRes> get varSamp {
+    final local$varSamp = _instance.varSamp;
+    return local$varSamp == null
+        ? CopyWith$Input$MembershipEventVarSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$MembershipEventVarSampOrderBy(
+            local$varSamp, (e) => call(varSamp: e));
+  }
+
+  CopyWith$Input$MembershipEventVarianceOrderBy<TRes> get variance {
+    final local$variance = _instance.variance;
+    return local$variance == null
+        ? CopyWith$Input$MembershipEventVarianceOrderBy.stub(_then(_instance))
+        : CopyWith$Input$MembershipEventVarianceOrderBy(
+            local$variance, (e) => call(variance: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$MembershipEventAggregateOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventAggregateOrderBy<TRes> {
+  _CopyWithStubImpl$Input$MembershipEventAggregateOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Input$MembershipEventAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$MembershipEventMaxOrderBy? max,
+    Input$MembershipEventMinOrderBy? min,
+    Input$MembershipEventStddevOrderBy? stddev,
+    Input$MembershipEventStddevPopOrderBy? stddevPop,
+    Input$MembershipEventStddevSampOrderBy? stddevSamp,
+    Input$MembershipEventSumOrderBy? sum,
+    Input$MembershipEventVarPopOrderBy? varPop,
+    Input$MembershipEventVarSampOrderBy? varSamp,
+    Input$MembershipEventVarianceOrderBy? variance,
+  }) =>
+      _res;
+
+  CopyWith$Input$MembershipEventAvgOrderBy<TRes> get avg =>
+      CopyWith$Input$MembershipEventAvgOrderBy.stub(_res);
+
+  CopyWith$Input$MembershipEventMaxOrderBy<TRes> get max =>
+      CopyWith$Input$MembershipEventMaxOrderBy.stub(_res);
+
+  CopyWith$Input$MembershipEventMinOrderBy<TRes> get min =>
+      CopyWith$Input$MembershipEventMinOrderBy.stub(_res);
+
+  CopyWith$Input$MembershipEventStddevOrderBy<TRes> get stddev =>
+      CopyWith$Input$MembershipEventStddevOrderBy.stub(_res);
+
+  CopyWith$Input$MembershipEventStddevPopOrderBy<TRes> get stddevPop =>
+      CopyWith$Input$MembershipEventStddevPopOrderBy.stub(_res);
+
+  CopyWith$Input$MembershipEventStddevSampOrderBy<TRes> get stddevSamp =>
+      CopyWith$Input$MembershipEventStddevSampOrderBy.stub(_res);
+
+  CopyWith$Input$MembershipEventSumOrderBy<TRes> get sum =>
+      CopyWith$Input$MembershipEventSumOrderBy.stub(_res);
+
+  CopyWith$Input$MembershipEventVarPopOrderBy<TRes> get varPop =>
+      CopyWith$Input$MembershipEventVarPopOrderBy.stub(_res);
+
+  CopyWith$Input$MembershipEventVarSampOrderBy<TRes> get varSamp =>
+      CopyWith$Input$MembershipEventVarSampOrderBy.stub(_res);
+
+  CopyWith$Input$MembershipEventVarianceOrderBy<TRes> get variance =>
+      CopyWith$Input$MembershipEventVarianceOrderBy.stub(_res);
+}
+
+class Input$MembershipEventAvgOrderBy {
+  factory Input$MembershipEventAvgOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$MembershipEventAvgOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$MembershipEventAvgOrderBy._(this._$data);
+
+  factory Input$MembershipEventAvgOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$MembershipEventAvgOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$MembershipEventAvgOrderBy<Input$MembershipEventAvgOrderBy>
+      get copyWith => CopyWith$Input$MembershipEventAvgOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$MembershipEventAvgOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$MembershipEventAvgOrderBy<TRes> {
+  factory CopyWith$Input$MembershipEventAvgOrderBy(
+    Input$MembershipEventAvgOrderBy instance,
+    TRes Function(Input$MembershipEventAvgOrderBy) then,
+  ) = _CopyWithImpl$Input$MembershipEventAvgOrderBy;
+
+  factory CopyWith$Input$MembershipEventAvgOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$MembershipEventAvgOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$MembershipEventAvgOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventAvgOrderBy<TRes> {
+  _CopyWithImpl$Input$MembershipEventAvgOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$MembershipEventAvgOrderBy _instance;
+
+  final TRes Function(Input$MembershipEventAvgOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$MembershipEventAvgOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$MembershipEventAvgOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventAvgOrderBy<TRes> {
+  _CopyWithStubImpl$Input$MembershipEventAvgOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$MembershipEventBoolExp {
+  factory Input$MembershipEventBoolExp({
+    List<Input$MembershipEventBoolExp>? $_and,
+    Input$MembershipEventBoolExp? $_not,
+    List<Input$MembershipEventBoolExp>? $_or,
+    Input$IntComparisonExp? blockNumber,
+    Input$EventBoolExp? event,
+    Input$StringComparisonExp? eventId,
+    Input$EventTypeEnumComparisonExp? eventType,
+    Input$StringComparisonExp? id,
+    Input$IdentityBoolExp? identity,
+    Input$StringComparisonExp? identityId,
+  }) =>
+      Input$MembershipEventBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (event != null) r'event': event,
+        if (eventId != null) r'eventId': eventId,
+        if (eventType != null) r'eventType': eventType,
+        if (id != null) r'id': id,
+        if (identity != null) r'identity': identity,
+        if (identityId != null) r'identityId': identityId,
+      });
+
+  Input$MembershipEventBoolExp._(this._$data);
+
+  factory Input$MembershipEventBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map((e) => Input$MembershipEventBoolExp.fromJson(
+              (e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$MembershipEventBoolExp.fromJson(
+              (l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map((e) => Input$MembershipEventBoolExp.fromJson(
+              (e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$blockNumber as Map<String, dynamic>));
+    }
+    if (data.containsKey('event')) {
+      final l$event = data['event'];
+      result$data['event'] = l$event == null
+          ? null
+          : Input$EventBoolExp.fromJson((l$event as Map<String, dynamic>));
+    }
+    if (data.containsKey('eventId')) {
+      final l$eventId = data['eventId'];
+      result$data['eventId'] = l$eventId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$eventId as Map<String, dynamic>));
+    }
+    if (data.containsKey('eventType')) {
+      final l$eventType = data['eventType'];
+      result$data['eventType'] = l$eventType == null
+          ? null
+          : Input$EventTypeEnumComparisonExp.fromJson(
+              (l$eventType as Map<String, dynamic>));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    if (data.containsKey('identity')) {
+      final l$identity = data['identity'];
+      result$data['identity'] = l$identity == null
+          ? null
+          : Input$IdentityBoolExp.fromJson(
+              (l$identity as Map<String, dynamic>));
+    }
+    if (data.containsKey('identityId')) {
+      final l$identityId = data['identityId'];
+      result$data['identityId'] = l$identityId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$identityId as Map<String, dynamic>));
+    }
+    return Input$MembershipEventBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$MembershipEventBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$MembershipEventBoolExp>?);
+
+  Input$MembershipEventBoolExp? get $_not =>
+      (_$data['_not'] as Input$MembershipEventBoolExp?);
+
+  List<Input$MembershipEventBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$MembershipEventBoolExp>?);
+
+  Input$IntComparisonExp? get blockNumber =>
+      (_$data['blockNumber'] as Input$IntComparisonExp?);
+
+  Input$EventBoolExp? get event => (_$data['event'] as Input$EventBoolExp?);
+
+  Input$StringComparisonExp? get eventId =>
+      (_$data['eventId'] as Input$StringComparisonExp?);
+
+  Input$EventTypeEnumComparisonExp? get eventType =>
+      (_$data['eventType'] as Input$EventTypeEnumComparisonExp?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Input$IdentityBoolExp? get identity =>
+      (_$data['identity'] as Input$IdentityBoolExp?);
+
+  Input$StringComparisonExp? get identityId =>
+      (_$data['identityId'] as Input$StringComparisonExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] = l$blockNumber?.toJson();
+    }
+    if (_$data.containsKey('event')) {
+      final l$event = event;
+      result$data['event'] = l$event?.toJson();
+    }
+    if (_$data.containsKey('eventId')) {
+      final l$eventId = eventId;
+      result$data['eventId'] = l$eventId?.toJson();
+    }
+    if (_$data.containsKey('eventType')) {
+      final l$eventType = eventType;
+      result$data['eventType'] = l$eventType?.toJson();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    if (_$data.containsKey('identity')) {
+      final l$identity = identity;
+      result$data['identity'] = l$identity?.toJson();
+    }
+    if (_$data.containsKey('identityId')) {
+      final l$identityId = identityId;
+      result$data['identityId'] = l$identityId?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$MembershipEventBoolExp<Input$MembershipEventBoolExp>
+      get copyWith => CopyWith$Input$MembershipEventBoolExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$MembershipEventBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$event = event;
+    final lOther$event = other.event;
+    if (_$data.containsKey('event') != other._$data.containsKey('event')) {
+      return false;
+    }
+    if (l$event != lOther$event) {
+      return false;
+    }
+    final l$eventId = eventId;
+    final lOther$eventId = other.eventId;
+    if (_$data.containsKey('eventId') != other._$data.containsKey('eventId')) {
+      return false;
+    }
+    if (l$eventId != lOther$eventId) {
+      return false;
+    }
+    final l$eventType = eventType;
+    final lOther$eventType = other.eventType;
+    if (_$data.containsKey('eventType') !=
+        other._$data.containsKey('eventType')) {
+      return false;
+    }
+    if (l$eventType != lOther$eventType) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$identity = identity;
+    final lOther$identity = other.identity;
+    if (_$data.containsKey('identity') !=
+        other._$data.containsKey('identity')) {
+      return false;
+    }
+    if (l$identity != lOther$identity) {
+      return false;
+    }
+    final l$identityId = identityId;
+    final lOther$identityId = other.identityId;
+    if (_$data.containsKey('identityId') !=
+        other._$data.containsKey('identityId')) {
+      return false;
+    }
+    if (l$identityId != lOther$identityId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$blockNumber = blockNumber;
+    final l$event = event;
+    final l$eventId = eventId;
+    final l$eventType = eventType;
+    final l$id = id;
+    final l$identity = identity;
+    final l$identityId = identityId;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('event') ? l$event : const {},
+      _$data.containsKey('eventId') ? l$eventId : const {},
+      _$data.containsKey('eventType') ? l$eventType : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('identity') ? l$identity : const {},
+      _$data.containsKey('identityId') ? l$identityId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$MembershipEventBoolExp<TRes> {
+  factory CopyWith$Input$MembershipEventBoolExp(
+    Input$MembershipEventBoolExp instance,
+    TRes Function(Input$MembershipEventBoolExp) then,
+  ) = _CopyWithImpl$Input$MembershipEventBoolExp;
+
+  factory CopyWith$Input$MembershipEventBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$MembershipEventBoolExp;
+
+  TRes call({
+    List<Input$MembershipEventBoolExp>? $_and,
+    Input$MembershipEventBoolExp? $_not,
+    List<Input$MembershipEventBoolExp>? $_or,
+    Input$IntComparisonExp? blockNumber,
+    Input$EventBoolExp? event,
+    Input$StringComparisonExp? eventId,
+    Input$EventTypeEnumComparisonExp? eventType,
+    Input$StringComparisonExp? id,
+    Input$IdentityBoolExp? identity,
+    Input$StringComparisonExp? identityId,
+  });
+  TRes $_and(
+      Iterable<Input$MembershipEventBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$MembershipEventBoolExp<
+                      Input$MembershipEventBoolExp>>?)
+          _fn);
+  CopyWith$Input$MembershipEventBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$MembershipEventBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$MembershipEventBoolExp<
+                      Input$MembershipEventBoolExp>>?)
+          _fn);
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber;
+  CopyWith$Input$EventBoolExp<TRes> get event;
+  CopyWith$Input$StringComparisonExp<TRes> get eventId;
+  CopyWith$Input$EventTypeEnumComparisonExp<TRes> get eventType;
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+  CopyWith$Input$IdentityBoolExp<TRes> get identity;
+  CopyWith$Input$StringComparisonExp<TRes> get identityId;
+}
+
+class _CopyWithImpl$Input$MembershipEventBoolExp<TRes>
+    implements CopyWith$Input$MembershipEventBoolExp<TRes> {
+  _CopyWithImpl$Input$MembershipEventBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$MembershipEventBoolExp _instance;
+
+  final TRes Function(Input$MembershipEventBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? blockNumber = _undefined,
+    Object? event = _undefined,
+    Object? eventId = _undefined,
+    Object? eventType = _undefined,
+    Object? id = _undefined,
+    Object? identity = _undefined,
+    Object? identityId = _undefined,
+  }) =>
+      _then(Input$MembershipEventBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined)
+          '_and': ($_and as List<Input$MembershipEventBoolExp>?),
+        if ($_not != _undefined)
+          '_not': ($_not as Input$MembershipEventBoolExp?),
+        if ($_or != _undefined)
+          '_or': ($_or as List<Input$MembershipEventBoolExp>?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Input$IntComparisonExp?),
+        if (event != _undefined) 'event': (event as Input$EventBoolExp?),
+        if (eventId != _undefined)
+          'eventId': (eventId as Input$StringComparisonExp?),
+        if (eventType != _undefined)
+          'eventType': (eventType as Input$EventTypeEnumComparisonExp?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+        if (identity != _undefined)
+          'identity': (identity as Input$IdentityBoolExp?),
+        if (identityId != _undefined)
+          'identityId': (identityId as Input$StringComparisonExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$MembershipEventBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$MembershipEventBoolExp<
+                          Input$MembershipEventBoolExp>>?)
+              _fn) =>
+      call(
+          $_and: _fn(
+              _instance.$_and?.map((e) => CopyWith$Input$MembershipEventBoolExp(
+                    e,
+                    (i) => i,
+                  )))?.toList());
+
+  CopyWith$Input$MembershipEventBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$MembershipEventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$MembershipEventBoolExp(
+            local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$MembershipEventBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$MembershipEventBoolExp<
+                          Input$MembershipEventBoolExp>>?)
+              _fn) =>
+      call(
+          $_or: _fn(
+              _instance.$_or?.map((e) => CopyWith$Input$MembershipEventBoolExp(
+                    e,
+                    (i) => i,
+                  )))?.toList());
+
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber {
+    final local$blockNumber = _instance.blockNumber;
+    return local$blockNumber == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$blockNumber, (e) => call(blockNumber: e));
+  }
+
+  CopyWith$Input$EventBoolExp<TRes> get event {
+    final local$event = _instance.event;
+    return local$event == null
+        ? CopyWith$Input$EventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$EventBoolExp(local$event, (e) => call(event: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get eventId {
+    final local$eventId = _instance.eventId;
+    return local$eventId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$eventId, (e) => call(eventId: e));
+  }
+
+  CopyWith$Input$EventTypeEnumComparisonExp<TRes> get eventType {
+    final local$eventType = _instance.eventType;
+    return local$eventType == null
+        ? CopyWith$Input$EventTypeEnumComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$EventTypeEnumComparisonExp(
+            local$eventType, (e) => call(eventType: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+
+  CopyWith$Input$IdentityBoolExp<TRes> get identity {
+    final local$identity = _instance.identity;
+    return local$identity == null
+        ? CopyWith$Input$IdentityBoolExp.stub(_then(_instance))
+        : CopyWith$Input$IdentityBoolExp(
+            local$identity, (e) => call(identity: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get identityId {
+    final local$identityId = _instance.identityId;
+    return local$identityId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$identityId, (e) => call(identityId: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$MembershipEventBoolExp<TRes>
+    implements CopyWith$Input$MembershipEventBoolExp<TRes> {
+  _CopyWithStubImpl$Input$MembershipEventBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$MembershipEventBoolExp>? $_and,
+    Input$MembershipEventBoolExp? $_not,
+    List<Input$MembershipEventBoolExp>? $_or,
+    Input$IntComparisonExp? blockNumber,
+    Input$EventBoolExp? event,
+    Input$StringComparisonExp? eventId,
+    Input$EventTypeEnumComparisonExp? eventType,
+    Input$StringComparisonExp? id,
+    Input$IdentityBoolExp? identity,
+    Input$StringComparisonExp? identityId,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$MembershipEventBoolExp<TRes> get $_not =>
+      CopyWith$Input$MembershipEventBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$EventBoolExp<TRes> get event =>
+      CopyWith$Input$EventBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get eventId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$EventTypeEnumComparisonExp<TRes> get eventType =>
+      CopyWith$Input$EventTypeEnumComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$IdentityBoolExp<TRes> get identity =>
+      CopyWith$Input$IdentityBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get identityId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+}
+
+class Input$MembershipEventMaxOrderBy {
+  factory Input$MembershipEventMaxOrderBy({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+  }) =>
+      Input$MembershipEventMaxOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (eventId != null) r'eventId': eventId,
+        if (id != null) r'id': id,
+        if (identityId != null) r'identityId': identityId,
+      });
+
+  Input$MembershipEventMaxOrderBy._(this._$data);
+
+  factory Input$MembershipEventMaxOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('eventId')) {
+      final l$eventId = data['eventId'];
+      result$data['eventId'] = l$eventId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$eventId as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('identityId')) {
+      final l$identityId = data['identityId'];
+      result$data['identityId'] = l$identityId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$identityId as String));
+    }
+    return Input$MembershipEventMaxOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get eventId => (_$data['eventId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get identityId => (_$data['identityId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('eventId')) {
+      final l$eventId = eventId;
+      result$data['eventId'] =
+          l$eventId == null ? null : toJson$Enum$OrderBy(l$eventId);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('identityId')) {
+      final l$identityId = identityId;
+      result$data['identityId'] =
+          l$identityId == null ? null : toJson$Enum$OrderBy(l$identityId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$MembershipEventMaxOrderBy<Input$MembershipEventMaxOrderBy>
+      get copyWith => CopyWith$Input$MembershipEventMaxOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$MembershipEventMaxOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$eventId = eventId;
+    final lOther$eventId = other.eventId;
+    if (_$data.containsKey('eventId') != other._$data.containsKey('eventId')) {
+      return false;
+    }
+    if (l$eventId != lOther$eventId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$identityId = identityId;
+    final lOther$identityId = other.identityId;
+    if (_$data.containsKey('identityId') !=
+        other._$data.containsKey('identityId')) {
+      return false;
+    }
+    if (l$identityId != lOther$identityId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    final l$eventId = eventId;
+    final l$id = id;
+    final l$identityId = identityId;
+    return Object.hashAll([
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('eventId') ? l$eventId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('identityId') ? l$identityId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$MembershipEventMaxOrderBy<TRes> {
+  factory CopyWith$Input$MembershipEventMaxOrderBy(
+    Input$MembershipEventMaxOrderBy instance,
+    TRes Function(Input$MembershipEventMaxOrderBy) then,
+  ) = _CopyWithImpl$Input$MembershipEventMaxOrderBy;
+
+  factory CopyWith$Input$MembershipEventMaxOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$MembershipEventMaxOrderBy;
+
+  TRes call({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+  });
+}
+
+class _CopyWithImpl$Input$MembershipEventMaxOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventMaxOrderBy<TRes> {
+  _CopyWithImpl$Input$MembershipEventMaxOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$MembershipEventMaxOrderBy _instance;
+
+  final TRes Function(Input$MembershipEventMaxOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? blockNumber = _undefined,
+    Object? eventId = _undefined,
+    Object? id = _undefined,
+    Object? identityId = _undefined,
+  }) =>
+      _then(Input$MembershipEventMaxOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (eventId != _undefined) 'eventId': (eventId as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (identityId != _undefined)
+          'identityId': (identityId as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$MembershipEventMaxOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventMaxOrderBy<TRes> {
+  _CopyWithStubImpl$Input$MembershipEventMaxOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+  }) =>
+      _res;
+}
+
+class Input$MembershipEventMinOrderBy {
+  factory Input$MembershipEventMinOrderBy({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+  }) =>
+      Input$MembershipEventMinOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (eventId != null) r'eventId': eventId,
+        if (id != null) r'id': id,
+        if (identityId != null) r'identityId': identityId,
+      });
+
+  Input$MembershipEventMinOrderBy._(this._$data);
+
+  factory Input$MembershipEventMinOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('eventId')) {
+      final l$eventId = data['eventId'];
+      result$data['eventId'] = l$eventId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$eventId as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('identityId')) {
+      final l$identityId = data['identityId'];
+      result$data['identityId'] = l$identityId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$identityId as String));
+    }
+    return Input$MembershipEventMinOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get eventId => (_$data['eventId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get identityId => (_$data['identityId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('eventId')) {
+      final l$eventId = eventId;
+      result$data['eventId'] =
+          l$eventId == null ? null : toJson$Enum$OrderBy(l$eventId);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('identityId')) {
+      final l$identityId = identityId;
+      result$data['identityId'] =
+          l$identityId == null ? null : toJson$Enum$OrderBy(l$identityId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$MembershipEventMinOrderBy<Input$MembershipEventMinOrderBy>
+      get copyWith => CopyWith$Input$MembershipEventMinOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$MembershipEventMinOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$eventId = eventId;
+    final lOther$eventId = other.eventId;
+    if (_$data.containsKey('eventId') != other._$data.containsKey('eventId')) {
+      return false;
+    }
+    if (l$eventId != lOther$eventId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$identityId = identityId;
+    final lOther$identityId = other.identityId;
+    if (_$data.containsKey('identityId') !=
+        other._$data.containsKey('identityId')) {
+      return false;
+    }
+    if (l$identityId != lOther$identityId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    final l$eventId = eventId;
+    final l$id = id;
+    final l$identityId = identityId;
+    return Object.hashAll([
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('eventId') ? l$eventId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('identityId') ? l$identityId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$MembershipEventMinOrderBy<TRes> {
+  factory CopyWith$Input$MembershipEventMinOrderBy(
+    Input$MembershipEventMinOrderBy instance,
+    TRes Function(Input$MembershipEventMinOrderBy) then,
+  ) = _CopyWithImpl$Input$MembershipEventMinOrderBy;
+
+  factory CopyWith$Input$MembershipEventMinOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$MembershipEventMinOrderBy;
+
+  TRes call({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+  });
+}
+
+class _CopyWithImpl$Input$MembershipEventMinOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventMinOrderBy<TRes> {
+  _CopyWithImpl$Input$MembershipEventMinOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$MembershipEventMinOrderBy _instance;
+
+  final TRes Function(Input$MembershipEventMinOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? blockNumber = _undefined,
+    Object? eventId = _undefined,
+    Object? id = _undefined,
+    Object? identityId = _undefined,
+  }) =>
+      _then(Input$MembershipEventMinOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (eventId != _undefined) 'eventId': (eventId as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (identityId != _undefined)
+          'identityId': (identityId as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$MembershipEventMinOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventMinOrderBy<TRes> {
+  _CopyWithStubImpl$Input$MembershipEventMinOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+  }) =>
+      _res;
+}
+
+class Input$MembershipEventOrderBy {
+  factory Input$MembershipEventOrderBy({
+    Enum$OrderBy? blockNumber,
+    Input$EventOrderBy? event,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? eventType,
+    Enum$OrderBy? id,
+    Input$IdentityOrderBy? identity,
+    Enum$OrderBy? identityId,
+  }) =>
+      Input$MembershipEventOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (event != null) r'event': event,
+        if (eventId != null) r'eventId': eventId,
+        if (eventType != null) r'eventType': eventType,
+        if (id != null) r'id': id,
+        if (identity != null) r'identity': identity,
+        if (identityId != null) r'identityId': identityId,
+      });
+
+  Input$MembershipEventOrderBy._(this._$data);
+
+  factory Input$MembershipEventOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('event')) {
+      final l$event = data['event'];
+      result$data['event'] = l$event == null
+          ? null
+          : Input$EventOrderBy.fromJson((l$event as Map<String, dynamic>));
+    }
+    if (data.containsKey('eventId')) {
+      final l$eventId = data['eventId'];
+      result$data['eventId'] = l$eventId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$eventId as String));
+    }
+    if (data.containsKey('eventType')) {
+      final l$eventType = data['eventType'];
+      result$data['eventType'] = l$eventType == null
+          ? null
+          : fromJson$Enum$OrderBy((l$eventType as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('identity')) {
+      final l$identity = data['identity'];
+      result$data['identity'] = l$identity == null
+          ? null
+          : Input$IdentityOrderBy.fromJson(
+              (l$identity as Map<String, dynamic>));
+    }
+    if (data.containsKey('identityId')) {
+      final l$identityId = data['identityId'];
+      result$data['identityId'] = l$identityId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$identityId as String));
+    }
+    return Input$MembershipEventOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Input$EventOrderBy? get event => (_$data['event'] as Input$EventOrderBy?);
+
+  Enum$OrderBy? get eventId => (_$data['eventId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get eventType => (_$data['eventType'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Input$IdentityOrderBy? get identity =>
+      (_$data['identity'] as Input$IdentityOrderBy?);
+
+  Enum$OrderBy? get identityId => (_$data['identityId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('event')) {
+      final l$event = event;
+      result$data['event'] = l$event?.toJson();
+    }
+    if (_$data.containsKey('eventId')) {
+      final l$eventId = eventId;
+      result$data['eventId'] =
+          l$eventId == null ? null : toJson$Enum$OrderBy(l$eventId);
+    }
+    if (_$data.containsKey('eventType')) {
+      final l$eventType = eventType;
+      result$data['eventType'] =
+          l$eventType == null ? null : toJson$Enum$OrderBy(l$eventType);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('identity')) {
+      final l$identity = identity;
+      result$data['identity'] = l$identity?.toJson();
+    }
+    if (_$data.containsKey('identityId')) {
+      final l$identityId = identityId;
+      result$data['identityId'] =
+          l$identityId == null ? null : toJson$Enum$OrderBy(l$identityId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$MembershipEventOrderBy<Input$MembershipEventOrderBy>
+      get copyWith => CopyWith$Input$MembershipEventOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$MembershipEventOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$event = event;
+    final lOther$event = other.event;
+    if (_$data.containsKey('event') != other._$data.containsKey('event')) {
+      return false;
+    }
+    if (l$event != lOther$event) {
+      return false;
+    }
+    final l$eventId = eventId;
+    final lOther$eventId = other.eventId;
+    if (_$data.containsKey('eventId') != other._$data.containsKey('eventId')) {
+      return false;
+    }
+    if (l$eventId != lOther$eventId) {
+      return false;
+    }
+    final l$eventType = eventType;
+    final lOther$eventType = other.eventType;
+    if (_$data.containsKey('eventType') !=
+        other._$data.containsKey('eventType')) {
+      return false;
+    }
+    if (l$eventType != lOther$eventType) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$identity = identity;
+    final lOther$identity = other.identity;
+    if (_$data.containsKey('identity') !=
+        other._$data.containsKey('identity')) {
+      return false;
+    }
+    if (l$identity != lOther$identity) {
+      return false;
+    }
+    final l$identityId = identityId;
+    final lOther$identityId = other.identityId;
+    if (_$data.containsKey('identityId') !=
+        other._$data.containsKey('identityId')) {
+      return false;
+    }
+    if (l$identityId != lOther$identityId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    final l$event = event;
+    final l$eventId = eventId;
+    final l$eventType = eventType;
+    final l$id = id;
+    final l$identity = identity;
+    final l$identityId = identityId;
+    return Object.hashAll([
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('event') ? l$event : const {},
+      _$data.containsKey('eventId') ? l$eventId : const {},
+      _$data.containsKey('eventType') ? l$eventType : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('identity') ? l$identity : const {},
+      _$data.containsKey('identityId') ? l$identityId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$MembershipEventOrderBy<TRes> {
+  factory CopyWith$Input$MembershipEventOrderBy(
+    Input$MembershipEventOrderBy instance,
+    TRes Function(Input$MembershipEventOrderBy) then,
+  ) = _CopyWithImpl$Input$MembershipEventOrderBy;
+
+  factory CopyWith$Input$MembershipEventOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$MembershipEventOrderBy;
+
+  TRes call({
+    Enum$OrderBy? blockNumber,
+    Input$EventOrderBy? event,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? eventType,
+    Enum$OrderBy? id,
+    Input$IdentityOrderBy? identity,
+    Enum$OrderBy? identityId,
+  });
+  CopyWith$Input$EventOrderBy<TRes> get event;
+  CopyWith$Input$IdentityOrderBy<TRes> get identity;
+}
+
+class _CopyWithImpl$Input$MembershipEventOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventOrderBy<TRes> {
+  _CopyWithImpl$Input$MembershipEventOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$MembershipEventOrderBy _instance;
+
+  final TRes Function(Input$MembershipEventOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? blockNumber = _undefined,
+    Object? event = _undefined,
+    Object? eventId = _undefined,
+    Object? eventType = _undefined,
+    Object? id = _undefined,
+    Object? identity = _undefined,
+    Object? identityId = _undefined,
+  }) =>
+      _then(Input$MembershipEventOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (event != _undefined) 'event': (event as Input$EventOrderBy?),
+        if (eventId != _undefined) 'eventId': (eventId as Enum$OrderBy?),
+        if (eventType != _undefined) 'eventType': (eventType as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (identity != _undefined)
+          'identity': (identity as Input$IdentityOrderBy?),
+        if (identityId != _undefined)
+          'identityId': (identityId as Enum$OrderBy?),
+      }));
+
+  CopyWith$Input$EventOrderBy<TRes> get event {
+    final local$event = _instance.event;
+    return local$event == null
+        ? CopyWith$Input$EventOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventOrderBy(local$event, (e) => call(event: e));
+  }
+
+  CopyWith$Input$IdentityOrderBy<TRes> get identity {
+    final local$identity = _instance.identity;
+    return local$identity == null
+        ? CopyWith$Input$IdentityOrderBy.stub(_then(_instance))
+        : CopyWith$Input$IdentityOrderBy(
+            local$identity, (e) => call(identity: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$MembershipEventOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventOrderBy<TRes> {
+  _CopyWithStubImpl$Input$MembershipEventOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? blockNumber,
+    Input$EventOrderBy? event,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? eventType,
+    Enum$OrderBy? id,
+    Input$IdentityOrderBy? identity,
+    Enum$OrderBy? identityId,
+  }) =>
+      _res;
+
+  CopyWith$Input$EventOrderBy<TRes> get event =>
+      CopyWith$Input$EventOrderBy.stub(_res);
+
+  CopyWith$Input$IdentityOrderBy<TRes> get identity =>
+      CopyWith$Input$IdentityOrderBy.stub(_res);
+}
+
+class Input$MembershipEventStddevOrderBy {
+  factory Input$MembershipEventStddevOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$MembershipEventStddevOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$MembershipEventStddevOrderBy._(this._$data);
+
+  factory Input$MembershipEventStddevOrderBy.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$MembershipEventStddevOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$MembershipEventStddevOrderBy<
+          Input$MembershipEventStddevOrderBy>
+      get copyWith => CopyWith$Input$MembershipEventStddevOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$MembershipEventStddevOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$MembershipEventStddevOrderBy<TRes> {
+  factory CopyWith$Input$MembershipEventStddevOrderBy(
+    Input$MembershipEventStddevOrderBy instance,
+    TRes Function(Input$MembershipEventStddevOrderBy) then,
+  ) = _CopyWithImpl$Input$MembershipEventStddevOrderBy;
+
+  factory CopyWith$Input$MembershipEventStddevOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$MembershipEventStddevOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$MembershipEventStddevOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventStddevOrderBy<TRes> {
+  _CopyWithImpl$Input$MembershipEventStddevOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$MembershipEventStddevOrderBy _instance;
+
+  final TRes Function(Input$MembershipEventStddevOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$MembershipEventStddevOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$MembershipEventStddevOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventStddevOrderBy<TRes> {
+  _CopyWithStubImpl$Input$MembershipEventStddevOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$MembershipEventStddevPopOrderBy {
+  factory Input$MembershipEventStddevPopOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$MembershipEventStddevPopOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$MembershipEventStddevPopOrderBy._(this._$data);
+
+  factory Input$MembershipEventStddevPopOrderBy.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$MembershipEventStddevPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$MembershipEventStddevPopOrderBy<
+          Input$MembershipEventStddevPopOrderBy>
+      get copyWith => CopyWith$Input$MembershipEventStddevPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$MembershipEventStddevPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$MembershipEventStddevPopOrderBy<TRes> {
+  factory CopyWith$Input$MembershipEventStddevPopOrderBy(
+    Input$MembershipEventStddevPopOrderBy instance,
+    TRes Function(Input$MembershipEventStddevPopOrderBy) then,
+  ) = _CopyWithImpl$Input$MembershipEventStddevPopOrderBy;
+
+  factory CopyWith$Input$MembershipEventStddevPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$MembershipEventStddevPopOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$MembershipEventStddevPopOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventStddevPopOrderBy<TRes> {
+  _CopyWithImpl$Input$MembershipEventStddevPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$MembershipEventStddevPopOrderBy _instance;
+
+  final TRes Function(Input$MembershipEventStddevPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$MembershipEventStddevPopOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$MembershipEventStddevPopOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventStddevPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$MembershipEventStddevPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$MembershipEventStddevSampOrderBy {
+  factory Input$MembershipEventStddevSampOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$MembershipEventStddevSampOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$MembershipEventStddevSampOrderBy._(this._$data);
+
+  factory Input$MembershipEventStddevSampOrderBy.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$MembershipEventStddevSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$MembershipEventStddevSampOrderBy<
+          Input$MembershipEventStddevSampOrderBy>
+      get copyWith => CopyWith$Input$MembershipEventStddevSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$MembershipEventStddevSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$MembershipEventStddevSampOrderBy<TRes> {
+  factory CopyWith$Input$MembershipEventStddevSampOrderBy(
+    Input$MembershipEventStddevSampOrderBy instance,
+    TRes Function(Input$MembershipEventStddevSampOrderBy) then,
+  ) = _CopyWithImpl$Input$MembershipEventStddevSampOrderBy;
+
+  factory CopyWith$Input$MembershipEventStddevSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$MembershipEventStddevSampOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$MembershipEventStddevSampOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventStddevSampOrderBy<TRes> {
+  _CopyWithImpl$Input$MembershipEventStddevSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$MembershipEventStddevSampOrderBy _instance;
+
+  final TRes Function(Input$MembershipEventStddevSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$MembershipEventStddevSampOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$MembershipEventStddevSampOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventStddevSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$MembershipEventStddevSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$MembershipEventSumOrderBy {
+  factory Input$MembershipEventSumOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$MembershipEventSumOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$MembershipEventSumOrderBy._(this._$data);
+
+  factory Input$MembershipEventSumOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$MembershipEventSumOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$MembershipEventSumOrderBy<Input$MembershipEventSumOrderBy>
+      get copyWith => CopyWith$Input$MembershipEventSumOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$MembershipEventSumOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$MembershipEventSumOrderBy<TRes> {
+  factory CopyWith$Input$MembershipEventSumOrderBy(
+    Input$MembershipEventSumOrderBy instance,
+    TRes Function(Input$MembershipEventSumOrderBy) then,
+  ) = _CopyWithImpl$Input$MembershipEventSumOrderBy;
+
+  factory CopyWith$Input$MembershipEventSumOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$MembershipEventSumOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$MembershipEventSumOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventSumOrderBy<TRes> {
+  _CopyWithImpl$Input$MembershipEventSumOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$MembershipEventSumOrderBy _instance;
+
+  final TRes Function(Input$MembershipEventSumOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$MembershipEventSumOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$MembershipEventSumOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventSumOrderBy<TRes> {
+  _CopyWithStubImpl$Input$MembershipEventSumOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$MembershipEventVarianceOrderBy {
+  factory Input$MembershipEventVarianceOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$MembershipEventVarianceOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$MembershipEventVarianceOrderBy._(this._$data);
+
+  factory Input$MembershipEventVarianceOrderBy.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$MembershipEventVarianceOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$MembershipEventVarianceOrderBy<
+          Input$MembershipEventVarianceOrderBy>
+      get copyWith => CopyWith$Input$MembershipEventVarianceOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$MembershipEventVarianceOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$MembershipEventVarianceOrderBy<TRes> {
+  factory CopyWith$Input$MembershipEventVarianceOrderBy(
+    Input$MembershipEventVarianceOrderBy instance,
+    TRes Function(Input$MembershipEventVarianceOrderBy) then,
+  ) = _CopyWithImpl$Input$MembershipEventVarianceOrderBy;
+
+  factory CopyWith$Input$MembershipEventVarianceOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$MembershipEventVarianceOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$MembershipEventVarianceOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventVarianceOrderBy<TRes> {
+  _CopyWithImpl$Input$MembershipEventVarianceOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$MembershipEventVarianceOrderBy _instance;
+
+  final TRes Function(Input$MembershipEventVarianceOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$MembershipEventVarianceOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$MembershipEventVarianceOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventVarianceOrderBy<TRes> {
+  _CopyWithStubImpl$Input$MembershipEventVarianceOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$MembershipEventVarPopOrderBy {
+  factory Input$MembershipEventVarPopOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$MembershipEventVarPopOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$MembershipEventVarPopOrderBy._(this._$data);
+
+  factory Input$MembershipEventVarPopOrderBy.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$MembershipEventVarPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$MembershipEventVarPopOrderBy<
+          Input$MembershipEventVarPopOrderBy>
+      get copyWith => CopyWith$Input$MembershipEventVarPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$MembershipEventVarPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$MembershipEventVarPopOrderBy<TRes> {
+  factory CopyWith$Input$MembershipEventVarPopOrderBy(
+    Input$MembershipEventVarPopOrderBy instance,
+    TRes Function(Input$MembershipEventVarPopOrderBy) then,
+  ) = _CopyWithImpl$Input$MembershipEventVarPopOrderBy;
+
+  factory CopyWith$Input$MembershipEventVarPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$MembershipEventVarPopOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$MembershipEventVarPopOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventVarPopOrderBy<TRes> {
+  _CopyWithImpl$Input$MembershipEventVarPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$MembershipEventVarPopOrderBy _instance;
+
+  final TRes Function(Input$MembershipEventVarPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$MembershipEventVarPopOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$MembershipEventVarPopOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventVarPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$MembershipEventVarPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$MembershipEventVarSampOrderBy {
+  factory Input$MembershipEventVarSampOrderBy({Enum$OrderBy? blockNumber}) =>
+      Input$MembershipEventVarSampOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$MembershipEventVarSampOrderBy._(this._$data);
+
+  factory Input$MembershipEventVarSampOrderBy.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$MembershipEventVarSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$MembershipEventVarSampOrderBy<
+          Input$MembershipEventVarSampOrderBy>
+      get copyWith => CopyWith$Input$MembershipEventVarSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$MembershipEventVarSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    return Object.hashAll(
+        [_$data.containsKey('blockNumber') ? l$blockNumber : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$MembershipEventVarSampOrderBy<TRes> {
+  factory CopyWith$Input$MembershipEventVarSampOrderBy(
+    Input$MembershipEventVarSampOrderBy instance,
+    TRes Function(Input$MembershipEventVarSampOrderBy) then,
+  ) = _CopyWithImpl$Input$MembershipEventVarSampOrderBy;
+
+  factory CopyWith$Input$MembershipEventVarSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$MembershipEventVarSampOrderBy;
+
+  TRes call({Enum$OrderBy? blockNumber});
+}
+
+class _CopyWithImpl$Input$MembershipEventVarSampOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventVarSampOrderBy<TRes> {
+  _CopyWithImpl$Input$MembershipEventVarSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$MembershipEventVarSampOrderBy _instance;
+
+  final TRes Function(Input$MembershipEventVarSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? blockNumber = _undefined}) =>
+      _then(Input$MembershipEventVarSampOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$MembershipEventVarSampOrderBy<TRes>
+    implements CopyWith$Input$MembershipEventVarSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$MembershipEventVarSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? blockNumber}) => _res;
+}
+
+class Input$NumericComparisonExp {
+  factory Input$NumericComparisonExp({
+    int? $_eq,
+    int? $_gt,
+    int? $_gte,
+    List<int>? $_in,
+    bool? $_isNull,
+    int? $_lt,
+    int? $_lte,
+    int? $_neq,
+    List<int>? $_nin,
+  }) =>
+      Input$NumericComparisonExp._({
+        if ($_eq != null) r'_eq': $_eq,
+        if ($_gt != null) r'_gt': $_gt,
+        if ($_gte != null) r'_gte': $_gte,
+        if ($_in != null) r'_in': $_in,
+        if ($_isNull != null) r'_isNull': $_isNull,
+        if ($_lt != null) r'_lt': $_lt,
+        if ($_lte != null) r'_lte': $_lte,
+        if ($_neq != null) r'_neq': $_neq,
+        if ($_nin != null) r'_nin': $_nin,
+      });
+
+  Input$NumericComparisonExp._(this._$data);
+
+  factory Input$NumericComparisonExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_eq')) {
+      final l$$_eq = data['_eq'];
+      result$data['_eq'] = (l$$_eq as int?);
+    }
+    if (data.containsKey('_gt')) {
+      final l$$_gt = data['_gt'];
+      result$data['_gt'] = (l$$_gt as int?);
+    }
+    if (data.containsKey('_gte')) {
+      final l$$_gte = data['_gte'];
+      result$data['_gte'] = (l$$_gte as int?);
+    }
+    if (data.containsKey('_in')) {
+      final l$$_in = data['_in'];
+      result$data['_in'] =
+          (l$$_in as List<dynamic>?)?.map((e) => (e as int)).toList();
+    }
+    if (data.containsKey('_isNull')) {
+      final l$$_isNull = data['_isNull'];
+      result$data['_isNull'] = (l$$_isNull as bool?);
+    }
+    if (data.containsKey('_lt')) {
+      final l$$_lt = data['_lt'];
+      result$data['_lt'] = (l$$_lt as int?);
+    }
+    if (data.containsKey('_lte')) {
+      final l$$_lte = data['_lte'];
+      result$data['_lte'] = (l$$_lte as int?);
+    }
+    if (data.containsKey('_neq')) {
+      final l$$_neq = data['_neq'];
+      result$data['_neq'] = (l$$_neq as int?);
+    }
+    if (data.containsKey('_nin')) {
+      final l$$_nin = data['_nin'];
+      result$data['_nin'] =
+          (l$$_nin as List<dynamic>?)?.map((e) => (e as int)).toList();
+    }
+    return Input$NumericComparisonExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  int? get $_eq => (_$data['_eq'] as int?);
+
+  int? get $_gt => (_$data['_gt'] as int?);
+
+  int? get $_gte => (_$data['_gte'] as int?);
+
+  List<int>? get $_in => (_$data['_in'] as List<int>?);
+
+  bool? get $_isNull => (_$data['_isNull'] as bool?);
+
+  int? get $_lt => (_$data['_lt'] as int?);
+
+  int? get $_lte => (_$data['_lte'] as int?);
+
+  int? get $_neq => (_$data['_neq'] as int?);
+
+  List<int>? get $_nin => (_$data['_nin'] as List<int>?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_eq')) {
+      final l$$_eq = $_eq;
+      result$data['_eq'] = l$$_eq;
+    }
+    if (_$data.containsKey('_gt')) {
+      final l$$_gt = $_gt;
+      result$data['_gt'] = l$$_gt;
+    }
+    if (_$data.containsKey('_gte')) {
+      final l$$_gte = $_gte;
+      result$data['_gte'] = l$$_gte;
+    }
+    if (_$data.containsKey('_in')) {
+      final l$$_in = $_in;
+      result$data['_in'] = l$$_in?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_isNull')) {
+      final l$$_isNull = $_isNull;
+      result$data['_isNull'] = l$$_isNull;
+    }
+    if (_$data.containsKey('_lt')) {
+      final l$$_lt = $_lt;
+      result$data['_lt'] = l$$_lt;
+    }
+    if (_$data.containsKey('_lte')) {
+      final l$$_lte = $_lte;
+      result$data['_lte'] = l$$_lte;
+    }
+    if (_$data.containsKey('_neq')) {
+      final l$$_neq = $_neq;
+      result$data['_neq'] = l$$_neq;
+    }
+    if (_$data.containsKey('_nin')) {
+      final l$$_nin = $_nin;
+      result$data['_nin'] = l$$_nin?.map((e) => e).toList();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$NumericComparisonExp<Input$NumericComparisonExp>
+      get copyWith => CopyWith$Input$NumericComparisonExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$NumericComparisonExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_eq = $_eq;
+    final lOther$$_eq = other.$_eq;
+    if (_$data.containsKey('_eq') != other._$data.containsKey('_eq')) {
+      return false;
+    }
+    if (l$$_eq != lOther$$_eq) {
+      return false;
+    }
+    final l$$_gt = $_gt;
+    final lOther$$_gt = other.$_gt;
+    if (_$data.containsKey('_gt') != other._$data.containsKey('_gt')) {
+      return false;
+    }
+    if (l$$_gt != lOther$$_gt) {
+      return false;
+    }
+    final l$$_gte = $_gte;
+    final lOther$$_gte = other.$_gte;
+    if (_$data.containsKey('_gte') != other._$data.containsKey('_gte')) {
+      return false;
+    }
+    if (l$$_gte != lOther$$_gte) {
+      return false;
+    }
+    final l$$_in = $_in;
+    final lOther$$_in = other.$_in;
+    if (_$data.containsKey('_in') != other._$data.containsKey('_in')) {
+      return false;
+    }
+    if (l$$_in != null && lOther$$_in != null) {
+      if (l$$_in.length != lOther$$_in.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_in.length; i++) {
+        final l$$_in$entry = l$$_in[i];
+        final lOther$$_in$entry = lOther$$_in[i];
+        if (l$$_in$entry != lOther$$_in$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_in != lOther$$_in) {
+      return false;
+    }
+    final l$$_isNull = $_isNull;
+    final lOther$$_isNull = other.$_isNull;
+    if (_$data.containsKey('_isNull') != other._$data.containsKey('_isNull')) {
+      return false;
+    }
+    if (l$$_isNull != lOther$$_isNull) {
+      return false;
+    }
+    final l$$_lt = $_lt;
+    final lOther$$_lt = other.$_lt;
+    if (_$data.containsKey('_lt') != other._$data.containsKey('_lt')) {
+      return false;
+    }
+    if (l$$_lt != lOther$$_lt) {
+      return false;
+    }
+    final l$$_lte = $_lte;
+    final lOther$$_lte = other.$_lte;
+    if (_$data.containsKey('_lte') != other._$data.containsKey('_lte')) {
+      return false;
+    }
+    if (l$$_lte != lOther$$_lte) {
+      return false;
+    }
+    final l$$_neq = $_neq;
+    final lOther$$_neq = other.$_neq;
+    if (_$data.containsKey('_neq') != other._$data.containsKey('_neq')) {
+      return false;
+    }
+    if (l$$_neq != lOther$$_neq) {
+      return false;
+    }
+    final l$$_nin = $_nin;
+    final lOther$$_nin = other.$_nin;
+    if (_$data.containsKey('_nin') != other._$data.containsKey('_nin')) {
+      return false;
+    }
+    if (l$$_nin != null && lOther$$_nin != null) {
+      if (l$$_nin.length != lOther$$_nin.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_nin.length; i++) {
+        final l$$_nin$entry = l$$_nin[i];
+        final lOther$$_nin$entry = lOther$$_nin[i];
+        if (l$$_nin$entry != lOther$$_nin$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_nin != lOther$$_nin) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_eq = $_eq;
+    final l$$_gt = $_gt;
+    final l$$_gte = $_gte;
+    final l$$_in = $_in;
+    final l$$_isNull = $_isNull;
+    final l$$_lt = $_lt;
+    final l$$_lte = $_lte;
+    final l$$_neq = $_neq;
+    final l$$_nin = $_nin;
+    return Object.hashAll([
+      _$data.containsKey('_eq') ? l$$_eq : const {},
+      _$data.containsKey('_gt') ? l$$_gt : const {},
+      _$data.containsKey('_gte') ? l$$_gte : const {},
+      _$data.containsKey('_in')
+          ? l$$_in == null
+              ? null
+              : Object.hashAll(l$$_in.map((v) => v))
+          : const {},
+      _$data.containsKey('_isNull') ? l$$_isNull : const {},
+      _$data.containsKey('_lt') ? l$$_lt : const {},
+      _$data.containsKey('_lte') ? l$$_lte : const {},
+      _$data.containsKey('_neq') ? l$$_neq : const {},
+      _$data.containsKey('_nin')
+          ? l$$_nin == null
+              ? null
+              : Object.hashAll(l$$_nin.map((v) => v))
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$NumericComparisonExp<TRes> {
+  factory CopyWith$Input$NumericComparisonExp(
+    Input$NumericComparisonExp instance,
+    TRes Function(Input$NumericComparisonExp) then,
+  ) = _CopyWithImpl$Input$NumericComparisonExp;
+
+  factory CopyWith$Input$NumericComparisonExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$NumericComparisonExp;
+
+  TRes call({
+    int? $_eq,
+    int? $_gt,
+    int? $_gte,
+    List<int>? $_in,
+    bool? $_isNull,
+    int? $_lt,
+    int? $_lte,
+    int? $_neq,
+    List<int>? $_nin,
+  });
+}
+
+class _CopyWithImpl$Input$NumericComparisonExp<TRes>
+    implements CopyWith$Input$NumericComparisonExp<TRes> {
+  _CopyWithImpl$Input$NumericComparisonExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$NumericComparisonExp _instance;
+
+  final TRes Function(Input$NumericComparisonExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_eq = _undefined,
+    Object? $_gt = _undefined,
+    Object? $_gte = _undefined,
+    Object? $_in = _undefined,
+    Object? $_isNull = _undefined,
+    Object? $_lt = _undefined,
+    Object? $_lte = _undefined,
+    Object? $_neq = _undefined,
+    Object? $_nin = _undefined,
+  }) =>
+      _then(Input$NumericComparisonExp._({
+        ..._instance._$data,
+        if ($_eq != _undefined) '_eq': ($_eq as int?),
+        if ($_gt != _undefined) '_gt': ($_gt as int?),
+        if ($_gte != _undefined) '_gte': ($_gte as int?),
+        if ($_in != _undefined) '_in': ($_in as List<int>?),
+        if ($_isNull != _undefined) '_isNull': ($_isNull as bool?),
+        if ($_lt != _undefined) '_lt': ($_lt as int?),
+        if ($_lte != _undefined) '_lte': ($_lte as int?),
+        if ($_neq != _undefined) '_neq': ($_neq as int?),
+        if ($_nin != _undefined) '_nin': ($_nin as List<int>?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$NumericComparisonExp<TRes>
+    implements CopyWith$Input$NumericComparisonExp<TRes> {
+  _CopyWithStubImpl$Input$NumericComparisonExp(this._res);
+
+  TRes _res;
+
+  call({
+    int? $_eq,
+    int? $_gt,
+    int? $_gte,
+    List<int>? $_in,
+    bool? $_isNull,
+    int? $_lt,
+    int? $_lte,
+    int? $_neq,
+    List<int>? $_nin,
+  }) =>
+      _res;
+}
+
+class Input$SmithCertAggregateBoolExp {
+  factory Input$SmithCertAggregateBoolExp(
+          {Input$smithCertAggregateBoolExpCount? count}) =>
+      Input$SmithCertAggregateBoolExp._({
+        if (count != null) r'count': count,
+      });
+
+  Input$SmithCertAggregateBoolExp._(this._$data);
+
+  factory Input$SmithCertAggregateBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] = l$count == null
+          ? null
+          : Input$smithCertAggregateBoolExpCount.fromJson(
+              (l$count as Map<String, dynamic>));
+    }
+    return Input$SmithCertAggregateBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$smithCertAggregateBoolExpCount? get count =>
+      (_$data['count'] as Input$smithCertAggregateBoolExpCount?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] = l$count?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$SmithCertAggregateBoolExp<Input$SmithCertAggregateBoolExp>
+      get copyWith => CopyWith$Input$SmithCertAggregateBoolExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$SmithCertAggregateBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$count = count;
+    return Object.hashAll([_$data.containsKey('count') ? l$count : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$SmithCertAggregateBoolExp<TRes> {
+  factory CopyWith$Input$SmithCertAggregateBoolExp(
+    Input$SmithCertAggregateBoolExp instance,
+    TRes Function(Input$SmithCertAggregateBoolExp) then,
+  ) = _CopyWithImpl$Input$SmithCertAggregateBoolExp;
+
+  factory CopyWith$Input$SmithCertAggregateBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$SmithCertAggregateBoolExp;
+
+  TRes call({Input$smithCertAggregateBoolExpCount? count});
+  CopyWith$Input$smithCertAggregateBoolExpCount<TRes> get count;
+}
+
+class _CopyWithImpl$Input$SmithCertAggregateBoolExp<TRes>
+    implements CopyWith$Input$SmithCertAggregateBoolExp<TRes> {
+  _CopyWithImpl$Input$SmithCertAggregateBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$SmithCertAggregateBoolExp _instance;
+
+  final TRes Function(Input$SmithCertAggregateBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? count = _undefined}) =>
+      _then(Input$SmithCertAggregateBoolExp._({
+        ..._instance._$data,
+        if (count != _undefined)
+          'count': (count as Input$smithCertAggregateBoolExpCount?),
+      }));
+
+  CopyWith$Input$smithCertAggregateBoolExpCount<TRes> get count {
+    final local$count = _instance.count;
+    return local$count == null
+        ? CopyWith$Input$smithCertAggregateBoolExpCount.stub(_then(_instance))
+        : CopyWith$Input$smithCertAggregateBoolExpCount(
+            local$count, (e) => call(count: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$SmithCertAggregateBoolExp<TRes>
+    implements CopyWith$Input$SmithCertAggregateBoolExp<TRes> {
+  _CopyWithStubImpl$Input$SmithCertAggregateBoolExp(this._res);
+
+  TRes _res;
+
+  call({Input$smithCertAggregateBoolExpCount? count}) => _res;
+
+  CopyWith$Input$smithCertAggregateBoolExpCount<TRes> get count =>
+      CopyWith$Input$smithCertAggregateBoolExpCount.stub(_res);
+}
+
+class Input$smithCertAggregateBoolExpCount {
+  factory Input$smithCertAggregateBoolExpCount({
+    List<Enum$SmithCertSelectColumn>? arguments,
+    bool? distinct,
+    Input$SmithCertBoolExp? filter,
+    required Input$IntComparisonExp predicate,
+  }) =>
+      Input$smithCertAggregateBoolExpCount._({
+        if (arguments != null) r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$smithCertAggregateBoolExpCount._(this._$data);
+
+  factory Input$smithCertAggregateBoolExpCount.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('arguments')) {
+      final l$arguments = data['arguments'];
+      result$data['arguments'] = (l$arguments as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$SmithCertSelectColumn((e as String)))
+          .toList();
+    }
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$SmithCertBoolExp.fromJson((l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] =
+        Input$IntComparisonExp.fromJson((l$predicate as Map<String, dynamic>));
+    return Input$smithCertAggregateBoolExpCount._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Enum$SmithCertSelectColumn>? get arguments =>
+      (_$data['arguments'] as List<Enum$SmithCertSelectColumn>?);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$SmithCertBoolExp? get filter =>
+      (_$data['filter'] as Input$SmithCertBoolExp?);
+
+  Input$IntComparisonExp get predicate =>
+      (_$data['predicate'] as Input$IntComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('arguments')) {
+      final l$arguments = arguments;
+      result$data['arguments'] = l$arguments
+          ?.map((e) => toJson$Enum$SmithCertSelectColumn(e))
+          .toList();
+    }
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$smithCertAggregateBoolExpCount<
+          Input$smithCertAggregateBoolExpCount>
+      get copyWith => CopyWith$Input$smithCertAggregateBoolExpCount(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$smithCertAggregateBoolExpCount) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (_$data.containsKey('arguments') !=
+        other._$data.containsKey('arguments')) {
+      return false;
+    }
+    if (l$arguments != null && lOther$arguments != null) {
+      if (l$arguments.length != lOther$arguments.length) {
+        return false;
+      }
+      for (int i = 0; i < l$arguments.length; i++) {
+        final l$arguments$entry = l$arguments[i];
+        final lOther$arguments$entry = lOther$arguments[i];
+        if (l$arguments$entry != lOther$arguments$entry) {
+          return false;
+        }
+      }
+    } else if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      _$data.containsKey('arguments')
+          ? l$arguments == null
+              ? null
+              : Object.hashAll(l$arguments.map((v) => v))
+          : const {},
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$smithCertAggregateBoolExpCount<TRes> {
+  factory CopyWith$Input$smithCertAggregateBoolExpCount(
+    Input$smithCertAggregateBoolExpCount instance,
+    TRes Function(Input$smithCertAggregateBoolExpCount) then,
+  ) = _CopyWithImpl$Input$smithCertAggregateBoolExpCount;
+
+  factory CopyWith$Input$smithCertAggregateBoolExpCount.stub(TRes res) =
+      _CopyWithStubImpl$Input$smithCertAggregateBoolExpCount;
+
+  TRes call({
+    List<Enum$SmithCertSelectColumn>? arguments,
+    bool? distinct,
+    Input$SmithCertBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  });
+  CopyWith$Input$SmithCertBoolExp<TRes> get filter;
+  CopyWith$Input$IntComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$smithCertAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$smithCertAggregateBoolExpCount<TRes> {
+  _CopyWithImpl$Input$smithCertAggregateBoolExpCount(
+    this._instance,
+    this._then,
+  );
+
+  final Input$smithCertAggregateBoolExpCount _instance;
+
+  final TRes Function(Input$smithCertAggregateBoolExpCount) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$smithCertAggregateBoolExpCount._({
+        ..._instance._$data,
+        if (arguments != _undefined)
+          'arguments': (arguments as List<Enum$SmithCertSelectColumn>?),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined) 'filter': (filter as Input$SmithCertBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$IntComparisonExp),
+      }));
+
+  CopyWith$Input$SmithCertBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$SmithCertBoolExp.stub(_then(_instance))
+        : CopyWith$Input$SmithCertBoolExp(local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$IntComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$smithCertAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$smithCertAggregateBoolExpCount<TRes> {
+  _CopyWithStubImpl$Input$smithCertAggregateBoolExpCount(this._res);
+
+  TRes _res;
+
+  call({
+    List<Enum$SmithCertSelectColumn>? arguments,
+    bool? distinct,
+    Input$SmithCertBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$SmithCertBoolExp<TRes> get filter =>
+      CopyWith$Input$SmithCertBoolExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+}
+
+class Input$SmithCertAggregateOrderBy {
+  factory Input$SmithCertAggregateOrderBy({
+    Input$SmithCertAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$SmithCertMaxOrderBy? max,
+    Input$SmithCertMinOrderBy? min,
+    Input$SmithCertStddevOrderBy? stddev,
+    Input$SmithCertStddevPopOrderBy? stddevPop,
+    Input$SmithCertStddevSampOrderBy? stddevSamp,
+    Input$SmithCertSumOrderBy? sum,
+    Input$SmithCertVarPopOrderBy? varPop,
+    Input$SmithCertVarSampOrderBy? varSamp,
+    Input$SmithCertVarianceOrderBy? variance,
+  }) =>
+      Input$SmithCertAggregateOrderBy._({
+        if (avg != null) r'avg': avg,
+        if (count != null) r'count': count,
+        if (max != null) r'max': max,
+        if (min != null) r'min': min,
+        if (stddev != null) r'stddev': stddev,
+        if (stddevPop != null) r'stddevPop': stddevPop,
+        if (stddevSamp != null) r'stddevSamp': stddevSamp,
+        if (sum != null) r'sum': sum,
+        if (varPop != null) r'varPop': varPop,
+        if (varSamp != null) r'varSamp': varSamp,
+        if (variance != null) r'variance': variance,
+      });
+
+  Input$SmithCertAggregateOrderBy._(this._$data);
+
+  factory Input$SmithCertAggregateOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('avg')) {
+      final l$avg = data['avg'];
+      result$data['avg'] = l$avg == null
+          ? null
+          : Input$SmithCertAvgOrderBy.fromJson((l$avg as Map<String, dynamic>));
+    }
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] =
+          l$count == null ? null : fromJson$Enum$OrderBy((l$count as String));
+    }
+    if (data.containsKey('max')) {
+      final l$max = data['max'];
+      result$data['max'] = l$max == null
+          ? null
+          : Input$SmithCertMaxOrderBy.fromJson((l$max as Map<String, dynamic>));
+    }
+    if (data.containsKey('min')) {
+      final l$min = data['min'];
+      result$data['min'] = l$min == null
+          ? null
+          : Input$SmithCertMinOrderBy.fromJson((l$min as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddev')) {
+      final l$stddev = data['stddev'];
+      result$data['stddev'] = l$stddev == null
+          ? null
+          : Input$SmithCertStddevOrderBy.fromJson(
+              (l$stddev as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevPop')) {
+      final l$stddevPop = data['stddevPop'];
+      result$data['stddevPop'] = l$stddevPop == null
+          ? null
+          : Input$SmithCertStddevPopOrderBy.fromJson(
+              (l$stddevPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevSamp')) {
+      final l$stddevSamp = data['stddevSamp'];
+      result$data['stddevSamp'] = l$stddevSamp == null
+          ? null
+          : Input$SmithCertStddevSampOrderBy.fromJson(
+              (l$stddevSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('sum')) {
+      final l$sum = data['sum'];
+      result$data['sum'] = l$sum == null
+          ? null
+          : Input$SmithCertSumOrderBy.fromJson((l$sum as Map<String, dynamic>));
+    }
+    if (data.containsKey('varPop')) {
+      final l$varPop = data['varPop'];
+      result$data['varPop'] = l$varPop == null
+          ? null
+          : Input$SmithCertVarPopOrderBy.fromJson(
+              (l$varPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('varSamp')) {
+      final l$varSamp = data['varSamp'];
+      result$data['varSamp'] = l$varSamp == null
+          ? null
+          : Input$SmithCertVarSampOrderBy.fromJson(
+              (l$varSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('variance')) {
+      final l$variance = data['variance'];
+      result$data['variance'] = l$variance == null
+          ? null
+          : Input$SmithCertVarianceOrderBy.fromJson(
+              (l$variance as Map<String, dynamic>));
+    }
+    return Input$SmithCertAggregateOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$SmithCertAvgOrderBy? get avg =>
+      (_$data['avg'] as Input$SmithCertAvgOrderBy?);
+
+  Enum$OrderBy? get count => (_$data['count'] as Enum$OrderBy?);
+
+  Input$SmithCertMaxOrderBy? get max =>
+      (_$data['max'] as Input$SmithCertMaxOrderBy?);
+
+  Input$SmithCertMinOrderBy? get min =>
+      (_$data['min'] as Input$SmithCertMinOrderBy?);
+
+  Input$SmithCertStddevOrderBy? get stddev =>
+      (_$data['stddev'] as Input$SmithCertStddevOrderBy?);
+
+  Input$SmithCertStddevPopOrderBy? get stddevPop =>
+      (_$data['stddevPop'] as Input$SmithCertStddevPopOrderBy?);
+
+  Input$SmithCertStddevSampOrderBy? get stddevSamp =>
+      (_$data['stddevSamp'] as Input$SmithCertStddevSampOrderBy?);
+
+  Input$SmithCertSumOrderBy? get sum =>
+      (_$data['sum'] as Input$SmithCertSumOrderBy?);
+
+  Input$SmithCertVarPopOrderBy? get varPop =>
+      (_$data['varPop'] as Input$SmithCertVarPopOrderBy?);
+
+  Input$SmithCertVarSampOrderBy? get varSamp =>
+      (_$data['varSamp'] as Input$SmithCertVarSampOrderBy?);
+
+  Input$SmithCertVarianceOrderBy? get variance =>
+      (_$data['variance'] as Input$SmithCertVarianceOrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('avg')) {
+      final l$avg = avg;
+      result$data['avg'] = l$avg?.toJson();
+    }
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] =
+          l$count == null ? null : toJson$Enum$OrderBy(l$count);
+    }
+    if (_$data.containsKey('max')) {
+      final l$max = max;
+      result$data['max'] = l$max?.toJson();
+    }
+    if (_$data.containsKey('min')) {
+      final l$min = min;
+      result$data['min'] = l$min?.toJson();
+    }
+    if (_$data.containsKey('stddev')) {
+      final l$stddev = stddev;
+      result$data['stddev'] = l$stddev?.toJson();
+    }
+    if (_$data.containsKey('stddevPop')) {
+      final l$stddevPop = stddevPop;
+      result$data['stddevPop'] = l$stddevPop?.toJson();
+    }
+    if (_$data.containsKey('stddevSamp')) {
+      final l$stddevSamp = stddevSamp;
+      result$data['stddevSamp'] = l$stddevSamp?.toJson();
+    }
+    if (_$data.containsKey('sum')) {
+      final l$sum = sum;
+      result$data['sum'] = l$sum?.toJson();
+    }
+    if (_$data.containsKey('varPop')) {
+      final l$varPop = varPop;
+      result$data['varPop'] = l$varPop?.toJson();
+    }
+    if (_$data.containsKey('varSamp')) {
+      final l$varSamp = varSamp;
+      result$data['varSamp'] = l$varSamp?.toJson();
+    }
+    if (_$data.containsKey('variance')) {
+      final l$variance = variance;
+      result$data['variance'] = l$variance?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$SmithCertAggregateOrderBy<Input$SmithCertAggregateOrderBy>
+      get copyWith => CopyWith$Input$SmithCertAggregateOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$SmithCertAggregateOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$avg = avg;
+    final lOther$avg = other.avg;
+    if (_$data.containsKey('avg') != other._$data.containsKey('avg')) {
+      return false;
+    }
+    if (l$avg != lOther$avg) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    final l$max = max;
+    final lOther$max = other.max;
+    if (_$data.containsKey('max') != other._$data.containsKey('max')) {
+      return false;
+    }
+    if (l$max != lOther$max) {
+      return false;
+    }
+    final l$min = min;
+    final lOther$min = other.min;
+    if (_$data.containsKey('min') != other._$data.containsKey('min')) {
+      return false;
+    }
+    if (l$min != lOther$min) {
+      return false;
+    }
+    final l$stddev = stddev;
+    final lOther$stddev = other.stddev;
+    if (_$data.containsKey('stddev') != other._$data.containsKey('stddev')) {
+      return false;
+    }
+    if (l$stddev != lOther$stddev) {
+      return false;
+    }
+    final l$stddevPop = stddevPop;
+    final lOther$stddevPop = other.stddevPop;
+    if (_$data.containsKey('stddevPop') !=
+        other._$data.containsKey('stddevPop')) {
+      return false;
+    }
+    if (l$stddevPop != lOther$stddevPop) {
+      return false;
+    }
+    final l$stddevSamp = stddevSamp;
+    final lOther$stddevSamp = other.stddevSamp;
+    if (_$data.containsKey('stddevSamp') !=
+        other._$data.containsKey('stddevSamp')) {
+      return false;
+    }
+    if (l$stddevSamp != lOther$stddevSamp) {
+      return false;
+    }
+    final l$sum = sum;
+    final lOther$sum = other.sum;
+    if (_$data.containsKey('sum') != other._$data.containsKey('sum')) {
+      return false;
+    }
+    if (l$sum != lOther$sum) {
+      return false;
+    }
+    final l$varPop = varPop;
+    final lOther$varPop = other.varPop;
+    if (_$data.containsKey('varPop') != other._$data.containsKey('varPop')) {
+      return false;
+    }
+    if (l$varPop != lOther$varPop) {
+      return false;
+    }
+    final l$varSamp = varSamp;
+    final lOther$varSamp = other.varSamp;
+    if (_$data.containsKey('varSamp') != other._$data.containsKey('varSamp')) {
+      return false;
+    }
+    if (l$varSamp != lOther$varSamp) {
+      return false;
+    }
+    final l$variance = variance;
+    final lOther$variance = other.variance;
+    if (_$data.containsKey('variance') !=
+        other._$data.containsKey('variance')) {
+      return false;
+    }
+    if (l$variance != lOther$variance) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$avg = avg;
+    final l$count = count;
+    final l$max = max;
+    final l$min = min;
+    final l$stddev = stddev;
+    final l$stddevPop = stddevPop;
+    final l$stddevSamp = stddevSamp;
+    final l$sum = sum;
+    final l$varPop = varPop;
+    final l$varSamp = varSamp;
+    final l$variance = variance;
+    return Object.hashAll([
+      _$data.containsKey('avg') ? l$avg : const {},
+      _$data.containsKey('count') ? l$count : const {},
+      _$data.containsKey('max') ? l$max : const {},
+      _$data.containsKey('min') ? l$min : const {},
+      _$data.containsKey('stddev') ? l$stddev : const {},
+      _$data.containsKey('stddevPop') ? l$stddevPop : const {},
+      _$data.containsKey('stddevSamp') ? l$stddevSamp : const {},
+      _$data.containsKey('sum') ? l$sum : const {},
+      _$data.containsKey('varPop') ? l$varPop : const {},
+      _$data.containsKey('varSamp') ? l$varSamp : const {},
+      _$data.containsKey('variance') ? l$variance : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$SmithCertAggregateOrderBy<TRes> {
+  factory CopyWith$Input$SmithCertAggregateOrderBy(
+    Input$SmithCertAggregateOrderBy instance,
+    TRes Function(Input$SmithCertAggregateOrderBy) then,
+  ) = _CopyWithImpl$Input$SmithCertAggregateOrderBy;
+
+  factory CopyWith$Input$SmithCertAggregateOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$SmithCertAggregateOrderBy;
+
+  TRes call({
+    Input$SmithCertAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$SmithCertMaxOrderBy? max,
+    Input$SmithCertMinOrderBy? min,
+    Input$SmithCertStddevOrderBy? stddev,
+    Input$SmithCertStddevPopOrderBy? stddevPop,
+    Input$SmithCertStddevSampOrderBy? stddevSamp,
+    Input$SmithCertSumOrderBy? sum,
+    Input$SmithCertVarPopOrderBy? varPop,
+    Input$SmithCertVarSampOrderBy? varSamp,
+    Input$SmithCertVarianceOrderBy? variance,
+  });
+  CopyWith$Input$SmithCertAvgOrderBy<TRes> get avg;
+  CopyWith$Input$SmithCertMaxOrderBy<TRes> get max;
+  CopyWith$Input$SmithCertMinOrderBy<TRes> get min;
+  CopyWith$Input$SmithCertStddevOrderBy<TRes> get stddev;
+  CopyWith$Input$SmithCertStddevPopOrderBy<TRes> get stddevPop;
+  CopyWith$Input$SmithCertStddevSampOrderBy<TRes> get stddevSamp;
+  CopyWith$Input$SmithCertSumOrderBy<TRes> get sum;
+  CopyWith$Input$SmithCertVarPopOrderBy<TRes> get varPop;
+  CopyWith$Input$SmithCertVarSampOrderBy<TRes> get varSamp;
+  CopyWith$Input$SmithCertVarianceOrderBy<TRes> get variance;
+}
+
+class _CopyWithImpl$Input$SmithCertAggregateOrderBy<TRes>
+    implements CopyWith$Input$SmithCertAggregateOrderBy<TRes> {
+  _CopyWithImpl$Input$SmithCertAggregateOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$SmithCertAggregateOrderBy _instance;
+
+  final TRes Function(Input$SmithCertAggregateOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? avg = _undefined,
+    Object? count = _undefined,
+    Object? max = _undefined,
+    Object? min = _undefined,
+    Object? stddev = _undefined,
+    Object? stddevPop = _undefined,
+    Object? stddevSamp = _undefined,
+    Object? sum = _undefined,
+    Object? varPop = _undefined,
+    Object? varSamp = _undefined,
+    Object? variance = _undefined,
+  }) =>
+      _then(Input$SmithCertAggregateOrderBy._({
+        ..._instance._$data,
+        if (avg != _undefined) 'avg': (avg as Input$SmithCertAvgOrderBy?),
+        if (count != _undefined) 'count': (count as Enum$OrderBy?),
+        if (max != _undefined) 'max': (max as Input$SmithCertMaxOrderBy?),
+        if (min != _undefined) 'min': (min as Input$SmithCertMinOrderBy?),
+        if (stddev != _undefined)
+          'stddev': (stddev as Input$SmithCertStddevOrderBy?),
+        if (stddevPop != _undefined)
+          'stddevPop': (stddevPop as Input$SmithCertStddevPopOrderBy?),
+        if (stddevSamp != _undefined)
+          'stddevSamp': (stddevSamp as Input$SmithCertStddevSampOrderBy?),
+        if (sum != _undefined) 'sum': (sum as Input$SmithCertSumOrderBy?),
+        if (varPop != _undefined)
+          'varPop': (varPop as Input$SmithCertVarPopOrderBy?),
+        if (varSamp != _undefined)
+          'varSamp': (varSamp as Input$SmithCertVarSampOrderBy?),
+        if (variance != _undefined)
+          'variance': (variance as Input$SmithCertVarianceOrderBy?),
+      }));
+
+  CopyWith$Input$SmithCertAvgOrderBy<TRes> get avg {
+    final local$avg = _instance.avg;
+    return local$avg == null
+        ? CopyWith$Input$SmithCertAvgOrderBy.stub(_then(_instance))
+        : CopyWith$Input$SmithCertAvgOrderBy(local$avg, (e) => call(avg: e));
+  }
+
+  CopyWith$Input$SmithCertMaxOrderBy<TRes> get max {
+    final local$max = _instance.max;
+    return local$max == null
+        ? CopyWith$Input$SmithCertMaxOrderBy.stub(_then(_instance))
+        : CopyWith$Input$SmithCertMaxOrderBy(local$max, (e) => call(max: e));
+  }
+
+  CopyWith$Input$SmithCertMinOrderBy<TRes> get min {
+    final local$min = _instance.min;
+    return local$min == null
+        ? CopyWith$Input$SmithCertMinOrderBy.stub(_then(_instance))
+        : CopyWith$Input$SmithCertMinOrderBy(local$min, (e) => call(min: e));
+  }
+
+  CopyWith$Input$SmithCertStddevOrderBy<TRes> get stddev {
+    final local$stddev = _instance.stddev;
+    return local$stddev == null
+        ? CopyWith$Input$SmithCertStddevOrderBy.stub(_then(_instance))
+        : CopyWith$Input$SmithCertStddevOrderBy(
+            local$stddev, (e) => call(stddev: e));
+  }
+
+  CopyWith$Input$SmithCertStddevPopOrderBy<TRes> get stddevPop {
+    final local$stddevPop = _instance.stddevPop;
+    return local$stddevPop == null
+        ? CopyWith$Input$SmithCertStddevPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$SmithCertStddevPopOrderBy(
+            local$stddevPop, (e) => call(stddevPop: e));
+  }
+
+  CopyWith$Input$SmithCertStddevSampOrderBy<TRes> get stddevSamp {
+    final local$stddevSamp = _instance.stddevSamp;
+    return local$stddevSamp == null
+        ? CopyWith$Input$SmithCertStddevSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$SmithCertStddevSampOrderBy(
+            local$stddevSamp, (e) => call(stddevSamp: e));
+  }
+
+  CopyWith$Input$SmithCertSumOrderBy<TRes> get sum {
+    final local$sum = _instance.sum;
+    return local$sum == null
+        ? CopyWith$Input$SmithCertSumOrderBy.stub(_then(_instance))
+        : CopyWith$Input$SmithCertSumOrderBy(local$sum, (e) => call(sum: e));
+  }
+
+  CopyWith$Input$SmithCertVarPopOrderBy<TRes> get varPop {
+    final local$varPop = _instance.varPop;
+    return local$varPop == null
+        ? CopyWith$Input$SmithCertVarPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$SmithCertVarPopOrderBy(
+            local$varPop, (e) => call(varPop: e));
+  }
+
+  CopyWith$Input$SmithCertVarSampOrderBy<TRes> get varSamp {
+    final local$varSamp = _instance.varSamp;
+    return local$varSamp == null
+        ? CopyWith$Input$SmithCertVarSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$SmithCertVarSampOrderBy(
+            local$varSamp, (e) => call(varSamp: e));
+  }
+
+  CopyWith$Input$SmithCertVarianceOrderBy<TRes> get variance {
+    final local$variance = _instance.variance;
+    return local$variance == null
+        ? CopyWith$Input$SmithCertVarianceOrderBy.stub(_then(_instance))
+        : CopyWith$Input$SmithCertVarianceOrderBy(
+            local$variance, (e) => call(variance: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$SmithCertAggregateOrderBy<TRes>
+    implements CopyWith$Input$SmithCertAggregateOrderBy<TRes> {
+  _CopyWithStubImpl$Input$SmithCertAggregateOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Input$SmithCertAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$SmithCertMaxOrderBy? max,
+    Input$SmithCertMinOrderBy? min,
+    Input$SmithCertStddevOrderBy? stddev,
+    Input$SmithCertStddevPopOrderBy? stddevPop,
+    Input$SmithCertStddevSampOrderBy? stddevSamp,
+    Input$SmithCertSumOrderBy? sum,
+    Input$SmithCertVarPopOrderBy? varPop,
+    Input$SmithCertVarSampOrderBy? varSamp,
+    Input$SmithCertVarianceOrderBy? variance,
+  }) =>
+      _res;
+
+  CopyWith$Input$SmithCertAvgOrderBy<TRes> get avg =>
+      CopyWith$Input$SmithCertAvgOrderBy.stub(_res);
+
+  CopyWith$Input$SmithCertMaxOrderBy<TRes> get max =>
+      CopyWith$Input$SmithCertMaxOrderBy.stub(_res);
+
+  CopyWith$Input$SmithCertMinOrderBy<TRes> get min =>
+      CopyWith$Input$SmithCertMinOrderBy.stub(_res);
+
+  CopyWith$Input$SmithCertStddevOrderBy<TRes> get stddev =>
+      CopyWith$Input$SmithCertStddevOrderBy.stub(_res);
+
+  CopyWith$Input$SmithCertStddevPopOrderBy<TRes> get stddevPop =>
+      CopyWith$Input$SmithCertStddevPopOrderBy.stub(_res);
+
+  CopyWith$Input$SmithCertStddevSampOrderBy<TRes> get stddevSamp =>
+      CopyWith$Input$SmithCertStddevSampOrderBy.stub(_res);
+
+  CopyWith$Input$SmithCertSumOrderBy<TRes> get sum =>
+      CopyWith$Input$SmithCertSumOrderBy.stub(_res);
+
+  CopyWith$Input$SmithCertVarPopOrderBy<TRes> get varPop =>
+      CopyWith$Input$SmithCertVarPopOrderBy.stub(_res);
+
+  CopyWith$Input$SmithCertVarSampOrderBy<TRes> get varSamp =>
+      CopyWith$Input$SmithCertVarSampOrderBy.stub(_res);
+
+  CopyWith$Input$SmithCertVarianceOrderBy<TRes> get variance =>
+      CopyWith$Input$SmithCertVarianceOrderBy.stub(_res);
+}
+
+class Input$SmithCertAvgOrderBy {
+  factory Input$SmithCertAvgOrderBy({Enum$OrderBy? createdOn}) =>
+      Input$SmithCertAvgOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+      });
+
+  Input$SmithCertAvgOrderBy._(this._$data);
+
+  factory Input$SmithCertAvgOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    return Input$SmithCertAvgOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$SmithCertAvgOrderBy<Input$SmithCertAvgOrderBy> get copyWith =>
+      CopyWith$Input$SmithCertAvgOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$SmithCertAvgOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    return Object.hashAll(
+        [_$data.containsKey('createdOn') ? l$createdOn : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$SmithCertAvgOrderBy<TRes> {
+  factory CopyWith$Input$SmithCertAvgOrderBy(
+    Input$SmithCertAvgOrderBy instance,
+    TRes Function(Input$SmithCertAvgOrderBy) then,
+  ) = _CopyWithImpl$Input$SmithCertAvgOrderBy;
+
+  factory CopyWith$Input$SmithCertAvgOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$SmithCertAvgOrderBy;
+
+  TRes call({Enum$OrderBy? createdOn});
+}
+
+class _CopyWithImpl$Input$SmithCertAvgOrderBy<TRes>
+    implements CopyWith$Input$SmithCertAvgOrderBy<TRes> {
+  _CopyWithImpl$Input$SmithCertAvgOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$SmithCertAvgOrderBy _instance;
+
+  final TRes Function(Input$SmithCertAvgOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? createdOn = _undefined}) =>
+      _then(Input$SmithCertAvgOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$SmithCertAvgOrderBy<TRes>
+    implements CopyWith$Input$SmithCertAvgOrderBy<TRes> {
+  _CopyWithStubImpl$Input$SmithCertAvgOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? createdOn}) => _res;
+}
+
+class Input$SmithCertBoolExp {
+  factory Input$SmithCertBoolExp({
+    List<Input$SmithCertBoolExp>? $_and,
+    Input$SmithCertBoolExp? $_not,
+    List<Input$SmithCertBoolExp>? $_or,
+    Input$IntComparisonExp? createdOn,
+    Input$StringComparisonExp? id,
+    Input$IdentityBoolExp? issuer,
+    Input$StringComparisonExp? issuerId,
+    Input$IdentityBoolExp? receiver,
+    Input$StringComparisonExp? receiverId,
+  }) =>
+      Input$SmithCertBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (createdOn != null) r'createdOn': createdOn,
+        if (id != null) r'id': id,
+        if (issuer != null) r'issuer': issuer,
+        if (issuerId != null) r'issuerId': issuerId,
+        if (receiver != null) r'receiver': receiver,
+        if (receiverId != null) r'receiverId': receiverId,
+      });
+
+  Input$SmithCertBoolExp._(this._$data);
+
+  factory Input$SmithCertBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map((e) =>
+              Input$SmithCertBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$SmithCertBoolExp.fromJson((l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map((e) =>
+              Input$SmithCertBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$createdOn as Map<String, dynamic>));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    if (data.containsKey('issuer')) {
+      final l$issuer = data['issuer'];
+      result$data['issuer'] = l$issuer == null
+          ? null
+          : Input$IdentityBoolExp.fromJson((l$issuer as Map<String, dynamic>));
+    }
+    if (data.containsKey('issuerId')) {
+      final l$issuerId = data['issuerId'];
+      result$data['issuerId'] = l$issuerId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$issuerId as Map<String, dynamic>));
+    }
+    if (data.containsKey('receiver')) {
+      final l$receiver = data['receiver'];
+      result$data['receiver'] = l$receiver == null
+          ? null
+          : Input$IdentityBoolExp.fromJson(
+              (l$receiver as Map<String, dynamic>));
+    }
+    if (data.containsKey('receiverId')) {
+      final l$receiverId = data['receiverId'];
+      result$data['receiverId'] = l$receiverId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$receiverId as Map<String, dynamic>));
+    }
+    return Input$SmithCertBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$SmithCertBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$SmithCertBoolExp>?);
+
+  Input$SmithCertBoolExp? get $_not =>
+      (_$data['_not'] as Input$SmithCertBoolExp?);
+
+  List<Input$SmithCertBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$SmithCertBoolExp>?);
+
+  Input$IntComparisonExp? get createdOn =>
+      (_$data['createdOn'] as Input$IntComparisonExp?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Input$IdentityBoolExp? get issuer =>
+      (_$data['issuer'] as Input$IdentityBoolExp?);
+
+  Input$StringComparisonExp? get issuerId =>
+      (_$data['issuerId'] as Input$StringComparisonExp?);
+
+  Input$IdentityBoolExp? get receiver =>
+      (_$data['receiver'] as Input$IdentityBoolExp?);
+
+  Input$StringComparisonExp? get receiverId =>
+      (_$data['receiverId'] as Input$StringComparisonExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] = l$createdOn?.toJson();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    if (_$data.containsKey('issuer')) {
+      final l$issuer = issuer;
+      result$data['issuer'] = l$issuer?.toJson();
+    }
+    if (_$data.containsKey('issuerId')) {
+      final l$issuerId = issuerId;
+      result$data['issuerId'] = l$issuerId?.toJson();
+    }
+    if (_$data.containsKey('receiver')) {
+      final l$receiver = receiver;
+      result$data['receiver'] = l$receiver?.toJson();
+    }
+    if (_$data.containsKey('receiverId')) {
+      final l$receiverId = receiverId;
+      result$data['receiverId'] = l$receiverId?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$SmithCertBoolExp<Input$SmithCertBoolExp> get copyWith =>
+      CopyWith$Input$SmithCertBoolExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$SmithCertBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$issuer = issuer;
+    final lOther$issuer = other.issuer;
+    if (_$data.containsKey('issuer') != other._$data.containsKey('issuer')) {
+      return false;
+    }
+    if (l$issuer != lOther$issuer) {
+      return false;
+    }
+    final l$issuerId = issuerId;
+    final lOther$issuerId = other.issuerId;
+    if (_$data.containsKey('issuerId') !=
+        other._$data.containsKey('issuerId')) {
+      return false;
+    }
+    if (l$issuerId != lOther$issuerId) {
+      return false;
+    }
+    final l$receiver = receiver;
+    final lOther$receiver = other.receiver;
+    if (_$data.containsKey('receiver') !=
+        other._$data.containsKey('receiver')) {
+      return false;
+    }
+    if (l$receiver != lOther$receiver) {
+      return false;
+    }
+    final l$receiverId = receiverId;
+    final lOther$receiverId = other.receiverId;
+    if (_$data.containsKey('receiverId') !=
+        other._$data.containsKey('receiverId')) {
+      return false;
+    }
+    if (l$receiverId != lOther$receiverId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$createdOn = createdOn;
+    final l$id = id;
+    final l$issuer = issuer;
+    final l$issuerId = issuerId;
+    final l$receiver = receiver;
+    final l$receiverId = receiverId;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('issuer') ? l$issuer : const {},
+      _$data.containsKey('issuerId') ? l$issuerId : const {},
+      _$data.containsKey('receiver') ? l$receiver : const {},
+      _$data.containsKey('receiverId') ? l$receiverId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$SmithCertBoolExp<TRes> {
+  factory CopyWith$Input$SmithCertBoolExp(
+    Input$SmithCertBoolExp instance,
+    TRes Function(Input$SmithCertBoolExp) then,
+  ) = _CopyWithImpl$Input$SmithCertBoolExp;
+
+  factory CopyWith$Input$SmithCertBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$SmithCertBoolExp;
+
+  TRes call({
+    List<Input$SmithCertBoolExp>? $_and,
+    Input$SmithCertBoolExp? $_not,
+    List<Input$SmithCertBoolExp>? $_or,
+    Input$IntComparisonExp? createdOn,
+    Input$StringComparisonExp? id,
+    Input$IdentityBoolExp? issuer,
+    Input$StringComparisonExp? issuerId,
+    Input$IdentityBoolExp? receiver,
+    Input$StringComparisonExp? receiverId,
+  });
+  TRes $_and(
+      Iterable<Input$SmithCertBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$SmithCertBoolExp<Input$SmithCertBoolExp>>?)
+          _fn);
+  CopyWith$Input$SmithCertBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$SmithCertBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$SmithCertBoolExp<Input$SmithCertBoolExp>>?)
+          _fn);
+  CopyWith$Input$IntComparisonExp<TRes> get createdOn;
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+  CopyWith$Input$IdentityBoolExp<TRes> get issuer;
+  CopyWith$Input$StringComparisonExp<TRes> get issuerId;
+  CopyWith$Input$IdentityBoolExp<TRes> get receiver;
+  CopyWith$Input$StringComparisonExp<TRes> get receiverId;
+}
+
+class _CopyWithImpl$Input$SmithCertBoolExp<TRes>
+    implements CopyWith$Input$SmithCertBoolExp<TRes> {
+  _CopyWithImpl$Input$SmithCertBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$SmithCertBoolExp _instance;
+
+  final TRes Function(Input$SmithCertBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? createdOn = _undefined,
+    Object? id = _undefined,
+    Object? issuer = _undefined,
+    Object? issuerId = _undefined,
+    Object? receiver = _undefined,
+    Object? receiverId = _undefined,
+  }) =>
+      _then(Input$SmithCertBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined)
+          '_and': ($_and as List<Input$SmithCertBoolExp>?),
+        if ($_not != _undefined) '_not': ($_not as Input$SmithCertBoolExp?),
+        if ($_or != _undefined) '_or': ($_or as List<Input$SmithCertBoolExp>?),
+        if (createdOn != _undefined)
+          'createdOn': (createdOn as Input$IntComparisonExp?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+        if (issuer != _undefined) 'issuer': (issuer as Input$IdentityBoolExp?),
+        if (issuerId != _undefined)
+          'issuerId': (issuerId as Input$StringComparisonExp?),
+        if (receiver != _undefined)
+          'receiver': (receiver as Input$IdentityBoolExp?),
+        if (receiverId != _undefined)
+          'receiverId': (receiverId as Input$StringComparisonExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$SmithCertBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$SmithCertBoolExp<Input$SmithCertBoolExp>>?)
+              _fn) =>
+      call(
+          $_and:
+              _fn(_instance.$_and?.map((e) => CopyWith$Input$SmithCertBoolExp(
+                    e,
+                    (i) => i,
+                  )))?.toList());
+
+  CopyWith$Input$SmithCertBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$SmithCertBoolExp.stub(_then(_instance))
+        : CopyWith$Input$SmithCertBoolExp(local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$SmithCertBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$SmithCertBoolExp<Input$SmithCertBoolExp>>?)
+              _fn) =>
+      call(
+          $_or: _fn(_instance.$_or?.map((e) => CopyWith$Input$SmithCertBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$IntComparisonExp<TRes> get createdOn {
+    final local$createdOn = _instance.createdOn;
+    return local$createdOn == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$createdOn, (e) => call(createdOn: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+
+  CopyWith$Input$IdentityBoolExp<TRes> get issuer {
+    final local$issuer = _instance.issuer;
+    return local$issuer == null
+        ? CopyWith$Input$IdentityBoolExp.stub(_then(_instance))
+        : CopyWith$Input$IdentityBoolExp(local$issuer, (e) => call(issuer: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get issuerId {
+    final local$issuerId = _instance.issuerId;
+    return local$issuerId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$issuerId, (e) => call(issuerId: e));
+  }
+
+  CopyWith$Input$IdentityBoolExp<TRes> get receiver {
+    final local$receiver = _instance.receiver;
+    return local$receiver == null
+        ? CopyWith$Input$IdentityBoolExp.stub(_then(_instance))
+        : CopyWith$Input$IdentityBoolExp(
+            local$receiver, (e) => call(receiver: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get receiverId {
+    final local$receiverId = _instance.receiverId;
+    return local$receiverId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$receiverId, (e) => call(receiverId: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$SmithCertBoolExp<TRes>
+    implements CopyWith$Input$SmithCertBoolExp<TRes> {
+  _CopyWithStubImpl$Input$SmithCertBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$SmithCertBoolExp>? $_and,
+    Input$SmithCertBoolExp? $_not,
+    List<Input$SmithCertBoolExp>? $_or,
+    Input$IntComparisonExp? createdOn,
+    Input$StringComparisonExp? id,
+    Input$IdentityBoolExp? issuer,
+    Input$StringComparisonExp? issuerId,
+    Input$IdentityBoolExp? receiver,
+    Input$StringComparisonExp? receiverId,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$SmithCertBoolExp<TRes> get $_not =>
+      CopyWith$Input$SmithCertBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$IntComparisonExp<TRes> get createdOn =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$IdentityBoolExp<TRes> get issuer =>
+      CopyWith$Input$IdentityBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get issuerId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$IdentityBoolExp<TRes> get receiver =>
+      CopyWith$Input$IdentityBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get receiverId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+}
+
+class Input$SmithCertMaxOrderBy {
+  factory Input$SmithCertMaxOrderBy({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? issuerId,
+    Enum$OrderBy? receiverId,
+  }) =>
+      Input$SmithCertMaxOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+        if (id != null) r'id': id,
+        if (issuerId != null) r'issuerId': issuerId,
+        if (receiverId != null) r'receiverId': receiverId,
+      });
+
+  Input$SmithCertMaxOrderBy._(this._$data);
+
+  factory Input$SmithCertMaxOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('issuerId')) {
+      final l$issuerId = data['issuerId'];
+      result$data['issuerId'] = l$issuerId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$issuerId as String));
+    }
+    if (data.containsKey('receiverId')) {
+      final l$receiverId = data['receiverId'];
+      result$data['receiverId'] = l$receiverId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$receiverId as String));
+    }
+    return Input$SmithCertMaxOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get issuerId => (_$data['issuerId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get receiverId => (_$data['receiverId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('issuerId')) {
+      final l$issuerId = issuerId;
+      result$data['issuerId'] =
+          l$issuerId == null ? null : toJson$Enum$OrderBy(l$issuerId);
+    }
+    if (_$data.containsKey('receiverId')) {
+      final l$receiverId = receiverId;
+      result$data['receiverId'] =
+          l$receiverId == null ? null : toJson$Enum$OrderBy(l$receiverId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$SmithCertMaxOrderBy<Input$SmithCertMaxOrderBy> get copyWith =>
+      CopyWith$Input$SmithCertMaxOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$SmithCertMaxOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$issuerId = issuerId;
+    final lOther$issuerId = other.issuerId;
+    if (_$data.containsKey('issuerId') !=
+        other._$data.containsKey('issuerId')) {
+      return false;
+    }
+    if (l$issuerId != lOther$issuerId) {
+      return false;
+    }
+    final l$receiverId = receiverId;
+    final lOther$receiverId = other.receiverId;
+    if (_$data.containsKey('receiverId') !=
+        other._$data.containsKey('receiverId')) {
+      return false;
+    }
+    if (l$receiverId != lOther$receiverId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    final l$id = id;
+    final l$issuerId = issuerId;
+    final l$receiverId = receiverId;
+    return Object.hashAll([
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('issuerId') ? l$issuerId : const {},
+      _$data.containsKey('receiverId') ? l$receiverId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$SmithCertMaxOrderBy<TRes> {
+  factory CopyWith$Input$SmithCertMaxOrderBy(
+    Input$SmithCertMaxOrderBy instance,
+    TRes Function(Input$SmithCertMaxOrderBy) then,
+  ) = _CopyWithImpl$Input$SmithCertMaxOrderBy;
+
+  factory CopyWith$Input$SmithCertMaxOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$SmithCertMaxOrderBy;
+
+  TRes call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? issuerId,
+    Enum$OrderBy? receiverId,
+  });
+}
+
+class _CopyWithImpl$Input$SmithCertMaxOrderBy<TRes>
+    implements CopyWith$Input$SmithCertMaxOrderBy<TRes> {
+  _CopyWithImpl$Input$SmithCertMaxOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$SmithCertMaxOrderBy _instance;
+
+  final TRes Function(Input$SmithCertMaxOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? createdOn = _undefined,
+    Object? id = _undefined,
+    Object? issuerId = _undefined,
+    Object? receiverId = _undefined,
+  }) =>
+      _then(Input$SmithCertMaxOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (issuerId != _undefined) 'issuerId': (issuerId as Enum$OrderBy?),
+        if (receiverId != _undefined)
+          'receiverId': (receiverId as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$SmithCertMaxOrderBy<TRes>
+    implements CopyWith$Input$SmithCertMaxOrderBy<TRes> {
+  _CopyWithStubImpl$Input$SmithCertMaxOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? issuerId,
+    Enum$OrderBy? receiverId,
+  }) =>
+      _res;
+}
+
+class Input$SmithCertMinOrderBy {
+  factory Input$SmithCertMinOrderBy({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? issuerId,
+    Enum$OrderBy? receiverId,
+  }) =>
+      Input$SmithCertMinOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+        if (id != null) r'id': id,
+        if (issuerId != null) r'issuerId': issuerId,
+        if (receiverId != null) r'receiverId': receiverId,
+      });
+
+  Input$SmithCertMinOrderBy._(this._$data);
+
+  factory Input$SmithCertMinOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('issuerId')) {
+      final l$issuerId = data['issuerId'];
+      result$data['issuerId'] = l$issuerId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$issuerId as String));
+    }
+    if (data.containsKey('receiverId')) {
+      final l$receiverId = data['receiverId'];
+      result$data['receiverId'] = l$receiverId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$receiverId as String));
+    }
+    return Input$SmithCertMinOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get issuerId => (_$data['issuerId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get receiverId => (_$data['receiverId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('issuerId')) {
+      final l$issuerId = issuerId;
+      result$data['issuerId'] =
+          l$issuerId == null ? null : toJson$Enum$OrderBy(l$issuerId);
+    }
+    if (_$data.containsKey('receiverId')) {
+      final l$receiverId = receiverId;
+      result$data['receiverId'] =
+          l$receiverId == null ? null : toJson$Enum$OrderBy(l$receiverId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$SmithCertMinOrderBy<Input$SmithCertMinOrderBy> get copyWith =>
+      CopyWith$Input$SmithCertMinOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$SmithCertMinOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$issuerId = issuerId;
+    final lOther$issuerId = other.issuerId;
+    if (_$data.containsKey('issuerId') !=
+        other._$data.containsKey('issuerId')) {
+      return false;
+    }
+    if (l$issuerId != lOther$issuerId) {
+      return false;
+    }
+    final l$receiverId = receiverId;
+    final lOther$receiverId = other.receiverId;
+    if (_$data.containsKey('receiverId') !=
+        other._$data.containsKey('receiverId')) {
+      return false;
+    }
+    if (l$receiverId != lOther$receiverId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    final l$id = id;
+    final l$issuerId = issuerId;
+    final l$receiverId = receiverId;
+    return Object.hashAll([
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('issuerId') ? l$issuerId : const {},
+      _$data.containsKey('receiverId') ? l$receiverId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$SmithCertMinOrderBy<TRes> {
+  factory CopyWith$Input$SmithCertMinOrderBy(
+    Input$SmithCertMinOrderBy instance,
+    TRes Function(Input$SmithCertMinOrderBy) then,
+  ) = _CopyWithImpl$Input$SmithCertMinOrderBy;
+
+  factory CopyWith$Input$SmithCertMinOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$SmithCertMinOrderBy;
+
+  TRes call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? issuerId,
+    Enum$OrderBy? receiverId,
+  });
+}
+
+class _CopyWithImpl$Input$SmithCertMinOrderBy<TRes>
+    implements CopyWith$Input$SmithCertMinOrderBy<TRes> {
+  _CopyWithImpl$Input$SmithCertMinOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$SmithCertMinOrderBy _instance;
+
+  final TRes Function(Input$SmithCertMinOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? createdOn = _undefined,
+    Object? id = _undefined,
+    Object? issuerId = _undefined,
+    Object? receiverId = _undefined,
+  }) =>
+      _then(Input$SmithCertMinOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (issuerId != _undefined) 'issuerId': (issuerId as Enum$OrderBy?),
+        if (receiverId != _undefined)
+          'receiverId': (receiverId as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$SmithCertMinOrderBy<TRes>
+    implements CopyWith$Input$SmithCertMinOrderBy<TRes> {
+  _CopyWithStubImpl$Input$SmithCertMinOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? id,
+    Enum$OrderBy? issuerId,
+    Enum$OrderBy? receiverId,
+  }) =>
+      _res;
+}
+
+class Input$SmithCertOrderBy {
+  factory Input$SmithCertOrderBy({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? id,
+    Input$IdentityOrderBy? issuer,
+    Enum$OrderBy? issuerId,
+    Input$IdentityOrderBy? receiver,
+    Enum$OrderBy? receiverId,
+  }) =>
+      Input$SmithCertOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+        if (id != null) r'id': id,
+        if (issuer != null) r'issuer': issuer,
+        if (issuerId != null) r'issuerId': issuerId,
+        if (receiver != null) r'receiver': receiver,
+        if (receiverId != null) r'receiverId': receiverId,
+      });
+
+  Input$SmithCertOrderBy._(this._$data);
+
+  factory Input$SmithCertOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('issuer')) {
+      final l$issuer = data['issuer'];
+      result$data['issuer'] = l$issuer == null
+          ? null
+          : Input$IdentityOrderBy.fromJson((l$issuer as Map<String, dynamic>));
+    }
+    if (data.containsKey('issuerId')) {
+      final l$issuerId = data['issuerId'];
+      result$data['issuerId'] = l$issuerId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$issuerId as String));
+    }
+    if (data.containsKey('receiver')) {
+      final l$receiver = data['receiver'];
+      result$data['receiver'] = l$receiver == null
+          ? null
+          : Input$IdentityOrderBy.fromJson(
+              (l$receiver as Map<String, dynamic>));
+    }
+    if (data.containsKey('receiverId')) {
+      final l$receiverId = data['receiverId'];
+      result$data['receiverId'] = l$receiverId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$receiverId as String));
+    }
+    return Input$SmithCertOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Input$IdentityOrderBy? get issuer =>
+      (_$data['issuer'] as Input$IdentityOrderBy?);
+
+  Enum$OrderBy? get issuerId => (_$data['issuerId'] as Enum$OrderBy?);
+
+  Input$IdentityOrderBy? get receiver =>
+      (_$data['receiver'] as Input$IdentityOrderBy?);
+
+  Enum$OrderBy? get receiverId => (_$data['receiverId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('issuer')) {
+      final l$issuer = issuer;
+      result$data['issuer'] = l$issuer?.toJson();
+    }
+    if (_$data.containsKey('issuerId')) {
+      final l$issuerId = issuerId;
+      result$data['issuerId'] =
+          l$issuerId == null ? null : toJson$Enum$OrderBy(l$issuerId);
+    }
+    if (_$data.containsKey('receiver')) {
+      final l$receiver = receiver;
+      result$data['receiver'] = l$receiver?.toJson();
+    }
+    if (_$data.containsKey('receiverId')) {
+      final l$receiverId = receiverId;
+      result$data['receiverId'] =
+          l$receiverId == null ? null : toJson$Enum$OrderBy(l$receiverId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$SmithCertOrderBy<Input$SmithCertOrderBy> get copyWith =>
+      CopyWith$Input$SmithCertOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$SmithCertOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$issuer = issuer;
+    final lOther$issuer = other.issuer;
+    if (_$data.containsKey('issuer') != other._$data.containsKey('issuer')) {
+      return false;
+    }
+    if (l$issuer != lOther$issuer) {
+      return false;
+    }
+    final l$issuerId = issuerId;
+    final lOther$issuerId = other.issuerId;
+    if (_$data.containsKey('issuerId') !=
+        other._$data.containsKey('issuerId')) {
+      return false;
+    }
+    if (l$issuerId != lOther$issuerId) {
+      return false;
+    }
+    final l$receiver = receiver;
+    final lOther$receiver = other.receiver;
+    if (_$data.containsKey('receiver') !=
+        other._$data.containsKey('receiver')) {
+      return false;
+    }
+    if (l$receiver != lOther$receiver) {
+      return false;
+    }
+    final l$receiverId = receiverId;
+    final lOther$receiverId = other.receiverId;
+    if (_$data.containsKey('receiverId') !=
+        other._$data.containsKey('receiverId')) {
+      return false;
+    }
+    if (l$receiverId != lOther$receiverId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    final l$id = id;
+    final l$issuer = issuer;
+    final l$issuerId = issuerId;
+    final l$receiver = receiver;
+    final l$receiverId = receiverId;
+    return Object.hashAll([
+      _$data.containsKey('createdOn') ? l$createdOn : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('issuer') ? l$issuer : const {},
+      _$data.containsKey('issuerId') ? l$issuerId : const {},
+      _$data.containsKey('receiver') ? l$receiver : const {},
+      _$data.containsKey('receiverId') ? l$receiverId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$SmithCertOrderBy<TRes> {
+  factory CopyWith$Input$SmithCertOrderBy(
+    Input$SmithCertOrderBy instance,
+    TRes Function(Input$SmithCertOrderBy) then,
+  ) = _CopyWithImpl$Input$SmithCertOrderBy;
+
+  factory CopyWith$Input$SmithCertOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$SmithCertOrderBy;
+
+  TRes call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? id,
+    Input$IdentityOrderBy? issuer,
+    Enum$OrderBy? issuerId,
+    Input$IdentityOrderBy? receiver,
+    Enum$OrderBy? receiverId,
+  });
+  CopyWith$Input$IdentityOrderBy<TRes> get issuer;
+  CopyWith$Input$IdentityOrderBy<TRes> get receiver;
+}
+
+class _CopyWithImpl$Input$SmithCertOrderBy<TRes>
+    implements CopyWith$Input$SmithCertOrderBy<TRes> {
+  _CopyWithImpl$Input$SmithCertOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$SmithCertOrderBy _instance;
+
+  final TRes Function(Input$SmithCertOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? createdOn = _undefined,
+    Object? id = _undefined,
+    Object? issuer = _undefined,
+    Object? issuerId = _undefined,
+    Object? receiver = _undefined,
+    Object? receiverId = _undefined,
+  }) =>
+      _then(Input$SmithCertOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (issuer != _undefined) 'issuer': (issuer as Input$IdentityOrderBy?),
+        if (issuerId != _undefined) 'issuerId': (issuerId as Enum$OrderBy?),
+        if (receiver != _undefined)
+          'receiver': (receiver as Input$IdentityOrderBy?),
+        if (receiverId != _undefined)
+          'receiverId': (receiverId as Enum$OrderBy?),
+      }));
+
+  CopyWith$Input$IdentityOrderBy<TRes> get issuer {
+    final local$issuer = _instance.issuer;
+    return local$issuer == null
+        ? CopyWith$Input$IdentityOrderBy.stub(_then(_instance))
+        : CopyWith$Input$IdentityOrderBy(local$issuer, (e) => call(issuer: e));
+  }
+
+  CopyWith$Input$IdentityOrderBy<TRes> get receiver {
+    final local$receiver = _instance.receiver;
+    return local$receiver == null
+        ? CopyWith$Input$IdentityOrderBy.stub(_then(_instance))
+        : CopyWith$Input$IdentityOrderBy(
+            local$receiver, (e) => call(receiver: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$SmithCertOrderBy<TRes>
+    implements CopyWith$Input$SmithCertOrderBy<TRes> {
+  _CopyWithStubImpl$Input$SmithCertOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? createdOn,
+    Enum$OrderBy? id,
+    Input$IdentityOrderBy? issuer,
+    Enum$OrderBy? issuerId,
+    Input$IdentityOrderBy? receiver,
+    Enum$OrderBy? receiverId,
+  }) =>
+      _res;
+
+  CopyWith$Input$IdentityOrderBy<TRes> get issuer =>
+      CopyWith$Input$IdentityOrderBy.stub(_res);
+
+  CopyWith$Input$IdentityOrderBy<TRes> get receiver =>
+      CopyWith$Input$IdentityOrderBy.stub(_res);
+}
+
+class Input$SmithCertStddevOrderBy {
+  factory Input$SmithCertStddevOrderBy({Enum$OrderBy? createdOn}) =>
+      Input$SmithCertStddevOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+      });
+
+  Input$SmithCertStddevOrderBy._(this._$data);
+
+  factory Input$SmithCertStddevOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    return Input$SmithCertStddevOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$SmithCertStddevOrderBy<Input$SmithCertStddevOrderBy>
+      get copyWith => CopyWith$Input$SmithCertStddevOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$SmithCertStddevOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    return Object.hashAll(
+        [_$data.containsKey('createdOn') ? l$createdOn : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$SmithCertStddevOrderBy<TRes> {
+  factory CopyWith$Input$SmithCertStddevOrderBy(
+    Input$SmithCertStddevOrderBy instance,
+    TRes Function(Input$SmithCertStddevOrderBy) then,
+  ) = _CopyWithImpl$Input$SmithCertStddevOrderBy;
+
+  factory CopyWith$Input$SmithCertStddevOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$SmithCertStddevOrderBy;
+
+  TRes call({Enum$OrderBy? createdOn});
+}
+
+class _CopyWithImpl$Input$SmithCertStddevOrderBy<TRes>
+    implements CopyWith$Input$SmithCertStddevOrderBy<TRes> {
+  _CopyWithImpl$Input$SmithCertStddevOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$SmithCertStddevOrderBy _instance;
+
+  final TRes Function(Input$SmithCertStddevOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? createdOn = _undefined}) =>
+      _then(Input$SmithCertStddevOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$SmithCertStddevOrderBy<TRes>
+    implements CopyWith$Input$SmithCertStddevOrderBy<TRes> {
+  _CopyWithStubImpl$Input$SmithCertStddevOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? createdOn}) => _res;
+}
+
+class Input$SmithCertStddevPopOrderBy {
+  factory Input$SmithCertStddevPopOrderBy({Enum$OrderBy? createdOn}) =>
+      Input$SmithCertStddevPopOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+      });
+
+  Input$SmithCertStddevPopOrderBy._(this._$data);
+
+  factory Input$SmithCertStddevPopOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    return Input$SmithCertStddevPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$SmithCertStddevPopOrderBy<Input$SmithCertStddevPopOrderBy>
+      get copyWith => CopyWith$Input$SmithCertStddevPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$SmithCertStddevPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    return Object.hashAll(
+        [_$data.containsKey('createdOn') ? l$createdOn : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$SmithCertStddevPopOrderBy<TRes> {
+  factory CopyWith$Input$SmithCertStddevPopOrderBy(
+    Input$SmithCertStddevPopOrderBy instance,
+    TRes Function(Input$SmithCertStddevPopOrderBy) then,
+  ) = _CopyWithImpl$Input$SmithCertStddevPopOrderBy;
+
+  factory CopyWith$Input$SmithCertStddevPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$SmithCertStddevPopOrderBy;
+
+  TRes call({Enum$OrderBy? createdOn});
+}
+
+class _CopyWithImpl$Input$SmithCertStddevPopOrderBy<TRes>
+    implements CopyWith$Input$SmithCertStddevPopOrderBy<TRes> {
+  _CopyWithImpl$Input$SmithCertStddevPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$SmithCertStddevPopOrderBy _instance;
+
+  final TRes Function(Input$SmithCertStddevPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? createdOn = _undefined}) =>
+      _then(Input$SmithCertStddevPopOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$SmithCertStddevPopOrderBy<TRes>
+    implements CopyWith$Input$SmithCertStddevPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$SmithCertStddevPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? createdOn}) => _res;
+}
+
+class Input$SmithCertStddevSampOrderBy {
+  factory Input$SmithCertStddevSampOrderBy({Enum$OrderBy? createdOn}) =>
+      Input$SmithCertStddevSampOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+      });
+
+  Input$SmithCertStddevSampOrderBy._(this._$data);
+
+  factory Input$SmithCertStddevSampOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    return Input$SmithCertStddevSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$SmithCertStddevSampOrderBy<Input$SmithCertStddevSampOrderBy>
+      get copyWith => CopyWith$Input$SmithCertStddevSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$SmithCertStddevSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    return Object.hashAll(
+        [_$data.containsKey('createdOn') ? l$createdOn : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$SmithCertStddevSampOrderBy<TRes> {
+  factory CopyWith$Input$SmithCertStddevSampOrderBy(
+    Input$SmithCertStddevSampOrderBy instance,
+    TRes Function(Input$SmithCertStddevSampOrderBy) then,
+  ) = _CopyWithImpl$Input$SmithCertStddevSampOrderBy;
+
+  factory CopyWith$Input$SmithCertStddevSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$SmithCertStddevSampOrderBy;
+
+  TRes call({Enum$OrderBy? createdOn});
+}
+
+class _CopyWithImpl$Input$SmithCertStddevSampOrderBy<TRes>
+    implements CopyWith$Input$SmithCertStddevSampOrderBy<TRes> {
+  _CopyWithImpl$Input$SmithCertStddevSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$SmithCertStddevSampOrderBy _instance;
+
+  final TRes Function(Input$SmithCertStddevSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? createdOn = _undefined}) =>
+      _then(Input$SmithCertStddevSampOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$SmithCertStddevSampOrderBy<TRes>
+    implements CopyWith$Input$SmithCertStddevSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$SmithCertStddevSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? createdOn}) => _res;
+}
+
+class Input$SmithCertSumOrderBy {
+  factory Input$SmithCertSumOrderBy({Enum$OrderBy? createdOn}) =>
+      Input$SmithCertSumOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+      });
+
+  Input$SmithCertSumOrderBy._(this._$data);
+
+  factory Input$SmithCertSumOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    return Input$SmithCertSumOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$SmithCertSumOrderBy<Input$SmithCertSumOrderBy> get copyWith =>
+      CopyWith$Input$SmithCertSumOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$SmithCertSumOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    return Object.hashAll(
+        [_$data.containsKey('createdOn') ? l$createdOn : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$SmithCertSumOrderBy<TRes> {
+  factory CopyWith$Input$SmithCertSumOrderBy(
+    Input$SmithCertSumOrderBy instance,
+    TRes Function(Input$SmithCertSumOrderBy) then,
+  ) = _CopyWithImpl$Input$SmithCertSumOrderBy;
+
+  factory CopyWith$Input$SmithCertSumOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$SmithCertSumOrderBy;
+
+  TRes call({Enum$OrderBy? createdOn});
+}
+
+class _CopyWithImpl$Input$SmithCertSumOrderBy<TRes>
+    implements CopyWith$Input$SmithCertSumOrderBy<TRes> {
+  _CopyWithImpl$Input$SmithCertSumOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$SmithCertSumOrderBy _instance;
+
+  final TRes Function(Input$SmithCertSumOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? createdOn = _undefined}) =>
+      _then(Input$SmithCertSumOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$SmithCertSumOrderBy<TRes>
+    implements CopyWith$Input$SmithCertSumOrderBy<TRes> {
+  _CopyWithStubImpl$Input$SmithCertSumOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? createdOn}) => _res;
+}
+
+class Input$SmithCertVarianceOrderBy {
+  factory Input$SmithCertVarianceOrderBy({Enum$OrderBy? createdOn}) =>
+      Input$SmithCertVarianceOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+      });
+
+  Input$SmithCertVarianceOrderBy._(this._$data);
+
+  factory Input$SmithCertVarianceOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    return Input$SmithCertVarianceOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$SmithCertVarianceOrderBy<Input$SmithCertVarianceOrderBy>
+      get copyWith => CopyWith$Input$SmithCertVarianceOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$SmithCertVarianceOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    return Object.hashAll(
+        [_$data.containsKey('createdOn') ? l$createdOn : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$SmithCertVarianceOrderBy<TRes> {
+  factory CopyWith$Input$SmithCertVarianceOrderBy(
+    Input$SmithCertVarianceOrderBy instance,
+    TRes Function(Input$SmithCertVarianceOrderBy) then,
+  ) = _CopyWithImpl$Input$SmithCertVarianceOrderBy;
+
+  factory CopyWith$Input$SmithCertVarianceOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$SmithCertVarianceOrderBy;
+
+  TRes call({Enum$OrderBy? createdOn});
+}
+
+class _CopyWithImpl$Input$SmithCertVarianceOrderBy<TRes>
+    implements CopyWith$Input$SmithCertVarianceOrderBy<TRes> {
+  _CopyWithImpl$Input$SmithCertVarianceOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$SmithCertVarianceOrderBy _instance;
+
+  final TRes Function(Input$SmithCertVarianceOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? createdOn = _undefined}) =>
+      _then(Input$SmithCertVarianceOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$SmithCertVarianceOrderBy<TRes>
+    implements CopyWith$Input$SmithCertVarianceOrderBy<TRes> {
+  _CopyWithStubImpl$Input$SmithCertVarianceOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? createdOn}) => _res;
+}
+
+class Input$SmithCertVarPopOrderBy {
+  factory Input$SmithCertVarPopOrderBy({Enum$OrderBy? createdOn}) =>
+      Input$SmithCertVarPopOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+      });
+
+  Input$SmithCertVarPopOrderBy._(this._$data);
+
+  factory Input$SmithCertVarPopOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    return Input$SmithCertVarPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$SmithCertVarPopOrderBy<Input$SmithCertVarPopOrderBy>
+      get copyWith => CopyWith$Input$SmithCertVarPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$SmithCertVarPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    return Object.hashAll(
+        [_$data.containsKey('createdOn') ? l$createdOn : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$SmithCertVarPopOrderBy<TRes> {
+  factory CopyWith$Input$SmithCertVarPopOrderBy(
+    Input$SmithCertVarPopOrderBy instance,
+    TRes Function(Input$SmithCertVarPopOrderBy) then,
+  ) = _CopyWithImpl$Input$SmithCertVarPopOrderBy;
+
+  factory CopyWith$Input$SmithCertVarPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$SmithCertVarPopOrderBy;
+
+  TRes call({Enum$OrderBy? createdOn});
+}
+
+class _CopyWithImpl$Input$SmithCertVarPopOrderBy<TRes>
+    implements CopyWith$Input$SmithCertVarPopOrderBy<TRes> {
+  _CopyWithImpl$Input$SmithCertVarPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$SmithCertVarPopOrderBy _instance;
+
+  final TRes Function(Input$SmithCertVarPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? createdOn = _undefined}) =>
+      _then(Input$SmithCertVarPopOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$SmithCertVarPopOrderBy<TRes>
+    implements CopyWith$Input$SmithCertVarPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$SmithCertVarPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? createdOn}) => _res;
+}
+
+class Input$SmithCertVarSampOrderBy {
+  factory Input$SmithCertVarSampOrderBy({Enum$OrderBy? createdOn}) =>
+      Input$SmithCertVarSampOrderBy._({
+        if (createdOn != null) r'createdOn': createdOn,
+      });
+
+  Input$SmithCertVarSampOrderBy._(this._$data);
+
+  factory Input$SmithCertVarSampOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('createdOn')) {
+      final l$createdOn = data['createdOn'];
+      result$data['createdOn'] = l$createdOn == null
+          ? null
+          : fromJson$Enum$OrderBy((l$createdOn as String));
+    }
+    return Input$SmithCertVarSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get createdOn => (_$data['createdOn'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('createdOn')) {
+      final l$createdOn = createdOn;
+      result$data['createdOn'] =
+          l$createdOn == null ? null : toJson$Enum$OrderBy(l$createdOn);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$SmithCertVarSampOrderBy<Input$SmithCertVarSampOrderBy>
+      get copyWith => CopyWith$Input$SmithCertVarSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$SmithCertVarSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$createdOn = createdOn;
+    final lOther$createdOn = other.createdOn;
+    if (_$data.containsKey('createdOn') !=
+        other._$data.containsKey('createdOn')) {
+      return false;
+    }
+    if (l$createdOn != lOther$createdOn) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$createdOn = createdOn;
+    return Object.hashAll(
+        [_$data.containsKey('createdOn') ? l$createdOn : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$SmithCertVarSampOrderBy<TRes> {
+  factory CopyWith$Input$SmithCertVarSampOrderBy(
+    Input$SmithCertVarSampOrderBy instance,
+    TRes Function(Input$SmithCertVarSampOrderBy) then,
+  ) = _CopyWithImpl$Input$SmithCertVarSampOrderBy;
+
+  factory CopyWith$Input$SmithCertVarSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$SmithCertVarSampOrderBy;
+
+  TRes call({Enum$OrderBy? createdOn});
+}
+
+class _CopyWithImpl$Input$SmithCertVarSampOrderBy<TRes>
+    implements CopyWith$Input$SmithCertVarSampOrderBy<TRes> {
+  _CopyWithImpl$Input$SmithCertVarSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$SmithCertVarSampOrderBy _instance;
+
+  final TRes Function(Input$SmithCertVarSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? createdOn = _undefined}) =>
+      _then(Input$SmithCertVarSampOrderBy._({
+        ..._instance._$data,
+        if (createdOn != _undefined) 'createdOn': (createdOn as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$SmithCertVarSampOrderBy<TRes>
+    implements CopyWith$Input$SmithCertVarSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$SmithCertVarSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({Enum$OrderBy? createdOn}) => _res;
+}
+
+class Input$SmithStatusEnumComparisonExp {
+  factory Input$SmithStatusEnumComparisonExp({
+    Enum$SmithStatusEnum? $_eq,
+    List<Enum$SmithStatusEnum>? $_in,
+    bool? $_isNull,
+    Enum$SmithStatusEnum? $_neq,
+    List<Enum$SmithStatusEnum>? $_nin,
+  }) =>
+      Input$SmithStatusEnumComparisonExp._({
+        if ($_eq != null) r'_eq': $_eq,
+        if ($_in != null) r'_in': $_in,
+        if ($_isNull != null) r'_isNull': $_isNull,
+        if ($_neq != null) r'_neq': $_neq,
+        if ($_nin != null) r'_nin': $_nin,
+      });
+
+  Input$SmithStatusEnumComparisonExp._(this._$data);
+
+  factory Input$SmithStatusEnumComparisonExp.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_eq')) {
+      final l$$_eq = data['_eq'];
+      result$data['_eq'] = l$$_eq == null
+          ? null
+          : fromJson$Enum$SmithStatusEnum((l$$_eq as String));
+    }
+    if (data.containsKey('_in')) {
+      final l$$_in = data['_in'];
+      result$data['_in'] = (l$$_in as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$SmithStatusEnum((e as String)))
+          .toList();
+    }
+    if (data.containsKey('_isNull')) {
+      final l$$_isNull = data['_isNull'];
+      result$data['_isNull'] = (l$$_isNull as bool?);
+    }
+    if (data.containsKey('_neq')) {
+      final l$$_neq = data['_neq'];
+      result$data['_neq'] = l$$_neq == null
+          ? null
+          : fromJson$Enum$SmithStatusEnum((l$$_neq as String));
+    }
+    if (data.containsKey('_nin')) {
+      final l$$_nin = data['_nin'];
+      result$data['_nin'] = (l$$_nin as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$SmithStatusEnum((e as String)))
+          .toList();
+    }
+    return Input$SmithStatusEnumComparisonExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$SmithStatusEnum? get $_eq => (_$data['_eq'] as Enum$SmithStatusEnum?);
+
+  List<Enum$SmithStatusEnum>? get $_in =>
+      (_$data['_in'] as List<Enum$SmithStatusEnum>?);
+
+  bool? get $_isNull => (_$data['_isNull'] as bool?);
+
+  Enum$SmithStatusEnum? get $_neq => (_$data['_neq'] as Enum$SmithStatusEnum?);
+
+  List<Enum$SmithStatusEnum>? get $_nin =>
+      (_$data['_nin'] as List<Enum$SmithStatusEnum>?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_eq')) {
+      final l$$_eq = $_eq;
+      result$data['_eq'] =
+          l$$_eq == null ? null : toJson$Enum$SmithStatusEnum(l$$_eq);
+    }
+    if (_$data.containsKey('_in')) {
+      final l$$_in = $_in;
+      result$data['_in'] =
+          l$$_in?.map((e) => toJson$Enum$SmithStatusEnum(e)).toList();
+    }
+    if (_$data.containsKey('_isNull')) {
+      final l$$_isNull = $_isNull;
+      result$data['_isNull'] = l$$_isNull;
+    }
+    if (_$data.containsKey('_neq')) {
+      final l$$_neq = $_neq;
+      result$data['_neq'] =
+          l$$_neq == null ? null : toJson$Enum$SmithStatusEnum(l$$_neq);
+    }
+    if (_$data.containsKey('_nin')) {
+      final l$$_nin = $_nin;
+      result$data['_nin'] =
+          l$$_nin?.map((e) => toJson$Enum$SmithStatusEnum(e)).toList();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$SmithStatusEnumComparisonExp<
+          Input$SmithStatusEnumComparisonExp>
+      get copyWith => CopyWith$Input$SmithStatusEnumComparisonExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$SmithStatusEnumComparisonExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_eq = $_eq;
+    final lOther$$_eq = other.$_eq;
+    if (_$data.containsKey('_eq') != other._$data.containsKey('_eq')) {
+      return false;
+    }
+    if (l$$_eq != lOther$$_eq) {
+      return false;
+    }
+    final l$$_in = $_in;
+    final lOther$$_in = other.$_in;
+    if (_$data.containsKey('_in') != other._$data.containsKey('_in')) {
+      return false;
+    }
+    if (l$$_in != null && lOther$$_in != null) {
+      if (l$$_in.length != lOther$$_in.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_in.length; i++) {
+        final l$$_in$entry = l$$_in[i];
+        final lOther$$_in$entry = lOther$$_in[i];
+        if (l$$_in$entry != lOther$$_in$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_in != lOther$$_in) {
+      return false;
+    }
+    final l$$_isNull = $_isNull;
+    final lOther$$_isNull = other.$_isNull;
+    if (_$data.containsKey('_isNull') != other._$data.containsKey('_isNull')) {
+      return false;
+    }
+    if (l$$_isNull != lOther$$_isNull) {
+      return false;
+    }
+    final l$$_neq = $_neq;
+    final lOther$$_neq = other.$_neq;
+    if (_$data.containsKey('_neq') != other._$data.containsKey('_neq')) {
+      return false;
+    }
+    if (l$$_neq != lOther$$_neq) {
+      return false;
+    }
+    final l$$_nin = $_nin;
+    final lOther$$_nin = other.$_nin;
+    if (_$data.containsKey('_nin') != other._$data.containsKey('_nin')) {
+      return false;
+    }
+    if (l$$_nin != null && lOther$$_nin != null) {
+      if (l$$_nin.length != lOther$$_nin.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_nin.length; i++) {
+        final l$$_nin$entry = l$$_nin[i];
+        final lOther$$_nin$entry = lOther$$_nin[i];
+        if (l$$_nin$entry != lOther$$_nin$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_nin != lOther$$_nin) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_eq = $_eq;
+    final l$$_in = $_in;
+    final l$$_isNull = $_isNull;
+    final l$$_neq = $_neq;
+    final l$$_nin = $_nin;
+    return Object.hashAll([
+      _$data.containsKey('_eq') ? l$$_eq : const {},
+      _$data.containsKey('_in')
+          ? l$$_in == null
+              ? null
+              : Object.hashAll(l$$_in.map((v) => v))
+          : const {},
+      _$data.containsKey('_isNull') ? l$$_isNull : const {},
+      _$data.containsKey('_neq') ? l$$_neq : const {},
+      _$data.containsKey('_nin')
+          ? l$$_nin == null
+              ? null
+              : Object.hashAll(l$$_nin.map((v) => v))
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$SmithStatusEnumComparisonExp<TRes> {
+  factory CopyWith$Input$SmithStatusEnumComparisonExp(
+    Input$SmithStatusEnumComparisonExp instance,
+    TRes Function(Input$SmithStatusEnumComparisonExp) then,
+  ) = _CopyWithImpl$Input$SmithStatusEnumComparisonExp;
+
+  factory CopyWith$Input$SmithStatusEnumComparisonExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$SmithStatusEnumComparisonExp;
+
+  TRes call({
+    Enum$SmithStatusEnum? $_eq,
+    List<Enum$SmithStatusEnum>? $_in,
+    bool? $_isNull,
+    Enum$SmithStatusEnum? $_neq,
+    List<Enum$SmithStatusEnum>? $_nin,
+  });
+}
+
+class _CopyWithImpl$Input$SmithStatusEnumComparisonExp<TRes>
+    implements CopyWith$Input$SmithStatusEnumComparisonExp<TRes> {
+  _CopyWithImpl$Input$SmithStatusEnumComparisonExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$SmithStatusEnumComparisonExp _instance;
+
+  final TRes Function(Input$SmithStatusEnumComparisonExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_eq = _undefined,
+    Object? $_in = _undefined,
+    Object? $_isNull = _undefined,
+    Object? $_neq = _undefined,
+    Object? $_nin = _undefined,
+  }) =>
+      _then(Input$SmithStatusEnumComparisonExp._({
+        ..._instance._$data,
+        if ($_eq != _undefined) '_eq': ($_eq as Enum$SmithStatusEnum?),
+        if ($_in != _undefined) '_in': ($_in as List<Enum$SmithStatusEnum>?),
+        if ($_isNull != _undefined) '_isNull': ($_isNull as bool?),
+        if ($_neq != _undefined) '_neq': ($_neq as Enum$SmithStatusEnum?),
+        if ($_nin != _undefined) '_nin': ($_nin as List<Enum$SmithStatusEnum>?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$SmithStatusEnumComparisonExp<TRes>
+    implements CopyWith$Input$SmithStatusEnumComparisonExp<TRes> {
+  _CopyWithStubImpl$Input$SmithStatusEnumComparisonExp(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$SmithStatusEnum? $_eq,
+    List<Enum$SmithStatusEnum>? $_in,
+    bool? $_isNull,
+    Enum$SmithStatusEnum? $_neq,
+    List<Enum$SmithStatusEnum>? $_nin,
+  }) =>
+      _res;
+}
+
+class Input$StringArrayComparisonExp {
+  factory Input$StringArrayComparisonExp({
+    List<String>? $_containedIn,
+    List<String>? $_contains,
+    List<String>? $_eq,
+    List<String>? $_gt,
+    List<String>? $_gte,
+    List<List<String>>? $_in,
+    bool? $_isNull,
+    List<String>? $_lt,
+    List<String>? $_lte,
+    List<String>? $_neq,
+    List<List<String>>? $_nin,
+  }) =>
+      Input$StringArrayComparisonExp._({
+        if ($_containedIn != null) r'_containedIn': $_containedIn,
+        if ($_contains != null) r'_contains': $_contains,
+        if ($_eq != null) r'_eq': $_eq,
+        if ($_gt != null) r'_gt': $_gt,
+        if ($_gte != null) r'_gte': $_gte,
+        if ($_in != null) r'_in': $_in,
+        if ($_isNull != null) r'_isNull': $_isNull,
+        if ($_lt != null) r'_lt': $_lt,
+        if ($_lte != null) r'_lte': $_lte,
+        if ($_neq != null) r'_neq': $_neq,
+        if ($_nin != null) r'_nin': $_nin,
+      });
+
+  Input$StringArrayComparisonExp._(this._$data);
+
+  factory Input$StringArrayComparisonExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_containedIn')) {
+      final l$$_containedIn = data['_containedIn'];
+      result$data['_containedIn'] = (l$$_containedIn as List<dynamic>?)
+          ?.map((e) => (e as String))
+          .toList();
+    }
+    if (data.containsKey('_contains')) {
+      final l$$_contains = data['_contains'];
+      result$data['_contains'] =
+          (l$$_contains as List<dynamic>?)?.map((e) => (e as String)).toList();
+    }
+    if (data.containsKey('_eq')) {
+      final l$$_eq = data['_eq'];
+      result$data['_eq'] =
+          (l$$_eq as List<dynamic>?)?.map((e) => (e as String)).toList();
+    }
+    if (data.containsKey('_gt')) {
+      final l$$_gt = data['_gt'];
+      result$data['_gt'] =
+          (l$$_gt as List<dynamic>?)?.map((e) => (e as String)).toList();
+    }
+    if (data.containsKey('_gte')) {
+      final l$$_gte = data['_gte'];
+      result$data['_gte'] =
+          (l$$_gte as List<dynamic>?)?.map((e) => (e as String)).toList();
+    }
+    if (data.containsKey('_in')) {
+      final l$$_in = data['_in'];
+      result$data['_in'] = (l$$_in as List<dynamic>?)
+          ?.map((e) => (e as List<dynamic>).map((e) => (e as String)).toList())
+          .toList();
+    }
+    if (data.containsKey('_isNull')) {
+      final l$$_isNull = data['_isNull'];
+      result$data['_isNull'] = (l$$_isNull as bool?);
+    }
+    if (data.containsKey('_lt')) {
+      final l$$_lt = data['_lt'];
+      result$data['_lt'] =
+          (l$$_lt as List<dynamic>?)?.map((e) => (e as String)).toList();
+    }
+    if (data.containsKey('_lte')) {
+      final l$$_lte = data['_lte'];
+      result$data['_lte'] =
+          (l$$_lte as List<dynamic>?)?.map((e) => (e as String)).toList();
+    }
+    if (data.containsKey('_neq')) {
+      final l$$_neq = data['_neq'];
+      result$data['_neq'] =
+          (l$$_neq as List<dynamic>?)?.map((e) => (e as String)).toList();
+    }
+    if (data.containsKey('_nin')) {
+      final l$$_nin = data['_nin'];
+      result$data['_nin'] = (l$$_nin as List<dynamic>?)
+          ?.map((e) => (e as List<dynamic>).map((e) => (e as String)).toList())
+          .toList();
+    }
+    return Input$StringArrayComparisonExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<String>? get $_containedIn => (_$data['_containedIn'] as List<String>?);
+
+  List<String>? get $_contains => (_$data['_contains'] as List<String>?);
+
+  List<String>? get $_eq => (_$data['_eq'] as List<String>?);
+
+  List<String>? get $_gt => (_$data['_gt'] as List<String>?);
+
+  List<String>? get $_gte => (_$data['_gte'] as List<String>?);
+
+  List<List<String>>? get $_in => (_$data['_in'] as List<List<String>>?);
+
+  bool? get $_isNull => (_$data['_isNull'] as bool?);
+
+  List<String>? get $_lt => (_$data['_lt'] as List<String>?);
+
+  List<String>? get $_lte => (_$data['_lte'] as List<String>?);
+
+  List<String>? get $_neq => (_$data['_neq'] as List<String>?);
+
+  List<List<String>>? get $_nin => (_$data['_nin'] as List<List<String>>?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_containedIn')) {
+      final l$$_containedIn = $_containedIn;
+      result$data['_containedIn'] = l$$_containedIn?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_contains')) {
+      final l$$_contains = $_contains;
+      result$data['_contains'] = l$$_contains?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_eq')) {
+      final l$$_eq = $_eq;
+      result$data['_eq'] = l$$_eq?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_gt')) {
+      final l$$_gt = $_gt;
+      result$data['_gt'] = l$$_gt?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_gte')) {
+      final l$$_gte = $_gte;
+      result$data['_gte'] = l$$_gte?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_in')) {
+      final l$$_in = $_in;
+      result$data['_in'] =
+          l$$_in?.map((e) => e.map((e) => e).toList()).toList();
+    }
+    if (_$data.containsKey('_isNull')) {
+      final l$$_isNull = $_isNull;
+      result$data['_isNull'] = l$$_isNull;
+    }
+    if (_$data.containsKey('_lt')) {
+      final l$$_lt = $_lt;
+      result$data['_lt'] = l$$_lt?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_lte')) {
+      final l$$_lte = $_lte;
+      result$data['_lte'] = l$$_lte?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_neq')) {
+      final l$$_neq = $_neq;
+      result$data['_neq'] = l$$_neq?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_nin')) {
+      final l$$_nin = $_nin;
+      result$data['_nin'] =
+          l$$_nin?.map((e) => e.map((e) => e).toList()).toList();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$StringArrayComparisonExp<Input$StringArrayComparisonExp>
+      get copyWith => CopyWith$Input$StringArrayComparisonExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$StringArrayComparisonExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_containedIn = $_containedIn;
+    final lOther$$_containedIn = other.$_containedIn;
+    if (_$data.containsKey('_containedIn') !=
+        other._$data.containsKey('_containedIn')) {
+      return false;
+    }
+    if (l$$_containedIn != null && lOther$$_containedIn != null) {
+      if (l$$_containedIn.length != lOther$$_containedIn.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_containedIn.length; i++) {
+        final l$$_containedIn$entry = l$$_containedIn[i];
+        final lOther$$_containedIn$entry = lOther$$_containedIn[i];
+        if (l$$_containedIn$entry != lOther$$_containedIn$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_containedIn != lOther$$_containedIn) {
+      return false;
+    }
+    final l$$_contains = $_contains;
+    final lOther$$_contains = other.$_contains;
+    if (_$data.containsKey('_contains') !=
+        other._$data.containsKey('_contains')) {
+      return false;
+    }
+    if (l$$_contains != null && lOther$$_contains != null) {
+      if (l$$_contains.length != lOther$$_contains.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_contains.length; i++) {
+        final l$$_contains$entry = l$$_contains[i];
+        final lOther$$_contains$entry = lOther$$_contains[i];
+        if (l$$_contains$entry != lOther$$_contains$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_contains != lOther$$_contains) {
+      return false;
+    }
+    final l$$_eq = $_eq;
+    final lOther$$_eq = other.$_eq;
+    if (_$data.containsKey('_eq') != other._$data.containsKey('_eq')) {
+      return false;
+    }
+    if (l$$_eq != null && lOther$$_eq != null) {
+      if (l$$_eq.length != lOther$$_eq.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_eq.length; i++) {
+        final l$$_eq$entry = l$$_eq[i];
+        final lOther$$_eq$entry = lOther$$_eq[i];
+        if (l$$_eq$entry != lOther$$_eq$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_eq != lOther$$_eq) {
+      return false;
+    }
+    final l$$_gt = $_gt;
+    final lOther$$_gt = other.$_gt;
+    if (_$data.containsKey('_gt') != other._$data.containsKey('_gt')) {
+      return false;
+    }
+    if (l$$_gt != null && lOther$$_gt != null) {
+      if (l$$_gt.length != lOther$$_gt.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_gt.length; i++) {
+        final l$$_gt$entry = l$$_gt[i];
+        final lOther$$_gt$entry = lOther$$_gt[i];
+        if (l$$_gt$entry != lOther$$_gt$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_gt != lOther$$_gt) {
+      return false;
+    }
+    final l$$_gte = $_gte;
+    final lOther$$_gte = other.$_gte;
+    if (_$data.containsKey('_gte') != other._$data.containsKey('_gte')) {
+      return false;
+    }
+    if (l$$_gte != null && lOther$$_gte != null) {
+      if (l$$_gte.length != lOther$$_gte.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_gte.length; i++) {
+        final l$$_gte$entry = l$$_gte[i];
+        final lOther$$_gte$entry = lOther$$_gte[i];
+        if (l$$_gte$entry != lOther$$_gte$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_gte != lOther$$_gte) {
+      return false;
+    }
+    final l$$_in = $_in;
+    final lOther$$_in = other.$_in;
+    if (_$data.containsKey('_in') != other._$data.containsKey('_in')) {
+      return false;
+    }
+    if (l$$_in != null && lOther$$_in != null) {
+      if (l$$_in.length != lOther$$_in.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_in.length; i++) {
+        final l$$_in$entry = l$$_in[i];
+        final lOther$$_in$entry = lOther$$_in[i];
+        if (l$$_in$entry.length != lOther$$_in$entry.length) {
+          return false;
+        }
+        for (int i = 0; i < l$$_in$entry.length; i++) {
+          final l$$_in$entry$entry = l$$_in$entry[i];
+          final lOther$$_in$entry$entry = lOther$$_in$entry[i];
+          if (l$$_in$entry$entry != lOther$$_in$entry$entry) {
+            return false;
+          }
+        }
+      }
+    } else if (l$$_in != lOther$$_in) {
+      return false;
+    }
+    final l$$_isNull = $_isNull;
+    final lOther$$_isNull = other.$_isNull;
+    if (_$data.containsKey('_isNull') != other._$data.containsKey('_isNull')) {
+      return false;
+    }
+    if (l$$_isNull != lOther$$_isNull) {
+      return false;
+    }
+    final l$$_lt = $_lt;
+    final lOther$$_lt = other.$_lt;
+    if (_$data.containsKey('_lt') != other._$data.containsKey('_lt')) {
+      return false;
+    }
+    if (l$$_lt != null && lOther$$_lt != null) {
+      if (l$$_lt.length != lOther$$_lt.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_lt.length; i++) {
+        final l$$_lt$entry = l$$_lt[i];
+        final lOther$$_lt$entry = lOther$$_lt[i];
+        if (l$$_lt$entry != lOther$$_lt$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_lt != lOther$$_lt) {
+      return false;
+    }
+    final l$$_lte = $_lte;
+    final lOther$$_lte = other.$_lte;
+    if (_$data.containsKey('_lte') != other._$data.containsKey('_lte')) {
+      return false;
+    }
+    if (l$$_lte != null && lOther$$_lte != null) {
+      if (l$$_lte.length != lOther$$_lte.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_lte.length; i++) {
+        final l$$_lte$entry = l$$_lte[i];
+        final lOther$$_lte$entry = lOther$$_lte[i];
+        if (l$$_lte$entry != lOther$$_lte$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_lte != lOther$$_lte) {
+      return false;
+    }
+    final l$$_neq = $_neq;
+    final lOther$$_neq = other.$_neq;
+    if (_$data.containsKey('_neq') != other._$data.containsKey('_neq')) {
+      return false;
+    }
+    if (l$$_neq != null && lOther$$_neq != null) {
+      if (l$$_neq.length != lOther$$_neq.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_neq.length; i++) {
+        final l$$_neq$entry = l$$_neq[i];
+        final lOther$$_neq$entry = lOther$$_neq[i];
+        if (l$$_neq$entry != lOther$$_neq$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_neq != lOther$$_neq) {
+      return false;
+    }
+    final l$$_nin = $_nin;
+    final lOther$$_nin = other.$_nin;
+    if (_$data.containsKey('_nin') != other._$data.containsKey('_nin')) {
+      return false;
+    }
+    if (l$$_nin != null && lOther$$_nin != null) {
+      if (l$$_nin.length != lOther$$_nin.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_nin.length; i++) {
+        final l$$_nin$entry = l$$_nin[i];
+        final lOther$$_nin$entry = lOther$$_nin[i];
+        if (l$$_nin$entry.length != lOther$$_nin$entry.length) {
+          return false;
+        }
+        for (int i = 0; i < l$$_nin$entry.length; i++) {
+          final l$$_nin$entry$entry = l$$_nin$entry[i];
+          final lOther$$_nin$entry$entry = lOther$$_nin$entry[i];
+          if (l$$_nin$entry$entry != lOther$$_nin$entry$entry) {
+            return false;
+          }
+        }
+      }
+    } else if (l$$_nin != lOther$$_nin) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_containedIn = $_containedIn;
+    final l$$_contains = $_contains;
+    final l$$_eq = $_eq;
+    final l$$_gt = $_gt;
+    final l$$_gte = $_gte;
+    final l$$_in = $_in;
+    final l$$_isNull = $_isNull;
+    final l$$_lt = $_lt;
+    final l$$_lte = $_lte;
+    final l$$_neq = $_neq;
+    final l$$_nin = $_nin;
+    return Object.hashAll([
+      _$data.containsKey('_containedIn')
+          ? l$$_containedIn == null
+              ? null
+              : Object.hashAll(l$$_containedIn.map((v) => v))
+          : const {},
+      _$data.containsKey('_contains')
+          ? l$$_contains == null
+              ? null
+              : Object.hashAll(l$$_contains.map((v) => v))
+          : const {},
+      _$data.containsKey('_eq')
+          ? l$$_eq == null
+              ? null
+              : Object.hashAll(l$$_eq.map((v) => v))
+          : const {},
+      _$data.containsKey('_gt')
+          ? l$$_gt == null
+              ? null
+              : Object.hashAll(l$$_gt.map((v) => v))
+          : const {},
+      _$data.containsKey('_gte')
+          ? l$$_gte == null
+              ? null
+              : Object.hashAll(l$$_gte.map((v) => v))
+          : const {},
+      _$data.containsKey('_in')
+          ? l$$_in == null
+              ? null
+              : Object.hashAll(
+                  l$$_in.map((v) => Object.hashAll(v.map((v) => v))))
+          : const {},
+      _$data.containsKey('_isNull') ? l$$_isNull : const {},
+      _$data.containsKey('_lt')
+          ? l$$_lt == null
+              ? null
+              : Object.hashAll(l$$_lt.map((v) => v))
+          : const {},
+      _$data.containsKey('_lte')
+          ? l$$_lte == null
+              ? null
+              : Object.hashAll(l$$_lte.map((v) => v))
+          : const {},
+      _$data.containsKey('_neq')
+          ? l$$_neq == null
+              ? null
+              : Object.hashAll(l$$_neq.map((v) => v))
+          : const {},
+      _$data.containsKey('_nin')
+          ? l$$_nin == null
+              ? null
+              : Object.hashAll(
+                  l$$_nin.map((v) => Object.hashAll(v.map((v) => v))))
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$StringArrayComparisonExp<TRes> {
+  factory CopyWith$Input$StringArrayComparisonExp(
+    Input$StringArrayComparisonExp instance,
+    TRes Function(Input$StringArrayComparisonExp) then,
+  ) = _CopyWithImpl$Input$StringArrayComparisonExp;
+
+  factory CopyWith$Input$StringArrayComparisonExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$StringArrayComparisonExp;
+
+  TRes call({
+    List<String>? $_containedIn,
+    List<String>? $_contains,
+    List<String>? $_eq,
+    List<String>? $_gt,
+    List<String>? $_gte,
+    List<List<String>>? $_in,
+    bool? $_isNull,
+    List<String>? $_lt,
+    List<String>? $_lte,
+    List<String>? $_neq,
+    List<List<String>>? $_nin,
+  });
+}
+
+class _CopyWithImpl$Input$StringArrayComparisonExp<TRes>
+    implements CopyWith$Input$StringArrayComparisonExp<TRes> {
+  _CopyWithImpl$Input$StringArrayComparisonExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$StringArrayComparisonExp _instance;
+
+  final TRes Function(Input$StringArrayComparisonExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_containedIn = _undefined,
+    Object? $_contains = _undefined,
+    Object? $_eq = _undefined,
+    Object? $_gt = _undefined,
+    Object? $_gte = _undefined,
+    Object? $_in = _undefined,
+    Object? $_isNull = _undefined,
+    Object? $_lt = _undefined,
+    Object? $_lte = _undefined,
+    Object? $_neq = _undefined,
+    Object? $_nin = _undefined,
+  }) =>
+      _then(Input$StringArrayComparisonExp._({
+        ..._instance._$data,
+        if ($_containedIn != _undefined)
+          '_containedIn': ($_containedIn as List<String>?),
+        if ($_contains != _undefined)
+          '_contains': ($_contains as List<String>?),
+        if ($_eq != _undefined) '_eq': ($_eq as List<String>?),
+        if ($_gt != _undefined) '_gt': ($_gt as List<String>?),
+        if ($_gte != _undefined) '_gte': ($_gte as List<String>?),
+        if ($_in != _undefined) '_in': ($_in as List<List<String>>?),
+        if ($_isNull != _undefined) '_isNull': ($_isNull as bool?),
+        if ($_lt != _undefined) '_lt': ($_lt as List<String>?),
+        if ($_lte != _undefined) '_lte': ($_lte as List<String>?),
+        if ($_neq != _undefined) '_neq': ($_neq as List<String>?),
+        if ($_nin != _undefined) '_nin': ($_nin as List<List<String>>?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$StringArrayComparisonExp<TRes>
+    implements CopyWith$Input$StringArrayComparisonExp<TRes> {
+  _CopyWithStubImpl$Input$StringArrayComparisonExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<String>? $_containedIn,
+    List<String>? $_contains,
+    List<String>? $_eq,
+    List<String>? $_gt,
+    List<String>? $_gte,
+    List<List<String>>? $_in,
+    bool? $_isNull,
+    List<String>? $_lt,
+    List<String>? $_lte,
+    List<String>? $_neq,
+    List<List<String>>? $_nin,
+  }) =>
+      _res;
+}
+
+class Input$StringComparisonExp {
+  factory Input$StringComparisonExp({
+    String? $_eq,
+    String? $_gt,
+    String? $_gte,
+    String? $_ilike,
+    List<String>? $_in,
+    String? $_iregex,
+    bool? $_isNull,
+    String? $_like,
+    String? $_lt,
+    String? $_lte,
+    String? $_neq,
+    String? $_nilike,
+    List<String>? $_nin,
+    String? $_niregex,
+    String? $_nlike,
+    String? $_nregex,
+    String? $_nsimilar,
+    String? $_regex,
+    String? $_similar,
+  }) =>
+      Input$StringComparisonExp._({
+        if ($_eq != null) r'_eq': $_eq,
+        if ($_gt != null) r'_gt': $_gt,
+        if ($_gte != null) r'_gte': $_gte,
+        if ($_ilike != null) r'_ilike': $_ilike,
+        if ($_in != null) r'_in': $_in,
+        if ($_iregex != null) r'_iregex': $_iregex,
+        if ($_isNull != null) r'_isNull': $_isNull,
+        if ($_like != null) r'_like': $_like,
+        if ($_lt != null) r'_lt': $_lt,
+        if ($_lte != null) r'_lte': $_lte,
+        if ($_neq != null) r'_neq': $_neq,
+        if ($_nilike != null) r'_nilike': $_nilike,
+        if ($_nin != null) r'_nin': $_nin,
+        if ($_niregex != null) r'_niregex': $_niregex,
+        if ($_nlike != null) r'_nlike': $_nlike,
+        if ($_nregex != null) r'_nregex': $_nregex,
+        if ($_nsimilar != null) r'_nsimilar': $_nsimilar,
+        if ($_regex != null) r'_regex': $_regex,
+        if ($_similar != null) r'_similar': $_similar,
+      });
+
+  Input$StringComparisonExp._(this._$data);
+
+  factory Input$StringComparisonExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_eq')) {
+      final l$$_eq = data['_eq'];
+      result$data['_eq'] = (l$$_eq as String?);
+    }
+    if (data.containsKey('_gt')) {
+      final l$$_gt = data['_gt'];
+      result$data['_gt'] = (l$$_gt as String?);
+    }
+    if (data.containsKey('_gte')) {
+      final l$$_gte = data['_gte'];
+      result$data['_gte'] = (l$$_gte as String?);
+    }
+    if (data.containsKey('_ilike')) {
+      final l$$_ilike = data['_ilike'];
+      result$data['_ilike'] = (l$$_ilike as String?);
+    }
+    if (data.containsKey('_in')) {
+      final l$$_in = data['_in'];
+      result$data['_in'] =
+          (l$$_in as List<dynamic>?)?.map((e) => (e as String)).toList();
+    }
+    if (data.containsKey('_iregex')) {
+      final l$$_iregex = data['_iregex'];
+      result$data['_iregex'] = (l$$_iregex as String?);
+    }
+    if (data.containsKey('_isNull')) {
+      final l$$_isNull = data['_isNull'];
+      result$data['_isNull'] = (l$$_isNull as bool?);
+    }
+    if (data.containsKey('_like')) {
+      final l$$_like = data['_like'];
+      result$data['_like'] = (l$$_like as String?);
+    }
+    if (data.containsKey('_lt')) {
+      final l$$_lt = data['_lt'];
+      result$data['_lt'] = (l$$_lt as String?);
+    }
+    if (data.containsKey('_lte')) {
+      final l$$_lte = data['_lte'];
+      result$data['_lte'] = (l$$_lte as String?);
+    }
+    if (data.containsKey('_neq')) {
+      final l$$_neq = data['_neq'];
+      result$data['_neq'] = (l$$_neq as String?);
+    }
+    if (data.containsKey('_nilike')) {
+      final l$$_nilike = data['_nilike'];
+      result$data['_nilike'] = (l$$_nilike as String?);
+    }
+    if (data.containsKey('_nin')) {
+      final l$$_nin = data['_nin'];
+      result$data['_nin'] =
+          (l$$_nin as List<dynamic>?)?.map((e) => (e as String)).toList();
+    }
+    if (data.containsKey('_niregex')) {
+      final l$$_niregex = data['_niregex'];
+      result$data['_niregex'] = (l$$_niregex as String?);
+    }
+    if (data.containsKey('_nlike')) {
+      final l$$_nlike = data['_nlike'];
+      result$data['_nlike'] = (l$$_nlike as String?);
+    }
+    if (data.containsKey('_nregex')) {
+      final l$$_nregex = data['_nregex'];
+      result$data['_nregex'] = (l$$_nregex as String?);
+    }
+    if (data.containsKey('_nsimilar')) {
+      final l$$_nsimilar = data['_nsimilar'];
+      result$data['_nsimilar'] = (l$$_nsimilar as String?);
+    }
+    if (data.containsKey('_regex')) {
+      final l$$_regex = data['_regex'];
+      result$data['_regex'] = (l$$_regex as String?);
+    }
+    if (data.containsKey('_similar')) {
+      final l$$_similar = data['_similar'];
+      result$data['_similar'] = (l$$_similar as String?);
+    }
+    return Input$StringComparisonExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  String? get $_eq => (_$data['_eq'] as String?);
+
+  String? get $_gt => (_$data['_gt'] as String?);
+
+  String? get $_gte => (_$data['_gte'] as String?);
+
+  String? get $_ilike => (_$data['_ilike'] as String?);
+
+  List<String>? get $_in => (_$data['_in'] as List<String>?);
+
+  String? get $_iregex => (_$data['_iregex'] as String?);
+
+  bool? get $_isNull => (_$data['_isNull'] as bool?);
+
+  String? get $_like => (_$data['_like'] as String?);
+
+  String? get $_lt => (_$data['_lt'] as String?);
+
+  String? get $_lte => (_$data['_lte'] as String?);
+
+  String? get $_neq => (_$data['_neq'] as String?);
+
+  String? get $_nilike => (_$data['_nilike'] as String?);
+
+  List<String>? get $_nin => (_$data['_nin'] as List<String>?);
+
+  String? get $_niregex => (_$data['_niregex'] as String?);
+
+  String? get $_nlike => (_$data['_nlike'] as String?);
+
+  String? get $_nregex => (_$data['_nregex'] as String?);
+
+  String? get $_nsimilar => (_$data['_nsimilar'] as String?);
+
+  String? get $_regex => (_$data['_regex'] as String?);
+
+  String? get $_similar => (_$data['_similar'] as String?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_eq')) {
+      final l$$_eq = $_eq;
+      result$data['_eq'] = l$$_eq;
+    }
+    if (_$data.containsKey('_gt')) {
+      final l$$_gt = $_gt;
+      result$data['_gt'] = l$$_gt;
+    }
+    if (_$data.containsKey('_gte')) {
+      final l$$_gte = $_gte;
+      result$data['_gte'] = l$$_gte;
+    }
+    if (_$data.containsKey('_ilike')) {
+      final l$$_ilike = $_ilike;
+      result$data['_ilike'] = l$$_ilike;
+    }
+    if (_$data.containsKey('_in')) {
+      final l$$_in = $_in;
+      result$data['_in'] = l$$_in?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_iregex')) {
+      final l$$_iregex = $_iregex;
+      result$data['_iregex'] = l$$_iregex;
+    }
+    if (_$data.containsKey('_isNull')) {
+      final l$$_isNull = $_isNull;
+      result$data['_isNull'] = l$$_isNull;
+    }
+    if (_$data.containsKey('_like')) {
+      final l$$_like = $_like;
+      result$data['_like'] = l$$_like;
+    }
+    if (_$data.containsKey('_lt')) {
+      final l$$_lt = $_lt;
+      result$data['_lt'] = l$$_lt;
+    }
+    if (_$data.containsKey('_lte')) {
+      final l$$_lte = $_lte;
+      result$data['_lte'] = l$$_lte;
+    }
+    if (_$data.containsKey('_neq')) {
+      final l$$_neq = $_neq;
+      result$data['_neq'] = l$$_neq;
+    }
+    if (_$data.containsKey('_nilike')) {
+      final l$$_nilike = $_nilike;
+      result$data['_nilike'] = l$$_nilike;
+    }
+    if (_$data.containsKey('_nin')) {
+      final l$$_nin = $_nin;
+      result$data['_nin'] = l$$_nin?.map((e) => e).toList();
+    }
+    if (_$data.containsKey('_niregex')) {
+      final l$$_niregex = $_niregex;
+      result$data['_niregex'] = l$$_niregex;
+    }
+    if (_$data.containsKey('_nlike')) {
+      final l$$_nlike = $_nlike;
+      result$data['_nlike'] = l$$_nlike;
+    }
+    if (_$data.containsKey('_nregex')) {
+      final l$$_nregex = $_nregex;
+      result$data['_nregex'] = l$$_nregex;
+    }
+    if (_$data.containsKey('_nsimilar')) {
+      final l$$_nsimilar = $_nsimilar;
+      result$data['_nsimilar'] = l$$_nsimilar;
+    }
+    if (_$data.containsKey('_regex')) {
+      final l$$_regex = $_regex;
+      result$data['_regex'] = l$$_regex;
+    }
+    if (_$data.containsKey('_similar')) {
+      final l$$_similar = $_similar;
+      result$data['_similar'] = l$$_similar;
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$StringComparisonExp<Input$StringComparisonExp> get copyWith =>
+      CopyWith$Input$StringComparisonExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$StringComparisonExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_eq = $_eq;
+    final lOther$$_eq = other.$_eq;
+    if (_$data.containsKey('_eq') != other._$data.containsKey('_eq')) {
+      return false;
+    }
+    if (l$$_eq != lOther$$_eq) {
+      return false;
+    }
+    final l$$_gt = $_gt;
+    final lOther$$_gt = other.$_gt;
+    if (_$data.containsKey('_gt') != other._$data.containsKey('_gt')) {
+      return false;
+    }
+    if (l$$_gt != lOther$$_gt) {
+      return false;
+    }
+    final l$$_gte = $_gte;
+    final lOther$$_gte = other.$_gte;
+    if (_$data.containsKey('_gte') != other._$data.containsKey('_gte')) {
+      return false;
+    }
+    if (l$$_gte != lOther$$_gte) {
+      return false;
+    }
+    final l$$_ilike = $_ilike;
+    final lOther$$_ilike = other.$_ilike;
+    if (_$data.containsKey('_ilike') != other._$data.containsKey('_ilike')) {
+      return false;
+    }
+    if (l$$_ilike != lOther$$_ilike) {
+      return false;
+    }
+    final l$$_in = $_in;
+    final lOther$$_in = other.$_in;
+    if (_$data.containsKey('_in') != other._$data.containsKey('_in')) {
+      return false;
+    }
+    if (l$$_in != null && lOther$$_in != null) {
+      if (l$$_in.length != lOther$$_in.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_in.length; i++) {
+        final l$$_in$entry = l$$_in[i];
+        final lOther$$_in$entry = lOther$$_in[i];
+        if (l$$_in$entry != lOther$$_in$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_in != lOther$$_in) {
+      return false;
+    }
+    final l$$_iregex = $_iregex;
+    final lOther$$_iregex = other.$_iregex;
+    if (_$data.containsKey('_iregex') != other._$data.containsKey('_iregex')) {
+      return false;
+    }
+    if (l$$_iregex != lOther$$_iregex) {
+      return false;
+    }
+    final l$$_isNull = $_isNull;
+    final lOther$$_isNull = other.$_isNull;
+    if (_$data.containsKey('_isNull') != other._$data.containsKey('_isNull')) {
+      return false;
+    }
+    if (l$$_isNull != lOther$$_isNull) {
+      return false;
+    }
+    final l$$_like = $_like;
+    final lOther$$_like = other.$_like;
+    if (_$data.containsKey('_like') != other._$data.containsKey('_like')) {
+      return false;
+    }
+    if (l$$_like != lOther$$_like) {
+      return false;
+    }
+    final l$$_lt = $_lt;
+    final lOther$$_lt = other.$_lt;
+    if (_$data.containsKey('_lt') != other._$data.containsKey('_lt')) {
+      return false;
+    }
+    if (l$$_lt != lOther$$_lt) {
+      return false;
+    }
+    final l$$_lte = $_lte;
+    final lOther$$_lte = other.$_lte;
+    if (_$data.containsKey('_lte') != other._$data.containsKey('_lte')) {
+      return false;
+    }
+    if (l$$_lte != lOther$$_lte) {
+      return false;
+    }
+    final l$$_neq = $_neq;
+    final lOther$$_neq = other.$_neq;
+    if (_$data.containsKey('_neq') != other._$data.containsKey('_neq')) {
+      return false;
+    }
+    if (l$$_neq != lOther$$_neq) {
+      return false;
+    }
+    final l$$_nilike = $_nilike;
+    final lOther$$_nilike = other.$_nilike;
+    if (_$data.containsKey('_nilike') != other._$data.containsKey('_nilike')) {
+      return false;
+    }
+    if (l$$_nilike != lOther$$_nilike) {
+      return false;
+    }
+    final l$$_nin = $_nin;
+    final lOther$$_nin = other.$_nin;
+    if (_$data.containsKey('_nin') != other._$data.containsKey('_nin')) {
+      return false;
+    }
+    if (l$$_nin != null && lOther$$_nin != null) {
+      if (l$$_nin.length != lOther$$_nin.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_nin.length; i++) {
+        final l$$_nin$entry = l$$_nin[i];
+        final lOther$$_nin$entry = lOther$$_nin[i];
+        if (l$$_nin$entry != lOther$$_nin$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_nin != lOther$$_nin) {
+      return false;
+    }
+    final l$$_niregex = $_niregex;
+    final lOther$$_niregex = other.$_niregex;
+    if (_$data.containsKey('_niregex') !=
+        other._$data.containsKey('_niregex')) {
+      return false;
+    }
+    if (l$$_niregex != lOther$$_niregex) {
+      return false;
+    }
+    final l$$_nlike = $_nlike;
+    final lOther$$_nlike = other.$_nlike;
+    if (_$data.containsKey('_nlike') != other._$data.containsKey('_nlike')) {
+      return false;
+    }
+    if (l$$_nlike != lOther$$_nlike) {
+      return false;
+    }
+    final l$$_nregex = $_nregex;
+    final lOther$$_nregex = other.$_nregex;
+    if (_$data.containsKey('_nregex') != other._$data.containsKey('_nregex')) {
+      return false;
+    }
+    if (l$$_nregex != lOther$$_nregex) {
+      return false;
+    }
+    final l$$_nsimilar = $_nsimilar;
+    final lOther$$_nsimilar = other.$_nsimilar;
+    if (_$data.containsKey('_nsimilar') !=
+        other._$data.containsKey('_nsimilar')) {
+      return false;
+    }
+    if (l$$_nsimilar != lOther$$_nsimilar) {
+      return false;
+    }
+    final l$$_regex = $_regex;
+    final lOther$$_regex = other.$_regex;
+    if (_$data.containsKey('_regex') != other._$data.containsKey('_regex')) {
+      return false;
+    }
+    if (l$$_regex != lOther$$_regex) {
+      return false;
+    }
+    final l$$_similar = $_similar;
+    final lOther$$_similar = other.$_similar;
+    if (_$data.containsKey('_similar') !=
+        other._$data.containsKey('_similar')) {
+      return false;
+    }
+    if (l$$_similar != lOther$$_similar) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_eq = $_eq;
+    final l$$_gt = $_gt;
+    final l$$_gte = $_gte;
+    final l$$_ilike = $_ilike;
+    final l$$_in = $_in;
+    final l$$_iregex = $_iregex;
+    final l$$_isNull = $_isNull;
+    final l$$_like = $_like;
+    final l$$_lt = $_lt;
+    final l$$_lte = $_lte;
+    final l$$_neq = $_neq;
+    final l$$_nilike = $_nilike;
+    final l$$_nin = $_nin;
+    final l$$_niregex = $_niregex;
+    final l$$_nlike = $_nlike;
+    final l$$_nregex = $_nregex;
+    final l$$_nsimilar = $_nsimilar;
+    final l$$_regex = $_regex;
+    final l$$_similar = $_similar;
+    return Object.hashAll([
+      _$data.containsKey('_eq') ? l$$_eq : const {},
+      _$data.containsKey('_gt') ? l$$_gt : const {},
+      _$data.containsKey('_gte') ? l$$_gte : const {},
+      _$data.containsKey('_ilike') ? l$$_ilike : const {},
+      _$data.containsKey('_in')
+          ? l$$_in == null
+              ? null
+              : Object.hashAll(l$$_in.map((v) => v))
+          : const {},
+      _$data.containsKey('_iregex') ? l$$_iregex : const {},
+      _$data.containsKey('_isNull') ? l$$_isNull : const {},
+      _$data.containsKey('_like') ? l$$_like : const {},
+      _$data.containsKey('_lt') ? l$$_lt : const {},
+      _$data.containsKey('_lte') ? l$$_lte : const {},
+      _$data.containsKey('_neq') ? l$$_neq : const {},
+      _$data.containsKey('_nilike') ? l$$_nilike : const {},
+      _$data.containsKey('_nin')
+          ? l$$_nin == null
+              ? null
+              : Object.hashAll(l$$_nin.map((v) => v))
+          : const {},
+      _$data.containsKey('_niregex') ? l$$_niregex : const {},
+      _$data.containsKey('_nlike') ? l$$_nlike : const {},
+      _$data.containsKey('_nregex') ? l$$_nregex : const {},
+      _$data.containsKey('_nsimilar') ? l$$_nsimilar : const {},
+      _$data.containsKey('_regex') ? l$$_regex : const {},
+      _$data.containsKey('_similar') ? l$$_similar : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$StringComparisonExp<TRes> {
+  factory CopyWith$Input$StringComparisonExp(
+    Input$StringComparisonExp instance,
+    TRes Function(Input$StringComparisonExp) then,
+  ) = _CopyWithImpl$Input$StringComparisonExp;
+
+  factory CopyWith$Input$StringComparisonExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$StringComparisonExp;
+
+  TRes call({
+    String? $_eq,
+    String? $_gt,
+    String? $_gte,
+    String? $_ilike,
+    List<String>? $_in,
+    String? $_iregex,
+    bool? $_isNull,
+    String? $_like,
+    String? $_lt,
+    String? $_lte,
+    String? $_neq,
+    String? $_nilike,
+    List<String>? $_nin,
+    String? $_niregex,
+    String? $_nlike,
+    String? $_nregex,
+    String? $_nsimilar,
+    String? $_regex,
+    String? $_similar,
+  });
+}
+
+class _CopyWithImpl$Input$StringComparisonExp<TRes>
+    implements CopyWith$Input$StringComparisonExp<TRes> {
+  _CopyWithImpl$Input$StringComparisonExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$StringComparisonExp _instance;
+
+  final TRes Function(Input$StringComparisonExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_eq = _undefined,
+    Object? $_gt = _undefined,
+    Object? $_gte = _undefined,
+    Object? $_ilike = _undefined,
+    Object? $_in = _undefined,
+    Object? $_iregex = _undefined,
+    Object? $_isNull = _undefined,
+    Object? $_like = _undefined,
+    Object? $_lt = _undefined,
+    Object? $_lte = _undefined,
+    Object? $_neq = _undefined,
+    Object? $_nilike = _undefined,
+    Object? $_nin = _undefined,
+    Object? $_niregex = _undefined,
+    Object? $_nlike = _undefined,
+    Object? $_nregex = _undefined,
+    Object? $_nsimilar = _undefined,
+    Object? $_regex = _undefined,
+    Object? $_similar = _undefined,
+  }) =>
+      _then(Input$StringComparisonExp._({
+        ..._instance._$data,
+        if ($_eq != _undefined) '_eq': ($_eq as String?),
+        if ($_gt != _undefined) '_gt': ($_gt as String?),
+        if ($_gte != _undefined) '_gte': ($_gte as String?),
+        if ($_ilike != _undefined) '_ilike': ($_ilike as String?),
+        if ($_in != _undefined) '_in': ($_in as List<String>?),
+        if ($_iregex != _undefined) '_iregex': ($_iregex as String?),
+        if ($_isNull != _undefined) '_isNull': ($_isNull as bool?),
+        if ($_like != _undefined) '_like': ($_like as String?),
+        if ($_lt != _undefined) '_lt': ($_lt as String?),
+        if ($_lte != _undefined) '_lte': ($_lte as String?),
+        if ($_neq != _undefined) '_neq': ($_neq as String?),
+        if ($_nilike != _undefined) '_nilike': ($_nilike as String?),
+        if ($_nin != _undefined) '_nin': ($_nin as List<String>?),
+        if ($_niregex != _undefined) '_niregex': ($_niregex as String?),
+        if ($_nlike != _undefined) '_nlike': ($_nlike as String?),
+        if ($_nregex != _undefined) '_nregex': ($_nregex as String?),
+        if ($_nsimilar != _undefined) '_nsimilar': ($_nsimilar as String?),
+        if ($_regex != _undefined) '_regex': ($_regex as String?),
+        if ($_similar != _undefined) '_similar': ($_similar as String?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$StringComparisonExp<TRes>
+    implements CopyWith$Input$StringComparisonExp<TRes> {
+  _CopyWithStubImpl$Input$StringComparisonExp(this._res);
+
+  TRes _res;
+
+  call({
+    String? $_eq,
+    String? $_gt,
+    String? $_gte,
+    String? $_ilike,
+    List<String>? $_in,
+    String? $_iregex,
+    bool? $_isNull,
+    String? $_like,
+    String? $_lt,
+    String? $_lte,
+    String? $_neq,
+    String? $_nilike,
+    List<String>? $_nin,
+    String? $_niregex,
+    String? $_nlike,
+    String? $_nregex,
+    String? $_nsimilar,
+    String? $_regex,
+    String? $_similar,
+  }) =>
+      _res;
+}
+
+class Input$TimestamptzComparisonExp {
+  factory Input$TimestamptzComparisonExp({
+    DateTime? $_eq,
+    DateTime? $_gt,
+    DateTime? $_gte,
+    List<DateTime>? $_in,
+    bool? $_isNull,
+    DateTime? $_lt,
+    DateTime? $_lte,
+    DateTime? $_neq,
+    List<DateTime>? $_nin,
+  }) =>
+      Input$TimestamptzComparisonExp._({
+        if ($_eq != null) r'_eq': $_eq,
+        if ($_gt != null) r'_gt': $_gt,
+        if ($_gte != null) r'_gte': $_gte,
+        if ($_in != null) r'_in': $_in,
+        if ($_isNull != null) r'_isNull': $_isNull,
+        if ($_lt != null) r'_lt': $_lt,
+        if ($_lte != null) r'_lte': $_lte,
+        if ($_neq != null) r'_neq': $_neq,
+        if ($_nin != null) r'_nin': $_nin,
+      });
+
+  Input$TimestamptzComparisonExp._(this._$data);
+
+  factory Input$TimestamptzComparisonExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_eq')) {
+      final l$$_eq = data['_eq'];
+      result$data['_eq'] =
+          l$$_eq == null ? null : DateTime.parse((l$$_eq as String));
+    }
+    if (data.containsKey('_gt')) {
+      final l$$_gt = data['_gt'];
+      result$data['_gt'] =
+          l$$_gt == null ? null : DateTime.parse((l$$_gt as String));
+    }
+    if (data.containsKey('_gte')) {
+      final l$$_gte = data['_gte'];
+      result$data['_gte'] =
+          l$$_gte == null ? null : DateTime.parse((l$$_gte as String));
+    }
+    if (data.containsKey('_in')) {
+      final l$$_in = data['_in'];
+      result$data['_in'] = (l$$_in as List<dynamic>?)
+          ?.map((e) => DateTime.parse((e as String)))
+          .toList();
+    }
+    if (data.containsKey('_isNull')) {
+      final l$$_isNull = data['_isNull'];
+      result$data['_isNull'] = (l$$_isNull as bool?);
+    }
+    if (data.containsKey('_lt')) {
+      final l$$_lt = data['_lt'];
+      result$data['_lt'] =
+          l$$_lt == null ? null : DateTime.parse((l$$_lt as String));
+    }
+    if (data.containsKey('_lte')) {
+      final l$$_lte = data['_lte'];
+      result$data['_lte'] =
+          l$$_lte == null ? null : DateTime.parse((l$$_lte as String));
+    }
+    if (data.containsKey('_neq')) {
+      final l$$_neq = data['_neq'];
+      result$data['_neq'] =
+          l$$_neq == null ? null : DateTime.parse((l$$_neq as String));
+    }
+    if (data.containsKey('_nin')) {
+      final l$$_nin = data['_nin'];
+      result$data['_nin'] = (l$$_nin as List<dynamic>?)
+          ?.map((e) => DateTime.parse((e as String)))
+          .toList();
+    }
+    return Input$TimestamptzComparisonExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  DateTime? get $_eq => (_$data['_eq'] as DateTime?);
+
+  DateTime? get $_gt => (_$data['_gt'] as DateTime?);
+
+  DateTime? get $_gte => (_$data['_gte'] as DateTime?);
+
+  List<DateTime>? get $_in => (_$data['_in'] as List<DateTime>?);
+
+  bool? get $_isNull => (_$data['_isNull'] as bool?);
+
+  DateTime? get $_lt => (_$data['_lt'] as DateTime?);
+
+  DateTime? get $_lte => (_$data['_lte'] as DateTime?);
+
+  DateTime? get $_neq => (_$data['_neq'] as DateTime?);
+
+  List<DateTime>? get $_nin => (_$data['_nin'] as List<DateTime>?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_eq')) {
+      final l$$_eq = $_eq;
+      result$data['_eq'] = l$$_eq?.toIso8601String();
+    }
+    if (_$data.containsKey('_gt')) {
+      final l$$_gt = $_gt;
+      result$data['_gt'] = l$$_gt?.toIso8601String();
+    }
+    if (_$data.containsKey('_gte')) {
+      final l$$_gte = $_gte;
+      result$data['_gte'] = l$$_gte?.toIso8601String();
+    }
+    if (_$data.containsKey('_in')) {
+      final l$$_in = $_in;
+      result$data['_in'] = l$$_in?.map((e) => e.toIso8601String()).toList();
+    }
+    if (_$data.containsKey('_isNull')) {
+      final l$$_isNull = $_isNull;
+      result$data['_isNull'] = l$$_isNull;
+    }
+    if (_$data.containsKey('_lt')) {
+      final l$$_lt = $_lt;
+      result$data['_lt'] = l$$_lt?.toIso8601String();
+    }
+    if (_$data.containsKey('_lte')) {
+      final l$$_lte = $_lte;
+      result$data['_lte'] = l$$_lte?.toIso8601String();
+    }
+    if (_$data.containsKey('_neq')) {
+      final l$$_neq = $_neq;
+      result$data['_neq'] = l$$_neq?.toIso8601String();
+    }
+    if (_$data.containsKey('_nin')) {
+      final l$$_nin = $_nin;
+      result$data['_nin'] = l$$_nin?.map((e) => e.toIso8601String()).toList();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$TimestamptzComparisonExp<Input$TimestamptzComparisonExp>
+      get copyWith => CopyWith$Input$TimestamptzComparisonExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$TimestamptzComparisonExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_eq = $_eq;
+    final lOther$$_eq = other.$_eq;
+    if (_$data.containsKey('_eq') != other._$data.containsKey('_eq')) {
+      return false;
+    }
+    if (l$$_eq != lOther$$_eq) {
+      return false;
+    }
+    final l$$_gt = $_gt;
+    final lOther$$_gt = other.$_gt;
+    if (_$data.containsKey('_gt') != other._$data.containsKey('_gt')) {
+      return false;
+    }
+    if (l$$_gt != lOther$$_gt) {
+      return false;
+    }
+    final l$$_gte = $_gte;
+    final lOther$$_gte = other.$_gte;
+    if (_$data.containsKey('_gte') != other._$data.containsKey('_gte')) {
+      return false;
+    }
+    if (l$$_gte != lOther$$_gte) {
+      return false;
+    }
+    final l$$_in = $_in;
+    final lOther$$_in = other.$_in;
+    if (_$data.containsKey('_in') != other._$data.containsKey('_in')) {
+      return false;
+    }
+    if (l$$_in != null && lOther$$_in != null) {
+      if (l$$_in.length != lOther$$_in.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_in.length; i++) {
+        final l$$_in$entry = l$$_in[i];
+        final lOther$$_in$entry = lOther$$_in[i];
+        if (l$$_in$entry != lOther$$_in$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_in != lOther$$_in) {
+      return false;
+    }
+    final l$$_isNull = $_isNull;
+    final lOther$$_isNull = other.$_isNull;
+    if (_$data.containsKey('_isNull') != other._$data.containsKey('_isNull')) {
+      return false;
+    }
+    if (l$$_isNull != lOther$$_isNull) {
+      return false;
+    }
+    final l$$_lt = $_lt;
+    final lOther$$_lt = other.$_lt;
+    if (_$data.containsKey('_lt') != other._$data.containsKey('_lt')) {
+      return false;
+    }
+    if (l$$_lt != lOther$$_lt) {
+      return false;
+    }
+    final l$$_lte = $_lte;
+    final lOther$$_lte = other.$_lte;
+    if (_$data.containsKey('_lte') != other._$data.containsKey('_lte')) {
+      return false;
+    }
+    if (l$$_lte != lOther$$_lte) {
+      return false;
+    }
+    final l$$_neq = $_neq;
+    final lOther$$_neq = other.$_neq;
+    if (_$data.containsKey('_neq') != other._$data.containsKey('_neq')) {
+      return false;
+    }
+    if (l$$_neq != lOther$$_neq) {
+      return false;
+    }
+    final l$$_nin = $_nin;
+    final lOther$$_nin = other.$_nin;
+    if (_$data.containsKey('_nin') != other._$data.containsKey('_nin')) {
+      return false;
+    }
+    if (l$$_nin != null && lOther$$_nin != null) {
+      if (l$$_nin.length != lOther$$_nin.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_nin.length; i++) {
+        final l$$_nin$entry = l$$_nin[i];
+        final lOther$$_nin$entry = lOther$$_nin[i];
+        if (l$$_nin$entry != lOther$$_nin$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_nin != lOther$$_nin) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_eq = $_eq;
+    final l$$_gt = $_gt;
+    final l$$_gte = $_gte;
+    final l$$_in = $_in;
+    final l$$_isNull = $_isNull;
+    final l$$_lt = $_lt;
+    final l$$_lte = $_lte;
+    final l$$_neq = $_neq;
+    final l$$_nin = $_nin;
+    return Object.hashAll([
+      _$data.containsKey('_eq') ? l$$_eq : const {},
+      _$data.containsKey('_gt') ? l$$_gt : const {},
+      _$data.containsKey('_gte') ? l$$_gte : const {},
+      _$data.containsKey('_in')
+          ? l$$_in == null
+              ? null
+              : Object.hashAll(l$$_in.map((v) => v))
+          : const {},
+      _$data.containsKey('_isNull') ? l$$_isNull : const {},
+      _$data.containsKey('_lt') ? l$$_lt : const {},
+      _$data.containsKey('_lte') ? l$$_lte : const {},
+      _$data.containsKey('_neq') ? l$$_neq : const {},
+      _$data.containsKey('_nin')
+          ? l$$_nin == null
+              ? null
+              : Object.hashAll(l$$_nin.map((v) => v))
+          : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$TimestamptzComparisonExp<TRes> {
+  factory CopyWith$Input$TimestamptzComparisonExp(
+    Input$TimestamptzComparisonExp instance,
+    TRes Function(Input$TimestamptzComparisonExp) then,
+  ) = _CopyWithImpl$Input$TimestamptzComparisonExp;
+
+  factory CopyWith$Input$TimestamptzComparisonExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$TimestamptzComparisonExp;
+
+  TRes call({
+    DateTime? $_eq,
+    DateTime? $_gt,
+    DateTime? $_gte,
+    List<DateTime>? $_in,
+    bool? $_isNull,
+    DateTime? $_lt,
+    DateTime? $_lte,
+    DateTime? $_neq,
+    List<DateTime>? $_nin,
+  });
+}
+
+class _CopyWithImpl$Input$TimestamptzComparisonExp<TRes>
+    implements CopyWith$Input$TimestamptzComparisonExp<TRes> {
+  _CopyWithImpl$Input$TimestamptzComparisonExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$TimestamptzComparisonExp _instance;
+
+  final TRes Function(Input$TimestamptzComparisonExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_eq = _undefined,
+    Object? $_gt = _undefined,
+    Object? $_gte = _undefined,
+    Object? $_in = _undefined,
+    Object? $_isNull = _undefined,
+    Object? $_lt = _undefined,
+    Object? $_lte = _undefined,
+    Object? $_neq = _undefined,
+    Object? $_nin = _undefined,
+  }) =>
+      _then(Input$TimestamptzComparisonExp._({
+        ..._instance._$data,
+        if ($_eq != _undefined) '_eq': ($_eq as DateTime?),
+        if ($_gt != _undefined) '_gt': ($_gt as DateTime?),
+        if ($_gte != _undefined) '_gte': ($_gte as DateTime?),
+        if ($_in != _undefined) '_in': ($_in as List<DateTime>?),
+        if ($_isNull != _undefined) '_isNull': ($_isNull as bool?),
+        if ($_lt != _undefined) '_lt': ($_lt as DateTime?),
+        if ($_lte != _undefined) '_lte': ($_lte as DateTime?),
+        if ($_neq != _undefined) '_neq': ($_neq as DateTime?),
+        if ($_nin != _undefined) '_nin': ($_nin as List<DateTime>?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$TimestamptzComparisonExp<TRes>
+    implements CopyWith$Input$TimestamptzComparisonExp<TRes> {
+  _CopyWithStubImpl$Input$TimestamptzComparisonExp(this._res);
+
+  TRes _res;
+
+  call({
+    DateTime? $_eq,
+    DateTime? $_gt,
+    DateTime? $_gte,
+    List<DateTime>? $_in,
+    bool? $_isNull,
+    DateTime? $_lt,
+    DateTime? $_lte,
+    DateTime? $_neq,
+    List<DateTime>? $_nin,
+  }) =>
+      _res;
+}
+
+class Input$TransferAggregateBoolExp {
+  factory Input$TransferAggregateBoolExp(
+          {Input$transferAggregateBoolExpCount? count}) =>
+      Input$TransferAggregateBoolExp._({
+        if (count != null) r'count': count,
+      });
+
+  Input$TransferAggregateBoolExp._(this._$data);
+
+  factory Input$TransferAggregateBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] = l$count == null
+          ? null
+          : Input$transferAggregateBoolExpCount.fromJson(
+              (l$count as Map<String, dynamic>));
+    }
+    return Input$TransferAggregateBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$transferAggregateBoolExpCount? get count =>
+      (_$data['count'] as Input$transferAggregateBoolExpCount?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] = l$count?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$TransferAggregateBoolExp<Input$TransferAggregateBoolExp>
+      get copyWith => CopyWith$Input$TransferAggregateBoolExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$TransferAggregateBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$count = count;
+    return Object.hashAll([_$data.containsKey('count') ? l$count : const {}]);
+  }
+}
+
+abstract class CopyWith$Input$TransferAggregateBoolExp<TRes> {
+  factory CopyWith$Input$TransferAggregateBoolExp(
+    Input$TransferAggregateBoolExp instance,
+    TRes Function(Input$TransferAggregateBoolExp) then,
+  ) = _CopyWithImpl$Input$TransferAggregateBoolExp;
+
+  factory CopyWith$Input$TransferAggregateBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$TransferAggregateBoolExp;
+
+  TRes call({Input$transferAggregateBoolExpCount? count});
+  CopyWith$Input$transferAggregateBoolExpCount<TRes> get count;
+}
+
+class _CopyWithImpl$Input$TransferAggregateBoolExp<TRes>
+    implements CopyWith$Input$TransferAggregateBoolExp<TRes> {
+  _CopyWithImpl$Input$TransferAggregateBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$TransferAggregateBoolExp _instance;
+
+  final TRes Function(Input$TransferAggregateBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({Object? count = _undefined}) =>
+      _then(Input$TransferAggregateBoolExp._({
+        ..._instance._$data,
+        if (count != _undefined)
+          'count': (count as Input$transferAggregateBoolExpCount?),
+      }));
+
+  CopyWith$Input$transferAggregateBoolExpCount<TRes> get count {
+    final local$count = _instance.count;
+    return local$count == null
+        ? CopyWith$Input$transferAggregateBoolExpCount.stub(_then(_instance))
+        : CopyWith$Input$transferAggregateBoolExpCount(
+            local$count, (e) => call(count: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$TransferAggregateBoolExp<TRes>
+    implements CopyWith$Input$TransferAggregateBoolExp<TRes> {
+  _CopyWithStubImpl$Input$TransferAggregateBoolExp(this._res);
+
+  TRes _res;
+
+  call({Input$transferAggregateBoolExpCount? count}) => _res;
+
+  CopyWith$Input$transferAggregateBoolExpCount<TRes> get count =>
+      CopyWith$Input$transferAggregateBoolExpCount.stub(_res);
+}
+
+class Input$transferAggregateBoolExpCount {
+  factory Input$transferAggregateBoolExpCount({
+    List<Enum$TransferSelectColumn>? arguments,
+    bool? distinct,
+    Input$TransferBoolExp? filter,
+    required Input$IntComparisonExp predicate,
+  }) =>
+      Input$transferAggregateBoolExpCount._({
+        if (arguments != null) r'arguments': arguments,
+        if (distinct != null) r'distinct': distinct,
+        if (filter != null) r'filter': filter,
+        r'predicate': predicate,
+      });
+
+  Input$transferAggregateBoolExpCount._(this._$data);
+
+  factory Input$transferAggregateBoolExpCount.fromJson(
+      Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('arguments')) {
+      final l$arguments = data['arguments'];
+      result$data['arguments'] = (l$arguments as List<dynamic>?)
+          ?.map((e) => fromJson$Enum$TransferSelectColumn((e as String)))
+          .toList();
+    }
+    if (data.containsKey('distinct')) {
+      final l$distinct = data['distinct'];
+      result$data['distinct'] = (l$distinct as bool?);
+    }
+    if (data.containsKey('filter')) {
+      final l$filter = data['filter'];
+      result$data['filter'] = l$filter == null
+          ? null
+          : Input$TransferBoolExp.fromJson((l$filter as Map<String, dynamic>));
+    }
+    final l$predicate = data['predicate'];
+    result$data['predicate'] =
+        Input$IntComparisonExp.fromJson((l$predicate as Map<String, dynamic>));
+    return Input$transferAggregateBoolExpCount._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Enum$TransferSelectColumn>? get arguments =>
+      (_$data['arguments'] as List<Enum$TransferSelectColumn>?);
+
+  bool? get distinct => (_$data['distinct'] as bool?);
+
+  Input$TransferBoolExp? get filter =>
+      (_$data['filter'] as Input$TransferBoolExp?);
+
+  Input$IntComparisonExp get predicate =>
+      (_$data['predicate'] as Input$IntComparisonExp);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('arguments')) {
+      final l$arguments = arguments;
+      result$data['arguments'] =
+          l$arguments?.map((e) => toJson$Enum$TransferSelectColumn(e)).toList();
+    }
+    if (_$data.containsKey('distinct')) {
+      final l$distinct = distinct;
+      result$data['distinct'] = l$distinct;
+    }
+    if (_$data.containsKey('filter')) {
+      final l$filter = filter;
+      result$data['filter'] = l$filter?.toJson();
+    }
+    final l$predicate = predicate;
+    result$data['predicate'] = l$predicate.toJson();
+    return result$data;
+  }
+
+  CopyWith$Input$transferAggregateBoolExpCount<
+          Input$transferAggregateBoolExpCount>
+      get copyWith => CopyWith$Input$transferAggregateBoolExpCount(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$transferAggregateBoolExpCount) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$arguments = arguments;
+    final lOther$arguments = other.arguments;
+    if (_$data.containsKey('arguments') !=
+        other._$data.containsKey('arguments')) {
+      return false;
+    }
+    if (l$arguments != null && lOther$arguments != null) {
+      if (l$arguments.length != lOther$arguments.length) {
+        return false;
+      }
+      for (int i = 0; i < l$arguments.length; i++) {
+        final l$arguments$entry = l$arguments[i];
+        final lOther$arguments$entry = lOther$arguments[i];
+        if (l$arguments$entry != lOther$arguments$entry) {
+          return false;
+        }
+      }
+    } else if (l$arguments != lOther$arguments) {
+      return false;
+    }
+    final l$distinct = distinct;
+    final lOther$distinct = other.distinct;
+    if (_$data.containsKey('distinct') !=
+        other._$data.containsKey('distinct')) {
+      return false;
+    }
+    if (l$distinct != lOther$distinct) {
+      return false;
+    }
+    final l$filter = filter;
+    final lOther$filter = other.filter;
+    if (_$data.containsKey('filter') != other._$data.containsKey('filter')) {
+      return false;
+    }
+    if (l$filter != lOther$filter) {
+      return false;
+    }
+    final l$predicate = predicate;
+    final lOther$predicate = other.predicate;
+    if (l$predicate != lOther$predicate) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$arguments = arguments;
+    final l$distinct = distinct;
+    final l$filter = filter;
+    final l$predicate = predicate;
+    return Object.hashAll([
+      _$data.containsKey('arguments')
+          ? l$arguments == null
+              ? null
+              : Object.hashAll(l$arguments.map((v) => v))
+          : const {},
+      _$data.containsKey('distinct') ? l$distinct : const {},
+      _$data.containsKey('filter') ? l$filter : const {},
+      l$predicate,
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$transferAggregateBoolExpCount<TRes> {
+  factory CopyWith$Input$transferAggregateBoolExpCount(
+    Input$transferAggregateBoolExpCount instance,
+    TRes Function(Input$transferAggregateBoolExpCount) then,
+  ) = _CopyWithImpl$Input$transferAggregateBoolExpCount;
+
+  factory CopyWith$Input$transferAggregateBoolExpCount.stub(TRes res) =
+      _CopyWithStubImpl$Input$transferAggregateBoolExpCount;
+
+  TRes call({
+    List<Enum$TransferSelectColumn>? arguments,
+    bool? distinct,
+    Input$TransferBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  });
+  CopyWith$Input$TransferBoolExp<TRes> get filter;
+  CopyWith$Input$IntComparisonExp<TRes> get predicate;
+}
+
+class _CopyWithImpl$Input$transferAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$transferAggregateBoolExpCount<TRes> {
+  _CopyWithImpl$Input$transferAggregateBoolExpCount(
+    this._instance,
+    this._then,
+  );
+
+  final Input$transferAggregateBoolExpCount _instance;
+
+  final TRes Function(Input$transferAggregateBoolExpCount) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? arguments = _undefined,
+    Object? distinct = _undefined,
+    Object? filter = _undefined,
+    Object? predicate = _undefined,
+  }) =>
+      _then(Input$transferAggregateBoolExpCount._({
+        ..._instance._$data,
+        if (arguments != _undefined)
+          'arguments': (arguments as List<Enum$TransferSelectColumn>?),
+        if (distinct != _undefined) 'distinct': (distinct as bool?),
+        if (filter != _undefined) 'filter': (filter as Input$TransferBoolExp?),
+        if (predicate != _undefined && predicate != null)
+          'predicate': (predicate as Input$IntComparisonExp),
+      }));
+
+  CopyWith$Input$TransferBoolExp<TRes> get filter {
+    final local$filter = _instance.filter;
+    return local$filter == null
+        ? CopyWith$Input$TransferBoolExp.stub(_then(_instance))
+        : CopyWith$Input$TransferBoolExp(local$filter, (e) => call(filter: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate {
+    final local$predicate = _instance.predicate;
+    return CopyWith$Input$IntComparisonExp(
+        local$predicate, (e) => call(predicate: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$transferAggregateBoolExpCount<TRes>
+    implements CopyWith$Input$transferAggregateBoolExpCount<TRes> {
+  _CopyWithStubImpl$Input$transferAggregateBoolExpCount(this._res);
+
+  TRes _res;
+
+  call({
+    List<Enum$TransferSelectColumn>? arguments,
+    bool? distinct,
+    Input$TransferBoolExp? filter,
+    Input$IntComparisonExp? predicate,
+  }) =>
+      _res;
+
+  CopyWith$Input$TransferBoolExp<TRes> get filter =>
+      CopyWith$Input$TransferBoolExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get predicate =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+}
+
+class Input$TransferAggregateOrderBy {
+  factory Input$TransferAggregateOrderBy({
+    Input$TransferAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$TransferMaxOrderBy? max,
+    Input$TransferMinOrderBy? min,
+    Input$TransferStddevOrderBy? stddev,
+    Input$TransferStddevPopOrderBy? stddevPop,
+    Input$TransferStddevSampOrderBy? stddevSamp,
+    Input$TransferSumOrderBy? sum,
+    Input$TransferVarPopOrderBy? varPop,
+    Input$TransferVarSampOrderBy? varSamp,
+    Input$TransferVarianceOrderBy? variance,
+  }) =>
+      Input$TransferAggregateOrderBy._({
+        if (avg != null) r'avg': avg,
+        if (count != null) r'count': count,
+        if (max != null) r'max': max,
+        if (min != null) r'min': min,
+        if (stddev != null) r'stddev': stddev,
+        if (stddevPop != null) r'stddevPop': stddevPop,
+        if (stddevSamp != null) r'stddevSamp': stddevSamp,
+        if (sum != null) r'sum': sum,
+        if (varPop != null) r'varPop': varPop,
+        if (varSamp != null) r'varSamp': varSamp,
+        if (variance != null) r'variance': variance,
+      });
+
+  Input$TransferAggregateOrderBy._(this._$data);
+
+  factory Input$TransferAggregateOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('avg')) {
+      final l$avg = data['avg'];
+      result$data['avg'] = l$avg == null
+          ? null
+          : Input$TransferAvgOrderBy.fromJson((l$avg as Map<String, dynamic>));
+    }
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] =
+          l$count == null ? null : fromJson$Enum$OrderBy((l$count as String));
+    }
+    if (data.containsKey('max')) {
+      final l$max = data['max'];
+      result$data['max'] = l$max == null
+          ? null
+          : Input$TransferMaxOrderBy.fromJson((l$max as Map<String, dynamic>));
+    }
+    if (data.containsKey('min')) {
+      final l$min = data['min'];
+      result$data['min'] = l$min == null
+          ? null
+          : Input$TransferMinOrderBy.fromJson((l$min as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddev')) {
+      final l$stddev = data['stddev'];
+      result$data['stddev'] = l$stddev == null
+          ? null
+          : Input$TransferStddevOrderBy.fromJson(
+              (l$stddev as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevPop')) {
+      final l$stddevPop = data['stddevPop'];
+      result$data['stddevPop'] = l$stddevPop == null
+          ? null
+          : Input$TransferStddevPopOrderBy.fromJson(
+              (l$stddevPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevSamp')) {
+      final l$stddevSamp = data['stddevSamp'];
+      result$data['stddevSamp'] = l$stddevSamp == null
+          ? null
+          : Input$TransferStddevSampOrderBy.fromJson(
+              (l$stddevSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('sum')) {
+      final l$sum = data['sum'];
+      result$data['sum'] = l$sum == null
+          ? null
+          : Input$TransferSumOrderBy.fromJson((l$sum as Map<String, dynamic>));
+    }
+    if (data.containsKey('varPop')) {
+      final l$varPop = data['varPop'];
+      result$data['varPop'] = l$varPop == null
+          ? null
+          : Input$TransferVarPopOrderBy.fromJson(
+              (l$varPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('varSamp')) {
+      final l$varSamp = data['varSamp'];
+      result$data['varSamp'] = l$varSamp == null
+          ? null
+          : Input$TransferVarSampOrderBy.fromJson(
+              (l$varSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('variance')) {
+      final l$variance = data['variance'];
+      result$data['variance'] = l$variance == null
+          ? null
+          : Input$TransferVarianceOrderBy.fromJson(
+              (l$variance as Map<String, dynamic>));
+    }
+    return Input$TransferAggregateOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$TransferAvgOrderBy? get avg =>
+      (_$data['avg'] as Input$TransferAvgOrderBy?);
+
+  Enum$OrderBy? get count => (_$data['count'] as Enum$OrderBy?);
+
+  Input$TransferMaxOrderBy? get max =>
+      (_$data['max'] as Input$TransferMaxOrderBy?);
+
+  Input$TransferMinOrderBy? get min =>
+      (_$data['min'] as Input$TransferMinOrderBy?);
+
+  Input$TransferStddevOrderBy? get stddev =>
+      (_$data['stddev'] as Input$TransferStddevOrderBy?);
+
+  Input$TransferStddevPopOrderBy? get stddevPop =>
+      (_$data['stddevPop'] as Input$TransferStddevPopOrderBy?);
+
+  Input$TransferStddevSampOrderBy? get stddevSamp =>
+      (_$data['stddevSamp'] as Input$TransferStddevSampOrderBy?);
+
+  Input$TransferSumOrderBy? get sum =>
+      (_$data['sum'] as Input$TransferSumOrderBy?);
+
+  Input$TransferVarPopOrderBy? get varPop =>
+      (_$data['varPop'] as Input$TransferVarPopOrderBy?);
+
+  Input$TransferVarSampOrderBy? get varSamp =>
+      (_$data['varSamp'] as Input$TransferVarSampOrderBy?);
+
+  Input$TransferVarianceOrderBy? get variance =>
+      (_$data['variance'] as Input$TransferVarianceOrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('avg')) {
+      final l$avg = avg;
+      result$data['avg'] = l$avg?.toJson();
+    }
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] =
+          l$count == null ? null : toJson$Enum$OrderBy(l$count);
+    }
+    if (_$data.containsKey('max')) {
+      final l$max = max;
+      result$data['max'] = l$max?.toJson();
+    }
+    if (_$data.containsKey('min')) {
+      final l$min = min;
+      result$data['min'] = l$min?.toJson();
+    }
+    if (_$data.containsKey('stddev')) {
+      final l$stddev = stddev;
+      result$data['stddev'] = l$stddev?.toJson();
+    }
+    if (_$data.containsKey('stddevPop')) {
+      final l$stddevPop = stddevPop;
+      result$data['stddevPop'] = l$stddevPop?.toJson();
+    }
+    if (_$data.containsKey('stddevSamp')) {
+      final l$stddevSamp = stddevSamp;
+      result$data['stddevSamp'] = l$stddevSamp?.toJson();
+    }
+    if (_$data.containsKey('sum')) {
+      final l$sum = sum;
+      result$data['sum'] = l$sum?.toJson();
+    }
+    if (_$data.containsKey('varPop')) {
+      final l$varPop = varPop;
+      result$data['varPop'] = l$varPop?.toJson();
+    }
+    if (_$data.containsKey('varSamp')) {
+      final l$varSamp = varSamp;
+      result$data['varSamp'] = l$varSamp?.toJson();
+    }
+    if (_$data.containsKey('variance')) {
+      final l$variance = variance;
+      result$data['variance'] = l$variance?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$TransferAggregateOrderBy<Input$TransferAggregateOrderBy>
+      get copyWith => CopyWith$Input$TransferAggregateOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$TransferAggregateOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$avg = avg;
+    final lOther$avg = other.avg;
+    if (_$data.containsKey('avg') != other._$data.containsKey('avg')) {
+      return false;
+    }
+    if (l$avg != lOther$avg) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    final l$max = max;
+    final lOther$max = other.max;
+    if (_$data.containsKey('max') != other._$data.containsKey('max')) {
+      return false;
+    }
+    if (l$max != lOther$max) {
+      return false;
+    }
+    final l$min = min;
+    final lOther$min = other.min;
+    if (_$data.containsKey('min') != other._$data.containsKey('min')) {
+      return false;
+    }
+    if (l$min != lOther$min) {
+      return false;
+    }
+    final l$stddev = stddev;
+    final lOther$stddev = other.stddev;
+    if (_$data.containsKey('stddev') != other._$data.containsKey('stddev')) {
+      return false;
+    }
+    if (l$stddev != lOther$stddev) {
+      return false;
+    }
+    final l$stddevPop = stddevPop;
+    final lOther$stddevPop = other.stddevPop;
+    if (_$data.containsKey('stddevPop') !=
+        other._$data.containsKey('stddevPop')) {
+      return false;
+    }
+    if (l$stddevPop != lOther$stddevPop) {
+      return false;
+    }
+    final l$stddevSamp = stddevSamp;
+    final lOther$stddevSamp = other.stddevSamp;
+    if (_$data.containsKey('stddevSamp') !=
+        other._$data.containsKey('stddevSamp')) {
+      return false;
+    }
+    if (l$stddevSamp != lOther$stddevSamp) {
+      return false;
+    }
+    final l$sum = sum;
+    final lOther$sum = other.sum;
+    if (_$data.containsKey('sum') != other._$data.containsKey('sum')) {
+      return false;
+    }
+    if (l$sum != lOther$sum) {
+      return false;
+    }
+    final l$varPop = varPop;
+    final lOther$varPop = other.varPop;
+    if (_$data.containsKey('varPop') != other._$data.containsKey('varPop')) {
+      return false;
+    }
+    if (l$varPop != lOther$varPop) {
+      return false;
+    }
+    final l$varSamp = varSamp;
+    final lOther$varSamp = other.varSamp;
+    if (_$data.containsKey('varSamp') != other._$data.containsKey('varSamp')) {
+      return false;
+    }
+    if (l$varSamp != lOther$varSamp) {
+      return false;
+    }
+    final l$variance = variance;
+    final lOther$variance = other.variance;
+    if (_$data.containsKey('variance') !=
+        other._$data.containsKey('variance')) {
+      return false;
+    }
+    if (l$variance != lOther$variance) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$avg = avg;
+    final l$count = count;
+    final l$max = max;
+    final l$min = min;
+    final l$stddev = stddev;
+    final l$stddevPop = stddevPop;
+    final l$stddevSamp = stddevSamp;
+    final l$sum = sum;
+    final l$varPop = varPop;
+    final l$varSamp = varSamp;
+    final l$variance = variance;
+    return Object.hashAll([
+      _$data.containsKey('avg') ? l$avg : const {},
+      _$data.containsKey('count') ? l$count : const {},
+      _$data.containsKey('max') ? l$max : const {},
+      _$data.containsKey('min') ? l$min : const {},
+      _$data.containsKey('stddev') ? l$stddev : const {},
+      _$data.containsKey('stddevPop') ? l$stddevPop : const {},
+      _$data.containsKey('stddevSamp') ? l$stddevSamp : const {},
+      _$data.containsKey('sum') ? l$sum : const {},
+      _$data.containsKey('varPop') ? l$varPop : const {},
+      _$data.containsKey('varSamp') ? l$varSamp : const {},
+      _$data.containsKey('variance') ? l$variance : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$TransferAggregateOrderBy<TRes> {
+  factory CopyWith$Input$TransferAggregateOrderBy(
+    Input$TransferAggregateOrderBy instance,
+    TRes Function(Input$TransferAggregateOrderBy) then,
+  ) = _CopyWithImpl$Input$TransferAggregateOrderBy;
+
+  factory CopyWith$Input$TransferAggregateOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$TransferAggregateOrderBy;
+
+  TRes call({
+    Input$TransferAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$TransferMaxOrderBy? max,
+    Input$TransferMinOrderBy? min,
+    Input$TransferStddevOrderBy? stddev,
+    Input$TransferStddevPopOrderBy? stddevPop,
+    Input$TransferStddevSampOrderBy? stddevSamp,
+    Input$TransferSumOrderBy? sum,
+    Input$TransferVarPopOrderBy? varPop,
+    Input$TransferVarSampOrderBy? varSamp,
+    Input$TransferVarianceOrderBy? variance,
+  });
+  CopyWith$Input$TransferAvgOrderBy<TRes> get avg;
+  CopyWith$Input$TransferMaxOrderBy<TRes> get max;
+  CopyWith$Input$TransferMinOrderBy<TRes> get min;
+  CopyWith$Input$TransferStddevOrderBy<TRes> get stddev;
+  CopyWith$Input$TransferStddevPopOrderBy<TRes> get stddevPop;
+  CopyWith$Input$TransferStddevSampOrderBy<TRes> get stddevSamp;
+  CopyWith$Input$TransferSumOrderBy<TRes> get sum;
+  CopyWith$Input$TransferVarPopOrderBy<TRes> get varPop;
+  CopyWith$Input$TransferVarSampOrderBy<TRes> get varSamp;
+  CopyWith$Input$TransferVarianceOrderBy<TRes> get variance;
+}
+
+class _CopyWithImpl$Input$TransferAggregateOrderBy<TRes>
+    implements CopyWith$Input$TransferAggregateOrderBy<TRes> {
+  _CopyWithImpl$Input$TransferAggregateOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$TransferAggregateOrderBy _instance;
+
+  final TRes Function(Input$TransferAggregateOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? avg = _undefined,
+    Object? count = _undefined,
+    Object? max = _undefined,
+    Object? min = _undefined,
+    Object? stddev = _undefined,
+    Object? stddevPop = _undefined,
+    Object? stddevSamp = _undefined,
+    Object? sum = _undefined,
+    Object? varPop = _undefined,
+    Object? varSamp = _undefined,
+    Object? variance = _undefined,
+  }) =>
+      _then(Input$TransferAggregateOrderBy._({
+        ..._instance._$data,
+        if (avg != _undefined) 'avg': (avg as Input$TransferAvgOrderBy?),
+        if (count != _undefined) 'count': (count as Enum$OrderBy?),
+        if (max != _undefined) 'max': (max as Input$TransferMaxOrderBy?),
+        if (min != _undefined) 'min': (min as Input$TransferMinOrderBy?),
+        if (stddev != _undefined)
+          'stddev': (stddev as Input$TransferStddevOrderBy?),
+        if (stddevPop != _undefined)
+          'stddevPop': (stddevPop as Input$TransferStddevPopOrderBy?),
+        if (stddevSamp != _undefined)
+          'stddevSamp': (stddevSamp as Input$TransferStddevSampOrderBy?),
+        if (sum != _undefined) 'sum': (sum as Input$TransferSumOrderBy?),
+        if (varPop != _undefined)
+          'varPop': (varPop as Input$TransferVarPopOrderBy?),
+        if (varSamp != _undefined)
+          'varSamp': (varSamp as Input$TransferVarSampOrderBy?),
+        if (variance != _undefined)
+          'variance': (variance as Input$TransferVarianceOrderBy?),
+      }));
+
+  CopyWith$Input$TransferAvgOrderBy<TRes> get avg {
+    final local$avg = _instance.avg;
+    return local$avg == null
+        ? CopyWith$Input$TransferAvgOrderBy.stub(_then(_instance))
+        : CopyWith$Input$TransferAvgOrderBy(local$avg, (e) => call(avg: e));
+  }
+
+  CopyWith$Input$TransferMaxOrderBy<TRes> get max {
+    final local$max = _instance.max;
+    return local$max == null
+        ? CopyWith$Input$TransferMaxOrderBy.stub(_then(_instance))
+        : CopyWith$Input$TransferMaxOrderBy(local$max, (e) => call(max: e));
+  }
+
+  CopyWith$Input$TransferMinOrderBy<TRes> get min {
+    final local$min = _instance.min;
+    return local$min == null
+        ? CopyWith$Input$TransferMinOrderBy.stub(_then(_instance))
+        : CopyWith$Input$TransferMinOrderBy(local$min, (e) => call(min: e));
+  }
+
+  CopyWith$Input$TransferStddevOrderBy<TRes> get stddev {
+    final local$stddev = _instance.stddev;
+    return local$stddev == null
+        ? CopyWith$Input$TransferStddevOrderBy.stub(_then(_instance))
+        : CopyWith$Input$TransferStddevOrderBy(
+            local$stddev, (e) => call(stddev: e));
+  }
+
+  CopyWith$Input$TransferStddevPopOrderBy<TRes> get stddevPop {
+    final local$stddevPop = _instance.stddevPop;
+    return local$stddevPop == null
+        ? CopyWith$Input$TransferStddevPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$TransferStddevPopOrderBy(
+            local$stddevPop, (e) => call(stddevPop: e));
+  }
+
+  CopyWith$Input$TransferStddevSampOrderBy<TRes> get stddevSamp {
+    final local$stddevSamp = _instance.stddevSamp;
+    return local$stddevSamp == null
+        ? CopyWith$Input$TransferStddevSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$TransferStddevSampOrderBy(
+            local$stddevSamp, (e) => call(stddevSamp: e));
+  }
+
+  CopyWith$Input$TransferSumOrderBy<TRes> get sum {
+    final local$sum = _instance.sum;
+    return local$sum == null
+        ? CopyWith$Input$TransferSumOrderBy.stub(_then(_instance))
+        : CopyWith$Input$TransferSumOrderBy(local$sum, (e) => call(sum: e));
+  }
+
+  CopyWith$Input$TransferVarPopOrderBy<TRes> get varPop {
+    final local$varPop = _instance.varPop;
+    return local$varPop == null
+        ? CopyWith$Input$TransferVarPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$TransferVarPopOrderBy(
+            local$varPop, (e) => call(varPop: e));
+  }
+
+  CopyWith$Input$TransferVarSampOrderBy<TRes> get varSamp {
+    final local$varSamp = _instance.varSamp;
+    return local$varSamp == null
+        ? CopyWith$Input$TransferVarSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$TransferVarSampOrderBy(
+            local$varSamp, (e) => call(varSamp: e));
+  }
+
+  CopyWith$Input$TransferVarianceOrderBy<TRes> get variance {
+    final local$variance = _instance.variance;
+    return local$variance == null
+        ? CopyWith$Input$TransferVarianceOrderBy.stub(_then(_instance))
+        : CopyWith$Input$TransferVarianceOrderBy(
+            local$variance, (e) => call(variance: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$TransferAggregateOrderBy<TRes>
+    implements CopyWith$Input$TransferAggregateOrderBy<TRes> {
+  _CopyWithStubImpl$Input$TransferAggregateOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Input$TransferAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$TransferMaxOrderBy? max,
+    Input$TransferMinOrderBy? min,
+    Input$TransferStddevOrderBy? stddev,
+    Input$TransferStddevPopOrderBy? stddevPop,
+    Input$TransferStddevSampOrderBy? stddevSamp,
+    Input$TransferSumOrderBy? sum,
+    Input$TransferVarPopOrderBy? varPop,
+    Input$TransferVarSampOrderBy? varSamp,
+    Input$TransferVarianceOrderBy? variance,
+  }) =>
+      _res;
+
+  CopyWith$Input$TransferAvgOrderBy<TRes> get avg =>
+      CopyWith$Input$TransferAvgOrderBy.stub(_res);
+
+  CopyWith$Input$TransferMaxOrderBy<TRes> get max =>
+      CopyWith$Input$TransferMaxOrderBy.stub(_res);
+
+  CopyWith$Input$TransferMinOrderBy<TRes> get min =>
+      CopyWith$Input$TransferMinOrderBy.stub(_res);
+
+  CopyWith$Input$TransferStddevOrderBy<TRes> get stddev =>
+      CopyWith$Input$TransferStddevOrderBy.stub(_res);
+
+  CopyWith$Input$TransferStddevPopOrderBy<TRes> get stddevPop =>
+      CopyWith$Input$TransferStddevPopOrderBy.stub(_res);
+
+  CopyWith$Input$TransferStddevSampOrderBy<TRes> get stddevSamp =>
+      CopyWith$Input$TransferStddevSampOrderBy.stub(_res);
+
+  CopyWith$Input$TransferSumOrderBy<TRes> get sum =>
+      CopyWith$Input$TransferSumOrderBy.stub(_res);
+
+  CopyWith$Input$TransferVarPopOrderBy<TRes> get varPop =>
+      CopyWith$Input$TransferVarPopOrderBy.stub(_res);
+
+  CopyWith$Input$TransferVarSampOrderBy<TRes> get varSamp =>
+      CopyWith$Input$TransferVarSampOrderBy.stub(_res);
+
+  CopyWith$Input$TransferVarianceOrderBy<TRes> get variance =>
+      CopyWith$Input$TransferVarianceOrderBy.stub(_res);
+}
+
+class Input$TransferAvgOrderBy {
+  factory Input$TransferAvgOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$TransferAvgOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$TransferAvgOrderBy._(this._$data);
+
+  factory Input$TransferAvgOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$TransferAvgOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$TransferAvgOrderBy<Input$TransferAvgOrderBy> get copyWith =>
+      CopyWith$Input$TransferAvgOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$TransferAvgOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$TransferAvgOrderBy<TRes> {
+  factory CopyWith$Input$TransferAvgOrderBy(
+    Input$TransferAvgOrderBy instance,
+    TRes Function(Input$TransferAvgOrderBy) then,
+  ) = _CopyWithImpl$Input$TransferAvgOrderBy;
+
+  factory CopyWith$Input$TransferAvgOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$TransferAvgOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$TransferAvgOrderBy<TRes>
+    implements CopyWith$Input$TransferAvgOrderBy<TRes> {
+  _CopyWithImpl$Input$TransferAvgOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$TransferAvgOrderBy _instance;
+
+  final TRes Function(Input$TransferAvgOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$TransferAvgOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$TransferAvgOrderBy<TRes>
+    implements CopyWith$Input$TransferAvgOrderBy<TRes> {
+  _CopyWithStubImpl$Input$TransferAvgOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$TransferBoolExp {
+  factory Input$TransferBoolExp({
+    List<Input$TransferBoolExp>? $_and,
+    Input$TransferBoolExp? $_not,
+    List<Input$TransferBoolExp>? $_or,
+    Input$NumericComparisonExp? amount,
+    Input$IntComparisonExp? blockNumber,
+    Input$StringComparisonExp? comment,
+    Input$AccountBoolExp? from,
+    Input$StringComparisonExp? fromId,
+    Input$StringComparisonExp? id,
+    Input$TimestamptzComparisonExp? timestamp,
+    Input$AccountBoolExp? to,
+    Input$StringComparisonExp? toId,
+  }) =>
+      Input$TransferBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (comment != null) r'comment': comment,
+        if (from != null) r'from': from,
+        if (fromId != null) r'fromId': fromId,
+        if (id != null) r'id': id,
+        if (timestamp != null) r'timestamp': timestamp,
+        if (to != null) r'to': to,
+        if (toId != null) r'toId': toId,
+      });
+
+  Input$TransferBoolExp._(this._$data);
+
+  factory Input$TransferBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map((e) =>
+              Input$TransferBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$TransferBoolExp.fromJson((l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map((e) =>
+              Input$TransferBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] = l$amount == null
+          ? null
+          : Input$NumericComparisonExp.fromJson(
+              (l$amount as Map<String, dynamic>));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$blockNumber as Map<String, dynamic>));
+    }
+    if (data.containsKey('comment')) {
+      final l$comment = data['comment'];
+      result$data['comment'] = l$comment == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$comment as Map<String, dynamic>));
+    }
+    if (data.containsKey('from')) {
+      final l$from = data['from'];
+      result$data['from'] = l$from == null
+          ? null
+          : Input$AccountBoolExp.fromJson((l$from as Map<String, dynamic>));
+    }
+    if (data.containsKey('fromId')) {
+      final l$fromId = data['fromId'];
+      result$data['fromId'] = l$fromId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$fromId as Map<String, dynamic>));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    if (data.containsKey('timestamp')) {
+      final l$timestamp = data['timestamp'];
+      result$data['timestamp'] = l$timestamp == null
+          ? null
+          : Input$TimestamptzComparisonExp.fromJson(
+              (l$timestamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('to')) {
+      final l$to = data['to'];
+      result$data['to'] = l$to == null
+          ? null
+          : Input$AccountBoolExp.fromJson((l$to as Map<String, dynamic>));
+    }
+    if (data.containsKey('toId')) {
+      final l$toId = data['toId'];
+      result$data['toId'] = l$toId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$toId as Map<String, dynamic>));
+    }
+    return Input$TransferBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$TransferBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$TransferBoolExp>?);
+
+  Input$TransferBoolExp? get $_not =>
+      (_$data['_not'] as Input$TransferBoolExp?);
+
+  List<Input$TransferBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$TransferBoolExp>?);
+
+  Input$NumericComparisonExp? get amount =>
+      (_$data['amount'] as Input$NumericComparisonExp?);
+
+  Input$IntComparisonExp? get blockNumber =>
+      (_$data['blockNumber'] as Input$IntComparisonExp?);
+
+  Input$StringComparisonExp? get comment =>
+      (_$data['comment'] as Input$StringComparisonExp?);
+
+  Input$AccountBoolExp? get from => (_$data['from'] as Input$AccountBoolExp?);
+
+  Input$StringComparisonExp? get fromId =>
+      (_$data['fromId'] as Input$StringComparisonExp?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Input$TimestamptzComparisonExp? get timestamp =>
+      (_$data['timestamp'] as Input$TimestamptzComparisonExp?);
+
+  Input$AccountBoolExp? get to => (_$data['to'] as Input$AccountBoolExp?);
+
+  Input$StringComparisonExp? get toId =>
+      (_$data['toId'] as Input$StringComparisonExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] = l$amount?.toJson();
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] = l$blockNumber?.toJson();
+    }
+    if (_$data.containsKey('comment')) {
+      final l$comment = comment;
+      result$data['comment'] = l$comment?.toJson();
+    }
+    if (_$data.containsKey('from')) {
+      final l$from = from;
+      result$data['from'] = l$from?.toJson();
+    }
+    if (_$data.containsKey('fromId')) {
+      final l$fromId = fromId;
+      result$data['fromId'] = l$fromId?.toJson();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    if (_$data.containsKey('timestamp')) {
+      final l$timestamp = timestamp;
+      result$data['timestamp'] = l$timestamp?.toJson();
+    }
+    if (_$data.containsKey('to')) {
+      final l$to = to;
+      result$data['to'] = l$to?.toJson();
+    }
+    if (_$data.containsKey('toId')) {
+      final l$toId = toId;
+      result$data['toId'] = l$toId?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$TransferBoolExp<Input$TransferBoolExp> get copyWith =>
+      CopyWith$Input$TransferBoolExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$TransferBoolExp) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$comment = comment;
+    final lOther$comment = other.comment;
+    if (_$data.containsKey('comment') != other._$data.containsKey('comment')) {
+      return false;
+    }
+    if (l$comment != lOther$comment) {
+      return false;
+    }
+    final l$from = from;
+    final lOther$from = other.from;
+    if (_$data.containsKey('from') != other._$data.containsKey('from')) {
+      return false;
+    }
+    if (l$from != lOther$from) {
+      return false;
+    }
+    final l$fromId = fromId;
+    final lOther$fromId = other.fromId;
+    if (_$data.containsKey('fromId') != other._$data.containsKey('fromId')) {
+      return false;
+    }
+    if (l$fromId != lOther$fromId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (_$data.containsKey('timestamp') !=
+        other._$data.containsKey('timestamp')) {
+      return false;
+    }
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    final l$to = to;
+    final lOther$to = other.to;
+    if (_$data.containsKey('to') != other._$data.containsKey('to')) {
+      return false;
+    }
+    if (l$to != lOther$to) {
+      return false;
+    }
+    final l$toId = toId;
+    final lOther$toId = other.toId;
+    if (_$data.containsKey('toId') != other._$data.containsKey('toId')) {
+      return false;
+    }
+    if (l$toId != lOther$toId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    final l$comment = comment;
+    final l$from = from;
+    final l$fromId = fromId;
+    final l$id = id;
+    final l$timestamp = timestamp;
+    final l$to = to;
+    final l$toId = toId;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('comment') ? l$comment : const {},
+      _$data.containsKey('from') ? l$from : const {},
+      _$data.containsKey('fromId') ? l$fromId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('timestamp') ? l$timestamp : const {},
+      _$data.containsKey('to') ? l$to : const {},
+      _$data.containsKey('toId') ? l$toId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$TransferBoolExp<TRes> {
+  factory CopyWith$Input$TransferBoolExp(
+    Input$TransferBoolExp instance,
+    TRes Function(Input$TransferBoolExp) then,
+  ) = _CopyWithImpl$Input$TransferBoolExp;
+
+  factory CopyWith$Input$TransferBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$TransferBoolExp;
+
+  TRes call({
+    List<Input$TransferBoolExp>? $_and,
+    Input$TransferBoolExp? $_not,
+    List<Input$TransferBoolExp>? $_or,
+    Input$NumericComparisonExp? amount,
+    Input$IntComparisonExp? blockNumber,
+    Input$StringComparisonExp? comment,
+    Input$AccountBoolExp? from,
+    Input$StringComparisonExp? fromId,
+    Input$StringComparisonExp? id,
+    Input$TimestamptzComparisonExp? timestamp,
+    Input$AccountBoolExp? to,
+    Input$StringComparisonExp? toId,
+  });
+  TRes $_and(
+      Iterable<Input$TransferBoolExp>? Function(
+              Iterable<CopyWith$Input$TransferBoolExp<Input$TransferBoolExp>>?)
+          _fn);
+  CopyWith$Input$TransferBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$TransferBoolExp>? Function(
+              Iterable<CopyWith$Input$TransferBoolExp<Input$TransferBoolExp>>?)
+          _fn);
+  CopyWith$Input$NumericComparisonExp<TRes> get amount;
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber;
+  CopyWith$Input$StringComparisonExp<TRes> get comment;
+  CopyWith$Input$AccountBoolExp<TRes> get from;
+  CopyWith$Input$StringComparisonExp<TRes> get fromId;
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+  CopyWith$Input$TimestamptzComparisonExp<TRes> get timestamp;
+  CopyWith$Input$AccountBoolExp<TRes> get to;
+  CopyWith$Input$StringComparisonExp<TRes> get toId;
+}
+
+class _CopyWithImpl$Input$TransferBoolExp<TRes>
+    implements CopyWith$Input$TransferBoolExp<TRes> {
+  _CopyWithImpl$Input$TransferBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$TransferBoolExp _instance;
+
+  final TRes Function(Input$TransferBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+    Object? comment = _undefined,
+    Object? from = _undefined,
+    Object? fromId = _undefined,
+    Object? id = _undefined,
+    Object? timestamp = _undefined,
+    Object? to = _undefined,
+    Object? toId = _undefined,
+  }) =>
+      _then(Input$TransferBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined)
+          '_and': ($_and as List<Input$TransferBoolExp>?),
+        if ($_not != _undefined) '_not': ($_not as Input$TransferBoolExp?),
+        if ($_or != _undefined) '_or': ($_or as List<Input$TransferBoolExp>?),
+        if (amount != _undefined)
+          'amount': (amount as Input$NumericComparisonExp?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Input$IntComparisonExp?),
+        if (comment != _undefined)
+          'comment': (comment as Input$StringComparisonExp?),
+        if (from != _undefined) 'from': (from as Input$AccountBoolExp?),
+        if (fromId != _undefined)
+          'fromId': (fromId as Input$StringComparisonExp?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+        if (timestamp != _undefined)
+          'timestamp': (timestamp as Input$TimestamptzComparisonExp?),
+        if (to != _undefined) 'to': (to as Input$AccountBoolExp?),
+        if (toId != _undefined) 'toId': (toId as Input$StringComparisonExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$TransferBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$TransferBoolExp<Input$TransferBoolExp>>?)
+              _fn) =>
+      call(
+          $_and: _fn(_instance.$_and?.map((e) => CopyWith$Input$TransferBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$TransferBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$TransferBoolExp.stub(_then(_instance))
+        : CopyWith$Input$TransferBoolExp(local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$TransferBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$TransferBoolExp<Input$TransferBoolExp>>?)
+              _fn) =>
+      call(
+          $_or: _fn(_instance.$_or?.map((e) => CopyWith$Input$TransferBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$NumericComparisonExp<TRes> get amount {
+    final local$amount = _instance.amount;
+    return local$amount == null
+        ? CopyWith$Input$NumericComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$NumericComparisonExp(
+            local$amount, (e) => call(amount: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber {
+    final local$blockNumber = _instance.blockNumber;
+    return local$blockNumber == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$blockNumber, (e) => call(blockNumber: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get comment {
+    final local$comment = _instance.comment;
+    return local$comment == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$comment, (e) => call(comment: e));
+  }
+
+  CopyWith$Input$AccountBoolExp<TRes> get from {
+    final local$from = _instance.from;
+    return local$from == null
+        ? CopyWith$Input$AccountBoolExp.stub(_then(_instance))
+        : CopyWith$Input$AccountBoolExp(local$from, (e) => call(from: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get fromId {
+    final local$fromId = _instance.fromId;
+    return local$fromId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$fromId, (e) => call(fromId: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+
+  CopyWith$Input$TimestamptzComparisonExp<TRes> get timestamp {
+    final local$timestamp = _instance.timestamp;
+    return local$timestamp == null
+        ? CopyWith$Input$TimestamptzComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$TimestamptzComparisonExp(
+            local$timestamp, (e) => call(timestamp: e));
+  }
+
+  CopyWith$Input$AccountBoolExp<TRes> get to {
+    final local$to = _instance.to;
+    return local$to == null
+        ? CopyWith$Input$AccountBoolExp.stub(_then(_instance))
+        : CopyWith$Input$AccountBoolExp(local$to, (e) => call(to: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get toId {
+    final local$toId = _instance.toId;
+    return local$toId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$toId, (e) => call(toId: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$TransferBoolExp<TRes>
+    implements CopyWith$Input$TransferBoolExp<TRes> {
+  _CopyWithStubImpl$Input$TransferBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$TransferBoolExp>? $_and,
+    Input$TransferBoolExp? $_not,
+    List<Input$TransferBoolExp>? $_or,
+    Input$NumericComparisonExp? amount,
+    Input$IntComparisonExp? blockNumber,
+    Input$StringComparisonExp? comment,
+    Input$AccountBoolExp? from,
+    Input$StringComparisonExp? fromId,
+    Input$StringComparisonExp? id,
+    Input$TimestamptzComparisonExp? timestamp,
+    Input$AccountBoolExp? to,
+    Input$StringComparisonExp? toId,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$TransferBoolExp<TRes> get $_not =>
+      CopyWith$Input$TransferBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$NumericComparisonExp<TRes> get amount =>
+      CopyWith$Input$NumericComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get comment =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$AccountBoolExp<TRes> get from =>
+      CopyWith$Input$AccountBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get fromId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$TimestamptzComparisonExp<TRes> get timestamp =>
+      CopyWith$Input$TimestamptzComparisonExp.stub(_res);
+
+  CopyWith$Input$AccountBoolExp<TRes> get to =>
+      CopyWith$Input$AccountBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get toId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+}
+
+class Input$TransferMaxOrderBy {
+  factory Input$TransferMaxOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? comment,
+    Enum$OrderBy? fromId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? timestamp,
+    Enum$OrderBy? toId,
+  }) =>
+      Input$TransferMaxOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (comment != null) r'comment': comment,
+        if (fromId != null) r'fromId': fromId,
+        if (id != null) r'id': id,
+        if (timestamp != null) r'timestamp': timestamp,
+        if (toId != null) r'toId': toId,
+      });
+
+  Input$TransferMaxOrderBy._(this._$data);
+
+  factory Input$TransferMaxOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('comment')) {
+      final l$comment = data['comment'];
+      result$data['comment'] = l$comment == null
+          ? null
+          : fromJson$Enum$OrderBy((l$comment as String));
+    }
+    if (data.containsKey('fromId')) {
+      final l$fromId = data['fromId'];
+      result$data['fromId'] =
+          l$fromId == null ? null : fromJson$Enum$OrderBy((l$fromId as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('timestamp')) {
+      final l$timestamp = data['timestamp'];
+      result$data['timestamp'] = l$timestamp == null
+          ? null
+          : fromJson$Enum$OrderBy((l$timestamp as String));
+    }
+    if (data.containsKey('toId')) {
+      final l$toId = data['toId'];
+      result$data['toId'] =
+          l$toId == null ? null : fromJson$Enum$OrderBy((l$toId as String));
+    }
+    return Input$TransferMaxOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get comment => (_$data['comment'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get fromId => (_$data['fromId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get timestamp => (_$data['timestamp'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get toId => (_$data['toId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('comment')) {
+      final l$comment = comment;
+      result$data['comment'] =
+          l$comment == null ? null : toJson$Enum$OrderBy(l$comment);
+    }
+    if (_$data.containsKey('fromId')) {
+      final l$fromId = fromId;
+      result$data['fromId'] =
+          l$fromId == null ? null : toJson$Enum$OrderBy(l$fromId);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('timestamp')) {
+      final l$timestamp = timestamp;
+      result$data['timestamp'] =
+          l$timestamp == null ? null : toJson$Enum$OrderBy(l$timestamp);
+    }
+    if (_$data.containsKey('toId')) {
+      final l$toId = toId;
+      result$data['toId'] = l$toId == null ? null : toJson$Enum$OrderBy(l$toId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$TransferMaxOrderBy<Input$TransferMaxOrderBy> get copyWith =>
+      CopyWith$Input$TransferMaxOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$TransferMaxOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$comment = comment;
+    final lOther$comment = other.comment;
+    if (_$data.containsKey('comment') != other._$data.containsKey('comment')) {
+      return false;
+    }
+    if (l$comment != lOther$comment) {
+      return false;
+    }
+    final l$fromId = fromId;
+    final lOther$fromId = other.fromId;
+    if (_$data.containsKey('fromId') != other._$data.containsKey('fromId')) {
+      return false;
+    }
+    if (l$fromId != lOther$fromId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (_$data.containsKey('timestamp') !=
+        other._$data.containsKey('timestamp')) {
+      return false;
+    }
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    final l$toId = toId;
+    final lOther$toId = other.toId;
+    if (_$data.containsKey('toId') != other._$data.containsKey('toId')) {
+      return false;
+    }
+    if (l$toId != lOther$toId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    final l$comment = comment;
+    final l$fromId = fromId;
+    final l$id = id;
+    final l$timestamp = timestamp;
+    final l$toId = toId;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('comment') ? l$comment : const {},
+      _$data.containsKey('fromId') ? l$fromId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('timestamp') ? l$timestamp : const {},
+      _$data.containsKey('toId') ? l$toId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$TransferMaxOrderBy<TRes> {
+  factory CopyWith$Input$TransferMaxOrderBy(
+    Input$TransferMaxOrderBy instance,
+    TRes Function(Input$TransferMaxOrderBy) then,
+  ) = _CopyWithImpl$Input$TransferMaxOrderBy;
+
+  factory CopyWith$Input$TransferMaxOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$TransferMaxOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? comment,
+    Enum$OrderBy? fromId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? timestamp,
+    Enum$OrderBy? toId,
+  });
+}
+
+class _CopyWithImpl$Input$TransferMaxOrderBy<TRes>
+    implements CopyWith$Input$TransferMaxOrderBy<TRes> {
+  _CopyWithImpl$Input$TransferMaxOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$TransferMaxOrderBy _instance;
+
+  final TRes Function(Input$TransferMaxOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+    Object? comment = _undefined,
+    Object? fromId = _undefined,
+    Object? id = _undefined,
+    Object? timestamp = _undefined,
+    Object? toId = _undefined,
+  }) =>
+      _then(Input$TransferMaxOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (comment != _undefined) 'comment': (comment as Enum$OrderBy?),
+        if (fromId != _undefined) 'fromId': (fromId as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (timestamp != _undefined) 'timestamp': (timestamp as Enum$OrderBy?),
+        if (toId != _undefined) 'toId': (toId as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$TransferMaxOrderBy<TRes>
+    implements CopyWith$Input$TransferMaxOrderBy<TRes> {
+  _CopyWithStubImpl$Input$TransferMaxOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? comment,
+    Enum$OrderBy? fromId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? timestamp,
+    Enum$OrderBy? toId,
+  }) =>
+      _res;
+}
+
+class Input$TransferMinOrderBy {
+  factory Input$TransferMinOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? comment,
+    Enum$OrderBy? fromId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? timestamp,
+    Enum$OrderBy? toId,
+  }) =>
+      Input$TransferMinOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (comment != null) r'comment': comment,
+        if (fromId != null) r'fromId': fromId,
+        if (id != null) r'id': id,
+        if (timestamp != null) r'timestamp': timestamp,
+        if (toId != null) r'toId': toId,
+      });
+
+  Input$TransferMinOrderBy._(this._$data);
+
+  factory Input$TransferMinOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('comment')) {
+      final l$comment = data['comment'];
+      result$data['comment'] = l$comment == null
+          ? null
+          : fromJson$Enum$OrderBy((l$comment as String));
+    }
+    if (data.containsKey('fromId')) {
+      final l$fromId = data['fromId'];
+      result$data['fromId'] =
+          l$fromId == null ? null : fromJson$Enum$OrderBy((l$fromId as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('timestamp')) {
+      final l$timestamp = data['timestamp'];
+      result$data['timestamp'] = l$timestamp == null
+          ? null
+          : fromJson$Enum$OrderBy((l$timestamp as String));
+    }
+    if (data.containsKey('toId')) {
+      final l$toId = data['toId'];
+      result$data['toId'] =
+          l$toId == null ? null : fromJson$Enum$OrderBy((l$toId as String));
+    }
+    return Input$TransferMinOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get comment => (_$data['comment'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get fromId => (_$data['fromId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get timestamp => (_$data['timestamp'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get toId => (_$data['toId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('comment')) {
+      final l$comment = comment;
+      result$data['comment'] =
+          l$comment == null ? null : toJson$Enum$OrderBy(l$comment);
+    }
+    if (_$data.containsKey('fromId')) {
+      final l$fromId = fromId;
+      result$data['fromId'] =
+          l$fromId == null ? null : toJson$Enum$OrderBy(l$fromId);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('timestamp')) {
+      final l$timestamp = timestamp;
+      result$data['timestamp'] =
+          l$timestamp == null ? null : toJson$Enum$OrderBy(l$timestamp);
+    }
+    if (_$data.containsKey('toId')) {
+      final l$toId = toId;
+      result$data['toId'] = l$toId == null ? null : toJson$Enum$OrderBy(l$toId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$TransferMinOrderBy<Input$TransferMinOrderBy> get copyWith =>
+      CopyWith$Input$TransferMinOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$TransferMinOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$comment = comment;
+    final lOther$comment = other.comment;
+    if (_$data.containsKey('comment') != other._$data.containsKey('comment')) {
+      return false;
+    }
+    if (l$comment != lOther$comment) {
+      return false;
+    }
+    final l$fromId = fromId;
+    final lOther$fromId = other.fromId;
+    if (_$data.containsKey('fromId') != other._$data.containsKey('fromId')) {
+      return false;
+    }
+    if (l$fromId != lOther$fromId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (_$data.containsKey('timestamp') !=
+        other._$data.containsKey('timestamp')) {
+      return false;
+    }
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    final l$toId = toId;
+    final lOther$toId = other.toId;
+    if (_$data.containsKey('toId') != other._$data.containsKey('toId')) {
+      return false;
+    }
+    if (l$toId != lOther$toId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    final l$comment = comment;
+    final l$fromId = fromId;
+    final l$id = id;
+    final l$timestamp = timestamp;
+    final l$toId = toId;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('comment') ? l$comment : const {},
+      _$data.containsKey('fromId') ? l$fromId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('timestamp') ? l$timestamp : const {},
+      _$data.containsKey('toId') ? l$toId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$TransferMinOrderBy<TRes> {
+  factory CopyWith$Input$TransferMinOrderBy(
+    Input$TransferMinOrderBy instance,
+    TRes Function(Input$TransferMinOrderBy) then,
+  ) = _CopyWithImpl$Input$TransferMinOrderBy;
+
+  factory CopyWith$Input$TransferMinOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$TransferMinOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? comment,
+    Enum$OrderBy? fromId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? timestamp,
+    Enum$OrderBy? toId,
+  });
+}
+
+class _CopyWithImpl$Input$TransferMinOrderBy<TRes>
+    implements CopyWith$Input$TransferMinOrderBy<TRes> {
+  _CopyWithImpl$Input$TransferMinOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$TransferMinOrderBy _instance;
+
+  final TRes Function(Input$TransferMinOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+    Object? comment = _undefined,
+    Object? fromId = _undefined,
+    Object? id = _undefined,
+    Object? timestamp = _undefined,
+    Object? toId = _undefined,
+  }) =>
+      _then(Input$TransferMinOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (comment != _undefined) 'comment': (comment as Enum$OrderBy?),
+        if (fromId != _undefined) 'fromId': (fromId as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (timestamp != _undefined) 'timestamp': (timestamp as Enum$OrderBy?),
+        if (toId != _undefined) 'toId': (toId as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$TransferMinOrderBy<TRes>
+    implements CopyWith$Input$TransferMinOrderBy<TRes> {
+  _CopyWithStubImpl$Input$TransferMinOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? comment,
+    Enum$OrderBy? fromId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? timestamp,
+    Enum$OrderBy? toId,
+  }) =>
+      _res;
+}
+
+class Input$TransferOrderBy {
+  factory Input$TransferOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? comment,
+    Input$AccountOrderBy? from,
+    Enum$OrderBy? fromId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? timestamp,
+    Input$AccountOrderBy? to,
+    Enum$OrderBy? toId,
+  }) =>
+      Input$TransferOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (comment != null) r'comment': comment,
+        if (from != null) r'from': from,
+        if (fromId != null) r'fromId': fromId,
+        if (id != null) r'id': id,
+        if (timestamp != null) r'timestamp': timestamp,
+        if (to != null) r'to': to,
+        if (toId != null) r'toId': toId,
+      });
+
+  Input$TransferOrderBy._(this._$data);
+
+  factory Input$TransferOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('comment')) {
+      final l$comment = data['comment'];
+      result$data['comment'] = l$comment == null
+          ? null
+          : fromJson$Enum$OrderBy((l$comment as String));
+    }
+    if (data.containsKey('from')) {
+      final l$from = data['from'];
+      result$data['from'] = l$from == null
+          ? null
+          : Input$AccountOrderBy.fromJson((l$from as Map<String, dynamic>));
+    }
+    if (data.containsKey('fromId')) {
+      final l$fromId = data['fromId'];
+      result$data['fromId'] =
+          l$fromId == null ? null : fromJson$Enum$OrderBy((l$fromId as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('timestamp')) {
+      final l$timestamp = data['timestamp'];
+      result$data['timestamp'] = l$timestamp == null
+          ? null
+          : fromJson$Enum$OrderBy((l$timestamp as String));
+    }
+    if (data.containsKey('to')) {
+      final l$to = data['to'];
+      result$data['to'] = l$to == null
+          ? null
+          : Input$AccountOrderBy.fromJson((l$to as Map<String, dynamic>));
+    }
+    if (data.containsKey('toId')) {
+      final l$toId = data['toId'];
+      result$data['toId'] =
+          l$toId == null ? null : fromJson$Enum$OrderBy((l$toId as String));
+    }
+    return Input$TransferOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get comment => (_$data['comment'] as Enum$OrderBy?);
+
+  Input$AccountOrderBy? get from => (_$data['from'] as Input$AccountOrderBy?);
+
+  Enum$OrderBy? get fromId => (_$data['fromId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get timestamp => (_$data['timestamp'] as Enum$OrderBy?);
+
+  Input$AccountOrderBy? get to => (_$data['to'] as Input$AccountOrderBy?);
+
+  Enum$OrderBy? get toId => (_$data['toId'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('comment')) {
+      final l$comment = comment;
+      result$data['comment'] =
+          l$comment == null ? null : toJson$Enum$OrderBy(l$comment);
+    }
+    if (_$data.containsKey('from')) {
+      final l$from = from;
+      result$data['from'] = l$from?.toJson();
+    }
+    if (_$data.containsKey('fromId')) {
+      final l$fromId = fromId;
+      result$data['fromId'] =
+          l$fromId == null ? null : toJson$Enum$OrderBy(l$fromId);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('timestamp')) {
+      final l$timestamp = timestamp;
+      result$data['timestamp'] =
+          l$timestamp == null ? null : toJson$Enum$OrderBy(l$timestamp);
+    }
+    if (_$data.containsKey('to')) {
+      final l$to = to;
+      result$data['to'] = l$to?.toJson();
+    }
+    if (_$data.containsKey('toId')) {
+      final l$toId = toId;
+      result$data['toId'] = l$toId == null ? null : toJson$Enum$OrderBy(l$toId);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$TransferOrderBy<Input$TransferOrderBy> get copyWith =>
+      CopyWith$Input$TransferOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$TransferOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$comment = comment;
+    final lOther$comment = other.comment;
+    if (_$data.containsKey('comment') != other._$data.containsKey('comment')) {
+      return false;
+    }
+    if (l$comment != lOther$comment) {
+      return false;
+    }
+    final l$from = from;
+    final lOther$from = other.from;
+    if (_$data.containsKey('from') != other._$data.containsKey('from')) {
+      return false;
+    }
+    if (l$from != lOther$from) {
+      return false;
+    }
+    final l$fromId = fromId;
+    final lOther$fromId = other.fromId;
+    if (_$data.containsKey('fromId') != other._$data.containsKey('fromId')) {
+      return false;
+    }
+    if (l$fromId != lOther$fromId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (_$data.containsKey('timestamp') !=
+        other._$data.containsKey('timestamp')) {
+      return false;
+    }
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    final l$to = to;
+    final lOther$to = other.to;
+    if (_$data.containsKey('to') != other._$data.containsKey('to')) {
+      return false;
+    }
+    if (l$to != lOther$to) {
+      return false;
+    }
+    final l$toId = toId;
+    final lOther$toId = other.toId;
+    if (_$data.containsKey('toId') != other._$data.containsKey('toId')) {
+      return false;
+    }
+    if (l$toId != lOther$toId) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    final l$comment = comment;
+    final l$from = from;
+    final l$fromId = fromId;
+    final l$id = id;
+    final l$timestamp = timestamp;
+    final l$to = to;
+    final l$toId = toId;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('comment') ? l$comment : const {},
+      _$data.containsKey('from') ? l$from : const {},
+      _$data.containsKey('fromId') ? l$fromId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('timestamp') ? l$timestamp : const {},
+      _$data.containsKey('to') ? l$to : const {},
+      _$data.containsKey('toId') ? l$toId : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$TransferOrderBy<TRes> {
+  factory CopyWith$Input$TransferOrderBy(
+    Input$TransferOrderBy instance,
+    TRes Function(Input$TransferOrderBy) then,
+  ) = _CopyWithImpl$Input$TransferOrderBy;
+
+  factory CopyWith$Input$TransferOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$TransferOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? comment,
+    Input$AccountOrderBy? from,
+    Enum$OrderBy? fromId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? timestamp,
+    Input$AccountOrderBy? to,
+    Enum$OrderBy? toId,
+  });
+  CopyWith$Input$AccountOrderBy<TRes> get from;
+  CopyWith$Input$AccountOrderBy<TRes> get to;
+}
+
+class _CopyWithImpl$Input$TransferOrderBy<TRes>
+    implements CopyWith$Input$TransferOrderBy<TRes> {
+  _CopyWithImpl$Input$TransferOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$TransferOrderBy _instance;
+
+  final TRes Function(Input$TransferOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+    Object? comment = _undefined,
+    Object? from = _undefined,
+    Object? fromId = _undefined,
+    Object? id = _undefined,
+    Object? timestamp = _undefined,
+    Object? to = _undefined,
+    Object? toId = _undefined,
+  }) =>
+      _then(Input$TransferOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (comment != _undefined) 'comment': (comment as Enum$OrderBy?),
+        if (from != _undefined) 'from': (from as Input$AccountOrderBy?),
+        if (fromId != _undefined) 'fromId': (fromId as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (timestamp != _undefined) 'timestamp': (timestamp as Enum$OrderBy?),
+        if (to != _undefined) 'to': (to as Input$AccountOrderBy?),
+        if (toId != _undefined) 'toId': (toId as Enum$OrderBy?),
+      }));
+
+  CopyWith$Input$AccountOrderBy<TRes> get from {
+    final local$from = _instance.from;
+    return local$from == null
+        ? CopyWith$Input$AccountOrderBy.stub(_then(_instance))
+        : CopyWith$Input$AccountOrderBy(local$from, (e) => call(from: e));
+  }
+
+  CopyWith$Input$AccountOrderBy<TRes> get to {
+    final local$to = _instance.to;
+    return local$to == null
+        ? CopyWith$Input$AccountOrderBy.stub(_then(_instance))
+        : CopyWith$Input$AccountOrderBy(local$to, (e) => call(to: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$TransferOrderBy<TRes>
+    implements CopyWith$Input$TransferOrderBy<TRes> {
+  _CopyWithStubImpl$Input$TransferOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? comment,
+    Input$AccountOrderBy? from,
+    Enum$OrderBy? fromId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? timestamp,
+    Input$AccountOrderBy? to,
+    Enum$OrderBy? toId,
+  }) =>
+      _res;
+
+  CopyWith$Input$AccountOrderBy<TRes> get from =>
+      CopyWith$Input$AccountOrderBy.stub(_res);
+
+  CopyWith$Input$AccountOrderBy<TRes> get to =>
+      CopyWith$Input$AccountOrderBy.stub(_res);
+}
+
+class Input$TransferStddevOrderBy {
+  factory Input$TransferStddevOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$TransferStddevOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$TransferStddevOrderBy._(this._$data);
+
+  factory Input$TransferStddevOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$TransferStddevOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$TransferStddevOrderBy<Input$TransferStddevOrderBy>
+      get copyWith => CopyWith$Input$TransferStddevOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$TransferStddevOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$TransferStddevOrderBy<TRes> {
+  factory CopyWith$Input$TransferStddevOrderBy(
+    Input$TransferStddevOrderBy instance,
+    TRes Function(Input$TransferStddevOrderBy) then,
+  ) = _CopyWithImpl$Input$TransferStddevOrderBy;
+
+  factory CopyWith$Input$TransferStddevOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$TransferStddevOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$TransferStddevOrderBy<TRes>
+    implements CopyWith$Input$TransferStddevOrderBy<TRes> {
+  _CopyWithImpl$Input$TransferStddevOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$TransferStddevOrderBy _instance;
+
+  final TRes Function(Input$TransferStddevOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$TransferStddevOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$TransferStddevOrderBy<TRes>
+    implements CopyWith$Input$TransferStddevOrderBy<TRes> {
+  _CopyWithStubImpl$Input$TransferStddevOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$TransferStddevPopOrderBy {
+  factory Input$TransferStddevPopOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$TransferStddevPopOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$TransferStddevPopOrderBy._(this._$data);
+
+  factory Input$TransferStddevPopOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$TransferStddevPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$TransferStddevPopOrderBy<Input$TransferStddevPopOrderBy>
+      get copyWith => CopyWith$Input$TransferStddevPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$TransferStddevPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$TransferStddevPopOrderBy<TRes> {
+  factory CopyWith$Input$TransferStddevPopOrderBy(
+    Input$TransferStddevPopOrderBy instance,
+    TRes Function(Input$TransferStddevPopOrderBy) then,
+  ) = _CopyWithImpl$Input$TransferStddevPopOrderBy;
+
+  factory CopyWith$Input$TransferStddevPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$TransferStddevPopOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$TransferStddevPopOrderBy<TRes>
+    implements CopyWith$Input$TransferStddevPopOrderBy<TRes> {
+  _CopyWithImpl$Input$TransferStddevPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$TransferStddevPopOrderBy _instance;
+
+  final TRes Function(Input$TransferStddevPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$TransferStddevPopOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$TransferStddevPopOrderBy<TRes>
+    implements CopyWith$Input$TransferStddevPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$TransferStddevPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$TransferStddevSampOrderBy {
+  factory Input$TransferStddevSampOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$TransferStddevSampOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$TransferStddevSampOrderBy._(this._$data);
+
+  factory Input$TransferStddevSampOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$TransferStddevSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$TransferStddevSampOrderBy<Input$TransferStddevSampOrderBy>
+      get copyWith => CopyWith$Input$TransferStddevSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$TransferStddevSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$TransferStddevSampOrderBy<TRes> {
+  factory CopyWith$Input$TransferStddevSampOrderBy(
+    Input$TransferStddevSampOrderBy instance,
+    TRes Function(Input$TransferStddevSampOrderBy) then,
+  ) = _CopyWithImpl$Input$TransferStddevSampOrderBy;
+
+  factory CopyWith$Input$TransferStddevSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$TransferStddevSampOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$TransferStddevSampOrderBy<TRes>
+    implements CopyWith$Input$TransferStddevSampOrderBy<TRes> {
+  _CopyWithImpl$Input$TransferStddevSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$TransferStddevSampOrderBy _instance;
+
+  final TRes Function(Input$TransferStddevSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$TransferStddevSampOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$TransferStddevSampOrderBy<TRes>
+    implements CopyWith$Input$TransferStddevSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$TransferStddevSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$TransferSumOrderBy {
+  factory Input$TransferSumOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$TransferSumOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$TransferSumOrderBy._(this._$data);
+
+  factory Input$TransferSumOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$TransferSumOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$TransferSumOrderBy<Input$TransferSumOrderBy> get copyWith =>
+      CopyWith$Input$TransferSumOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$TransferSumOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$TransferSumOrderBy<TRes> {
+  factory CopyWith$Input$TransferSumOrderBy(
+    Input$TransferSumOrderBy instance,
+    TRes Function(Input$TransferSumOrderBy) then,
+  ) = _CopyWithImpl$Input$TransferSumOrderBy;
+
+  factory CopyWith$Input$TransferSumOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$TransferSumOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$TransferSumOrderBy<TRes>
+    implements CopyWith$Input$TransferSumOrderBy<TRes> {
+  _CopyWithImpl$Input$TransferSumOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$TransferSumOrderBy _instance;
+
+  final TRes Function(Input$TransferSumOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$TransferSumOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$TransferSumOrderBy<TRes>
+    implements CopyWith$Input$TransferSumOrderBy<TRes> {
+  _CopyWithStubImpl$Input$TransferSumOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$TransferVarianceOrderBy {
+  factory Input$TransferVarianceOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$TransferVarianceOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$TransferVarianceOrderBy._(this._$data);
+
+  factory Input$TransferVarianceOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$TransferVarianceOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$TransferVarianceOrderBy<Input$TransferVarianceOrderBy>
+      get copyWith => CopyWith$Input$TransferVarianceOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$TransferVarianceOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$TransferVarianceOrderBy<TRes> {
+  factory CopyWith$Input$TransferVarianceOrderBy(
+    Input$TransferVarianceOrderBy instance,
+    TRes Function(Input$TransferVarianceOrderBy) then,
+  ) = _CopyWithImpl$Input$TransferVarianceOrderBy;
+
+  factory CopyWith$Input$TransferVarianceOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$TransferVarianceOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$TransferVarianceOrderBy<TRes>
+    implements CopyWith$Input$TransferVarianceOrderBy<TRes> {
+  _CopyWithImpl$Input$TransferVarianceOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$TransferVarianceOrderBy _instance;
+
+  final TRes Function(Input$TransferVarianceOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$TransferVarianceOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$TransferVarianceOrderBy<TRes>
+    implements CopyWith$Input$TransferVarianceOrderBy<TRes> {
+  _CopyWithStubImpl$Input$TransferVarianceOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$TransferVarPopOrderBy {
+  factory Input$TransferVarPopOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$TransferVarPopOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$TransferVarPopOrderBy._(this._$data);
+
+  factory Input$TransferVarPopOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$TransferVarPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$TransferVarPopOrderBy<Input$TransferVarPopOrderBy>
+      get copyWith => CopyWith$Input$TransferVarPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$TransferVarPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$TransferVarPopOrderBy<TRes> {
+  factory CopyWith$Input$TransferVarPopOrderBy(
+    Input$TransferVarPopOrderBy instance,
+    TRes Function(Input$TransferVarPopOrderBy) then,
+  ) = _CopyWithImpl$Input$TransferVarPopOrderBy;
+
+  factory CopyWith$Input$TransferVarPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$TransferVarPopOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$TransferVarPopOrderBy<TRes>
+    implements CopyWith$Input$TransferVarPopOrderBy<TRes> {
+  _CopyWithImpl$Input$TransferVarPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$TransferVarPopOrderBy _instance;
+
+  final TRes Function(Input$TransferVarPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$TransferVarPopOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$TransferVarPopOrderBy<TRes>
+    implements CopyWith$Input$TransferVarPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$TransferVarPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$TransferVarSampOrderBy {
+  factory Input$TransferVarSampOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$TransferVarSampOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$TransferVarSampOrderBy._(this._$data);
+
+  factory Input$TransferVarSampOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$TransferVarSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$TransferVarSampOrderBy<Input$TransferVarSampOrderBy>
+      get copyWith => CopyWith$Input$TransferVarSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$TransferVarSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$TransferVarSampOrderBy<TRes> {
+  factory CopyWith$Input$TransferVarSampOrderBy(
+    Input$TransferVarSampOrderBy instance,
+    TRes Function(Input$TransferVarSampOrderBy) then,
+  ) = _CopyWithImpl$Input$TransferVarSampOrderBy;
+
+  factory CopyWith$Input$TransferVarSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$TransferVarSampOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$TransferVarSampOrderBy<TRes>
+    implements CopyWith$Input$TransferVarSampOrderBy<TRes> {
+  _CopyWithImpl$Input$TransferVarSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$TransferVarSampOrderBy _instance;
+
+  final TRes Function(Input$TransferVarSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$TransferVarSampOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$TransferVarSampOrderBy<TRes>
+    implements CopyWith$Input$TransferVarSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$TransferVarSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$UdHistoryAggregateOrderBy {
+  factory Input$UdHistoryAggregateOrderBy({
+    Input$UdHistoryAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$UdHistoryMaxOrderBy? max,
+    Input$UdHistoryMinOrderBy? min,
+    Input$UdHistoryStddevOrderBy? stddev,
+    Input$UdHistoryStddevPopOrderBy? stddevPop,
+    Input$UdHistoryStddevSampOrderBy? stddevSamp,
+    Input$UdHistorySumOrderBy? sum,
+    Input$UdHistoryVarPopOrderBy? varPop,
+    Input$UdHistoryVarSampOrderBy? varSamp,
+    Input$UdHistoryVarianceOrderBy? variance,
+  }) =>
+      Input$UdHistoryAggregateOrderBy._({
+        if (avg != null) r'avg': avg,
+        if (count != null) r'count': count,
+        if (max != null) r'max': max,
+        if (min != null) r'min': min,
+        if (stddev != null) r'stddev': stddev,
+        if (stddevPop != null) r'stddevPop': stddevPop,
+        if (stddevSamp != null) r'stddevSamp': stddevSamp,
+        if (sum != null) r'sum': sum,
+        if (varPop != null) r'varPop': varPop,
+        if (varSamp != null) r'varSamp': varSamp,
+        if (variance != null) r'variance': variance,
+      });
+
+  Input$UdHistoryAggregateOrderBy._(this._$data);
+
+  factory Input$UdHistoryAggregateOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('avg')) {
+      final l$avg = data['avg'];
+      result$data['avg'] = l$avg == null
+          ? null
+          : Input$UdHistoryAvgOrderBy.fromJson((l$avg as Map<String, dynamic>));
+    }
+    if (data.containsKey('count')) {
+      final l$count = data['count'];
+      result$data['count'] =
+          l$count == null ? null : fromJson$Enum$OrderBy((l$count as String));
+    }
+    if (data.containsKey('max')) {
+      final l$max = data['max'];
+      result$data['max'] = l$max == null
+          ? null
+          : Input$UdHistoryMaxOrderBy.fromJson((l$max as Map<String, dynamic>));
+    }
+    if (data.containsKey('min')) {
+      final l$min = data['min'];
+      result$data['min'] = l$min == null
+          ? null
+          : Input$UdHistoryMinOrderBy.fromJson((l$min as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddev')) {
+      final l$stddev = data['stddev'];
+      result$data['stddev'] = l$stddev == null
+          ? null
+          : Input$UdHistoryStddevOrderBy.fromJson(
+              (l$stddev as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevPop')) {
+      final l$stddevPop = data['stddevPop'];
+      result$data['stddevPop'] = l$stddevPop == null
+          ? null
+          : Input$UdHistoryStddevPopOrderBy.fromJson(
+              (l$stddevPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('stddevSamp')) {
+      final l$stddevSamp = data['stddevSamp'];
+      result$data['stddevSamp'] = l$stddevSamp == null
+          ? null
+          : Input$UdHistoryStddevSampOrderBy.fromJson(
+              (l$stddevSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('sum')) {
+      final l$sum = data['sum'];
+      result$data['sum'] = l$sum == null
+          ? null
+          : Input$UdHistorySumOrderBy.fromJson((l$sum as Map<String, dynamic>));
+    }
+    if (data.containsKey('varPop')) {
+      final l$varPop = data['varPop'];
+      result$data['varPop'] = l$varPop == null
+          ? null
+          : Input$UdHistoryVarPopOrderBy.fromJson(
+              (l$varPop as Map<String, dynamic>));
+    }
+    if (data.containsKey('varSamp')) {
+      final l$varSamp = data['varSamp'];
+      result$data['varSamp'] = l$varSamp == null
+          ? null
+          : Input$UdHistoryVarSampOrderBy.fromJson(
+              (l$varSamp as Map<String, dynamic>));
+    }
+    if (data.containsKey('variance')) {
+      final l$variance = data['variance'];
+      result$data['variance'] = l$variance == null
+          ? null
+          : Input$UdHistoryVarianceOrderBy.fromJson(
+              (l$variance as Map<String, dynamic>));
+    }
+    return Input$UdHistoryAggregateOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Input$UdHistoryAvgOrderBy? get avg =>
+      (_$data['avg'] as Input$UdHistoryAvgOrderBy?);
+
+  Enum$OrderBy? get count => (_$data['count'] as Enum$OrderBy?);
+
+  Input$UdHistoryMaxOrderBy? get max =>
+      (_$data['max'] as Input$UdHistoryMaxOrderBy?);
+
+  Input$UdHistoryMinOrderBy? get min =>
+      (_$data['min'] as Input$UdHistoryMinOrderBy?);
+
+  Input$UdHistoryStddevOrderBy? get stddev =>
+      (_$data['stddev'] as Input$UdHistoryStddevOrderBy?);
+
+  Input$UdHistoryStddevPopOrderBy? get stddevPop =>
+      (_$data['stddevPop'] as Input$UdHistoryStddevPopOrderBy?);
+
+  Input$UdHistoryStddevSampOrderBy? get stddevSamp =>
+      (_$data['stddevSamp'] as Input$UdHistoryStddevSampOrderBy?);
+
+  Input$UdHistorySumOrderBy? get sum =>
+      (_$data['sum'] as Input$UdHistorySumOrderBy?);
+
+  Input$UdHistoryVarPopOrderBy? get varPop =>
+      (_$data['varPop'] as Input$UdHistoryVarPopOrderBy?);
+
+  Input$UdHistoryVarSampOrderBy? get varSamp =>
+      (_$data['varSamp'] as Input$UdHistoryVarSampOrderBy?);
+
+  Input$UdHistoryVarianceOrderBy? get variance =>
+      (_$data['variance'] as Input$UdHistoryVarianceOrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('avg')) {
+      final l$avg = avg;
+      result$data['avg'] = l$avg?.toJson();
+    }
+    if (_$data.containsKey('count')) {
+      final l$count = count;
+      result$data['count'] =
+          l$count == null ? null : toJson$Enum$OrderBy(l$count);
+    }
+    if (_$data.containsKey('max')) {
+      final l$max = max;
+      result$data['max'] = l$max?.toJson();
+    }
+    if (_$data.containsKey('min')) {
+      final l$min = min;
+      result$data['min'] = l$min?.toJson();
+    }
+    if (_$data.containsKey('stddev')) {
+      final l$stddev = stddev;
+      result$data['stddev'] = l$stddev?.toJson();
+    }
+    if (_$data.containsKey('stddevPop')) {
+      final l$stddevPop = stddevPop;
+      result$data['stddevPop'] = l$stddevPop?.toJson();
+    }
+    if (_$data.containsKey('stddevSamp')) {
+      final l$stddevSamp = stddevSamp;
+      result$data['stddevSamp'] = l$stddevSamp?.toJson();
+    }
+    if (_$data.containsKey('sum')) {
+      final l$sum = sum;
+      result$data['sum'] = l$sum?.toJson();
+    }
+    if (_$data.containsKey('varPop')) {
+      final l$varPop = varPop;
+      result$data['varPop'] = l$varPop?.toJson();
+    }
+    if (_$data.containsKey('varSamp')) {
+      final l$varSamp = varSamp;
+      result$data['varSamp'] = l$varSamp?.toJson();
+    }
+    if (_$data.containsKey('variance')) {
+      final l$variance = variance;
+      result$data['variance'] = l$variance?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UdHistoryAggregateOrderBy<Input$UdHistoryAggregateOrderBy>
+      get copyWith => CopyWith$Input$UdHistoryAggregateOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UdHistoryAggregateOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$avg = avg;
+    final lOther$avg = other.avg;
+    if (_$data.containsKey('avg') != other._$data.containsKey('avg')) {
+      return false;
+    }
+    if (l$avg != lOther$avg) {
+      return false;
+    }
+    final l$count = count;
+    final lOther$count = other.count;
+    if (_$data.containsKey('count') != other._$data.containsKey('count')) {
+      return false;
+    }
+    if (l$count != lOther$count) {
+      return false;
+    }
+    final l$max = max;
+    final lOther$max = other.max;
+    if (_$data.containsKey('max') != other._$data.containsKey('max')) {
+      return false;
+    }
+    if (l$max != lOther$max) {
+      return false;
+    }
+    final l$min = min;
+    final lOther$min = other.min;
+    if (_$data.containsKey('min') != other._$data.containsKey('min')) {
+      return false;
+    }
+    if (l$min != lOther$min) {
+      return false;
+    }
+    final l$stddev = stddev;
+    final lOther$stddev = other.stddev;
+    if (_$data.containsKey('stddev') != other._$data.containsKey('stddev')) {
+      return false;
+    }
+    if (l$stddev != lOther$stddev) {
+      return false;
+    }
+    final l$stddevPop = stddevPop;
+    final lOther$stddevPop = other.stddevPop;
+    if (_$data.containsKey('stddevPop') !=
+        other._$data.containsKey('stddevPop')) {
+      return false;
+    }
+    if (l$stddevPop != lOther$stddevPop) {
+      return false;
+    }
+    final l$stddevSamp = stddevSamp;
+    final lOther$stddevSamp = other.stddevSamp;
+    if (_$data.containsKey('stddevSamp') !=
+        other._$data.containsKey('stddevSamp')) {
+      return false;
+    }
+    if (l$stddevSamp != lOther$stddevSamp) {
+      return false;
+    }
+    final l$sum = sum;
+    final lOther$sum = other.sum;
+    if (_$data.containsKey('sum') != other._$data.containsKey('sum')) {
+      return false;
+    }
+    if (l$sum != lOther$sum) {
+      return false;
+    }
+    final l$varPop = varPop;
+    final lOther$varPop = other.varPop;
+    if (_$data.containsKey('varPop') != other._$data.containsKey('varPop')) {
+      return false;
+    }
+    if (l$varPop != lOther$varPop) {
+      return false;
+    }
+    final l$varSamp = varSamp;
+    final lOther$varSamp = other.varSamp;
+    if (_$data.containsKey('varSamp') != other._$data.containsKey('varSamp')) {
+      return false;
+    }
+    if (l$varSamp != lOther$varSamp) {
+      return false;
+    }
+    final l$variance = variance;
+    final lOther$variance = other.variance;
+    if (_$data.containsKey('variance') !=
+        other._$data.containsKey('variance')) {
+      return false;
+    }
+    if (l$variance != lOther$variance) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$avg = avg;
+    final l$count = count;
+    final l$max = max;
+    final l$min = min;
+    final l$stddev = stddev;
+    final l$stddevPop = stddevPop;
+    final l$stddevSamp = stddevSamp;
+    final l$sum = sum;
+    final l$varPop = varPop;
+    final l$varSamp = varSamp;
+    final l$variance = variance;
+    return Object.hashAll([
+      _$data.containsKey('avg') ? l$avg : const {},
+      _$data.containsKey('count') ? l$count : const {},
+      _$data.containsKey('max') ? l$max : const {},
+      _$data.containsKey('min') ? l$min : const {},
+      _$data.containsKey('stddev') ? l$stddev : const {},
+      _$data.containsKey('stddevPop') ? l$stddevPop : const {},
+      _$data.containsKey('stddevSamp') ? l$stddevSamp : const {},
+      _$data.containsKey('sum') ? l$sum : const {},
+      _$data.containsKey('varPop') ? l$varPop : const {},
+      _$data.containsKey('varSamp') ? l$varSamp : const {},
+      _$data.containsKey('variance') ? l$variance : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UdHistoryAggregateOrderBy<TRes> {
+  factory CopyWith$Input$UdHistoryAggregateOrderBy(
+    Input$UdHistoryAggregateOrderBy instance,
+    TRes Function(Input$UdHistoryAggregateOrderBy) then,
+  ) = _CopyWithImpl$Input$UdHistoryAggregateOrderBy;
+
+  factory CopyWith$Input$UdHistoryAggregateOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$UdHistoryAggregateOrderBy;
+
+  TRes call({
+    Input$UdHistoryAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$UdHistoryMaxOrderBy? max,
+    Input$UdHistoryMinOrderBy? min,
+    Input$UdHistoryStddevOrderBy? stddev,
+    Input$UdHistoryStddevPopOrderBy? stddevPop,
+    Input$UdHistoryStddevSampOrderBy? stddevSamp,
+    Input$UdHistorySumOrderBy? sum,
+    Input$UdHistoryVarPopOrderBy? varPop,
+    Input$UdHistoryVarSampOrderBy? varSamp,
+    Input$UdHistoryVarianceOrderBy? variance,
+  });
+  CopyWith$Input$UdHistoryAvgOrderBy<TRes> get avg;
+  CopyWith$Input$UdHistoryMaxOrderBy<TRes> get max;
+  CopyWith$Input$UdHistoryMinOrderBy<TRes> get min;
+  CopyWith$Input$UdHistoryStddevOrderBy<TRes> get stddev;
+  CopyWith$Input$UdHistoryStddevPopOrderBy<TRes> get stddevPop;
+  CopyWith$Input$UdHistoryStddevSampOrderBy<TRes> get stddevSamp;
+  CopyWith$Input$UdHistorySumOrderBy<TRes> get sum;
+  CopyWith$Input$UdHistoryVarPopOrderBy<TRes> get varPop;
+  CopyWith$Input$UdHistoryVarSampOrderBy<TRes> get varSamp;
+  CopyWith$Input$UdHistoryVarianceOrderBy<TRes> get variance;
+}
+
+class _CopyWithImpl$Input$UdHistoryAggregateOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryAggregateOrderBy<TRes> {
+  _CopyWithImpl$Input$UdHistoryAggregateOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UdHistoryAggregateOrderBy _instance;
+
+  final TRes Function(Input$UdHistoryAggregateOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? avg = _undefined,
+    Object? count = _undefined,
+    Object? max = _undefined,
+    Object? min = _undefined,
+    Object? stddev = _undefined,
+    Object? stddevPop = _undefined,
+    Object? stddevSamp = _undefined,
+    Object? sum = _undefined,
+    Object? varPop = _undefined,
+    Object? varSamp = _undefined,
+    Object? variance = _undefined,
+  }) =>
+      _then(Input$UdHistoryAggregateOrderBy._({
+        ..._instance._$data,
+        if (avg != _undefined) 'avg': (avg as Input$UdHistoryAvgOrderBy?),
+        if (count != _undefined) 'count': (count as Enum$OrderBy?),
+        if (max != _undefined) 'max': (max as Input$UdHistoryMaxOrderBy?),
+        if (min != _undefined) 'min': (min as Input$UdHistoryMinOrderBy?),
+        if (stddev != _undefined)
+          'stddev': (stddev as Input$UdHistoryStddevOrderBy?),
+        if (stddevPop != _undefined)
+          'stddevPop': (stddevPop as Input$UdHistoryStddevPopOrderBy?),
+        if (stddevSamp != _undefined)
+          'stddevSamp': (stddevSamp as Input$UdHistoryStddevSampOrderBy?),
+        if (sum != _undefined) 'sum': (sum as Input$UdHistorySumOrderBy?),
+        if (varPop != _undefined)
+          'varPop': (varPop as Input$UdHistoryVarPopOrderBy?),
+        if (varSamp != _undefined)
+          'varSamp': (varSamp as Input$UdHistoryVarSampOrderBy?),
+        if (variance != _undefined)
+          'variance': (variance as Input$UdHistoryVarianceOrderBy?),
+      }));
+
+  CopyWith$Input$UdHistoryAvgOrderBy<TRes> get avg {
+    final local$avg = _instance.avg;
+    return local$avg == null
+        ? CopyWith$Input$UdHistoryAvgOrderBy.stub(_then(_instance))
+        : CopyWith$Input$UdHistoryAvgOrderBy(local$avg, (e) => call(avg: e));
+  }
+
+  CopyWith$Input$UdHistoryMaxOrderBy<TRes> get max {
+    final local$max = _instance.max;
+    return local$max == null
+        ? CopyWith$Input$UdHistoryMaxOrderBy.stub(_then(_instance))
+        : CopyWith$Input$UdHistoryMaxOrderBy(local$max, (e) => call(max: e));
+  }
+
+  CopyWith$Input$UdHistoryMinOrderBy<TRes> get min {
+    final local$min = _instance.min;
+    return local$min == null
+        ? CopyWith$Input$UdHistoryMinOrderBy.stub(_then(_instance))
+        : CopyWith$Input$UdHistoryMinOrderBy(local$min, (e) => call(min: e));
+  }
+
+  CopyWith$Input$UdHistoryStddevOrderBy<TRes> get stddev {
+    final local$stddev = _instance.stddev;
+    return local$stddev == null
+        ? CopyWith$Input$UdHistoryStddevOrderBy.stub(_then(_instance))
+        : CopyWith$Input$UdHistoryStddevOrderBy(
+            local$stddev, (e) => call(stddev: e));
+  }
+
+  CopyWith$Input$UdHistoryStddevPopOrderBy<TRes> get stddevPop {
+    final local$stddevPop = _instance.stddevPop;
+    return local$stddevPop == null
+        ? CopyWith$Input$UdHistoryStddevPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$UdHistoryStddevPopOrderBy(
+            local$stddevPop, (e) => call(stddevPop: e));
+  }
+
+  CopyWith$Input$UdHistoryStddevSampOrderBy<TRes> get stddevSamp {
+    final local$stddevSamp = _instance.stddevSamp;
+    return local$stddevSamp == null
+        ? CopyWith$Input$UdHistoryStddevSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$UdHistoryStddevSampOrderBy(
+            local$stddevSamp, (e) => call(stddevSamp: e));
+  }
+
+  CopyWith$Input$UdHistorySumOrderBy<TRes> get sum {
+    final local$sum = _instance.sum;
+    return local$sum == null
+        ? CopyWith$Input$UdHistorySumOrderBy.stub(_then(_instance))
+        : CopyWith$Input$UdHistorySumOrderBy(local$sum, (e) => call(sum: e));
+  }
+
+  CopyWith$Input$UdHistoryVarPopOrderBy<TRes> get varPop {
+    final local$varPop = _instance.varPop;
+    return local$varPop == null
+        ? CopyWith$Input$UdHistoryVarPopOrderBy.stub(_then(_instance))
+        : CopyWith$Input$UdHistoryVarPopOrderBy(
+            local$varPop, (e) => call(varPop: e));
+  }
+
+  CopyWith$Input$UdHistoryVarSampOrderBy<TRes> get varSamp {
+    final local$varSamp = _instance.varSamp;
+    return local$varSamp == null
+        ? CopyWith$Input$UdHistoryVarSampOrderBy.stub(_then(_instance))
+        : CopyWith$Input$UdHistoryVarSampOrderBy(
+            local$varSamp, (e) => call(varSamp: e));
+  }
+
+  CopyWith$Input$UdHistoryVarianceOrderBy<TRes> get variance {
+    final local$variance = _instance.variance;
+    return local$variance == null
+        ? CopyWith$Input$UdHistoryVarianceOrderBy.stub(_then(_instance))
+        : CopyWith$Input$UdHistoryVarianceOrderBy(
+            local$variance, (e) => call(variance: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$UdHistoryAggregateOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryAggregateOrderBy<TRes> {
+  _CopyWithStubImpl$Input$UdHistoryAggregateOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Input$UdHistoryAvgOrderBy? avg,
+    Enum$OrderBy? count,
+    Input$UdHistoryMaxOrderBy? max,
+    Input$UdHistoryMinOrderBy? min,
+    Input$UdHistoryStddevOrderBy? stddev,
+    Input$UdHistoryStddevPopOrderBy? stddevPop,
+    Input$UdHistoryStddevSampOrderBy? stddevSamp,
+    Input$UdHistorySumOrderBy? sum,
+    Input$UdHistoryVarPopOrderBy? varPop,
+    Input$UdHistoryVarSampOrderBy? varSamp,
+    Input$UdHistoryVarianceOrderBy? variance,
+  }) =>
+      _res;
+
+  CopyWith$Input$UdHistoryAvgOrderBy<TRes> get avg =>
+      CopyWith$Input$UdHistoryAvgOrderBy.stub(_res);
+
+  CopyWith$Input$UdHistoryMaxOrderBy<TRes> get max =>
+      CopyWith$Input$UdHistoryMaxOrderBy.stub(_res);
+
+  CopyWith$Input$UdHistoryMinOrderBy<TRes> get min =>
+      CopyWith$Input$UdHistoryMinOrderBy.stub(_res);
+
+  CopyWith$Input$UdHistoryStddevOrderBy<TRes> get stddev =>
+      CopyWith$Input$UdHistoryStddevOrderBy.stub(_res);
+
+  CopyWith$Input$UdHistoryStddevPopOrderBy<TRes> get stddevPop =>
+      CopyWith$Input$UdHistoryStddevPopOrderBy.stub(_res);
+
+  CopyWith$Input$UdHistoryStddevSampOrderBy<TRes> get stddevSamp =>
+      CopyWith$Input$UdHistoryStddevSampOrderBy.stub(_res);
+
+  CopyWith$Input$UdHistorySumOrderBy<TRes> get sum =>
+      CopyWith$Input$UdHistorySumOrderBy.stub(_res);
+
+  CopyWith$Input$UdHistoryVarPopOrderBy<TRes> get varPop =>
+      CopyWith$Input$UdHistoryVarPopOrderBy.stub(_res);
+
+  CopyWith$Input$UdHistoryVarSampOrderBy<TRes> get varSamp =>
+      CopyWith$Input$UdHistoryVarSampOrderBy.stub(_res);
+
+  CopyWith$Input$UdHistoryVarianceOrderBy<TRes> get variance =>
+      CopyWith$Input$UdHistoryVarianceOrderBy.stub(_res);
+}
+
+class Input$UdHistoryAvgOrderBy {
+  factory Input$UdHistoryAvgOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$UdHistoryAvgOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$UdHistoryAvgOrderBy._(this._$data);
+
+  factory Input$UdHistoryAvgOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$UdHistoryAvgOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UdHistoryAvgOrderBy<Input$UdHistoryAvgOrderBy> get copyWith =>
+      CopyWith$Input$UdHistoryAvgOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UdHistoryAvgOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UdHistoryAvgOrderBy<TRes> {
+  factory CopyWith$Input$UdHistoryAvgOrderBy(
+    Input$UdHistoryAvgOrderBy instance,
+    TRes Function(Input$UdHistoryAvgOrderBy) then,
+  ) = _CopyWithImpl$Input$UdHistoryAvgOrderBy;
+
+  factory CopyWith$Input$UdHistoryAvgOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$UdHistoryAvgOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$UdHistoryAvgOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryAvgOrderBy<TRes> {
+  _CopyWithImpl$Input$UdHistoryAvgOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UdHistoryAvgOrderBy _instance;
+
+  final TRes Function(Input$UdHistoryAvgOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$UdHistoryAvgOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$UdHistoryAvgOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryAvgOrderBy<TRes> {
+  _CopyWithStubImpl$Input$UdHistoryAvgOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$UdHistoryBoolExp {
+  factory Input$UdHistoryBoolExp({
+    List<Input$UdHistoryBoolExp>? $_and,
+    Input$UdHistoryBoolExp? $_not,
+    List<Input$UdHistoryBoolExp>? $_or,
+    Input$IntComparisonExp? amount,
+    Input$IntComparisonExp? blockNumber,
+    Input$StringComparisonExp? id,
+    Input$IdentityBoolExp? identity,
+    Input$StringComparisonExp? identityId,
+    Input$TimestamptzComparisonExp? timestamp,
+  }) =>
+      Input$UdHistoryBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (id != null) r'id': id,
+        if (identity != null) r'identity': identity,
+        if (identityId != null) r'identityId': identityId,
+        if (timestamp != null) r'timestamp': timestamp,
+      });
+
+  Input$UdHistoryBoolExp._(this._$data);
+
+  factory Input$UdHistoryBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map((e) =>
+              Input$UdHistoryBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$UdHistoryBoolExp.fromJson((l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map((e) =>
+              Input$UdHistoryBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] = l$amount == null
+          ? null
+          : Input$IntComparisonExp.fromJson((l$amount as Map<String, dynamic>));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$blockNumber as Map<String, dynamic>));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    if (data.containsKey('identity')) {
+      final l$identity = data['identity'];
+      result$data['identity'] = l$identity == null
+          ? null
+          : Input$IdentityBoolExp.fromJson(
+              (l$identity as Map<String, dynamic>));
+    }
+    if (data.containsKey('identityId')) {
+      final l$identityId = data['identityId'];
+      result$data['identityId'] = l$identityId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$identityId as Map<String, dynamic>));
+    }
+    if (data.containsKey('timestamp')) {
+      final l$timestamp = data['timestamp'];
+      result$data['timestamp'] = l$timestamp == null
+          ? null
+          : Input$TimestamptzComparisonExp.fromJson(
+              (l$timestamp as Map<String, dynamic>));
+    }
+    return Input$UdHistoryBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$UdHistoryBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$UdHistoryBoolExp>?);
+
+  Input$UdHistoryBoolExp? get $_not =>
+      (_$data['_not'] as Input$UdHistoryBoolExp?);
+
+  List<Input$UdHistoryBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$UdHistoryBoolExp>?);
+
+  Input$IntComparisonExp? get amount =>
+      (_$data['amount'] as Input$IntComparisonExp?);
+
+  Input$IntComparisonExp? get blockNumber =>
+      (_$data['blockNumber'] as Input$IntComparisonExp?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Input$IdentityBoolExp? get identity =>
+      (_$data['identity'] as Input$IdentityBoolExp?);
+
+  Input$StringComparisonExp? get identityId =>
+      (_$data['identityId'] as Input$StringComparisonExp?);
+
+  Input$TimestamptzComparisonExp? get timestamp =>
+      (_$data['timestamp'] as Input$TimestamptzComparisonExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] = l$amount?.toJson();
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] = l$blockNumber?.toJson();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    if (_$data.containsKey('identity')) {
+      final l$identity = identity;
+      result$data['identity'] = l$identity?.toJson();
+    }
+    if (_$data.containsKey('identityId')) {
+      final l$identityId = identityId;
+      result$data['identityId'] = l$identityId?.toJson();
+    }
+    if (_$data.containsKey('timestamp')) {
+      final l$timestamp = timestamp;
+      result$data['timestamp'] = l$timestamp?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UdHistoryBoolExp<Input$UdHistoryBoolExp> get copyWith =>
+      CopyWith$Input$UdHistoryBoolExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UdHistoryBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$identity = identity;
+    final lOther$identity = other.identity;
+    if (_$data.containsKey('identity') !=
+        other._$data.containsKey('identity')) {
+      return false;
+    }
+    if (l$identity != lOther$identity) {
+      return false;
+    }
+    final l$identityId = identityId;
+    final lOther$identityId = other.identityId;
+    if (_$data.containsKey('identityId') !=
+        other._$data.containsKey('identityId')) {
+      return false;
+    }
+    if (l$identityId != lOther$identityId) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (_$data.containsKey('timestamp') !=
+        other._$data.containsKey('timestamp')) {
+      return false;
+    }
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    final l$id = id;
+    final l$identity = identity;
+    final l$identityId = identityId;
+    final l$timestamp = timestamp;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('identity') ? l$identity : const {},
+      _$data.containsKey('identityId') ? l$identityId : const {},
+      _$data.containsKey('timestamp') ? l$timestamp : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UdHistoryBoolExp<TRes> {
+  factory CopyWith$Input$UdHistoryBoolExp(
+    Input$UdHistoryBoolExp instance,
+    TRes Function(Input$UdHistoryBoolExp) then,
+  ) = _CopyWithImpl$Input$UdHistoryBoolExp;
+
+  factory CopyWith$Input$UdHistoryBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$UdHistoryBoolExp;
+
+  TRes call({
+    List<Input$UdHistoryBoolExp>? $_and,
+    Input$UdHistoryBoolExp? $_not,
+    List<Input$UdHistoryBoolExp>? $_or,
+    Input$IntComparisonExp? amount,
+    Input$IntComparisonExp? blockNumber,
+    Input$StringComparisonExp? id,
+    Input$IdentityBoolExp? identity,
+    Input$StringComparisonExp? identityId,
+    Input$TimestamptzComparisonExp? timestamp,
+  });
+  TRes $_and(
+      Iterable<Input$UdHistoryBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$UdHistoryBoolExp<Input$UdHistoryBoolExp>>?)
+          _fn);
+  CopyWith$Input$UdHistoryBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$UdHistoryBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$UdHistoryBoolExp<Input$UdHistoryBoolExp>>?)
+          _fn);
+  CopyWith$Input$IntComparisonExp<TRes> get amount;
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber;
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+  CopyWith$Input$IdentityBoolExp<TRes> get identity;
+  CopyWith$Input$StringComparisonExp<TRes> get identityId;
+  CopyWith$Input$TimestamptzComparisonExp<TRes> get timestamp;
+}
+
+class _CopyWithImpl$Input$UdHistoryBoolExp<TRes>
+    implements CopyWith$Input$UdHistoryBoolExp<TRes> {
+  _CopyWithImpl$Input$UdHistoryBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UdHistoryBoolExp _instance;
+
+  final TRes Function(Input$UdHistoryBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+    Object? id = _undefined,
+    Object? identity = _undefined,
+    Object? identityId = _undefined,
+    Object? timestamp = _undefined,
+  }) =>
+      _then(Input$UdHistoryBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined)
+          '_and': ($_and as List<Input$UdHistoryBoolExp>?),
+        if ($_not != _undefined) '_not': ($_not as Input$UdHistoryBoolExp?),
+        if ($_or != _undefined) '_or': ($_or as List<Input$UdHistoryBoolExp>?),
+        if (amount != _undefined) 'amount': (amount as Input$IntComparisonExp?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Input$IntComparisonExp?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+        if (identity != _undefined)
+          'identity': (identity as Input$IdentityBoolExp?),
+        if (identityId != _undefined)
+          'identityId': (identityId as Input$StringComparisonExp?),
+        if (timestamp != _undefined)
+          'timestamp': (timestamp as Input$TimestamptzComparisonExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$UdHistoryBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$UdHistoryBoolExp<Input$UdHistoryBoolExp>>?)
+              _fn) =>
+      call(
+          $_and:
+              _fn(_instance.$_and?.map((e) => CopyWith$Input$UdHistoryBoolExp(
+                    e,
+                    (i) => i,
+                  )))?.toList());
+
+  CopyWith$Input$UdHistoryBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$UdHistoryBoolExp.stub(_then(_instance))
+        : CopyWith$Input$UdHistoryBoolExp(local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$UdHistoryBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$UdHistoryBoolExp<Input$UdHistoryBoolExp>>?)
+              _fn) =>
+      call(
+          $_or: _fn(_instance.$_or?.map((e) => CopyWith$Input$UdHistoryBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$IntComparisonExp<TRes> get amount {
+    final local$amount = _instance.amount;
+    return local$amount == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(local$amount, (e) => call(amount: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber {
+    final local$blockNumber = _instance.blockNumber;
+    return local$blockNumber == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$blockNumber, (e) => call(blockNumber: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+
+  CopyWith$Input$IdentityBoolExp<TRes> get identity {
+    final local$identity = _instance.identity;
+    return local$identity == null
+        ? CopyWith$Input$IdentityBoolExp.stub(_then(_instance))
+        : CopyWith$Input$IdentityBoolExp(
+            local$identity, (e) => call(identity: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get identityId {
+    final local$identityId = _instance.identityId;
+    return local$identityId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$identityId, (e) => call(identityId: e));
+  }
+
+  CopyWith$Input$TimestamptzComparisonExp<TRes> get timestamp {
+    final local$timestamp = _instance.timestamp;
+    return local$timestamp == null
+        ? CopyWith$Input$TimestamptzComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$TimestamptzComparisonExp(
+            local$timestamp, (e) => call(timestamp: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$UdHistoryBoolExp<TRes>
+    implements CopyWith$Input$UdHistoryBoolExp<TRes> {
+  _CopyWithStubImpl$Input$UdHistoryBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$UdHistoryBoolExp>? $_and,
+    Input$UdHistoryBoolExp? $_not,
+    List<Input$UdHistoryBoolExp>? $_or,
+    Input$IntComparisonExp? amount,
+    Input$IntComparisonExp? blockNumber,
+    Input$StringComparisonExp? id,
+    Input$IdentityBoolExp? identity,
+    Input$StringComparisonExp? identityId,
+    Input$TimestamptzComparisonExp? timestamp,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$UdHistoryBoolExp<TRes> get $_not =>
+      CopyWith$Input$UdHistoryBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$IntComparisonExp<TRes> get amount =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$IdentityBoolExp<TRes> get identity =>
+      CopyWith$Input$IdentityBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get identityId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$TimestamptzComparisonExp<TRes> get timestamp =>
+      CopyWith$Input$TimestamptzComparisonExp.stub(_res);
+}
+
+class Input$UdHistoryMaxOrderBy {
+  factory Input$UdHistoryMaxOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+    Enum$OrderBy? timestamp,
+  }) =>
+      Input$UdHistoryMaxOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (id != null) r'id': id,
+        if (identityId != null) r'identityId': identityId,
+        if (timestamp != null) r'timestamp': timestamp,
+      });
+
+  Input$UdHistoryMaxOrderBy._(this._$data);
+
+  factory Input$UdHistoryMaxOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('identityId')) {
+      final l$identityId = data['identityId'];
+      result$data['identityId'] = l$identityId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$identityId as String));
+    }
+    if (data.containsKey('timestamp')) {
+      final l$timestamp = data['timestamp'];
+      result$data['timestamp'] = l$timestamp == null
+          ? null
+          : fromJson$Enum$OrderBy((l$timestamp as String));
+    }
+    return Input$UdHistoryMaxOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get identityId => (_$data['identityId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get timestamp => (_$data['timestamp'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('identityId')) {
+      final l$identityId = identityId;
+      result$data['identityId'] =
+          l$identityId == null ? null : toJson$Enum$OrderBy(l$identityId);
+    }
+    if (_$data.containsKey('timestamp')) {
+      final l$timestamp = timestamp;
+      result$data['timestamp'] =
+          l$timestamp == null ? null : toJson$Enum$OrderBy(l$timestamp);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UdHistoryMaxOrderBy<Input$UdHistoryMaxOrderBy> get copyWith =>
+      CopyWith$Input$UdHistoryMaxOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UdHistoryMaxOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$identityId = identityId;
+    final lOther$identityId = other.identityId;
+    if (_$data.containsKey('identityId') !=
+        other._$data.containsKey('identityId')) {
+      return false;
+    }
+    if (l$identityId != lOther$identityId) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (_$data.containsKey('timestamp') !=
+        other._$data.containsKey('timestamp')) {
+      return false;
+    }
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    final l$id = id;
+    final l$identityId = identityId;
+    final l$timestamp = timestamp;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('identityId') ? l$identityId : const {},
+      _$data.containsKey('timestamp') ? l$timestamp : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UdHistoryMaxOrderBy<TRes> {
+  factory CopyWith$Input$UdHistoryMaxOrderBy(
+    Input$UdHistoryMaxOrderBy instance,
+    TRes Function(Input$UdHistoryMaxOrderBy) then,
+  ) = _CopyWithImpl$Input$UdHistoryMaxOrderBy;
+
+  factory CopyWith$Input$UdHistoryMaxOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$UdHistoryMaxOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+    Enum$OrderBy? timestamp,
+  });
+}
+
+class _CopyWithImpl$Input$UdHistoryMaxOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryMaxOrderBy<TRes> {
+  _CopyWithImpl$Input$UdHistoryMaxOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UdHistoryMaxOrderBy _instance;
+
+  final TRes Function(Input$UdHistoryMaxOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+    Object? id = _undefined,
+    Object? identityId = _undefined,
+    Object? timestamp = _undefined,
+  }) =>
+      _then(Input$UdHistoryMaxOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (identityId != _undefined)
+          'identityId': (identityId as Enum$OrderBy?),
+        if (timestamp != _undefined) 'timestamp': (timestamp as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$UdHistoryMaxOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryMaxOrderBy<TRes> {
+  _CopyWithStubImpl$Input$UdHistoryMaxOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+    Enum$OrderBy? timestamp,
+  }) =>
+      _res;
+}
+
+class Input$UdHistoryMinOrderBy {
+  factory Input$UdHistoryMinOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+    Enum$OrderBy? timestamp,
+  }) =>
+      Input$UdHistoryMinOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (id != null) r'id': id,
+        if (identityId != null) r'identityId': identityId,
+        if (timestamp != null) r'timestamp': timestamp,
+      });
+
+  Input$UdHistoryMinOrderBy._(this._$data);
+
+  factory Input$UdHistoryMinOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('identityId')) {
+      final l$identityId = data['identityId'];
+      result$data['identityId'] = l$identityId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$identityId as String));
+    }
+    if (data.containsKey('timestamp')) {
+      final l$timestamp = data['timestamp'];
+      result$data['timestamp'] = l$timestamp == null
+          ? null
+          : fromJson$Enum$OrderBy((l$timestamp as String));
+    }
+    return Input$UdHistoryMinOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get identityId => (_$data['identityId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get timestamp => (_$data['timestamp'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('identityId')) {
+      final l$identityId = identityId;
+      result$data['identityId'] =
+          l$identityId == null ? null : toJson$Enum$OrderBy(l$identityId);
+    }
+    if (_$data.containsKey('timestamp')) {
+      final l$timestamp = timestamp;
+      result$data['timestamp'] =
+          l$timestamp == null ? null : toJson$Enum$OrderBy(l$timestamp);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UdHistoryMinOrderBy<Input$UdHistoryMinOrderBy> get copyWith =>
+      CopyWith$Input$UdHistoryMinOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UdHistoryMinOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$identityId = identityId;
+    final lOther$identityId = other.identityId;
+    if (_$data.containsKey('identityId') !=
+        other._$data.containsKey('identityId')) {
+      return false;
+    }
+    if (l$identityId != lOther$identityId) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (_$data.containsKey('timestamp') !=
+        other._$data.containsKey('timestamp')) {
+      return false;
+    }
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    final l$id = id;
+    final l$identityId = identityId;
+    final l$timestamp = timestamp;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('identityId') ? l$identityId : const {},
+      _$data.containsKey('timestamp') ? l$timestamp : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UdHistoryMinOrderBy<TRes> {
+  factory CopyWith$Input$UdHistoryMinOrderBy(
+    Input$UdHistoryMinOrderBy instance,
+    TRes Function(Input$UdHistoryMinOrderBy) then,
+  ) = _CopyWithImpl$Input$UdHistoryMinOrderBy;
+
+  factory CopyWith$Input$UdHistoryMinOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$UdHistoryMinOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+    Enum$OrderBy? timestamp,
+  });
+}
+
+class _CopyWithImpl$Input$UdHistoryMinOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryMinOrderBy<TRes> {
+  _CopyWithImpl$Input$UdHistoryMinOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UdHistoryMinOrderBy _instance;
+
+  final TRes Function(Input$UdHistoryMinOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+    Object? id = _undefined,
+    Object? identityId = _undefined,
+    Object? timestamp = _undefined,
+  }) =>
+      _then(Input$UdHistoryMinOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (identityId != _undefined)
+          'identityId': (identityId as Enum$OrderBy?),
+        if (timestamp != _undefined) 'timestamp': (timestamp as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$UdHistoryMinOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryMinOrderBy<TRes> {
+  _CopyWithStubImpl$Input$UdHistoryMinOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Enum$OrderBy? identityId,
+    Enum$OrderBy? timestamp,
+  }) =>
+      _res;
+}
+
+class Input$UdHistoryOrderBy {
+  factory Input$UdHistoryOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Input$IdentityOrderBy? identity,
+    Enum$OrderBy? identityId,
+    Enum$OrderBy? timestamp,
+  }) =>
+      Input$UdHistoryOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (id != null) r'id': id,
+        if (identity != null) r'identity': identity,
+        if (identityId != null) r'identityId': identityId,
+        if (timestamp != null) r'timestamp': timestamp,
+      });
+
+  Input$UdHistoryOrderBy._(this._$data);
+
+  factory Input$UdHistoryOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('identity')) {
+      final l$identity = data['identity'];
+      result$data['identity'] = l$identity == null
+          ? null
+          : Input$IdentityOrderBy.fromJson(
+              (l$identity as Map<String, dynamic>));
+    }
+    if (data.containsKey('identityId')) {
+      final l$identityId = data['identityId'];
+      result$data['identityId'] = l$identityId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$identityId as String));
+    }
+    if (data.containsKey('timestamp')) {
+      final l$timestamp = data['timestamp'];
+      result$data['timestamp'] = l$timestamp == null
+          ? null
+          : fromJson$Enum$OrderBy((l$timestamp as String));
+    }
+    return Input$UdHistoryOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Input$IdentityOrderBy? get identity =>
+      (_$data['identity'] as Input$IdentityOrderBy?);
+
+  Enum$OrderBy? get identityId => (_$data['identityId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get timestamp => (_$data['timestamp'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('identity')) {
+      final l$identity = identity;
+      result$data['identity'] = l$identity?.toJson();
+    }
+    if (_$data.containsKey('identityId')) {
+      final l$identityId = identityId;
+      result$data['identityId'] =
+          l$identityId == null ? null : toJson$Enum$OrderBy(l$identityId);
+    }
+    if (_$data.containsKey('timestamp')) {
+      final l$timestamp = timestamp;
+      result$data['timestamp'] =
+          l$timestamp == null ? null : toJson$Enum$OrderBy(l$timestamp);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UdHistoryOrderBy<Input$UdHistoryOrderBy> get copyWith =>
+      CopyWith$Input$UdHistoryOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UdHistoryOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$identity = identity;
+    final lOther$identity = other.identity;
+    if (_$data.containsKey('identity') !=
+        other._$data.containsKey('identity')) {
+      return false;
+    }
+    if (l$identity != lOther$identity) {
+      return false;
+    }
+    final l$identityId = identityId;
+    final lOther$identityId = other.identityId;
+    if (_$data.containsKey('identityId') !=
+        other._$data.containsKey('identityId')) {
+      return false;
+    }
+    if (l$identityId != lOther$identityId) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (_$data.containsKey('timestamp') !=
+        other._$data.containsKey('timestamp')) {
+      return false;
+    }
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    final l$id = id;
+    final l$identity = identity;
+    final l$identityId = identityId;
+    final l$timestamp = timestamp;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('identity') ? l$identity : const {},
+      _$data.containsKey('identityId') ? l$identityId : const {},
+      _$data.containsKey('timestamp') ? l$timestamp : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UdHistoryOrderBy<TRes> {
+  factory CopyWith$Input$UdHistoryOrderBy(
+    Input$UdHistoryOrderBy instance,
+    TRes Function(Input$UdHistoryOrderBy) then,
+  ) = _CopyWithImpl$Input$UdHistoryOrderBy;
+
+  factory CopyWith$Input$UdHistoryOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$UdHistoryOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Input$IdentityOrderBy? identity,
+    Enum$OrderBy? identityId,
+    Enum$OrderBy? timestamp,
+  });
+  CopyWith$Input$IdentityOrderBy<TRes> get identity;
+}
+
+class _CopyWithImpl$Input$UdHistoryOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryOrderBy<TRes> {
+  _CopyWithImpl$Input$UdHistoryOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UdHistoryOrderBy _instance;
+
+  final TRes Function(Input$UdHistoryOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+    Object? id = _undefined,
+    Object? identity = _undefined,
+    Object? identityId = _undefined,
+    Object? timestamp = _undefined,
+  }) =>
+      _then(Input$UdHistoryOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (identity != _undefined)
+          'identity': (identity as Input$IdentityOrderBy?),
+        if (identityId != _undefined)
+          'identityId': (identityId as Enum$OrderBy?),
+        if (timestamp != _undefined) 'timestamp': (timestamp as Enum$OrderBy?),
+      }));
+
+  CopyWith$Input$IdentityOrderBy<TRes> get identity {
+    final local$identity = _instance.identity;
+    return local$identity == null
+        ? CopyWith$Input$IdentityOrderBy.stub(_then(_instance))
+        : CopyWith$Input$IdentityOrderBy(
+            local$identity, (e) => call(identity: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$UdHistoryOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryOrderBy<TRes> {
+  _CopyWithStubImpl$Input$UdHistoryOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Enum$OrderBy? id,
+    Input$IdentityOrderBy? identity,
+    Enum$OrderBy? identityId,
+    Enum$OrderBy? timestamp,
+  }) =>
+      _res;
+
+  CopyWith$Input$IdentityOrderBy<TRes> get identity =>
+      CopyWith$Input$IdentityOrderBy.stub(_res);
+}
+
+class Input$UdHistoryStddevOrderBy {
+  factory Input$UdHistoryStddevOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$UdHistoryStddevOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$UdHistoryStddevOrderBy._(this._$data);
+
+  factory Input$UdHistoryStddevOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$UdHistoryStddevOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UdHistoryStddevOrderBy<Input$UdHistoryStddevOrderBy>
+      get copyWith => CopyWith$Input$UdHistoryStddevOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UdHistoryStddevOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UdHistoryStddevOrderBy<TRes> {
+  factory CopyWith$Input$UdHistoryStddevOrderBy(
+    Input$UdHistoryStddevOrderBy instance,
+    TRes Function(Input$UdHistoryStddevOrderBy) then,
+  ) = _CopyWithImpl$Input$UdHistoryStddevOrderBy;
+
+  factory CopyWith$Input$UdHistoryStddevOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$UdHistoryStddevOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$UdHistoryStddevOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryStddevOrderBy<TRes> {
+  _CopyWithImpl$Input$UdHistoryStddevOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UdHistoryStddevOrderBy _instance;
+
+  final TRes Function(Input$UdHistoryStddevOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$UdHistoryStddevOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$UdHistoryStddevOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryStddevOrderBy<TRes> {
+  _CopyWithStubImpl$Input$UdHistoryStddevOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$UdHistoryStddevPopOrderBy {
+  factory Input$UdHistoryStddevPopOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$UdHistoryStddevPopOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$UdHistoryStddevPopOrderBy._(this._$data);
+
+  factory Input$UdHistoryStddevPopOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$UdHistoryStddevPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UdHistoryStddevPopOrderBy<Input$UdHistoryStddevPopOrderBy>
+      get copyWith => CopyWith$Input$UdHistoryStddevPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UdHistoryStddevPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UdHistoryStddevPopOrderBy<TRes> {
+  factory CopyWith$Input$UdHistoryStddevPopOrderBy(
+    Input$UdHistoryStddevPopOrderBy instance,
+    TRes Function(Input$UdHistoryStddevPopOrderBy) then,
+  ) = _CopyWithImpl$Input$UdHistoryStddevPopOrderBy;
+
+  factory CopyWith$Input$UdHistoryStddevPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$UdHistoryStddevPopOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$UdHistoryStddevPopOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryStddevPopOrderBy<TRes> {
+  _CopyWithImpl$Input$UdHistoryStddevPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UdHistoryStddevPopOrderBy _instance;
+
+  final TRes Function(Input$UdHistoryStddevPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$UdHistoryStddevPopOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$UdHistoryStddevPopOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryStddevPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$UdHistoryStddevPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$UdHistoryStddevSampOrderBy {
+  factory Input$UdHistoryStddevSampOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$UdHistoryStddevSampOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$UdHistoryStddevSampOrderBy._(this._$data);
+
+  factory Input$UdHistoryStddevSampOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$UdHistoryStddevSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UdHistoryStddevSampOrderBy<Input$UdHistoryStddevSampOrderBy>
+      get copyWith => CopyWith$Input$UdHistoryStddevSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UdHistoryStddevSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UdHistoryStddevSampOrderBy<TRes> {
+  factory CopyWith$Input$UdHistoryStddevSampOrderBy(
+    Input$UdHistoryStddevSampOrderBy instance,
+    TRes Function(Input$UdHistoryStddevSampOrderBy) then,
+  ) = _CopyWithImpl$Input$UdHistoryStddevSampOrderBy;
+
+  factory CopyWith$Input$UdHistoryStddevSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$UdHistoryStddevSampOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$UdHistoryStddevSampOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryStddevSampOrderBy<TRes> {
+  _CopyWithImpl$Input$UdHistoryStddevSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UdHistoryStddevSampOrderBy _instance;
+
+  final TRes Function(Input$UdHistoryStddevSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$UdHistoryStddevSampOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$UdHistoryStddevSampOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryStddevSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$UdHistoryStddevSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$UdHistorySumOrderBy {
+  factory Input$UdHistorySumOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$UdHistorySumOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$UdHistorySumOrderBy._(this._$data);
+
+  factory Input$UdHistorySumOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$UdHistorySumOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UdHistorySumOrderBy<Input$UdHistorySumOrderBy> get copyWith =>
+      CopyWith$Input$UdHistorySumOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UdHistorySumOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UdHistorySumOrderBy<TRes> {
+  factory CopyWith$Input$UdHistorySumOrderBy(
+    Input$UdHistorySumOrderBy instance,
+    TRes Function(Input$UdHistorySumOrderBy) then,
+  ) = _CopyWithImpl$Input$UdHistorySumOrderBy;
+
+  factory CopyWith$Input$UdHistorySumOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$UdHistorySumOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$UdHistorySumOrderBy<TRes>
+    implements CopyWith$Input$UdHistorySumOrderBy<TRes> {
+  _CopyWithImpl$Input$UdHistorySumOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UdHistorySumOrderBy _instance;
+
+  final TRes Function(Input$UdHistorySumOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$UdHistorySumOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$UdHistorySumOrderBy<TRes>
+    implements CopyWith$Input$UdHistorySumOrderBy<TRes> {
+  _CopyWithStubImpl$Input$UdHistorySumOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$UdHistoryVarianceOrderBy {
+  factory Input$UdHistoryVarianceOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$UdHistoryVarianceOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$UdHistoryVarianceOrderBy._(this._$data);
+
+  factory Input$UdHistoryVarianceOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$UdHistoryVarianceOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UdHistoryVarianceOrderBy<Input$UdHistoryVarianceOrderBy>
+      get copyWith => CopyWith$Input$UdHistoryVarianceOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UdHistoryVarianceOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UdHistoryVarianceOrderBy<TRes> {
+  factory CopyWith$Input$UdHistoryVarianceOrderBy(
+    Input$UdHistoryVarianceOrderBy instance,
+    TRes Function(Input$UdHistoryVarianceOrderBy) then,
+  ) = _CopyWithImpl$Input$UdHistoryVarianceOrderBy;
+
+  factory CopyWith$Input$UdHistoryVarianceOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$UdHistoryVarianceOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$UdHistoryVarianceOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryVarianceOrderBy<TRes> {
+  _CopyWithImpl$Input$UdHistoryVarianceOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UdHistoryVarianceOrderBy _instance;
+
+  final TRes Function(Input$UdHistoryVarianceOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$UdHistoryVarianceOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$UdHistoryVarianceOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryVarianceOrderBy<TRes> {
+  _CopyWithStubImpl$Input$UdHistoryVarianceOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$UdHistoryVarPopOrderBy {
+  factory Input$UdHistoryVarPopOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$UdHistoryVarPopOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$UdHistoryVarPopOrderBy._(this._$data);
+
+  factory Input$UdHistoryVarPopOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$UdHistoryVarPopOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UdHistoryVarPopOrderBy<Input$UdHistoryVarPopOrderBy>
+      get copyWith => CopyWith$Input$UdHistoryVarPopOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UdHistoryVarPopOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UdHistoryVarPopOrderBy<TRes> {
+  factory CopyWith$Input$UdHistoryVarPopOrderBy(
+    Input$UdHistoryVarPopOrderBy instance,
+    TRes Function(Input$UdHistoryVarPopOrderBy) then,
+  ) = _CopyWithImpl$Input$UdHistoryVarPopOrderBy;
+
+  factory CopyWith$Input$UdHistoryVarPopOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$UdHistoryVarPopOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$UdHistoryVarPopOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryVarPopOrderBy<TRes> {
+  _CopyWithImpl$Input$UdHistoryVarPopOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UdHistoryVarPopOrderBy _instance;
+
+  final TRes Function(Input$UdHistoryVarPopOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$UdHistoryVarPopOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$UdHistoryVarPopOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryVarPopOrderBy<TRes> {
+  _CopyWithStubImpl$Input$UdHistoryVarPopOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$UdHistoryVarSampOrderBy {
+  factory Input$UdHistoryVarSampOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      Input$UdHistoryVarSampOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+      });
+
+  Input$UdHistoryVarSampOrderBy._(this._$data);
+
+  factory Input$UdHistoryVarSampOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    return Input$UdHistoryVarSampOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UdHistoryVarSampOrderBy<Input$UdHistoryVarSampOrderBy>
+      get copyWith => CopyWith$Input$UdHistoryVarSampOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UdHistoryVarSampOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UdHistoryVarSampOrderBy<TRes> {
+  factory CopyWith$Input$UdHistoryVarSampOrderBy(
+    Input$UdHistoryVarSampOrderBy instance,
+    TRes Function(Input$UdHistoryVarSampOrderBy) then,
+  ) = _CopyWithImpl$Input$UdHistoryVarSampOrderBy;
+
+  factory CopyWith$Input$UdHistoryVarSampOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$UdHistoryVarSampOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  });
+}
+
+class _CopyWithImpl$Input$UdHistoryVarSampOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryVarSampOrderBy<TRes> {
+  _CopyWithImpl$Input$UdHistoryVarSampOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UdHistoryVarSampOrderBy _instance;
+
+  final TRes Function(Input$UdHistoryVarSampOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+  }) =>
+      _then(Input$UdHistoryVarSampOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+      }));
+}
+
+class _CopyWithStubImpl$Input$UdHistoryVarSampOrderBy<TRes>
+    implements CopyWith$Input$UdHistoryVarSampOrderBy<TRes> {
+  _CopyWithStubImpl$Input$UdHistoryVarSampOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+  }) =>
+      _res;
+}
+
+class Input$UdReevalBoolExp {
+  factory Input$UdReevalBoolExp({
+    List<Input$UdReevalBoolExp>? $_and,
+    Input$UdReevalBoolExp? $_not,
+    List<Input$UdReevalBoolExp>? $_or,
+    Input$IntComparisonExp? blockNumber,
+    Input$EventBoolExp? event,
+    Input$StringComparisonExp? eventId,
+    Input$StringComparisonExp? id,
+    Input$IntComparisonExp? membersCount,
+    Input$NumericComparisonExp? monetaryMass,
+    Input$IntComparisonExp? newUdAmount,
+    Input$TimestamptzComparisonExp? timestamp,
+  }) =>
+      Input$UdReevalBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (event != null) r'event': event,
+        if (eventId != null) r'eventId': eventId,
+        if (id != null) r'id': id,
+        if (membersCount != null) r'membersCount': membersCount,
+        if (monetaryMass != null) r'monetaryMass': monetaryMass,
+        if (newUdAmount != null) r'newUdAmount': newUdAmount,
+        if (timestamp != null) r'timestamp': timestamp,
+      });
+
+  Input$UdReevalBoolExp._(this._$data);
+
+  factory Input$UdReevalBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map((e) =>
+              Input$UdReevalBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$UdReevalBoolExp.fromJson((l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map((e) =>
+              Input$UdReevalBoolExp.fromJson((e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$blockNumber as Map<String, dynamic>));
+    }
+    if (data.containsKey('event')) {
+      final l$event = data['event'];
+      result$data['event'] = l$event == null
+          ? null
+          : Input$EventBoolExp.fromJson((l$event as Map<String, dynamic>));
+    }
+    if (data.containsKey('eventId')) {
+      final l$eventId = data['eventId'];
+      result$data['eventId'] = l$eventId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$eventId as Map<String, dynamic>));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    if (data.containsKey('membersCount')) {
+      final l$membersCount = data['membersCount'];
+      result$data['membersCount'] = l$membersCount == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$membersCount as Map<String, dynamic>));
+    }
+    if (data.containsKey('monetaryMass')) {
+      final l$monetaryMass = data['monetaryMass'];
+      result$data['monetaryMass'] = l$monetaryMass == null
+          ? null
+          : Input$NumericComparisonExp.fromJson(
+              (l$monetaryMass as Map<String, dynamic>));
+    }
+    if (data.containsKey('newUdAmount')) {
+      final l$newUdAmount = data['newUdAmount'];
+      result$data['newUdAmount'] = l$newUdAmount == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$newUdAmount as Map<String, dynamic>));
+    }
+    if (data.containsKey('timestamp')) {
+      final l$timestamp = data['timestamp'];
+      result$data['timestamp'] = l$timestamp == null
+          ? null
+          : Input$TimestamptzComparisonExp.fromJson(
+              (l$timestamp as Map<String, dynamic>));
+    }
+    return Input$UdReevalBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$UdReevalBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$UdReevalBoolExp>?);
+
+  Input$UdReevalBoolExp? get $_not =>
+      (_$data['_not'] as Input$UdReevalBoolExp?);
+
+  List<Input$UdReevalBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$UdReevalBoolExp>?);
+
+  Input$IntComparisonExp? get blockNumber =>
+      (_$data['blockNumber'] as Input$IntComparisonExp?);
+
+  Input$EventBoolExp? get event => (_$data['event'] as Input$EventBoolExp?);
+
+  Input$StringComparisonExp? get eventId =>
+      (_$data['eventId'] as Input$StringComparisonExp?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Input$IntComparisonExp? get membersCount =>
+      (_$data['membersCount'] as Input$IntComparisonExp?);
+
+  Input$NumericComparisonExp? get monetaryMass =>
+      (_$data['monetaryMass'] as Input$NumericComparisonExp?);
+
+  Input$IntComparisonExp? get newUdAmount =>
+      (_$data['newUdAmount'] as Input$IntComparisonExp?);
+
+  Input$TimestamptzComparisonExp? get timestamp =>
+      (_$data['timestamp'] as Input$TimestamptzComparisonExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] = l$blockNumber?.toJson();
+    }
+    if (_$data.containsKey('event')) {
+      final l$event = event;
+      result$data['event'] = l$event?.toJson();
+    }
+    if (_$data.containsKey('eventId')) {
+      final l$eventId = eventId;
+      result$data['eventId'] = l$eventId?.toJson();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    if (_$data.containsKey('membersCount')) {
+      final l$membersCount = membersCount;
+      result$data['membersCount'] = l$membersCount?.toJson();
+    }
+    if (_$data.containsKey('monetaryMass')) {
+      final l$monetaryMass = monetaryMass;
+      result$data['monetaryMass'] = l$monetaryMass?.toJson();
+    }
+    if (_$data.containsKey('newUdAmount')) {
+      final l$newUdAmount = newUdAmount;
+      result$data['newUdAmount'] = l$newUdAmount?.toJson();
+    }
+    if (_$data.containsKey('timestamp')) {
+      final l$timestamp = timestamp;
+      result$data['timestamp'] = l$timestamp?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UdReevalBoolExp<Input$UdReevalBoolExp> get copyWith =>
+      CopyWith$Input$UdReevalBoolExp(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UdReevalBoolExp) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$event = event;
+    final lOther$event = other.event;
+    if (_$data.containsKey('event') != other._$data.containsKey('event')) {
+      return false;
+    }
+    if (l$event != lOther$event) {
+      return false;
+    }
+    final l$eventId = eventId;
+    final lOther$eventId = other.eventId;
+    if (_$data.containsKey('eventId') != other._$data.containsKey('eventId')) {
+      return false;
+    }
+    if (l$eventId != lOther$eventId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$membersCount = membersCount;
+    final lOther$membersCount = other.membersCount;
+    if (_$data.containsKey('membersCount') !=
+        other._$data.containsKey('membersCount')) {
+      return false;
+    }
+    if (l$membersCount != lOther$membersCount) {
+      return false;
+    }
+    final l$monetaryMass = monetaryMass;
+    final lOther$monetaryMass = other.monetaryMass;
+    if (_$data.containsKey('monetaryMass') !=
+        other._$data.containsKey('monetaryMass')) {
+      return false;
+    }
+    if (l$monetaryMass != lOther$monetaryMass) {
+      return false;
+    }
+    final l$newUdAmount = newUdAmount;
+    final lOther$newUdAmount = other.newUdAmount;
+    if (_$data.containsKey('newUdAmount') !=
+        other._$data.containsKey('newUdAmount')) {
+      return false;
+    }
+    if (l$newUdAmount != lOther$newUdAmount) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (_$data.containsKey('timestamp') !=
+        other._$data.containsKey('timestamp')) {
+      return false;
+    }
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$blockNumber = blockNumber;
+    final l$event = event;
+    final l$eventId = eventId;
+    final l$id = id;
+    final l$membersCount = membersCount;
+    final l$monetaryMass = monetaryMass;
+    final l$newUdAmount = newUdAmount;
+    final l$timestamp = timestamp;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('event') ? l$event : const {},
+      _$data.containsKey('eventId') ? l$eventId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('membersCount') ? l$membersCount : const {},
+      _$data.containsKey('monetaryMass') ? l$monetaryMass : const {},
+      _$data.containsKey('newUdAmount') ? l$newUdAmount : const {},
+      _$data.containsKey('timestamp') ? l$timestamp : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UdReevalBoolExp<TRes> {
+  factory CopyWith$Input$UdReevalBoolExp(
+    Input$UdReevalBoolExp instance,
+    TRes Function(Input$UdReevalBoolExp) then,
+  ) = _CopyWithImpl$Input$UdReevalBoolExp;
+
+  factory CopyWith$Input$UdReevalBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$UdReevalBoolExp;
+
+  TRes call({
+    List<Input$UdReevalBoolExp>? $_and,
+    Input$UdReevalBoolExp? $_not,
+    List<Input$UdReevalBoolExp>? $_or,
+    Input$IntComparisonExp? blockNumber,
+    Input$EventBoolExp? event,
+    Input$StringComparisonExp? eventId,
+    Input$StringComparisonExp? id,
+    Input$IntComparisonExp? membersCount,
+    Input$NumericComparisonExp? monetaryMass,
+    Input$IntComparisonExp? newUdAmount,
+    Input$TimestamptzComparisonExp? timestamp,
+  });
+  TRes $_and(
+      Iterable<Input$UdReevalBoolExp>? Function(
+              Iterable<CopyWith$Input$UdReevalBoolExp<Input$UdReevalBoolExp>>?)
+          _fn);
+  CopyWith$Input$UdReevalBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$UdReevalBoolExp>? Function(
+              Iterable<CopyWith$Input$UdReevalBoolExp<Input$UdReevalBoolExp>>?)
+          _fn);
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber;
+  CopyWith$Input$EventBoolExp<TRes> get event;
+  CopyWith$Input$StringComparisonExp<TRes> get eventId;
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+  CopyWith$Input$IntComparisonExp<TRes> get membersCount;
+  CopyWith$Input$NumericComparisonExp<TRes> get monetaryMass;
+  CopyWith$Input$IntComparisonExp<TRes> get newUdAmount;
+  CopyWith$Input$TimestamptzComparisonExp<TRes> get timestamp;
+}
+
+class _CopyWithImpl$Input$UdReevalBoolExp<TRes>
+    implements CopyWith$Input$UdReevalBoolExp<TRes> {
+  _CopyWithImpl$Input$UdReevalBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UdReevalBoolExp _instance;
+
+  final TRes Function(Input$UdReevalBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? blockNumber = _undefined,
+    Object? event = _undefined,
+    Object? eventId = _undefined,
+    Object? id = _undefined,
+    Object? membersCount = _undefined,
+    Object? monetaryMass = _undefined,
+    Object? newUdAmount = _undefined,
+    Object? timestamp = _undefined,
+  }) =>
+      _then(Input$UdReevalBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined)
+          '_and': ($_and as List<Input$UdReevalBoolExp>?),
+        if ($_not != _undefined) '_not': ($_not as Input$UdReevalBoolExp?),
+        if ($_or != _undefined) '_or': ($_or as List<Input$UdReevalBoolExp>?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Input$IntComparisonExp?),
+        if (event != _undefined) 'event': (event as Input$EventBoolExp?),
+        if (eventId != _undefined)
+          'eventId': (eventId as Input$StringComparisonExp?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+        if (membersCount != _undefined)
+          'membersCount': (membersCount as Input$IntComparisonExp?),
+        if (monetaryMass != _undefined)
+          'monetaryMass': (monetaryMass as Input$NumericComparisonExp?),
+        if (newUdAmount != _undefined)
+          'newUdAmount': (newUdAmount as Input$IntComparisonExp?),
+        if (timestamp != _undefined)
+          'timestamp': (timestamp as Input$TimestamptzComparisonExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$UdReevalBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$UdReevalBoolExp<Input$UdReevalBoolExp>>?)
+              _fn) =>
+      call(
+          $_and: _fn(_instance.$_and?.map((e) => CopyWith$Input$UdReevalBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$UdReevalBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$UdReevalBoolExp.stub(_then(_instance))
+        : CopyWith$Input$UdReevalBoolExp(local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$UdReevalBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$UdReevalBoolExp<Input$UdReevalBoolExp>>?)
+              _fn) =>
+      call(
+          $_or: _fn(_instance.$_or?.map((e) => CopyWith$Input$UdReevalBoolExp(
+                e,
+                (i) => i,
+              )))?.toList());
+
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber {
+    final local$blockNumber = _instance.blockNumber;
+    return local$blockNumber == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$blockNumber, (e) => call(blockNumber: e));
+  }
+
+  CopyWith$Input$EventBoolExp<TRes> get event {
+    final local$event = _instance.event;
+    return local$event == null
+        ? CopyWith$Input$EventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$EventBoolExp(local$event, (e) => call(event: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get eventId {
+    final local$eventId = _instance.eventId;
+    return local$eventId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$eventId, (e) => call(eventId: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get membersCount {
+    final local$membersCount = _instance.membersCount;
+    return local$membersCount == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$membersCount, (e) => call(membersCount: e));
+  }
+
+  CopyWith$Input$NumericComparisonExp<TRes> get monetaryMass {
+    final local$monetaryMass = _instance.monetaryMass;
+    return local$monetaryMass == null
+        ? CopyWith$Input$NumericComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$NumericComparisonExp(
+            local$monetaryMass, (e) => call(monetaryMass: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get newUdAmount {
+    final local$newUdAmount = _instance.newUdAmount;
+    return local$newUdAmount == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$newUdAmount, (e) => call(newUdAmount: e));
+  }
+
+  CopyWith$Input$TimestamptzComparisonExp<TRes> get timestamp {
+    final local$timestamp = _instance.timestamp;
+    return local$timestamp == null
+        ? CopyWith$Input$TimestamptzComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$TimestamptzComparisonExp(
+            local$timestamp, (e) => call(timestamp: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$UdReevalBoolExp<TRes>
+    implements CopyWith$Input$UdReevalBoolExp<TRes> {
+  _CopyWithStubImpl$Input$UdReevalBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$UdReevalBoolExp>? $_and,
+    Input$UdReevalBoolExp? $_not,
+    List<Input$UdReevalBoolExp>? $_or,
+    Input$IntComparisonExp? blockNumber,
+    Input$EventBoolExp? event,
+    Input$StringComparisonExp? eventId,
+    Input$StringComparisonExp? id,
+    Input$IntComparisonExp? membersCount,
+    Input$NumericComparisonExp? monetaryMass,
+    Input$IntComparisonExp? newUdAmount,
+    Input$TimestamptzComparisonExp? timestamp,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$UdReevalBoolExp<TRes> get $_not =>
+      CopyWith$Input$UdReevalBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$EventBoolExp<TRes> get event =>
+      CopyWith$Input$EventBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get eventId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get membersCount =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$NumericComparisonExp<TRes> get monetaryMass =>
+      CopyWith$Input$NumericComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get newUdAmount =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$TimestamptzComparisonExp<TRes> get timestamp =>
+      CopyWith$Input$TimestamptzComparisonExp.stub(_res);
+}
+
+class Input$UdReevalOrderBy {
+  factory Input$UdReevalOrderBy({
+    Enum$OrderBy? blockNumber,
+    Input$EventOrderBy? event,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? membersCount,
+    Enum$OrderBy? monetaryMass,
+    Enum$OrderBy? newUdAmount,
+    Enum$OrderBy? timestamp,
+  }) =>
+      Input$UdReevalOrderBy._({
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (event != null) r'event': event,
+        if (eventId != null) r'eventId': eventId,
+        if (id != null) r'id': id,
+        if (membersCount != null) r'membersCount': membersCount,
+        if (monetaryMass != null) r'monetaryMass': monetaryMass,
+        if (newUdAmount != null) r'newUdAmount': newUdAmount,
+        if (timestamp != null) r'timestamp': timestamp,
+      });
+
+  Input$UdReevalOrderBy._(this._$data);
+
+  factory Input$UdReevalOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('event')) {
+      final l$event = data['event'];
+      result$data['event'] = l$event == null
+          ? null
+          : Input$EventOrderBy.fromJson((l$event as Map<String, dynamic>));
+    }
+    if (data.containsKey('eventId')) {
+      final l$eventId = data['eventId'];
+      result$data['eventId'] = l$eventId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$eventId as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('membersCount')) {
+      final l$membersCount = data['membersCount'];
+      result$data['membersCount'] = l$membersCount == null
+          ? null
+          : fromJson$Enum$OrderBy((l$membersCount as String));
+    }
+    if (data.containsKey('monetaryMass')) {
+      final l$monetaryMass = data['monetaryMass'];
+      result$data['monetaryMass'] = l$monetaryMass == null
+          ? null
+          : fromJson$Enum$OrderBy((l$monetaryMass as String));
+    }
+    if (data.containsKey('newUdAmount')) {
+      final l$newUdAmount = data['newUdAmount'];
+      result$data['newUdAmount'] = l$newUdAmount == null
+          ? null
+          : fromJson$Enum$OrderBy((l$newUdAmount as String));
+    }
+    if (data.containsKey('timestamp')) {
+      final l$timestamp = data['timestamp'];
+      result$data['timestamp'] = l$timestamp == null
+          ? null
+          : fromJson$Enum$OrderBy((l$timestamp as String));
+    }
+    return Input$UdReevalOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Input$EventOrderBy? get event => (_$data['event'] as Input$EventOrderBy?);
+
+  Enum$OrderBy? get eventId => (_$data['eventId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get membersCount => (_$data['membersCount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get monetaryMass => (_$data['monetaryMass'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get newUdAmount => (_$data['newUdAmount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get timestamp => (_$data['timestamp'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('event')) {
+      final l$event = event;
+      result$data['event'] = l$event?.toJson();
+    }
+    if (_$data.containsKey('eventId')) {
+      final l$eventId = eventId;
+      result$data['eventId'] =
+          l$eventId == null ? null : toJson$Enum$OrderBy(l$eventId);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('membersCount')) {
+      final l$membersCount = membersCount;
+      result$data['membersCount'] =
+          l$membersCount == null ? null : toJson$Enum$OrderBy(l$membersCount);
+    }
+    if (_$data.containsKey('monetaryMass')) {
+      final l$monetaryMass = monetaryMass;
+      result$data['monetaryMass'] =
+          l$monetaryMass == null ? null : toJson$Enum$OrderBy(l$monetaryMass);
+    }
+    if (_$data.containsKey('newUdAmount')) {
+      final l$newUdAmount = newUdAmount;
+      result$data['newUdAmount'] =
+          l$newUdAmount == null ? null : toJson$Enum$OrderBy(l$newUdAmount);
+    }
+    if (_$data.containsKey('timestamp')) {
+      final l$timestamp = timestamp;
+      result$data['timestamp'] =
+          l$timestamp == null ? null : toJson$Enum$OrderBy(l$timestamp);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UdReevalOrderBy<Input$UdReevalOrderBy> get copyWith =>
+      CopyWith$Input$UdReevalOrderBy(
+        this,
+        (i) => i,
+      );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UdReevalOrderBy) || runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$event = event;
+    final lOther$event = other.event;
+    if (_$data.containsKey('event') != other._$data.containsKey('event')) {
+      return false;
+    }
+    if (l$event != lOther$event) {
+      return false;
+    }
+    final l$eventId = eventId;
+    final lOther$eventId = other.eventId;
+    if (_$data.containsKey('eventId') != other._$data.containsKey('eventId')) {
+      return false;
+    }
+    if (l$eventId != lOther$eventId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$membersCount = membersCount;
+    final lOther$membersCount = other.membersCount;
+    if (_$data.containsKey('membersCount') !=
+        other._$data.containsKey('membersCount')) {
+      return false;
+    }
+    if (l$membersCount != lOther$membersCount) {
+      return false;
+    }
+    final l$monetaryMass = monetaryMass;
+    final lOther$monetaryMass = other.monetaryMass;
+    if (_$data.containsKey('monetaryMass') !=
+        other._$data.containsKey('monetaryMass')) {
+      return false;
+    }
+    if (l$monetaryMass != lOther$monetaryMass) {
+      return false;
+    }
+    final l$newUdAmount = newUdAmount;
+    final lOther$newUdAmount = other.newUdAmount;
+    if (_$data.containsKey('newUdAmount') !=
+        other._$data.containsKey('newUdAmount')) {
+      return false;
+    }
+    if (l$newUdAmount != lOther$newUdAmount) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (_$data.containsKey('timestamp') !=
+        other._$data.containsKey('timestamp')) {
+      return false;
+    }
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$blockNumber = blockNumber;
+    final l$event = event;
+    final l$eventId = eventId;
+    final l$id = id;
+    final l$membersCount = membersCount;
+    final l$monetaryMass = monetaryMass;
+    final l$newUdAmount = newUdAmount;
+    final l$timestamp = timestamp;
+    return Object.hashAll([
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('event') ? l$event : const {},
+      _$data.containsKey('eventId') ? l$eventId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('membersCount') ? l$membersCount : const {},
+      _$data.containsKey('monetaryMass') ? l$monetaryMass : const {},
+      _$data.containsKey('newUdAmount') ? l$newUdAmount : const {},
+      _$data.containsKey('timestamp') ? l$timestamp : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UdReevalOrderBy<TRes> {
+  factory CopyWith$Input$UdReevalOrderBy(
+    Input$UdReevalOrderBy instance,
+    TRes Function(Input$UdReevalOrderBy) then,
+  ) = _CopyWithImpl$Input$UdReevalOrderBy;
+
+  factory CopyWith$Input$UdReevalOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$UdReevalOrderBy;
+
+  TRes call({
+    Enum$OrderBy? blockNumber,
+    Input$EventOrderBy? event,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? membersCount,
+    Enum$OrderBy? monetaryMass,
+    Enum$OrderBy? newUdAmount,
+    Enum$OrderBy? timestamp,
+  });
+  CopyWith$Input$EventOrderBy<TRes> get event;
+}
+
+class _CopyWithImpl$Input$UdReevalOrderBy<TRes>
+    implements CopyWith$Input$UdReevalOrderBy<TRes> {
+  _CopyWithImpl$Input$UdReevalOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UdReevalOrderBy _instance;
+
+  final TRes Function(Input$UdReevalOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? blockNumber = _undefined,
+    Object? event = _undefined,
+    Object? eventId = _undefined,
+    Object? id = _undefined,
+    Object? membersCount = _undefined,
+    Object? monetaryMass = _undefined,
+    Object? newUdAmount = _undefined,
+    Object? timestamp = _undefined,
+  }) =>
+      _then(Input$UdReevalOrderBy._({
+        ..._instance._$data,
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (event != _undefined) 'event': (event as Input$EventOrderBy?),
+        if (eventId != _undefined) 'eventId': (eventId as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (membersCount != _undefined)
+          'membersCount': (membersCount as Enum$OrderBy?),
+        if (monetaryMass != _undefined)
+          'monetaryMass': (monetaryMass as Enum$OrderBy?),
+        if (newUdAmount != _undefined)
+          'newUdAmount': (newUdAmount as Enum$OrderBy?),
+        if (timestamp != _undefined) 'timestamp': (timestamp as Enum$OrderBy?),
+      }));
+
+  CopyWith$Input$EventOrderBy<TRes> get event {
+    final local$event = _instance.event;
+    return local$event == null
+        ? CopyWith$Input$EventOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventOrderBy(local$event, (e) => call(event: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$UdReevalOrderBy<TRes>
+    implements CopyWith$Input$UdReevalOrderBy<TRes> {
+  _CopyWithStubImpl$Input$UdReevalOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? blockNumber,
+    Input$EventOrderBy? event,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? membersCount,
+    Enum$OrderBy? monetaryMass,
+    Enum$OrderBy? newUdAmount,
+    Enum$OrderBy? timestamp,
+  }) =>
+      _res;
+
+  CopyWith$Input$EventOrderBy<TRes> get event =>
+      CopyWith$Input$EventOrderBy.stub(_res);
+}
+
+class Input$UniversalDividendBoolExp {
+  factory Input$UniversalDividendBoolExp({
+    List<Input$UniversalDividendBoolExp>? $_and,
+    Input$UniversalDividendBoolExp? $_not,
+    List<Input$UniversalDividendBoolExp>? $_or,
+    Input$IntComparisonExp? amount,
+    Input$IntComparisonExp? blockNumber,
+    Input$EventBoolExp? event,
+    Input$StringComparisonExp? eventId,
+    Input$StringComparisonExp? id,
+    Input$IntComparisonExp? membersCount,
+    Input$NumericComparisonExp? monetaryMass,
+    Input$TimestamptzComparisonExp? timestamp,
+  }) =>
+      Input$UniversalDividendBoolExp._({
+        if ($_and != null) r'_and': $_and,
+        if ($_not != null) r'_not': $_not,
+        if ($_or != null) r'_or': $_or,
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (event != null) r'event': event,
+        if (eventId != null) r'eventId': eventId,
+        if (id != null) r'id': id,
+        if (membersCount != null) r'membersCount': membersCount,
+        if (monetaryMass != null) r'monetaryMass': monetaryMass,
+        if (timestamp != null) r'timestamp': timestamp,
+      });
+
+  Input$UniversalDividendBoolExp._(this._$data);
+
+  factory Input$UniversalDividendBoolExp.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('_and')) {
+      final l$$_and = data['_and'];
+      result$data['_and'] = (l$$_and as List<dynamic>?)
+          ?.map((e) => Input$UniversalDividendBoolExp.fromJson(
+              (e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('_not')) {
+      final l$$_not = data['_not'];
+      result$data['_not'] = l$$_not == null
+          ? null
+          : Input$UniversalDividendBoolExp.fromJson(
+              (l$$_not as Map<String, dynamic>));
+    }
+    if (data.containsKey('_or')) {
+      final l$$_or = data['_or'];
+      result$data['_or'] = (l$$_or as List<dynamic>?)
+          ?.map((e) => Input$UniversalDividendBoolExp.fromJson(
+              (e as Map<String, dynamic>)))
+          .toList();
+    }
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] = l$amount == null
+          ? null
+          : Input$IntComparisonExp.fromJson((l$amount as Map<String, dynamic>));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$blockNumber as Map<String, dynamic>));
+    }
+    if (data.containsKey('event')) {
+      final l$event = data['event'];
+      result$data['event'] = l$event == null
+          ? null
+          : Input$EventBoolExp.fromJson((l$event as Map<String, dynamic>));
+    }
+    if (data.containsKey('eventId')) {
+      final l$eventId = data['eventId'];
+      result$data['eventId'] = l$eventId == null
+          ? null
+          : Input$StringComparisonExp.fromJson(
+              (l$eventId as Map<String, dynamic>));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] = l$id == null
+          ? null
+          : Input$StringComparisonExp.fromJson((l$id as Map<String, dynamic>));
+    }
+    if (data.containsKey('membersCount')) {
+      final l$membersCount = data['membersCount'];
+      result$data['membersCount'] = l$membersCount == null
+          ? null
+          : Input$IntComparisonExp.fromJson(
+              (l$membersCount as Map<String, dynamic>));
+    }
+    if (data.containsKey('monetaryMass')) {
+      final l$monetaryMass = data['monetaryMass'];
+      result$data['monetaryMass'] = l$monetaryMass == null
+          ? null
+          : Input$NumericComparisonExp.fromJson(
+              (l$monetaryMass as Map<String, dynamic>));
+    }
+    if (data.containsKey('timestamp')) {
+      final l$timestamp = data['timestamp'];
+      result$data['timestamp'] = l$timestamp == null
+          ? null
+          : Input$TimestamptzComparisonExp.fromJson(
+              (l$timestamp as Map<String, dynamic>));
+    }
+    return Input$UniversalDividendBoolExp._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  List<Input$UniversalDividendBoolExp>? get $_and =>
+      (_$data['_and'] as List<Input$UniversalDividendBoolExp>?);
+
+  Input$UniversalDividendBoolExp? get $_not =>
+      (_$data['_not'] as Input$UniversalDividendBoolExp?);
+
+  List<Input$UniversalDividendBoolExp>? get $_or =>
+      (_$data['_or'] as List<Input$UniversalDividendBoolExp>?);
+
+  Input$IntComparisonExp? get amount =>
+      (_$data['amount'] as Input$IntComparisonExp?);
+
+  Input$IntComparisonExp? get blockNumber =>
+      (_$data['blockNumber'] as Input$IntComparisonExp?);
+
+  Input$EventBoolExp? get event => (_$data['event'] as Input$EventBoolExp?);
+
+  Input$StringComparisonExp? get eventId =>
+      (_$data['eventId'] as Input$StringComparisonExp?);
+
+  Input$StringComparisonExp? get id =>
+      (_$data['id'] as Input$StringComparisonExp?);
+
+  Input$IntComparisonExp? get membersCount =>
+      (_$data['membersCount'] as Input$IntComparisonExp?);
+
+  Input$NumericComparisonExp? get monetaryMass =>
+      (_$data['monetaryMass'] as Input$NumericComparisonExp?);
+
+  Input$TimestamptzComparisonExp? get timestamp =>
+      (_$data['timestamp'] as Input$TimestamptzComparisonExp?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('_and')) {
+      final l$$_and = $_and;
+      result$data['_and'] = l$$_and?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('_not')) {
+      final l$$_not = $_not;
+      result$data['_not'] = l$$_not?.toJson();
+    }
+    if (_$data.containsKey('_or')) {
+      final l$$_or = $_or;
+      result$data['_or'] = l$$_or?.map((e) => e.toJson()).toList();
+    }
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] = l$amount?.toJson();
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] = l$blockNumber?.toJson();
+    }
+    if (_$data.containsKey('event')) {
+      final l$event = event;
+      result$data['event'] = l$event?.toJson();
+    }
+    if (_$data.containsKey('eventId')) {
+      final l$eventId = eventId;
+      result$data['eventId'] = l$eventId?.toJson();
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id?.toJson();
+    }
+    if (_$data.containsKey('membersCount')) {
+      final l$membersCount = membersCount;
+      result$data['membersCount'] = l$membersCount?.toJson();
+    }
+    if (_$data.containsKey('monetaryMass')) {
+      final l$monetaryMass = monetaryMass;
+      result$data['monetaryMass'] = l$monetaryMass?.toJson();
+    }
+    if (_$data.containsKey('timestamp')) {
+      final l$timestamp = timestamp;
+      result$data['timestamp'] = l$timestamp?.toJson();
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UniversalDividendBoolExp<Input$UniversalDividendBoolExp>
+      get copyWith => CopyWith$Input$UniversalDividendBoolExp(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UniversalDividendBoolExp) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$$_and = $_and;
+    final lOther$$_and = other.$_and;
+    if (_$data.containsKey('_and') != other._$data.containsKey('_and')) {
+      return false;
+    }
+    if (l$$_and != null && lOther$$_and != null) {
+      if (l$$_and.length != lOther$$_and.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_and.length; i++) {
+        final l$$_and$entry = l$$_and[i];
+        final lOther$$_and$entry = lOther$$_and[i];
+        if (l$$_and$entry != lOther$$_and$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_and != lOther$$_and) {
+      return false;
+    }
+    final l$$_not = $_not;
+    final lOther$$_not = other.$_not;
+    if (_$data.containsKey('_not') != other._$data.containsKey('_not')) {
+      return false;
+    }
+    if (l$$_not != lOther$$_not) {
+      return false;
+    }
+    final l$$_or = $_or;
+    final lOther$$_or = other.$_or;
+    if (_$data.containsKey('_or') != other._$data.containsKey('_or')) {
+      return false;
+    }
+    if (l$$_or != null && lOther$$_or != null) {
+      if (l$$_or.length != lOther$$_or.length) {
+        return false;
+      }
+      for (int i = 0; i < l$$_or.length; i++) {
+        final l$$_or$entry = l$$_or[i];
+        final lOther$$_or$entry = lOther$$_or[i];
+        if (l$$_or$entry != lOther$$_or$entry) {
+          return false;
+        }
+      }
+    } else if (l$$_or != lOther$$_or) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$event = event;
+    final lOther$event = other.event;
+    if (_$data.containsKey('event') != other._$data.containsKey('event')) {
+      return false;
+    }
+    if (l$event != lOther$event) {
+      return false;
+    }
+    final l$eventId = eventId;
+    final lOther$eventId = other.eventId;
+    if (_$data.containsKey('eventId') != other._$data.containsKey('eventId')) {
+      return false;
+    }
+    if (l$eventId != lOther$eventId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$membersCount = membersCount;
+    final lOther$membersCount = other.membersCount;
+    if (_$data.containsKey('membersCount') !=
+        other._$data.containsKey('membersCount')) {
+      return false;
+    }
+    if (l$membersCount != lOther$membersCount) {
+      return false;
+    }
+    final l$monetaryMass = monetaryMass;
+    final lOther$monetaryMass = other.monetaryMass;
+    if (_$data.containsKey('monetaryMass') !=
+        other._$data.containsKey('monetaryMass')) {
+      return false;
+    }
+    if (l$monetaryMass != lOther$monetaryMass) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (_$data.containsKey('timestamp') !=
+        other._$data.containsKey('timestamp')) {
+      return false;
+    }
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$$_and = $_and;
+    final l$$_not = $_not;
+    final l$$_or = $_or;
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    final l$event = event;
+    final l$eventId = eventId;
+    final l$id = id;
+    final l$membersCount = membersCount;
+    final l$monetaryMass = monetaryMass;
+    final l$timestamp = timestamp;
+    return Object.hashAll([
+      _$data.containsKey('_and')
+          ? l$$_and == null
+              ? null
+              : Object.hashAll(l$$_and.map((v) => v))
+          : const {},
+      _$data.containsKey('_not') ? l$$_not : const {},
+      _$data.containsKey('_or')
+          ? l$$_or == null
+              ? null
+              : Object.hashAll(l$$_or.map((v) => v))
+          : const {},
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('event') ? l$event : const {},
+      _$data.containsKey('eventId') ? l$eventId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('membersCount') ? l$membersCount : const {},
+      _$data.containsKey('monetaryMass') ? l$monetaryMass : const {},
+      _$data.containsKey('timestamp') ? l$timestamp : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UniversalDividendBoolExp<TRes> {
+  factory CopyWith$Input$UniversalDividendBoolExp(
+    Input$UniversalDividendBoolExp instance,
+    TRes Function(Input$UniversalDividendBoolExp) then,
+  ) = _CopyWithImpl$Input$UniversalDividendBoolExp;
+
+  factory CopyWith$Input$UniversalDividendBoolExp.stub(TRes res) =
+      _CopyWithStubImpl$Input$UniversalDividendBoolExp;
+
+  TRes call({
+    List<Input$UniversalDividendBoolExp>? $_and,
+    Input$UniversalDividendBoolExp? $_not,
+    List<Input$UniversalDividendBoolExp>? $_or,
+    Input$IntComparisonExp? amount,
+    Input$IntComparisonExp? blockNumber,
+    Input$EventBoolExp? event,
+    Input$StringComparisonExp? eventId,
+    Input$StringComparisonExp? id,
+    Input$IntComparisonExp? membersCount,
+    Input$NumericComparisonExp? monetaryMass,
+    Input$TimestamptzComparisonExp? timestamp,
+  });
+  TRes $_and(
+      Iterable<Input$UniversalDividendBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$UniversalDividendBoolExp<
+                      Input$UniversalDividendBoolExp>>?)
+          _fn);
+  CopyWith$Input$UniversalDividendBoolExp<TRes> get $_not;
+  TRes $_or(
+      Iterable<Input$UniversalDividendBoolExp>? Function(
+              Iterable<
+                  CopyWith$Input$UniversalDividendBoolExp<
+                      Input$UniversalDividendBoolExp>>?)
+          _fn);
+  CopyWith$Input$IntComparisonExp<TRes> get amount;
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber;
+  CopyWith$Input$EventBoolExp<TRes> get event;
+  CopyWith$Input$StringComparisonExp<TRes> get eventId;
+  CopyWith$Input$StringComparisonExp<TRes> get id;
+  CopyWith$Input$IntComparisonExp<TRes> get membersCount;
+  CopyWith$Input$NumericComparisonExp<TRes> get monetaryMass;
+  CopyWith$Input$TimestamptzComparisonExp<TRes> get timestamp;
+}
+
+class _CopyWithImpl$Input$UniversalDividendBoolExp<TRes>
+    implements CopyWith$Input$UniversalDividendBoolExp<TRes> {
+  _CopyWithImpl$Input$UniversalDividendBoolExp(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UniversalDividendBoolExp _instance;
+
+  final TRes Function(Input$UniversalDividendBoolExp) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? $_and = _undefined,
+    Object? $_not = _undefined,
+    Object? $_or = _undefined,
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+    Object? event = _undefined,
+    Object? eventId = _undefined,
+    Object? id = _undefined,
+    Object? membersCount = _undefined,
+    Object? monetaryMass = _undefined,
+    Object? timestamp = _undefined,
+  }) =>
+      _then(Input$UniversalDividendBoolExp._({
+        ..._instance._$data,
+        if ($_and != _undefined)
+          '_and': ($_and as List<Input$UniversalDividendBoolExp>?),
+        if ($_not != _undefined)
+          '_not': ($_not as Input$UniversalDividendBoolExp?),
+        if ($_or != _undefined)
+          '_or': ($_or as List<Input$UniversalDividendBoolExp>?),
+        if (amount != _undefined) 'amount': (amount as Input$IntComparisonExp?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Input$IntComparisonExp?),
+        if (event != _undefined) 'event': (event as Input$EventBoolExp?),
+        if (eventId != _undefined)
+          'eventId': (eventId as Input$StringComparisonExp?),
+        if (id != _undefined) 'id': (id as Input$StringComparisonExp?),
+        if (membersCount != _undefined)
+          'membersCount': (membersCount as Input$IntComparisonExp?),
+        if (monetaryMass != _undefined)
+          'monetaryMass': (monetaryMass as Input$NumericComparisonExp?),
+        if (timestamp != _undefined)
+          'timestamp': (timestamp as Input$TimestamptzComparisonExp?),
+      }));
+
+  TRes $_and(
+          Iterable<Input$UniversalDividendBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$UniversalDividendBoolExp<
+                          Input$UniversalDividendBoolExp>>?)
+              _fn) =>
+      call(
+          $_and: _fn(_instance.$_and
+              ?.map((e) => CopyWith$Input$UniversalDividendBoolExp(
+                    e,
+                    (i) => i,
+                  )))?.toList());
+
+  CopyWith$Input$UniversalDividendBoolExp<TRes> get $_not {
+    final local$$_not = _instance.$_not;
+    return local$$_not == null
+        ? CopyWith$Input$UniversalDividendBoolExp.stub(_then(_instance))
+        : CopyWith$Input$UniversalDividendBoolExp(
+            local$$_not, (e) => call($_not: e));
+  }
+
+  TRes $_or(
+          Iterable<Input$UniversalDividendBoolExp>? Function(
+                  Iterable<
+                      CopyWith$Input$UniversalDividendBoolExp<
+                          Input$UniversalDividendBoolExp>>?)
+              _fn) =>
+      call(
+          $_or: _fn(_instance.$_or
+              ?.map((e) => CopyWith$Input$UniversalDividendBoolExp(
+                    e,
+                    (i) => i,
+                  )))?.toList());
+
+  CopyWith$Input$IntComparisonExp<TRes> get amount {
+    final local$amount = _instance.amount;
+    return local$amount == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(local$amount, (e) => call(amount: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber {
+    final local$blockNumber = _instance.blockNumber;
+    return local$blockNumber == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$blockNumber, (e) => call(blockNumber: e));
+  }
+
+  CopyWith$Input$EventBoolExp<TRes> get event {
+    final local$event = _instance.event;
+    return local$event == null
+        ? CopyWith$Input$EventBoolExp.stub(_then(_instance))
+        : CopyWith$Input$EventBoolExp(local$event, (e) => call(event: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get eventId {
+    final local$eventId = _instance.eventId;
+    return local$eventId == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(
+            local$eventId, (e) => call(eventId: e));
+  }
+
+  CopyWith$Input$StringComparisonExp<TRes> get id {
+    final local$id = _instance.id;
+    return local$id == null
+        ? CopyWith$Input$StringComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$StringComparisonExp(local$id, (e) => call(id: e));
+  }
+
+  CopyWith$Input$IntComparisonExp<TRes> get membersCount {
+    final local$membersCount = _instance.membersCount;
+    return local$membersCount == null
+        ? CopyWith$Input$IntComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$IntComparisonExp(
+            local$membersCount, (e) => call(membersCount: e));
+  }
+
+  CopyWith$Input$NumericComparisonExp<TRes> get monetaryMass {
+    final local$monetaryMass = _instance.monetaryMass;
+    return local$monetaryMass == null
+        ? CopyWith$Input$NumericComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$NumericComparisonExp(
+            local$monetaryMass, (e) => call(monetaryMass: e));
+  }
+
+  CopyWith$Input$TimestamptzComparisonExp<TRes> get timestamp {
+    final local$timestamp = _instance.timestamp;
+    return local$timestamp == null
+        ? CopyWith$Input$TimestamptzComparisonExp.stub(_then(_instance))
+        : CopyWith$Input$TimestamptzComparisonExp(
+            local$timestamp, (e) => call(timestamp: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$UniversalDividendBoolExp<TRes>
+    implements CopyWith$Input$UniversalDividendBoolExp<TRes> {
+  _CopyWithStubImpl$Input$UniversalDividendBoolExp(this._res);
+
+  TRes _res;
+
+  call({
+    List<Input$UniversalDividendBoolExp>? $_and,
+    Input$UniversalDividendBoolExp? $_not,
+    List<Input$UniversalDividendBoolExp>? $_or,
+    Input$IntComparisonExp? amount,
+    Input$IntComparisonExp? blockNumber,
+    Input$EventBoolExp? event,
+    Input$StringComparisonExp? eventId,
+    Input$StringComparisonExp? id,
+    Input$IntComparisonExp? membersCount,
+    Input$NumericComparisonExp? monetaryMass,
+    Input$TimestamptzComparisonExp? timestamp,
+  }) =>
+      _res;
+
+  $_and(_fn) => _res;
+
+  CopyWith$Input$UniversalDividendBoolExp<TRes> get $_not =>
+      CopyWith$Input$UniversalDividendBoolExp.stub(_res);
+
+  $_or(_fn) => _res;
+
+  CopyWith$Input$IntComparisonExp<TRes> get amount =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get blockNumber =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$EventBoolExp<TRes> get event =>
+      CopyWith$Input$EventBoolExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get eventId =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$StringComparisonExp<TRes> get id =>
+      CopyWith$Input$StringComparisonExp.stub(_res);
+
+  CopyWith$Input$IntComparisonExp<TRes> get membersCount =>
+      CopyWith$Input$IntComparisonExp.stub(_res);
+
+  CopyWith$Input$NumericComparisonExp<TRes> get monetaryMass =>
+      CopyWith$Input$NumericComparisonExp.stub(_res);
+
+  CopyWith$Input$TimestamptzComparisonExp<TRes> get timestamp =>
+      CopyWith$Input$TimestamptzComparisonExp.stub(_res);
+}
+
+class Input$UniversalDividendOrderBy {
+  factory Input$UniversalDividendOrderBy({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Input$EventOrderBy? event,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? membersCount,
+    Enum$OrderBy? monetaryMass,
+    Enum$OrderBy? timestamp,
+  }) =>
+      Input$UniversalDividendOrderBy._({
+        if (amount != null) r'amount': amount,
+        if (blockNumber != null) r'blockNumber': blockNumber,
+        if (event != null) r'event': event,
+        if (eventId != null) r'eventId': eventId,
+        if (id != null) r'id': id,
+        if (membersCount != null) r'membersCount': membersCount,
+        if (monetaryMass != null) r'monetaryMass': monetaryMass,
+        if (timestamp != null) r'timestamp': timestamp,
+      });
+
+  Input$UniversalDividendOrderBy._(this._$data);
+
+  factory Input$UniversalDividendOrderBy.fromJson(Map<String, dynamic> data) {
+    final result$data = <String, dynamic>{};
+    if (data.containsKey('amount')) {
+      final l$amount = data['amount'];
+      result$data['amount'] =
+          l$amount == null ? null : fromJson$Enum$OrderBy((l$amount as String));
+    }
+    if (data.containsKey('blockNumber')) {
+      final l$blockNumber = data['blockNumber'];
+      result$data['blockNumber'] = l$blockNumber == null
+          ? null
+          : fromJson$Enum$OrderBy((l$blockNumber as String));
+    }
+    if (data.containsKey('event')) {
+      final l$event = data['event'];
+      result$data['event'] = l$event == null
+          ? null
+          : Input$EventOrderBy.fromJson((l$event as Map<String, dynamic>));
+    }
+    if (data.containsKey('eventId')) {
+      final l$eventId = data['eventId'];
+      result$data['eventId'] = l$eventId == null
+          ? null
+          : fromJson$Enum$OrderBy((l$eventId as String));
+    }
+    if (data.containsKey('id')) {
+      final l$id = data['id'];
+      result$data['id'] =
+          l$id == null ? null : fromJson$Enum$OrderBy((l$id as String));
+    }
+    if (data.containsKey('membersCount')) {
+      final l$membersCount = data['membersCount'];
+      result$data['membersCount'] = l$membersCount == null
+          ? null
+          : fromJson$Enum$OrderBy((l$membersCount as String));
+    }
+    if (data.containsKey('monetaryMass')) {
+      final l$monetaryMass = data['monetaryMass'];
+      result$data['monetaryMass'] = l$monetaryMass == null
+          ? null
+          : fromJson$Enum$OrderBy((l$monetaryMass as String));
+    }
+    if (data.containsKey('timestamp')) {
+      final l$timestamp = data['timestamp'];
+      result$data['timestamp'] = l$timestamp == null
+          ? null
+          : fromJson$Enum$OrderBy((l$timestamp as String));
+    }
+    return Input$UniversalDividendOrderBy._(result$data);
+  }
+
+  Map<String, dynamic> _$data;
+
+  Enum$OrderBy? get amount => (_$data['amount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get blockNumber => (_$data['blockNumber'] as Enum$OrderBy?);
+
+  Input$EventOrderBy? get event => (_$data['event'] as Input$EventOrderBy?);
+
+  Enum$OrderBy? get eventId => (_$data['eventId'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get id => (_$data['id'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get membersCount => (_$data['membersCount'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get monetaryMass => (_$data['monetaryMass'] as Enum$OrderBy?);
+
+  Enum$OrderBy? get timestamp => (_$data['timestamp'] as Enum$OrderBy?);
+
+  Map<String, dynamic> toJson() {
+    final result$data = <String, dynamic>{};
+    if (_$data.containsKey('amount')) {
+      final l$amount = amount;
+      result$data['amount'] =
+          l$amount == null ? null : toJson$Enum$OrderBy(l$amount);
+    }
+    if (_$data.containsKey('blockNumber')) {
+      final l$blockNumber = blockNumber;
+      result$data['blockNumber'] =
+          l$blockNumber == null ? null : toJson$Enum$OrderBy(l$blockNumber);
+    }
+    if (_$data.containsKey('event')) {
+      final l$event = event;
+      result$data['event'] = l$event?.toJson();
+    }
+    if (_$data.containsKey('eventId')) {
+      final l$eventId = eventId;
+      result$data['eventId'] =
+          l$eventId == null ? null : toJson$Enum$OrderBy(l$eventId);
+    }
+    if (_$data.containsKey('id')) {
+      final l$id = id;
+      result$data['id'] = l$id == null ? null : toJson$Enum$OrderBy(l$id);
+    }
+    if (_$data.containsKey('membersCount')) {
+      final l$membersCount = membersCount;
+      result$data['membersCount'] =
+          l$membersCount == null ? null : toJson$Enum$OrderBy(l$membersCount);
+    }
+    if (_$data.containsKey('monetaryMass')) {
+      final l$monetaryMass = monetaryMass;
+      result$data['monetaryMass'] =
+          l$monetaryMass == null ? null : toJson$Enum$OrderBy(l$monetaryMass);
+    }
+    if (_$data.containsKey('timestamp')) {
+      final l$timestamp = timestamp;
+      result$data['timestamp'] =
+          l$timestamp == null ? null : toJson$Enum$OrderBy(l$timestamp);
+    }
+    return result$data;
+  }
+
+  CopyWith$Input$UniversalDividendOrderBy<Input$UniversalDividendOrderBy>
+      get copyWith => CopyWith$Input$UniversalDividendOrderBy(
+            this,
+            (i) => i,
+          );
+
+  @override
+  bool operator ==(Object other) {
+    if (identical(this, other)) {
+      return true;
+    }
+    if (!(other is Input$UniversalDividendOrderBy) ||
+        runtimeType != other.runtimeType) {
+      return false;
+    }
+    final l$amount = amount;
+    final lOther$amount = other.amount;
+    if (_$data.containsKey('amount') != other._$data.containsKey('amount')) {
+      return false;
+    }
+    if (l$amount != lOther$amount) {
+      return false;
+    }
+    final l$blockNumber = blockNumber;
+    final lOther$blockNumber = other.blockNumber;
+    if (_$data.containsKey('blockNumber') !=
+        other._$data.containsKey('blockNumber')) {
+      return false;
+    }
+    if (l$blockNumber != lOther$blockNumber) {
+      return false;
+    }
+    final l$event = event;
+    final lOther$event = other.event;
+    if (_$data.containsKey('event') != other._$data.containsKey('event')) {
+      return false;
+    }
+    if (l$event != lOther$event) {
+      return false;
+    }
+    final l$eventId = eventId;
+    final lOther$eventId = other.eventId;
+    if (_$data.containsKey('eventId') != other._$data.containsKey('eventId')) {
+      return false;
+    }
+    if (l$eventId != lOther$eventId) {
+      return false;
+    }
+    final l$id = id;
+    final lOther$id = other.id;
+    if (_$data.containsKey('id') != other._$data.containsKey('id')) {
+      return false;
+    }
+    if (l$id != lOther$id) {
+      return false;
+    }
+    final l$membersCount = membersCount;
+    final lOther$membersCount = other.membersCount;
+    if (_$data.containsKey('membersCount') !=
+        other._$data.containsKey('membersCount')) {
+      return false;
+    }
+    if (l$membersCount != lOther$membersCount) {
+      return false;
+    }
+    final l$monetaryMass = monetaryMass;
+    final lOther$monetaryMass = other.monetaryMass;
+    if (_$data.containsKey('monetaryMass') !=
+        other._$data.containsKey('monetaryMass')) {
+      return false;
+    }
+    if (l$monetaryMass != lOther$monetaryMass) {
+      return false;
+    }
+    final l$timestamp = timestamp;
+    final lOther$timestamp = other.timestamp;
+    if (_$data.containsKey('timestamp') !=
+        other._$data.containsKey('timestamp')) {
+      return false;
+    }
+    if (l$timestamp != lOther$timestamp) {
+      return false;
+    }
+    return true;
+  }
+
+  @override
+  int get hashCode {
+    final l$amount = amount;
+    final l$blockNumber = blockNumber;
+    final l$event = event;
+    final l$eventId = eventId;
+    final l$id = id;
+    final l$membersCount = membersCount;
+    final l$monetaryMass = monetaryMass;
+    final l$timestamp = timestamp;
+    return Object.hashAll([
+      _$data.containsKey('amount') ? l$amount : const {},
+      _$data.containsKey('blockNumber') ? l$blockNumber : const {},
+      _$data.containsKey('event') ? l$event : const {},
+      _$data.containsKey('eventId') ? l$eventId : const {},
+      _$data.containsKey('id') ? l$id : const {},
+      _$data.containsKey('membersCount') ? l$membersCount : const {},
+      _$data.containsKey('monetaryMass') ? l$monetaryMass : const {},
+      _$data.containsKey('timestamp') ? l$timestamp : const {},
+    ]);
+  }
+}
+
+abstract class CopyWith$Input$UniversalDividendOrderBy<TRes> {
+  factory CopyWith$Input$UniversalDividendOrderBy(
+    Input$UniversalDividendOrderBy instance,
+    TRes Function(Input$UniversalDividendOrderBy) then,
+  ) = _CopyWithImpl$Input$UniversalDividendOrderBy;
+
+  factory CopyWith$Input$UniversalDividendOrderBy.stub(TRes res) =
+      _CopyWithStubImpl$Input$UniversalDividendOrderBy;
+
+  TRes call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Input$EventOrderBy? event,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? membersCount,
+    Enum$OrderBy? monetaryMass,
+    Enum$OrderBy? timestamp,
+  });
+  CopyWith$Input$EventOrderBy<TRes> get event;
+}
+
+class _CopyWithImpl$Input$UniversalDividendOrderBy<TRes>
+    implements CopyWith$Input$UniversalDividendOrderBy<TRes> {
+  _CopyWithImpl$Input$UniversalDividendOrderBy(
+    this._instance,
+    this._then,
+  );
+
+  final Input$UniversalDividendOrderBy _instance;
+
+  final TRes Function(Input$UniversalDividendOrderBy) _then;
+
+  static const _undefined = <dynamic, dynamic>{};
+
+  TRes call({
+    Object? amount = _undefined,
+    Object? blockNumber = _undefined,
+    Object? event = _undefined,
+    Object? eventId = _undefined,
+    Object? id = _undefined,
+    Object? membersCount = _undefined,
+    Object? monetaryMass = _undefined,
+    Object? timestamp = _undefined,
+  }) =>
+      _then(Input$UniversalDividendOrderBy._({
+        ..._instance._$data,
+        if (amount != _undefined) 'amount': (amount as Enum$OrderBy?),
+        if (blockNumber != _undefined)
+          'blockNumber': (blockNumber as Enum$OrderBy?),
+        if (event != _undefined) 'event': (event as Input$EventOrderBy?),
+        if (eventId != _undefined) 'eventId': (eventId as Enum$OrderBy?),
+        if (id != _undefined) 'id': (id as Enum$OrderBy?),
+        if (membersCount != _undefined)
+          'membersCount': (membersCount as Enum$OrderBy?),
+        if (monetaryMass != _undefined)
+          'monetaryMass': (monetaryMass as Enum$OrderBy?),
+        if (timestamp != _undefined) 'timestamp': (timestamp as Enum$OrderBy?),
+      }));
+
+  CopyWith$Input$EventOrderBy<TRes> get event {
+    final local$event = _instance.event;
+    return local$event == null
+        ? CopyWith$Input$EventOrderBy.stub(_then(_instance))
+        : CopyWith$Input$EventOrderBy(local$event, (e) => call(event: e));
+  }
+}
+
+class _CopyWithStubImpl$Input$UniversalDividendOrderBy<TRes>
+    implements CopyWith$Input$UniversalDividendOrderBy<TRes> {
+  _CopyWithStubImpl$Input$UniversalDividendOrderBy(this._res);
+
+  TRes _res;
+
+  call({
+    Enum$OrderBy? amount,
+    Enum$OrderBy? blockNumber,
+    Input$EventOrderBy? event,
+    Enum$OrderBy? eventId,
+    Enum$OrderBy? id,
+    Enum$OrderBy? membersCount,
+    Enum$OrderBy? monetaryMass,
+    Enum$OrderBy? timestamp,
+  }) =>
+      _res;
+
+  CopyWith$Input$EventOrderBy<TRes> get event =>
+      CopyWith$Input$EventOrderBy.stub(_res);
+}
+
+enum Enum$AccountSelectColumn { id, linkedIdentityId, $unknown }
+
+String toJson$Enum$AccountSelectColumn(Enum$AccountSelectColumn e) {
+  switch (e) {
+    case Enum$AccountSelectColumn.id:
+      return r'id';
+    case Enum$AccountSelectColumn.linkedIdentityId:
+      return r'linkedIdentityId';
+    case Enum$AccountSelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$AccountSelectColumn fromJson$Enum$AccountSelectColumn(String value) {
+  switch (value) {
+    case r'id':
+      return Enum$AccountSelectColumn.id;
+    case r'linkedIdentityId':
+      return Enum$AccountSelectColumn.linkedIdentityId;
+    default:
+      return Enum$AccountSelectColumn.$unknown;
+  }
+}
+
+enum Enum$BlockSelectColumn {
+  callsCount,
+  eventsCount,
+  extrinsicsCount,
+  extrinsicsicRoot,
+  hash,
+  height,
+  id,
+  implName,
+  implVersion,
+  parentHash,
+  specName,
+  specVersion,
+  stateRoot,
+  timestamp,
+  validator,
+  $unknown
+}
+
+String toJson$Enum$BlockSelectColumn(Enum$BlockSelectColumn e) {
+  switch (e) {
+    case Enum$BlockSelectColumn.callsCount:
+      return r'callsCount';
+    case Enum$BlockSelectColumn.eventsCount:
+      return r'eventsCount';
+    case Enum$BlockSelectColumn.extrinsicsCount:
+      return r'extrinsicsCount';
+    case Enum$BlockSelectColumn.extrinsicsicRoot:
+      return r'extrinsicsicRoot';
+    case Enum$BlockSelectColumn.hash:
+      return r'hash';
+    case Enum$BlockSelectColumn.height:
+      return r'height';
+    case Enum$BlockSelectColumn.id:
+      return r'id';
+    case Enum$BlockSelectColumn.implName:
+      return r'implName';
+    case Enum$BlockSelectColumn.implVersion:
+      return r'implVersion';
+    case Enum$BlockSelectColumn.parentHash:
+      return r'parentHash';
+    case Enum$BlockSelectColumn.specName:
+      return r'specName';
+    case Enum$BlockSelectColumn.specVersion:
+      return r'specVersion';
+    case Enum$BlockSelectColumn.stateRoot:
+      return r'stateRoot';
+    case Enum$BlockSelectColumn.timestamp:
+      return r'timestamp';
+    case Enum$BlockSelectColumn.validator:
+      return r'validator';
+    case Enum$BlockSelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$BlockSelectColumn fromJson$Enum$BlockSelectColumn(String value) {
+  switch (value) {
+    case r'callsCount':
+      return Enum$BlockSelectColumn.callsCount;
+    case r'eventsCount':
+      return Enum$BlockSelectColumn.eventsCount;
+    case r'extrinsicsCount':
+      return Enum$BlockSelectColumn.extrinsicsCount;
+    case r'extrinsicsicRoot':
+      return Enum$BlockSelectColumn.extrinsicsicRoot;
+    case r'hash':
+      return Enum$BlockSelectColumn.hash;
+    case r'height':
+      return Enum$BlockSelectColumn.height;
+    case r'id':
+      return Enum$BlockSelectColumn.id;
+    case r'implName':
+      return Enum$BlockSelectColumn.implName;
+    case r'implVersion':
+      return Enum$BlockSelectColumn.implVersion;
+    case r'parentHash':
+      return Enum$BlockSelectColumn.parentHash;
+    case r'specName':
+      return Enum$BlockSelectColumn.specName;
+    case r'specVersion':
+      return Enum$BlockSelectColumn.specVersion;
+    case r'stateRoot':
+      return Enum$BlockSelectColumn.stateRoot;
+    case r'timestamp':
+      return Enum$BlockSelectColumn.timestamp;
+    case r'validator':
+      return Enum$BlockSelectColumn.validator;
+    default:
+      return Enum$BlockSelectColumn.$unknown;
+  }
+}
+
+enum Enum$CallSelectColumn {
+  address,
+  args,
+  argsStr,
+  blockId,
+  error,
+  extrinsicId,
+  id,
+  name,
+  pallet,
+  parentId,
+  success,
+  $unknown
+}
+
+String toJson$Enum$CallSelectColumn(Enum$CallSelectColumn e) {
+  switch (e) {
+    case Enum$CallSelectColumn.address:
+      return r'address';
+    case Enum$CallSelectColumn.args:
+      return r'args';
+    case Enum$CallSelectColumn.argsStr:
+      return r'argsStr';
+    case Enum$CallSelectColumn.blockId:
+      return r'blockId';
+    case Enum$CallSelectColumn.error:
+      return r'error';
+    case Enum$CallSelectColumn.extrinsicId:
+      return r'extrinsicId';
+    case Enum$CallSelectColumn.id:
+      return r'id';
+    case Enum$CallSelectColumn.name:
+      return r'name';
+    case Enum$CallSelectColumn.pallet:
+      return r'pallet';
+    case Enum$CallSelectColumn.parentId:
+      return r'parentId';
+    case Enum$CallSelectColumn.success:
+      return r'success';
+    case Enum$CallSelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$CallSelectColumn fromJson$Enum$CallSelectColumn(String value) {
+  switch (value) {
+    case r'address':
+      return Enum$CallSelectColumn.address;
+    case r'args':
+      return Enum$CallSelectColumn.args;
+    case r'argsStr':
+      return Enum$CallSelectColumn.argsStr;
+    case r'blockId':
+      return Enum$CallSelectColumn.blockId;
+    case r'error':
+      return Enum$CallSelectColumn.error;
+    case r'extrinsicId':
+      return Enum$CallSelectColumn.extrinsicId;
+    case r'id':
+      return Enum$CallSelectColumn.id;
+    case r'name':
+      return Enum$CallSelectColumn.name;
+    case r'pallet':
+      return Enum$CallSelectColumn.pallet;
+    case r'parentId':
+      return Enum$CallSelectColumn.parentId;
+    case r'success':
+      return Enum$CallSelectColumn.success;
+    default:
+      return Enum$CallSelectColumn.$unknown;
+  }
+}
+
+enum Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns {
+  success,
+  $unknown
+}
+
+String toJson$Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns(
+    Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns e) {
+  switch (e) {
+    case Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns
+          .success:
+      return r'success';
+    case Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns
+          .$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns
+    fromJson$Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns(
+        String value) {
+  switch (value) {
+    case r'success':
+      return Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns
+          .success;
+    default:
+      return Enum$CallSelectColumnCallAggregateBoolExpBool_andArgumentsColumns
+          .$unknown;
+  }
+}
+
+enum Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns {
+  success,
+  $unknown
+}
+
+String toJson$Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns(
+    Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns e) {
+  switch (e) {
+    case Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns
+          .success:
+      return r'success';
+    case Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns
+          .$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns
+    fromJson$Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns(
+        String value) {
+  switch (value) {
+    case r'success':
+      return Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns
+          .success;
+    default:
+      return Enum$CallSelectColumnCallAggregateBoolExpBool_orArgumentsColumns
+          .$unknown;
+  }
+}
+
+enum Enum$CertEventSelectColumn {
+  blockNumber,
+  certId,
+  eventId,
+  eventType,
+  id,
+  $unknown
+}
+
+String toJson$Enum$CertEventSelectColumn(Enum$CertEventSelectColumn e) {
+  switch (e) {
+    case Enum$CertEventSelectColumn.blockNumber:
+      return r'blockNumber';
+    case Enum$CertEventSelectColumn.certId:
+      return r'certId';
+    case Enum$CertEventSelectColumn.eventId:
+      return r'eventId';
+    case Enum$CertEventSelectColumn.eventType:
+      return r'eventType';
+    case Enum$CertEventSelectColumn.id:
+      return r'id';
+    case Enum$CertEventSelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$CertEventSelectColumn fromJson$Enum$CertEventSelectColumn(String value) {
+  switch (value) {
+    case r'blockNumber':
+      return Enum$CertEventSelectColumn.blockNumber;
+    case r'certId':
+      return Enum$CertEventSelectColumn.certId;
+    case r'eventId':
+      return Enum$CertEventSelectColumn.eventId;
+    case r'eventType':
+      return Enum$CertEventSelectColumn.eventType;
+    case r'id':
+      return Enum$CertEventSelectColumn.id;
+    default:
+      return Enum$CertEventSelectColumn.$unknown;
+  }
+}
+
+enum Enum$CertSelectColumn {
+  createdOn,
+  expireOn,
+  id,
+  isActive,
+  issuerId,
+  receiverId,
+  $unknown
+}
+
+String toJson$Enum$CertSelectColumn(Enum$CertSelectColumn e) {
+  switch (e) {
+    case Enum$CertSelectColumn.createdOn:
+      return r'createdOn';
+    case Enum$CertSelectColumn.expireOn:
+      return r'expireOn';
+    case Enum$CertSelectColumn.id:
+      return r'id';
+    case Enum$CertSelectColumn.isActive:
+      return r'isActive';
+    case Enum$CertSelectColumn.issuerId:
+      return r'issuerId';
+    case Enum$CertSelectColumn.receiverId:
+      return r'receiverId';
+    case Enum$CertSelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$CertSelectColumn fromJson$Enum$CertSelectColumn(String value) {
+  switch (value) {
+    case r'createdOn':
+      return Enum$CertSelectColumn.createdOn;
+    case r'expireOn':
+      return Enum$CertSelectColumn.expireOn;
+    case r'id':
+      return Enum$CertSelectColumn.id;
+    case r'isActive':
+      return Enum$CertSelectColumn.isActive;
+    case r'issuerId':
+      return Enum$CertSelectColumn.issuerId;
+    case r'receiverId':
+      return Enum$CertSelectColumn.receiverId;
+    default:
+      return Enum$CertSelectColumn.$unknown;
+  }
+}
+
+enum Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns {
+  isActive,
+  $unknown
+}
+
+String toJson$Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns(
+    Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns e) {
+  switch (e) {
+    case Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns
+          .isActive:
+      return r'isActive';
+    case Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns
+          .$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns
+    fromJson$Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns(
+        String value) {
+  switch (value) {
+    case r'isActive':
+      return Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns
+          .isActive;
+    default:
+      return Enum$CertSelectColumnCertAggregateBoolExpBool_andArgumentsColumns
+          .$unknown;
+  }
+}
+
+enum Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns {
+  isActive,
+  $unknown
+}
+
+String toJson$Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns(
+    Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns e) {
+  switch (e) {
+    case Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns
+          .isActive:
+      return r'isActive';
+    case Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns
+          .$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns
+    fromJson$Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns(
+        String value) {
+  switch (value) {
+    case r'isActive':
+      return Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns
+          .isActive;
+    default:
+      return Enum$CertSelectColumnCertAggregateBoolExpBool_orArgumentsColumns
+          .$unknown;
+  }
+}
+
+enum Enum$ChangeOwnerKeySelectColumn {
+  blockNumber,
+  id,
+  identityId,
+  nextId,
+  previousId,
+  $unknown
+}
+
+String toJson$Enum$ChangeOwnerKeySelectColumn(
+    Enum$ChangeOwnerKeySelectColumn e) {
+  switch (e) {
+    case Enum$ChangeOwnerKeySelectColumn.blockNumber:
+      return r'blockNumber';
+    case Enum$ChangeOwnerKeySelectColumn.id:
+      return r'id';
+    case Enum$ChangeOwnerKeySelectColumn.identityId:
+      return r'identityId';
+    case Enum$ChangeOwnerKeySelectColumn.nextId:
+      return r'nextId';
+    case Enum$ChangeOwnerKeySelectColumn.previousId:
+      return r'previousId';
+    case Enum$ChangeOwnerKeySelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$ChangeOwnerKeySelectColumn fromJson$Enum$ChangeOwnerKeySelectColumn(
+    String value) {
+  switch (value) {
+    case r'blockNumber':
+      return Enum$ChangeOwnerKeySelectColumn.blockNumber;
+    case r'id':
+      return Enum$ChangeOwnerKeySelectColumn.id;
+    case r'identityId':
+      return Enum$ChangeOwnerKeySelectColumn.identityId;
+    case r'nextId':
+      return Enum$ChangeOwnerKeySelectColumn.nextId;
+    case r'previousId':
+      return Enum$ChangeOwnerKeySelectColumn.previousId;
+    default:
+      return Enum$ChangeOwnerKeySelectColumn.$unknown;
+  }
+}
+
+enum Enum$CounterLevelEnum { GLOBAL, ITEM, PALLET, $unknown }
+
+String toJson$Enum$CounterLevelEnum(Enum$CounterLevelEnum e) {
+  switch (e) {
+    case Enum$CounterLevelEnum.GLOBAL:
+      return r'GLOBAL';
+    case Enum$CounterLevelEnum.ITEM:
+      return r'ITEM';
+    case Enum$CounterLevelEnum.PALLET:
+      return r'PALLET';
+    case Enum$CounterLevelEnum.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$CounterLevelEnum fromJson$Enum$CounterLevelEnum(String value) {
+  switch (value) {
+    case r'GLOBAL':
+      return Enum$CounterLevelEnum.GLOBAL;
+    case r'ITEM':
+      return Enum$CounterLevelEnum.ITEM;
+    case r'PALLET':
+      return Enum$CounterLevelEnum.PALLET;
+    default:
+      return Enum$CounterLevelEnum.$unknown;
+  }
+}
+
+enum Enum$EventSelectColumn {
+  args,
+  argsStr,
+  blockId,
+  callId,
+  extrinsicId,
+  id,
+  indexEnum,
+  name,
+  pallet,
+  phase,
+  $unknown
+}
+
+String toJson$Enum$EventSelectColumn(Enum$EventSelectColumn e) {
+  switch (e) {
+    case Enum$EventSelectColumn.args:
+      return r'args';
+    case Enum$EventSelectColumn.argsStr:
+      return r'argsStr';
+    case Enum$EventSelectColumn.blockId:
+      return r'blockId';
+    case Enum$EventSelectColumn.callId:
+      return r'callId';
+    case Enum$EventSelectColumn.extrinsicId:
+      return r'extrinsicId';
+    case Enum$EventSelectColumn.id:
+      return r'id';
+    case Enum$EventSelectColumn.indexEnum:
+      return r'index';
+    case Enum$EventSelectColumn.name:
+      return r'name';
+    case Enum$EventSelectColumn.pallet:
+      return r'pallet';
+    case Enum$EventSelectColumn.phase:
+      return r'phase';
+    case Enum$EventSelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$EventSelectColumn fromJson$Enum$EventSelectColumn(String value) {
+  switch (value) {
+    case r'args':
+      return Enum$EventSelectColumn.args;
+    case r'argsStr':
+      return Enum$EventSelectColumn.argsStr;
+    case r'blockId':
+      return Enum$EventSelectColumn.blockId;
+    case r'callId':
+      return Enum$EventSelectColumn.callId;
+    case r'extrinsicId':
+      return Enum$EventSelectColumn.extrinsicId;
+    case r'id':
+      return Enum$EventSelectColumn.id;
+    case r'index':
+      return Enum$EventSelectColumn.indexEnum;
+    case r'name':
+      return Enum$EventSelectColumn.name;
+    case r'pallet':
+      return Enum$EventSelectColumn.pallet;
+    case r'phase':
+      return Enum$EventSelectColumn.phase;
+    default:
+      return Enum$EventSelectColumn.$unknown;
+  }
+}
+
+enum Enum$EventTypeEnum { CREATION, REMOVAL, RENEWAL, $unknown }
+
+String toJson$Enum$EventTypeEnum(Enum$EventTypeEnum e) {
+  switch (e) {
+    case Enum$EventTypeEnum.CREATION:
+      return r'CREATION';
+    case Enum$EventTypeEnum.REMOVAL:
+      return r'REMOVAL';
+    case Enum$EventTypeEnum.RENEWAL:
+      return r'RENEWAL';
+    case Enum$EventTypeEnum.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$EventTypeEnum fromJson$Enum$EventTypeEnum(String value) {
+  switch (value) {
+    case r'CREATION':
+      return Enum$EventTypeEnum.CREATION;
+    case r'REMOVAL':
+      return Enum$EventTypeEnum.REMOVAL;
+    case r'RENEWAL':
+      return Enum$EventTypeEnum.RENEWAL;
+    default:
+      return Enum$EventTypeEnum.$unknown;
+  }
+}
+
+enum Enum$ExtrinsicSelectColumn {
+  blockId,
+  callId,
+  error,
+  fee,
+  hash,
+  id,
+  indexEnum,
+  signature,
+  success,
+  tip,
+  version,
+  $unknown
+}
+
+String toJson$Enum$ExtrinsicSelectColumn(Enum$ExtrinsicSelectColumn e) {
+  switch (e) {
+    case Enum$ExtrinsicSelectColumn.blockId:
+      return r'blockId';
+    case Enum$ExtrinsicSelectColumn.callId:
+      return r'callId';
+    case Enum$ExtrinsicSelectColumn.error:
+      return r'error';
+    case Enum$ExtrinsicSelectColumn.fee:
+      return r'fee';
+    case Enum$ExtrinsicSelectColumn.hash:
+      return r'hash';
+    case Enum$ExtrinsicSelectColumn.id:
+      return r'id';
+    case Enum$ExtrinsicSelectColumn.indexEnum:
+      return r'index';
+    case Enum$ExtrinsicSelectColumn.signature:
+      return r'signature';
+    case Enum$ExtrinsicSelectColumn.success:
+      return r'success';
+    case Enum$ExtrinsicSelectColumn.tip:
+      return r'tip';
+    case Enum$ExtrinsicSelectColumn.version:
+      return r'version';
+    case Enum$ExtrinsicSelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$ExtrinsicSelectColumn fromJson$Enum$ExtrinsicSelectColumn(String value) {
+  switch (value) {
+    case r'blockId':
+      return Enum$ExtrinsicSelectColumn.blockId;
+    case r'callId':
+      return Enum$ExtrinsicSelectColumn.callId;
+    case r'error':
+      return Enum$ExtrinsicSelectColumn.error;
+    case r'fee':
+      return Enum$ExtrinsicSelectColumn.fee;
+    case r'hash':
+      return Enum$ExtrinsicSelectColumn.hash;
+    case r'id':
+      return Enum$ExtrinsicSelectColumn.id;
+    case r'index':
+      return Enum$ExtrinsicSelectColumn.indexEnum;
+    case r'signature':
+      return Enum$ExtrinsicSelectColumn.signature;
+    case r'success':
+      return Enum$ExtrinsicSelectColumn.success;
+    case r'tip':
+      return Enum$ExtrinsicSelectColumn.tip;
+    case r'version':
+      return Enum$ExtrinsicSelectColumn.version;
+    default:
+      return Enum$ExtrinsicSelectColumn.$unknown;
+  }
+}
+
+enum Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns {
+  success,
+  $unknown
+}
+
+String toJson$Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns(
+    Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns
+        e) {
+  switch (e) {
+    case Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns
+          .success:
+      return r'success';
+    case Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns
+          .$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns
+    fromJson$Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns(
+        String value) {
+  switch (value) {
+    case r'success':
+      return Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns
+          .success;
+    default:
+      return Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_andArgumentsColumns
+          .$unknown;
+  }
+}
+
+enum Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns {
+  success,
+  $unknown
+}
+
+String
+    toJson$Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns(
+        Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns
+            e) {
+  switch (e) {
+    case Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns
+          .success:
+      return r'success';
+    case Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns
+          .$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns
+    fromJson$Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns(
+        String value) {
+  switch (value) {
+    case r'success':
+      return Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns
+          .success;
+    default:
+      return Enum$ExtrinsicSelectColumnExtrinsicAggregateBoolExpBool_orArgumentsColumns
+          .$unknown;
+  }
+}
+
+enum Enum$IdentitySelectColumn {
+  accountId,
+  createdInId,
+  createdOn,
+  expireOn,
+  id,
+  indexEnum,
+  isMember,
+  lastChangeOn,
+  name,
+  smithStatus,
+  status,
+  $unknown
+}
+
+String toJson$Enum$IdentitySelectColumn(Enum$IdentitySelectColumn e) {
+  switch (e) {
+    case Enum$IdentitySelectColumn.accountId:
+      return r'accountId';
+    case Enum$IdentitySelectColumn.createdInId:
+      return r'createdInId';
+    case Enum$IdentitySelectColumn.createdOn:
+      return r'createdOn';
+    case Enum$IdentitySelectColumn.expireOn:
+      return r'expireOn';
+    case Enum$IdentitySelectColumn.id:
+      return r'id';
+    case Enum$IdentitySelectColumn.indexEnum:
+      return r'index';
+    case Enum$IdentitySelectColumn.isMember:
+      return r'isMember';
+    case Enum$IdentitySelectColumn.lastChangeOn:
+      return r'lastChangeOn';
+    case Enum$IdentitySelectColumn.name:
+      return r'name';
+    case Enum$IdentitySelectColumn.smithStatus:
+      return r'smithStatus';
+    case Enum$IdentitySelectColumn.status:
+      return r'status';
+    case Enum$IdentitySelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$IdentitySelectColumn fromJson$Enum$IdentitySelectColumn(String value) {
+  switch (value) {
+    case r'accountId':
+      return Enum$IdentitySelectColumn.accountId;
+    case r'createdInId':
+      return Enum$IdentitySelectColumn.createdInId;
+    case r'createdOn':
+      return Enum$IdentitySelectColumn.createdOn;
+    case r'expireOn':
+      return Enum$IdentitySelectColumn.expireOn;
+    case r'id':
+      return Enum$IdentitySelectColumn.id;
+    case r'index':
+      return Enum$IdentitySelectColumn.indexEnum;
+    case r'isMember':
+      return Enum$IdentitySelectColumn.isMember;
+    case r'lastChangeOn':
+      return Enum$IdentitySelectColumn.lastChangeOn;
+    case r'name':
+      return Enum$IdentitySelectColumn.name;
+    case r'smithStatus':
+      return Enum$IdentitySelectColumn.smithStatus;
+    case r'status':
+      return Enum$IdentitySelectColumn.status;
+    default:
+      return Enum$IdentitySelectColumn.$unknown;
+  }
+}
+
+enum Enum$IdentityStatusEnum {
+  MEMBER,
+  NOTMEMBER,
+  REMOVED,
+  REVOKED,
+  UNCONFIRMED,
+  UNVALIDATED,
+  $unknown
+}
+
+String toJson$Enum$IdentityStatusEnum(Enum$IdentityStatusEnum e) {
+  switch (e) {
+    case Enum$IdentityStatusEnum.MEMBER:
+      return r'MEMBER';
+    case Enum$IdentityStatusEnum.NOTMEMBER:
+      return r'NOTMEMBER';
+    case Enum$IdentityStatusEnum.REMOVED:
+      return r'REMOVED';
+    case Enum$IdentityStatusEnum.REVOKED:
+      return r'REVOKED';
+    case Enum$IdentityStatusEnum.UNCONFIRMED:
+      return r'UNCONFIRMED';
+    case Enum$IdentityStatusEnum.UNVALIDATED:
+      return r'UNVALIDATED';
+    case Enum$IdentityStatusEnum.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$IdentityStatusEnum fromJson$Enum$IdentityStatusEnum(String value) {
+  switch (value) {
+    case r'MEMBER':
+      return Enum$IdentityStatusEnum.MEMBER;
+    case r'NOTMEMBER':
+      return Enum$IdentityStatusEnum.NOTMEMBER;
+    case r'REMOVED':
+      return Enum$IdentityStatusEnum.REMOVED;
+    case r'REVOKED':
+      return Enum$IdentityStatusEnum.REVOKED;
+    case r'UNCONFIRMED':
+      return Enum$IdentityStatusEnum.UNCONFIRMED;
+    case r'UNVALIDATED':
+      return Enum$IdentityStatusEnum.UNVALIDATED;
+    default:
+      return Enum$IdentityStatusEnum.$unknown;
+  }
+}
+
+enum Enum$ItemsCounterSelectColumn { id, level, total, type, $unknown }
+
+String toJson$Enum$ItemsCounterSelectColumn(Enum$ItemsCounterSelectColumn e) {
+  switch (e) {
+    case Enum$ItemsCounterSelectColumn.id:
+      return r'id';
+    case Enum$ItemsCounterSelectColumn.level:
+      return r'level';
+    case Enum$ItemsCounterSelectColumn.total:
+      return r'total';
+    case Enum$ItemsCounterSelectColumn.type:
+      return r'type';
+    case Enum$ItemsCounterSelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$ItemsCounterSelectColumn fromJson$Enum$ItemsCounterSelectColumn(
+    String value) {
+  switch (value) {
+    case r'id':
+      return Enum$ItemsCounterSelectColumn.id;
+    case r'level':
+      return Enum$ItemsCounterSelectColumn.level;
+    case r'total':
+      return Enum$ItemsCounterSelectColumn.total;
+    case r'type':
+      return Enum$ItemsCounterSelectColumn.type;
+    default:
+      return Enum$ItemsCounterSelectColumn.$unknown;
+  }
+}
+
+enum Enum$ItemTypeEnum { CALLS, EVENTS, EXTRINSICS, $unknown }
+
+String toJson$Enum$ItemTypeEnum(Enum$ItemTypeEnum e) {
+  switch (e) {
+    case Enum$ItemTypeEnum.CALLS:
+      return r'CALLS';
+    case Enum$ItemTypeEnum.EVENTS:
+      return r'EVENTS';
+    case Enum$ItemTypeEnum.EXTRINSICS:
+      return r'EXTRINSICS';
+    case Enum$ItemTypeEnum.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$ItemTypeEnum fromJson$Enum$ItemTypeEnum(String value) {
+  switch (value) {
+    case r'CALLS':
+      return Enum$ItemTypeEnum.CALLS;
+    case r'EVENTS':
+      return Enum$ItemTypeEnum.EVENTS;
+    case r'EXTRINSICS':
+      return Enum$ItemTypeEnum.EXTRINSICS;
+    default:
+      return Enum$ItemTypeEnum.$unknown;
+  }
+}
+
+enum Enum$MembershipEventSelectColumn {
+  blockNumber,
+  eventId,
+  eventType,
+  id,
+  identityId,
+  $unknown
+}
+
+String toJson$Enum$MembershipEventSelectColumn(
+    Enum$MembershipEventSelectColumn e) {
+  switch (e) {
+    case Enum$MembershipEventSelectColumn.blockNumber:
+      return r'blockNumber';
+    case Enum$MembershipEventSelectColumn.eventId:
+      return r'eventId';
+    case Enum$MembershipEventSelectColumn.eventType:
+      return r'eventType';
+    case Enum$MembershipEventSelectColumn.id:
+      return r'id';
+    case Enum$MembershipEventSelectColumn.identityId:
+      return r'identityId';
+    case Enum$MembershipEventSelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$MembershipEventSelectColumn fromJson$Enum$MembershipEventSelectColumn(
+    String value) {
+  switch (value) {
+    case r'blockNumber':
+      return Enum$MembershipEventSelectColumn.blockNumber;
+    case r'eventId':
+      return Enum$MembershipEventSelectColumn.eventId;
+    case r'eventType':
+      return Enum$MembershipEventSelectColumn.eventType;
+    case r'id':
+      return Enum$MembershipEventSelectColumn.id;
+    case r'identityId':
+      return Enum$MembershipEventSelectColumn.identityId;
+    default:
+      return Enum$MembershipEventSelectColumn.$unknown;
+  }
+}
+
+enum Enum$OrderBy {
+  ASC,
+  ASC_NULLS_FIRST,
+  ASC_NULLS_LAST,
+  DESC,
+  DESC_NULLS_FIRST,
+  DESC_NULLS_LAST,
+  $unknown
+}
+
+String toJson$Enum$OrderBy(Enum$OrderBy e) {
+  switch (e) {
+    case Enum$OrderBy.ASC:
+      return r'ASC';
+    case Enum$OrderBy.ASC_NULLS_FIRST:
+      return r'ASC_NULLS_FIRST';
+    case Enum$OrderBy.ASC_NULLS_LAST:
+      return r'ASC_NULLS_LAST';
+    case Enum$OrderBy.DESC:
+      return r'DESC';
+    case Enum$OrderBy.DESC_NULLS_FIRST:
+      return r'DESC_NULLS_FIRST';
+    case Enum$OrderBy.DESC_NULLS_LAST:
+      return r'DESC_NULLS_LAST';
+    case Enum$OrderBy.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$OrderBy fromJson$Enum$OrderBy(String value) {
+  switch (value) {
+    case r'ASC':
+      return Enum$OrderBy.ASC;
+    case r'ASC_NULLS_FIRST':
+      return Enum$OrderBy.ASC_NULLS_FIRST;
+    case r'ASC_NULLS_LAST':
+      return Enum$OrderBy.ASC_NULLS_LAST;
+    case r'DESC':
+      return Enum$OrderBy.DESC;
+    case r'DESC_NULLS_FIRST':
+      return Enum$OrderBy.DESC_NULLS_FIRST;
+    case r'DESC_NULLS_LAST':
+      return Enum$OrderBy.DESC_NULLS_LAST;
+    default:
+      return Enum$OrderBy.$unknown;
+  }
+}
+
+enum Enum$SmithCertSelectColumn {
+  createdOn,
+  id,
+  issuerId,
+  receiverId,
+  $unknown
+}
+
+String toJson$Enum$SmithCertSelectColumn(Enum$SmithCertSelectColumn e) {
+  switch (e) {
+    case Enum$SmithCertSelectColumn.createdOn:
+      return r'createdOn';
+    case Enum$SmithCertSelectColumn.id:
+      return r'id';
+    case Enum$SmithCertSelectColumn.issuerId:
+      return r'issuerId';
+    case Enum$SmithCertSelectColumn.receiverId:
+      return r'receiverId';
+    case Enum$SmithCertSelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$SmithCertSelectColumn fromJson$Enum$SmithCertSelectColumn(String value) {
+  switch (value) {
+    case r'createdOn':
+      return Enum$SmithCertSelectColumn.createdOn;
+    case r'id':
+      return Enum$SmithCertSelectColumn.id;
+    case r'issuerId':
+      return Enum$SmithCertSelectColumn.issuerId;
+    case r'receiverId':
+      return Enum$SmithCertSelectColumn.receiverId;
+    default:
+      return Enum$SmithCertSelectColumn.$unknown;
+  }
+}
+
+enum Enum$SmithStatusEnum { EXCLUDED, INVITED, PENDING, SMITH, $unknown }
+
+String toJson$Enum$SmithStatusEnum(Enum$SmithStatusEnum e) {
+  switch (e) {
+    case Enum$SmithStatusEnum.EXCLUDED:
+      return r'EXCLUDED';
+    case Enum$SmithStatusEnum.INVITED:
+      return r'INVITED';
+    case Enum$SmithStatusEnum.PENDING:
+      return r'PENDING';
+    case Enum$SmithStatusEnum.SMITH:
+      return r'SMITH';
+    case Enum$SmithStatusEnum.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$SmithStatusEnum fromJson$Enum$SmithStatusEnum(String value) {
+  switch (value) {
+    case r'EXCLUDED':
+      return Enum$SmithStatusEnum.EXCLUDED;
+    case r'INVITED':
+      return Enum$SmithStatusEnum.INVITED;
+    case r'PENDING':
+      return Enum$SmithStatusEnum.PENDING;
+    case r'SMITH':
+      return Enum$SmithStatusEnum.SMITH;
+    default:
+      return Enum$SmithStatusEnum.$unknown;
+  }
+}
+
+enum Enum$TransferSelectColumn {
+  amount,
+  blockNumber,
+  comment,
+  fromId,
+  id,
+  timestamp,
+  toId,
+  $unknown
+}
+
+String toJson$Enum$TransferSelectColumn(Enum$TransferSelectColumn e) {
+  switch (e) {
+    case Enum$TransferSelectColumn.amount:
+      return r'amount';
+    case Enum$TransferSelectColumn.blockNumber:
+      return r'blockNumber';
+    case Enum$TransferSelectColumn.comment:
+      return r'comment';
+    case Enum$TransferSelectColumn.fromId:
+      return r'fromId';
+    case Enum$TransferSelectColumn.id:
+      return r'id';
+    case Enum$TransferSelectColumn.timestamp:
+      return r'timestamp';
+    case Enum$TransferSelectColumn.toId:
+      return r'toId';
+    case Enum$TransferSelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$TransferSelectColumn fromJson$Enum$TransferSelectColumn(String value) {
+  switch (value) {
+    case r'amount':
+      return Enum$TransferSelectColumn.amount;
+    case r'blockNumber':
+      return Enum$TransferSelectColumn.blockNumber;
+    case r'comment':
+      return Enum$TransferSelectColumn.comment;
+    case r'fromId':
+      return Enum$TransferSelectColumn.fromId;
+    case r'id':
+      return Enum$TransferSelectColumn.id;
+    case r'timestamp':
+      return Enum$TransferSelectColumn.timestamp;
+    case r'toId':
+      return Enum$TransferSelectColumn.toId;
+    default:
+      return Enum$TransferSelectColumn.$unknown;
+  }
+}
+
+enum Enum$UdHistorySelectColumn {
+  amount,
+  blockNumber,
+  id,
+  identityId,
+  timestamp,
+  $unknown
+}
+
+String toJson$Enum$UdHistorySelectColumn(Enum$UdHistorySelectColumn e) {
+  switch (e) {
+    case Enum$UdHistorySelectColumn.amount:
+      return r'amount';
+    case Enum$UdHistorySelectColumn.blockNumber:
+      return r'blockNumber';
+    case Enum$UdHistorySelectColumn.id:
+      return r'id';
+    case Enum$UdHistorySelectColumn.identityId:
+      return r'identityId';
+    case Enum$UdHistorySelectColumn.timestamp:
+      return r'timestamp';
+    case Enum$UdHistorySelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$UdHistorySelectColumn fromJson$Enum$UdHistorySelectColumn(String value) {
+  switch (value) {
+    case r'amount':
+      return Enum$UdHistorySelectColumn.amount;
+    case r'blockNumber':
+      return Enum$UdHistorySelectColumn.blockNumber;
+    case r'id':
+      return Enum$UdHistorySelectColumn.id;
+    case r'identityId':
+      return Enum$UdHistorySelectColumn.identityId;
+    case r'timestamp':
+      return Enum$UdHistorySelectColumn.timestamp;
+    default:
+      return Enum$UdHistorySelectColumn.$unknown;
+  }
+}
+
+enum Enum$UdReevalSelectColumn {
+  blockNumber,
+  eventId,
+  id,
+  membersCount,
+  monetaryMass,
+  newUdAmount,
+  timestamp,
+  $unknown
+}
+
+String toJson$Enum$UdReevalSelectColumn(Enum$UdReevalSelectColumn e) {
+  switch (e) {
+    case Enum$UdReevalSelectColumn.blockNumber:
+      return r'blockNumber';
+    case Enum$UdReevalSelectColumn.eventId:
+      return r'eventId';
+    case Enum$UdReevalSelectColumn.id:
+      return r'id';
+    case Enum$UdReevalSelectColumn.membersCount:
+      return r'membersCount';
+    case Enum$UdReevalSelectColumn.monetaryMass:
+      return r'monetaryMass';
+    case Enum$UdReevalSelectColumn.newUdAmount:
+      return r'newUdAmount';
+    case Enum$UdReevalSelectColumn.timestamp:
+      return r'timestamp';
+    case Enum$UdReevalSelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$UdReevalSelectColumn fromJson$Enum$UdReevalSelectColumn(String value) {
+  switch (value) {
+    case r'blockNumber':
+      return Enum$UdReevalSelectColumn.blockNumber;
+    case r'eventId':
+      return Enum$UdReevalSelectColumn.eventId;
+    case r'id':
+      return Enum$UdReevalSelectColumn.id;
+    case r'membersCount':
+      return Enum$UdReevalSelectColumn.membersCount;
+    case r'monetaryMass':
+      return Enum$UdReevalSelectColumn.monetaryMass;
+    case r'newUdAmount':
+      return Enum$UdReevalSelectColumn.newUdAmount;
+    case r'timestamp':
+      return Enum$UdReevalSelectColumn.timestamp;
+    default:
+      return Enum$UdReevalSelectColumn.$unknown;
+  }
+}
+
+enum Enum$UniversalDividendSelectColumn {
+  amount,
+  blockNumber,
+  eventId,
+  id,
+  membersCount,
+  monetaryMass,
+  timestamp,
+  $unknown
+}
+
+String toJson$Enum$UniversalDividendSelectColumn(
+    Enum$UniversalDividendSelectColumn e) {
+  switch (e) {
+    case Enum$UniversalDividendSelectColumn.amount:
+      return r'amount';
+    case Enum$UniversalDividendSelectColumn.blockNumber:
+      return r'blockNumber';
+    case Enum$UniversalDividendSelectColumn.eventId:
+      return r'eventId';
+    case Enum$UniversalDividendSelectColumn.id:
+      return r'id';
+    case Enum$UniversalDividendSelectColumn.membersCount:
+      return r'membersCount';
+    case Enum$UniversalDividendSelectColumn.monetaryMass:
+      return r'monetaryMass';
+    case Enum$UniversalDividendSelectColumn.timestamp:
+      return r'timestamp';
+    case Enum$UniversalDividendSelectColumn.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$UniversalDividendSelectColumn fromJson$Enum$UniversalDividendSelectColumn(
+    String value) {
+  switch (value) {
+    case r'amount':
+      return Enum$UniversalDividendSelectColumn.amount;
+    case r'blockNumber':
+      return Enum$UniversalDividendSelectColumn.blockNumber;
+    case r'eventId':
+      return Enum$UniversalDividendSelectColumn.eventId;
+    case r'id':
+      return Enum$UniversalDividendSelectColumn.id;
+    case r'membersCount':
+      return Enum$UniversalDividendSelectColumn.membersCount;
+    case r'monetaryMass':
+      return Enum$UniversalDividendSelectColumn.monetaryMass;
+    case r'timestamp':
+      return Enum$UniversalDividendSelectColumn.timestamp;
+    default:
+      return Enum$UniversalDividendSelectColumn.$unknown;
+  }
+}
+
+enum Enum$__TypeKind {
+  SCALAR,
+  OBJECT,
+  INTERFACE,
+  UNION,
+  ENUM,
+  INPUT_OBJECT,
+  LIST,
+  NON_NULL,
+  $unknown
+}
+
+String toJson$Enum$__TypeKind(Enum$__TypeKind e) {
+  switch (e) {
+    case Enum$__TypeKind.SCALAR:
+      return r'SCALAR';
+    case Enum$__TypeKind.OBJECT:
+      return r'OBJECT';
+    case Enum$__TypeKind.INTERFACE:
+      return r'INTERFACE';
+    case Enum$__TypeKind.UNION:
+      return r'UNION';
+    case Enum$__TypeKind.ENUM:
+      return r'ENUM';
+    case Enum$__TypeKind.INPUT_OBJECT:
+      return r'INPUT_OBJECT';
+    case Enum$__TypeKind.LIST:
+      return r'LIST';
+    case Enum$__TypeKind.NON_NULL:
+      return r'NON_NULL';
+    case Enum$__TypeKind.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$__TypeKind fromJson$Enum$__TypeKind(String value) {
+  switch (value) {
+    case r'SCALAR':
+      return Enum$__TypeKind.SCALAR;
+    case r'OBJECT':
+      return Enum$__TypeKind.OBJECT;
+    case r'INTERFACE':
+      return Enum$__TypeKind.INTERFACE;
+    case r'UNION':
+      return Enum$__TypeKind.UNION;
+    case r'ENUM':
+      return Enum$__TypeKind.ENUM;
+    case r'INPUT_OBJECT':
+      return Enum$__TypeKind.INPUT_OBJECT;
+    case r'LIST':
+      return Enum$__TypeKind.LIST;
+    case r'NON_NULL':
+      return Enum$__TypeKind.NON_NULL;
+    default:
+      return Enum$__TypeKind.$unknown;
+  }
+}
+
+enum Enum$__DirectiveLocation {
+  QUERY,
+  MUTATION,
+  SUBSCRIPTION,
+  FIELD,
+  FRAGMENT_DEFINITION,
+  FRAGMENT_SPREAD,
+  INLINE_FRAGMENT,
+  VARIABLE_DEFINITION,
+  SCHEMA,
+  SCALAR,
+  OBJECT,
+  FIELD_DEFINITION,
+  ARGUMENT_DEFINITION,
+  INTERFACE,
+  UNION,
+  ENUM,
+  ENUM_VALUE,
+  INPUT_OBJECT,
+  INPUT_FIELD_DEFINITION,
+  $unknown
+}
+
+String toJson$Enum$__DirectiveLocation(Enum$__DirectiveLocation e) {
+  switch (e) {
+    case Enum$__DirectiveLocation.QUERY:
+      return r'QUERY';
+    case Enum$__DirectiveLocation.MUTATION:
+      return r'MUTATION';
+    case Enum$__DirectiveLocation.SUBSCRIPTION:
+      return r'SUBSCRIPTION';
+    case Enum$__DirectiveLocation.FIELD:
+      return r'FIELD';
+    case Enum$__DirectiveLocation.FRAGMENT_DEFINITION:
+      return r'FRAGMENT_DEFINITION';
+    case Enum$__DirectiveLocation.FRAGMENT_SPREAD:
+      return r'FRAGMENT_SPREAD';
+    case Enum$__DirectiveLocation.INLINE_FRAGMENT:
+      return r'INLINE_FRAGMENT';
+    case Enum$__DirectiveLocation.VARIABLE_DEFINITION:
+      return r'VARIABLE_DEFINITION';
+    case Enum$__DirectiveLocation.SCHEMA:
+      return r'SCHEMA';
+    case Enum$__DirectiveLocation.SCALAR:
+      return r'SCALAR';
+    case Enum$__DirectiveLocation.OBJECT:
+      return r'OBJECT';
+    case Enum$__DirectiveLocation.FIELD_DEFINITION:
+      return r'FIELD_DEFINITION';
+    case Enum$__DirectiveLocation.ARGUMENT_DEFINITION:
+      return r'ARGUMENT_DEFINITION';
+    case Enum$__DirectiveLocation.INTERFACE:
+      return r'INTERFACE';
+    case Enum$__DirectiveLocation.UNION:
+      return r'UNION';
+    case Enum$__DirectiveLocation.ENUM:
+      return r'ENUM';
+    case Enum$__DirectiveLocation.ENUM_VALUE:
+      return r'ENUM_VALUE';
+    case Enum$__DirectiveLocation.INPUT_OBJECT:
+      return r'INPUT_OBJECT';
+    case Enum$__DirectiveLocation.INPUT_FIELD_DEFINITION:
+      return r'INPUT_FIELD_DEFINITION';
+    case Enum$__DirectiveLocation.$unknown:
+      return r'$unknown';
+  }
+}
+
+Enum$__DirectiveLocation fromJson$Enum$__DirectiveLocation(String value) {
+  switch (value) {
+    case r'QUERY':
+      return Enum$__DirectiveLocation.QUERY;
+    case r'MUTATION':
+      return Enum$__DirectiveLocation.MUTATION;
+    case r'SUBSCRIPTION':
+      return Enum$__DirectiveLocation.SUBSCRIPTION;
+    case r'FIELD':
+      return Enum$__DirectiveLocation.FIELD;
+    case r'FRAGMENT_DEFINITION':
+      return Enum$__DirectiveLocation.FRAGMENT_DEFINITION;
+    case r'FRAGMENT_SPREAD':
+      return Enum$__DirectiveLocation.FRAGMENT_SPREAD;
+    case r'INLINE_FRAGMENT':
+      return Enum$__DirectiveLocation.INLINE_FRAGMENT;
+    case r'VARIABLE_DEFINITION':
+      return Enum$__DirectiveLocation.VARIABLE_DEFINITION;
+    case r'SCHEMA':
+      return Enum$__DirectiveLocation.SCHEMA;
+    case r'SCALAR':
+      return Enum$__DirectiveLocation.SCALAR;
+    case r'OBJECT':
+      return Enum$__DirectiveLocation.OBJECT;
+    case r'FIELD_DEFINITION':
+      return Enum$__DirectiveLocation.FIELD_DEFINITION;
+    case r'ARGUMENT_DEFINITION':
+      return Enum$__DirectiveLocation.ARGUMENT_DEFINITION;
+    case r'INTERFACE':
+      return Enum$__DirectiveLocation.INTERFACE;
+    case r'UNION':
+      return Enum$__DirectiveLocation.UNION;
+    case r'ENUM':
+      return Enum$__DirectiveLocation.ENUM;
+    case r'ENUM_VALUE':
+      return Enum$__DirectiveLocation.ENUM_VALUE;
+    case r'INPUT_OBJECT':
+      return Enum$__DirectiveLocation.INPUT_OBJECT;
+    case r'INPUT_FIELD_DEFINITION':
+      return Enum$__DirectiveLocation.INPUT_FIELD_DEFINITION;
+    default:
+      return Enum$__DirectiveLocation.$unknown;
+  }
+}
+
+const possibleTypesMap = <String, Set<String>>{
+  'Node': {
+    'Account',
+    'Block',
+    'Call',
+    'Cert',
+    'CertEvent',
+    'ChangeOwnerKey',
+    'Event',
+    'Extrinsic',
+    'Identity',
+    'ItemsCounter',
+    'MembershipEvent',
+    'SmithCert',
+    'Transfer',
+    'UdHistory',
+    'UdReeval',
+    'UniversalDividend',
+  }
+};
diff --git a/lib/src/models/networks.dart b/lib/src/models/networks.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e831f340f9909477468be619bb44741975816b29
--- /dev/null
+++ b/lib/src/models/networks.dart
@@ -0,0 +1,5 @@
+enum Networks {
+  gdev,
+  gtest,
+  g1,
+}
diff --git a/lib/src/models/wallet_info.dart b/lib/src/models/wallet_info.dart
new file mode 100644
index 0000000000000000000000000000000000000000..cec7ff5bf9fab2dd8998aae7c3fe00fc6d8c5aee
--- /dev/null
+++ b/lib/src/models/wallet_info.dart
@@ -0,0 +1,11 @@
+import 'package:hive/hive.dart';
+
+part 'wallet_info.g.dart';
+
+@HiveType(typeId: 1)
+class WalletInfo {
+  @HiveField(0)
+  final String address;
+
+  WalletInfo({required this.address});
+}
diff --git a/lib/src/models/wallet_info.g.dart b/lib/src/models/wallet_info.g.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c0552abf732a894960009ff7392d5ddb66d0a30c
--- /dev/null
+++ b/lib/src/models/wallet_info.g.dart
@@ -0,0 +1,41 @@
+// GENERATED CODE - DO NOT MODIFY BY HAND
+
+part of 'wallet_info.dart';
+
+// **************************************************************************
+// TypeAdapterGenerator
+// **************************************************************************
+
+class WalletInfoAdapter extends TypeAdapter<WalletInfo> {
+  @override
+  final int typeId = 1;
+
+  @override
+  WalletInfo read(BinaryReader reader) {
+    final numOfFields = reader.readByte();
+    final fields = <int, dynamic>{
+      for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
+    };
+    return WalletInfo(
+      address: fields[0] as String,
+    );
+  }
+
+  @override
+  void write(BinaryWriter writer, WalletInfo obj) {
+    writer
+      ..writeByte(1)
+      ..writeByte(0)
+      ..write(obj.address);
+  }
+
+  @override
+  int get hashCode => typeId.hashCode;
+
+  @override
+  bool operator ==(Object other) =>
+      identical(this, other) ||
+      other is WalletInfoAdapter &&
+          runtimeType == other.runtimeType &&
+          typeId == other.typeId;
+}
diff --git a/lib/src/providers/graphql_provider.dart b/lib/src/providers/graphql_provider.dart
new file mode 100644
index 0000000000000000000000000000000000000000..69420d6a6f232b2516540a6a1dfd521504a39619
--- /dev/null
+++ b/lib/src/providers/graphql_provider.dart
@@ -0,0 +1,117 @@
+import 'dart:async';
+import 'package:durt2/src/global.dart';
+import 'package:durt2/src/models/graphql/accounts.graphql.dart';
+import 'package:durt2/src/services/graphql_service.dart';
+import 'package:graphql/client.dart';
+import 'package:riverpod_annotation/riverpod_annotation.dart';
+
+part 'graphql_provider.g.dart';
+
+@riverpod
+GraphQLClient graphqlClient(GraphqlClientRef ref) {
+  return GraphQLService.client;
+}
+
+@riverpod
+Future<String?> identityName(IdentityNameRef ref, String address) async {
+  final client = ref.watch(graphqlClientProvider);
+  final identity = await client.getIdentityName(address);
+  return identity?.name;
+}
+
+@riverpod
+Future<List<IdentitySuggestion>> searchAddressByName(
+    SearchAddressByNameRef ref, String idtyName) async {
+  final client = ref.watch(graphqlClientProvider);
+  final result = await client.searchAddressByName(idtyName);
+  if (result == null) return [];
+
+  final List<IdentitySuggestion> listIdentities = [];
+  for (final edge in result) {
+    final identity =
+        IdentitySuggestion(name: edge.node.name, address: edge.node.accountId!);
+    listIdentities.add(identity);
+  }
+  return listIdentities;
+}
+
+class IdentitySuggestion {
+  final String name;
+  final String address;
+
+  IdentitySuggestion({required this.name, required this.address});
+}
+
+@riverpod
+class AccountHistory extends _$AccountHistory {
+  Map<String, StreamSubscription?> _historySubscriptions = {};
+  Map<String, bool> _isFirstFetchComplete = {};
+  late String address;
+
+  void dispose() {
+    _historySubscriptions.values
+        .forEach((subscription) => subscription?.cancel());
+    _historySubscriptions.clear();
+  }
+
+  @override
+  FutureOr<List<Query$GetAccountHistory$transferConnection$edges$node>> build(
+      String address) async {
+    this.address = address;
+    await fetchNextPage();
+    return state.value ?? [];
+  }
+
+  String? _cursor;
+  bool _hasMorePages = true;
+
+  Future<void> fetchNextPage([int size = 30]) async {
+    if (!_hasMorePages) return;
+
+    try {
+      final page = await ref.read(graphqlClientProvider).getAccountHistory(
+            address,
+            number: size,
+            cursor: _cursor,
+          );
+
+      final newTransactions =
+          page?.edges.map((edge) => edge.node).toList() ?? [];
+
+      _cursor = page?.pageInfo.endCursor;
+      state = AsyncValue.data(
+        [...state.value ?? [], ...newTransactions],
+      );
+      _hasMorePages = page?.pageInfo.hasNextPage ?? false;
+    } catch (err, stack) {
+      state = AsyncValue.error(err, stack);
+    }
+  }
+
+  Future<void> refetchData([int size = 30]) async {
+    _cursor = null;
+    _hasMorePages = true;
+    state = AsyncValue.data([]);
+    state = AsyncValue.loading();
+    await fetchNextPage(size);
+  }
+
+  void subscribeToAccountHistory() {
+    _historySubscriptions[address]?.cancel();
+
+    final client = ref.read(graphqlClientProvider);
+    _isFirstFetchComplete[address] = false;
+    _historySubscriptions[address] = client.subAccountHistory(address).listen(
+      (update) {
+        if (_isFirstFetchComplete[address] == true) {
+          refetchData();
+        } else {
+          _isFirstFetchComplete[address] = true;
+        }
+      },
+      onError: (err) {
+        log.e('Subscription error: $err');
+      },
+    );
+  }
+}
diff --git a/lib/src/providers/graphql_provider.g.dart b/lib/src/providers/graphql_provider.g.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e3e849ce931fd3fa75be9de48172536e6a15d18c
--- /dev/null
+++ b/lib/src/providers/graphql_provider.g.dart
@@ -0,0 +1,457 @@
+// GENERATED CODE - DO NOT MODIFY BY HAND
+
+part of 'graphql_provider.dart';
+
+// **************************************************************************
+// RiverpodGenerator
+// **************************************************************************
+
+String _$graphqlClientHash() => r'04442f2bafc14784edaa30ace638d6cc4914668e';
+
+/// See also [graphqlClient].
+@ProviderFor(graphqlClient)
+final graphqlClientProvider = AutoDisposeProvider<GraphQLClient>.internal(
+  graphqlClient,
+  name: r'graphqlClientProvider',
+  debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
+      ? null
+      : _$graphqlClientHash,
+  dependencies: null,
+  allTransitiveDependencies: null,
+);
+
+typedef GraphqlClientRef = AutoDisposeProviderRef<GraphQLClient>;
+String _$identityNameHash() => r'c87dd10afd6d44f06cbc6e6d4a0d6f817dec66b6';
+
+/// Copied from Dart SDK
+class _SystemHash {
+  _SystemHash._();
+
+  static int combine(int hash, int value) {
+    // ignore: parameter_assignments
+    hash = 0x1fffffff & (hash + value);
+    // ignore: parameter_assignments
+    hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
+    return hash ^ (hash >> 6);
+  }
+
+  static int finish(int hash) {
+    // ignore: parameter_assignments
+    hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
+    // ignore: parameter_assignments
+    hash = hash ^ (hash >> 11);
+    return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
+  }
+}
+
+/// See also [identityName].
+@ProviderFor(identityName)
+const identityNameProvider = IdentityNameFamily();
+
+/// See also [identityName].
+class IdentityNameFamily extends Family<AsyncValue<String?>> {
+  /// See also [identityName].
+  const IdentityNameFamily();
+
+  /// See also [identityName].
+  IdentityNameProvider call(
+    String address,
+  ) {
+    return IdentityNameProvider(
+      address,
+    );
+  }
+
+  @override
+  IdentityNameProvider getProviderOverride(
+    covariant IdentityNameProvider provider,
+  ) {
+    return call(
+      provider.address,
+    );
+  }
+
+  static const Iterable<ProviderOrFamily>? _dependencies = null;
+
+  @override
+  Iterable<ProviderOrFamily>? get dependencies => _dependencies;
+
+  static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
+
+  @override
+  Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
+      _allTransitiveDependencies;
+
+  @override
+  String? get name => r'identityNameProvider';
+}
+
+/// See also [identityName].
+class IdentityNameProvider extends AutoDisposeFutureProvider<String?> {
+  /// See also [identityName].
+  IdentityNameProvider(
+    String address,
+  ) : this._internal(
+          (ref) => identityName(
+            ref as IdentityNameRef,
+            address,
+          ),
+          from: identityNameProvider,
+          name: r'identityNameProvider',
+          debugGetCreateSourceHash:
+              const bool.fromEnvironment('dart.vm.product')
+                  ? null
+                  : _$identityNameHash,
+          dependencies: IdentityNameFamily._dependencies,
+          allTransitiveDependencies:
+              IdentityNameFamily._allTransitiveDependencies,
+          address: address,
+        );
+
+  IdentityNameProvider._internal(
+    super._createNotifier, {
+    required super.name,
+    required super.dependencies,
+    required super.allTransitiveDependencies,
+    required super.debugGetCreateSourceHash,
+    required super.from,
+    required this.address,
+  }) : super.internal();
+
+  final String address;
+
+  @override
+  Override overrideWith(
+    FutureOr<String?> Function(IdentityNameRef provider) create,
+  ) {
+    return ProviderOverride(
+      origin: this,
+      override: IdentityNameProvider._internal(
+        (ref) => create(ref as IdentityNameRef),
+        from: from,
+        name: null,
+        dependencies: null,
+        allTransitiveDependencies: null,
+        debugGetCreateSourceHash: null,
+        address: address,
+      ),
+    );
+  }
+
+  @override
+  AutoDisposeFutureProviderElement<String?> createElement() {
+    return _IdentityNameProviderElement(this);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    return other is IdentityNameProvider && other.address == address;
+  }
+
+  @override
+  int get hashCode {
+    var hash = _SystemHash.combine(0, runtimeType.hashCode);
+    hash = _SystemHash.combine(hash, address.hashCode);
+
+    return _SystemHash.finish(hash);
+  }
+}
+
+mixin IdentityNameRef on AutoDisposeFutureProviderRef<String?> {
+  /// The parameter `address` of this provider.
+  String get address;
+}
+
+class _IdentityNameProviderElement
+    extends AutoDisposeFutureProviderElement<String?> with IdentityNameRef {
+  _IdentityNameProviderElement(super.provider);
+
+  @override
+  String get address => (origin as IdentityNameProvider).address;
+}
+
+String _$searchAddressByNameHash() =>
+    r'4f0828285a8272b9aa2b51c05371676acbc712dd';
+
+/// See also [searchAddressByName].
+@ProviderFor(searchAddressByName)
+const searchAddressByNameProvider = SearchAddressByNameFamily();
+
+/// See also [searchAddressByName].
+class SearchAddressByNameFamily
+    extends Family<AsyncValue<List<IdentitySuggestion>>> {
+  /// See also [searchAddressByName].
+  const SearchAddressByNameFamily();
+
+  /// See also [searchAddressByName].
+  SearchAddressByNameProvider call(
+    String idtyName,
+  ) {
+    return SearchAddressByNameProvider(
+      idtyName,
+    );
+  }
+
+  @override
+  SearchAddressByNameProvider getProviderOverride(
+    covariant SearchAddressByNameProvider provider,
+  ) {
+    return call(
+      provider.idtyName,
+    );
+  }
+
+  static const Iterable<ProviderOrFamily>? _dependencies = null;
+
+  @override
+  Iterable<ProviderOrFamily>? get dependencies => _dependencies;
+
+  static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
+
+  @override
+  Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
+      _allTransitiveDependencies;
+
+  @override
+  String? get name => r'searchAddressByNameProvider';
+}
+
+/// See also [searchAddressByName].
+class SearchAddressByNameProvider
+    extends AutoDisposeFutureProvider<List<IdentitySuggestion>> {
+  /// See also [searchAddressByName].
+  SearchAddressByNameProvider(
+    String idtyName,
+  ) : this._internal(
+          (ref) => searchAddressByName(
+            ref as SearchAddressByNameRef,
+            idtyName,
+          ),
+          from: searchAddressByNameProvider,
+          name: r'searchAddressByNameProvider',
+          debugGetCreateSourceHash:
+              const bool.fromEnvironment('dart.vm.product')
+                  ? null
+                  : _$searchAddressByNameHash,
+          dependencies: SearchAddressByNameFamily._dependencies,
+          allTransitiveDependencies:
+              SearchAddressByNameFamily._allTransitiveDependencies,
+          idtyName: idtyName,
+        );
+
+  SearchAddressByNameProvider._internal(
+    super._createNotifier, {
+    required super.name,
+    required super.dependencies,
+    required super.allTransitiveDependencies,
+    required super.debugGetCreateSourceHash,
+    required super.from,
+    required this.idtyName,
+  }) : super.internal();
+
+  final String idtyName;
+
+  @override
+  Override overrideWith(
+    FutureOr<List<IdentitySuggestion>> Function(SearchAddressByNameRef provider)
+        create,
+  ) {
+    return ProviderOverride(
+      origin: this,
+      override: SearchAddressByNameProvider._internal(
+        (ref) => create(ref as SearchAddressByNameRef),
+        from: from,
+        name: null,
+        dependencies: null,
+        allTransitiveDependencies: null,
+        debugGetCreateSourceHash: null,
+        idtyName: idtyName,
+      ),
+    );
+  }
+
+  @override
+  AutoDisposeFutureProviderElement<List<IdentitySuggestion>> createElement() {
+    return _SearchAddressByNameProviderElement(this);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    return other is SearchAddressByNameProvider && other.idtyName == idtyName;
+  }
+
+  @override
+  int get hashCode {
+    var hash = _SystemHash.combine(0, runtimeType.hashCode);
+    hash = _SystemHash.combine(hash, idtyName.hashCode);
+
+    return _SystemHash.finish(hash);
+  }
+}
+
+mixin SearchAddressByNameRef
+    on AutoDisposeFutureProviderRef<List<IdentitySuggestion>> {
+  /// The parameter `idtyName` of this provider.
+  String get idtyName;
+}
+
+class _SearchAddressByNameProviderElement
+    extends AutoDisposeFutureProviderElement<List<IdentitySuggestion>>
+    with SearchAddressByNameRef {
+  _SearchAddressByNameProviderElement(super.provider);
+
+  @override
+  String get idtyName => (origin as SearchAddressByNameProvider).idtyName;
+}
+
+String _$accountHistoryHash() => r'43f4e3f42453f0866259cafc3fff4606e6beaa9d';
+
+abstract class _$AccountHistory extends BuildlessAutoDisposeAsyncNotifier<
+    List<Query$GetAccountHistory$transferConnection$edges$node>> {
+  late final String address;
+
+  FutureOr<List<Query$GetAccountHistory$transferConnection$edges$node>> build(
+    String address,
+  );
+}
+
+/// See also [AccountHistory].
+@ProviderFor(AccountHistory)
+const accountHistoryProvider = AccountHistoryFamily();
+
+/// See also [AccountHistory].
+class AccountHistoryFamily extends Family<
+    AsyncValue<List<Query$GetAccountHistory$transferConnection$edges$node>>> {
+  /// See also [AccountHistory].
+  const AccountHistoryFamily();
+
+  /// See also [AccountHistory].
+  AccountHistoryProvider call(
+    String address,
+  ) {
+    return AccountHistoryProvider(
+      address,
+    );
+  }
+
+  @override
+  AccountHistoryProvider getProviderOverride(
+    covariant AccountHistoryProvider provider,
+  ) {
+    return call(
+      provider.address,
+    );
+  }
+
+  static const Iterable<ProviderOrFamily>? _dependencies = null;
+
+  @override
+  Iterable<ProviderOrFamily>? get dependencies => _dependencies;
+
+  static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
+
+  @override
+  Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
+      _allTransitiveDependencies;
+
+  @override
+  String? get name => r'accountHistoryProvider';
+}
+
+/// See also [AccountHistory].
+class AccountHistoryProvider extends AutoDisposeAsyncNotifierProviderImpl<
+    AccountHistory,
+    List<Query$GetAccountHistory$transferConnection$edges$node>> {
+  /// See also [AccountHistory].
+  AccountHistoryProvider(
+    String address,
+  ) : this._internal(
+          () => AccountHistory()..address = address,
+          from: accountHistoryProvider,
+          name: r'accountHistoryProvider',
+          debugGetCreateSourceHash:
+              const bool.fromEnvironment('dart.vm.product')
+                  ? null
+                  : _$accountHistoryHash,
+          dependencies: AccountHistoryFamily._dependencies,
+          allTransitiveDependencies:
+              AccountHistoryFamily._allTransitiveDependencies,
+          address: address,
+        );
+
+  AccountHistoryProvider._internal(
+    super._createNotifier, {
+    required super.name,
+    required super.dependencies,
+    required super.allTransitiveDependencies,
+    required super.debugGetCreateSourceHash,
+    required super.from,
+    required this.address,
+  }) : super.internal();
+
+  final String address;
+
+  @override
+  FutureOr<List<Query$GetAccountHistory$transferConnection$edges$node>>
+      runNotifierBuild(
+    covariant AccountHistory notifier,
+  ) {
+    return notifier.build(
+      address,
+    );
+  }
+
+  @override
+  Override overrideWith(AccountHistory Function() create) {
+    return ProviderOverride(
+      origin: this,
+      override: AccountHistoryProvider._internal(
+        () => create()..address = address,
+        from: from,
+        name: null,
+        dependencies: null,
+        allTransitiveDependencies: null,
+        debugGetCreateSourceHash: null,
+        address: address,
+      ),
+    );
+  }
+
+  @override
+  AutoDisposeAsyncNotifierProviderElement<AccountHistory,
+          List<Query$GetAccountHistory$transferConnection$edges$node>>
+      createElement() {
+    return _AccountHistoryProviderElement(this);
+  }
+
+  @override
+  bool operator ==(Object other) {
+    return other is AccountHistoryProvider && other.address == address;
+  }
+
+  @override
+  int get hashCode {
+    var hash = _SystemHash.combine(0, runtimeType.hashCode);
+    hash = _SystemHash.combine(hash, address.hashCode);
+
+    return _SystemHash.finish(hash);
+  }
+}
+
+mixin AccountHistoryRef on AutoDisposeAsyncNotifierProviderRef<
+    List<Query$GetAccountHistory$transferConnection$edges$node>> {
+  /// The parameter `address` of this provider.
+  String get address;
+}
+
+class _AccountHistoryProviderElement
+    extends AutoDisposeAsyncNotifierProviderElement<AccountHistory,
+        List<Query$GetAccountHistory$transferConnection$edges$node>>
+    with AccountHistoryRef {
+  _AccountHistoryProviderElement(super.provider);
+
+  @override
+  String get address => (origin as AccountHistoryProvider).address;
+}
+// ignore_for_file: type=lint
+// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member
diff --git a/lib/src/services/api_service.dart b/lib/src/services/api_service.dart
new file mode 100644
index 0000000000000000000000000000000000000000..790ed0898896ec6cbc76ca5362920a309fa7d948
--- /dev/null
+++ b/lib/src/services/api_service.dart
@@ -0,0 +1,115 @@
+import 'dart:async';
+import 'dart:convert';
+import 'dart:io';
+import 'package:durt2/src/global.dart';
+import 'package:durt2/src/models/generated/duniter/duniter.dart';
+import 'package:polkadart/polkadart.dart';
+import 'package:riverpod/riverpod.dart' as rp;
+
+final apiService = ApiService();
+
+final duniterRpcProvider = rp.Provider(
+    (ref) => Provider.fromUri(Uri.parse(apiService.duniterEndpoint)));
+late Duniter duniter;
+
+class ApiService {
+  late String duniterEndpoint;
+  late Provider api;
+  final List<String> errorLogs = [];
+  late int totalEndpoints;
+  int testedEndpoints = 0;
+
+  ApiService();
+
+  Future<void> init({required List<String> endpoints}) async {
+    totalEndpoints = endpoints.length;
+    duniterEndpoint = await getFastestEndpoint(endpoints);
+    log.i('Choosed endpoint: $duniterEndpoint');
+
+    final duniterRpcProvider = Provider.fromUri(Uri.parse(duniterEndpoint));
+    duniter = Duniter(duniterRpcProvider);
+  }
+
+  Future<bool> _testConnection(String endpoint) async {
+    WebSocket? ws;
+    testedEndpoints++;
+
+    try {
+      ws = await WebSocket.connect(endpoint);
+      var rpcRequest = jsonEncode(
+          {"jsonrpc": "2.0", "method": "system_health", "params": [], "id": 1});
+      ws.add(rpcRequest);
+      await for (var message in ws) {
+        var response = jsonDecode(message);
+        if (response['id'] == 1) {
+          if (response.containsKey('error')) {
+            throw RpcException('Error in RPC response: ${response['error']}');
+          }
+          break;
+        }
+      }
+
+      if (testedEndpoints == totalEndpoints && errorLogs.isNotEmpty) {
+        log.d(
+            'Duniter endpoints errors (${errorLogs.length}/$totalEndpoints):\n${errorLogs.join('\n')}');
+      }
+
+      return true;
+    } catch (e) {
+      errorLogs.add(e.toString());
+      return false;
+    } finally {
+      ws?.close();
+    }
+  }
+
+  Future<String> getFastestEndpoint(List<String> endpoints) async {
+    final endpointStream = Stream.fromIterable(endpoints);
+    final completer = Completer<String>();
+    const timeoutSeconds = 5;
+
+    endpointStream
+        .asyncMap((endpoint) async {
+          return await _testConnection(endpoint)
+              ? endpoint
+              : throw ConnectionException('Failed to connect to $endpoint');
+        })
+        .timeout(
+          Duration(seconds: timeoutSeconds),
+          onTimeout: (sink) =>
+              sink.addError(TimeoutException('Connection timeout')),
+        )
+        .listen(
+          (endpoint) {
+            if (!completer.isCompleted) {
+              completer.complete(endpoint);
+            }
+          },
+          onError: (error) {
+            if (!completer.isCompleted) {
+              completer.completeError(error);
+            }
+          },
+        );
+
+    return completer.future;
+  }
+}
+
+class RpcException implements Exception {
+  final String message;
+
+  RpcException(this.message);
+
+  @override
+  String toString() => 'RpcException: $message';
+}
+
+class ConnectionException implements Exception {
+  final String message;
+
+  ConnectionException(this.message);
+
+  @override
+  String toString() => 'ConnectionException: $message';
+}
diff --git a/lib/src/services/graphql_service.dart b/lib/src/services/graphql_service.dart
new file mode 100644
index 0000000000000000000000000000000000000000..3ca63dd62307b150fdf302146d9468fa9a021304
--- /dev/null
+++ b/lib/src/services/graphql_service.dart
@@ -0,0 +1,117 @@
+import 'package:durt2/src/global.dart';
+import 'package:durt2/src/models/graphql/accounts.graphql.dart';
+import 'package:graphql/client.dart';
+
+class GraphQLService {
+  static GraphQLClient? _client;
+
+  static Future<String> selectFastestEndpoint(List<String> endpoints) async {
+    String? fastestUrl;
+    int fastestLatency = 99999;
+
+    for (final endpoint in endpoints) {
+      final stopwatch = Stopwatch()..start();
+      try {
+        final parsedEndpoint = endpoint.replaceFirst('wss', 'https');
+        final link = HttpLink(parsedEndpoint);
+        final client = GraphQLClient(cache: GraphQLCache(), link: link);
+        await client.query(QueryOptions(document: gql(r'''
+          query {
+            block(limit: 1, orderBy: {height: DESC}) {
+              height
+            }
+          }
+        ''')));
+        final latency = stopwatch.elapsedMilliseconds;
+        if (latency < fastestLatency) {
+          fastestUrl = endpoint;
+          fastestLatency = latency;
+        }
+        link.dispose();
+      } catch (e) {
+        log.e('Failed to connect to $endpoint: $e');
+      } finally {
+        stopwatch.stop();
+      }
+    }
+
+    if (fastestUrl == null) {
+      throw Exception('No GraphQL endpoint available');
+    }
+
+    return fastestUrl;
+  }
+
+  static Future<void> init(List<String> endpoints) async {
+    final squidEndpoint = await GraphQLService.selectFastestEndpoint(endpoints);
+
+    _client = GraphQLClient(
+      cache: GraphQLCache(),
+      link: WebSocketLink(squidEndpoint),
+    );
+  }
+
+  static GraphQLClient get client {
+    if (_client == null) {
+      throw Exception(
+          "GraphQLService not initialized. Call GraphQLService.init() first.");
+    }
+    return _client!;
+  }
+}
+
+extension GazelleGraphQLClient on GraphQLClient {
+  Future<Query$GetAccountHistory$transferConnection?> getAccountHistory(
+      String address,
+      {int number = 10,
+      String? cursor}) async {
+    final variables = Variables$Query$GetAccountHistory(
+        address: address, first: number, after: cursor);
+    final options = Options$Query$GetAccountHistory(
+      variables: variables,
+      fetchPolicy: FetchPolicy.networkOnly,
+    );
+
+    try {
+      final result = await query$GetAccountHistory(options);
+      return result.parsedData?.transferConnection;
+    } catch (e) {
+      log.e('Failed to get account history: $e');
+      return null;
+    }
+  }
+
+  Stream<Subscription$SubAccountHistory$transferConnection$edges$node?>
+      subAccountHistory(String address) {
+    final variables =
+        Variables$Subscription$SubAccountHistory(address: address);
+    final options =
+        Options$Subscription$SubAccountHistory(variables: variables);
+
+    return subscribe$SubAccountHistory(options)
+        .map((event) => event.parsedData?.transferConnection.edges.first.node);
+  }
+
+  Future<Query$GetIdentityName$accountConnection$edges$node$identity?>
+      getIdentityName(String address) async {
+    final variables = Variables$Query$GetIdentityName(address: address);
+    final options = Options$Query$GetIdentityName(
+      variables: variables,
+      fetchPolicy: FetchPolicy.networkOnly,
+    );
+    final result = await query$GetIdentityName(options);
+    return result
+        .parsedData?.accountConnection.edges.firstOrNull?.node.identity;
+  }
+
+  Future<List<Query$SerachAddressByName$identityConnection$edges>?>
+      searchAddressByName(String name) async {
+    final variables = Variables$Query$SerachAddressByName(name: '%$name%');
+    final options = Options$Query$SerachAddressByName(
+      variables: variables,
+      fetchPolicy: FetchPolicy.networkOnly,
+    );
+    final result = await query$SerachAddressByName(options);
+    return result.parsedData?.identityConnection.edges;
+  }
+}
diff --git a/lib/src/services/hive_service.dart b/lib/src/services/hive_service.dart
new file mode 100644
index 0000000000000000000000000000000000000000..47f34df933c8f1c9ec5eff018198edcdb762b5b4
--- /dev/null
+++ b/lib/src/services/hive_service.dart
@@ -0,0 +1,24 @@
+import 'dart:io';
+import 'package:durt2/src/global.dart';
+import 'package:durt2/src/models/encrypted_mnemonic.dart';
+import 'package:durt2/src/models/wallet_info.dart';
+import 'package:hive/hive.dart';
+import 'package:path/path.dart' as path;
+import 'package:path_provider/path_provider.dart';
+
+class HiveService {
+  static Future<void> init() async {
+    final appDocDir = await getApplicationDocumentsDirectory();
+    final appDir = Directory(path.join(appDocDir.path, 'durt2'));
+
+    if (!await appDir.exists()) {
+      await appDir.create(recursive: true);
+    }
+
+    Hive.init(appDir.path);
+
+    Hive.registerAdapter(WalletInfoAdapter());
+    Hive.registerAdapter(EncryptedMnemonicAdapter());
+    walletInfoBox = await Hive.openBox<WalletInfo>('walletInfo');
+  }
+}
diff --git a/lib/src/services/wallet_service.dart b/lib/src/services/wallet_service.dart
new file mode 100644
index 0000000000000000000000000000000000000000..83b29aba1e2dd9cdf746082c423117749331cca0
--- /dev/null
+++ b/lib/src/services/wallet_service.dart
@@ -0,0 +1,208 @@
+import 'dart:async';
+import 'dart:convert';
+import 'dart:io';
+import 'dart:isolate';
+import 'dart:math';
+import 'dart:typed_data';
+import 'package:durt2/src/global.dart';
+import 'package:durt2/src/models/encrypted_mnemonic.dart';
+import 'package:flutter_secure_storage/flutter_secure_storage.dart';
+import 'package:hive/hive.dart';
+import 'package:pointycastle/export.dart';
+import 'package:path/path.dart' as path;
+import 'package:path_provider/path_provider.dart';
+
+final walletService = WalletService();
+
+class WalletService {
+  final secureStorage = const FlutterSecureStorage();
+
+  Future<Box<EncryptedMnemonic>> openEncryptedBox() async {
+    final encryptionKey = await getEncryptionKey();
+    final hiveAesCipher = HiveAesCipher(encryptionKey);
+
+    return await Hive.openBox<EncryptedMnemonic>('mnemonics',
+        encryptionCipher: hiveAesCipher);
+  }
+
+  Future<void> clearWallet() async {
+    await Hive.deleteBoxFromDisk('mnemonics');
+    await walletInfoBox.clear();
+    await secureStorage.delete(key: 'hive_encryption_key');
+  }
+
+  Future<Uint8List> getEncryptionKey() async {
+    final base64Key = await secureStorage.read(key: 'hive_encryption_key');
+    if (base64Key != null) {
+      return base64Decode(base64Key);
+    } else {
+      final key = Hive.generateSecureKey();
+      await secureStorage.write(
+          key: 'hive_encryption_key', value: base64Encode(key));
+      return Uint8List.fromList(key);
+    }
+  }
+
+  Future<void> storeMnemonic(String mnemonic, int pinCode) async {
+    final iv = _createRandomBytes(12);
+    final encryptedMnemonic = EncryptedMnemonic(
+      cipherText: await _encrypt(mnemonic, pinCode.toString(), iv),
+      iv: iv,
+    );
+    final box = await openEncryptedBox();
+    await box.put('mnemonic', encryptedMnemonic);
+    await box.close();
+  }
+
+  Future<bool> isMnemonicStored() async {
+    final box = await openEncryptedBox();
+    final isMnemonicStored = box.get('mnemonic') != null;
+    await box.close();
+    return isMnemonicStored;
+  }
+
+  Future<String> _encrypt(
+    String mnemonic,
+    String pin,
+    Uint8List iv,
+  ) async {
+    final keyDerivator = await _createKeyDerivator(iv);
+    final key = keyDerivator.process(utf8.encode(pin));
+
+    final cipher = GCMBlockCipher(AESEngine());
+    final params = AEADParameters(KeyParameter(key), 128, iv, Uint8List(0));
+
+    cipher.init(true, params);
+
+    final input = Uint8List.fromList(utf8.encode(mnemonic));
+    final output = Uint8List(cipher.getOutputSize(input.length));
+    var len = cipher.processBytes(input, 0, input.length, output, 0);
+    len += cipher.doFinal(output, len);
+
+    final cipherText = base64.encode(output.sublist(0, len));
+    // print('Mnemonic: $mnemonic');
+    // print('Pin: $pin');
+    // print('IV: $iv');
+    // print('Cipher text: $cipherText');
+    return cipherText;
+  }
+
+  Future<String?> _decrypt(EncryptedMnemonic encryptedMnemonic, String pin,
+      Uint8List encryptionKey) async {
+    try {
+      final keyDerivator =
+          await _createKeyDerivator(encryptedMnemonic.iv, encryptionKey);
+      final key = keyDerivator.process(utf8.encode(pin));
+
+      final cipher = GCMBlockCipher(AESEngine());
+      final params = AEADParameters(
+          KeyParameter(key), 128, encryptedMnemonic.iv, Uint8List(0));
+
+      cipher.init(false, params);
+      final cipherData = base64.decode(encryptedMnemonic.cipherText);
+
+      final output = Uint8List(cipher.getOutputSize(cipherData.length));
+      var len =
+          cipher.processBytes(cipherData, 0, cipherData.length, output, 0);
+      len += cipher.doFinal(output, len);
+
+      return String.fromCharCodes(output.sublist(0, len));
+    } catch (e) {
+      log.e('Failed to decrypt mnemonic: $e');
+      return null;
+    }
+  }
+
+  Future<Argon2BytesGenerator> _createKeyDerivator(Uint8List salt,
+      [Uint8List? encryptionKey]) async {
+    final argon2 = Argon2BytesGenerator();
+    encryptionKey ??= await getEncryptionKey();
+
+    argon2.init(
+      Argon2Parameters(
+        Argon2Parameters.ARGON2_id,
+        salt,
+        secret: encryptionKey,
+        desiredKeyLength: 32,
+        iterations: 3,
+        memoryPowerOf2: 16,
+        lanes: 4,
+        version: Argon2Parameters.ARGON2_VERSION_13,
+      ),
+    );
+    return argon2;
+  }
+
+  Uint8List _createRandomBytes(int length) {
+    final secureRandom = FortunaRandom();
+    final seedSource = Random.secure();
+    final seeds = <int>[];
+    for (int i = 0; i < 32; i++) {
+      seeds.add(seedSource.nextInt(255));
+    }
+    secureRandom.seed(KeyParameter(Uint8List.fromList(seeds)));
+
+    final bytes = secureRandom.nextBytes(length);
+    return bytes;
+  }
+
+  Future<String?> retrieveMnemonic(
+      String pinCode, Uint8List encryptionKey) async {
+    final hiveAesCipher = HiveAesCipher(encryptionKey);
+    final encryptedBox = await Hive.openBox<EncryptedMnemonic>('mnemonics',
+        encryptionCipher: hiveAesCipher);
+
+    final encryptedMnemonic = encryptedBox.get('mnemonic');
+    await encryptedBox.close();
+    if (encryptedMnemonic == null) {
+      return null;
+    }
+
+    return await _decrypt(encryptedMnemonic, pinCode, encryptionKey);
+  }
+
+  Future<String?> retriveMnemonicIsolate(String pin) async {
+    final pinCode = int.parse(pin);
+
+    final encryptionKey = await walletService.getEncryptionKey();
+    final appDocDir = await getApplicationDocumentsDirectory();
+    final appDir = Directory(path.join(appDocDir.path, 'durt2'));
+    if (!await appDir.exists()) {
+      await appDir.create(recursive: true);
+    }
+
+    final receivePort = ReceivePort();
+    await Isolate.spawn(retrieveMnemonicIsolate,
+        [receivePort.sendPort, encryptionKey, appDir.path]);
+
+    final message = await receivePort.first as List;
+    final isolateSendPort = message[0] as SendPort;
+    final replyTo = ReceivePort();
+    isolateSendPort.send([pinCode, replyTo.sendPort]);
+
+    return await replyTo.first as String?;
+  }
+}
+
+void retrieveMnemonicIsolate(List<dynamic> args) {
+  final sendPort = args[0] as SendPort;
+  final encryptionKey = args[1] as Uint8List;
+  final appDocumentPath = args[2] as String;
+
+  Hive.init(appDocumentPath);
+  Hive.registerAdapter(EncryptedMnemonicAdapter());
+
+  final receivePort = ReceivePort();
+  final streamController = StreamController<bool>();
+
+  receivePort.listen((message) async {
+    final pinCode = message[0] as int;
+    final replyTo = message[1] as SendPort;
+    final mnemonic =
+        await walletService.retrieveMnemonic(pinCode.toString(), encryptionKey);
+
+    replyTo.send(mnemonic);
+  });
+
+  sendPort.send([receivePort.sendPort, streamController.sink.add]);
+}
diff --git a/pubspec.yaml b/pubspec.yaml
index 6730a198177c7e27ffb470201594e925214bc859..8e4e9bc16e9fd0155eaa1ffc0dbf295312e479d9 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -12,7 +12,13 @@ dependencies:
   pointycastle: ^3.7.4
   polkadart: ^0.4.3
   polkadart_keyring: ^0.4.3
+  polkadart_cli: ^0.4.2
   ss58: ^1.1.2
+  graphql: ^5.2.0-beta.7
+  logger: ^2.2.0
+  riverpod: ^2.5.1
+  flutter_secure_storage: ^9.0.0
+  hive: ^2.2.3
 
 dev_dependencies:
   lints: ^2.0.0
diff --git a/scripts/generatePartsFiles.sh b/scripts/generatePartsFiles.sh
new file mode 100755
index 0000000000000000000000000000000000000000..e281f75f332f0669599e81759fc830f7667c2899
--- /dev/null
+++ b/scripts/generatePartsFiles.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+set -e
+
+dart run build_runner build --delete-conflicting-outputs
+
+# Add typed_data import to generated file
+file="lib/src/models/graphql/schema.graphql.dart"
+if ! grep -q 'import "dart:typed_data";' "$file"; then
+    sed -i '1i import "dart:typed_data";' "$file"
+fi
+
+# Replace index with indexEnum in generated file
+if grep -q "indexEnum" "$file"; then
+  exit 0
+fi
+
+sed -i '/enum Enum\$EventSelectColumn {/,/}/ s/\bindex\b/indexEnum/' $file
+sed -i '/enum Enum\$ExtrinsicSelectColumn {/,/}/ s/\bindex\b/indexEnum/' $file
+sed -i '/enum Enum\$IdentitySelectColumn {/,/}/ s/\bindex\b/indexEnum/' $file
+
+sed -i 's/Enum\$EventSelectColumn\.index/Enum\$EventSelectColumn\.indexEnum/g' $file
+sed -i 's/Enum\$ExtrinsicSelectColumn\.index/Enum\$ExtrinsicSelectColumn\.indexEnum/g' $file
+sed -i 's/Enum\$IdentitySelectColumn\.index/Enum\$IdentitySelectColumn\.indexEnum/g' $file
diff --git a/scripts/generateSquidSchema.sh b/scripts/generateSquidSchema.sh
new file mode 100755
index 0000000000000000000000000000000000000000..377a88ef8b8439eb1ec8c965b9889f3030986af3
--- /dev/null
+++ b/scripts/generateSquidSchema.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+# npx get-graphql-schema https://gdev-squid.axiom-team.fr/v1/graphql > lib/models/graphql/queries/schema.graphql
+npx get-graphql-schema https://gdev-squid.axiom-team.fr/v1beta1/relay > lib/models/graphql/queries/schema.graphql
diff --git a/test/durt2_test.dart b/test/durt2_test.dart
deleted file mode 100644
index 67bc052cb85987a1b174bad341cc60323d56de12..0000000000000000000000000000000000000000
--- a/test/durt2_test.dart
+++ /dev/null
@@ -1,12 +0,0 @@
-import 'package:flutter_test/flutter_test.dart';
-
-import 'package:durt2/durt2.dart';
-
-void main() {
-  test('adds one to input values', () {
-    final calculator = Calculator();
-    expect(calculator.addOne(2), 3);
-    expect(calculator.addOne(-7), -6);
-    expect(calculator.addOne(0), 1);
-  });
-}