@dedot/chaintypes 0.123.0 → 0.132.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 (80) hide show
  1. package/aleph/index.d.ts +2 -0
  2. package/aleph/view-functions.d.ts +5 -0
  3. package/astar/consts.d.ts +0 -9
  4. package/astar/index.d.ts +3 -1
  5. package/astar/query.d.ts +0 -15
  6. package/astar/view-functions.d.ts +5 -0
  7. package/basilisk/index.d.ts +2 -0
  8. package/basilisk/view-functions.d.ts +5 -0
  9. package/hydration/consts.d.ts +29 -0
  10. package/hydration/errors.d.ts +172 -10
  11. package/hydration/events.d.ts +105 -0
  12. package/hydration/index.d.ts +3 -1
  13. package/hydration/json-rpc.d.ts +1 -0
  14. package/hydration/query.d.ts +50 -0
  15. package/hydration/tx.d.ts +408 -0
  16. package/hydration/types.d.ts +695 -12
  17. package/hydration/view-functions.d.ts +5 -0
  18. package/kusama/consts.d.ts +27 -7
  19. package/kusama/errors.d.ts +51 -4
  20. package/kusama/events.d.ts +212 -4
  21. package/kusama/index.d.ts +3 -1
  22. package/kusama/query.d.ts +44 -19
  23. package/kusama/runtime.d.ts +22 -0
  24. package/kusama/tx.d.ts +377 -25
  25. package/kusama/types.d.ts +638 -80
  26. package/kusama/view-functions.d.ts +5 -0
  27. package/kusama-asset-hub/index.d.ts +2 -0
  28. package/kusama-asset-hub/view-functions.d.ts +5 -0
  29. package/kusama-people/index.d.ts +2 -0
  30. package/kusama-people/view-functions.d.ts +5 -0
  31. package/moonbeam/index.d.ts +3 -1
  32. package/moonbeam/view-functions.d.ts +5 -0
  33. package/package.json +3 -3
  34. package/paseo/index.d.ts +2 -0
  35. package/paseo/view-functions.d.ts +5 -0
  36. package/paseo-asset-hub/index.d.ts +2 -0
  37. package/paseo-asset-hub/view-functions.d.ts +5 -0
  38. package/paseo-hydration/index.d.ts +2 -0
  39. package/paseo-hydration/view-functions.d.ts +5 -0
  40. package/paseo-people/index.d.ts +2 -0
  41. package/paseo-people/view-functions.d.ts +5 -0
  42. package/polkadot/consts.d.ts +23 -5
  43. package/polkadot/errors.d.ts +51 -4
  44. package/polkadot/events.d.ts +207 -4
  45. package/polkadot/index.d.ts +3 -1
  46. package/polkadot/query.d.ts +44 -19
  47. package/polkadot/runtime.d.ts +22 -0
  48. package/polkadot/tx.d.ts +376 -24
  49. package/polkadot/types.d.ts +630 -78
  50. package/polkadot/view-functions.d.ts +5 -0
  51. package/polkadot-asset-hub/index.d.ts +2 -0
  52. package/polkadot-asset-hub/view-functions.d.ts +5 -0
  53. package/polkadot-people/index.d.ts +2 -0
  54. package/polkadot-people/view-functions.d.ts +5 -0
  55. package/substrate/index.d.ts +2 -0
  56. package/substrate/runtime.d.ts +11 -11
  57. package/substrate/types.d.ts +8 -1
  58. package/substrate/view-functions.d.ts +5 -0
  59. package/vara/index.d.ts +2 -0
  60. package/vara/view-functions.d.ts +5 -0
  61. package/westend/consts.d.ts +28 -9
  62. package/westend/errors.d.ts +23 -37
  63. package/westend/events.d.ts +25 -49
  64. package/westend/index.d.ts +3 -1
  65. package/westend/query.d.ts +42 -70
  66. package/westend/runtime.d.ts +7 -0
  67. package/westend/tx.d.ts +89 -124
  68. package/westend/types.d.ts +239 -339
  69. package/westend/view-functions.d.ts +84 -0
  70. package/westend-asset-hub/consts.d.ts +41 -14
  71. package/westend-asset-hub/errors.d.ts +14 -96
  72. package/westend-asset-hub/events.d.ts +29 -81
  73. package/westend-asset-hub/index.d.ts +3 -1
  74. package/westend-asset-hub/query.d.ts +63 -125
  75. package/westend-asset-hub/runtime.d.ts +47 -1
  76. package/westend-asset-hub/tx.d.ts +105 -549
  77. package/westend-asset-hub/types.d.ts +569 -1040
  78. package/westend-asset-hub/view-functions.d.ts +82 -0
  79. package/westend-people/index.d.ts +2 -0
  80. package/westend-people/view-functions.d.ts +5 -0
