@dedot/chaintypes 0.68.0 → 0.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -458,6 +458,15 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
458
458
  **/
459
459
  [name: string]: any;
460
460
  };
461
+ /**
462
+ * Pallet `RemoteProxyRelayChain`'s constants
463
+ **/
464
+ remoteProxyRelayChain: {
465
+ /**
466
+ * Generic pallet constant
467
+ **/
468
+ [name: string]: any;
469
+ };
461
470
  /**
462
471
  * Pallet `Assets`'s constants
463
472
  **/
@@ -806,6 +815,40 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
806
815
  **/
807
816
  palletId: FrameSupportPalletId;
808
817
 
818
+ /**
819
+ * Generic pallet constant
820
+ **/
821
+ [name: string]: any;
822
+ };
823
+ /**
824
+ * Pallet `StateTrieMigration`'s constants
825
+ **/
826
+ stateTrieMigration: {
827
+ /**
828
+ * Maximal number of bytes that a key can have.
829
+ *
830
+ * FRAME itself does not limit the key length.
831
+ * The concrete value must therefore depend on your storage usage.
832
+ * A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
833
+ * keys which are then hashed and concatenated, resulting in arbitrarily long keys.
834
+ *
835
+ * Use the *state migration RPC* to retrieve the length of the longest key in your
836
+ * storage: <https://github.com/paritytech/substrate/issues/11642>
837
+ *
838
+ * The migration will halt with a `Halted` event if this value is too small.
839
+ * Since there is no real penalty from over-estimating, it is advised to use a large
840
+ * value. The default is 512 byte.
841
+ *
842
+ * Some key lengths for reference:
843
+ * - [`frame_support::storage::StorageValue`]: 32 byte
844
+ * - [`frame_support::storage::StorageMap`]: 64 byte
845
+ * - [`frame_support::storage::StorageDoubleMap`]: 96 byte
846
+ *
847
+ * For more info see
848
+ * <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
849
+ **/
850
+ maxKeyLen: number;
851
+
809
852
  /**
810
853
  * Generic pallet constant
811
854
  **/
@@ -711,6 +711,50 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
711
711
  **/
712
712
  [error: string]: GenericPalletError<Rv>;
713
713
  };
714
+ /**
715
+ * Pallet `RemoteProxyRelayChain`'s errors
716
+ **/
717
+ remoteProxyRelayChain: {
718
+ /**
719
+ * The local account id could not converted to the remote account id.
720
+ **/
721
+ CouldNotConvertLocalToRemoteAccountId: GenericPalletError<Rv>;
722
+
723
+ /**
724
+ * The anchor block of the remote proof is unknown.
725
+ **/
726
+ UnknownProofAnchorBlock: GenericPalletError<Rv>;
727
+
728
+ /**
729
+ * The proxy definition could not be found in the proof.
730
+ **/
731
+ InvalidProof: GenericPalletError<Rv>;
732
+
733
+ /**
734
+ * Failed to decode the remote proxy definition from the proof.
735
+ **/
736
+ ProxyDefinitionDecodingFailed: GenericPalletError<Rv>;
737
+
738
+ /**
739
+ * Announcement, if made at all, was made too recently.
740
+ **/
741
+ Unannounced: GenericPalletError<Rv>;
742
+
743
+ /**
744
+ * Could not find any matching proxy definition in the proof.
745
+ **/
746
+ DidNotFindMatchingProxyDefinition: GenericPalletError<Rv>;
747
+
748
+ /**
749
+ * Proxy proof not registered.
750
+ **/
751
+ ProxyProofNotRegistered: GenericPalletError<Rv>;
752
+
753
+ /**
754
+ * Generic pallet error
755
+ **/
756
+ [error: string]: GenericPalletError<Rv>;
757
+ };
714
758
  /**
715
759
  * Pallet `Assets`'s errors
716
760
  **/
@@ -1546,6 +1590,51 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1546
1590
  **/
1547
1591
  BelowMinimum: GenericPalletError<Rv>;
1548
1592
 
