@dedot/chaintypes 0.69.0 → 0.71.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.
- package/aleph/consts.d.ts +2 -0
- package/aleph/errors.d.ts +1 -1
- package/aleph/events.d.ts +13 -2
- package/aleph/index.d.ts +1 -1
- package/aleph/query.d.ts +35 -5
- package/aleph/runtime.d.ts +20 -0
- package/aleph/tx.d.ts +57 -0
- package/aleph/types.d.ts +70 -18
- package/kusama-asset-hub/consts.d.ts +43 -0
- package/kusama-asset-hub/errors.d.ts +89 -0
- package/kusama-asset-hub/events.d.ts +37 -0
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/query.d.ts +56 -0
- package/kusama-asset-hub/tx.d.ts +326 -0
- package/kusama-asset-hub/types.d.ts +428 -4
- package/package.json +2 -2
- package/westend-asset-hub/errors.d.ts +5 -0
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/types.d.ts +11 -2
|
@@ -71,7 +71,8 @@ export type AssetHubKusamaRuntimeRuntimeEvent =
|
|
|
71
71
|
| { pallet: 'ForeignAssets'; palletEvent: PalletAssetsEvent002 }
|
|
72
72
|
| { pallet: 'NftFractionalization'; palletEvent: PalletNftFractionalizationEvent }
|
|
73
73
|
| { pallet: 'PoolAssets'; palletEvent: PalletAssetsEvent }
|
|
74
|
-
| { pallet: 'AssetConversion'; palletEvent: PalletAssetConversionEvent }
|
|
74
|
+
| { pallet: 'AssetConversion'; palletEvent: PalletAssetConversionEvent }
|
|
75
|
+
| { pallet: 'StateTrieMigration'; palletEvent: PalletStateTrieMigrationEvent };
|
|
75
76
|
|
|
76
77
|
/**
|
|
77
78
|
* Event for the System pallet.
|
|
@@ -2096,6 +2097,65 @@ export type PalletAssetConversionEvent =
|
|
|
2096
2097
|
};
|
|
2097
2098
|
};
|
|
2098
2099
|
|
|
2100
|
+
/**
|
|
2101
|
+
* Inner events of this pallet.
|
|
2102
|
+
**/
|
|
2103
|
+
export type PalletStateTrieMigrationEvent =
|
|
2104
|
+
/**
|
|
2105
|
+
* Given number of `(top, child)` keys were migrated respectively, with the given
|
|
2106
|
+
* `compute`.
|
|
2107
|
+
**/
|
|
2108
|
+
| { name: 'Migrated'; data: { top: number; child: number; compute: PalletStateTrieMigrationMigrationCompute } }
|
|
2109
|
+
/**
|
|
2110
|
+
* Some account got slashed by the given amount.
|
|
2111
|
+
**/
|
|
2112
|
+
| { name: 'Slashed'; data: { who: AccountId32; amount: bigint } }
|
|
2113
|
+
/**
|
|
2114
|
+
* The auto migration task finished.
|
|
2115
|
+
**/
|
|
2116
|
+
| { name: 'AutoMigrationFinished' }
|
|
2117
|
+
/**
|
|
2118
|
+
* Migration got halted due to an error or miss-configuration.
|
|
2119
|
+
**/
|
|
2120
|
+
| { name: 'Halted'; data: { error: PalletStateTrieMigrationError } };
|
|
2121
|
+
|
|
2122
|
+
export type PalletStateTrieMigrationMigrationCompute = 'Signed' | 'Auto';
|
|
2123
|
+
|
|
2124
|
+
/**
|
|
2125
|
+
* The `Error` enum of this pallet.
|
|
2126
|
+
**/
|
|
2127
|
+
export type PalletStateTrieMigrationError =
|
|
2128
|
+
/**
|
|
2129
|
+
* Max signed limits not respected.
|
|
2130
|
+
**/
|
|
2131
|
+
| 'MaxSignedLimits'
|
|
2132
|
+
/**
|
|
2133
|
+
* A key was longer than the configured maximum.
|
|
2134
|
+
*
|
|
2135
|
+
* This means that the migration halted at the current [`Progress`] and
|
|
2136
|
+
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
|
|
2137
|
+
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
|
|
2138
|
+
* The value should only be increased to avoid a storage migration for the currently
|
|
2139
|
+
* stored [`crate::Progress::LastKey`].
|
|
2140
|
+
**/
|
|
2141
|
+
| 'KeyTooLong'
|
|
2142
|
+
/**
|
|
2143
|
+
* submitter does not have enough funds.
|
|
2144
|
+
**/
|
|
2145
|
+
| 'NotEnoughFunds'
|
|
2146
|
+
/**
|
|
2147
|
+
* Bad witness data provided.
|
|
2148
|
+
**/
|
|
2149
|
+
| 'BadWitness'
|
|
2150
|
+
/**
|
|
2151
|
+
* Signed migration is not allowed because the maximum limit is not set yet.
|
|
2152
|
+
**/
|
|
2153
|
+
| 'SignedMigrationNotAllowed'
|
|
2154
|
+
/**
|
|
2155
|
+
* Bad child root provided.
|
|
2156
|
+
**/
|
|
2157
|
+
| 'BadChildRoot';
|
|
2158
|
+
|
|
2099
2159
|
export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string };
|
|
2100
2160
|
|
|
2101
2161
|
export type FrameSystemCodeUpgradeAuthorization = { codeHash: H256; checkVersion: boolean };
|
|
@@ -4875,13 +4935,15 @@ export type AssetHubKusamaRuntimeRuntimeCall =
|
|
|
4875
4935
|
| { pallet: 'Utility'; palletCall: PalletUtilityCall }
|
|
4876
4936
|
| { pallet: 'Multisig'; palletCall: PalletMultisigCall }
|
|
4877
4937
|
| { pallet: 'Proxy'; palletCall: PalletProxyCall }
|
|
4938
|
+
| { pallet: 'RemoteProxyRelayChain'; palletCall: PalletRemoteProxyCall }
|
|
4878
4939
|
| { pallet: 'Assets'; palletCall: PalletAssetsCall }
|
|
4879
4940
|
| { pallet: 'Uniques'; palletCall: PalletUniquesCall }
|
|
4880
4941
|
| { pallet: 'Nfts'; palletCall: PalletNftsCall }
|
|
4881
4942
|
| { pallet: 'ForeignAssets'; palletCall: PalletAssetsCall002 }
|
|
4882
4943
|
| { pallet: 'NftFractionalization'; palletCall: PalletNftFractionalizationCall }
|
|
4883
4944
|
| { pallet: 'PoolAssets'; palletCall: PalletAssetsCall003 }
|
|
4884
|
-
| { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCall }
|
|
4945
|
+
| { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCall }
|
|
4946
|
+
| { pallet: 'StateTrieMigration'; palletCall: PalletStateTrieMigrationCall };
|
|
4885
4947
|
|
|
4886
4948
|
export type AssetHubKusamaRuntimeRuntimeCallLike =
|
|
4887
4949
|
| { pallet: 'System'; palletCall: FrameSystemCallLike }
|
|
@@ -4900,13 +4962,15 @@ export type AssetHubKusamaRuntimeRuntimeCallLike =
|
|
|
4900
4962
|
| { pallet: 'Utility'; palletCall: PalletUtilityCallLike }
|
|
4901
4963
|
| { pallet: 'Multisig'; palletCall: PalletMultisigCallLike }
|
|
4902
4964
|
| { pallet: 'Proxy'; palletCall: PalletProxyCallLike }
|
|
4965
|
+
| { pallet: 'RemoteProxyRelayChain'; palletCall: PalletRemoteProxyCallLike }
|
|
4903
4966
|
| { pallet: 'Assets'; palletCall: PalletAssetsCallLike }
|
|
4904
4967
|
| { pallet: 'Uniques'; palletCall: PalletUniquesCallLike }
|
|
4905
4968
|
| { pallet: 'Nfts'; palletCall: PalletNftsCallLike }
|
|
4906
4969
|
| { pallet: 'ForeignAssets'; palletCall: PalletAssetsCallLike002 }
|
|
4907
4970
|
| { pallet: 'NftFractionalization'; palletCall: PalletNftFractionalizationCallLike }
|
|
4908
4971
|
| { pallet: 'PoolAssets'; palletCall: PalletAssetsCallLike003 }
|
|
4909
|
-
| { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCallLike }
|
|
4972
|
+
| { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCallLike }
|
|
4973
|
+
| { pallet: 'StateTrieMigration'; palletCall: PalletStateTrieMigrationCallLike };
|
|
4910
4974
|
|
|
4911
4975
|
/**
|
|
4912
4976
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -5547,6 +5611,165 @@ export type PalletProxyCallLike =
|
|
|
5547
5611
|
};
|
|
5548
5612
|
};
|
|
5549
5613
|
|
|
5614
|
+
/**
|
|
5615
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
5616
|
+
**/
|
|
5617
|
+
export type PalletRemoteProxyCall =
|
|
5618
|
+
/**
|
|
5619
|
+
* Dispatch the given `call` from an account that the sender is authorised on a remote
|
|
5620
|
+
* chain.
|
|
5621
|
+
*
|
|
5622
|
+
* The dispatch origin for this call must be _Signed_.
|
|
5623
|
+
*
|
|
5624
|
+
* Parameters:
|
|
5625
|
+
* - `real`: The account that the proxy will make a call on behalf of.
|
|
5626
|
+
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
|
5627
|
+
* - `call`: The call to be made by the `real` account.
|
|
5628
|
+
* - `proof`: The proof from the remote chain about the existence of the proxy.
|
|
5629
|
+
**/
|
|
5630
|
+
| {
|
|
5631
|
+
name: 'RemoteProxy';
|
|
5632
|
+
params: {
|
|
5633
|
+
real: MultiAddress;
|
|
5634
|
+
forceProxyType?: AssetHubKusamaRuntimeProxyType | undefined;
|
|
5635
|
+
call: AssetHubKusamaRuntimeRuntimeCall;
|
|
5636
|
+
proof: PalletRemoteProxyRemoteProxyProof;
|
|
5637
|
+
};
|
|
5638
|
+
}
|
|
5639
|
+
/**
|
|
5640
|
+
* Register a given remote proxy proof in the current [`dispatch_context`].
|
|
5641
|
+
*
|
|
5642
|
+
* The registered remote proof can then be used later in the same context to execute a
|
|
5643
|
+
* remote proxy call. This is for example useful when having a multisig operation. The
|
|
5644
|
+
* multisig call can use [`Self::remote_proxy_with_registered_proof`] to get an approval by
|
|
5645
|
+
* the members of the multisig. The final execution of the multisig call should be at least
|
|
5646
|
+
* a batch of `register_remote_proxy_proof` and the multisig call that uses
|
|
5647
|
+
* `remote_proxy_with_registered_proof`. This way the final approver can use a recent proof
|
|
5648
|
+
* to prove the existence of the remote proxy. Otherwise it would require the multisig
|
|
5649
|
+
* members to approve the call in [`Config::MaxStorageRootsToKeep`] amount of time.
|
|
5650
|
+
*
|
|
5651
|
+
* It is supported to register multiple proofs, but the proofs need to be consumed in the
|
|
5652
|
+
* reverse order as they were registered. Basically this means last in, first out.
|
|
5653
|
+
*
|
|
5654
|
+
* The [`dispatch_context`] spans the entire lifetime of a transaction and every call in
|
|
5655
|
+
* the transaction gets access to the same context.
|
|
5656
|
+
*
|
|
5657
|
+
* # Example
|
|
5658
|
+
*
|
|
5659
|
+
* ```ignore
|
|
5660
|
+
* batch([
|
|
5661
|
+
* register_remote_proxy_proof,
|
|
5662
|
+
* as_multisig(remote_proxy_with_registered_proof(transfer))
|
|
5663
|
+
* ])
|
|
5664
|
+
* ```
|
|
5665
|
+
*
|
|
5666
|
+
* As `proofs` can not be verified indefinitely (the time the storage roots are stored is
|
|
5667
|
+
* limited) this function provides the possibility to provide a "fresh proof" at time of
|
|
5668
|
+
* dispatch. As in the example above, this could be useful for multisig operation that
|
|
5669
|
+
* depend on multiple members to approve a certain action, which can take multiple days.
|
|
5670
|
+
**/
|
|
5671
|
+
| { name: 'RegisterRemoteProxyProof'; params: { proof: PalletRemoteProxyRemoteProxyProof } }
|
|
5672
|
+
/**
|
|
5673
|
+
* Dispatch the given `call` from an account that the sender is authorised on a remote
|
|
5674
|
+
* chain.
|
|
5675
|
+
*
|
|
5676
|
+
* The dispatch origin for this call must be _Signed_. The difference to
|
|
5677
|
+
* [`Self::remote_proxy`] is that the proof nees to registered before using
|
|
5678
|
+
* [`Self::register_remote_proxy_proof`] (see for more information).
|
|
5679
|
+
*
|
|
5680
|
+
* Parameters:
|
|
5681
|
+
* - `real`: The account that the proxy will make a call on behalf of.
|
|
5682
|
+
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
|
5683
|
+
* - `call`: The call to be made by the `real` account.
|
|
5684
|
+
**/
|
|
5685
|
+
| {
|
|
5686
|
+
name: 'RemoteProxyWithRegisteredProof';
|
|
5687
|
+
params: {
|
|
5688
|
+
real: MultiAddress;
|
|
5689
|
+
forceProxyType?: AssetHubKusamaRuntimeProxyType | undefined;
|
|
5690
|
+
call: AssetHubKusamaRuntimeRuntimeCall;
|
|
5691
|
+
};
|
|
5692
|
+
};
|
|
5693
|
+
|
|
5694
|
+
export type PalletRemoteProxyCallLike =
|
|
5695
|
+
/**
|
|
5696
|
+
* Dispatch the given `call` from an account that the sender is authorised on a remote
|
|
5697
|
+
* chain.
|
|
5698
|
+
*
|
|
5699
|
+
* The dispatch origin for this call must be _Signed_.
|
|
5700
|
+
*
|
|
5701
|
+
* Parameters:
|
|
5702
|
+
* - `real`: The account that the proxy will make a call on behalf of.
|
|
5703
|
+
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
|
5704
|
+
* - `call`: The call to be made by the `real` account.
|
|
5705
|
+
* - `proof`: The proof from the remote chain about the existence of the proxy.
|
|
5706
|
+
**/
|
|
5707
|
+
| {
|
|
5708
|
+
name: 'RemoteProxy';
|
|
5709
|
+
params: {
|
|
5710
|
+
real: MultiAddressLike;
|
|
5711
|
+
forceProxyType?: AssetHubKusamaRuntimeProxyType | undefined;
|
|
5712
|
+
call: AssetHubKusamaRuntimeRuntimeCallLike;
|
|
5713
|
+
proof: PalletRemoteProxyRemoteProxyProof;
|
|
5714
|
+
};
|
|
5715
|
+
}
|
|
5716
|
+
/**
|
|
5717
|
+
* Register a given remote proxy proof in the current [`dispatch_context`].
|
|
5718
|
+
*
|
|
5719
|
+
* The registered remote proof can then be used later in the same context to execute a
|
|
5720
|
+
* remote proxy call. This is for example useful when having a multisig operation. The
|
|
5721
|
+
* multisig call can use [`Self::remote_proxy_with_registered_proof`] to get an approval by
|
|
5722
|
+
* the members of the multisig. The final execution of the multisig call should be at least
|
|
5723
|
+
* a batch of `register_remote_proxy_proof` and the multisig call that uses
|
|
5724
|
+
* `remote_proxy_with_registered_proof`. This way the final approver can use a recent proof
|
|
5725
|
+
* to prove the existence of the remote proxy. Otherwise it would require the multisig
|
|
5726
|
+
* members to approve the call in [`Config::MaxStorageRootsToKeep`] amount of time.
|
|
5727
|
+
*
|
|
5728
|
+
* It is supported to register multiple proofs, but the proofs need to be consumed in the
|
|
5729
|
+
* reverse order as they were registered. Basically this means last in, first out.
|
|
5730
|
+
*
|
|
5731
|
+
* The [`dispatch_context`] spans the entire lifetime of a transaction and every call in
|
|
5732
|
+
* the transaction gets access to the same context.
|
|
5733
|
+
*
|
|
5734
|
+
* # Example
|
|
5735
|
+
*
|
|
5736
|
+
* ```ignore
|
|
5737
|
+
* batch([
|
|
5738
|
+
* register_remote_proxy_proof,
|
|
5739
|
+
* as_multisig(remote_proxy_with_registered_proof(transfer))
|
|
5740
|
+
* ])
|
|
5741
|
+
* ```
|
|
5742
|
+
*
|
|
5743
|
+
* As `proofs` can not be verified indefinitely (the time the storage roots are stored is
|
|
5744
|
+
* limited) this function provides the possibility to provide a "fresh proof" at time of
|
|
5745
|
+
* dispatch. As in the example above, this could be useful for multisig operation that
|
|
5746
|
+
* depend on multiple members to approve a certain action, which can take multiple days.
|
|
5747
|
+
**/
|
|
5748
|
+
| { name: 'RegisterRemoteProxyProof'; params: { proof: PalletRemoteProxyRemoteProxyProof } }
|
|
5749
|
+
/**
|
|
5750
|
+
* Dispatch the given `call` from an account that the sender is authorised on a remote
|
|
5751
|
+
* chain.
|
|
5752
|
+
*
|
|
5753
|
+
* The dispatch origin for this call must be _Signed_. The difference to
|
|
5754
|
+
* [`Self::remote_proxy`] is that the proof nees to registered before using
|
|
5755
|
+
* [`Self::register_remote_proxy_proof`] (see for more information).
|
|
5756
|
+
*
|
|
5757
|
+
* Parameters:
|
|
5758
|
+
* - `real`: The account that the proxy will make a call on behalf of.
|
|
5759
|
+
* - `force_proxy_type`: Specify the exact proxy type to be used and checked for this call.
|
|
5760
|
+
* - `call`: The call to be made by the `real` account.
|
|
5761
|
+
**/
|
|
5762
|
+
| {
|
|
5763
|
+
name: 'RemoteProxyWithRegisteredProof';
|
|
5764
|
+
params: {
|
|
5765
|
+
real: MultiAddressLike;
|
|
5766
|
+
forceProxyType?: AssetHubKusamaRuntimeProxyType | undefined;
|
|
5767
|
+
call: AssetHubKusamaRuntimeRuntimeCallLike;
|
|
5768
|
+
};
|
|
5769
|
+
};
|
|
5770
|
+
|
|
5771
|
+
export type PalletRemoteProxyRemoteProxyProof = { type: 'RelayChain'; value: { proof: Array<Bytes>; block: number } };
|
|
5772
|
+
|
|
5550
5773
|
/**
|
|
5551
5774
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
5552
5775
|
**/
|
|
@@ -11646,6 +11869,172 @@ export type PalletAssetConversionCallLike =
|
|
|
11646
11869
|
**/
|
|
11647
11870
|
| { name: 'Touch'; params: { asset1: StagingXcmV4Location; asset2: StagingXcmV4Location } };
|
|
11648
11871
|
|
|
11872
|
+
/**
|
|
11873
|
+
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
11874
|
+
**/
|
|
11875
|
+
export type PalletStateTrieMigrationCall =
|
|
11876
|
+
/**
|
|
11877
|
+
* Control the automatic migration.
|
|
11878
|
+
*
|
|
11879
|
+
* The dispatch origin of this call must be [`Config::ControlOrigin`].
|
|
11880
|
+
**/
|
|
11881
|
+
| { name: 'ControlAutoMigration'; params: { maybeConfig?: PalletStateTrieMigrationMigrationLimits | undefined } }
|
|
11882
|
+
/**
|
|
11883
|
+
* Continue the migration for the given `limits`.
|
|
11884
|
+
*
|
|
11885
|
+
* The dispatch origin of this call can be any signed account.
|
|
11886
|
+
*
|
|
11887
|
+
* This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit,
|
|
11888
|
+
* Upon successful execution, the transaction fee is returned.
|
|
11889
|
+
*
|
|
11890
|
+
* The (potentially over-estimated) of the byte length of all the data read must be
|
|
11891
|
+
* provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing
|
|
11892
|
+
* that executing the current `MigrationTask` with the given `limits` will not exceed
|
|
11893
|
+
* `real_size_upper` bytes of read data.
|
|
11894
|
+
*
|
|
11895
|
+
* The `witness_task` is merely a helper to prevent the caller from being slashed or
|
|
11896
|
+
* generally trigger a migration that they do not intend. This parameter is just a message
|
|
11897
|
+
* from caller, saying that they believed `witness_task` was the last state of the
|
|
11898
|
+
* migration, and they only wish for their transaction to do anything, if this assumption
|
|
11899
|
+
* holds. In case `witness_task` does not match, the transaction fails.
|
|
11900
|
+
*
|
|
11901
|
+
* Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the
|
|
11902
|
+
* recommended way of doing this is to pass a `limit` that only bounds `count`, as the
|
|
11903
|
+
* `size` limit can always be overwritten.
|
|
11904
|
+
**/
|
|
11905
|
+
| {
|
|
11906
|
+
name: 'ContinueMigrate';
|
|
11907
|
+
params: {
|
|
11908
|
+
limits: PalletStateTrieMigrationMigrationLimits;
|
|
11909
|
+
realSizeUpper: number;
|
|
11910
|
+
witnessTask: PalletStateTrieMigrationMigrationTask;
|
|
11911
|
+
};
|
|
11912
|
+
}
|
|
11913
|
+
/**
|
|
11914
|
+
* Migrate the list of top keys by iterating each of them one by one.
|
|
11915
|
+
*
|
|
11916
|
+
* This does not affect the global migration process tracker ([`MigrationProcess`]), and
|
|
11917
|
+
* should only be used in case any keys are leftover due to a bug.
|
|
11918
|
+
**/
|
|
11919
|
+
| { name: 'MigrateCustomTop'; params: { keys: Array<Bytes>; witnessSize: number } }
|
|
11920
|
+
/**
|
|
11921
|
+
* Migrate the list of child keys by iterating each of them one by one.
|
|
11922
|
+
*
|
|
11923
|
+
* All of the given child keys must be present under one `child_root`.
|
|
11924
|
+
*
|
|
11925
|
+
* This does not affect the global migration process tracker ([`MigrationProcess`]), and
|
|
11926
|
+
* should only be used in case any keys are leftover due to a bug.
|
|
11927
|
+
**/
|
|
11928
|
+
| { name: 'MigrateCustomChild'; params: { root: Bytes; childKeys: Array<Bytes>; totalSize: number } }
|
|
11929
|
+
/**
|
|
11930
|
+
* Set the maximum limit of the signed migration.
|
|
11931
|
+
**/
|
|
11932
|
+
| { name: 'SetSignedMaxLimits'; params: { limits: PalletStateTrieMigrationMigrationLimits } }
|
|
11933
|
+
/**
|
|
11934
|
+
* Forcefully set the progress the running migration.
|
|
11935
|
+
*
|
|
11936
|
+
* This is only useful in one case: the next key to migrate is too big to be migrated with
|
|
11937
|
+
* a signed account, in a parachain context, and we simply want to skip it. A reasonable
|
|
11938
|
+
* example of this would be `:code:`, which is both very expensive to migrate, and commonly
|
|
11939
|
+
* used, so probably it is already migrated.
|
|
11940
|
+
*
|
|
11941
|
+
* In case you mess things up, you can also, in principle, use this to reset the migration
|
|
11942
|
+
* process.
|
|
11943
|
+
**/
|
|
11944
|
+
| {
|
|
11945
|
+
name: 'ForceSetProgress';
|
|
11946
|
+
params: { progressTop: PalletStateTrieMigrationProgress; progressChild: PalletStateTrieMigrationProgress };
|
|
11947
|
+
};
|
|
11948
|
+
|
|
11949
|
+
export type PalletStateTrieMigrationCallLike =
|
|
11950
|
+
/**
|
|
11951
|
+
* Control the automatic migration.
|
|
11952
|
+
*
|
|
11953
|
+
* The dispatch origin of this call must be [`Config::ControlOrigin`].
|
|
11954
|
+
**/
|
|
11955
|
+
| { name: 'ControlAutoMigration'; params: { maybeConfig?: PalletStateTrieMigrationMigrationLimits | undefined } }
|
|
11956
|
+
/**
|
|
11957
|
+
* Continue the migration for the given `limits`.
|
|
11958
|
+
*
|
|
11959
|
+
* The dispatch origin of this call can be any signed account.
|
|
11960
|
+
*
|
|
11961
|
+
* This transaction has NO MONETARY INCENTIVES. calling it will not reward anyone. Albeit,
|
|
11962
|
+
* Upon successful execution, the transaction fee is returned.
|
|
11963
|
+
*
|
|
11964
|
+
* The (potentially over-estimated) of the byte length of all the data read must be
|
|
11965
|
+
* provided for up-front fee-payment and weighing. In essence, the caller is guaranteeing
|
|
11966
|
+
* that executing the current `MigrationTask` with the given `limits` will not exceed
|
|
11967
|
+
* `real_size_upper` bytes of read data.
|
|
11968
|
+
*
|
|
11969
|
+
* The `witness_task` is merely a helper to prevent the caller from being slashed or
|
|
11970
|
+
* generally trigger a migration that they do not intend. This parameter is just a message
|
|
11971
|
+
* from caller, saying that they believed `witness_task` was the last state of the
|
|
11972
|
+
* migration, and they only wish for their transaction to do anything, if this assumption
|
|
11973
|
+
* holds. In case `witness_task` does not match, the transaction fails.
|
|
11974
|
+
*
|
|
11975
|
+
* Based on the documentation of [`MigrationTask::migrate_until_exhaustion`], the
|
|
11976
|
+
* recommended way of doing this is to pass a `limit` that only bounds `count`, as the
|
|
11977
|
+
* `size` limit can always be overwritten.
|
|
11978
|
+
**/
|
|
11979
|
+
| {
|
|
11980
|
+
name: 'ContinueMigrate';
|
|
11981
|
+
params: {
|
|
11982
|
+
limits: PalletStateTrieMigrationMigrationLimits;
|
|
11983
|
+
realSizeUpper: number;
|
|
11984
|
+
witnessTask: PalletStateTrieMigrationMigrationTask;
|
|
11985
|
+
};
|
|
11986
|
+
}
|
|
11987
|
+
/**
|
|
11988
|
+
* Migrate the list of top keys by iterating each of them one by one.
|
|
11989
|
+
*
|
|
11990
|
+
* This does not affect the global migration process tracker ([`MigrationProcess`]), and
|
|
11991
|
+
* should only be used in case any keys are leftover due to a bug.
|
|
11992
|
+
**/
|
|
11993
|
+
| { name: 'MigrateCustomTop'; params: { keys: Array<BytesLike>; witnessSize: number } }
|
|
11994
|
+
/**
|
|
11995
|
+
* Migrate the list of child keys by iterating each of them one by one.
|
|
11996
|
+
*
|
|
11997
|
+
* All of the given child keys must be present under one `child_root`.
|
|
11998
|
+
*
|
|
11999
|
+
* This does not affect the global migration process tracker ([`MigrationProcess`]), and
|
|
12000
|
+
* should only be used in case any keys are leftover due to a bug.
|
|
12001
|
+
**/
|
|
12002
|
+
| { name: 'MigrateCustomChild'; params: { root: BytesLike; childKeys: Array<BytesLike>; totalSize: number } }
|
|
12003
|
+
/**
|
|
12004
|
+
* Set the maximum limit of the signed migration.
|
|
12005
|
+
**/
|
|
12006
|
+
| { name: 'SetSignedMaxLimits'; params: { limits: PalletStateTrieMigrationMigrationLimits } }
|
|
12007
|
+
/**
|
|
12008
|
+
* Forcefully set the progress the running migration.
|
|
12009
|
+
*
|
|
12010
|
+
* This is only useful in one case: the next key to migrate is too big to be migrated with
|
|
12011
|
+
* a signed account, in a parachain context, and we simply want to skip it. A reasonable
|
|
12012
|
+
* example of this would be `:code:`, which is both very expensive to migrate, and commonly
|
|
12013
|
+
* used, so probably it is already migrated.
|
|
12014
|
+
*
|
|
12015
|
+
* In case you mess things up, you can also, in principle, use this to reset the migration
|
|
12016
|
+
* process.
|
|
12017
|
+
**/
|
|
12018
|
+
| {
|
|
12019
|
+
name: 'ForceSetProgress';
|
|
12020
|
+
params: { progressTop: PalletStateTrieMigrationProgress; progressChild: PalletStateTrieMigrationProgress };
|
|
12021
|
+
};
|
|
12022
|
+
|
|
12023
|
+
export type PalletStateTrieMigrationMigrationLimits = { size: number; item: number };
|
|
12024
|
+
|
|
12025
|
+
export type PalletStateTrieMigrationMigrationTask = {
|
|
12026
|
+
progressTop: PalletStateTrieMigrationProgress;
|
|
12027
|
+
progressChild: PalletStateTrieMigrationProgress;
|
|
12028
|
+
size: number;
|
|
12029
|
+
topItems: number;
|
|
12030
|
+
childItems: number;
|
|
12031
|
+
};
|
|
12032
|
+
|
|
12033
|
+
export type PalletStateTrieMigrationProgress =
|
|
12034
|
+
| { type: 'ToStart' }
|
|
12035
|
+
| { type: 'LastKey'; value: Bytes }
|
|
12036
|
+
| { type: 'Complete' };
|
|
12037
|
+
|
|
11649
12038
|
export type AssetHubKusamaRuntimeOriginCaller =
|
|
11650
12039
|
| { type: 'System'; value: FrameSupportDispatchRawOrigin }
|
|
11651
12040
|
| { type: 'PolkadotXcm'; value: PalletXcmOrigin }
|
|
@@ -11789,6 +12178,39 @@ export type PalletProxyError =
|
|
|
11789
12178
|
**/
|
|
11790
12179
|
| 'NoSelfProxy';
|
|
11791
12180
|
|
|
12181
|
+
/**
|
|
12182
|
+
* The `Error` enum of this pallet.
|
|
12183
|
+
**/
|
|
12184
|
+
export type PalletRemoteProxyError =
|
|
12185
|
+
/**
|
|
12186
|
+
* The local account id could not converted to the remote account id.
|
|
12187
|
+
**/
|
|
12188
|
+
| 'CouldNotConvertLocalToRemoteAccountId'
|
|
12189
|
+
/**
|
|
12190
|
+
* The anchor block of the remote proof is unknown.
|
|
12191
|
+
**/
|
|
12192
|
+
| 'UnknownProofAnchorBlock'
|
|
12193
|
+
/**
|
|
12194
|
+
* The proxy definition could not be found in the proof.
|
|
12195
|
+
**/
|
|
12196
|
+
| 'InvalidProof'
|
|
12197
|
+
/**
|
|
12198
|
+
* Failed to decode the remote proxy definition from the proof.
|
|
12199
|
+
**/
|
|
12200
|
+
| 'ProxyDefinitionDecodingFailed'
|
|
12201
|
+
/**
|
|
12202
|
+
* Announcement, if made at all, was made too recently.
|
|
12203
|
+
**/
|
|
12204
|
+
| 'Unannounced'
|
|
12205
|
+
/**
|
|
12206
|
+
* Could not find any matching proxy definition in the proof.
|
|
12207
|
+
**/
|
|
12208
|
+
| 'DidNotFindMatchingProxyDefinition'
|
|
12209
|
+
/**
|
|
12210
|
+
* Proxy proof not registered.
|
|
12211
|
+
**/
|
|
12212
|
+
| 'ProxyProofNotRegistered';
|
|
12213
|
+
|
|
11792
12214
|
export type PalletAssetsAssetDetails = {
|
|
11793
12215
|
owner: AccountId32;
|
|
11794
12216
|
issuer: AccountId32;
|
|
@@ -12525,10 +12947,12 @@ export type AssetHubKusamaRuntimeRuntimeError =
|
|
|
12525
12947
|
| { pallet: 'Utility'; palletError: PalletUtilityError }
|
|
12526
12948
|
| { pallet: 'Multisig'; palletError: PalletMultisigError }
|
|
12527
12949
|
| { pallet: 'Proxy'; palletError: PalletProxyError }
|
|
12950
|
+
| { pallet: 'RemoteProxyRelayChain'; palletError: PalletRemoteProxyError }
|
|
12528
12951
|
| { pallet: 'Assets'; palletError: PalletAssetsError }
|
|
12529
12952
|
| { pallet: 'Uniques'; palletError: PalletUniquesError }
|
|
12530
12953
|
| { pallet: 'Nfts'; palletError: PalletNftsError }
|
|
12531
12954
|
| { pallet: 'ForeignAssets'; palletError: PalletAssetsError }
|
|
12532
12955
|
| { pallet: 'NftFractionalization'; palletError: PalletNftFractionalizationError }
|
|
12533
12956
|
| { pallet: 'PoolAssets'; palletError: PalletAssetsError }
|
|
12534
|
-
| { pallet: 'AssetConversion'; palletError: PalletAssetConversionError }
|
|
12957
|
+
| { pallet: 'AssetConversion'; palletError: PalletAssetConversionError }
|
|
12958
|
+
| { pallet: 'StateTrieMigration'; palletError: PalletStateTrieMigrationError };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.71.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@coongcrafts.io>",
|
|
6
6
|
"main": "",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"directory": "dist"
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "a2c1bc760e57283e0391c5b8966f00e52517491f",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
|
@@ -1828,6 +1828,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1828
1828
|
**/
|
|
1829
1829
|
UnsupportedPrecompileAddress: GenericPalletError<Rv>;
|
|
1830
1830
|
|
|
1831
|
+
/**
|
|
1832
|
+
* Precompile Error
|
|
1833
|
+
**/
|
|
1834
|
+
PrecompileFailure: GenericPalletError<Rv>;
|
|
1835
|
+
|
|
1831
1836
|
/**
|
|
1832
1837
|
* Generic pallet error
|
|
1833
1838
|
**/
|
|
@@ -23,7 +23,7 @@ export interface VersionedWestendAssetHubApi<Rv extends RpcVersion> extends Gene
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* @name: WestendAssetHubApi
|
|
26
|
-
* @specVersion:
|
|
26
|
+
* @specVersion: 1018001
|
|
27
27
|
**/
|
|
28
28
|
export interface WestendAssetHubApi {
|
|
29
29
|
legacy: VersionedWestendAssetHubApi<RpcLegacy>;
|
|
@@ -13796,7 +13796,11 @@ export type PalletReviveError =
|
|
|
13796
13796
|
/**
|
|
13797
13797
|
* Unsupported precompile address
|
|
13798
13798
|
**/
|
|
13799
|
-
| 'UnsupportedPrecompileAddress'
|
|
13799
|
+
| 'UnsupportedPrecompileAddress'
|
|
13800
|
+
/**
|
|
13801
|
+
* Precompile Error
|
|
13802
|
+
**/
|
|
13803
|
+
| 'PrecompileFailure';
|
|
13800
13804
|
|
|
13801
13805
|
export type PalletAssetRewardsPoolStakerInfo = { amount: bigint; rewards: bigint; rewardPerTokenPaid: bigint };
|
|
13802
13806
|
|
|
@@ -14072,7 +14076,7 @@ export type PalletReviveEvmApiRpcTypesGenGenericTransaction = {
|
|
|
14072
14076
|
from?: H160 | undefined;
|
|
14073
14077
|
gas?: U256 | undefined;
|
|
14074
14078
|
gasPrice?: U256 | undefined;
|
|
14075
|
-
input
|
|
14079
|
+
input: PalletReviveEvmApiRpcTypesGenInputOrData;
|
|
14076
14080
|
maxFeePerBlobGas?: U256 | undefined;
|
|
14077
14081
|
maxFeePerGas?: U256 | undefined;
|
|
14078
14082
|
maxPriorityFeePerGas?: U256 | undefined;
|
|
@@ -14086,6 +14090,11 @@ export type PalletReviveEvmApiRpcTypesGenAccessListEntry = { address: H160; stor
|
|
|
14086
14090
|
|
|
14087
14091
|
export type PalletReviveEvmApiByteBytes = Bytes;
|
|
14088
14092
|
|
|
14093
|
+
export type PalletReviveEvmApiRpcTypesGenInputOrData = {
|
|
14094
|
+
input?: PalletReviveEvmApiByteBytes | undefined;
|
|
14095
|
+
data?: PalletReviveEvmApiByteBytes | undefined;
|
|
14096
|
+
};
|
|
14097
|
+
|
|
14089
14098
|
export type PalletReviveEvmApiByte = number;
|
|
14090
14099
|
|
|
14091
14100
|
export type PalletRevivePrimitivesEthTransactInfo = {
|