package/westend/tx.d.ts CHANGED
@@ -78,7 +78,7 @@ import type {
78
78
  PolkadotPrimitivesV8PvfCheckStatement,
79
79
  PolkadotPrimitivesV8ValidatorAppSignature,
80
80
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
81
- PolkadotPrimitivesV8SlashingDisputeProof,
81
+ PolkadotPrimitivesVstagingDisputeProof,
82
82
  PolkadotRuntimeParachainsParasParaGenesisArgs,
83
83
  XcmVersionedXcm,
84
84
  SpRuntimeMultiSigner,
@@ -99,7 +99,6 @@ import type {
99
99
  SpConsensusBeefyDoubleVotingProof,
100
100
  SpConsensusBeefyForkVotingProof,
101
101
  SpConsensusBeefyFutureBlockVotingProof,
102
- PalletRcMigratorMigrationStage,
103
102
  } from './types.js';
104
103
 
105
104
  export type ChainSubmittableExtrinsic<
@@ -4262,7 +4261,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4262
4261
  *
4263
4262
  * The dispatch origin for this call must be _Signed_.
4264
4263
  *
4265
- * WARNING: This may be called on accounts created by `pure`, however if done, then
4264
+ * WARNING: This may be called on accounts created by `create_pure`, however if done, then
4266
4265
  * the unreserved fees will be inaccessible. **All access to this account will be lost.**
4267
4266
  *
4268
4267
  **/
@@ -4328,16 +4327,16 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
4328
4327
  * inaccessible.
4329
4328
  *
4330
4329
  * Requires a `Signed` origin, and the sender account must have been created by a call to
4331
- * `pure` with corresponding parameters.
4330
+ * `create_pure` with corresponding parameters.
4332
4331
  *
4333
- * - `spawner`: The account that originally called `pure` to create this account.
4332
+ * - `spawner`: The account that originally called `create_pure` to create this account.
4334
4333
  * - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
4335
- * - `proxy_type`: The proxy type originally passed to `pure`.
4336
- * - `height`: The height of the chain when the call to `pure` was processed.
4337
- * - `ext_index`: The extrinsic index in which the call to `pure` was processed.
4334
+ * - `proxy_type`: The proxy type originally passed to `create_pure`.
4335
+ * - `height`: The height of the chain when the call to `create_pure` was processed.
4336
+ * - `ext_index`: The extrinsic index in which the call to `create_pure` was processed.
4338
4337
  *
4339
4338
  * Fails with `NoPermission` in case the caller is not a previously created pure
4340
- * account whose `pure` call has corresponding parameters.
4339
+ * account whose `create_pure` call has corresponding parameters.
4341
4340
  *
4342
4341
  * @param {MultiAddressLike} spawner
4343
4342
  * @param {WestendRuntimeProxyType} proxyType
@@ -6747,6 +6746,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6747
6746
  * Emits [`Event::Paid`] if successful.
6748
6747
  *
6749
6748
  * @param {number} index
6749
+ *
6750
+ * @deprecated The `spend_local` call will be removed by May 2025. Migrate to the new flow and use the `spend` call.
6750
6751
  **/
6751
6752
  payout: GenericTxCall<
6752
6753
  Rv,
@@ -6784,6 +6785,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
6784
6785
  * Emits [`Event::SpendProcessed`] if the spend payout has succeed.
6785
6786
  *
6786
6787
  * @param {number} index
6788
+ *
6789
+ * @deprecated The `remove_approval` call will be removed by May 2025. It associated with the deprecated `spend_local` call.
6787
6790
  **/
6788
6791
  checkStatus: GenericTxCall<
6789
6792
  Rv,
@@ -8040,6 +8043,72 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8040
8043
  >
8041
8044
  >;
8042
8045
 
8046
+ /**
8047
+ * Sets the storage for the authorized current code hash of the parachain.
8048
+ * If not applied, it will be removed at the `System::block_number() + valid_period` block.
8049
+ *
8050
+ * This can be useful, when triggering `Paras::force_set_current_code(para, code)`
8051
+ * from a different chain than the one where the `Paras` pallet is deployed.
8052
+ *
8053
+ * The main purpose is to avoid transferring the entire `code` Wasm blob between chains.
8054
+ * Instead, we authorize `code_hash` with `root`, which can later be applied by
8055
+ * `Paras::apply_authorized_force_set_current_code(para, code)` by anyone.
8056
+ *
8057
+ * Authorizations are stored in an **overwriting manner**.
8058
+ *
8059
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para
8060
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} newCodeHash
8061
+ * @param {number} validPeriod
8062
+ **/
8063
+ authorizeForceSetCurrentCodeHash: GenericTxCall<
8064
+ Rv,
8065
+ (
8066
+ para: PolkadotParachainPrimitivesPrimitivesId,
8067
+ newCodeHash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
8068
+ validPeriod: number,
8069
+ ) => ChainSubmittableExtrinsic<
8070
+ Rv,
8071
+ {
8072
+ pallet: 'Paras';
8073
+ palletCall: {
8074
+ name: 'AuthorizeForceSetCurrentCodeHash';
8075
+ params: {
8076
+ para: PolkadotParachainPrimitivesPrimitivesId;
8077
+ newCodeHash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash;
8078
+ validPeriod: number;
8079
+ };
8080
+ };
8081
+ }
8082
+ >
8083
+ >;
8084
+
8085
+ /**
8086
+ * Applies the already authorized current code for the parachain,
8087
+ * triggering the same functionality as `force_set_current_code`.
8088
+ *
8089
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para
8090
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCode} newCode
8091
+ **/
8092
+ applyAuthorizedForceSetCurrentCode: GenericTxCall<
8093
+ Rv,
8094
+ (
8095
+ para: PolkadotParachainPrimitivesPrimitivesId,
8096
+ newCode: PolkadotParachainPrimitivesPrimitivesValidationCode,
8097
+ ) => ChainSubmittableExtrinsic<
8098
+ Rv,
8099
+ {
8100
+ pallet: 'Paras';
8101
+ palletCall: {
8102
+ name: 'ApplyAuthorizedForceSetCurrentCode';
8103
+ params: {
8104
+ para: PolkadotParachainPrimitivesPrimitivesId;
8105
+ newCode: PolkadotParachainPrimitivesPrimitivesValidationCode;
8106
+ };
8107
+ };
8108
+ }
8109
+ >
8110
+ >;
8111
+
8043
8112
  /**
8044
8113
  * Generic pallet tx call
8045
8114
  **/
@@ -8442,13 +8511,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8442
8511
  parasSlashing: {
8443
8512
  /**
8444
8513
  *
8445
- * @param {PolkadotPrimitivesV8SlashingDisputeProof} disputeProof
8514
+ * @param {PolkadotPrimitivesVstagingDisputeProof} disputeProof
8446
8515
  * @param {SpSessionMembershipProof} keyOwnerProof
8447
8516
  **/
8448
8517
  reportDisputeLostUnsigned: GenericTxCall<
8449
8518
  Rv,
8450
8519
  (
8451
- disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
8520
+ disputeProof: PolkadotPrimitivesVstagingDisputeProof,
8452
8521
  keyOwnerProof: SpSessionMembershipProof,
8453
8522
  ) => ChainSubmittableExtrinsic<
8454
8523
  Rv,
@@ -8456,7 +8525,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8456
8525
  pallet: 'ParasSlashing';
8457
8526
  palletCall: {
8458
8527
  name: 'ReportDisputeLostUnsigned';
8459
- params: { disputeProof: PolkadotPrimitivesV8SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
8528
+ params: { disputeProof: PolkadotPrimitivesVstagingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
8460
8529
  };
8461
8530
  }
8462
8531
  >
@@ -8490,6 +8559,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8490
8559
  *
8491
8560
  * @param {bigint} maxAmount
8492
8561
  * @param {PolkadotParachainPrimitivesPrimitivesId} paraId
8562
+ *
8563
+ * @deprecated This will be removed in favor of using `place_order_with_credits`
8493
8564
  **/
8494
8565
  placeOrderAllowDeath: GenericTxCall<
8495
8566
  Rv,
@@ -8527,6 +8598,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8527
8598
  *
8528
8599
  * @param {bigint} maxAmount
8529
8600
  * @param {PolkadotParachainPrimitivesPrimitivesId} paraId
8601
+ *
8602
+ * @deprecated This will be removed in favor of using `place_order_with_credits`
8530
8603
  **/
8531
8604
  placeOrderKeepAlive: GenericTxCall<
8532
8605
  Rv,
@@ -9965,6 +10038,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9965
10038
  * @param {XcmVersionedLocation} beneficiary
9966
10039
  * @param {XcmVersionedAssets} assets
9967
10040
  * @param {number} feeAssetItem
10041
+ *
10042
+ * @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_teleport_assets` or `transfer_assets`
9968
10043
  **/
9969
10044
  teleportAssets: GenericTxCall<
9970
10045
  Rv,
@@ -10026,6 +10101,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
10026
10101
  * @param {XcmVersionedLocation} beneficiary
10027
10102
  * @param {XcmVersionedAssets} assets
10028
10103
  * @param {number} feeAssetItem
10104
+ *
10105
+ * @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_reserve_transfer_assets` or `transfer_assets`
10029
10106
  **/
10030
10107
  reserveTransferAssets: GenericTxCall<
10031
10108
  Rv,
@@ -11057,118 +11134,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
11057
11134
  >
11058
11135
  >;
11059
11136
 
11060
- /**
11061
- * Generic pallet tx call
11062
- **/
11063
- [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
11064
- };
11065
- /**
11066
- * Pallet `RcMigrator`'s transaction calls
11067
- **/
11068
- rcMigrator: {
11069
- /**
11070
- * Set the migration stage.
11071
- *
11072
- * This call is intended for emergency use only and is guarded by the
11073
- * [`Config::ManagerOrigin`].
11074
- *
11075
- * @param {PalletRcMigratorMigrationStage} stage
11076
- **/
11077
- forceSetStage: GenericTxCall<
11078
- Rv,
11079
- (stage: PalletRcMigratorMigrationStage) => ChainSubmittableExtrinsic<
11080
- Rv,
11081
- {
11082
- pallet: 'RcMigrator';
11083
- palletCall: {
11084
- name: 'ForceSetStage';
11085
- params: { stage: PalletRcMigratorMigrationStage };
11086
- };
11087
- }
11088
- >
11089
- >;
11090
-
11091
- /**
11092
- * Schedule the migration to start at a given moment.
11093
- *
11094
- * @param {FrameSupportScheduleDispatchTime} startMoment
11095
- **/
11096
- scheduleMigration: GenericTxCall<
11097
- Rv,
11098
- (startMoment: FrameSupportScheduleDispatchTime) => ChainSubmittableExtrinsic<
11099
- Rv,
11100
- {
11101
- pallet: 'RcMigrator';
11102
- palletCall: {
11103
- name: 'ScheduleMigration';
11104
- params: { startMoment: FrameSupportScheduleDispatchTime };
11105
- };
11106
- }
11107
- >
11108
- >;
11109
-
11110
- /**
11111
- * Start the data migration.
11112
- *
11113
- * This is typically called by the Asset Hub to indicate it's readiness to receive the
11114
- * migration data.
11115
- *
11116
- **/
11117
- startDataMigration: GenericTxCall<
11118
- Rv,
11119
- () => ChainSubmittableExtrinsic<
11120
- Rv,
11121
- {
11122
- pallet: 'RcMigrator';
11123
- palletCall: {
11124
- name: 'StartDataMigration';
11125
- };
11126
- }
11127
- >
11128
- >;
11129
-
11130
- /**
11131
- * Update the total number of XCM messages processed by the Asset Hub.
11132
- *
11133
- * @param {number} count
11134
- **/
11135
- updateAhMsgProcessedCount: GenericTxCall<
11136
- Rv,
11137
- (count: number) => ChainSubmittableExtrinsic<
11138
- Rv,
11139
- {
11140
- pallet: 'RcMigrator';
11141
- palletCall: {
11142
- name: 'UpdateAhMsgProcessedCount';
11143
- params: { count: number };
11144
- };
11145
- }
11146
- >
11147
- >;
11148
-
11149
- /**
11150
- * Update the total number of XCM messages sent and processed by the Asset Hub.
11151
- *
11152
- * @param {number} sent
11153
- * @param {number} processed
11154
- **/
11155
- updateAhMsgCounts: GenericTxCall<
11156
- Rv,
11157
- (
11158
- sent: number,
11159
- processed: number,
11160
- ) => ChainSubmittableExtrinsic<
11161
- Rv,
11162
- {
11163
- pallet: 'RcMigrator';
11164
- palletCall: {
11165
- name: 'UpdateAhMsgCounts';
11166
- params: { sent: number; processed: number };
11167
- };
11168
- }
11169
- >
11170
- >;
11171
-
11172
11137
  /**
11173
11138
  * Generic pallet tx call
11174
11139
  **/