@dedot/chaintypes 0.232.0 → 0.233.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.
- package/package.json +2 -2
- package/paseo/consts.d.ts +87 -18
- package/paseo/errors.d.ts +187 -30
- package/paseo/events.d.ts +676 -80
- package/paseo/index.d.ts +1 -1
- package/paseo/query.d.ts +465 -71
- package/paseo/runtime.d.ts +85 -39
- package/paseo/tx.d.ts +1012 -165
- package/paseo/types.d.ts +8081 -6364
- package/paseo/view-functions.d.ts +75 -1
package/paseo/runtime.d.ts
CHANGED
|
@@ -9,14 +9,13 @@ import type {
|
|
|
9
9
|
UncheckedExtrinsicLike,
|
|
10
10
|
UncheckedExtrinsic,
|
|
11
11
|
AccountId32Like,
|
|
12
|
+
AccountId32,
|
|
12
13
|
H256,
|
|
13
14
|
BitSequence,
|
|
14
15
|
Bytes,
|
|
15
16
|
BytesLike,
|
|
16
|
-
AccountId32,
|
|
17
17
|
} from 'dedot/codecs';
|
|
18
18
|
import type {
|
|
19
|
-
RelayCommonApisInflationInfo,
|
|
20
19
|
SpRuntimeBlock,
|
|
21
20
|
SpRuntimeExtrinsicInclusionMode,
|
|
22
21
|
SpCoreOpaqueMetadata,
|
|
@@ -28,18 +27,18 @@ import type {
|
|
|
28
27
|
PolkadotPrimitivesV8ValidatorAppPublic,
|
|
29
28
|
PolkadotPrimitivesV8ValidatorIndex,
|
|
30
29
|
PolkadotPrimitivesV8GroupRotationInfo,
|
|
31
|
-
|
|
30
|
+
PolkadotPrimitivesVstagingCoreState,
|
|
32
31
|
PolkadotPrimitivesV8PersistedValidationData,
|
|
33
32
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
34
33
|
PolkadotPrimitivesV8OccupiedCoreAssumption,
|
|
35
34
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
36
35
|
PolkadotPrimitivesV8CandidateCommitments,
|
|
37
36
|
PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
PolkadotPrimitivesVstagingCommittedCandidateReceiptV2,
|
|
38
|
+
PolkadotPrimitivesVstagingCandidateEvent,
|
|
40
39
|
PolkadotCorePrimitivesInboundDownwardMessage,
|
|
41
40
|
PolkadotCorePrimitivesInboundHrmpMessage,
|
|
42
|
-
|
|
41
|
+
PolkadotPrimitivesVstagingScrapedOnChainVotes,
|
|
43
42
|
PolkadotPrimitivesV8SessionInfo,
|
|
44
43
|
PolkadotPrimitivesV8PvfCheckStatement,
|
|
45
44
|
PolkadotPrimitivesV8ValidatorAppSignature,
|
|
@@ -49,10 +48,11 @@ import type {
|
|
|
49
48
|
PolkadotPrimitivesV8SlashingPendingSlashes,
|
|
50
49
|
PolkadotPrimitivesV8SlashingOpaqueKeyOwnershipProof,
|
|
51
50
|
PolkadotPrimitivesV8SlashingDisputeProof,
|
|
52
|
-
|
|
51
|
+
PolkadotPrimitivesVstagingAsyncBackingBackingState,
|
|
53
52
|
PolkadotPrimitivesV8AsyncBackingAsyncBackingParams,
|
|
54
53
|
PolkadotPrimitivesV8ApprovalVotingParams,
|
|
55
54
|
PolkadotPrimitivesV8CoreIndex,
|
|
55
|
+
PolkadotPrimitivesVstagingAsyncBackingConstraints,
|
|
56
56
|
SpConsensusBeefyValidatorSet,
|
|
57
57
|
SpConsensusBeefyDoubleVotingProof,
|
|
58
58
|
SpRuntimeOpaqueValue,
|
|
@@ -73,6 +73,8 @@ import type {
|
|
|
73
73
|
SpConsensusSlotsEquivocationProof,
|
|
74
74
|
SpAuthorityDiscoveryAppPublic,
|
|
75
75
|
SpCoreCryptoKeyTypeId,
|
|
76
|
+
FrameSupportViewFunctionsViewFunctionDispatchError,
|
|
77
|
+
FrameSupportViewFunctionsViewFunctionId,
|
|
76
78
|
PalletTransactionPaymentRuntimeDispatchInfo,
|
|
77
79
|
PalletTransactionPaymentFeeDetails,
|
|
78
80
|
SpWeightsWeightV2Weight,
|
|
@@ -90,25 +92,6 @@ import type {
|
|
|
90
92
|
} from './types.js';
|
|
91
93
|
|
|
92
94
|
export interface RuntimeApis extends GenericRuntimeApis {
|
|
93
|
-
/**
|
|
94
|
-
* @runtimeapi: Inflation - 0xc51ff1fa3f5d0cca
|
|
95
|
-
**/
|
|
96
|
-
inflation: {
|
|
97
|
-
/**
|
|
98
|
-
* Return the current estimates of the inflation amount.
|
|
99
|
-
*
|
|
100
|
-
* This is marked as experimental in light of RFC#89. Nonetheless, its usage is highly
|
|
101
|
-
* recommended over trying to read-storage, or re-create the onchain logic.
|
|
102
|
-
*
|
|
103
|
-
* @callname: Inflation_experimental_inflation_prediction_info
|
|
104
|
-
**/
|
|
105
|
-
experimentalInflationPredictionInfo: GenericRuntimeApiMethod<() => Promise<RelayCommonApisInflationInfo>>;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Generic runtime api call
|
|
109
|
-
**/
|
|
110
|
-
[method: string]: GenericRuntimeApiMethod;
|
|
111
|
-
};
|
|
112
95
|
/**
|
|
113
96
|
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
114
97
|
**/
|
|
@@ -323,6 +306,14 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
323
306
|
**/
|
|
324
307
|
poolBalance: GenericRuntimeApiMethod<(poolId: number) => Promise<bigint>>;
|
|
325
308
|
|
|
309
|
+
/**
|
|
310
|
+
* Returns the bonded account and reward account associated with the pool_id.
|
|
311
|
+
*
|
|
312
|
+
* @callname: NominationPoolsApi_pool_accounts
|
|
313
|
+
* @param {number} pool_id
|
|
314
|
+
**/
|
|
315
|
+
poolAccounts: GenericRuntimeApiMethod<(poolId: number) => Promise<[AccountId32, AccountId32]>>;
|
|
316
|
+
|
|
326
317
|
/**
|
|
327
318
|
* Generic runtime api call
|
|
328
319
|
**/
|
|
@@ -443,7 +434,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
443
434
|
*
|
|
444
435
|
* @callname: ParachainHost_availability_cores
|
|
445
436
|
**/
|
|
446
|
-
availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<
|
|
437
|
+
availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesVstagingCoreState>>>;
|
|
447
438
|
|
|
448
439
|
/**
|
|
449
440
|
* Yields the persisted validation data for the given `ParaId` along with an assumption that
|
|
@@ -532,7 +523,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
532
523
|
candidatePendingAvailability: GenericRuntimeApiMethod<
|
|
533
524
|
(
|
|
534
525
|
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
535
|
-
) => Promise<
|
|
526
|
+
) => Promise<PolkadotPrimitivesVstagingCommittedCandidateReceiptV2 | undefined>
|
|
536
527
|
>;
|
|
537
528
|
|
|
538
529
|
/**
|
|
@@ -540,7 +531,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
540
531
|
*
|
|
541
532
|
* @callname: ParachainHost_candidate_events
|
|
542
533
|
**/
|
|
543
|
-
candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<
|
|
534
|
+
candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesVstagingCandidateEvent>>>;
|
|
544
535
|
|
|
545
536
|
/**
|
|
546
537
|
* Get all the pending inbound messages in the downward message queue for a para.
|
|
@@ -584,7 +575,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
584
575
|
*
|
|
585
576
|
* @callname: ParachainHost_on_chain_votes
|
|
586
577
|
**/
|
|
587
|
-
onChainVotes: GenericRuntimeApiMethod<() => Promise<
|
|
578
|
+
onChainVotes: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesVstagingScrapedOnChainVotes | undefined>>;
|
|
588
579
|
|
|
589
580
|
/**
|
|
590
581
|
* Get the session info for the given session, if stored.
|
|
@@ -706,12 +697,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
706
697
|
* Returns the state of parachain backing for a given para.
|
|
707
698
|
*
|
|
708
699
|
* @callname: ParachainHost_para_backing_state
|
|
709
|
-
* @param {PolkadotParachainPrimitivesPrimitivesId}
|
|
700
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} __runtime_api_generated_name_0__
|
|
710
701
|
**/
|
|
711
702
|
paraBackingState: GenericRuntimeApiMethod<
|
|
712
703
|
(
|
|
713
|
-
|
|
714
|
-
) => Promise<
|
|
704
|
+
runtimeApiGeneratedName0: PolkadotParachainPrimitivesPrimitivesId,
|
|
705
|
+
) => Promise<PolkadotPrimitivesVstagingAsyncBackingBackingState | undefined>
|
|
715
706
|
>;
|
|
716
707
|
|
|
717
708
|
/**
|
|
@@ -759,9 +750,38 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
759
750
|
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
760
751
|
**/
|
|
761
752
|
candidatesPendingAvailability: GenericRuntimeApiMethod<
|
|
762
|
-
(
|
|
753
|
+
(
|
|
754
|
+
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
755
|
+
) => Promise<Array<PolkadotPrimitivesVstagingCommittedCandidateReceiptV2>>
|
|
756
|
+
>;
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* Retrieve the maximum uncompressed code size.
|
|
760
|
+
*
|
|
761
|
+
* @callname: ParachainHost_validation_code_bomb_limit
|
|
762
|
+
**/
|
|
763
|
+
validationCodeBombLimit: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* Returns the constraints on the actions that can be taken by a new parachain
|
|
767
|
+
* block.
|
|
768
|
+
*
|
|
769
|
+
* @callname: ParachainHost_backing_constraints
|
|
770
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} para_id
|
|
771
|
+
**/
|
|
772
|
+
backingConstraints: GenericRuntimeApiMethod<
|
|
773
|
+
(
|
|
774
|
+
paraId: PolkadotParachainPrimitivesPrimitivesId,
|
|
775
|
+
) => Promise<PolkadotPrimitivesVstagingAsyncBackingConstraints | undefined>
|
|
763
776
|
>;
|
|
764
777
|
|
|
778
|
+
/**
|
|
779
|
+
* Retrieve the scheduling lookahead
|
|
780
|
+
*
|
|
781
|
+
* @callname: ParachainHost_scheduling_lookahead
|
|
782
|
+
**/
|
|
783
|
+
schedulingLookahead: GenericRuntimeApiMethod<() => Promise<number>>;
|
|
784
|
+
|
|
765
785
|
/**
|
|
766
786
|
* Generic runtime api call
|
|
767
787
|
**/
|
|
@@ -1191,6 +1211,29 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1191
1211
|
**/
|
|
1192
1212
|
[method: string]: GenericRuntimeApiMethod;
|
|
1193
1213
|
};
|
|
1214
|
+
/**
|
|
1215
|
+
* @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
|
|
1216
|
+
**/
|
|
1217
|
+
runtimeViewFunction: {
|
|
1218
|
+
/**
|
|
1219
|
+
* Execute a view function query.
|
|
1220
|
+
*
|
|
1221
|
+
* @callname: RuntimeViewFunction_execute_view_function
|
|
1222
|
+
* @param {FrameSupportViewFunctionsViewFunctionId} query_id
|
|
1223
|
+
* @param {BytesLike} input
|
|
1224
|
+
**/
|
|
1225
|
+
executeViewFunction: GenericRuntimeApiMethod<
|
|
1226
|
+
(
|
|
1227
|
+
queryId: FrameSupportViewFunctionsViewFunctionId,
|
|
1228
|
+
input: BytesLike,
|
|
1229
|
+
) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>
|
|
1230
|
+
>;
|
|
1231
|
+
|
|
1232
|
+
/**
|
|
1233
|
+
* Generic runtime api call
|
|
1234
|
+
**/
|
|
1235
|
+
[method: string]: GenericRuntimeApiMethod;
|
|
1236
|
+
};
|
|
1194
1237
|
/**
|
|
1195
1238
|
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
1196
1239
|
**/
|
|
@@ -1377,16 +1420,18 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1377
1420
|
**/
|
|
1378
1421
|
dryRunApi: {
|
|
1379
1422
|
/**
|
|
1380
|
-
* Dry run call.
|
|
1423
|
+
* Dry run call V2.
|
|
1381
1424
|
*
|
|
1382
1425
|
* @callname: DryRunApi_dry_run_call
|
|
1383
1426
|
* @param {PaseoRuntimeOriginCaller} origin
|
|
1384
1427
|
* @param {PaseoRuntimeRuntimeCallLike} call
|
|
1428
|
+
* @param {number} result_xcms_version
|
|
1385
1429
|
**/
|
|
1386
1430
|
dryRunCall: GenericRuntimeApiMethod<
|
|
1387
1431
|
(
|
|
1388
1432
|
origin: PaseoRuntimeOriginCaller,
|
|
1389
1433
|
call: PaseoRuntimeRuntimeCallLike,
|
|
1434
|
+
resultXcmsVersion: number,
|
|
1390
1435
|
) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
|
|
1391
1436
|
>;
|
|
1392
1437
|
|
|
@@ -1436,9 +1481,10 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1436
1481
|
* Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
|
|
1437
1482
|
* storage.
|
|
1438
1483
|
*
|
|
1439
|
-
* In the case of a FRAME-based runtime, this function deserializes the full
|
|
1440
|
-
*
|
|
1441
|
-
* deserialization fails, an error
|
|
1484
|
+
* In the case of a FRAME-based runtime, this function deserializes the full
|
|
1485
|
+
* `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the
|
|
1486
|
+
* provided JSON blob is incorrect or incomplete or the deserialization fails, an error
|
|
1487
|
+
* is returned.
|
|
1442
1488
|
*
|
|
1443
1489
|
* Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
|
|
1444
1490
|
* defaults will be used.
|
|
@@ -1452,7 +1498,7 @@ export interface RuntimeApis extends GenericRuntimeApis {
|
|
|
1452
1498
|
* Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
|
|
1453
1499
|
* `id`.
|
|
1454
1500
|
*
|
|
1455
|
-
* If `id` is `None` the function
|
|
1501
|
+
* If `id` is `None` the function should return JSON blob representation of the default
|
|
1456
1502
|
* `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
|
|
1457
1503
|
* `RuntimeGenesisConfig`.
|
|
1458
1504
|
*
|