@dedot/chaintypes 0.122.0 → 0.131.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.
Files changed (53) hide show
  1. package/astar/consts.d.ts +0 -9
  2. package/astar/index.d.ts +1 -1
  3. package/astar/query.d.ts +0 -15
  4. package/hydration/consts.d.ts +29 -0
  5. package/hydration/errors.d.ts +172 -10
  6. package/hydration/events.d.ts +105 -0
  7. package/hydration/index.d.ts +1 -1
  8. package/hydration/json-rpc.d.ts +1 -0
  9. package/hydration/query.d.ts +50 -0
  10. package/hydration/tx.d.ts +408 -0
  11. package/hydration/types.d.ts +695 -12
  12. package/kusama/consts.d.ts +27 -7
  13. package/kusama/errors.d.ts +51 -4
  14. package/kusama/events.d.ts +212 -4
  15. package/kusama/index.d.ts +1 -1
  16. package/kusama/query.d.ts +44 -19
  17. package/kusama/runtime.d.ts +22 -0
  18. package/kusama/tx.d.ts +377 -25
  19. package/kusama/types.d.ts +638 -80
  20. package/kusama-asset-hub/consts.d.ts +98 -2
  21. package/kusama-asset-hub/errors.d.ts +314 -12
  22. package/kusama-asset-hub/events.d.ts +157 -3
  23. package/kusama-asset-hub/index.d.ts +1 -1
  24. package/kusama-asset-hub/query.d.ts +113 -6
  25. package/kusama-asset-hub/runtime.d.ts +217 -1
  26. package/kusama-asset-hub/tx.d.ts +581 -1
  27. package/kusama-asset-hub/types.d.ts +1086 -26
  28. package/moonbeam/index.d.ts +1 -1
  29. package/package.json +2 -2
  30. package/polkadot/consts.d.ts +23 -5
  31. package/polkadot/errors.d.ts +51 -4
  32. package/polkadot/events.d.ts +207 -4
  33. package/polkadot/index.d.ts +1 -1
  34. package/polkadot/query.d.ts +44 -19
  35. package/polkadot/runtime.d.ts +22 -0
  36. package/polkadot/tx.d.ts +376 -24
  37. package/polkadot/types.d.ts +630 -78
  38. package/westend/consts.d.ts +28 -9
  39. package/westend/errors.d.ts +21 -37
  40. package/westend/events.d.ts +25 -49
  41. package/westend/index.d.ts +1 -1
  42. package/westend/query.d.ts +40 -70
  43. package/westend/runtime.d.ts +7 -0
  44. package/westend/tx.d.ts +77 -124
  45. package/westend/types.d.ts +228 -328
  46. package/westend-asset-hub/consts.d.ts +41 -14
  47. package/westend-asset-hub/errors.d.ts +12 -96
  48. package/westend-asset-hub/events.d.ts +29 -81
  49. package/westend-asset-hub/index.d.ts +1 -1
  50. package/westend-asset-hub/query.d.ts +61 -125
  51. package/westend-asset-hub/runtime.d.ts +47 -1
  52. package/westend-asset-hub/tx.d.ts +97 -549
  53. package/westend-asset-hub/types.d.ts +489 -958
@@ -10,7 +10,7 @@ import type {
10
10
  RpcV2,
11
11
  ISubmittableExtrinsicLegacy,
12
12
  } from 'dedot/types';
