@dedot/chaintypes 0.14.0 → 0.16.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/kusama/consts.d.ts +48 -30
- package/kusama/errors.d.ts +89 -100
- package/kusama/events.d.ts +87 -28
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +241 -130
- package/kusama/runtime.d.ts +347 -95
- package/kusama/tx.d.ts +3309 -456
- package/kusama/types.d.ts +6341 -1092
- package/kusama-asset-hub/consts.d.ts +52 -3
- package/kusama-asset-hub/errors.d.ts +30 -5
- package/kusama-asset-hub/events.d.ts +61 -1
- package/kusama-asset-hub/index.d.ts +1 -1
- package/kusama-asset-hub/query.d.ts +100 -18
- package/kusama-asset-hub/runtime.d.ts +186 -15
- package/kusama-asset-hub/tx.d.ts +3074 -254
- package/kusama-asset-hub/types.d.ts +6190 -551
- package/package.json +2 -2
- package/paseo/index.d.ts +1 -1
- package/rococo/errors.d.ts +0 -10
- package/rococo/events.d.ts +33 -12
- package/rococo/index.d.ts +1 -1
- package/rococo/query.d.ts +52 -52
- package/rococo/runtime.d.ts +117 -58
- package/rococo/tx.d.ts +33 -33
- package/rococo/types.d.ts +191 -185
- package/rococo-asset-hub/consts.d.ts +2 -2
- package/rococo-asset-hub/events.d.ts +87 -80
- package/rococo-asset-hub/index.d.ts +1 -1
- package/rococo-asset-hub/query.d.ts +66 -54
- package/rococo-asset-hub/runtime.d.ts +12 -15
- package/rococo-asset-hub/tx.d.ts +250 -241
- package/rococo-asset-hub/types.d.ts +353 -404
- package/westend/consts.d.ts +9 -0
- package/westend/errors.d.ts +0 -10
- package/westend/events.d.ts +79 -13
- package/westend/index.d.ts +1 -1
- package/westend/query.d.ts +75 -52
- package/westend/runtime.d.ts +133 -58
- package/westend/tx.d.ts +72 -35
- package/westend/types.d.ts +308 -190
- package/westend-asset-hub/consts.d.ts +2 -2
- package/westend-asset-hub/events.d.ts +87 -80
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +66 -54
- package/westend-asset-hub/runtime.d.ts +12 -15
- package/westend-asset-hub/tx.d.ts +250 -241
- package/westend-asset-hub/types.d.ts +353 -404
- package/westend-people/index.d.ts +1 -1
- package/westend-people/query.d.ts +12 -12
- package/westend-people/tx.d.ts +1 -58
- package/westend-people/types.d.ts +16 -62
package/kusama/query.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ import type {
|
|
|
31
31
|
PalletBalancesAccountData,
|
|
32
32
|
PalletBalancesBalanceLock,
|
|
33
33
|
PalletBalancesReserveData,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
FrameSupportTokensMiscIdAmount,
|
|
35
|
+
FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
|
|
36
36
|
PalletTransactionPaymentReleases,
|
|
37
37
|
PalletStakingStakingLedger,
|
|
38
38
|
PalletStakingRewardDestination,
|
|
@@ -61,6 +61,8 @@ import type {
|
|
|
61
61
|
PalletRankedCollectiveMemberRecord,
|
|
62
62
|
PalletRankedCollectiveVoteRecord,
|
|
63
63
|
PalletReferendaReferendumInfoTally,
|
|
64
|
+
StagingKusamaRuntimeRuntimeParametersValue,
|
|
65
|
+
StagingKusamaRuntimeRuntimeParametersKey,
|
|
64
66
|
PolkadotRuntimeCommonClaimsStatementKind,
|
|
65
67
|
PalletSocietyGroupParams,
|
|
66
68
|
PalletSocietyMemberRecord,
|
|
@@ -75,6 +77,7 @@ import type {
|
|
|
75
77
|
PalletVestingVestingInfo,
|
|
76
78
|
PalletVestingReleases,
|
|
77
79
|
PalletSchedulerScheduled,
|
|
80
|
+
PalletSchedulerRetryConfig,
|
|
78
81
|
PalletProxyProxyDefinition,
|
|
79
82
|
PalletProxyAnnouncement,
|
|
80
83
|
PalletMultisigMultisig,
|
|
@@ -91,7 +94,7 @@ import type {
|
|
|
91
94
|
PalletNisBid,
|
|
92
95
|
PalletNisSummaryRecord,
|
|
93
96
|
PalletNisReceiptRecord,
|
|
94
|
-
|
|
97
|
+
FrameSupportTokensMiscIdAmount003,
|
|
95
98
|
PalletBagsListListNode,
|
|
96
99
|
PalletBagsListListBag,
|
|
97
100
|
PalletNominationPoolsPoolMember,
|
|
@@ -101,24 +104,22 @@ import type {
|
|
|
101
104
|
PalletNominationPoolsClaimPermission,
|
|
102
105
|
PalletFastUnstakeUnstakeRequest,
|
|
103
106
|
PolkadotRuntimeParachainsConfigurationHostConfiguration,
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
PolkadotPrimitivesV7ValidatorIndex,
|
|
108
|
+
PolkadotPrimitivesV7ValidatorAppPublic,
|
|
106
109
|
PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
|
|
107
|
-
PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord,
|
|
108
110
|
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
|
|
109
111
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
110
|
-
|
|
111
|
-
PolkadotPrimitivesV6ScrapedOnChainVotes,
|
|
112
|
+
PolkadotPrimitivesV7ScrapedOnChainVotes,
|
|
112
113
|
PolkadotRuntimeParachainsSchedulerPalletCoreOccupied,
|
|
113
|
-
|
|
114
|
+
PolkadotPrimitivesV7CoreIndex,
|
|
114
115
|
PolkadotRuntimeParachainsSchedulerPalletParasEntry,
|
|
115
116
|
PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
|
|
116
117
|
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
117
118
|
PolkadotRuntimeParachainsParasParaLifecycle,
|
|
118
119
|
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
119
120
|
PolkadotRuntimeParachainsParasParaPastCodeMeta,
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
PolkadotPrimitivesV7UpgradeGoAhead,
|
|
122
|
+
PolkadotPrimitivesV7UpgradeRestriction,
|
|
122
123
|
PolkadotRuntimeParachainsParasParaGenesisArgs,
|
|
123
124
|
PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
124
125
|
PolkadotRuntimeParachainsInitializerBufferedSessionChange,
|
|
@@ -127,14 +128,15 @@ import type {
|
|
|
127
128
|
PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
128
129
|
PolkadotRuntimeParachainsHrmpHrmpChannel,
|
|
129
130
|
PolkadotCorePrimitivesInboundHrmpMessage,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
PolkadotPrimitivesV7AssignmentAppPublic,
|
|
132
|
+
PolkadotPrimitivesV7SessionInfo,
|
|
133
|
+
PolkadotPrimitivesV7ExecutorParams,
|
|
134
|
+
PolkadotPrimitivesV7DisputeState,
|
|
134
135
|
PolkadotCorePrimitivesCandidateHash,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
PolkadotPrimitivesV7SlashingPendingSlashes,
|
|
137
|
+
PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount,
|
|
138
|
+
PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType,
|
|
139
|
+
BinaryHeapEnqueuedOrder,
|
|
138
140
|
PolkadotRuntimeParachainsAssignerCoretimeSchedule,
|
|
139
141
|
PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
|
|
140
142
|
PolkadotRuntimeCommonParasRegistrarParaInfo,
|
|
@@ -145,6 +147,7 @@ import type {
|
|
|
145
147
|
PalletXcmVersionMigrationStage,
|
|
146
148
|
PalletXcmRemoteLockedFungibleRecord,
|
|
147
149
|
XcmVersionedAssetId,
|
|
150
|
+
StagingXcmV4Xcm,
|
|
148
151
|
PalletMessageQueueBookState,
|
|
149
152
|
PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
|
|
150
153
|
PalletMessageQueuePage,
|
|
@@ -173,6 +176,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
173
176
|
**/
|
|
174
177
|
extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
|
|
175
178
|
|
|
179
|
+
/**
|
|
180
|
+
* Whether all inherents have been applied.
|
|
181
|
+
*
|
|
182
|
+
* @param {Callback<boolean> =} callback
|
|
183
|
+
**/
|
|
184
|
+
inherentsApplied: GenericStorageQuery<Rv, () => boolean>;
|
|
185
|
+
|
|
176
186
|
/**
|
|
177
187
|
* The current weight for the block.
|
|
178
188
|
*
|
|
@@ -566,6 +576,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
566
576
|
* Any liquidity locks on some account balances.
|
|
567
577
|
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
568
578
|
*
|
|
579
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
580
|
+
*
|
|
569
581
|
* @param {AccountId32Like} arg
|
|
570
582
|
* @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
|
|
571
583
|
**/
|
|
@@ -574,6 +586,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
574
586
|
/**
|
|
575
587
|
* Named reserves on some account balances.
|
|
576
588
|
*
|
|
589
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
590
|
+
*
|
|
577
591
|
* @param {AccountId32Like} arg
|
|
578
592
|
* @param {Callback<Array<PalletBalancesReserveData>> =} callback
|
|
579
593
|
**/
|
|
@@ -583,19 +597,19 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
583
597
|
* Holds on account balances.
|
|
584
598
|
*
|
|
585
599
|
* @param {AccountId32Like} arg
|
|
586
|
-
* @param {Callback<Array<
|
|
600
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
|
|
587
601
|
**/
|
|
588
|
-
holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<
|
|
602
|
+
holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
|
|
589
603
|
|
|
590
604
|
/**
|
|
591
605
|
* Freeze locks on account balances.
|
|
592
606
|
*
|
|
593
607
|
* @param {AccountId32Like} arg
|
|
594
|
-
* @param {Callback<Array<
|
|
608
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>> =} callback
|
|
595
609
|
**/
|
|
596
610
|
freezes: GenericStorageQuery<
|
|
597
611
|
Rv,
|
|
598
|
-
(arg: AccountId32Like) => Array<
|
|
612
|
+
(arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>,
|
|
599
613
|
AccountId32
|
|
600
614
|
>;
|
|
601
615
|
|
|
@@ -788,6 +802,26 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
788
802
|
**/
|
|
789
803
|
counterForNominators: GenericStorageQuery<Rv, () => number>;
|
|
790
804
|
|
|
805
|
+
/**
|
|
806
|
+
* Stakers whose funds are managed by other pallets.
|
|
807
|
+
*
|
|
808
|
+
* This pallet does not apply any locks on them, therefore they are only virtually bonded. They
|
|
809
|
+
* are expected to be keyless accounts and hence should not be allowed to mutate their ledger
|
|
810
|
+
* directly via this pallet. Instead, these accounts are managed by other pallets and accessed
|
|
811
|
+
* via low level apis. We keep track of them to do minimal integrity checks.
|
|
812
|
+
*
|
|
813
|
+
* @param {AccountId32Like} arg
|
|
814
|
+
* @param {Callback<[] | undefined> =} callback
|
|
815
|
+
**/
|
|
816
|
+
virtualStakers: GenericStorageQuery<Rv, (arg: AccountId32Like) => [] | undefined, AccountId32>;
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* Counter for the related counted storage map
|
|
820
|
+
*
|
|
821
|
+
* @param {Callback<number> =} callback
|
|
822
|
+
**/
|
|
823
|
+
counterForVirtualStakers: GenericStorageQuery<Rv, () => number>;
|
|
824
|
+
|
|
791
825
|
/**
|
|
792
826
|
* The maximum nominator count before we stop allowing new validators to join.
|
|
793
827
|
*
|
|
@@ -974,6 +1008,15 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
974
1008
|
**/
|
|
975
1009
|
forceEra: GenericStorageQuery<Rv, () => PalletStakingForcing>;
|
|
976
1010
|
|
|
1011
|
+
/**
|
|
1012
|
+
* Maximum staked rewards, i.e. the percentage of the era inflation that
|
|
1013
|
+
* is used for stake rewards.
|
|
1014
|
+
* See [Era payout](./index.html#era-payout).
|
|
1015
|
+
*
|
|
1016
|
+
* @param {Callback<Percent | undefined> =} callback
|
|
1017
|
+
**/
|
|
1018
|
+
maxStakedRewards: GenericStorageQuery<Rv, () => Percent | undefined>;
|
|
1019
|
+
|
|
977
1020
|
/**
|
|
978
1021
|
* The percentage of the slash that is distributed to reporters.
|
|
979
1022
|
*
|
|
@@ -1069,19 +1112,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1069
1112
|
currentPlannedSession: GenericStorageQuery<Rv, () => number>;
|
|
1070
1113
|
|
|
1071
1114
|
/**
|
|
1072
|
-
* Indices of validators that have offended in the active era
|
|
1073
|
-
*
|
|
1115
|
+
* Indices of validators that have offended in the active era. The offenders are disabled for a
|
|
1116
|
+
* whole era. For this reason they are kept here - only staking pallet knows about eras. The
|
|
1117
|
+
* implementor of [`DisablingStrategy`] defines if a validator should be disabled which
|
|
1118
|
+
* implicitly means that the implementor also controls the max number of disabled validators.
|
|
1074
1119
|
*
|
|
1075
|
-
*
|
|
1076
|
-
*
|
|
1077
|
-
* validators that have offended in the current era, ensuring a new era is forced if
|
|
1078
|
-
* `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
|
|
1079
|
-
* whether a given validator has previously offended using binary search. It gets cleared when
|
|
1080
|
-
* the era ends.
|
|
1120
|
+
* The vec is always kept sorted so that we can find whether a given validator has previously
|
|
1121
|
+
* offended using binary search.
|
|
1081
1122
|
*
|
|
1082
|
-
* @param {Callback<Array<
|
|
1123
|
+
* @param {Callback<Array<number>> =} callback
|
|
1083
1124
|
**/
|
|
1084
|
-
|
|
1125
|
+
disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
|
|
1085
1126
|
|
|
1086
1127
|
/**
|
|
1087
1128
|
* The threshold for when users can start calling `chill_other` for other validators /
|
|
@@ -1595,6 +1636,27 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1595
1636
|
**/
|
|
1596
1637
|
[storage: string]: GenericStorageQuery<Rv>;
|
|
1597
1638
|
};
|
|
1639
|
+
/**
|
|
1640
|
+
* Pallet `Parameters`'s storage queries
|
|
1641
|
+
**/
|
|
1642
|
+
parameters: {
|
|
1643
|
+
/**
|
|
1644
|
+
* Stored parameters.
|
|
1645
|
+
*
|
|
1646
|
+
* @param {StagingKusamaRuntimeRuntimeParametersKey} arg
|
|
1647
|
+
* @param {Callback<StagingKusamaRuntimeRuntimeParametersValue | undefined> =} callback
|
|
1648
|
+
**/
|
|
1649
|
+
parameters: GenericStorageQuery<
|
|
1650
|
+
Rv,
|
|
1651
|
+
(arg: StagingKusamaRuntimeRuntimeParametersKey) => StagingKusamaRuntimeRuntimeParametersValue | undefined,
|
|
1652
|
+
StagingKusamaRuntimeRuntimeParametersKey
|
|
1653
|
+
>;
|
|
1654
|
+
|
|
1655
|
+
/**
|
|
1656
|
+
* Generic pallet storage query
|
|
1657
|
+
**/
|
|
1658
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1659
|
+
};
|
|
1598
1660
|
/**
|
|
1599
1661
|
* Pallet `Claims`'s storage queries
|
|
1600
1662
|
**/
|
|
@@ -1918,6 +1980,18 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1918
1980
|
**/
|
|
1919
1981
|
agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
|
|
1920
1982
|
|
|
1983
|
+
/**
|
|
1984
|
+
* Retry configurations for items to be executed, indexed by task address.
|
|
1985
|
+
*
|
|
1986
|
+
* @param {[number, number]} arg
|
|
1987
|
+
* @param {Callback<PalletSchedulerRetryConfig | undefined> =} callback
|
|
1988
|
+
**/
|
|
1989
|
+
retries: GenericStorageQuery<
|
|
1990
|
+
Rv,
|
|
1991
|
+
(arg: [number, number]) => PalletSchedulerRetryConfig | undefined,
|
|
1992
|
+
[number, number]
|
|
1993
|
+
>;
|
|
1994
|
+
|
|
1921
1995
|
/**
|
|
1922
1996
|
* Lookup from a name to the block number and index of the task.
|
|
1923
1997
|
*
|
|
@@ -2331,6 +2405,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2331
2405
|
* Any liquidity locks on some account balances.
|
|
2332
2406
|
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
2333
2407
|
*
|
|
2408
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
2409
|
+
*
|
|
2334
2410
|
* @param {AccountId32Like} arg
|
|
2335
2411
|
* @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
|
|
2336
2412
|
**/
|
|
@@ -2339,6 +2415,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2339
2415
|
/**
|
|
2340
2416
|
* Named reserves on some account balances.
|
|
2341
2417
|
*
|
|
2418
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
2419
|
+
*
|
|
2342
2420
|
* @param {AccountId32Like} arg
|
|
2343
2421
|
* @param {Callback<Array<PalletBalancesReserveData>> =} callback
|
|
2344
2422
|
**/
|
|
@@ -2348,17 +2426,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2348
2426
|
* Holds on account balances.
|
|
2349
2427
|
*
|
|
2350
2428
|
* @param {AccountId32Like} arg
|
|
2351
|
-
* @param {Callback<Array<
|
|
2429
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
|
|
2352
2430
|
**/
|
|
2353
|
-
holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<
|
|
2431
|
+
holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
|
|
2354
2432
|
|
|
2355
2433
|
/**
|
|
2356
2434
|
* Freeze locks on account balances.
|
|
2357
2435
|
*
|
|
2358
2436
|
* @param {AccountId32Like} arg
|
|
2359
|
-
* @param {Callback<Array<
|
|
2437
|
+
* @param {Callback<Array<FrameSupportTokensMiscIdAmount003>> =} callback
|
|
2360
2438
|
**/
|
|
2361
|
-
freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<
|
|
2439
|
+
freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount003>, AccountId32>;
|
|
2362
2440
|
|
|
2363
2441
|
/**
|
|
2364
2442
|
* Generic pallet storage query
|
|
@@ -2507,7 +2585,7 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2507
2585
|
|
|
2508
2586
|
/**
|
|
2509
2587
|
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
|
2510
|
-
* claimed, the balance comes out
|
|
2588
|
+
* claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
|
|
2511
2589
|
*
|
|
2512
2590
|
* @param {number} arg
|
|
2513
2591
|
* @param {Callback<PalletNominationPoolsRewardPool | undefined> =} callback
|
|
@@ -2562,8 +2640,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2562
2640
|
/**
|
|
2563
2641
|
* A reverse lookup from the pool's account id to its id.
|
|
2564
2642
|
*
|
|
2565
|
-
* This is only used for slashing. In all other instances, the
|
|
2566
|
-
* accounts are deterministically derived from it.
|
|
2643
|
+
* This is only used for slashing and on automatic withdraw update. In all other instances, the
|
|
2644
|
+
* pool id is used, and the accounts are deterministically derived from it.
|
|
2567
2645
|
*
|
|
2568
2646
|
* @param {AccountId32Like} arg
|
|
2569
2647
|
* @param {Callback<number | undefined> =} callback
|
|
@@ -2698,17 +2776,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2698
2776
|
* All the validators actively participating in parachain consensus.
|
|
2699
2777
|
* Indices are into the broader validator set.
|
|
2700
2778
|
*
|
|
2701
|
-
* @param {Callback<Array<
|
|
2779
|
+
* @param {Callback<Array<PolkadotPrimitivesV7ValidatorIndex>> =} callback
|
|
2702
2780
|
**/
|
|
2703
|
-
activeValidatorIndices: GenericStorageQuery<Rv, () => Array<
|
|
2781
|
+
activeValidatorIndices: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7ValidatorIndex>>;
|
|
2704
2782
|
|
|
2705
2783
|
/**
|
|
2706
2784
|
* The parachain attestation keys of the validators actively participating in parachain
|
|
2707
2785
|
* consensus. This should be the same length as `ActiveValidatorIndices`.
|
|
2708
2786
|
*
|
|
2709
|
-
* @param {Callback<Array<
|
|
2787
|
+
* @param {Callback<Array<PolkadotPrimitivesV7ValidatorAppPublic>> =} callback
|
|
2710
2788
|
**/
|
|
2711
|
-
activeValidatorKeys: GenericStorageQuery<Rv, () => Array<
|
|
2789
|
+
activeValidatorKeys: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7ValidatorAppPublic>>;
|
|
2712
2790
|
|
|
2713
2791
|
/**
|
|
2714
2792
|
* All allowed relay-parents.
|
|
@@ -2727,42 +2805,20 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2727
2805
|
**/
|
|
2728
2806
|
paraInclusion: {
|
|
2729
2807
|
/**
|
|
2730
|
-
*
|
|
2731
|
-
*
|
|
2732
|
-
*
|
|
2733
|
-
*
|
|
2734
|
-
|
|
2735
|
-
availabilityBitfields: GenericStorageQuery<
|
|
2736
|
-
Rv,
|
|
2737
|
-
(
|
|
2738
|
-
arg: PolkadotPrimitivesV6ValidatorIndex,
|
|
2739
|
-
) => PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord | undefined,
|
|
2740
|
-
PolkadotPrimitivesV6ValidatorIndex
|
|
2741
|
-
>;
|
|
2742
|
-
|
|
2743
|
-
/**
|
|
2744
|
-
* Candidates pending availability by `ParaId`.
|
|
2808
|
+
* Candidates pending availability by `ParaId`. They form a chain starting from the latest
|
|
2809
|
+
* included head of the para.
|
|
2810
|
+
* Use a different prefix post-migration to v1, since the v0 `PendingAvailability` storage
|
|
2811
|
+
* would otherwise have the exact same prefix which could cause undefined behaviour when doing
|
|
2812
|
+
* the migration.
|
|
2745
2813
|
*
|
|
2746
2814
|
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2747
|
-
* @param {Callback<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability | undefined> =} callback
|
|
2815
|
+
* @param {Callback<Array<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability> | undefined> =} callback
|
|
2748
2816
|
**/
|
|
2749
|
-
|
|
2817
|
+
v1: GenericStorageQuery<
|
|
2750
2818
|
Rv,
|
|
2751
2819
|
(
|
|
2752
2820
|
arg: PolkadotParachainPrimitivesPrimitivesId,
|
|
2753
|
-
) => PolkadotRuntimeParachainsInclusionCandidatePendingAvailability | undefined,
|
|
2754
|
-
PolkadotParachainPrimitivesPrimitivesId
|
|
2755
|
-
>;
|
|
2756
|
-
|
|
2757
|
-
/**
|
|
2758
|
-
* The commitments of candidates pending availability, by `ParaId`.
|
|
2759
|
-
*
|
|
2760
|
-
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2761
|
-
* @param {Callback<PolkadotPrimitivesV6CandidateCommitments | undefined> =} callback
|
|
2762
|
-
**/
|
|
2763
|
-
pendingAvailabilityCommitments: GenericStorageQuery<
|
|
2764
|
-
Rv,
|
|
2765
|
-
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV6CandidateCommitments | undefined,
|
|
2821
|
+
) => Array<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability> | undefined,
|
|
2766
2822
|
PolkadotParachainPrimitivesPrimitivesId
|
|
2767
2823
|
>;
|
|
2768
2824
|
|
|
@@ -2790,9 +2846,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2790
2846
|
/**
|
|
2791
2847
|
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
|
2792
2848
|
*
|
|
2793
|
-
* @param {Callback<
|
|
2849
|
+
* @param {Callback<PolkadotPrimitivesV7ScrapedOnChainVotes | undefined> =} callback
|
|
2794
2850
|
**/
|
|
2795
|
-
onChainVotes: GenericStorageQuery<Rv, () =>
|
|
2851
|
+
onChainVotes: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7ScrapedOnChainVotes | undefined>;
|
|
2796
2852
|
|
|
2797
2853
|
/**
|
|
2798
2854
|
* Generic pallet storage query
|
|
@@ -2812,15 +2868,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2812
2868
|
* multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe
|
|
2813
2869
|
* upper bound at 10k.
|
|
2814
2870
|
*
|
|
2815
|
-
* @param {Callback<Array<Array<
|
|
2871
|
+
* @param {Callback<Array<Array<PolkadotPrimitivesV7ValidatorIndex>>> =} callback
|
|
2816
2872
|
**/
|
|
2817
|
-
validatorGroups: GenericStorageQuery<Rv, () => Array<Array<
|
|
2873
|
+
validatorGroups: GenericStorageQuery<Rv, () => Array<Array<PolkadotPrimitivesV7ValidatorIndex>>>;
|
|
2818
2874
|
|
|
2819
2875
|
/**
|
|
2820
|
-
* One entry for each availability core.
|
|
2821
|
-
*
|
|
2822
|
-
* The i'th parachain belongs to the i'th core, with the remaining cores all being
|
|
2823
|
-
* parathread-multiplexers.
|
|
2876
|
+
* One entry for each availability core. The i'th parachain belongs to the i'th core, with the
|
|
2877
|
+
* remaining cores all being on demand parachain multiplexers.
|
|
2824
2878
|
*
|
|
2825
2879
|
* Bounded by the maximum of either of these two values:
|
|
2826
2880
|
* * The number of parachains and parathread multiplexers
|
|
@@ -2845,16 +2899,14 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2845
2899
|
|
|
2846
2900
|
/**
|
|
2847
2901
|
* One entry for each availability core. The `VecDeque` represents the assignments to be
|
|
2848
|
-
* scheduled on that core.
|
|
2849
|
-
*
|
|
2850
|
-
* `CoreState` in the runtime API. The value contained here will not be valid after the end of
|
|
2851
|
-
* a block. Runtime APIs should be used to determine scheduled cores/ for the upcoming block.
|
|
2902
|
+
* scheduled on that core. The value contained here will not be valid after the end of
|
|
2903
|
+
* a block. Runtime APIs should be used to determine scheduled cores for the upcoming block.
|
|
2852
2904
|
*
|
|
2853
|
-
* @param {Callback<Array<[
|
|
2905
|
+
* @param {Callback<Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
|
|
2854
2906
|
**/
|
|
2855
2907
|
claimQueue: GenericStorageQuery<
|
|
2856
2908
|
Rv,
|
|
2857
|
-
() => Array<[
|
|
2909
|
+
() => Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
|
|
2858
2910
|
>;
|
|
2859
2911
|
|
|
2860
2912
|
/**
|
|
@@ -2996,7 +3048,8 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
2996
3048
|
pastCodePruning: GenericStorageQuery<Rv, () => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
|
|
2997
3049
|
|
|
2998
3050
|
/**
|
|
2999
|
-
* The block number at which the planned code change is expected for a
|
|
3051
|
+
* The block number at which the planned code change is expected for a parachain.
|
|
3052
|
+
*
|
|
3000
3053
|
* The change will be applied after the first parablock for this ID included which executes
|
|
3001
3054
|
* in the context of a relay chain block with a number >= `expected_at`.
|
|
3002
3055
|
*
|
|
@@ -3009,6 +3062,20 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3009
3062
|
PolkadotParachainPrimitivesPrimitivesId
|
|
3010
3063
|
>;
|
|
3011
3064
|
|
|
3065
|
+
/**
|
|
3066
|
+
* The list of upcoming future code upgrades.
|
|
3067
|
+
*
|
|
3068
|
+
* Each item is a pair of the parachain and the expected block at which the upgrade should be
|
|
3069
|
+
* applied. The upgrade will be applied at the given relay chain block. In contrast to
|
|
3070
|
+
* [`FutureCodeUpgrades`] this code upgrade will be applied regardless the parachain making any
|
|
3071
|
+
* progress or not.
|
|
3072
|
+
*
|
|
3073
|
+
* Ordered ascending by block number.
|
|
3074
|
+
*
|
|
3075
|
+
* @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
|
|
3076
|
+
**/
|
|
3077
|
+
futureCodeUpgradesAt: GenericStorageQuery<Rv, () => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
|
|
3078
|
+
|
|
3012
3079
|
/**
|
|
3013
3080
|
* The actual future code hash of a para.
|
|
3014
3081
|
*
|
|
@@ -3038,11 +3105,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3038
3105
|
* the format will require migration of parachains.
|
|
3039
3106
|
*
|
|
3040
3107
|
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
3041
|
-
* @param {Callback<
|
|
3108
|
+
* @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
|
|
3042
3109
|
**/
|
|
3043
3110
|
upgradeGoAheadSignal: GenericStorageQuery<
|
|
3044
3111
|
Rv,
|
|
3045
|
-
(arg: PolkadotParachainPrimitivesPrimitivesId) =>
|
|
3112
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV7UpgradeGoAhead | undefined,
|
|
3046
3113
|
PolkadotParachainPrimitivesPrimitivesId
|
|
3047
3114
|
>;
|
|
3048
3115
|
|
|
@@ -3058,11 +3125,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3058
3125
|
* the format will require migration of parachains.
|
|
3059
3126
|
*
|
|
3060
3127
|
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
3061
|
-
* @param {Callback<
|
|
3128
|
+
* @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
|
|
3062
3129
|
**/
|
|
3063
3130
|
upgradeRestrictionSignal: GenericStorageQuery<
|
|
3064
3131
|
Rv,
|
|
3065
|
-
(arg: PolkadotParachainPrimitivesPrimitivesId) =>
|
|
3132
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV7UpgradeRestriction | undefined,
|
|
3066
3133
|
PolkadotParachainPrimitivesPrimitivesId
|
|
3067
3134
|
>;
|
|
3068
3135
|
|
|
@@ -3076,8 +3143,10 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3076
3143
|
upgradeCooldowns: GenericStorageQuery<Rv, () => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
|
|
3077
3144
|
|
|
3078
3145
|
/**
|
|
3079
|
-
* The list of upcoming code upgrades.
|
|
3080
|
-
*
|
|
3146
|
+
* The list of upcoming code upgrades.
|
|
3147
|
+
*
|
|
3148
|
+
* Each item is a pair of which para performs a code upgrade and at which relay-chain block it
|
|
3149
|
+
* is expected at.
|
|
3081
3150
|
*
|
|
3082
3151
|
* Ordered ascending by block number.
|
|
3083
3152
|
*
|
|
@@ -3427,9 +3496,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3427
3496
|
* Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
|
|
3428
3497
|
* When in doubt, use `Sessions` API instead.
|
|
3429
3498
|
*
|
|
3430
|
-
* @param {Callback<Array<
|
|
3499
|
+
* @param {Callback<Array<PolkadotPrimitivesV7AssignmentAppPublic>> =} callback
|
|
3431
3500
|
**/
|
|
3432
|
-
assignmentKeysUnsafe: GenericStorageQuery<Rv, () => Array<
|
|
3501
|
+
assignmentKeysUnsafe: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7AssignmentAppPublic>>;
|
|
3433
3502
|
|
|
3434
3503
|
/**
|
|
3435
3504
|
* The earliest session for which previous session info is stored.
|
|
@@ -3444,9 +3513,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3444
3513
|
* Does not have any entries before the session index in the first session change notification.
|
|
3445
3514
|
*
|
|
3446
3515
|
* @param {number} arg
|
|
3447
|
-
* @param {Callback<
|
|
3516
|
+
* @param {Callback<PolkadotPrimitivesV7SessionInfo | undefined> =} callback
|
|
3448
3517
|
**/
|
|
3449
|
-
sessions: GenericStorageQuery<Rv, (arg: number) =>
|
|
3518
|
+
sessions: GenericStorageQuery<Rv, (arg: number) => PolkadotPrimitivesV7SessionInfo | undefined, number>;
|
|
3450
3519
|
|
|
3451
3520
|
/**
|
|
3452
3521
|
* The validator account keys of the validators actively participating in parachain consensus.
|
|
@@ -3460,11 +3529,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3460
3529
|
* Executor parameter set for a given session index
|
|
3461
3530
|
*
|
|
3462
3531
|
* @param {number} arg
|
|
3463
|
-
* @param {Callback<
|
|
3532
|
+
* @param {Callback<PolkadotPrimitivesV7ExecutorParams | undefined> =} callback
|
|
3464
3533
|
**/
|
|
3465
3534
|
sessionExecutorParams: GenericStorageQuery<
|
|
3466
3535
|
Rv,
|
|
3467
|
-
(arg: number) =>
|
|
3536
|
+
(arg: number) => PolkadotPrimitivesV7ExecutorParams | undefined,
|
|
3468
3537
|
number
|
|
3469
3538
|
>;
|
|
3470
3539
|
|
|
@@ -3489,11 +3558,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3489
3558
|
* All ongoing or concluded disputes for the last several sessions.
|
|
3490
3559
|
*
|
|
3491
3560
|
* @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
|
|
3492
|
-
* @param {Callback<
|
|
3561
|
+
* @param {Callback<PolkadotPrimitivesV7DisputeState | undefined> =} callback
|
|
3493
3562
|
**/
|
|
3494
3563
|
disputes: GenericStorageQuery<
|
|
3495
3564
|
Rv,
|
|
3496
|
-
(arg: [number, PolkadotCorePrimitivesCandidateHash]) =>
|
|
3565
|
+
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV7DisputeState | undefined,
|
|
3497
3566
|
[number, PolkadotCorePrimitivesCandidateHash]
|
|
3498
3567
|
>;
|
|
3499
3568
|
|
|
@@ -3502,11 +3571,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3502
3571
|
* This storage is used for slashing.
|
|
3503
3572
|
*
|
|
3504
3573
|
* @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
|
|
3505
|
-
* @param {Callback<Array<
|
|
3574
|
+
* @param {Callback<Array<PolkadotPrimitivesV7ValidatorIndex> | undefined> =} callback
|
|
3506
3575
|
**/
|
|
3507
3576
|
backersOnDisputes: GenericStorageQuery<
|
|
3508
3577
|
Rv,
|
|
3509
|
-
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<
|
|
3578
|
+
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV7ValidatorIndex> | undefined,
|
|
3510
3579
|
[number, PolkadotCorePrimitivesCandidateHash]
|
|
3511
3580
|
>;
|
|
3512
3581
|
|
|
@@ -3546,11 +3615,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3546
3615
|
* Validators pending dispute slashes.
|
|
3547
3616
|
*
|
|
3548
3617
|
* @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
|
|
3549
|
-
* @param {Callback<
|
|
3618
|
+
* @param {Callback<PolkadotPrimitivesV7SlashingPendingSlashes | undefined> =} callback
|
|
3550
3619
|
**/
|
|
3551
3620
|
unappliedSlashes: GenericStorageQuery<
|
|
3552
3621
|
Rv,
|
|
3553
|
-
(arg: [number, PolkadotCorePrimitivesCandidateHash]) =>
|
|
3622
|
+
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV7SlashingPendingSlashes | undefined,
|
|
3554
3623
|
[number, PolkadotCorePrimitivesCandidateHash]
|
|
3555
3624
|
>;
|
|
3556
3625
|
|
|
@@ -3571,38 +3640,55 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3571
3640
|
* Pallet `OnDemandAssignmentProvider`'s storage queries
|
|
3572
3641
|
**/
|
|
3573
3642
|
onDemandAssignmentProvider: {
|
|
3574
|
-
/**
|
|
3575
|
-
* Keeps track of the multiplier used to calculate the current spot price for the on demand
|
|
3576
|
-
* assigner.
|
|
3577
|
-
*
|
|
3578
|
-
* @param {Callback<FixedU128> =} callback
|
|
3579
|
-
**/
|
|
3580
|
-
spotTraffic: GenericStorageQuery<Rv, () => FixedU128>;
|
|
3581
|
-
|
|
3582
|
-
/**
|
|
3583
|
-
* The order storage entry. Uses a VecDeque to be able to push to the front of the
|
|
3584
|
-
* queue from the scheduler on session boundaries.
|
|
3585
|
-
*
|
|
3586
|
-
* @param {Callback<Array<PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder>> =} callback
|
|
3587
|
-
**/
|
|
3588
|
-
onDemandQueue: GenericStorageQuery<Rv, () => Array<PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder>>;
|
|
3589
|
-
|
|
3590
3643
|
/**
|
|
3591
3644
|
* Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in
|
|
3592
3645
|
* it's lookahead. Keeping track of this affinity prevents parallel execution of the same
|
|
3593
3646
|
* `ParaId` on two or more `CoreIndex`es.
|
|
3594
3647
|
*
|
|
3595
3648
|
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
3596
|
-
* @param {Callback<
|
|
3649
|
+
* @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount | undefined> =} callback
|
|
3597
3650
|
**/
|
|
3598
3651
|
paraIdAffinity: GenericStorageQuery<
|
|
3599
3652
|
Rv,
|
|
3600
3653
|
(
|
|
3601
3654
|
arg: PolkadotParachainPrimitivesPrimitivesId,
|
|
3602
|
-
) =>
|
|
3655
|
+
) => PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount | undefined,
|
|
3603
3656
|
PolkadotParachainPrimitivesPrimitivesId
|
|
3604
3657
|
>;
|
|
3605
3658
|
|
|
3659
|
+
/**
|
|
3660
|
+
* Overall status of queue (both free + affinity entries)
|
|
3661
|
+
*
|
|
3662
|
+
* @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType> =} callback
|
|
3663
|
+
**/
|
|
3664
|
+
queueStatus: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType>;
|
|
3665
|
+
|
|
3666
|
+
/**
|
|
3667
|
+
* Priority queue for all orders which don't yet (or not any more) have any core affinity.
|
|
3668
|
+
*
|
|
3669
|
+
* @param {Callback<BinaryHeapEnqueuedOrder> =} callback
|
|
3670
|
+
**/
|
|
3671
|
+
freeEntries: GenericStorageQuery<Rv, () => BinaryHeapEnqueuedOrder>;
|
|
3672
|
+
|
|
3673
|
+
/**
|
|
3674
|
+
* Queue entries that are currently bound to a particular core due to core affinity.
|
|
3675
|
+
*
|
|
3676
|
+
* @param {PolkadotPrimitivesV7CoreIndex} arg
|
|
3677
|
+
* @param {Callback<BinaryHeapEnqueuedOrder> =} callback
|
|
3678
|
+
**/
|
|
3679
|
+
affinityEntries: GenericStorageQuery<
|
|
3680
|
+
Rv,
|
|
3681
|
+
(arg: PolkadotPrimitivesV7CoreIndex) => BinaryHeapEnqueuedOrder,
|
|
3682
|
+
PolkadotPrimitivesV7CoreIndex
|
|
3683
|
+
>;
|
|
3684
|
+
|
|
3685
|
+
/**
|
|
3686
|
+
* Keeps track of accumulated revenue from on demand order sales.
|
|
3687
|
+
*
|
|
3688
|
+
* @param {Callback<Array<bigint>> =} callback
|
|
3689
|
+
**/
|
|
3690
|
+
revenue: GenericStorageQuery<Rv, () => Array<bigint>>;
|
|
3691
|
+
|
|
3606
3692
|
/**
|
|
3607
3693
|
* Generic pallet storage query
|
|
3608
3694
|
**/
|
|
@@ -3618,13 +3704,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3618
3704
|
* Assignments as of the given block number. They will go into state once the block number is
|
|
3619
3705
|
* reached (and replace whatever was in there before).
|
|
3620
3706
|
*
|
|
3621
|
-
* @param {[number,
|
|
3707
|
+
* @param {[number, PolkadotPrimitivesV7CoreIndex]} arg
|
|
3622
3708
|
* @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined> =} callback
|
|
3623
3709
|
**/
|
|
3624
3710
|
coreSchedules: GenericStorageQuery<
|
|
3625
3711
|
Rv,
|
|
3626
|
-
(arg: [number,
|
|
3627
|
-
[number,
|
|
3712
|
+
(arg: [number, PolkadotPrimitivesV7CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
|
|
3713
|
+
[number, PolkadotPrimitivesV7CoreIndex]
|
|
3628
3714
|
>;
|
|
3629
3715
|
|
|
3630
3716
|
/**
|
|
@@ -3633,13 +3719,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3633
3719
|
* They will be picked from `PendingAssignments` once we reach the scheduled block number in
|
|
3634
3720
|
* `PendingAssignments`.
|
|
3635
3721
|
*
|
|
3636
|
-
* @param {
|
|
3722
|
+
* @param {PolkadotPrimitivesV7CoreIndex} arg
|
|
3637
3723
|
* @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor> =} callback
|
|
3638
3724
|
**/
|
|
3639
3725
|
coreDescriptors: GenericStorageQuery<
|
|
3640
3726
|
Rv,
|
|
3641
|
-
(arg:
|
|
3642
|
-
|
|
3727
|
+
(arg: PolkadotPrimitivesV7CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
|
|
3728
|
+
PolkadotPrimitivesV7CoreIndex
|
|
3643
3729
|
>;
|
|
3644
3730
|
|
|
3645
3731
|
/**
|
|
@@ -3947,6 +4033,31 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
3947
4033
|
**/
|
|
3948
4034
|
xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
|
|
3949
4035
|
|
|
4036
|
+
/**
|
|
4037
|
+
* Whether or not incoming XCMs (both executed locally and received) should be recorded.
|
|
4038
|
+
* Only one XCM program will be recorded at a time.
|
|
4039
|
+
* This is meant to be used in runtime APIs, and it's advised it stays false
|
|
4040
|
+
* for all other use cases, so as to not degrade regular performance.
|
|
4041
|
+
*
|
|
4042
|
+
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
4043
|
+
* implementation in the XCM executor configuration.
|
|
4044
|
+
*
|
|
4045
|
+
* @param {Callback<boolean> =} callback
|
|
4046
|
+
**/
|
|
4047
|
+
shouldRecordXcm: GenericStorageQuery<Rv, () => boolean>;
|
|
4048
|
+
|
|
4049
|
+
/**
|
|
4050
|
+
* If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
|
|
4051
|
+
* will be stored here.
|
|
4052
|
+
* Runtime APIs can fetch the XCM that was executed by accessing this value.
|
|
4053
|
+
*
|
|
4054
|
+
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
4055
|
+
* implementation in the XCM executor configuration.
|
|
4056
|
+
*
|
|
4057
|
+
* @param {Callback<StagingXcmV4Xcm | undefined> =} callback
|
|
4058
|
+
**/
|
|
4059
|
+
recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
|
|
4060
|
+
|
|
3950
4061
|
/**
|
|
3951
4062
|
* Generic pallet storage query
|
|
3952
4063
|
**/
|