@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
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
@@ -8040,6 +8039,72 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8040
8039
  >
8041
8040
  >;
8042
8041
 
8042
+ /**
8043
+ * Sets the storage for the authorized current code hash of the parachain.
8044
+ * If not applied, it will be removed at the `System::block_number() + valid_period` block.
8045
+ *
8046
+ * This can be useful, when triggering `Paras::force_set_current_code(para, code)`
8047
+ * from a different chain than the one where the `Paras` pallet is deployed.
8048
+ *
8049
+ * The main purpose is to avoid transferring the entire `code` Wasm blob between chains.
8050
+ * Instead, we authorize `code_hash` with `root`, which can later be applied by
8051
+ * `Paras::apply_authorized_force_set_current_code(para, code)` by anyone.
8052
+ *
8053
+ * Authorizations are stored in an **overwriting manner**.
8054
+ *
8055
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para
8056
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} newCodeHash
8057
+ * @param {number} validPeriod
8058
+ **/
8059
+ authorizeForceSetCurrentCodeHash: GenericTxCall<
8060
+ Rv,
8061
+ (
8062
+ para: PolkadotParachainPrimitivesPrimitivesId,
8063
+ newCodeHash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
8064
+ validPeriod: number,
8065
+ ) => ChainSubmittableExtrinsic<
8066
+ Rv,
8067
+ {
8068
+ pallet: 'Paras';
8069
+ palletCall: {
8070
+ name: 'AuthorizeForceSetCurrentCodeHash';
8071
+ params: {
8072
+ para: PolkadotParachainPrimitivesPrimitivesId;
8073
+ newCodeHash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash;
8074
+ validPeriod: number;
8075
+ };
8076
+ };
8077
+ }
8078
+ >
8079
+ >;
8080
+
8081
+ /**
8082
+ * Applies the already authorized current code for the parachain,
8083
+ * triggering the same functionality as `force_set_current_code`.
8084
+ *
8085
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para
8086
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCode} newCode
8087
+ **/
8088
+ applyAuthorizedForceSetCurrentCode: GenericTxCall<
8089
+ Rv,
8090
+ (
8091
+ para: PolkadotParachainPrimitivesPrimitivesId,
8092
+ newCode: PolkadotParachainPrimitivesPrimitivesValidationCode,
8093
+ ) => ChainSubmittableExtrinsic<
8094
+ Rv,
8095
+ {
8096
+ pallet: 'Paras';
8097
+ palletCall: {
8098
+ name: 'ApplyAuthorizedForceSetCurrentCode';
8099
+ params: {
8100
+ para: PolkadotParachainPrimitivesPrimitivesId;
8101
+ newCode: PolkadotParachainPrimitivesPrimitivesValidationCode;
8102
+ };
8103
+ };
8104
+ }
8105
+ >
8106
+ >;
8107
+
8043
8108
  /**
8044
8109
  * Generic pallet tx call
8045
8110
  **/
@@ -8442,13 +8507,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8442
8507
  parasSlashing: {
8443
8508
  /**
8444
8509
  *
8445
- * @param {PolkadotPrimitivesV8SlashingDisputeProof} disputeProof
8510
+ * @param {PolkadotPrimitivesVstagingDisputeProof} disputeProof
8446
8511
  * @param {SpSessionMembershipProof} keyOwnerProof
8447
8512
  **/
8448
8513
  reportDisputeLostUnsigned: GenericTxCall<
8449
8514
  Rv,
8450
8515
  (
8451
- disputeProof: PolkadotPrimitivesV8SlashingDisputeProof,
8516
+ disputeProof: PolkadotPrimitivesVstagingDisputeProof,
8452
8517
  keyOwnerProof: SpSessionMembershipProof,
8453
8518
  ) => ChainSubmittableExtrinsic<
8454
8519
  Rv,
@@ -8456,7 +8521,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
8456
8521
  pallet: 'ParasSlashing';
8457
8522
  palletCall: {
8458
8523
  name: 'ReportDisputeLostUnsigned';
8459
- params: { disputeProof: PolkadotPrimitivesV8SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
8524
+ params: { disputeProof: PolkadotPrimitivesVstagingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
8460
8525
  };
8461
8526
  }
8462
8527
  >
@@ -11057,118 +11122,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
11057
11122
  >
11058
11123
  >;
11059
11124
 
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
11125
  /**
11173
11126
  * Generic pallet tx call
11174
11127
  **/