@dedot/chaintypes 0.0.1-alpha.49 → 0.0.1-alpha.51
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/moonbeam/rpc.d.ts +44 -0
- package/package.json +2 -2
- package/rococo/consts.d.ts +21 -3
- package/rococo/errors.d.ts +25 -86
- package/rococo/events.d.ts +13 -13
- package/rococo/query.d.ts +101 -89
- package/rococo/runtime.d.ts +149 -57
- package/rococo/tx.d.ts +96 -33
- package/rococo/types.d.ts +289 -264
- package/rococoAssetHub/rpc.d.ts +13 -0
- package/westendAssetHub/rpc.d.ts +13 -0
package/rococo/tx.d.ts
CHANGED
|
@@ -45,19 +45,19 @@ import type {
|
|
|
45
45
|
PalletVestingVestingInfo,
|
|
46
46
|
RococoRuntimeProxyType,
|
|
47
47
|
PalletMultisigTimepoint,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
PolkadotPrimitivesV7AsyncBackingAsyncBackingParams,
|
|
49
|
+
PolkadotPrimitivesV7ExecutorParams,
|
|
50
|
+
PolkadotPrimitivesV7ApprovalVotingParams,
|
|
51
51
|
PolkadotPrimitivesVstagingSchedulerParams,
|
|
52
|
-
|
|
52
|
+
PolkadotPrimitivesV7InherentData,
|
|
53
53
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
54
54
|
PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
55
55
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
56
56
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
PolkadotPrimitivesV7PvfCheckStatement,
|
|
58
|
+
PolkadotPrimitivesV7ValidatorAppSignature,
|
|
59
59
|
PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
60
|
-
|
|
60
|
+
PolkadotPrimitivesV7SlashingDisputeProof,
|
|
61
61
|
PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
|
|
62
62
|
SpRuntimeMultiSigner,
|
|
63
63
|
PalletBrokerCoretimeInterfaceCoreAssignment,
|
|
@@ -693,7 +693,7 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
693
693
|
*
|
|
694
694
|
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
|
695
695
|
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
|
696
|
-
*
|
|
696
|
+
* possibility of churn).
|
|
697
697
|
*
|
|
698
698
|
* @param {Array<AccountId32Like>} who
|
|
699
699
|
**/
|
|
@@ -5680,7 +5680,7 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
5680
5680
|
*
|
|
5681
5681
|
* This will waive the transaction fee if at least all but 10% of the accounts needed to
|
|
5682
5682
|
* be upgraded. (We let some not have to be upgraded just in order to allow for the
|
|
5683
|
-
*
|
|
5683
|
+
* possibility of churn).
|
|
5684
5684
|
*
|
|
5685
5685
|
* @param {Array<AccountId32Like>} who
|
|
5686
5686
|
**/
|
|
@@ -5840,7 +5840,7 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
5840
5840
|
/**
|
|
5841
5841
|
* Set the number of coretime execution cores.
|
|
5842
5842
|
*
|
|
5843
|
-
*
|
|
5843
|
+
* NOTE: that this configuration is managed by the coretime chain. Only manually change
|
|
5844
5844
|
* this, if you really know what you are doing!
|
|
5845
5845
|
*
|
|
5846
5846
|
* @param {number} new_
|
|
@@ -6315,14 +6315,14 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
6315
6315
|
/**
|
|
6316
6316
|
* Set the asynchronous backing parameters.
|
|
6317
6317
|
*
|
|
6318
|
-
* @param {
|
|
6318
|
+
* @param {PolkadotPrimitivesV7AsyncBackingAsyncBackingParams} new_
|
|
6319
6319
|
**/
|
|
6320
6320
|
setAsyncBackingParams: GenericTxCall<
|
|
6321
|
-
(new_:
|
|
6321
|
+
(new_: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams) => ChainSubmittableExtrinsic<{
|
|
6322
6322
|
pallet: 'Configuration';
|
|
6323
6323
|
palletCall: {
|
|
6324
6324
|
name: 'SetAsyncBackingParams';
|
|
6325
|
-
params: { new:
|
|
6325
|
+
params: { new: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams };
|
|
6326
6326
|
};
|
|
6327
6327
|
}>
|
|
6328
6328
|
>;
|
|
@@ -6330,14 +6330,14 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
6330
6330
|
/**
|
|
6331
6331
|
* Set PVF executor parameters.
|
|
6332
6332
|
*
|
|
6333
|
-
* @param {
|
|
6333
|
+
* @param {PolkadotPrimitivesV7ExecutorParams} new_
|
|
6334
6334
|
**/
|
|
6335
6335
|
setExecutorParams: GenericTxCall<
|
|
6336
|
-
(new_:
|
|
6336
|
+
(new_: PolkadotPrimitivesV7ExecutorParams) => ChainSubmittableExtrinsic<{
|
|
6337
6337
|
pallet: 'Configuration';
|
|
6338
6338
|
palletCall: {
|
|
6339
6339
|
name: 'SetExecutorParams';
|
|
6340
|
-
params: { new:
|
|
6340
|
+
params: { new: PolkadotPrimitivesV7ExecutorParams };
|
|
6341
6341
|
};
|
|
6342
6342
|
}>
|
|
6343
6343
|
>;
|
|
@@ -6454,14 +6454,14 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
6454
6454
|
/**
|
|
6455
6455
|
* Set approval-voting-params.
|
|
6456
6456
|
*
|
|
6457
|
-
* @param {
|
|
6457
|
+
* @param {PolkadotPrimitivesV7ApprovalVotingParams} new_
|
|
6458
6458
|
**/
|
|
6459
6459
|
setApprovalVotingParams: GenericTxCall<
|
|
6460
|
-
(new_:
|
|
6460
|
+
(new_: PolkadotPrimitivesV7ApprovalVotingParams) => ChainSubmittableExtrinsic<{
|
|
6461
6461
|
pallet: 'Configuration';
|
|
6462
6462
|
palletCall: {
|
|
6463
6463
|
name: 'SetApprovalVotingParams';
|
|
6464
|
-
params: { new:
|
|
6464
|
+
params: { new: PolkadotPrimitivesV7ApprovalVotingParams };
|
|
6465
6465
|
};
|
|
6466
6466
|
}>
|
|
6467
6467
|
>;
|
|
@@ -6511,14 +6511,14 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
6511
6511
|
/**
|
|
6512
6512
|
* Enter the paras inherent. This will process bitfields and backed candidates.
|
|
6513
6513
|
*
|
|
6514
|
-
* @param {
|
|
6514
|
+
* @param {PolkadotPrimitivesV7InherentData} data
|
|
6515
6515
|
**/
|
|
6516
6516
|
enter: GenericTxCall<
|
|
6517
|
-
(data:
|
|
6517
|
+
(data: PolkadotPrimitivesV7InherentData) => ChainSubmittableExtrinsic<{
|
|
6518
6518
|
pallet: 'ParaInherent';
|
|
6519
6519
|
palletCall: {
|
|
6520
6520
|
name: 'Enter';
|
|
6521
|
-
params: { data:
|
|
6521
|
+
params: { data: PolkadotPrimitivesV7InherentData };
|
|
6522
6522
|
};
|
|
6523
6523
|
}>
|
|
6524
6524
|
>;
|
|
@@ -6691,18 +6691,18 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
6691
6691
|
* Includes a statement for a PVF pre-checking vote. Potentially, finalizes the vote and
|
|
6692
6692
|
* enacts the results if that was the last vote before achieving the supermajority.
|
|
6693
6693
|
*
|
|
6694
|
-
* @param {
|
|
6695
|
-
* @param {
|
|
6694
|
+
* @param {PolkadotPrimitivesV7PvfCheckStatement} stmt
|
|
6695
|
+
* @param {PolkadotPrimitivesV7ValidatorAppSignature} signature
|
|
6696
6696
|
**/
|
|
6697
6697
|
includePvfCheckStatement: GenericTxCall<
|
|
6698
6698
|
(
|
|
6699
|
-
stmt:
|
|
6700
|
-
signature:
|
|
6699
|
+
stmt: PolkadotPrimitivesV7PvfCheckStatement,
|
|
6700
|
+
signature: PolkadotPrimitivesV7ValidatorAppSignature,
|
|
6701
6701
|
) => ChainSubmittableExtrinsic<{
|
|
6702
6702
|
pallet: 'Paras';
|
|
6703
6703
|
palletCall: {
|
|
6704
6704
|
name: 'IncludePvfCheckStatement';
|
|
6705
|
-
params: { stmt:
|
|
6705
|
+
params: { stmt: PolkadotPrimitivesV7PvfCheckStatement; signature: PolkadotPrimitivesV7ValidatorAppSignature };
|
|
6706
6706
|
};
|
|
6707
6707
|
}>
|
|
6708
6708
|
>;
|
|
@@ -7055,18 +7055,18 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
7055
7055
|
parasSlashing: {
|
|
7056
7056
|
/**
|
|
7057
7057
|
*
|
|
7058
|
-
* @param {
|
|
7058
|
+
* @param {PolkadotPrimitivesV7SlashingDisputeProof} disputeProof
|
|
7059
7059
|
* @param {SpSessionMembershipProof} keyOwnerProof
|
|
7060
7060
|
**/
|
|
7061
7061
|
reportDisputeLostUnsigned: GenericTxCall<
|
|
7062
7062
|
(
|
|
7063
|
-
disputeProof:
|
|
7063
|
+
disputeProof: PolkadotPrimitivesV7SlashingDisputeProof,
|
|
7064
7064
|
keyOwnerProof: SpSessionMembershipProof,
|
|
7065
7065
|
) => ChainSubmittableExtrinsic<{
|
|
7066
7066
|
pallet: 'ParasSlashing';
|
|
7067
7067
|
palletCall: {
|
|
7068
7068
|
name: 'ReportDisputeLostUnsigned';
|
|
7069
|
-
params: { disputeProof:
|
|
7069
|
+
params: { disputeProof: PolkadotPrimitivesV7SlashingDisputeProof; keyOwnerProof: SpSessionMembershipProof };
|
|
7070
7070
|
};
|
|
7071
7071
|
}>
|
|
7072
7072
|
>;
|
|
@@ -7422,6 +7422,13 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
7422
7422
|
/**
|
|
7423
7423
|
* Schedule a parachain upgrade.
|
|
7424
7424
|
*
|
|
7425
|
+
* This will kick off a check of `new_code` by all validators. After the majority of the
|
|
7426
|
+
* validators have reported on the validity of the code, the code will either be enacted
|
|
7427
|
+
* or the upgrade will be rejected. If the code will be enacted, the current code of the
|
|
7428
|
+
* parachain will be overwritten directly. This means that any PoV will be checked by this
|
|
7429
|
+
* new code. The parachain itself will not be informed explictely that the validation code
|
|
7430
|
+
* has changed.
|
|
7431
|
+
*
|
|
7425
7432
|
* Can be called by Root, the parachain, or the parachain manager if the parachain is
|
|
7426
7433
|
* unlocked.
|
|
7427
7434
|
*
|
|
@@ -7953,6 +7960,7 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
7953
7960
|
**/
|
|
7954
7961
|
xcmPallet: {
|
|
7955
7962
|
/**
|
|
7963
|
+
* WARNING: DEPRECATED. `send` will be removed after June 2024. Use `send_blob` instead.
|
|
7956
7964
|
*
|
|
7957
7965
|
* @param {XcmVersionedLocation} dest
|
|
7958
7966
|
* @param {XcmVersionedXcm} message
|
|
@@ -8082,6 +8090,9 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
8082
8090
|
* the maximum amount of weight that the message could take to be executed, then no
|
|
8083
8091
|
* execution attempt will be made.
|
|
8084
8092
|
*
|
|
8093
|
+
* WARNING: DEPRECATED. `execute` will be removed after June 2024. Use `execute_blob`
|
|
8094
|
+
* instead.
|
|
8095
|
+
*
|
|
8085
8096
|
* @param {XcmVersionedXcm} message
|
|
8086
8097
|
* @param {SpWeightsWeightV2Weight} maxWeight
|
|
8087
8098
|
**/
|
|
@@ -8196,7 +8207,7 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
8196
8207
|
*
|
|
8197
8208
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
8198
8209
|
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
8199
|
-
* is needed than `weight_limit`, then the operation will fail and the assets
|
|
8210
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
8200
8211
|
* at risk.
|
|
8201
8212
|
*
|
|
8202
8213
|
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
@@ -8244,7 +8255,7 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
8244
8255
|
*
|
|
8245
8256
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
8246
8257
|
* index `fee_asset_item`, up to enough to pay for `weight_limit` of weight. If more weight
|
|
8247
|
-
* is needed than `weight_limit`, then the operation will fail and the assets
|
|
8258
|
+
* is needed than `weight_limit`, then the operation will fail and the sent assets may be
|
|
8248
8259
|
* at risk.
|
|
8249
8260
|
*
|
|
8250
8261
|
* - `origin`: Must be capable of withdrawing the `assets` and executing XCM.
|
|
@@ -8312,7 +8323,7 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
8312
8323
|
* Fee payment on the destination side is made from the asset in the `assets` vector of
|
|
8313
8324
|
* index `fee_asset_item` (hence referred to as `fees`), up to enough to pay for
|
|
8314
8325
|
* `weight_limit` of weight. If more weight is needed than `weight_limit`, then the
|
|
8315
|
-
* operation will fail and the assets
|
|
8326
|
+
* operation will fail and the sent assets may be at risk.
|
|
8316
8327
|
*
|
|
8317
8328
|
* `assets` (excluding `fees`) must have same reserve location or otherwise be teleportable
|
|
8318
8329
|
* to `dest`, no limitations imposed on `fees`.
|
|
@@ -8392,6 +8403,58 @@ export interface ChainTx extends GenericChainTx<TxCall> {
|
|
|
8392
8403
|
}>
|
|
8393
8404
|
>;
|
|
8394
8405
|
|
|
8406
|
+
/**
|
|
8407
|
+
* Execute an XCM from a local, signed, origin.
|
|
8408
|
+
*
|
|
8409
|
+
* An event is deposited indicating whether the message could be executed completely
|
|
8410
|
+
* or only partially.
|
|
8411
|
+
*
|
|
8412
|
+
* No more than `max_weight` will be used in its attempted execution. If this is less than
|
|
8413
|
+
* the maximum amount of weight that the message could take to be executed, then no
|
|
8414
|
+
* execution attempt will be made.
|
|
8415
|
+
*
|
|
8416
|
+
* The message is passed in encoded. It needs to be decodable as a [`VersionedXcm`].
|
|
8417
|
+
*
|
|
8418
|
+
* @param {BytesLike} encodedMessage
|
|
8419
|
+
* @param {SpWeightsWeightV2Weight} maxWeight
|
|
8420
|
+
**/
|
|
8421
|
+
executeBlob: GenericTxCall<
|
|
8422
|
+
(
|
|
8423
|
+
encodedMessage: BytesLike,
|
|
8424
|
+
maxWeight: SpWeightsWeightV2Weight,
|
|
8425
|
+
) => ChainSubmittableExtrinsic<{
|
|
8426
|
+
pallet: 'XcmPallet';
|
|
8427
|
+
palletCall: {
|
|
8428
|
+
name: 'ExecuteBlob';
|
|
8429
|
+
params: { encodedMessage: BytesLike; maxWeight: SpWeightsWeightV2Weight };
|
|
8430
|
+
};
|
|
8431
|
+
}>
|
|
8432
|
+
>;
|
|
8433
|
+
|
|
8434
|
+
/**
|
|
8435
|
+
* Send an XCM from a local, signed, origin.
|
|
8436
|
+
*
|
|
8437
|
+
* The destination, `dest`, will receive this message with a `DescendOrigin` instruction
|
|
8438
|
+
* that makes the origin of the message be the origin on this system.
|
|
8439
|
+
*
|
|
8440
|
+
* The message is passed in encoded. It needs to be decodable as a [`VersionedXcm`].
|
|
8441
|
+
*
|
|
8442
|
+
* @param {XcmVersionedLocation} dest
|
|
8443
|
+
* @param {BytesLike} encodedMessage
|
|
8444
|
+
**/
|
|
8445
|
+
sendBlob: GenericTxCall<
|
|
8446
|
+
(
|
|
8447
|
+
dest: XcmVersionedLocation,
|
|
8448
|
+
encodedMessage: BytesLike,
|
|
8449
|
+
) => ChainSubmittableExtrinsic<{
|
|
8450
|
+
pallet: 'XcmPallet';
|
|
8451
|
+
palletCall: {
|
|
8452
|
+
name: 'SendBlob';
|
|
8453
|
+
params: { dest: XcmVersionedLocation; encodedMessage: BytesLike };
|
|
8454
|
+
};
|
|
8455
|
+
}>
|
|
8456
|
+
>;
|
|
8457
|
+
|
|
8395
8458
|
/**
|
|
8396
8459
|
* Generic pallet tx call
|
|
8397
8460
|
**/
|