1593
+ /**
1594
+ * Generic pallet error
1595
+ **/
1596
+ [error: string]: GenericPalletError<Rv>;
1597
+ };
1598
+ /**
1599
+ * Pallet `StateTrieMigration`'s errors
1600
+ **/
1601
+ stateTrieMigration: {
1602
+ /**
1603
+ * Max signed limits not respected.
1604
+ **/
1605
+ MaxSignedLimits: GenericPalletError<Rv>;
1606
+
1607
+ /**
1608
+ * A key was longer than the configured maximum.
1609
+ *
1610
+ * This means that the migration halted at the current [`Progress`] and
1611
+ * can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
1612
+ * Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
1613
+ * The value should only be increased to avoid a storage migration for the currently
1614
+ * stored [`crate::Progress::LastKey`].
1615
+ **/
1616
+ KeyTooLong: GenericPalletError<Rv>;
1617
+
1618
+ /**
1619
+ * submitter does not have enough funds.
1620
+ **/
1621
+ NotEnoughFunds: GenericPalletError<Rv>;
1622
+
1623
+ /**
1624
+ * Bad witness data provided.
1625
+ **/
1626
+ BadWitness: GenericPalletError<Rv>;
1627
+
1628
+ /**
1629
+ * Signed migration is not allowed because the maximum limit is not set yet.
1630
+ **/
1631
+ SignedMigrationNotAllowed: GenericPalletError<Rv>;
1632
+
1633
+ /**
1634
+ * Bad child root provided.
1635
+ **/
1636
+ BadChildRoot: GenericPalletError<Rv>;
1637
+
1549
1638
  /**
1550
1639
  * Generic pallet error
1551
1640
  **/
@@ -30,6 +30,8 @@ import type {
30
30
  PalletNftsAttributeNamespace,
31
31
  PalletNftsPriceWithDirection,
32
32
  PalletNftsPalletAttributes,
33
+ PalletStateTrieMigrationMigrationCompute,
34
+ PalletStateTrieMigrationError,
33
35
  } from './types';
34
36
 
35
37
  export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<Rv> {
@@ -2502,6 +2504,41 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2502
2504
  }
2503
2505
  >;
2504
2506
 
2507
+ /**
2508
+ * Generic pallet event
2509
+ **/
2510
+ [prop: string]: GenericPalletEvent<Rv>;
2511
+ };
2512
+ /**
2513
+ * Pallet `StateTrieMigration`'s events
2514
+ **/
2515
+ stateTrieMigration: {
2516
+ /**
2517
+ * Given number of `(top, child)` keys were migrated respectively, with the given
2518
+ * `compute`.
2519
+ **/
2520
+ Migrated: GenericPalletEvent<
2521
+ Rv,
2522
+ 'StateTrieMigration',
2523
+ 'Migrated',
2524
+ { top: number; child: number; compute: PalletStateTrieMigrationMigrationCompute }
2525
+ >;
2526
+
2527
+ /**
2528
+ * Some account got slashed by the given amount.
2529
+ **/
2530
+ Slashed: GenericPalletEvent<Rv, 'StateTrieMigration', 'Slashed', { who: AccountId32; amount: bigint }>;
2531
+
2532
+ /**
2533
+ * The auto migration task finished.
2534
+ **/
2535
+ AutoMigrationFinished: GenericPalletEvent<Rv, 'StateTrieMigration', 'AutoMigrationFinished', null>;
2536
+
2537
+ /**
2538
+ * Migration got halted due to an error or miss-configuration.
2539
+ **/
2540
+ Halted: GenericPalletEvent<Rv, 'StateTrieMigration', 'Halted', { error: PalletStateTrieMigrationError }>;
2541
+
2505
2542
  /**
2506
2543
  * Generic pallet event
2507
2544
  **/
@@ -23,7 +23,7 @@ export interface VersionedKusamaAssetHubApi<Rv extends RpcVersion> extends Gener
23
23
 
24
24
  /**
25
25
  * @name: KusamaAssetHubApi
26
- * @specVersion: 1004000
26
+ * @specVersion: 1004002
27
27
  **/
28
28
  export interface KusamaAssetHubApi {
29
29
  legacy: VersionedKusamaAssetHubApi<RpcLegacy>;
@@ -79,6 +79,8 @@ import type {
79
79
  StagingXcmV4Location,
80
80
  PalletNftFractionalizationDetails,
81
81
  PalletAssetConversionPoolInfo,
82
+ PalletStateTrieMigrationMigrationTask,
83
+ PalletStateTrieMigrationMigrationLimits,
82
84
  } from './types';
83
85
 
84
86
  export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
@@ -1222,6 +1224,23 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1222
1224
  **/
1223
1225
  [storage: string]: GenericStorageQuery<Rv>;
1224
1226
  };
1227
+ /**
1228
+ * Pallet `RemoteProxyRelayChain`'s storage queries
1229
+ **/
1230
+ remoteProxyRelayChain: {
1231
+ /**
1232
+ * Stores the last [`Config::MaxStorageRootsToKeep`] block to storage root mappings of the
1233
+ * target chain.
1234
+ *
1235
+ * @param {Callback<Array<[number, H256]>> =} callback
1236
+ **/
1237
+ blockToRoot: GenericStorageQuery<Rv, () => Array<[number, H256]>>;
1238
+
1239
+ /**
1240
+ * Generic pallet storage query
1241
+ **/
1242
+ [storage: string]: GenericStorageQuery<Rv>;
1243
+ };
1225
1244
  /**
1226
1245
  * Pallet `Assets`'s storage queries
1227
1246
  **/
@@ -1743,6 +1762,43 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1743
1762
  **/
1744
1763
  nextPoolAssetId: GenericStorageQuery<Rv, () => number | undefined>;
1745
1764
 
1765
+ /**
1766
+ * Generic pallet storage query
1767
+ **/
1768
+ [storage: string]: GenericStorageQuery<Rv>;
1769
+ };
1770
+ /**
1771
+ * Pallet `StateTrieMigration`'s storage queries
1772
+ **/
1773
+ stateTrieMigration: {
1774
+ /**
1775
+ * Migration progress.
1776
+ *
1777
+ * This stores the snapshot of the last migrated keys. It can be set into motion and move
1778
+ * forward by any of the means provided by this pallet.
1779
+ *
1780
+ * @param {Callback<PalletStateTrieMigrationMigrationTask> =} callback
1781
+ **/
1782
+ migrationProcess: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationTask>;
1783
+
1784
+ /**
1785
+ * The limits that are imposed on automatic migrations.
1786
+ *
1787
+ * If set to None, then no automatic migration happens.
1788
+ *
1789
+ * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
1790
+ **/
1791
+ autoLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
1792
+
1793
+ /**
1794
+ * The maximum limits that the signed migration could use.
1795
+ *
1796
+ * If not set, no signed submission is allowed.
1797
+ *
1798
+ * @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
1799
+ **/
1800
+ signedMigrationMaxLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
1801
+
1746
1802
  /**
1747
1803
  * Generic pallet storage query
1748
1804
  **/
@@ -31,6 +31,7 @@ import type {
31
31
  AssetHubKusamaRuntimeOriginCaller,
32
32
  PalletMultisigTimepoint,
33
33
  AssetHubKusamaRuntimeProxyType,
34
+ PalletRemoteProxyRemoteProxyProof,
34
35
  PalletUniquesDestroyWitness,
35
36
  PalletNftsCollectionConfig,
36
37
  PalletNftsDestroyWitness,
@@ -44,6 +45,9 @@ import type {
44
45
  PalletNftsPriceWithDirection,
45
46
  PalletNftsPreSignedMint,
46
47
  PalletNftsPreSignedAttributes,
48
+ PalletStateTrieMigrationMigrationLimits,
49
+ PalletStateTrieMigrationMigrationTask,
50
+ PalletStateTrieMigrationProgress,
47
51
  } from './types';
48
52
 
49
53
  export type ChainSubmittableExtrinsic<
@@ -2798,6 +2802,143 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2798
2802
  **/
2799
2803
  [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
2800
2804
  };
2805
+ /**
2806
+ * Pallet `RemoteProxyRelayChain`'s transaction calls
2807
+ **/
2808
+ remoteProxyRelayChain: {
2809
+ /**
2810
+ * Dispatch the given `call` from an account that the sender is authorised on a remote
2811
+ * chain.
2812
+ *
2813
+ * The dispatch origin for this call must be _Signed_.
2814
+ *
2815
+ * Parameters:
2816
+ * - `real`: The account that the proxy will make a call on behalf of.
2817
+ * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
2818
+ * - `call`: The call to be made by the `real` account.
2819
+ * - `proof`: The proof from the remote chain about the existence of the proxy.
2820
+ *
2821
+ * @param {MultiAddressLike} real
2822
+ * @param {AssetHubKusamaRuntimeProxyType | undefined} forceProxyType
2823
+ * @param {AssetHubKusamaRuntimeRuntimeCallLike} call
2824
+ * @param {PalletRemoteProxyRemoteProxyProof} proof
2825
+ **/
2826
+ remoteProxy: GenericTxCall<
2827
+ Rv,
2828
+ (
2829
+ real: MultiAddressLike,
2830
+ forceProxyType: AssetHubKusamaRuntimeProxyType | undefined,
2831
+ call: AssetHubKusamaRuntimeRuntimeCallLike,
2832
+ proof: PalletRemoteProxyRemoteProxyProof,
2833
+ ) => ChainSubmittableExtrinsic<
2834
+ Rv,
2835
+ {
2836
+ pallet: 'RemoteProxyRelayChain';
2837
+ palletCall: {
2838
+ name: 'RemoteProxy';
2839
+ params: {
2840
+ real: MultiAddressLike;
2841
+ forceProxyType: AssetHubKusamaRuntimeProxyType | undefined;
2842
+ call: AssetHubKusamaRuntimeRuntimeCallLike;
2843
+ proof: PalletRemoteProxyRemoteProxyProof;
2844
+ };
2845
+ };
2846
+ }
2847
+ >
2848
+ >;
2849
+
2850
+ /**
2851
+ * Register a given remote proxy proof in the current [`dispatch_context`].
2852
+ *
2853
+ * The registered remote proof can then be used later in the same context to execute a
2854
+ * remote proxy call. This is for example useful when having a multisig operation. The
2855
+ * multisig call can use [`Self::remote_proxy_with_registered_proof`] to get an approval by
2856
+ * the members of the multisig. The final execution of the multisig call should be at least
2857
+ * a batch of `register_remote_proxy_proof` and the multisig call that uses
2858
+ * `remote_proxy_with_registered_proof`. This way the final approver can use a recent proof
2859
+ * to prove the existence of the remote proxy. Otherwise it would require the multisig
2860
+ * members to approve the call in [`Config::MaxStorageRootsToKeep`] amount of time.
2861
+ *
2862
+ * It is supported to register multiple proofs, but the proofs need to be consumed in the
2863
+ * reverse order as they were registered. Basically this means last in, first out.
2864
+ *
2865
+ * The [`dispatch_context`] spans the entire lifetime of a transaction and every call in
2866
+ * the transaction gets access to the same context.
2867
+ *
2868
+ * # Example
2869
+ *
2870
+ * ```ignore
2871
+ * batch([
2872
+ * register_remote_proxy_proof,
2873
+ * as_multisig(remote_proxy_with_registered_proof(transfer))
2874
+ * ])
2875
+ * ```
2876
+ *
2877
+ * As `proofs` can not be verified indefinitely (the time the storage roots are stored is
2878
+ * limited) this function provides the possibility to provide a "fresh proof" at time of
2879
+ * dispatch. As in the example above, this could be useful for multisig operation that
2880
+ * depend on multiple members to approve a certain action, which can take multiple days.
2881
+ *
2882
+ * @param {PalletRemoteProxyRemoteProxyProof} proof
2883
+ **/
2884
+ registerRemoteProxyProof: GenericTxCall<
2885
+ Rv,
2886
+ (proof: PalletRemoteProxyRemoteProxyProof) => ChainSubmittableExtrinsic<
2887
+ Rv,
2888
+ {
2889
+ pallet: 'RemoteProxyRelayChain';
2890
+ palletCall: {
2891
+ name: 'RegisterRemoteProxyProof';
2892
+ params: { proof: PalletRemoteProxyRemoteProxyProof };
2893
+ };
2894
+ }
2895
+ >
2896
+ >;
2897
+
2898
+ /**
2899
+ * Dispatch the given `call` from an account that the sender is authorised on a remote
2900
+ * chain.
2901
+ *
2902
+ * The dispatch origin for this call must be _Signed_. The difference to
2903
+ * [`Self::remote_proxy`] is that the proof nees to registered before using
2904
+ * [`Self::register_remote_proxy_proof`] (see for more information).
2905
+ *
2906
+ * Parameters:
2907
+ * - `real`: The account that the proxy will make a call on behalf of.
2908
+ * - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
2909
+ * - `call`: The call to be made by the `real` account.
2910
+ *
2911
+ * @param {MultiAddressLike} real
2912
+ * @param {AssetHubKusamaRuntimeProxyType | undefined} forceProxyType
2913
+ * @param {AssetHubKusamaRuntimeRuntimeCallLike} call
2914
+ **/
2915
+ remoteProxyWithRegisteredProof: GenericTxCall<
2916
+ Rv,
2917
+ (
2918
+ real: MultiAddressLike,
2919
+ forceProxyType: AssetHubKusamaRuntimeProxyType | undefined,
2920
+ call: AssetHubKusamaRuntimeRuntimeCallLike,
2921
+ ) => ChainSubmittableExtrinsic<
2922
+ Rv,
2923
+ {
2924
+ pallet: 'RemoteProxyRelayChain';
2925
+ palletCall: {
2926
+ name: 'RemoteProxyWithRegisteredProof';
2927
+ params: {
2928
+ real: MultiAddressLike;
2929
+ forceProxyType: AssetHubKusamaRuntimeProxyType | undefined;
2930
+ call: AssetHubKusamaRuntimeRuntimeCallLike;
2931
+ };
2932
+ };
2933
+ }
2934
+ >
2935
+ >;
2936
+
2937
+ /**
2938
+ * Generic pallet tx call
2939
+ **/
2940
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
2941
+ };
2801
2942
  /**
2802
2943
  * Pallet `Assets`'s transaction calls
2803
2944
  **/
@@ -9217,6 +9358,191 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9217
9358
  >
9218
9359
  >;
9219
9360
 
9361
+ /**
9362
+ * Generic pallet tx call
9363
+ **/
9364
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
9365
+ };
9366
+ /**
9367
+ * Pallet `StateTrieMigration`'s transaction calls
9368
+ **/
9369
+ stateTrieMigration: {
9370
+ /**
9371
+ * Control the automatic migration.
9372
+ *
9373
+ * The dispatch origin of this call must be [`Config::ControlOrigin`].
9374
+ *
9375
+ * @param {PalletStateTrieMigrationMigrationLimits | undefined} maybeConfig
9376
+ **/
9377
+ controlAutoMigration: GenericTxCall<
9378
+ Rv,
9379
+ (maybeConfig: PalletStateTrieMigrationMigrationLimits | undefined) => ChainSubmittableExtrinsic<
9380
+ Rv,
9381
+ {
9382
+ pallet: 'StateTrieMigration';
9383
+ palletCall: {
9384
+ name: 'ControlAutoMigration';
9385
+ params: { maybeConfig: PalletStateTrieMigrationMigrationLimits | undefined };
9386
+ };
9387
+ }
9388
+ >
9389
+ >;
9390
+
9391
+ /**
9392
+ * Continue the migration for the given `limits`.
9393
+ *
9394
+ * The dispatch origin of this call can be any signed account.
9395
+ *
9396
+ * This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit,
9397
+ * Upon successful execution, the transaction fee is returned.
9398
+ *
9399
+ * The (potentially over-estimated) of the byte length of all the data read must be
9400
+ * provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing
9401
+ * that executing the current `MigrationTask` with the given `limits` will not exceed
9402
+ * `real_size_upper` bytes of read data.
9403
+ *
9404
+ * The `witness_task` is merely a helper to prevent the caller from being slashed or
9405
+ * generally trigger a migration that they do not intend. This parameter is just a message
9406
+ * from caller, saying that they believed `witness_task` was the last state of the
9407
+ * migration, and they only wish for their transaction to do anything, if this assumption
9408
+ * holds. In case `witness_task` does not match, the transaction fails.
9409
+ *
9410
+ * Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the
9411
+ * recommended way of doing this is to pass a `limit` that only bounds `count`, as the
9412
+ * `size` limit can always be overwritten.
9413
+ *
9414
+ * @param {PalletStateTrieMigrationMigrationLimits} limits
9415
+ * @param {number} realSizeUpper
9416
+ * @param {PalletStateTrieMigrationMigrationTask} witnessTask
9417
+ **/
9418
+ continueMigrate: GenericTxCall<
9419
+ Rv,
9420
+ (
9421
+ limits: PalletStateTrieMigrationMigrationLimits,
9422
+ realSizeUpper: number,
9423
+ witnessTask: PalletStateTrieMigrationMigrationTask,
9424
+ ) => ChainSubmittableExtrinsic<
9425
+ Rv,
9426
+ {
9427
+ pallet: 'StateTrieMigration';
9428
+ palletCall: {
9429
+ name: 'ContinueMigrate';
9430
+ params: {
9431
+ limits: PalletStateTrieMigrationMigrationLimits;
9432
+ realSizeUpper: number;
9433
+ witnessTask: PalletStateTrieMigrationMigrationTask;
9434
+ };
9435
+ };
9436
+ }
9437
+ >
9438
+ >;
9439
+
9440
+ /**
9441
+ * Migrate the list of top keys by iterating each of them one by one.
9442
+ *
9443
+ * This does not affect the global migration process tracker ([`MigrationProcess`]), and
9444
+ * should only be used in case any keys are leftover due to a bug.
9445
+ *
9446
+ * @param {Array<BytesLike>} keys
9447
+ * @param {number} witnessSize
9448
+ **/
9449
+ migrateCustomTop: GenericTxCall<
9450
+ Rv,
9451
+ (
9452
+ keys: Array<BytesLike>,
9453
+ witnessSize: number,
9454
+ ) => ChainSubmittableExtrinsic<
9455
+ Rv,
9456
+ {
9457
+ pallet: 'StateTrieMigration';
9458
+ palletCall: {
9459
+ name: 'MigrateCustomTop';
9460
+ params: { keys: Array<BytesLike>; witnessSize: number };
9461
+ };
9462
+ }
9463
+ >
9464
+ >;
9465
+
9466
+ /**
9467
+ * Migrate the list of child keys by iterating each of them one by one.
9468
+ *
9469
+ * All of the given child keys must be present under one `child_root`.
9470
+ *
9471
+ * This does not affect the global migration process tracker ([`MigrationProcess`]), and
9472
+ * should only be used in case any keys are leftover due to a bug.
9473
+ *
9474
+ * @param {BytesLike} root
9475
+ * @param {Array<BytesLike>} childKeys
9476
+ * @param {number} totalSize
9477
+ **/
9478
+ migrateCustomChild: GenericTxCall<
9479
+ Rv,
9480
+ (
9481
+ root: BytesLike,
9482
+ childKeys: Array<BytesLike>,
9483
+ totalSize: number,
9484
+ ) => ChainSubmittableExtrinsic<
9485
+ Rv,
9486
+ {
9487
+ pallet: 'StateTrieMigration';
9488
+ palletCall: {
9489
+ name: 'MigrateCustomChild';
9490
+ params: { root: BytesLike; childKeys: Array<BytesLike>; totalSize: number };
9491
+ };
9492
+ }
9493
+ >
9494
+ >;
9495
+
9496
+ /**
9497
+ * Set the maximum limit of the signed migration.
9498
+ *
9499
+ * @param {PalletStateTrieMigrationMigrationLimits} limits
9500
+ **/
9501
+ setSignedMaxLimits: GenericTxCall<
9502
+ Rv,
9503
+ (limits: PalletStateTrieMigrationMigrationLimits) => ChainSubmittableExtrinsic<
9504
+ Rv,
9505
+ {
9506
+ pallet: 'StateTrieMigration';
9507
+ palletCall: {
9508
+ name: 'SetSignedMaxLimits';
9509
+ params: { limits: PalletStateTrieMigrationMigrationLimits };
9510
+ };
9511
+ }
9512
+ >
9513
+ >;
9514
+
9515
+ /**
9516
+ * Forcefully set the progress the running migration.
9517
+ *
9518
+ * This is only useful in one case: the next key to migrate is too big to be migrated with
9519
+ * a signed account, in a parachain context, and we simply want to skip it. A reasonable
9520
+ * example of this would be `:code:`, which is both very expensive to migrate, and commonly
9521
+ * used, so probably it is already migrated.
9522
+ *
9523
+ * In case you mess things up, you can also, in principle, use this to reset the migration
9524
+ * process.
9525
+ *
9526
+ * @param {PalletStateTrieMigrationProgress} progressTop
9527
+ * @param {PalletStateTrieMigrationProgress} progressChild
9528
+ **/
9529
+ forceSetProgress: GenericTxCall<
9530
+ Rv,
9531
+ (
9532
+ progressTop: PalletStateTrieMigrationProgress,
9533
+ progressChild: PalletStateTrieMigrationProgress,
9534
+ ) => ChainSubmittableExtrinsic<
9535
+ Rv,
9536
+ {
9537
+ pallet: 'StateTrieMigration';
9538
+ palletCall: {
9539
+ name: 'ForceSetProgress';
9540
+ params: { progressTop: PalletStateTrieMigrationProgress; progressChild: PalletStateTrieMigrationProgress };
9541
+ };
9542
+ }
9543
+ >
9544
+ >;
9545
+
9220
9546
  /**
9221
9547
  * Generic pallet tx call
9222
9548
  **/