@dedot/chaintypes 0.32.0 → 0.34.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.
@@ -3,7 +3,6 @@
3
3
  import type {
4
4
  Phase,
5
5
  H256,
6
- DispatchInfo,
7
6
  DispatchError,
8
7
  AccountId32,
9
8
  FixedBytes,
@@ -12,6 +11,7 @@ import type {
12
11
  FixedU128,
13
12
  Result,
14
13
  Permill,
14
+ H160,
15
15
  BytesLike,
16
16
  MultiAddress,
17
17
  MultiAddressLike,
@@ -74,6 +74,7 @@ export type AssetHubWestendRuntimeRuntimeEvent =
74
74
  | { pallet: 'AssetsFreezer'; palletEvent: PalletAssetsFreezerEvent }
75
75
  | { pallet: 'ForeignAssetsFreezer'; palletEvent: PalletAssetsFreezerEvent002 }
76
76
  | { pallet: 'PoolAssetsFreezer'; palletEvent: PalletAssetsFreezerEvent }
77
+ | { pallet: 'Revive'; palletEvent: PalletReviveEvent }
77
78
  | { pallet: 'StateTrieMigration'; palletEvent: PalletStateTrieMigrationEvent }
78
79
  | { pallet: 'AssetConversionMigration'; palletEvent: PalletAssetConversionOpsEvent };
79
80
 
@@ -84,11 +85,11 @@ export type FrameSystemEvent =
84
85
  /**
85
86
  * An extrinsic completed successfully.
86
87
  **/
87
- | { name: 'ExtrinsicSuccess'; data: { dispatchInfo: DispatchInfo } }
88
+ | { name: 'ExtrinsicSuccess'; data: { dispatchInfo: FrameSystemDispatchEventInfo } }
88
89
  /**
89
90
  * An extrinsic failed.
90
91
  **/
91
- | { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo: DispatchInfo } }
92
+ | { name: 'ExtrinsicFailed'; data: { dispatchError: DispatchError; dispatchInfo: FrameSystemDispatchEventInfo } }
92
93
  /**
93
94
  * `:code` was updated.
94
95
  **/
@@ -110,10 +111,32 @@ export type FrameSystemEvent =
110
111
  **/
111
112
  | { name: 'UpgradeAuthorized'; data: { codeHash: H256; checkVersion: boolean } };
112
113
 
114
+ export type FrameSystemDispatchEventInfo = {
115
+ weight: SpWeightsWeightV2Weight;
116
+ class: FrameSupportDispatchDispatchClass;
117
+ paysFee: FrameSupportDispatchPays;
118
+ };
119
+
113
120
  export type FrameSupportDispatchDispatchClass = 'Normal' | 'Operational' | 'Mandatory';
114
121
 
115
122
  export type FrameSupportDispatchPays = 'Yes' | 'No';
116
123
 
124
+ export type SpRuntimeProvingTrieTrieError =
125
+ | 'InvalidStateRoot'
126
+ | 'IncompleteDatabase'
127
+ | 'ValueAtIncompleteKey'
128
+ | 'DecoderError'
129
+ | 'InvalidHash'
130
+ | 'DuplicateKey'
131
+ | 'ExtraneousNode'
132
+ | 'ExtraneousValue'
133
+ | 'ExtraneousHashReference'
134
+ | 'InvalidChildReference'
135
+ | 'ValueMismatch'
136
+ | 'IncompleteProof'
137
+ | 'RootMismatch'
138
+ | 'DecodeError';
139
+
117
140
  /**
118
141
  * The `Event` enum of this pallet
119
142
  **/
@@ -2100,6 +2123,150 @@ export type PalletAssetsFreezerEvent002 =
2100
2123
  | { name: 'Frozen'; data: { who: AccountId32; assetId: StagingXcmV4Location; amount: bigint } }
2101
2124
  | { name: 'Thawed'; data: { who: AccountId32; assetId: StagingXcmV4Location; amount: bigint } };
2102
2125
 
2126
+ /**
2127
+ * The `Event` enum of this pallet
2128
+ **/
2129
+ export type PalletReviveEvent =
2130
+ /**
2131
+ * Contract deployed by address at the specified address.
2132
+ **/
2133
+ | { name: 'Instantiated'; data: { deployer: H160; contract: H160 } }
2134
+ /**
2135
+ * Contract has been removed.
2136
+ *
2137
+ * # Note
2138
+ *
2139
+ * The only way for a contract to be removed and emitting this event is by calling
2140
+ * `seal_terminate`.
2141
+ **/
2142
+ | {
2143
+ name: 'Terminated';
2144
+ data: {
2145
+ /**
2146
+ * The contract that was terminated.
2147
+ **/
2148
+ contract: H160;
2149
+
2150
+ /**
2151
+ * The account that received the contracts remaining balance
2152
+ **/
2153
+ beneficiary: H160;
2154
+ };
2155
+ }
2156
+ /**
2157
+ * Code with the specified hash has been stored.
2158
+ **/
2159
+ | { name: 'CodeStored'; data: { codeHash: H256; depositHeld: bigint; uploader: H160 } }
2160
+ /**
2161
+ * A custom event emitted by the contract.
2162
+ **/
2163
+ | {
2164
+ name: 'ContractEmitted';
2165
+ data: {
2166
+ /**
2167
+ * The contract that emitted the event.
2168
+ **/
2169
+ contract: H160;
2170
+
2171
+ /**
2172
+ * Data supplied by the contract. Metadata generated during contract compilation
2173
+ * is needed to decode it.
2174
+ **/
2175
+ data: Bytes;
2176
+
2177
+ /**
2178
+ * A list of topics used to index the event.
2179
+ * Number of topics is capped by [`limits::NUM_EVENT_TOPICS`].
2180
+ **/
2181
+ topics: Array<H256>;
2182
+ };
2183
+ }
2184
+ /**
2185
+ * A code with the specified hash was removed.
2186
+ **/
2187
+ | { name: 'CodeRemoved'; data: { codeHash: H256; depositReleased: bigint; remover: H160 } }
2188
+ /**
2189
+ * A contract's code was updated.
2190
+ **/
2191
+ | {
2192
+ name: 'ContractCodeUpdated';
2193
+ data: {
2194
+ /**
2195
+ * The contract that has been updated.
2196
+ **/
2197
+ contract: H160;
2198
+
2199
+ /**
2200
+ * New code hash that was set for the contract.
2201
+ **/
2202
+ newCodeHash: H256;
2203
+
2204
+ /**
2205
+ * Previous code hash of the contract.
2206
+ **/
2207
+ oldCodeHash: H256;
2208
+ };
2209
+ }
2210
+ /**
2211
+ * A contract was called either by a plain account or another contract.
2212
+ *
2213
+ * # Note
2214
+ *
2215
+ * Please keep in mind that like all events this is only emitted for successful
2216
+ * calls. This is because on failure all storage changes including events are
2217
+ * rolled back.
2218
+ **/
2219
+ | {
2220
+ name: 'Called';
2221
+ data: {
2222
+ /**
2223
+ * The caller of the `contract`.
2224
+ **/
2225
+ caller: PalletReviveExecOrigin;
2226
+
2227
+ /**
2228
+ * The contract that was called.
2229
+ **/
2230
+ contract: H160;
2231
+ };
2232
+ }
2233
+ /**
2234
+ * A contract delegate called a code hash.
2235
+ *
2236
+ * # Note
2237
+ *
2238
+ * Please keep in mind that like all events this is only emitted for successful
2239
+ * calls. This is because on failure all storage changes including events are
2240
+ * rolled back.
2241
+ **/
2242
+ | {
2243
+ name: 'DelegateCalled';
2244
+ data: {
2245
+ /**
2246
+ * The contract that performed the delegate call and hence in whose context
2247
+ * the `code_hash` is executed.
2248
+ **/
2249
+ contract: H160;
2250
+
2251
+ /**
2252
+ * The code hash that was delegate called.
2253
+ **/
2254
+ codeHash: H256;
2255
+ };
2256
+ }
2257
+ /**
2258
+ * Some funds have been transferred and held as storage deposit.
2259
+ **/
2260
+ | { name: 'StorageDepositTransferredAndHeld'; data: { from: H160; to: H160; amount: bigint } }
2261
+ /**
2262
+ * Some storage deposit funds have been transferred and released.
2263
+ **/
2264
+ | { name: 'StorageDepositTransferredAndReleased'; data: { from: H160; to: H160; amount: bigint } };
2265
+
2266
+ export type PalletReviveExecOrigin = { type: 'Root' } | { type: 'Signed'; value: AccountId32 };
2267
+
2268
+ export type AssetHubWestendRuntimeRuntime = {};
2269
+
2103
2270
  /**
2104
2271
  * Inner events of this pallet.
2105
2272
  **/
@@ -2640,10 +2807,13 @@ export type FrameSupportTokensMiscIdAmount = { id: AssetHubWestendRuntimeRuntime
2640
2807
 
2641
2808
  export type AssetHubWestendRuntimeRuntimeHoldReason =
2642
2809
  | { type: 'NftFractionalization'; value: PalletNftFractionalizationHoldReason }
2810
+ | { type: 'Revive'; value: PalletReviveHoldReason }
2643
2811
  | { type: 'StateTrieMigration'; value: PalletStateTrieMigrationHoldReason };
2644
2812
 
2645
2813
  export type PalletNftFractionalizationHoldReason = 'Fractionalized';
2646
2814
 
2815
+ export type PalletReviveHoldReason = 'CodeUploadDepositReserve' | 'StorageDepositReserve' | 'AddressMapping';
2816
+
2647
2817
  export type PalletStateTrieMigrationHoldReason = 'SlashForMigrate';
2648
2818
 
2649
2819
  export type FrameSupportTokensMiscIdAmount002 = { id: []; amount: bigint };
@@ -4726,6 +4896,7 @@ export type AssetHubWestendRuntimeRuntimeCall =
4726
4896
  | { pallet: 'NftFractionalization'; palletCall: PalletNftFractionalizationCall }
4727
4897
  | { pallet: 'PoolAssets'; palletCall: PalletAssetsCall003 }
4728
4898
  | { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCall }
4899
+ | { pallet: 'Revive'; palletCall: PalletReviveCall }
4729
4900
  | { pallet: 'StateTrieMigration'; palletCall: PalletStateTrieMigrationCall }
4730
4901
  | { pallet: 'AssetConversionMigration'; palletCall: PalletAssetConversionOpsCall };
4731
4902
 
@@ -4751,6 +4922,7 @@ export type AssetHubWestendRuntimeRuntimeCallLike =
4751
4922
  | { pallet: 'NftFractionalization'; palletCall: PalletNftFractionalizationCallLike }
4752
4923
  | { pallet: 'PoolAssets'; palletCall: PalletAssetsCallLike003 }
4753
4924
  | { pallet: 'AssetConversion'; palletCall: PalletAssetConversionCallLike }
4925
+ | { pallet: 'Revive'; palletCall: PalletReviveCallLike }
4754
4926
  | { pallet: 'StateTrieMigration'; palletCall: PalletStateTrieMigrationCallLike }
4755
4927
  | { pallet: 'AssetConversionMigration'; palletCall: PalletAssetConversionOpsCallLike };
4756
4928
 
@@ -11492,6 +11664,338 @@ export type PalletAssetConversionCallLike =
11492
11664
  **/
11493
11665
  | { name: 'Touch'; params: { asset1: StagingXcmV4Location; asset2: StagingXcmV4Location } };
11494
11666
 
11667
+ /**
11668
+ * Contains a variant per dispatchable extrinsic that this pallet has.
11669
+ **/
11670
+ export type PalletReviveCall =
11671
+ /**
11672
+ * A raw EVM transaction, typically dispatched by an Ethereum JSON-RPC server.
11673
+ *
11674
+ * # Parameters
11675
+ *
11676
+ * * `payload`: The RLP-encoded [`crate::evm::TransactionLegacySigned`].
11677
+ * * `gas_limit`: The gas limit enforced during contract execution.
11678
+ * * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
11679
+ * storage usage.
11680
+ *
11681
+ * # Note
11682
+ *
11683
+ * This call cannot be dispatched directly; attempting to do so will result in a failed
11684
+ * transaction. It serves as a wrapper for an Ethereum transaction. When submitted, the
11685
+ * runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the
11686
+ * signer and validating the transaction.
11687
+ **/
11688
+ | { name: 'EthTransact'; params: { payload: Bytes; gasLimit: SpWeightsWeightV2Weight; storageDepositLimit: bigint } }
11689
+ /**
11690
+ * Makes a call to an account, optionally transferring some balance.
11691
+ *
11692
+ * # Parameters
11693
+ *
11694
+ * * `dest`: Address of the contract to call.
11695
+ * * `value`: The balance to transfer from the `origin` to `dest`.
11696
+ * * `gas_limit`: The gas limit enforced when executing the constructor.
11697
+ * * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
11698
+ * caller to pay for the storage consumed.
11699
+ * * `data`: The input data to pass to the contract.
11700
+ *
11701
+ * * If the account is a smart-contract account, the associated code will be
11702
+ * executed and any value will be transferred.
11703
+ * * If the account is a regular account, any value will be transferred.
11704
+ * * If no account exists and the call value is not less than `existential_deposit`,
11705
+ * a regular account will be created and any value will be transferred.
11706
+ **/
11707
+ | {
11708
+ name: 'Call';
11709
+ params: {
11710
+ dest: H160;
11711
+ value: bigint;
11712
+ gasLimit: SpWeightsWeightV2Weight;
11713
+ storageDepositLimit: bigint;
11714
+ data: Bytes;
11715
+ };
11716
+ }
11717
+ /**
11718
+ * Instantiates a contract from a previously deployed wasm binary.
11719
+ *
11720
+ * This function is identical to [`Self::instantiate_with_code`] but without the
11721
+ * code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
11722
+ * must be supplied.
11723
+ **/
11724
+ | {
11725
+ name: 'Instantiate';
11726
+ params: {
11727
+ value: bigint;
11728
+ gasLimit: SpWeightsWeightV2Weight;
11729
+ storageDepositLimit: bigint;
11730
+ codeHash: H256;
11731
+ data: Bytes;
11732
+ salt?: FixedBytes<32> | undefined;
11733
+ };
11734
+ }
11735
+ /**
11736
+ * Instantiates a new contract from the supplied `code` optionally transferring
11737
+ * some balance.
11738
+ *
11739
+ * This dispatchable has the same effect as calling [`Self::upload_code`] +
11740
+ * [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
11741
+ * also check the documentation of [`Self::upload_code`].
11742
+ *
11743
+ * # Parameters
11744
+ *
11745
+ * * `value`: The balance to transfer from the `origin` to the newly created contract.
11746
+ * * `gas_limit`: The gas limit enforced when executing the constructor.
11747
+ * * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
11748
+ * from the caller to pay for the storage consumed.
11749
+ * * `code`: The contract code to deploy in raw bytes.
11750
+ * * `data`: The input data to pass to the contract constructor.
11751
+ * * `salt`: Used for the address derivation. If `Some` is supplied then `CREATE2`
11752
+ * semantics are used. If `None` then `CRATE1` is used.
11753
+ *
11754
+ *
11755
+ * Instantiation is executed as follows:
11756
+ *
11757
+ * - The supplied `code` is deployed, and a `code_hash` is created for that code.
11758
+ * - If the `code_hash` already exists on the chain the underlying `code` will be shared.
11759
+ * - The destination address is computed based on the sender, code_hash and the salt.
11760
+ * - The smart-contract account is created at the computed address.
11761
+ * - The `value` is transferred to the new account.
11762
+ * - The `deploy` function is executed in the context of the newly-created account.
11763
+ **/
11764
+ | {
11765
+ name: 'InstantiateWithCode';
11766
+ params: {
11767
+ value: bigint;
11768
+ gasLimit: SpWeightsWeightV2Weight;
11769
+ storageDepositLimit: bigint;
11770
+ code: Bytes;
11771
+ data: Bytes;
11772
+ salt?: FixedBytes<32> | undefined;
11773
+ };
11774
+ }
11775
+ /**
11776
+ * Upload new `code` without instantiating a contract from it.
11777
+ *
11778
+ * If the code does not already exist a deposit is reserved from the caller
11779
+ * and unreserved only when [`Self::remove_code`] is called. The size of the reserve
11780
+ * depends on the size of the supplied `code`.
11781
+ *
11782
+ * # Note
11783
+ *
11784
+ * Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
11785
+ * To avoid this situation a constructor could employ access control so that it can
11786
+ * only be instantiated by permissioned entities. The same is true when uploading
11787
+ * through [`Self::instantiate_with_code`].
11788
+ **/
11789
+ | { name: 'UploadCode'; params: { code: Bytes; storageDepositLimit: bigint } }
11790
+ /**
11791
+ * Remove the code stored under `code_hash` and refund the deposit to its owner.
11792
+ *
11793
+ * A code can only be removed by its original uploader (its owner) and only if it is
11794
+ * not used by any contract.
11795
+ **/
11796
+ | { name: 'RemoveCode'; params: { codeHash: H256 } }
11797
+ /**
11798
+ * Privileged function that changes the code of an existing contract.
11799
+ *
11800
+ * This takes care of updating refcounts and all other necessary operations. Returns
11801
+ * an error if either the `code_hash` or `dest` do not exist.
11802
+ *
11803
+ * # Note
11804
+ *
11805
+ * This does **not** change the address of the contract in question. This means
11806
+ * that the contract address is no longer derived from its code hash after calling
11807
+ * this dispatchable.
11808
+ **/
11809
+ | { name: 'SetCode'; params: { dest: H160; codeHash: H256 } }
11810
+ /**
11811
+ * Register the callers account id so that it can be used in contract interactions.
11812
+ *
11813
+ * This will error if the origin is already mapped or is a eth native `Address20`. It will
11814
+ * take a deposit that can be released by calling [`Self::unmap_account`].
11815
+ **/
11816
+ | { name: 'MapAccount' }
11817
+ /**
11818
+ * Unregister the callers account id in order to free the deposit.
11819
+ *
11820
+ * There is no reason to ever call this function other than freeing up the deposit.
11821
+ * This is only useful when the account should no longer be used.
11822
+ **/
11823
+ | { name: 'UnmapAccount' }
11824
+ /**
11825
+ * Dispatch an `call` with the origin set to the callers fallback address.
11826
+ *
11827
+ * Every `AccountId32` can control its corresponding fallback account. The fallback account
11828
+ * is the `AccountId20` with the last 12 bytes set to `0xEE`. This is essentially a
11829
+ * recovery function in case an `AccountId20` was used without creating a mapping first.
11830
+ **/
11831
+ | { name: 'DispatchAsFallbackAccount'; params: { call: AssetHubWestendRuntimeRuntimeCall } };
11832
+
11833
+ export type PalletReviveCallLike =
11834
+ /**
11835
+ * A raw EVM transaction, typically dispatched by an Ethereum JSON-RPC server.
11836
+ *
11837
+ * # Parameters
11838
+ *
11839
+ * * `payload`: The RLP-encoded [`crate::evm::TransactionLegacySigned`].
11840
+ * * `gas_limit`: The gas limit enforced during contract execution.
11841
+ * * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
11842
+ * storage usage.
11843
+ *
11844
+ * # Note
11845
+ *
11846
+ * This call cannot be dispatched directly; attempting to do so will result in a failed
11847
+ * transaction. It serves as a wrapper for an Ethereum transaction. When submitted, the
11848
+ * runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the
11849
+ * signer and validating the transaction.
11850
+ **/
11851
+ | {
11852
+ name: 'EthTransact';
11853
+ params: { payload: BytesLike; gasLimit: SpWeightsWeightV2Weight; storageDepositLimit: bigint };
11854
+ }
11855
+ /**
11856
+ * Makes a call to an account, optionally transferring some balance.
11857
+ *
11858
+ * # Parameters
11859
+ *
11860
+ * * `dest`: Address of the contract to call.
11861
+ * * `value`: The balance to transfer from the `origin` to `dest`.
11862
+ * * `gas_limit`: The gas limit enforced when executing the constructor.
11863
+ * * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
11864
+ * caller to pay for the storage consumed.
11865
+ * * `data`: The input data to pass to the contract.
11866
+ *
11867
+ * * If the account is a smart-contract account, the associated code will be
11868
+ * executed and any value will be transferred.
11869
+ * * If the account is a regular account, any value will be transferred.
11870
+ * * If no account exists and the call value is not less than `existential_deposit`,
11871
+ * a regular account will be created and any value will be transferred.
11872
+ **/
11873
+ | {
11874
+ name: 'Call';
11875
+ params: {
11876
+ dest: H160;
11877
+ value: bigint;
11878
+ gasLimit: SpWeightsWeightV2Weight;
11879
+ storageDepositLimit: bigint;
11880
+ data: BytesLike;
11881
+ };
11882
+ }
11883
+ /**
11884
+ * Instantiates a contract from a previously deployed wasm binary.
11885
+ *
11886
+ * This function is identical to [`Self::instantiate_with_code`] but without the
11887
+ * code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
11888
+ * must be supplied.
11889
+ **/
11890
+ | {
11891
+ name: 'Instantiate';
11892
+ params: {
11893
+ value: bigint;
11894
+ gasLimit: SpWeightsWeightV2Weight;
11895
+ storageDepositLimit: bigint;
11896
+ codeHash: H256;
11897
+ data: BytesLike;
11898
+ salt?: FixedBytes<32> | undefined;
11899
+ };
11900
+ }
11901
+ /**
11902
+ * Instantiates a new contract from the supplied `code` optionally transferring
11903
+ * some balance.
11904
+ *
11905
+ * This dispatchable has the same effect as calling [`Self::upload_code`] +
11906
+ * [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
11907
+ * also check the documentation of [`Self::upload_code`].
11908
+ *
11909
+ * # Parameters
11910
+ *
11911
+ * * `value`: The balance to transfer from the `origin` to the newly created contract.
11912
+ * * `gas_limit`: The gas limit enforced when executing the constructor.
11913
+ * * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
11914
+ * from the caller to pay for the storage consumed.
11915
+ * * `code`: The contract code to deploy in raw bytes.
11916
+ * * `data`: The input data to pass to the contract constructor.
11917
+ * * `salt`: Used for the address derivation. If `Some` is supplied then `CREATE2`
11918
+ * semantics are used. If `None` then `CRATE1` is used.
11919
+ *
11920
+ *
11921
+ * Instantiation is executed as follows:
11922
+ *
11923
+ * - The supplied `code` is deployed, and a `code_hash` is created for that code.
11924
+ * - If the `code_hash` already exists on the chain the underlying `code` will be shared.
11925
+ * - The destination address is computed based on the sender, code_hash and the salt.
11926
+ * - The smart-contract account is created at the computed address.
11927
+ * - The `value` is transferred to the new account.
11928
+ * - The `deploy` function is executed in the context of the newly-created account.
11929
+ **/
11930
+ | {
11931
+ name: 'InstantiateWithCode';
11932
+ params: {
11933
+ value: bigint;
11934
+ gasLimit: SpWeightsWeightV2Weight;
11935
+ storageDepositLimit: bigint;
11936
+ code: BytesLike;
11937
+ data: BytesLike;
11938
+ salt?: FixedBytes<32> | undefined;
11939
+ };
11940
+ }
11941
+ /**
11942
+ * Upload new `code` without instantiating a contract from it.
11943
+ *
11944
+ * If the code does not already exist a deposit is reserved from the caller
11945
+ * and unreserved only when [`Self::remove_code`] is called. The size of the reserve
11946
+ * depends on the size of the supplied `code`.
11947
+ *
11948
+ * # Note
11949
+ *
11950
+ * Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
11951
+ * To avoid this situation a constructor could employ access control so that it can
11952
+ * only be instantiated by permissioned entities. The same is true when uploading
11953
+ * through [`Self::instantiate_with_code`].
11954
+ **/
11955
+ | { name: 'UploadCode'; params: { code: BytesLike; storageDepositLimit: bigint } }
11956
+ /**
11957
+ * Remove the code stored under `code_hash` and refund the deposit to its owner.
11958
+ *
11959
+ * A code can only be removed by its original uploader (its owner) and only if it is
11960
+ * not used by any contract.
11961
+ **/
11962
+ | { name: 'RemoveCode'; params: { codeHash: H256 } }
11963
+ /**
11964
+ * Privileged function that changes the code of an existing contract.
11965
+ *
11966
+ * This takes care of updating refcounts and all other necessary operations. Returns
11967
+ * an error if either the `code_hash` or `dest` do not exist.
11968
+ *
11969
+ * # Note
11970
+ *
11971
+ * This does **not** change the address of the contract in question. This means
11972
+ * that the contract address is no longer derived from its code hash after calling
11973
+ * this dispatchable.
11974
+ **/
11975
+ | { name: 'SetCode'; params: { dest: H160; codeHash: H256 } }
11976
+ /**
11977
+ * Register the callers account id so that it can be used in contract interactions.
11978
+ *
11979
+ * This will error if the origin is already mapped or is a eth native `Address20`. It will
11980
+ * take a deposit that can be released by calling [`Self::unmap_account`].
11981
+ **/
11982
+ | { name: 'MapAccount' }
11983
+ /**
11984
+ * Unregister the callers account id in order to free the deposit.
11985
+ *
11986
+ * There is no reason to ever call this function other than freeing up the deposit.
11987
+ * This is only useful when the account should no longer be used.
11988
+ **/
11989
+ | { name: 'UnmapAccount' }
11990
+ /**
11991
+ * Dispatch an `call` with the origin set to the callers fallback address.
11992
+ *
11993
+ * Every `AccountId32` can control its corresponding fallback account. The fallback account
11994
+ * is the `AccountId20` with the last 12 bytes set to `0xEE`. This is essentially a
11995
+ * recovery function in case an `AccountId20` was used without creating a mapping first.
11996
+ **/
11997
+ | { name: 'DispatchAsFallbackAccount'; params: { call: AssetHubWestendRuntimeRuntimeCallLike } };
11998
+
11495
11999
  /**
11496
12000
  * Contains a variant per dispatchable extrinsic that this pallet has.
11497
12001
  **/
@@ -12431,6 +12935,223 @@ export type PalletAssetsFreezerError =
12431
12935
  **/
12432
12936
  'TooManyFreezes';
12433
12937
 
12938
+ export type PalletReviveWasmCodeInfo = {
12939
+ owner: AccountId32;
12940
+ deposit: bigint;
12941
+ refcount: bigint;
12942
+ codeLen: number;
12943
+ apiVersion: number;
12944
+ behaviourVersion: number;
12945
+ };
12946
+
12947
+ export type PalletReviveStorageContractInfo = {
12948
+ trieId: Bytes;
12949
+ codeHash: H256;
12950
+ storageBytes: number;
12951
+ storageItems: number;
12952
+ storageByteDeposit: bigint;
12953
+ storageItemDeposit: bigint;
12954
+ storageBaseDeposit: bigint;
12955
+ delegateDependencies: Array<[H256, bigint]>;
12956
+ immutableDataLen: number;
12957
+ };
12958
+
12959
+ export type PalletReviveStorageDeletionQueueManager = { insertCounter: number; deleteCounter: number };
12960
+
12961
+ /**
12962
+ * The `Error` enum of this pallet.
12963
+ **/
12964
+ export type PalletReviveError =
12965
+ /**
12966
+ * Invalid schedule supplied, e.g. with zero weight of a basic operation.
12967
+ **/
12968
+ | 'InvalidSchedule'
12969
+ /**
12970
+ * Invalid combination of flags supplied to `seal_call` or `seal_delegate_call`.
12971
+ **/
12972
+ | 'InvalidCallFlags'
12973
+ /**
12974
+ * The executed contract exhausted its gas limit.
12975
+ **/
12976
+ | 'OutOfGas'
12977
+ /**
12978
+ * Performing the requested transfer failed. Probably because there isn't enough
12979
+ * free balance in the sender's account.
12980
+ **/
12981
+ | 'TransferFailed'
12982
+ /**
12983
+ * Performing a call was denied because the calling depth reached the limit
12984
+ * of what is specified in the schedule.
12985
+ **/
12986
+ | 'MaxCallDepthReached'
12987
+ /**
12988
+ * No contract was found at the specified address.
12989
+ **/
12990
+ | 'ContractNotFound'
12991
+ /**
12992
+ * No code could be found at the supplied code hash.
12993
+ **/
12994
+ | 'CodeNotFound'
12995
+ /**
12996
+ * No code info could be found at the supplied code hash.
12997
+ **/
12998
+ | 'CodeInfoNotFound'
12999
+ /**
13000
+ * A buffer outside of sandbox memory was passed to a contract API function.
13001
+ **/
13002
+ | 'OutOfBounds'
13003
+ /**
13004
+ * Input passed to a contract API function failed to decode as expected type.
13005
+ **/
13006
+ | 'DecodingFailed'
13007
+ /**
13008
+ * Contract trapped during execution.
13009
+ **/
13010
+ | 'ContractTrapped'
13011
+ /**
13012
+ * The size defined in `T::MaxValueSize` was exceeded.
13013
+ **/
13014
+ | 'ValueTooLarge'
13015
+ /**
13016
+ * Termination of a contract is not allowed while the contract is already
13017
+ * on the call stack. Can be triggered by `seal_terminate`.
13018
+ **/
13019
+ | 'TerminatedWhileReentrant'
13020
+ /**
13021
+ * `seal_call` forwarded this contracts input. It therefore is no longer available.
13022
+ **/
13023
+ | 'InputForwarded'
13024
+ /**
13025
+ * The amount of topics passed to `seal_deposit_events` exceeds the limit.
13026
+ **/
13027
+ | 'TooManyTopics'
13028
+ /**
13029
+ * The chain does not provide a chain extension. Calling the chain extension results
13030
+ * in this error. Note that this usually shouldn't happen as deploying such contracts
13031
+ * is rejected.
13032
+ **/
13033
+ | 'NoChainExtension'
13034
+ /**
13035
+ * Failed to decode the XCM program.
13036
+ **/
13037
+ | 'XcmDecodeFailed'
13038
+ /**
13039
+ * A contract with the same AccountId already exists.
13040
+ **/
13041
+ | 'DuplicateContract'
13042
+ /**
13043
+ * A contract self destructed in its constructor.
13044
+ *
13045
+ * This can be triggered by a call to `seal_terminate`.
13046
+ **/
13047
+ | 'TerminatedInConstructor'
13048
+ /**
13049
+ * A call tried to invoke a contract that is flagged as non-reentrant.
13050
+ **/
13051
+ | 'ReentranceDenied'
13052
+ /**
13053
+ * A contract called into the runtime which then called back into this pallet.
13054
+ **/
13055
+ | 'ReenteredPallet'
13056
+ /**
13057
+ * A contract attempted to invoke a state modifying API while being in read-only mode.
13058
+ **/
13059
+ | 'StateChangeDenied'
13060
+ /**
13061
+ * Origin doesn't have enough balance to pay the required storage deposits.
13062
+ **/
13063
+ | 'StorageDepositNotEnoughFunds'
13064
+ /**
13065
+ * More storage was created than allowed by the storage deposit limit.
13066
+ **/
13067
+ | 'StorageDepositLimitExhausted'
13068
+ /**
13069
+ * Code removal was denied because the code is still in use by at least one contract.
13070
+ **/
13071
+ | 'CodeInUse'
13072
+ /**
13073
+ * The contract ran to completion but decided to revert its storage changes.
13074
+ * Please note that this error is only returned from extrinsics. When called directly
13075
+ * or via RPC an `Ok` will be returned. In this case the caller needs to inspect the flags
13076
+ * to determine whether a reversion has taken place.
13077
+ **/
13078
+ | 'ContractReverted'
13079
+ /**
13080
+ * The contract failed to compile or is missing the correct entry points.
13081
+ *
13082
+ * A more detailed error can be found on the node console if debug messages are enabled
13083
+ * by supplying `-lruntime::revive=debug`.
13084
+ **/
13085
+ | 'CodeRejected'
13086
+ /**
13087
+ * The code blob supplied is larger than [`limits::code::BLOB_BYTES`].
13088
+ **/
13089
+ | 'BlobTooLarge'
13090
+ /**
13091
+ * The static memory consumption of the blob will be larger than
13092
+ * [`limits::code::STATIC_MEMORY_BYTES`].
13093
+ **/
13094
+ | 'StaticMemoryTooLarge'
13095
+ /**
13096
+ * The program contains a basic block that is larger than allowed.
13097
+ **/
13098
+ | 'BasicBlockTooLarge'
13099
+ /**
13100
+ * The program contains an invalid instruction.
13101
+ **/
13102
+ | 'InvalidInstruction'
13103
+ /**
13104
+ * The contract has reached its maximum number of delegate dependencies.
13105
+ **/
13106
+ | 'MaxDelegateDependenciesReached'
13107
+ /**
13108
+ * The dependency was not found in the contract's delegate dependencies.
13109
+ **/
13110
+ | 'DelegateDependencyNotFound'
13111
+ /**
13112
+ * The contract already depends on the given delegate dependency.
13113
+ **/
13114
+ | 'DelegateDependencyAlreadyExists'
13115
+ /**
13116
+ * Can not add a delegate dependency to the code hash of the contract itself.
13117
+ **/
13118
+ | 'CannotAddSelfAsDelegateDependency'
13119
+ /**
13120
+ * Can not add more data to transient storage.
13121
+ **/
13122
+ | 'OutOfTransientStorage'
13123
+ /**
13124
+ * The contract tried to call a syscall which does not exist (at its current api level).
13125
+ **/
13126
+ | 'InvalidSyscall'
13127
+ /**
13128
+ * Invalid storage flags were passed to one of the storage syscalls.
13129
+ **/
13130
+ | 'InvalidStorageFlags'
13131
+ /**
13132
+ * PolkaVM failed during code execution. Probably due to a malformed program.
13133
+ **/
13134
+ | 'ExecutionFailed'
13135
+ /**
13136
+ * Failed to convert a U256 to a Balance.
13137
+ **/
13138
+ | 'BalanceConversionFailed'
13139
+ /**
13140
+ * Immutable data can only be set during deploys and only be read during calls.
13141
+ * Additionally, it is only valid to set the data once and it must not be empty.
13142
+ **/
13143
+ | 'InvalidImmutableAccess'
13144
+ /**
13145
+ * An `AccountID32` account tried to interact with the pallet without having a mapping.
13146
+ *
13147
+ * Call [`Pallet::map_account`] in order to create a mapping for the account.
13148
+ **/
13149
+ | 'AccountUnmapped'
13150
+ /**
13151
+ * Tried to map an account that is already mapped.
13152
+ **/
13153
+ | 'AccountAlreadyMapped';
13154
+
12434
13155
  /**
12435
13156
  * The `Error` enum of this pallet.
12436
13157
  **/
@@ -12477,8 +13198,6 @@ export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataH
12477
13198
 
12478
13199
  export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
12479
13200
 
12480
- export type AssetHubWestendRuntimeRuntime = {};
12481
-
12482
13201
  export type SpConsensusSlotsSlotDuration = bigint;
12483
13202
 
12484
13203
  export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrinsic> };
@@ -12502,7 +13221,9 @@ export type SpRuntimeTransactionValidityInvalidTransaction =
12502
13221
  | { type: 'Custom'; value: number }
12503
13222
  | { type: 'BadMandatory' }
12504
13223
  | { type: 'MandatoryValidation' }
12505
- | { type: 'BadSigner' };
13224
+ | { type: 'BadSigner' }
13225
+ | { type: 'IndeterminateImplicit' }
13226
+ | { type: 'UnknownOrigin' };
12506
13227
 
12507
13228
  export type SpRuntimeTransactionValidityUnknownTransaction =
12508
13229
  | { type: 'CannotLookup' }
@@ -12584,6 +13305,61 @@ export type CumulusPrimitivesCoreCollationInfo = {
12584
13305
 
12585
13306
  export type PolkadotParachainPrimitivesPrimitivesValidationCode = Bytes;
12586
13307
 
13308
+ export type PolkadotPrimitivesVstagingCoreSelector = number;
13309
+
13310
+ export type PolkadotPrimitivesVstagingClaimQueueOffset = number;
13311
+
13312
+ export type XcmVersionedAsset =
13313
+ | { type: 'V2'; value: XcmV2MultiassetMultiAsset }
13314
+ | { type: 'V3'; value: XcmV3MultiassetMultiAsset }
13315
+ | { type: 'V4'; value: StagingXcmV4Asset };
13316
+
13317
+ export type XcmRuntimeApisTrustedQueryError = 'VersionedAssetConversionFailed' | 'VersionedLocationConversionFailed';
13318
+
13319
+ export type PalletRevivePrimitivesContractResult = {
13320
+ gasConsumed: SpWeightsWeightV2Weight;
13321
+ gasRequired: SpWeightsWeightV2Weight;
13322
+ storageDeposit: PalletRevivePrimitivesStorageDeposit;
13323
+ debugMessage: Bytes;
13324
+ result: Result<PalletRevivePrimitivesExecReturnValue, DispatchError>;
13325
+ events?: Array<FrameSystemEventRecord> | undefined;
13326
+ };
13327
+
13328
+ export type PalletRevivePrimitivesExecReturnValue = { flags: PalletReviveUapiFlagsReturnFlags; data: Bytes };
13329
+
13330
+ export type PalletReviveUapiFlagsReturnFlags = { bits: number };
13331
+
13332
+ export type PalletRevivePrimitivesStorageDeposit =
13333
+ | { type: 'Refund'; value: bigint }
13334
+ | { type: 'Charge'; value: bigint };
13335
+
13336
+ export type PalletRevivePrimitivesCode = { type: 'Upload'; value: Bytes } | { type: 'Existing'; value: H256 };
13337
+
13338
+ export type PalletRevivePrimitivesContractResultInstantiateReturnValue = {
13339
+ gasConsumed: SpWeightsWeightV2Weight;
13340
+ gasRequired: SpWeightsWeightV2Weight;
13341
+ storageDeposit: PalletRevivePrimitivesStorageDeposit;
13342
+ debugMessage: Bytes;
13343
+ result: Result<PalletRevivePrimitivesInstantiateReturnValue, DispatchError>;
13344
+ events?: Array<FrameSystemEventRecord> | undefined;
13345
+ };
13346
+
13347
+ export type PalletRevivePrimitivesInstantiateReturnValue = {
13348
+ result: PalletRevivePrimitivesExecReturnValue;
13349
+ addr: H160;
13350
+ };
13351
+
13352
+ export type PalletRevivePrimitivesEthContractResult = {
13353
+ fee: bigint;
13354
+ gasRequired: SpWeightsWeightV2Weight;
13355
+ storageDeposit: bigint;
13356
+ result: Result<Bytes, DispatchError>;
13357
+ };
13358
+
13359
+ export type PalletRevivePrimitivesCodeUploadReturnValue = { codeHash: H256; deposit: bigint };
13360
+
13361
+ export type PalletRevivePrimitivesContractAccessError = 'DoesntExist' | 'KeyDecodingFailed';
13362
+
12587
13363
  export type AssetHubWestendRuntimeRuntimeError =
12588
13364
  | { pallet: 'System'; palletError: FrameSystemError }
12589
13365
  | { pallet: 'ParachainSystem'; palletError: CumulusPalletParachainSystemError }
@@ -12606,5 +13382,6 @@ export type AssetHubWestendRuntimeRuntimeError =
12606
13382
  | { pallet: 'AssetsFreezer'; palletError: PalletAssetsFreezerError }
12607
13383
  | { pallet: 'ForeignAssetsFreezer'; palletError: PalletAssetsFreezerError }
12608
13384
  | { pallet: 'PoolAssetsFreezer'; palletError: PalletAssetsFreezerError }
13385
+ | { pallet: 'Revive'; palletError: PalletReviveError }
12609
13386
  | { pallet: 'StateTrieMigration'; palletError: PalletStateTrieMigrationError }
12610
13387
  | { pallet: 'AssetConversionMigration'; palletError: PalletAssetConversionOpsError };