13
- import type { MultiAddressLike, Extrinsic, BytesLike, H256, AccountId32Like, FixedBytes } from 'dedot/codecs';
13
+ import type { MultiAddressLike, Extrinsic, BytesLike, H256, AccountId32Like, FixedBytes, H160 } from 'dedot/codecs';
14
14
  import type {
15
15
  AssetHubKusamaRuntimeRuntimeCallLike,
16
16
  SpRuntimeMultiSignature,
@@ -1884,6 +1884,77 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1884
1884
  >
1885
1885
  >;
1886
1886
 
1887
+ /**
1888
+ * Authorize another `aliaser` location to alias into the local `origin` making this call.
1889
+ * The `aliaser` is only authorized until the provided `expiry` block number.
1890
+ * The call can also be used for a previously authorized alias in order to update its
1891
+ * `expiry` block number.
1892
+ *
1893
+ * Usually useful to allow your local account to be aliased into from a remote location
1894
+ * also under your control (like your account on another chain).
1895
+ *
1896
+ * WARNING: make sure the caller `origin` (you) trusts the `aliaser` location to act in
1897
+ * their/your name. Once authorized using this call, the `aliaser` can freely impersonate
1898
+ * `origin` in XCM programs executed on the local chain.
1899
+ *
1900
+ * @param {XcmVersionedLocation} aliaser
1901
+ * @param {bigint | undefined} expires
1902
+ **/
1903
+ addAuthorizedAlias: GenericTxCall<
1904
+ Rv,
1905
+ (
1906
+ aliaser: XcmVersionedLocation,
1907
+ expires: bigint | undefined,
1908
+ ) => ChainSubmittableExtrinsic<
1909
+ Rv,
1910
+ {
1911
+ pallet: 'PolkadotXcm';
1912
+ palletCall: {
1913
+ name: 'AddAuthorizedAlias';
1914
+ params: { aliaser: XcmVersionedLocation; expires: bigint | undefined };
1915
+ };
1916
+ }
1917
+ >
1918
+ >;
1919
+
1920
+ /**
1921
+ * Remove a previously authorized `aliaser` from the list of locations that can alias into
1922
+ * the local `origin` making this call.
1923
+ *
1924
+ * @param {XcmVersionedLocation} aliaser
1925
+ **/
1926
+ removeAuthorizedAlias: GenericTxCall<
1927
+ Rv,
1928
+ (aliaser: XcmVersionedLocation) => ChainSubmittableExtrinsic<
1929
+ Rv,
1930
+ {
1931
+ pallet: 'PolkadotXcm';
1932
+ palletCall: {
1933
+ name: 'RemoveAuthorizedAlias';
1934
+ params: { aliaser: XcmVersionedLocation };
1935
+ };
1936
+ }
1937
+ >
1938
+ >;
1939
+
1940
+ /**
1941
+ * Remove all previously authorized `aliaser`s that can alias into the local `origin`
1942
+ * making this call.
1943
+ *
1944
+ **/
1945
+ removeAllAuthorizedAliases: GenericTxCall<
1946
+ Rv,
1947
+ () => ChainSubmittableExtrinsic<
1948
+ Rv,
1949
+ {
1950
+ pallet: 'PolkadotXcm';
1951
+ palletCall: {
1952
+ name: 'RemoveAllAuthorizedAliases';
1953
+ };
1954
+ }
1955
+ >
1956
+ >;
1957
+
1887
1958
  /**
1888
1959
  * Generic pallet tx call
1889
1960
  **/
@@ -2199,6 +2270,78 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2199
2270
  >
2200
2271
  >;
2201
2272
 
2273
+ /**
2274
+ * Dispatch a fallback call in the event the main call fails to execute.
2275
+ * May be called from any origin except `None`.
2276
+ *
2277
+ * This function first attempts to dispatch the `main` call.
2278
+ * If the `main` call fails, the `fallback` is attemted.
2279
+ * if the fallback is successfully dispatched, the weights of both calls
2280
+ * are accumulated and an event containing the main call error is deposited.
2281
+ *
2282
+ * In the event of a fallback failure the whole call fails
2283
+ * with the weights returned.
2284
+ *
2285
+ * - `main`: The main call to be dispatched. This is the primary action to execute.
2286
+ * - `fallback`: The fallback call to be dispatched in case the `main` call fails.
2287
+ *
2288
+ * ## Dispatch Logic
2289
+ * - If the origin is `root`, both the main and fallback calls are executed without
2290
+ * applying any origin filters.
2291
+ * - If the origin is not `root`, the origin filter is applied to both the `main` and
2292
+ * `fallback` calls.
2293
+ *
2294
+ * ## Use Case
2295
+ * - Some use cases might involve submitting a `batch` type call in either main, fallback
2296
+ * or both.
2297
+ *
2298
+ * @param {AssetHubKusamaRuntimeRuntimeCallLike} main
2299
+ * @param {AssetHubKusamaRuntimeRuntimeCallLike} fallback
2300
+ **/
2301
+ ifElse: GenericTxCall<
2302
+ Rv,
2303
+ (
2304
+ main: AssetHubKusamaRuntimeRuntimeCallLike,
2305
+ fallback: AssetHubKusamaRuntimeRuntimeCallLike,
2306
+ ) => ChainSubmittableExtrinsic<
2307
+ Rv,
2308
+ {
2309
+ pallet: 'Utility';
2310
+ palletCall: {
2311
+ name: 'IfElse';
2312
+ params: { main: AssetHubKusamaRuntimeRuntimeCallLike; fallback: AssetHubKusamaRuntimeRuntimeCallLike };
2313
+ };
2314
+ }
2315
+ >
2316
+ >;
2317
+
2318
+ /**
2319
+ * Dispatches a function call with a provided origin.
2320
+ *
2321
+ * Almost the same as [`Pallet::dispatch_as`] but forwards any error of the inner call.
2322
+ *
2323
+ * The dispatch origin for this call must be _Root_.
2324
+ *
2325
+ * @param {AssetHubKusamaRuntimeOriginCaller} asOrigin
2326
+ * @param {AssetHubKusamaRuntimeRuntimeCallLike} call
2327
+ **/
2328
+ dispatchAsFallible: GenericTxCall<
2329
+ Rv,
2330
+ (
2331
+ asOrigin: AssetHubKusamaRuntimeOriginCaller,
2332
+ call: AssetHubKusamaRuntimeRuntimeCallLike,
2333
+ ) => ChainSubmittableExtrinsic<
2334
+ Rv,
2335
+ {
2336
+ pallet: 'Utility';
2337
+ palletCall: {
2338
+ name: 'DispatchAsFallible';
2339
+ params: { asOrigin: AssetHubKusamaRuntimeOriginCaller; call: AssetHubKusamaRuntimeRuntimeCallLike };
2340
+ };
2341
+ }
2342
+ >
2343
+ >;
2344
+
2202
2345
  /**
2203
2346
  * Generic pallet tx call
2204
2347
  **/
@@ -2431,6 +2574,43 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2431
2574
  >
2432
2575
  >;
2433
2576
 
2577
+ /**
2578
+ * Poke the deposit reserved for an existing multisig operation.
2579
+ *
2580
+ * The dispatch origin for this call must be _Signed_ and must be the original depositor of
2581
+ * the multisig operation.
2582
+ *
2583
+ * The transaction fee is waived if the deposit amount has changed.
2584
+ *
2585
+ * - `threshold`: The total number of approvals needed for this multisig.
2586
+ * - `other_signatories`: The accounts (other than the sender) who are part of the
2587
+ * multisig.
2588
+ * - `call_hash`: The hash of the call this deposit is reserved for.
2589
+ *
2590
+ * Emits `DepositPoked` if successful.
2591
+ *
2592
+ * @param {number} threshold
2593
+ * @param {Array<AccountId32Like>} otherSignatories
2594
+ * @param {FixedBytes<32>} callHash
2595
+ **/
2596
+ pokeDeposit: GenericTxCall<
2597
+ Rv,
2598
+ (
2599
+ threshold: number,
2600
+ otherSignatories: Array<AccountId32Like>,
2601
+ callHash: FixedBytes<32>,
2602
+ ) => ChainSubmittableExtrinsic<
2603
+ Rv,
2604
+ {
2605
+ pallet: 'Multisig';
2606
+ palletCall: {
2607
+ name: 'PokeDeposit';
2608
+ params: { threshold: number; otherSignatories: Array<AccountId32Like>; callHash: FixedBytes<32> };
2609
+ };
2610
+ }
2611
+ >
2612
+ >;
2613
+
2434
2614
  /**
2435
2615
  * Generic pallet tx call
2436
2616
  **/
@@ -2798,6 +2978,30 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2798
2978
  >
2799
2979
  >;
2800
2980
 
2981
+ /**
2982
+ * Poke / Adjust deposits made for proxies and announcements based on current values.
2983
+ * This can be used by accounts to possibly lower their locked amount.
2984
+ *
2985
+ * The dispatch origin for this call must be _Signed_.
2986
+ *
2987
+ * The transaction fee is waived if the deposit amount has changed.
2988
+ *
2989
+ * Emits `DepositPoked` if successful.
2990
+ *
2991
+ **/
2992
+ pokeDeposit: GenericTxCall<
2993
+ Rv,
2994
+ () => ChainSubmittableExtrinsic<
2995
+ Rv,
2996
+ {
2997
+ pallet: 'Proxy';
2998
+ palletCall: {
2999
+ name: 'PokeDeposit';
3000
+ };
3001
+ }
3002
+ >
3003
+ >;
3004
+
2801
3005
  /**
2802
3006
  * Generic pallet tx call
2803
3007
  **/
@@ -3043,6 +3247,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3043
3247
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
3044
3248
  * asset.
3045
3249
  *
3250
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
3251
+ * an account contains holds or freezes in place.
3252
+ *
3046
3253
  * @param {number} id
3047
3254
  **/
3048
3255
  startDestroy: GenericTxCall<
@@ -3945,6 +4152,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3945
4152
  * refunded.
3946
4153
  * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
3947
4154
  *
4155
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
4156
+ * the asset account contains holds or freezes in place.
4157
+ *
3948
4158
  * Emits `Refunded` event when successful.
3949
4159
  *
3950
4160
  * @param {number} id
@@ -4043,6 +4253,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4043
4253
  * - `id`: The identifier of the asset for the account holding a deposit.
4044
4254
  * - `who`: The account to refund.
4045
4255
  *
4256
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
4257
+ * the asset account contains holds or freezes in place.
4258
+ *
4046
4259
  * Emits `Refunded` event when successful.
4047
4260
  *
4048
4261
  * @param {number} id
@@ -6703,6 +6916,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6703
6916
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
6704
6917
  * asset.
6705
6918
  *
6919
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
6920
+ * an account contains holds or freezes in place.
6921
+ *
6706
6922
  * @param {StagingXcmV4Location} id
6707
6923
  **/
6708
6924
  startDestroy: GenericTxCall<
@@ -7621,6 +7837,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7621
7837
  * refunded.
7622
7838
  * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
7623
7839
  *
7840
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
7841
+ * the asset account contains holds or freezes in place.
7842
+ *
7624
7843
  * Emits `Refunded` event when successful.
7625
7844
  *
7626
7845
  * @param {StagingXcmV4Location} id
@@ -7719,6 +7938,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7719
7938
  * - `id`: The identifier of the asset for the account holding a deposit.
7720
7939
  * - `who`: The account to refund.
7721
7940
  *
7941
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
7942
+ * the asset account contains holds or freezes in place.
7943
+ *
7722
7944
  * Emits `Refunded` event when successful.
7723
7945
  *
7724
7946
  * @param {StagingXcmV4Location} id
@@ -8023,6 +8245,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8023
8245
  * - `id`: The identifier of the asset to be destroyed. This must identify an existing
8024
8246
  * asset.
8025
8247
  *
8248
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
8249
+ * an account contains holds or freezes in place.
8250
+ *
8026
8251
  * @param {number} id
8027
8252
  **/
8028
8253
  startDestroy: GenericTxCall<
@@ -8925,6 +9150,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8925
9150
  * refunded.
8926
9151
  * - `allow_burn`: If `true` then assets may be destroyed in order to complete the refund.
8927
9152
  *
9153
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
9154
+ * the asset account contains holds or freezes in place.
9155
+ *
8928
9156
  * Emits `Refunded` event when successful.
8929
9157
  *
8930
9158
  * @param {number} id
@@ -9023,6 +9251,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9023
9251
  * - `id`: The identifier of the asset for the account holding a deposit.
9024
9252
  * - `who`: The account to refund.
9025
9253
  *
9254
+ * It will fail with either [`Error::ContainsHolds`] or [`Error::ContainsFreezes`] if
9255
+ * the asset account contains holds or freezes in place.
9256
+ *
9026
9257
  * Emits `Refunded` event when successful.
9027
9258
  *
9028
9259
  * @param {number} id
@@ -9364,6 +9595,355 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9364
9595
  **/
9365
9596
  [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
9366
9597
  };
9598
+ /**
9599
+ * Pallet `Revive`'s transaction calls
9600
+ **/
9601
+ revive: {
9602
+ /**
9603
+ * A raw EVM transaction, typically dispatched by an Ethereum JSON-RPC server.
9604
+ *
9605
+ * # Parameters
9606
+ *
9607
+ * * `payload`: The encoded [`crate::evm::TransactionSigned`].
9608
+ * * `gas_limit`: The gas limit enforced during contract execution.
9609
+ * * `storage_deposit_limit`: The maximum balance that can be charged to the caller for
9610
+ * storage usage.
9611
+ *
9612
+ * # Note
9613
+ *
9614
+ * This call cannot be dispatched directly; attempting to do so will result in a failed
9615
+ * transaction. It serves as a wrapper for an Ethereum transaction. When submitted, the
9616
+ * runtime converts it into a [`sp_runtime::generic::CheckedExtrinsic`] by recovering the
9617
+ * signer and validating the transaction.
9618
+ *
9619
+ * @param {BytesLike} payload
9620
+ **/
9621
+ ethTransact: GenericTxCall<
9622
+ Rv,
9623
+ (payload: BytesLike) => ChainSubmittableExtrinsic<
9624
+ Rv,
9625
+ {
9626
+ pallet: 'Revive';
9627
+ palletCall: {
9628
+ name: 'EthTransact';
9629
+ params: { payload: BytesLike };
9630
+ };
9631
+ }
9632
+ >
9633
+ >;
9634
+
9635
+ /**
9636
+ * Makes a call to an account, optionally transferring some balance.
9637
+ *
9638
+ * # Parameters
9639
+ *
9640
+ * * `dest`: Address of the contract to call.
9641
+ * * `value`: The balance to transfer from the `origin` to `dest`.
9642
+ * * `gas_limit`: The gas limit enforced when executing the constructor.
9643
+ * * `storage_deposit_limit`: The maximum amount of balance that can be charged from the
9644
+ * caller to pay for the storage consumed.
9645
+ * * `data`: The input data to pass to the contract.
9646
+ *
9647
+ * * If the account is a smart-contract account, the associated code will be
9648
+ * executed and any value will be transferred.
9649
+ * * If the account is a regular account, any value will be transferred.
9650
+ * * If no account exists and the call value is not less than `existential_deposit`,
9651
+ * a regular account will be created and any value will be transferred.
9652
+ *
9653
+ * @param {H160} dest
9654
+ * @param {bigint} value
9655
+ * @param {SpWeightsWeightV2Weight} gasLimit
9656
+ * @param {bigint} storageDepositLimit
9657
+ * @param {BytesLike} data
9658
+ **/
9659
+ call: GenericTxCall<
9660
+ Rv,
9661
+ (
9662
+ dest: H160,
9663
+ value: bigint,
9664
+ gasLimit: SpWeightsWeightV2Weight,
9665
+ storageDepositLimit: bigint,
9666
+ data: BytesLike,
9667
+ ) => ChainSubmittableExtrinsic<
9668
+ Rv,
9669
+ {
9670
+ pallet: 'Revive';
9671
+ palletCall: {
9672
+ name: 'Call';
9673
+ params: {
9674
+ dest: H160;
9675
+ value: bigint;
9676
+ gasLimit: SpWeightsWeightV2Weight;
9677
+ storageDepositLimit: bigint;
9678
+ data: BytesLike;
9679
+ };
9680
+ };
9681
+ }
9682
+ >
9683
+ >;
9684
+
9685
+ /**
9686
+ * Instantiates a contract from a previously deployed wasm binary.
9687
+ *
9688
+ * This function is identical to [`Self::instantiate_with_code`] but without the
9689
+ * code deployment step. Instead, the `code_hash` of an on-chain deployed wasm binary
9690
+ * must be supplied.
9691
+ *
9692
+ * @param {bigint} value
9693
+ * @param {SpWeightsWeightV2Weight} gasLimit
9694
+ * @param {bigint} storageDepositLimit
9695
+ * @param {H256} codeHash
9696
+ * @param {BytesLike} data
9697
+ * @param {FixedBytes<32> | undefined} salt
9698
+ **/
9699
+ instantiate: GenericTxCall<
9700
+ Rv,
9701
+ (
9702
+ value: bigint,
9703
+ gasLimit: SpWeightsWeightV2Weight,
9704
+ storageDepositLimit: bigint,
9705
+ codeHash: H256,
9706
+ data: BytesLike,
9707
+ salt: FixedBytes<32> | undefined,
9708
+ ) => ChainSubmittableExtrinsic<
9709
+ Rv,
9710
+ {
9711
+ pallet: 'Revive';
9712
+ palletCall: {
9713
+ name: 'Instantiate';
9714
+ params: {
9715
+ value: bigint;
9716
+ gasLimit: SpWeightsWeightV2Weight;
9717
+ storageDepositLimit: bigint;
9718
+ codeHash: H256;
9719
+ data: BytesLike;
9720
+ salt: FixedBytes<32> | undefined;
9721
+ };
9722
+ };
9723
+ }
9724
+ >
9725
+ >;
9726
+
9727
+ /**
9728
+ * Instantiates a new contract from the supplied `code` optionally transferring
9729
+ * some balance.
9730
+ *
9731
+ * This dispatchable has the same effect as calling [`Self::upload_code`] +
9732
+ * [`Self::instantiate`]. Bundling them together provides efficiency gains. Please
9733
+ * also check the documentation of [`Self::upload_code`].
9734
+ *
9735
+ * # Parameters
9736
+ *
9737
+ * * `value`: The balance to transfer from the `origin` to the newly created contract.
9738
+ * * `gas_limit`: The gas limit enforced when executing the constructor.
9739
+ * * `storage_deposit_limit`: The maximum amount of balance that can be charged/reserved
9740
+ * from the caller to pay for the storage consumed.
9741
+ * * `code`: The contract code to deploy in raw bytes.
9742
+ * * `data`: The input data to pass to the contract constructor.
9743
+ * * `salt`: Used for the address derivation. If `Some` is supplied then `CREATE2`
9744
+ * semantics are used. If `None` then `CRATE1` is used.
9745
+ *
9746
+ *
9747
+ * Instantiation is executed as follows:
9748
+ *
9749
+ * - The supplied `code` is deployed, and a `code_hash` is created for that code.
9750
+ * - If the `code_hash` already exists on the chain the underlying `code` will be shared.
9751
+ * - The destination address is computed based on the sender, code_hash and the salt.
9752
+ * - The smart-contract account is created at the computed address.
9753
+ * - The `value` is transferred to the new account.
9754
+ * - The `deploy` function is executed in the context of the newly-created account.
9755
+ *
9756
+ * @param {bigint} value
9757
+ * @param {SpWeightsWeightV2Weight} gasLimit
9758
+ * @param {bigint} storageDepositLimit
9759
+ * @param {BytesLike} code
9760
+ * @param {BytesLike} data
9761
+ * @param {FixedBytes<32> | undefined} salt
9762
+ **/
9763
+ instantiateWithCode: GenericTxCall<
9764
+ Rv,
9765
+ (
9766
+ value: bigint,
9767
+ gasLimit: SpWeightsWeightV2Weight,
9768
+ storageDepositLimit: bigint,
9769
+ code: BytesLike,
9770
+ data: BytesLike,
9771
+ salt: FixedBytes<32> | undefined,
9772
+ ) => ChainSubmittableExtrinsic<
9773
+ Rv,
9774
+ {
9775
+ pallet: 'Revive';
9776
+ palletCall: {
9777
+ name: 'InstantiateWithCode';
9778
+ params: {
9779
+ value: bigint;
9780
+ gasLimit: SpWeightsWeightV2Weight;
9781
+ storageDepositLimit: bigint;
9782
+ code: BytesLike;
9783
+ data: BytesLike;
9784
+ salt: FixedBytes<32> | undefined;
9785
+ };
9786
+ };
9787
+ }
9788
+ >
9789
+ >;
9790
+
9791
+ /**
9792
+ * Upload new `code` without instantiating a contract from it.
9793
+ *
9794
+ * If the code does not already exist a deposit is reserved from the caller
9795
+ * and unreserved only when [`Self::remove_code`] is called. The size of the reserve
9796
+ * depends on the size of the supplied `code`.
9797
+ *
9798
+ * # Note
9799
+ *
9800
+ * Anyone can instantiate a contract from any uploaded code and thus prevent its removal.
9801
+ * To avoid this situation a constructor could employ access control so that it can
9802
+ * only be instantiated by permissioned entities. The same is true when uploading
9803
+ * through [`Self::instantiate_with_code`].
9804
+ *
9805
+ * @param {BytesLike} code
9806
+ * @param {bigint} storageDepositLimit
9807
+ **/
9808
+ uploadCode: GenericTxCall<
9809
+ Rv,
9810
+ (
9811
+ code: BytesLike,
9812
+ storageDepositLimit: bigint,
9813
+ ) => ChainSubmittableExtrinsic<
9814
+ Rv,
9815
+ {
9816
+ pallet: 'Revive';
9817
+ palletCall: {
9818
+ name: 'UploadCode';
9819
+ params: { code: BytesLike; storageDepositLimit: bigint };
9820
+ };
9821
+ }
9822
+ >
9823
+ >;
9824
+
9825
+ /**
9826
+ * Remove the code stored under `code_hash` and refund the deposit to its owner.
9827
+ *
9828
+ * A code can only be removed by its original uploader (its owner) and only if it is
9829
+ * not used by any contract.
9830
+ *
9831
+ * @param {H256} codeHash
9832
+ **/
9833
+ removeCode: GenericTxCall<
9834
+ Rv,
9835
+ (codeHash: H256) => ChainSubmittableExtrinsic<
9836
+ Rv,
9837
+ {
9838
+ pallet: 'Revive';
9839
+ palletCall: {
9840
+ name: 'RemoveCode';
9841
+ params: { codeHash: H256 };
9842
+ };
9843
+ }
9844
+ >
9845
+ >;
9846
+
9847
+ /**
9848
+ * Privileged function that changes the code of an existing contract.
9849
+ *
9850
+ * This takes care of updating refcounts and all other necessary operations. Returns
9851
+ * an error if either the `code_hash` or `dest` do not exist.
9852
+ *
9853
+ * # Note
9854
+ *
9855
+ * This does **not** change the address of the contract in question. This means
9856
+ * that the contract address is no longer derived from its code hash after calling
9857
+ * this dispatchable.
9858
+ *
9859
+ * @param {H160} dest
9860
+ * @param {H256} codeHash
9861
+ **/
9862
+ setCode: GenericTxCall<
9863
+ Rv,
9864
+ (
9865
+ dest: H160,
9866
+ codeHash: H256,
9867
+ ) => ChainSubmittableExtrinsic<
9868
+ Rv,
9869
+ {
9870
+ pallet: 'Revive';
9871
+ palletCall: {
9872
+ name: 'SetCode';
9873
+ params: { dest: H160; codeHash: H256 };
9874
+ };
9875
+ }
9876
+ >
9877
+ >;
9878
+
9879
+ /**
9880
+ * Register the callers account id so that it can be used in contract interactions.
9881
+ *
9882
+ * This will error if the origin is already mapped or is a eth native `Address20`. It will
9883
+ * take a deposit that can be released by calling [`Self::unmap_account`].
9884
+ *
9885
+ **/
9886
+ mapAccount: GenericTxCall<
9887
+ Rv,
9888
+ () => ChainSubmittableExtrinsic<
9889
+ Rv,
9890
+ {
9891
+ pallet: 'Revive';
9892
+ palletCall: {
9893
+ name: 'MapAccount';
9894
+ };
9895
+ }
9896
+ >
9897
+ >;
9898
+
9899
+ /**
9900
+ * Unregister the callers account id in order to free the deposit.
9901
+ *
9902
+ * There is no reason to ever call this function other than freeing up the deposit.
9903
+ * This is only useful when the account should no longer be used.
9904
+ *
9905
+ **/
9906
+ unmapAccount: GenericTxCall<
9907
+ Rv,
9908
+ () => ChainSubmittableExtrinsic<
9909
+ Rv,
9910
+ {
9911
+ pallet: 'Revive';
9912
+ palletCall: {
9913
+ name: 'UnmapAccount';
9914
+ };
9915
+ }
9916
+ >
9917
+ >;
9918
+
9919
+ /**
9920
+ * Dispatch an `call` with the origin set to the callers fallback address.
9921
+ *
9922
+ * Every `AccountId32` can control its corresponding fallback account. The fallback account
9923
+ * is the `AccountId20` with the last 12 bytes set to `0xEE`. This is essentially a
9924
+ * recovery function in case an `AccountId20` was used without creating a mapping first.
9925
+ *
9926
+ * @param {AssetHubKusamaRuntimeRuntimeCallLike} call
9927
+ **/
9928
+ dispatchAsFallbackAccount: GenericTxCall<
9929
+ Rv,
9930
+ (call: AssetHubKusamaRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<
9931
+ Rv,
9932
+ {
9933
+ pallet: 'Revive';
9934
+ palletCall: {
9935
+ name: 'DispatchAsFallbackAccount';
9936
+ params: { call: AssetHubKusamaRuntimeRuntimeCallLike };
9937
+ };
9938
+ }
9939
+ >
9940
+ >;
9941
+
9942
+ /**
9943
+ * Generic pallet tx call
9944
+ **/
9945
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
9946
+ };
9367
9947
  /**
9368
9948
  * Pallet `StateTrieMigration`'s transaction calls
9369
9949
  **/