@dedot/chaintypes 0.0.1-alpha.126 → 0.0.1-alpha.127
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/package.json +2 -2
- package/rococo/events.d.ts +4 -4
- package/rococo/runtime.d.ts +22 -25
- package/rococo/tx.d.ts +2 -4
- package/rococo/types.d.ts +19 -20
- package/rococoAssetHub/consts.d.ts +21 -0
- package/rococoAssetHub/errors.d.ts +10 -0
- package/rococoAssetHub/runtime.d.ts +13 -10
- package/rococoAssetHub/types.d.ts +31 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.127",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@coongcrafts.io>",
|
|
6
6
|
"main": "",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"directory": "dist"
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "beb1efe52ee1ffd92ff6d81f03d22e9afb8ac7ad",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
package/rococo/events.d.ts
CHANGED
|
@@ -2606,19 +2606,19 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2606
2606
|
**/
|
|
2607
2607
|
onDemandAssignmentProvider: {
|
|
2608
2608
|
/**
|
|
2609
|
-
* An order was placed at some spot price amount
|
|
2609
|
+
* An order was placed at some spot price amount by orderer ordered_by
|
|
2610
2610
|
**/
|
|
2611
2611
|
OnDemandOrderPlaced: GenericPalletEvent<
|
|
2612
2612
|
Rv,
|
|
2613
2613
|
'OnDemandAssignmentProvider',
|
|
2614
2614
|
'OnDemandOrderPlaced',
|
|
2615
|
-
{ paraId: PolkadotParachainPrimitivesPrimitivesId; spotPrice: bigint }
|
|
2615
|
+
{ paraId: PolkadotParachainPrimitivesPrimitivesId; spotPrice: bigint; orderedBy: AccountId32 }
|
|
2616
2616
|
>;
|
|
2617
2617
|
|
|
2618
2618
|
/**
|
|
2619
|
-
* The value of the spot
|
|
2619
|
+
* The value of the spot price has likely changed
|
|
2620
2620
|
**/
|
|
2621
|
-
|
|
2621
|
+
SpotPriceSet: GenericPalletEvent<Rv, 'OnDemandAssignmentProvider', 'SpotPriceSet', { spotPrice: bigint }>;
|
|
2622
2622
|
|
|
2623
2623
|
/**
|
|
2624
2624
|
* Generic pallet event
|
package/rococo/runtime.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import type {
|
|
|
5
5
|
RuntimeVersion,
|
|
6
6
|
Header,
|
|
7
7
|
Result,
|
|
8
|
-
UncheckedExtrinsicLike,
|
|
9
8
|
DispatchError,
|
|
9
|
+
UncheckedExtrinsicLike,
|
|
10
10
|
UncheckedExtrinsic,
|
|
11
11
|
H256,
|
|
12
12
|
BitSequence,
|
|
@@ -23,8 +23,10 @@ import type {
|
|
|
23
23
|
XcmVersionedXcm,
|
|
24
24
|
XcmVersionedAssets,
|
|
25
25
|
XcmVersionedLocation,
|
|
26
|
-
|
|
26
|
+
XcmFeePaymentRuntimeApiDryRunCallDryRunEffects,
|
|
27
27
|
XcmFeePaymentRuntimeApiDryRunError,
|
|
28
|
+
RococoRuntimeOriginCaller,
|
|
29
|
+
RococoRuntimeRuntimeCallLike,
|
|
28
30
|
XcmFeePaymentRuntimeApiDryRunXcmDryRunEffects,
|
|
29
31
|
SpCoreOpaqueMetadata,
|
|
30
32
|
SpRuntimeTransactionValidityTransactionValidityError,
|
|
@@ -62,14 +64,13 @@ import type {
|
|
|
62
64
|
PolkadotPrimitivesV7CoreIndex,
|
|
63
65
|
SpConsensusBeefyValidatorSet,
|
|
64
66
|
SpConsensusBeefyDoubleVotingProof,
|
|
65
|
-
|
|
67
|
+
SpRuntimeOpaqueValue,
|
|
66
68
|
SpConsensusBeefyEcdsaCryptoPublic,
|
|
67
69
|
SpMmrPrimitivesError,
|
|
68
70
|
SpMmrPrimitivesEncodableOpaqueLeaf,
|
|
69
71
|
SpMmrPrimitivesLeafProof,
|
|
70
72
|
SpConsensusGrandpaAppPublic,
|
|
71
73
|
SpConsensusGrandpaEquivocationProof,
|
|
72
|
-
SpConsensusGrandpaOpaqueKeyOwnershipProof,
|
|
73
74
|
SpConsensusBabeBabeConfiguration,
|
|
74
75
|
SpConsensusSlotsSlot,
|
|
75
76
|
SpConsensusBabeEpoch,
|
|
@@ -198,26 +199,28 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
198
199
|
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
199
200
|
};
|
|
200
201
|
/**
|
|
201
|
-
* @runtimeapi:
|
|
202
|
+
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
202
203
|
**/
|
|
203
|
-
|
|
204
|
+
dryRunApi: {
|
|
204
205
|
/**
|
|
205
|
-
* Dry run
|
|
206
|
+
* Dry run call.
|
|
206
207
|
*
|
|
207
|
-
* @callname:
|
|
208
|
-
* @param {
|
|
208
|
+
* @callname: DryRunApi_dry_run_call
|
|
209
|
+
* @param {RococoRuntimeOriginCaller} origin
|
|
210
|
+
* @param {RococoRuntimeRuntimeCallLike} call
|
|
209
211
|
**/
|
|
210
|
-
|
|
212
|
+
dryRunCall: GenericRuntimeApiMethod<
|
|
211
213
|
Rv,
|
|
212
214
|
(
|
|
213
|
-
|
|
214
|
-
|
|
215
|
+
origin: RococoRuntimeOriginCaller,
|
|
216
|
+
call: RococoRuntimeRuntimeCallLike,
|
|
217
|
+
) => Promise<Result<XcmFeePaymentRuntimeApiDryRunCallDryRunEffects, XcmFeePaymentRuntimeApiDryRunError>>
|
|
215
218
|
>;
|
|
216
219
|
|
|
217
220
|
/**
|
|
218
221
|
* Dry run XCM program
|
|
219
222
|
*
|
|
220
|
-
* @callname:
|
|
223
|
+
* @callname: DryRunApi_dry_run_xcm
|
|
221
224
|
* @param {XcmVersionedLocation} origin_location
|
|
222
225
|
* @param {XcmVersionedXcm} xcm
|
|
223
226
|
**/
|
|
@@ -780,13 +783,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
780
783
|
*
|
|
781
784
|
* @callname: BeefyApi_submit_report_equivocation_unsigned_extrinsic
|
|
782
785
|
* @param {SpConsensusBeefyDoubleVotingProof} equivocation_proof
|
|
783
|
-
* @param {
|
|
786
|
+
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
784
787
|
**/
|
|
785
788
|
submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
786
789
|
Rv,
|
|
787
790
|
(
|
|
788
791
|
equivocationProof: SpConsensusBeefyDoubleVotingProof,
|
|
789
|
-
keyOwnerProof:
|
|
792
|
+
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
790
793
|
) => Promise<[] | undefined>
|
|
791
794
|
>;
|
|
792
795
|
|
|
@@ -809,10 +812,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
809
812
|
**/
|
|
810
813
|
generateKeyOwnershipProof: GenericRuntimeApiMethod<
|
|
811
814
|
Rv,
|
|
812
|
-
(
|
|
813
|
-
setId: bigint,
|
|
814
|
-
authorityId: SpConsensusBeefyEcdsaCryptoPublic,
|
|
815
|
-
) => Promise<SpConsensusBeefyOpaqueKeyOwnershipProof | undefined>
|
|
815
|
+
(setId: bigint, authorityId: SpConsensusBeefyEcdsaCryptoPublic) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
816
816
|
>;
|
|
817
817
|
|
|
818
818
|
/**
|
|
@@ -929,13 +929,13 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
929
929
|
*
|
|
930
930
|
* @callname: GrandpaApi_submit_report_equivocation_unsigned_extrinsic
|
|
931
931
|
* @param {SpConsensusGrandpaEquivocationProof} equivocation_proof
|
|
932
|
-
* @param {
|
|
932
|
+
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
933
933
|
**/
|
|
934
934
|
submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
935
935
|
Rv,
|
|
936
936
|
(
|
|
937
937
|
equivocationProof: SpConsensusGrandpaEquivocationProof,
|
|
938
|
-
keyOwnerProof:
|
|
938
|
+
keyOwnerProof: SpRuntimeOpaqueValue,
|
|
939
939
|
) => Promise<[] | undefined>
|
|
940
940
|
>;
|
|
941
941
|
|
|
@@ -958,10 +958,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
958
958
|
**/
|
|
959
959
|
generateKeyOwnershipProof: GenericRuntimeApiMethod<
|
|
960
960
|
Rv,
|
|
961
|
-
(
|
|
962
|
-
setId: bigint,
|
|
963
|
-
authorityId: SpConsensusGrandpaAppPublic,
|
|
964
|
-
) => Promise<SpConsensusGrandpaOpaqueKeyOwnershipProof | undefined>
|
|
961
|
+
(setId: bigint, authorityId: SpConsensusGrandpaAppPublic) => Promise<SpRuntimeOpaqueValue | undefined>
|
|
965
962
|
>;
|
|
966
963
|
|
|
967
964
|
/**
|
package/rococo/tx.d.ts
CHANGED
|
@@ -8408,12 +8408,11 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8408
8408
|
*
|
|
8409
8409
|
* Errors:
|
|
8410
8410
|
* - `InsufficientBalance`: from the Currency implementation
|
|
8411
|
-
* - `InvalidParaId`
|
|
8412
8411
|
* - `QueueFull`
|
|
8413
8412
|
* - `SpotPriceHigherThanMaxAmount`
|
|
8414
8413
|
*
|
|
8415
8414
|
* Events:
|
|
8416
|
-
* - `
|
|
8415
|
+
* - `OnDemandOrderPlaced`
|
|
8417
8416
|
*
|
|
8418
8417
|
* @param {bigint} maxAmount
|
|
8419
8418
|
* @param {PolkadotParachainPrimitivesPrimitivesId} paraId
|
|
@@ -8446,12 +8445,11 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8446
8445
|
*
|
|
8447
8446
|
* Errors:
|
|
8448
8447
|
* - `InsufficientBalance`: from the Currency implementation
|
|
8449
|
-
* - `InvalidParaId`
|
|
8450
8448
|
* - `QueueFull`
|
|
8451
8449
|
* - `SpotPriceHigherThanMaxAmount`
|
|
8452
8450
|
*
|
|
8453
8451
|
* Events:
|
|
8454
|
-
* - `
|
|
8452
|
+
* - `OnDemandOrderPlaced`
|
|
8455
8453
|
*
|
|
8456
8454
|
* @param {bigint} maxAmount
|
|
8457
8455
|
* @param {PolkadotParachainPrimitivesPrimitivesId} paraId
|
package/rococo/types.d.ts
CHANGED
|
@@ -7654,12 +7654,11 @@ export type PolkadotRuntimeParachainsAssignerOnDemandPalletCall =
|
|
|
7654
7654
|
*
|
|
7655
7655
|
* Errors:
|
|
7656
7656
|
* - `InsufficientBalance`: from the Currency implementation
|
|
7657
|
-
* - `InvalidParaId`
|
|
7658
7657
|
* - `QueueFull`
|
|
7659
7658
|
* - `SpotPriceHigherThanMaxAmount`
|
|
7660
7659
|
*
|
|
7661
7660
|
* Events:
|
|
7662
|
-
* - `
|
|
7661
|
+
* - `OnDemandOrderPlaced`
|
|
7663
7662
|
**/
|
|
7664
7663
|
| { name: 'PlaceOrderAllowDeath'; params: { maxAmount: bigint; paraId: PolkadotParachainPrimitivesPrimitivesId } }
|
|
7665
7664
|
/**
|
|
@@ -7673,12 +7672,11 @@ export type PolkadotRuntimeParachainsAssignerOnDemandPalletCall =
|
|
|
7673
7672
|
*
|
|
7674
7673
|
* Errors:
|
|
7675
7674
|
* - `InsufficientBalance`: from the Currency implementation
|
|
7676
|
-
* - `InvalidParaId`
|
|
7677
7675
|
* - `QueueFull`
|
|
7678
7676
|
* - `SpotPriceHigherThanMaxAmount`
|
|
7679
7677
|
*
|
|
7680
7678
|
* Events:
|
|
7681
|
-
* - `
|
|
7679
|
+
* - `OnDemandOrderPlaced`
|
|
7682
7680
|
**/
|
|
7683
7681
|
| { name: 'PlaceOrderKeepAlive'; params: { maxAmount: bigint; paraId: PolkadotParachainPrimitivesPrimitivesId } };
|
|
7684
7682
|
|
|
@@ -7694,12 +7692,11 @@ export type PolkadotRuntimeParachainsAssignerOnDemandPalletCallLike =
|
|
|
7694
7692
|
*
|
|
7695
7693
|
* Errors:
|
|
7696
7694
|
* - `InsufficientBalance`: from the Currency implementation
|
|
7697
|
-
* - `InvalidParaId`
|
|
7698
7695
|
* - `QueueFull`
|
|
7699
7696
|
* - `SpotPriceHigherThanMaxAmount`
|
|
7700
7697
|
*
|
|
7701
7698
|
* Events:
|
|
7702
|
-
* - `
|
|
7699
|
+
* - `OnDemandOrderPlaced`
|
|
7703
7700
|
**/
|
|
7704
7701
|
| { name: 'PlaceOrderAllowDeath'; params: { maxAmount: bigint; paraId: PolkadotParachainPrimitivesPrimitivesId } }
|
|
7705
7702
|
/**
|
|
@@ -7713,12 +7710,11 @@ export type PolkadotRuntimeParachainsAssignerOnDemandPalletCallLike =
|
|
|
7713
7710
|
*
|
|
7714
7711
|
* Errors:
|
|
7715
7712
|
* - `InsufficientBalance`: from the Currency implementation
|
|
7716
|
-
* - `InvalidParaId`
|
|
7717
7713
|
* - `QueueFull`
|
|
7718
7714
|
* - `SpotPriceHigherThanMaxAmount`
|
|
7719
7715
|
*
|
|
7720
7716
|
* Events:
|
|
7721
|
-
* - `
|
|
7717
|
+
* - `OnDemandOrderPlaced`
|
|
7722
7718
|
**/
|
|
7723
7719
|
| { name: 'PlaceOrderKeepAlive'; params: { maxAmount: bigint; paraId: PolkadotParachainPrimitivesPrimitivesId } };
|
|
7724
7720
|
|
|
@@ -9248,7 +9244,7 @@ export type XcmV3Instruction =
|
|
|
9248
9244
|
}
|
|
9249
9245
|
| {
|
|
9250
9246
|
tag: 'Transact';
|
|
9251
|
-
value: { originKind:
|
|
9247
|
+
value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded };
|
|
9252
9248
|
}
|
|
9253
9249
|
| { tag: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
|
|
9254
9250
|
| { tag: 'HrmpChannelAccepted'; value: { recipient: number } }
|
|
@@ -9403,6 +9399,8 @@ export type XcmV3MaybeErrorCode =
|
|
|
9403
9399
|
| { tag: 'Error'; value: Bytes }
|
|
9404
9400
|
| { tag: 'TruncatedError'; value: Bytes };
|
|
9405
9401
|
|
|
9402
|
+
export type XcmV3OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
|
|
9403
|
+
|
|
9406
9404
|
export type XcmV3QueryResponseInfo = {
|
|
9407
9405
|
destination: StagingXcmV3MultilocationMultiLocation;
|
|
9408
9406
|
queryId: bigint;
|
|
@@ -9445,7 +9443,7 @@ export type StagingXcmV4Instruction =
|
|
|
9445
9443
|
}
|
|
9446
9444
|
| {
|
|
9447
9445
|
tag: 'Transact';
|
|
9448
|
-
value: { originKind:
|
|
9446
|
+
value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded };
|
|
9449
9447
|
}
|
|
9450
9448
|
| { tag: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
|
|
9451
9449
|
| { tag: 'HrmpChannelAccepted'; value: { recipient: number } }
|
|
@@ -11386,13 +11384,16 @@ export type FrameSupportMessagesProcessMessageError =
|
|
|
11386
11384
|
**/
|
|
11387
11385
|
export type PolkadotRuntimeParachainsAssignerOnDemandPalletEvent =
|
|
11388
11386
|
/**
|
|
11389
|
-
* An order was placed at some spot price amount
|
|
11387
|
+
* An order was placed at some spot price amount by orderer ordered_by
|
|
11390
11388
|
**/
|
|
11391
|
-
| {
|
|
11389
|
+
| {
|
|
11390
|
+
name: 'OnDemandOrderPlaced';
|
|
11391
|
+
data: { paraId: PolkadotParachainPrimitivesPrimitivesId; spotPrice: bigint; orderedBy: AccountId32 };
|
|
11392
|
+
}
|
|
11392
11393
|
/**
|
|
11393
|
-
* The value of the spot
|
|
11394
|
+
* The value of the spot price has likely changed
|
|
11394
11395
|
**/
|
|
11395
|
-
| { name: '
|
|
11396
|
+
| { name: 'SpotPriceSet'; data: { spotPrice: bigint } };
|
|
11396
11397
|
|
|
11397
11398
|
/**
|
|
11398
11399
|
* The `Event` enum of this pallet
|
|
@@ -14568,14 +14569,14 @@ export type XcmFeePaymentRuntimeApiFeesError =
|
|
|
14568
14569
|
| 'AssetNotFound'
|
|
14569
14570
|
| 'Unroutable';
|
|
14570
14571
|
|
|
14571
|
-
export type
|
|
14572
|
-
executionResult: Result<
|
|
14572
|
+
export type XcmFeePaymentRuntimeApiDryRunCallDryRunEffects = {
|
|
14573
|
+
executionResult: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo>;
|
|
14573
14574
|
emittedEvents: Array<RococoRuntimeRuntimeEvent>;
|
|
14574
14575
|
localXcm?: XcmVersionedXcm | undefined;
|
|
14575
14576
|
forwardedXcms: Array<[XcmVersionedLocation, Array<XcmVersionedXcm>]>;
|
|
14576
14577
|
};
|
|
14577
14578
|
|
|
14578
|
-
export type XcmFeePaymentRuntimeApiDryRunError = 'Unimplemented' | 'VersionedConversionFailed'
|
|
14579
|
+
export type XcmFeePaymentRuntimeApiDryRunError = 'Unimplemented' | 'VersionedConversionFailed';
|
|
14579
14580
|
|
|
14580
14581
|
export type XcmFeePaymentRuntimeApiDryRunXcmDryRunEffects = {
|
|
14581
14582
|
executionResult: StagingXcmV4TraitsOutcome;
|
|
@@ -14728,7 +14729,7 @@ export type PolkadotPrimitivesV7AsyncBackingCandidatePendingAvailability = {
|
|
|
14728
14729
|
|
|
14729
14730
|
export type SpConsensusBeefyValidatorSet = { validators: Array<SpConsensusBeefyEcdsaCryptoPublic>; id: bigint };
|
|
14730
14731
|
|
|
14731
|
-
export type
|
|
14732
|
+
export type SpRuntimeOpaqueValue = Bytes;
|
|
14732
14733
|
|
|
14733
14734
|
export type SpMmrPrimitivesError =
|
|
14734
14735
|
| 'InvalidNumericOp'
|
|
@@ -14746,8 +14747,6 @@ export type SpMmrPrimitivesEncodableOpaqueLeaf = Bytes;
|
|
|
14746
14747
|
|
|
14747
14748
|
export type SpMmrPrimitivesLeafProof = { leafIndices: Array<bigint>; leafCount: bigint; items: Array<H256> };
|
|
14748
14749
|
|
|
14749
|
-
export type SpConsensusGrandpaOpaqueKeyOwnershipProof = Bytes;
|
|
14750
|
-
|
|
14751
14750
|
export type SpConsensusBabeBabeConfiguration = {
|
|
14752
14751
|
slotDuration: bigint;
|
|
14753
14752
|
epochLength: bigint;
|
|
@@ -249,6 +249,27 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
249
249
|
**/
|
|
250
250
|
maxInboundSuspended: number;
|
|
251
251
|
|
|
252
|
+
/**
|
|
253
|
+
* Maximal number of outbound XCMP channels that can have messages queued at the same time.
|
|
254
|
+
*
|
|
255
|
+
* If this is reached, then no further messages can be sent to channels that do not yet
|
|
256
|
+
* have a message queued. This should be set to the expected maximum of outbound channels
|
|
257
|
+
* which is determined by [`Self::ChannelInfo`]. It is important to set this large enough,
|
|
258
|
+
* since otherwise the congestion control protocol will not work as intended and messages
|
|
259
|
+
* may be dropped. This value increases the PoV and should therefore not be picked too
|
|
260
|
+
* high. Governance needs to pay attention to not open more channels than this value.
|
|
261
|
+
**/
|
|
262
|
+
maxActiveOutboundChannels: number;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* The maximal page size for HRMP message pages.
|
|
266
|
+
*
|
|
267
|
+
* A lower limit can be set dynamically, but this is the hard-limit for the PoV worst case
|
|
268
|
+
* benchmarking. The limit for the size of a message is slightly below this, since some
|
|
269
|
+
* overhead is incurred for encoding the format.
|
|
270
|
+
**/
|
|
271
|
+
maxPageSize: number;
|
|
272
|
+
|
|
252
273
|
/**
|
|
253
274
|
* Generic pallet constant
|
|
254
275
|
**/
|
|
@@ -327,6 +327,16 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
327
327
|
**/
|
|
328
328
|
AlreadyResumed: GenericPalletError<Rv>;
|
|
329
329
|
|
|
330
|
+
/**
|
|
331
|
+
* There are too many active outbound channels.
|
|
332
|
+
**/
|
|
333
|
+
TooManyActiveOutboundChannels: GenericPalletError<Rv>;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* The message is too big.
|
|
337
|
+
**/
|
|
338
|
+
TooBig: GenericPalletError<Rv>;
|
|
339
|
+
|
|
330
340
|
/**
|
|
331
341
|
* Generic pallet error
|
|
332
342
|
**/
|
|
@@ -37,8 +37,9 @@ import type {
|
|
|
37
37
|
XcmFeePaymentRuntimeApiFeesError,
|
|
38
38
|
XcmVersionedXcm,
|
|
39
39
|
XcmVersionedLocation,
|
|
40
|
-
|
|
40
|
+
XcmFeePaymentRuntimeApiDryRunCallDryRunEffects,
|
|
41
41
|
XcmFeePaymentRuntimeApiDryRunError,
|
|
42
|
+
AssetHubRococoRuntimeOriginCaller,
|
|
42
43
|
XcmFeePaymentRuntimeApiDryRunXcmDryRunEffects,
|
|
43
44
|
CumulusPrimitivesCoreCollationInfo,
|
|
44
45
|
} from './types';
|
|
@@ -589,26 +590,28 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
589
590
|
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
590
591
|
};
|
|
591
592
|
/**
|
|
592
|
-
* @runtimeapi:
|
|
593
|
+
* @runtimeapi: DryRunApi - 0x91b1c8b16328eb92
|
|
593
594
|
**/
|
|
594
|
-
|
|
595
|
+
dryRunApi: {
|
|
595
596
|
/**
|
|
596
|
-
* Dry run
|
|
597
|
+
* Dry run call.
|
|
597
598
|
*
|
|
598
|
-
* @callname:
|
|
599
|
-
* @param {
|
|
599
|
+
* @callname: DryRunApi_dry_run_call
|
|
600
|
+
* @param {AssetHubRococoRuntimeOriginCaller} origin
|
|
601
|
+
* @param {AssetHubRococoRuntimeRuntimeCallLike} call
|
|
600
602
|
**/
|
|
601
|
-
|
|
603
|
+
dryRunCall: GenericRuntimeApiMethod<
|
|
602
604
|
Rv,
|
|
603
605
|
(
|
|
604
|
-
|
|
605
|
-
|
|
606
|
+
origin: AssetHubRococoRuntimeOriginCaller,
|
|
607
|
+
call: AssetHubRococoRuntimeRuntimeCallLike,
|
|
608
|
+
) => Promise<Result<XcmFeePaymentRuntimeApiDryRunCallDryRunEffects, XcmFeePaymentRuntimeApiDryRunError>>
|
|
606
609
|
>;
|
|
607
610
|
|
|
608
611
|
/**
|
|
609
612
|
* Dry run XCM program
|
|
610
613
|
*
|
|
611
|
-
* @callname:
|
|
614
|
+
* @callname: DryRunApi_dry_run_xcm
|
|
612
615
|
* @param {XcmVersionedLocation} origin_location
|
|
613
616
|
* @param {XcmVersionedXcm} xcm
|
|
614
617
|
**/
|
|
@@ -692,7 +692,7 @@ export type StagingXcmV4Instruction =
|
|
|
692
692
|
}
|
|
693
693
|
| {
|
|
694
694
|
tag: 'Transact';
|
|
695
|
-
value: { originKind:
|
|
695
|
+
value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded };
|
|
696
696
|
}
|
|
697
697
|
| { tag: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
|
|
698
698
|
| { tag: 'HrmpChannelAccepted'; value: { recipient: number } }
|
|
@@ -800,7 +800,7 @@ export type XcmV3MaybeErrorCode =
|
|
|
800
800
|
| { tag: 'Error'; value: Bytes }
|
|
801
801
|
| { tag: 'TruncatedError'; value: Bytes };
|
|
802
802
|
|
|
803
|
-
export type
|
|
803
|
+
export type XcmV3OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
|
|
804
804
|
|
|
805
805
|
export type XcmDoubleEncoded = { encoded: Bytes };
|
|
806
806
|
|
|
@@ -3296,7 +3296,15 @@ export type CumulusPalletXcmpQueueError =
|
|
|
3296
3296
|
/**
|
|
3297
3297
|
* The execution is already resumed.
|
|
3298
3298
|
**/
|
|
3299
|
-
| 'AlreadyResumed'
|
|
3299
|
+
| 'AlreadyResumed'
|
|
3300
|
+
/**
|
|
3301
|
+
* There are too many active outbound channels.
|
|
3302
|
+
**/
|
|
3303
|
+
| 'TooManyActiveOutboundChannels'
|
|
3304
|
+
/**
|
|
3305
|
+
* The message is too big.
|
|
3306
|
+
**/
|
|
3307
|
+
| 'TooBig';
|
|
3300
3308
|
|
|
3301
3309
|
export type PalletXcmQueryStatus =
|
|
3302
3310
|
| {
|
|
@@ -4083,6 +4091,8 @@ export type XcmV2Instruction =
|
|
|
4083
4091
|
| { tag: 'SubscribeVersion'; value: { queryId: bigint; maxResponseWeight: bigint } }
|
|
4084
4092
|
| { tag: 'UnsubscribeVersion' };
|
|
4085
4093
|
|
|
4094
|
+
export type XcmV2OriginKind = 'Native' | 'SovereignAccount' | 'Superuser' | 'Xcm';
|
|
4095
|
+
|
|
4086
4096
|
export type XcmV2MultiassetMultiAssetFilter =
|
|
4087
4097
|
| { tag: 'Definite'; value: XcmV2MultiassetMultiAssets }
|
|
4088
4098
|
| { tag: 'Wild'; value: XcmV2MultiassetWildMultiAsset };
|
|
@@ -4120,7 +4130,7 @@ export type XcmV3Instruction =
|
|
|
4120
4130
|
}
|
|
4121
4131
|
| {
|
|
4122
4132
|
tag: 'Transact';
|
|
4123
|
-
value: { originKind:
|
|
4133
|
+
value: { originKind: XcmV3OriginKind; requireWeightAtMost: SpWeightsWeightV2Weight; call: XcmDoubleEncoded };
|
|
4124
4134
|
}
|
|
4125
4135
|
| { tag: 'HrmpNewChannelOpenRequest'; value: { sender: number; maxMessageSize: number; maxCapacity: number } }
|
|
4126
4136
|
| { tag: 'HrmpChannelAccepted'; value: { recipient: number } }
|
|
@@ -12235,6 +12245,10 @@ export type PalletAssetConversionTxPaymentChargeAssetTxPayment = {
|
|
|
12235
12245
|
|
|
12236
12246
|
export type CumulusPrimitivesStorageWeightReclaimStorageWeightReclaim = {};
|
|
12237
12247
|
|
|
12248
|
+
export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode };
|
|
12249
|
+
|
|
12250
|
+
export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
|
|
12251
|
+
|
|
12238
12252
|
export type AssetHubRococoRuntimeRuntime = {};
|
|
12239
12253
|
|
|
12240
12254
|
export type SpConsensusSlotsSlotDuration = bigint;
|
|
@@ -12304,14 +12318,24 @@ export type XcmFeePaymentRuntimeApiFeesError =
|
|
|
12304
12318
|
| 'AssetNotFound'
|
|
12305
12319
|
| 'Unroutable';
|
|
12306
12320
|
|
|
12307
|
-
export type
|
|
12308
|
-
executionResult: Result<
|
|
12321
|
+
export type XcmFeePaymentRuntimeApiDryRunCallDryRunEffects = {
|
|
12322
|
+
executionResult: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo>;
|
|
12309
12323
|
emittedEvents: Array<AssetHubRococoRuntimeRuntimeEvent>;
|
|
12310
12324
|
localXcm?: XcmVersionedXcm | undefined;
|
|
12311
12325
|
forwardedXcms: Array<[XcmVersionedLocation, Array<XcmVersionedXcm>]>;
|
|
12312
12326
|
};
|
|
12313
12327
|
|
|
12314
|
-
export type
|
|
12328
|
+
export type FrameSupportDispatchPostDispatchInfo = {
|
|
12329
|
+
actualWeight?: SpWeightsWeightV2Weight | undefined;
|
|
12330
|
+
paysFee: FrameSupportDispatchPays;
|
|
12331
|
+
};
|
|
12332
|
+
|
|
12333
|
+
export type SpRuntimeDispatchErrorWithPostInfo = {
|
|
12334
|
+
postInfo: FrameSupportDispatchPostDispatchInfo;
|
|
12335
|
+
error: DispatchError;
|
|
12336
|
+
};
|
|
12337
|
+
|
|
12338
|
+
export type XcmFeePaymentRuntimeApiDryRunError = 'Unimplemented' | 'VersionedConversionFailed';
|
|
12315
12339
|
|
|
12316
12340
|
export type XcmFeePaymentRuntimeApiDryRunXcmDryRunEffects = {
|
|
12317
12341
|
executionResult: StagingXcmV4TraitsOutcome;
|