@dedot/chaintypes 0.0.1-alpha.100
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/LICENSE +201 -0
- package/README.md +5 -0
- package/aleph/consts.d.ts +676 -0
- package/aleph/errors.d.ts +1054 -0
- package/aleph/events.d.ts +1201 -0
- package/aleph/index.d.ts +27 -0
- package/aleph/json-rpc.d.ts +85 -0
- package/aleph/query.d.ts +1573 -0
- package/aleph/runtime.d.ts +596 -0
- package/aleph/tx.d.ts +3440 -0
- package/aleph/types.d.ts +3951 -0
- package/astar/consts.d.ts +737 -0
- package/astar/errors.d.ts +1508 -0
- package/astar/events.d.ts +1878 -0
- package/astar/index.d.ts +27 -0
- package/astar/json-rpc.d.ts +131 -0
- package/astar/query.d.ts +1851 -0
- package/astar/runtime.d.ts +803 -0
- package/astar/tx.d.ts +4516 -0
- package/astar/types.d.ts +6141 -0
- package/index.d.ts +11 -0
- package/index.js +1 -0
- package/index.ts +11 -0
- package/kusama/consts.d.ts +1578 -0
- package/kusama/errors.d.ts +3152 -0
- package/kusama/events.d.ts +3579 -0
- package/kusama/index.d.ts +27 -0
- package/kusama/json-rpc.d.ts +103 -0
- package/kusama/query.d.ts +4229 -0
- package/kusama/runtime.d.ts +1196 -0
- package/kusama/tx.d.ts +9040 -0
- package/kusama/types.d.ts +11369 -0
- package/kusamaAssetHub/consts.d.ts +759 -0
- package/kusamaAssetHub/errors.d.ts +1494 -0
- package/kusamaAssetHub/events.d.ts +2491 -0
- package/kusamaAssetHub/index.d.ts +27 -0
- package/kusamaAssetHub/json-rpc.d.ts +89 -0
- package/kusamaAssetHub/query.d.ts +1662 -0
- package/kusamaAssetHub/runtime.d.ts +555 -0
- package/kusamaAssetHub/tx.d.ts +6192 -0
- package/kusamaAssetHub/types.d.ts +6831 -0
- package/moonbeam/consts.d.ts +1010 -0
- package/moonbeam/errors.d.ts +1932 -0
- package/moonbeam/events.d.ts +2928 -0
- package/moonbeam/index.d.ts +27 -0
- package/moonbeam/json-rpc.d.ts +137 -0
- package/moonbeam/query.d.ts +2282 -0
- package/moonbeam/runtime.d.ts +724 -0
- package/moonbeam/tx.d.ts +6222 -0
- package/moonbeam/types.d.ts +8165 -0
- package/package.json +25 -0
- package/polkadot/consts.d.ts +1313 -0
- package/polkadot/errors.d.ts +2575 -0
- package/polkadot/events.d.ts +2757 -0
- package/polkadot/index.d.ts +27 -0
- package/polkadot/json-rpc.d.ts +103 -0
- package/polkadot/query.d.ts +3693 -0
- package/polkadot/runtime.d.ts +1196 -0
- package/polkadot/tx.d.ts +7706 -0
- package/polkadot/types.d.ts +9893 -0
- package/polkadotAssetHub/consts.d.ts +724 -0
- package/polkadotAssetHub/errors.d.ts +1465 -0
- package/polkadotAssetHub/events.d.ts +2462 -0
- package/polkadotAssetHub/index.d.ts +27 -0
- package/polkadotAssetHub/json-rpc.d.ts +89 -0
- package/polkadotAssetHub/query.d.ts +1640 -0
- package/polkadotAssetHub/runtime.d.ts +558 -0
- package/polkadotAssetHub/tx.d.ts +6121 -0
- package/polkadotAssetHub/types.d.ts +6739 -0
- package/rococo/consts.d.ts +1423 -0
- package/rococo/errors.d.ts +2783 -0
- package/rococo/events.d.ts +3361 -0
- package/rococo/index.d.ts +27 -0
- package/rococo/json-rpc.d.ts +103 -0
- package/rococo/query.d.ts +3561 -0
- package/rococo/runtime.d.ts +1257 -0
- package/rococo/tx.d.ts +10721 -0
- package/rococo/types.d.ts +14828 -0
- package/rococoAssetHub/consts.d.ts +787 -0
- package/rococoAssetHub/errors.d.ts +1523 -0
- package/rococoAssetHub/events.d.ts +2517 -0
- package/rococoAssetHub/index.d.ts +27 -0
- package/rococoAssetHub/json-rpc.d.ts +89 -0
- package/rococoAssetHub/query.d.ts +1682 -0
- package/rococoAssetHub/runtime.d.ts +704 -0
- package/rococoAssetHub/tx.d.ts +9013 -0
- package/rococoAssetHub/types.d.ts +12352 -0
- package/substrate/consts.d.ts +2223 -0
- package/substrate/errors.d.ts +4023 -0
- package/substrate/events.d.ts +5430 -0
- package/substrate/index.d.ts +27 -0
- package/substrate/json-rpc.d.ts +101 -0
- package/substrate/query.d.ts +4083 -0
- package/substrate/runtime.d.ts +971 -0
- package/substrate/tx.d.ts +12501 -0
- package/substrate/types.d.ts +13380 -0
- package/westendAssetHub/consts.d.ts +787 -0
- package/westendAssetHub/errors.d.ts +1523 -0
- package/westendAssetHub/events.d.ts +2477 -0
- package/westendAssetHub/index.d.ts +27 -0
- package/westendAssetHub/json-rpc.d.ts +89 -0
- package/westendAssetHub/query.d.ts +1656 -0
- package/westendAssetHub/runtime.d.ts +652 -0
- package/westendAssetHub/tx.d.ts +8984 -0
- package/westendAssetHub/types.d.ts +12292 -0
|
@@ -0,0 +1,3561 @@
|
|
|
1
|
+
// Generated by @dedot/codegen
|
|
2
|
+
|
|
3
|
+
import type { GenericChainStorage, GenericStorageQuery, Callback, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type {
|
|
5
|
+
AccountId32,
|
|
6
|
+
AccountId32Like,
|
|
7
|
+
H256,
|
|
8
|
+
Bytes,
|
|
9
|
+
Digest,
|
|
10
|
+
Phase,
|
|
11
|
+
FixedBytes,
|
|
12
|
+
FixedU128,
|
|
13
|
+
BytesLike,
|
|
14
|
+
EthereumAddress,
|
|
15
|
+
EthereumAddressLike,
|
|
16
|
+
Data,
|
|
17
|
+
FixedArray,
|
|
18
|
+
} from 'dedot/codecs';
|
|
19
|
+
import type {
|
|
20
|
+
FrameSystemAccountInfo,
|
|
21
|
+
FrameSupportDispatchPerDispatchClass,
|
|
22
|
+
FrameSystemEventRecord,
|
|
23
|
+
FrameSystemLastRuntimeUpgradeInfo,
|
|
24
|
+
FrameSystemCodeUpgradeAuthorization,
|
|
25
|
+
SpConsensusBabeAppPublic,
|
|
26
|
+
SpConsensusSlotsSlot,
|
|
27
|
+
SpConsensusBabeDigestsNextConfigDescriptor,
|
|
28
|
+
SpConsensusBabeDigestsPreDigest,
|
|
29
|
+
SpConsensusBabeBabeEpochConfiguration,
|
|
30
|
+
PalletBalancesAccountData,
|
|
31
|
+
PalletBalancesBalanceLock,
|
|
32
|
+
PalletBalancesReserveData,
|
|
33
|
+
PalletBalancesIdAmount,
|
|
34
|
+
PalletBalancesIdAmount002,
|
|
35
|
+
RococoRuntimeRuntimeParametersValue,
|
|
36
|
+
RococoRuntimeRuntimeParametersKey,
|
|
37
|
+
PalletTransactionPaymentReleases,
|
|
38
|
+
SpStakingOffenceOffenceDetails,
|
|
39
|
+
RococoRuntimeSessionKeys,
|
|
40
|
+
SpCoreCryptoKeyTypeId,
|
|
41
|
+
PalletGrandpaStoredState,
|
|
42
|
+
PalletGrandpaStoredPendingChange,
|
|
43
|
+
SpConsensusGrandpaAppPublic,
|
|
44
|
+
SpAuthorityDiscoveryAppPublic,
|
|
45
|
+
PalletTreasuryProposal,
|
|
46
|
+
PalletTreasurySpendStatus,
|
|
47
|
+
PalletConvictionVotingVoteVoting,
|
|
48
|
+
PalletReferendaReferendumInfo,
|
|
49
|
+
PalletRankedCollectiveMemberRecord,
|
|
50
|
+
PalletRankedCollectiveVoteRecord,
|
|
51
|
+
PalletReferendaReferendumInfoTally,
|
|
52
|
+
PolkadotRuntimeCommonClaimsStatementKind,
|
|
53
|
+
PalletIdentityRegistration,
|
|
54
|
+
PalletIdentityRegistrarInfo,
|
|
55
|
+
PalletIdentityAuthorityProperties,
|
|
56
|
+
PalletSocietyGroupParams,
|
|
57
|
+
PalletSocietyMemberRecord,
|
|
58
|
+
PalletSocietyPayoutRecord,
|
|
59
|
+
PalletSocietyBid,
|
|
60
|
+
PalletSocietyCandidacy,
|
|
61
|
+
PalletSocietyVote,
|
|
62
|
+
PalletSocietyIntakeRecord,
|
|
63
|
+
PalletSocietyTally,
|
|
64
|
+
PalletRecoveryRecoveryConfig,
|
|
65
|
+
PalletRecoveryActiveRecovery,
|
|
66
|
+
PalletVestingVestingInfo,
|
|
67
|
+
PalletVestingReleases,
|
|
68
|
+
PalletSchedulerScheduled,
|
|
69
|
+
PalletSchedulerRetryConfig,
|
|
70
|
+
PalletProxyProxyDefinition,
|
|
71
|
+
PalletProxyAnnouncement,
|
|
72
|
+
PalletMultisigMultisig,
|
|
73
|
+
PalletPreimageOldRequestStatus,
|
|
74
|
+
PalletPreimageRequestStatus,
|
|
75
|
+
PolkadotRuntimeCommonImplsVersionedLocatableAsset,
|
|
76
|
+
PalletBountiesBounty,
|
|
77
|
+
PalletChildBountiesChildBounty,
|
|
78
|
+
PalletNisBid,
|
|
79
|
+
PalletNisSummaryRecord,
|
|
80
|
+
PalletNisReceiptRecord,
|
|
81
|
+
PolkadotRuntimeParachainsConfigurationHostConfiguration,
|
|
82
|
+
PolkadotPrimitivesV7ValidatorIndex,
|
|
83
|
+
PolkadotPrimitivesV7ValidatorAppPublic,
|
|
84
|
+
PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
|
|
85
|
+
PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
|
|
86
|
+
PolkadotParachainPrimitivesPrimitivesId,
|
|
87
|
+
PolkadotPrimitivesV7ScrapedOnChainVotes,
|
|
88
|
+
PolkadotRuntimeParachainsSchedulerPalletCoreOccupied,
|
|
89
|
+
PolkadotPrimitivesV7CoreIndex,
|
|
90
|
+
PolkadotRuntimeParachainsSchedulerPalletParasEntry,
|
|
91
|
+
PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
|
|
92
|
+
PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
93
|
+
PolkadotRuntimeParachainsParasParaLifecycle,
|
|
94
|
+
PolkadotParachainPrimitivesPrimitivesHeadData,
|
|
95
|
+
PolkadotRuntimeParachainsParasParaPastCodeMeta,
|
|
96
|
+
PolkadotPrimitivesV7UpgradeGoAhead,
|
|
97
|
+
PolkadotPrimitivesV7UpgradeRestriction,
|
|
98
|
+
PolkadotRuntimeParachainsParasParaGenesisArgs,
|
|
99
|
+
PolkadotParachainPrimitivesPrimitivesValidationCode,
|
|
100
|
+
PolkadotRuntimeParachainsInitializerBufferedSessionChange,
|
|
101
|
+
PolkadotCorePrimitivesInboundDownwardMessage,
|
|
102
|
+
PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest,
|
|
103
|
+
PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
104
|
+
PolkadotRuntimeParachainsHrmpHrmpChannel,
|
|
105
|
+
PolkadotCorePrimitivesInboundHrmpMessage,
|
|
106
|
+
PolkadotPrimitivesV7AssignmentAppPublic,
|
|
107
|
+
PolkadotPrimitivesV7SessionInfo,
|
|
108
|
+
PolkadotPrimitivesV7ExecutorParams,
|
|
109
|
+
PolkadotPrimitivesV7DisputeState,
|
|
110
|
+
PolkadotCorePrimitivesCandidateHash,
|
|
111
|
+
PolkadotPrimitivesV7SlashingPendingSlashes,
|
|
112
|
+
PalletMessageQueueBookState,
|
|
113
|
+
PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
|
|
114
|
+
PalletMessageQueuePage,
|
|
115
|
+
PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount,
|
|
116
|
+
PolkadotRuntimeParachainsAssignerOnDemandQueueStatusType,
|
|
117
|
+
BinaryHeapEnqueuedOrder,
|
|
118
|
+
PolkadotRuntimeParachainsAssignerCoretimeSchedule,
|
|
119
|
+
PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
|
|
120
|
+
PolkadotRuntimeCommonParasRegistrarParaInfo,
|
|
121
|
+
PolkadotRuntimeCommonCrowdloanFundInfo,
|
|
122
|
+
PalletXcmQueryStatus,
|
|
123
|
+
XcmVersionedLocation,
|
|
124
|
+
SpWeightsWeightV2Weight,
|
|
125
|
+
PalletXcmVersionMigrationStage,
|
|
126
|
+
PalletXcmRemoteLockedFungibleRecord,
|
|
127
|
+
XcmVersionedAssetId,
|
|
128
|
+
StagingXcmV4Xcm,
|
|
129
|
+
SpConsensusBeefyEcdsaCryptoPublic,
|
|
130
|
+
SpConsensusBeefyMmrBeefyAuthoritySet,
|
|
131
|
+
PolkadotRuntimeCommonAssignedSlotsParachainTemporarySlot,
|
|
132
|
+
PalletStateTrieMigrationMigrationTask,
|
|
133
|
+
PalletStateTrieMigrationMigrationLimits,
|
|
134
|
+
} from './types';
|
|
135
|
+
|
|
136
|
+
export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
|
|
137
|
+
/**
|
|
138
|
+
* Pallet `System`'s storage queries
|
|
139
|
+
**/
|
|
140
|
+
system: {
|
|
141
|
+
/**
|
|
142
|
+
* The full account information for a particular account ID.
|
|
143
|
+
*
|
|
144
|
+
* @param {AccountId32Like} arg
|
|
145
|
+
* @param {Callback<FrameSystemAccountInfo> =} callback
|
|
146
|
+
**/
|
|
147
|
+
account: GenericStorageQuery<Rv, (arg: AccountId32Like) => FrameSystemAccountInfo, AccountId32>;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Total extrinsics count for the current block.
|
|
151
|
+
*
|
|
152
|
+
* @param {Callback<number | undefined> =} callback
|
|
153
|
+
**/
|
|
154
|
+
extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Whether all inherents have been applied.
|
|
158
|
+
*
|
|
159
|
+
* @param {Callback<boolean> =} callback
|
|
160
|
+
**/
|
|
161
|
+
inherentsApplied: GenericStorageQuery<Rv, () => boolean>;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* The current weight for the block.
|
|
165
|
+
*
|
|
166
|
+
* @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
|
|
167
|
+
**/
|
|
168
|
+
blockWeight: GenericStorageQuery<Rv, () => FrameSupportDispatchPerDispatchClass>;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
172
|
+
*
|
|
173
|
+
* @param {Callback<number | undefined> =} callback
|
|
174
|
+
**/
|
|
175
|
+
allExtrinsicsLen: GenericStorageQuery<Rv, () => number | undefined>;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Map of block numbers to block hashes.
|
|
179
|
+
*
|
|
180
|
+
* @param {number} arg
|
|
181
|
+
* @param {Callback<H256> =} callback
|
|
182
|
+
**/
|
|
183
|
+
blockHash: GenericStorageQuery<Rv, (arg: number) => H256, number>;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
187
|
+
*
|
|
188
|
+
* @param {number} arg
|
|
189
|
+
* @param {Callback<Bytes> =} callback
|
|
190
|
+
**/
|
|
191
|
+
extrinsicData: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* The current block number being processed. Set by `execute_block`.
|
|
195
|
+
*
|
|
196
|
+
* @param {Callback<number> =} callback
|
|
197
|
+
**/
|
|
198
|
+
number: GenericStorageQuery<Rv, () => number>;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Hash of the previous block.
|
|
202
|
+
*
|
|
203
|
+
* @param {Callback<H256> =} callback
|
|
204
|
+
**/
|
|
205
|
+
parentHash: GenericStorageQuery<Rv, () => H256>;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Digest of the current block, also part of the block header.
|
|
209
|
+
*
|
|
210
|
+
* @param {Callback<Digest> =} callback
|
|
211
|
+
**/
|
|
212
|
+
digest: GenericStorageQuery<Rv, () => Digest>;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Events deposited for the current block.
|
|
216
|
+
*
|
|
217
|
+
* NOTE: The item is unbound and should therefore never be read on chain.
|
|
218
|
+
* It could otherwise inflate the PoV size of a block.
|
|
219
|
+
*
|
|
220
|
+
* Events have a large in-memory size. Box the events to not go out-of-memory
|
|
221
|
+
* just in case someone still reads them from within the runtime.
|
|
222
|
+
*
|
|
223
|
+
* @param {Callback<Array<FrameSystemEventRecord>> =} callback
|
|
224
|
+
**/
|
|
225
|
+
events: GenericStorageQuery<Rv, () => Array<FrameSystemEventRecord>>;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* The number of events in the `Events<T>` list.
|
|
229
|
+
*
|
|
230
|
+
* @param {Callback<number> =} callback
|
|
231
|
+
**/
|
|
232
|
+
eventCount: GenericStorageQuery<Rv, () => number>;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Mapping between a topic (represented by T::Hash) and a vector of indexes
|
|
236
|
+
* of events in the `<Events<T>>` list.
|
|
237
|
+
*
|
|
238
|
+
* All topic vectors have deterministic storage locations depending on the topic. This
|
|
239
|
+
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
|
240
|
+
* in case of changes fetch the list of events of interest.
|
|
241
|
+
*
|
|
242
|
+
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
|
243
|
+
* the `EventIndex` then in case if the topic has the same contents on the next block
|
|
244
|
+
* no notification will be triggered thus the event might be lost.
|
|
245
|
+
*
|
|
246
|
+
* @param {H256} arg
|
|
247
|
+
* @param {Callback<Array<[number, number]>> =} callback
|
|
248
|
+
**/
|
|
249
|
+
eventTopics: GenericStorageQuery<Rv, (arg: H256) => Array<[number, number]>, H256>;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
253
|
+
*
|
|
254
|
+
* @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
|
|
255
|
+
**/
|
|
256
|
+
lastRuntimeUpgrade: GenericStorageQuery<Rv, () => FrameSystemLastRuntimeUpgradeInfo | undefined>;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
260
|
+
*
|
|
261
|
+
* @param {Callback<boolean> =} callback
|
|
262
|
+
**/
|
|
263
|
+
upgradedToU32RefCount: GenericStorageQuery<Rv, () => boolean>;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
|
|
267
|
+
* (default) if not.
|
|
268
|
+
*
|
|
269
|
+
* @param {Callback<boolean> =} callback
|
|
270
|
+
**/
|
|
271
|
+
upgradedToTripleRefCount: GenericStorageQuery<Rv, () => boolean>;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* The execution phase of the block.
|
|
275
|
+
*
|
|
276
|
+
* @param {Callback<Phase | undefined> =} callback
|
|
277
|
+
**/
|
|
278
|
+
executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* `Some` if a code upgrade has been authorized.
|
|
282
|
+
*
|
|
283
|
+
* @param {Callback<FrameSystemCodeUpgradeAuthorization | undefined> =} callback
|
|
284
|
+
**/
|
|
285
|
+
authorizedUpgrade: GenericStorageQuery<Rv, () => FrameSystemCodeUpgradeAuthorization | undefined>;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Generic pallet storage query
|
|
289
|
+
**/
|
|
290
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* Pallet `Babe`'s storage queries
|
|
294
|
+
**/
|
|
295
|
+
babe: {
|
|
296
|
+
/**
|
|
297
|
+
* Current epoch index.
|
|
298
|
+
*
|
|
299
|
+
* @param {Callback<bigint> =} callback
|
|
300
|
+
**/
|
|
301
|
+
epochIndex: GenericStorageQuery<Rv, () => bigint>;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Current epoch authorities.
|
|
305
|
+
*
|
|
306
|
+
* @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
|
|
307
|
+
**/
|
|
308
|
+
authorities: GenericStorageQuery<Rv, () => Array<[SpConsensusBabeAppPublic, bigint]>>;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* The slot at which the first epoch actually started. This is 0
|
|
312
|
+
* until the first block of the chain.
|
|
313
|
+
*
|
|
314
|
+
* @param {Callback<SpConsensusSlotsSlot> =} callback
|
|
315
|
+
**/
|
|
316
|
+
genesisSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Current slot number.
|
|
320
|
+
*
|
|
321
|
+
* @param {Callback<SpConsensusSlotsSlot> =} callback
|
|
322
|
+
**/
|
|
323
|
+
currentSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* The epoch randomness for the *current* epoch.
|
|
327
|
+
*
|
|
328
|
+
* # Security
|
|
329
|
+
*
|
|
330
|
+
* This MUST NOT be used for gambling, as it can be influenced by a
|
|
331
|
+
* malicious validator in the short term. It MAY be used in many
|
|
332
|
+
* cryptographic protocols, however, so long as one remembers that this
|
|
333
|
+
* (like everything else on-chain) it is public. For example, it can be
|
|
334
|
+
* used where a number is needed that cannot have been chosen by an
|
|
335
|
+
* adversary, for purposes such as public-coin zero-knowledge proofs.
|
|
336
|
+
*
|
|
337
|
+
* @param {Callback<FixedBytes<32>> =} callback
|
|
338
|
+
**/
|
|
339
|
+
randomness: GenericStorageQuery<Rv, () => FixedBytes<32>>;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Pending epoch configuration change that will be applied when the next epoch is enacted.
|
|
343
|
+
*
|
|
344
|
+
* @param {Callback<SpConsensusBabeDigestsNextConfigDescriptor | undefined> =} callback
|
|
345
|
+
**/
|
|
346
|
+
pendingEpochConfigChange: GenericStorageQuery<Rv, () => SpConsensusBabeDigestsNextConfigDescriptor | undefined>;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Next epoch randomness.
|
|
350
|
+
*
|
|
351
|
+
* @param {Callback<FixedBytes<32>> =} callback
|
|
352
|
+
**/
|
|
353
|
+
nextRandomness: GenericStorageQuery<Rv, () => FixedBytes<32>>;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Next epoch authorities.
|
|
357
|
+
*
|
|
358
|
+
* @param {Callback<Array<[SpConsensusBabeAppPublic, bigint]>> =} callback
|
|
359
|
+
**/
|
|
360
|
+
nextAuthorities: GenericStorageQuery<Rv, () => Array<[SpConsensusBabeAppPublic, bigint]>>;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Randomness under construction.
|
|
364
|
+
*
|
|
365
|
+
* We make a trade-off between storage accesses and list length.
|
|
366
|
+
* We store the under-construction randomness in segments of up to
|
|
367
|
+
* `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
|
|
368
|
+
*
|
|
369
|
+
* Once a segment reaches this length, we begin the next one.
|
|
370
|
+
* We reset all segments and return to `0` at the beginning of every
|
|
371
|
+
* epoch.
|
|
372
|
+
*
|
|
373
|
+
* @param {Callback<number> =} callback
|
|
374
|
+
**/
|
|
375
|
+
segmentIndex: GenericStorageQuery<Rv, () => number>;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
|
379
|
+
*
|
|
380
|
+
* @param {number} arg
|
|
381
|
+
* @param {Callback<Array<FixedBytes<32>>> =} callback
|
|
382
|
+
**/
|
|
383
|
+
underConstruction: GenericStorageQuery<Rv, (arg: number) => Array<FixedBytes<32>>, number>;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Temporary value (cleared at block finalization) which is `Some`
|
|
387
|
+
* if per-block initialization has already been called for current block.
|
|
388
|
+
*
|
|
389
|
+
* @param {Callback<SpConsensusBabeDigestsPreDigest | undefined | undefined> =} callback
|
|
390
|
+
**/
|
|
391
|
+
initialized: GenericStorageQuery<Rv, () => SpConsensusBabeDigestsPreDigest | undefined | undefined>;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* This field should always be populated during block processing unless
|
|
395
|
+
* secondary plain slots are enabled (which don't contain a VRF output).
|
|
396
|
+
*
|
|
397
|
+
* It is set in `on_finalize`, before it will contain the value from the last block.
|
|
398
|
+
*
|
|
399
|
+
* @param {Callback<FixedBytes<32> | undefined> =} callback
|
|
400
|
+
**/
|
|
401
|
+
authorVrfRandomness: GenericStorageQuery<Rv, () => FixedBytes<32> | undefined>;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* The block numbers when the last and current epoch have started, respectively `N-1` and
|
|
405
|
+
* `N`.
|
|
406
|
+
* NOTE: We track this is in order to annotate the block number when a given pool of
|
|
407
|
+
* entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in
|
|
408
|
+
* slots, which may be skipped, the block numbers may not line up with the slot numbers.
|
|
409
|
+
*
|
|
410
|
+
* @param {Callback<[number, number]> =} callback
|
|
411
|
+
**/
|
|
412
|
+
epochStart: GenericStorageQuery<Rv, () => [number, number]>;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* How late the current block is compared to its parent.
|
|
416
|
+
*
|
|
417
|
+
* This entry is populated as part of block execution and is cleaned up
|
|
418
|
+
* on block finalization. Querying this storage entry outside of block
|
|
419
|
+
* execution context should always yield zero.
|
|
420
|
+
*
|
|
421
|
+
* @param {Callback<number> =} callback
|
|
422
|
+
**/
|
|
423
|
+
lateness: GenericStorageQuery<Rv, () => number>;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* The configuration for the current epoch. Should never be `None` as it is initialized in
|
|
427
|
+
* genesis.
|
|
428
|
+
*
|
|
429
|
+
* @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
|
|
430
|
+
**/
|
|
431
|
+
epochConfig: GenericStorageQuery<Rv, () => SpConsensusBabeBabeEpochConfiguration | undefined>;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* The configuration for the next epoch, `None` if the config will not change
|
|
435
|
+
* (you can fallback to `EpochConfig` instead in that case).
|
|
436
|
+
*
|
|
437
|
+
* @param {Callback<SpConsensusBabeBabeEpochConfiguration | undefined> =} callback
|
|
438
|
+
**/
|
|
439
|
+
nextEpochConfig: GenericStorageQuery<Rv, () => SpConsensusBabeBabeEpochConfiguration | undefined>;
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* A list of the last 100 skipped epochs and the corresponding session index
|
|
443
|
+
* when the epoch was skipped.
|
|
444
|
+
*
|
|
445
|
+
* This is only used for validating equivocation proofs. An equivocation proof
|
|
446
|
+
* must contains a key-ownership proof for a given session, therefore we need a
|
|
447
|
+
* way to tie together sessions and epoch indices, i.e. we need to validate that
|
|
448
|
+
* a validator was the owner of a given key on a given session, and what the
|
|
449
|
+
* active epoch index was during that session.
|
|
450
|
+
*
|
|
451
|
+
* @param {Callback<Array<[bigint, number]>> =} callback
|
|
452
|
+
**/
|
|
453
|
+
skippedEpochs: GenericStorageQuery<Rv, () => Array<[bigint, number]>>;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Generic pallet storage query
|
|
457
|
+
**/
|
|
458
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
459
|
+
};
|
|
460
|
+
/**
|
|
461
|
+
* Pallet `Timestamp`'s storage queries
|
|
462
|
+
**/
|
|
463
|
+
timestamp: {
|
|
464
|
+
/**
|
|
465
|
+
* The current time for the current block.
|
|
466
|
+
*
|
|
467
|
+
* @param {Callback<bigint> =} callback
|
|
468
|
+
**/
|
|
469
|
+
now: GenericStorageQuery<Rv, () => bigint>;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Whether the timestamp has been updated in this block.
|
|
473
|
+
*
|
|
474
|
+
* This value is updated to `true` upon successful submission of a timestamp by a node.
|
|
475
|
+
* It is then checked at the end of each block execution in the `on_finalize` hook.
|
|
476
|
+
*
|
|
477
|
+
* @param {Callback<boolean> =} callback
|
|
478
|
+
**/
|
|
479
|
+
didUpdate: GenericStorageQuery<Rv, () => boolean>;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* Generic pallet storage query
|
|
483
|
+
**/
|
|
484
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* Pallet `Indices`'s storage queries
|
|
488
|
+
**/
|
|
489
|
+
indices: {
|
|
490
|
+
/**
|
|
491
|
+
* The lookup from index to account.
|
|
492
|
+
*
|
|
493
|
+
* @param {number} arg
|
|
494
|
+
* @param {Callback<[AccountId32, bigint, boolean] | undefined> =} callback
|
|
495
|
+
**/
|
|
496
|
+
accounts: GenericStorageQuery<Rv, (arg: number) => [AccountId32, bigint, boolean] | undefined, number>;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Generic pallet storage query
|
|
500
|
+
**/
|
|
501
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
502
|
+
};
|
|
503
|
+
/**
|
|
504
|
+
* Pallet `Balances`'s storage queries
|
|
505
|
+
**/
|
|
506
|
+
balances: {
|
|
507
|
+
/**
|
|
508
|
+
* The total units issued in the system.
|
|
509
|
+
*
|
|
510
|
+
* @param {Callback<bigint> =} callback
|
|
511
|
+
**/
|
|
512
|
+
totalIssuance: GenericStorageQuery<Rv, () => bigint>;
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* The total units of outstanding deactivated balance in the system.
|
|
516
|
+
*
|
|
517
|
+
* @param {Callback<bigint> =} callback
|
|
518
|
+
**/
|
|
519
|
+
inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* The Balances pallet example of storing the balance of an account.
|
|
523
|
+
*
|
|
524
|
+
* # Example
|
|
525
|
+
*
|
|
526
|
+
* ```nocompile
|
|
527
|
+
* impl pallet_balances::Config for Runtime {
|
|
528
|
+
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
|
529
|
+
* }
|
|
530
|
+
* ```
|
|
531
|
+
*
|
|
532
|
+
* You can also store the balance of an account in the `System` pallet.
|
|
533
|
+
*
|
|
534
|
+
* # Example
|
|
535
|
+
*
|
|
536
|
+
* ```nocompile
|
|
537
|
+
* impl pallet_balances::Config for Runtime {
|
|
538
|
+
* type AccountStore = System
|
|
539
|
+
* }
|
|
540
|
+
* ```
|
|
541
|
+
*
|
|
542
|
+
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
|
543
|
+
* `frame_system` data alongside the account data contrary to storing account balances in the
|
|
544
|
+
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
|
545
|
+
* NOTE: This is only used in the case that this pallet is used to store balances.
|
|
546
|
+
*
|
|
547
|
+
* @param {AccountId32Like} arg
|
|
548
|
+
* @param {Callback<PalletBalancesAccountData> =} callback
|
|
549
|
+
**/
|
|
550
|
+
account: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Any liquidity locks on some account balances.
|
|
554
|
+
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
555
|
+
*
|
|
556
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
557
|
+
*
|
|
558
|
+
* @param {AccountId32Like} arg
|
|
559
|
+
* @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
|
|
560
|
+
**/
|
|
561
|
+
locks: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesBalanceLock>, AccountId32>;
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Named reserves on some account balances.
|
|
565
|
+
*
|
|
566
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
567
|
+
*
|
|
568
|
+
* @param {AccountId32Like} arg
|
|
569
|
+
* @param {Callback<Array<PalletBalancesReserveData>> =} callback
|
|
570
|
+
**/
|
|
571
|
+
reserves: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesReserveData>, AccountId32>;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Holds on account balances.
|
|
575
|
+
*
|
|
576
|
+
* @param {AccountId32Like} arg
|
|
577
|
+
* @param {Callback<Array<PalletBalancesIdAmount>> =} callback
|
|
578
|
+
**/
|
|
579
|
+
holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount>, AccountId32>;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Freeze locks on account balances.
|
|
583
|
+
*
|
|
584
|
+
* @param {AccountId32Like} arg
|
|
585
|
+
* @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
|
|
586
|
+
**/
|
|
587
|
+
freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount002>, AccountId32>;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Generic pallet storage query
|
|
591
|
+
**/
|
|
592
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
593
|
+
};
|
|
594
|
+
/**
|
|
595
|
+
* Pallet `Parameters`'s storage queries
|
|
596
|
+
**/
|
|
597
|
+
parameters: {
|
|
598
|
+
/**
|
|
599
|
+
* Stored parameters.
|
|
600
|
+
*
|
|
601
|
+
* @param {RococoRuntimeRuntimeParametersKey} arg
|
|
602
|
+
* @param {Callback<RococoRuntimeRuntimeParametersValue | undefined> =} callback
|
|
603
|
+
**/
|
|
604
|
+
parameters: GenericStorageQuery<
|
|
605
|
+
Rv,
|
|
606
|
+
(arg: RococoRuntimeRuntimeParametersKey) => RococoRuntimeRuntimeParametersValue | undefined,
|
|
607
|
+
RococoRuntimeRuntimeParametersKey
|
|
608
|
+
>;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Generic pallet storage query
|
|
612
|
+
**/
|
|
613
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
614
|
+
};
|
|
615
|
+
/**
|
|
616
|
+
* Pallet `TransactionPayment`'s storage queries
|
|
617
|
+
**/
|
|
618
|
+
transactionPayment: {
|
|
619
|
+
/**
|
|
620
|
+
*
|
|
621
|
+
* @param {Callback<FixedU128> =} callback
|
|
622
|
+
**/
|
|
623
|
+
nextFeeMultiplier: GenericStorageQuery<Rv, () => FixedU128>;
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
*
|
|
627
|
+
* @param {Callback<PalletTransactionPaymentReleases> =} callback
|
|
628
|
+
**/
|
|
629
|
+
storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Generic pallet storage query
|
|
633
|
+
**/
|
|
634
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
635
|
+
};
|
|
636
|
+
/**
|
|
637
|
+
* Pallet `Authorship`'s storage queries
|
|
638
|
+
**/
|
|
639
|
+
authorship: {
|
|
640
|
+
/**
|
|
641
|
+
* Author of current block.
|
|
642
|
+
*
|
|
643
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
644
|
+
**/
|
|
645
|
+
author: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Generic pallet storage query
|
|
649
|
+
**/
|
|
650
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
651
|
+
};
|
|
652
|
+
/**
|
|
653
|
+
* Pallet `Offences`'s storage queries
|
|
654
|
+
**/
|
|
655
|
+
offences: {
|
|
656
|
+
/**
|
|
657
|
+
* The primary structure that holds all offence records keyed by report identifiers.
|
|
658
|
+
*
|
|
659
|
+
* @param {H256} arg
|
|
660
|
+
* @param {Callback<SpStakingOffenceOffenceDetails | undefined> =} callback
|
|
661
|
+
**/
|
|
662
|
+
reports: GenericStorageQuery<Rv, (arg: H256) => SpStakingOffenceOffenceDetails | undefined, H256>;
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* A vector of reports of the same kind that happened at the same time slot.
|
|
666
|
+
*
|
|
667
|
+
* @param {[FixedBytes<16>, BytesLike]} arg
|
|
668
|
+
* @param {Callback<Array<H256>> =} callback
|
|
669
|
+
**/
|
|
670
|
+
concurrentReportsIndex: GenericStorageQuery<
|
|
671
|
+
Rv,
|
|
672
|
+
(arg: [FixedBytes<16>, BytesLike]) => Array<H256>,
|
|
673
|
+
[FixedBytes<16>, Bytes]
|
|
674
|
+
>;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Generic pallet storage query
|
|
678
|
+
**/
|
|
679
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
680
|
+
};
|
|
681
|
+
/**
|
|
682
|
+
* Pallet `Historical`'s storage queries
|
|
683
|
+
**/
|
|
684
|
+
historical: {
|
|
685
|
+
/**
|
|
686
|
+
* Mapping from historical session indices to session-data root hash and validator count.
|
|
687
|
+
*
|
|
688
|
+
* @param {number} arg
|
|
689
|
+
* @param {Callback<[H256, number] | undefined> =} callback
|
|
690
|
+
**/
|
|
691
|
+
historicalSessions: GenericStorageQuery<Rv, (arg: number) => [H256, number] | undefined, number>;
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* The range of historical sessions we store. [first, last)
|
|
695
|
+
*
|
|
696
|
+
* @param {Callback<[number, number] | undefined> =} callback
|
|
697
|
+
**/
|
|
698
|
+
storedRange: GenericStorageQuery<Rv, () => [number, number] | undefined>;
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Generic pallet storage query
|
|
702
|
+
**/
|
|
703
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
704
|
+
};
|
|
705
|
+
/**
|
|
706
|
+
* Pallet `Session`'s storage queries
|
|
707
|
+
**/
|
|
708
|
+
session: {
|
|
709
|
+
/**
|
|
710
|
+
* The current set of validators.
|
|
711
|
+
*
|
|
712
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
713
|
+
**/
|
|
714
|
+
validators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* Current index of the session.
|
|
718
|
+
*
|
|
719
|
+
* @param {Callback<number> =} callback
|
|
720
|
+
**/
|
|
721
|
+
currentIndex: GenericStorageQuery<Rv, () => number>;
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* True if the underlying economic identities or weighting behind the validators
|
|
725
|
+
* has changed in the queued validator set.
|
|
726
|
+
*
|
|
727
|
+
* @param {Callback<boolean> =} callback
|
|
728
|
+
**/
|
|
729
|
+
queuedChanged: GenericStorageQuery<Rv, () => boolean>;
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* The queued keys for the next session. When the next session begins, these keys
|
|
733
|
+
* will be used to determine the validator's session keys.
|
|
734
|
+
*
|
|
735
|
+
* @param {Callback<Array<[AccountId32, RococoRuntimeSessionKeys]>> =} callback
|
|
736
|
+
**/
|
|
737
|
+
queuedKeys: GenericStorageQuery<Rv, () => Array<[AccountId32, RococoRuntimeSessionKeys]>>;
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* Indices of disabled validators.
|
|
741
|
+
*
|
|
742
|
+
* The vec is always kept sorted so that we can find whether a given validator is
|
|
743
|
+
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
|
744
|
+
* a new set of identities.
|
|
745
|
+
*
|
|
746
|
+
* @param {Callback<Array<number>> =} callback
|
|
747
|
+
**/
|
|
748
|
+
disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* The next session keys for a validator.
|
|
752
|
+
*
|
|
753
|
+
* @param {AccountId32Like} arg
|
|
754
|
+
* @param {Callback<RococoRuntimeSessionKeys | undefined> =} callback
|
|
755
|
+
**/
|
|
756
|
+
nextKeys: GenericStorageQuery<Rv, (arg: AccountId32Like) => RococoRuntimeSessionKeys | undefined, AccountId32>;
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
|
760
|
+
*
|
|
761
|
+
* @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
|
|
762
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
763
|
+
**/
|
|
764
|
+
keyOwner: GenericStorageQuery<
|
|
765
|
+
Rv,
|
|
766
|
+
(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined,
|
|
767
|
+
[SpCoreCryptoKeyTypeId, Bytes]
|
|
768
|
+
>;
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Generic pallet storage query
|
|
772
|
+
**/
|
|
773
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
774
|
+
};
|
|
775
|
+
/**
|
|
776
|
+
* Pallet `Grandpa`'s storage queries
|
|
777
|
+
**/
|
|
778
|
+
grandpa: {
|
|
779
|
+
/**
|
|
780
|
+
* State of the current authority set.
|
|
781
|
+
*
|
|
782
|
+
* @param {Callback<PalletGrandpaStoredState> =} callback
|
|
783
|
+
**/
|
|
784
|
+
state: GenericStorageQuery<Rv, () => PalletGrandpaStoredState>;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* Pending change: (signaled at, scheduled change).
|
|
788
|
+
*
|
|
789
|
+
* @param {Callback<PalletGrandpaStoredPendingChange | undefined> =} callback
|
|
790
|
+
**/
|
|
791
|
+
pendingChange: GenericStorageQuery<Rv, () => PalletGrandpaStoredPendingChange | undefined>;
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* next block number where we can force a change.
|
|
795
|
+
*
|
|
796
|
+
* @param {Callback<number | undefined> =} callback
|
|
797
|
+
**/
|
|
798
|
+
nextForced: GenericStorageQuery<Rv, () => number | undefined>;
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* `true` if we are currently stalled.
|
|
802
|
+
*
|
|
803
|
+
* @param {Callback<[number, number] | undefined> =} callback
|
|
804
|
+
**/
|
|
805
|
+
stalled: GenericStorageQuery<Rv, () => [number, number] | undefined>;
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
|
809
|
+
* in the "set" of Grandpa validators from genesis.
|
|
810
|
+
*
|
|
811
|
+
* @param {Callback<bigint> =} callback
|
|
812
|
+
**/
|
|
813
|
+
currentSetId: GenericStorageQuery<Rv, () => bigint>;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
|
817
|
+
* members were responsible.
|
|
818
|
+
*
|
|
819
|
+
* This is only used for validating equivocation proofs. An equivocation proof must
|
|
820
|
+
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
|
821
|
+
* together sessions and GRANDPA set ids, i.e. we need to validate that a validator
|
|
822
|
+
* was the owner of a given key on a given session, and what the active set ID was
|
|
823
|
+
* during that session.
|
|
824
|
+
*
|
|
825
|
+
* TWOX-NOTE: `SetId` is not under user control.
|
|
826
|
+
*
|
|
827
|
+
* @param {bigint} arg
|
|
828
|
+
* @param {Callback<number | undefined> =} callback
|
|
829
|
+
**/
|
|
830
|
+
setIdSession: GenericStorageQuery<Rv, (arg: bigint) => number | undefined, bigint>;
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* The current list of authorities.
|
|
834
|
+
*
|
|
835
|
+
* @param {Callback<Array<[SpConsensusGrandpaAppPublic, bigint]>> =} callback
|
|
836
|
+
**/
|
|
837
|
+
authorities: GenericStorageQuery<Rv, () => Array<[SpConsensusGrandpaAppPublic, bigint]>>;
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Generic pallet storage query
|
|
841
|
+
**/
|
|
842
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
843
|
+
};
|
|
844
|
+
/**
|
|
845
|
+
* Pallet `AuthorityDiscovery`'s storage queries
|
|
846
|
+
**/
|
|
847
|
+
authorityDiscovery: {
|
|
848
|
+
/**
|
|
849
|
+
* Keys of the current authority set.
|
|
850
|
+
*
|
|
851
|
+
* @param {Callback<Array<SpAuthorityDiscoveryAppPublic>> =} callback
|
|
852
|
+
**/
|
|
853
|
+
keys: GenericStorageQuery<Rv, () => Array<SpAuthorityDiscoveryAppPublic>>;
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* Keys of the next authority set.
|
|
857
|
+
*
|
|
858
|
+
* @param {Callback<Array<SpAuthorityDiscoveryAppPublic>> =} callback
|
|
859
|
+
**/
|
|
860
|
+
nextKeys: GenericStorageQuery<Rv, () => Array<SpAuthorityDiscoveryAppPublic>>;
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* Generic pallet storage query
|
|
864
|
+
**/
|
|
865
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
866
|
+
};
|
|
867
|
+
/**
|
|
868
|
+
* Pallet `Treasury`'s storage queries
|
|
869
|
+
**/
|
|
870
|
+
treasury: {
|
|
871
|
+
/**
|
|
872
|
+
* Number of proposals that have been made.
|
|
873
|
+
*
|
|
874
|
+
* @param {Callback<number> =} callback
|
|
875
|
+
**/
|
|
876
|
+
proposalCount: GenericStorageQuery<Rv, () => number>;
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* Proposals that have been made.
|
|
880
|
+
*
|
|
881
|
+
* @param {number} arg
|
|
882
|
+
* @param {Callback<PalletTreasuryProposal | undefined> =} callback
|
|
883
|
+
**/
|
|
884
|
+
proposals: GenericStorageQuery<Rv, (arg: number) => PalletTreasuryProposal | undefined, number>;
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* The amount which has been reported as inactive to Currency.
|
|
888
|
+
*
|
|
889
|
+
* @param {Callback<bigint> =} callback
|
|
890
|
+
**/
|
|
891
|
+
deactivated: GenericStorageQuery<Rv, () => bigint>;
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* Proposal indices that have been approved but not yet awarded.
|
|
895
|
+
*
|
|
896
|
+
* @param {Callback<Array<number>> =} callback
|
|
897
|
+
**/
|
|
898
|
+
approvals: GenericStorageQuery<Rv, () => Array<number>>;
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* The count of spends that have been made.
|
|
902
|
+
*
|
|
903
|
+
* @param {Callback<number> =} callback
|
|
904
|
+
**/
|
|
905
|
+
spendCount: GenericStorageQuery<Rv, () => number>;
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Spends that have been approved and being processed.
|
|
909
|
+
*
|
|
910
|
+
* @param {number} arg
|
|
911
|
+
* @param {Callback<PalletTreasurySpendStatus | undefined> =} callback
|
|
912
|
+
**/
|
|
913
|
+
spends: GenericStorageQuery<Rv, (arg: number) => PalletTreasurySpendStatus | undefined, number>;
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* Generic pallet storage query
|
|
917
|
+
**/
|
|
918
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
919
|
+
};
|
|
920
|
+
/**
|
|
921
|
+
* Pallet `ConvictionVoting`'s storage queries
|
|
922
|
+
**/
|
|
923
|
+
convictionVoting: {
|
|
924
|
+
/**
|
|
925
|
+
* All voting for a particular voter in a particular voting class. We store the balance for the
|
|
926
|
+
* number of votes that we have recorded.
|
|
927
|
+
*
|
|
928
|
+
* @param {[AccountId32Like, number]} arg
|
|
929
|
+
* @param {Callback<PalletConvictionVotingVoteVoting> =} callback
|
|
930
|
+
**/
|
|
931
|
+
votingFor: GenericStorageQuery<
|
|
932
|
+
Rv,
|
|
933
|
+
(arg: [AccountId32Like, number]) => PalletConvictionVotingVoteVoting,
|
|
934
|
+
[AccountId32, number]
|
|
935
|
+
>;
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* The voting classes which have a non-zero lock requirement and the lock amounts which they
|
|
939
|
+
* require. The actual amount locked on behalf of this pallet should always be the maximum of
|
|
940
|
+
* this list.
|
|
941
|
+
*
|
|
942
|
+
* @param {AccountId32Like} arg
|
|
943
|
+
* @param {Callback<Array<[number, bigint]>> =} callback
|
|
944
|
+
**/
|
|
945
|
+
classLocksFor: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<[number, bigint]>, AccountId32>;
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* Generic pallet storage query
|
|
949
|
+
**/
|
|
950
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
951
|
+
};
|
|
952
|
+
/**
|
|
953
|
+
* Pallet `Referenda`'s storage queries
|
|
954
|
+
**/
|
|
955
|
+
referenda: {
|
|
956
|
+
/**
|
|
957
|
+
* The next free referendum index, aka the number of referenda started so far.
|
|
958
|
+
*
|
|
959
|
+
* @param {Callback<number> =} callback
|
|
960
|
+
**/
|
|
961
|
+
referendumCount: GenericStorageQuery<Rv, () => number>;
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* Information concerning any given referendum.
|
|
965
|
+
*
|
|
966
|
+
* @param {number} arg
|
|
967
|
+
* @param {Callback<PalletReferendaReferendumInfo | undefined> =} callback
|
|
968
|
+
**/
|
|
969
|
+
referendumInfoFor: GenericStorageQuery<Rv, (arg: number) => PalletReferendaReferendumInfo | undefined, number>;
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* The sorted list of referenda ready to be decided but not yet being decided, ordered by
|
|
973
|
+
* conviction-weighted approvals.
|
|
974
|
+
*
|
|
975
|
+
* This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
|
|
976
|
+
*
|
|
977
|
+
* @param {number} arg
|
|
978
|
+
* @param {Callback<Array<[number, bigint]>> =} callback
|
|
979
|
+
**/
|
|
980
|
+
trackQueue: GenericStorageQuery<Rv, (arg: number) => Array<[number, bigint]>, number>;
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* The number of referenda being decided currently.
|
|
984
|
+
*
|
|
985
|
+
* @param {number} arg
|
|
986
|
+
* @param {Callback<number> =} callback
|
|
987
|
+
**/
|
|
988
|
+
decidingCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* The metadata is a general information concerning the referendum.
|
|
992
|
+
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
993
|
+
* dump or IPFS hash of a JSON file.
|
|
994
|
+
*
|
|
995
|
+
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
996
|
+
* large preimages.
|
|
997
|
+
*
|
|
998
|
+
* @param {number} arg
|
|
999
|
+
* @param {Callback<H256 | undefined> =} callback
|
|
1000
|
+
**/
|
|
1001
|
+
metadataOf: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* Generic pallet storage query
|
|
1005
|
+
**/
|
|
1006
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1007
|
+
};
|
|
1008
|
+
/**
|
|
1009
|
+
* Pallet `FellowshipCollective`'s storage queries
|
|
1010
|
+
**/
|
|
1011
|
+
fellowshipCollective: {
|
|
1012
|
+
/**
|
|
1013
|
+
* The number of members in the collective who have at least the rank according to the index
|
|
1014
|
+
* of the vec.
|
|
1015
|
+
*
|
|
1016
|
+
* @param {number} arg
|
|
1017
|
+
* @param {Callback<number> =} callback
|
|
1018
|
+
**/
|
|
1019
|
+
memberCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* The current members of the collective.
|
|
1023
|
+
*
|
|
1024
|
+
* @param {AccountId32Like} arg
|
|
1025
|
+
* @param {Callback<PalletRankedCollectiveMemberRecord | undefined> =} callback
|
|
1026
|
+
**/
|
|
1027
|
+
members: GenericStorageQuery<
|
|
1028
|
+
Rv,
|
|
1029
|
+
(arg: AccountId32Like) => PalletRankedCollectiveMemberRecord | undefined,
|
|
1030
|
+
AccountId32
|
|
1031
|
+
>;
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* The index of each ranks's member into the group of members who have at least that rank.
|
|
1035
|
+
*
|
|
1036
|
+
* @param {[number, AccountId32Like]} arg
|
|
1037
|
+
* @param {Callback<number | undefined> =} callback
|
|
1038
|
+
**/
|
|
1039
|
+
idToIndex: GenericStorageQuery<Rv, (arg: [number, AccountId32Like]) => number | undefined, [number, AccountId32]>;
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* The members in the collective by index. All indices in the range `0..MemberCount` will
|
|
1043
|
+
* return `Some`, however a member's index is not guaranteed to remain unchanged over time.
|
|
1044
|
+
*
|
|
1045
|
+
* @param {[number, number]} arg
|
|
1046
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1047
|
+
**/
|
|
1048
|
+
indexToId: GenericStorageQuery<Rv, (arg: [number, number]) => AccountId32 | undefined, [number, number]>;
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
* Votes on a given proposal, if it is ongoing.
|
|
1052
|
+
*
|
|
1053
|
+
* @param {[number, AccountId32Like]} arg
|
|
1054
|
+
* @param {Callback<PalletRankedCollectiveVoteRecord | undefined> =} callback
|
|
1055
|
+
**/
|
|
1056
|
+
voting: GenericStorageQuery<
|
|
1057
|
+
Rv,
|
|
1058
|
+
(arg: [number, AccountId32Like]) => PalletRankedCollectiveVoteRecord | undefined,
|
|
1059
|
+
[number, AccountId32]
|
|
1060
|
+
>;
|
|
1061
|
+
|
|
1062
|
+
/**
|
|
1063
|
+
*
|
|
1064
|
+
* @param {number} arg
|
|
1065
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1066
|
+
**/
|
|
1067
|
+
votingCleanup: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* Generic pallet storage query
|
|
1071
|
+
**/
|
|
1072
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1073
|
+
};
|
|
1074
|
+
/**
|
|
1075
|
+
* Pallet `FellowshipReferenda`'s storage queries
|
|
1076
|
+
**/
|
|
1077
|
+
fellowshipReferenda: {
|
|
1078
|
+
/**
|
|
1079
|
+
* The next free referendum index, aka the number of referenda started so far.
|
|
1080
|
+
*
|
|
1081
|
+
* @param {Callback<number> =} callback
|
|
1082
|
+
**/
|
|
1083
|
+
referendumCount: GenericStorageQuery<Rv, () => number>;
|
|
1084
|
+
|
|
1085
|
+
/**
|
|
1086
|
+
* Information concerning any given referendum.
|
|
1087
|
+
*
|
|
1088
|
+
* @param {number} arg
|
|
1089
|
+
* @param {Callback<PalletReferendaReferendumInfoTally | undefined> =} callback
|
|
1090
|
+
**/
|
|
1091
|
+
referendumInfoFor: GenericStorageQuery<Rv, (arg: number) => PalletReferendaReferendumInfoTally | undefined, number>;
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* The sorted list of referenda ready to be decided but not yet being decided, ordered by
|
|
1095
|
+
* conviction-weighted approvals.
|
|
1096
|
+
*
|
|
1097
|
+
* This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
|
|
1098
|
+
*
|
|
1099
|
+
* @param {number} arg
|
|
1100
|
+
* @param {Callback<Array<[number, number]>> =} callback
|
|
1101
|
+
**/
|
|
1102
|
+
trackQueue: GenericStorageQuery<Rv, (arg: number) => Array<[number, number]>, number>;
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* The number of referenda being decided currently.
|
|
1106
|
+
*
|
|
1107
|
+
* @param {number} arg
|
|
1108
|
+
* @param {Callback<number> =} callback
|
|
1109
|
+
**/
|
|
1110
|
+
decidingCount: GenericStorageQuery<Rv, (arg: number) => number, number>;
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* The metadata is a general information concerning the referendum.
|
|
1114
|
+
* The `Hash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
1115
|
+
* dump or IPFS hash of a JSON file.
|
|
1116
|
+
*
|
|
1117
|
+
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
1118
|
+
* large preimages.
|
|
1119
|
+
*
|
|
1120
|
+
* @param {number} arg
|
|
1121
|
+
* @param {Callback<H256 | undefined> =} callback
|
|
1122
|
+
**/
|
|
1123
|
+
metadataOf: GenericStorageQuery<Rv, (arg: number) => H256 | undefined, number>;
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* Generic pallet storage query
|
|
1127
|
+
**/
|
|
1128
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1129
|
+
};
|
|
1130
|
+
/**
|
|
1131
|
+
* Pallet `Whitelist`'s storage queries
|
|
1132
|
+
**/
|
|
1133
|
+
whitelist: {
|
|
1134
|
+
/**
|
|
1135
|
+
*
|
|
1136
|
+
* @param {H256} arg
|
|
1137
|
+
* @param {Callback<[] | undefined> =} callback
|
|
1138
|
+
**/
|
|
1139
|
+
whitelistedCall: GenericStorageQuery<Rv, (arg: H256) => [] | undefined, H256>;
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* Generic pallet storage query
|
|
1143
|
+
**/
|
|
1144
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1145
|
+
};
|
|
1146
|
+
/**
|
|
1147
|
+
* Pallet `Claims`'s storage queries
|
|
1148
|
+
**/
|
|
1149
|
+
claims: {
|
|
1150
|
+
/**
|
|
1151
|
+
*
|
|
1152
|
+
* @param {EthereumAddressLike} arg
|
|
1153
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
1154
|
+
**/
|
|
1155
|
+
claims: GenericStorageQuery<Rv, (arg: EthereumAddressLike) => bigint | undefined, EthereumAddress>;
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
*
|
|
1159
|
+
* @param {Callback<bigint> =} callback
|
|
1160
|
+
**/
|
|
1161
|
+
total: GenericStorageQuery<Rv, () => bigint>;
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* Vesting schedule for a claim.
|
|
1165
|
+
* First balance is the total amount that should be held for vesting.
|
|
1166
|
+
* Second balance is how much should be unlocked per block.
|
|
1167
|
+
* The block number is when the vesting should start.
|
|
1168
|
+
*
|
|
1169
|
+
* @param {EthereumAddressLike} arg
|
|
1170
|
+
* @param {Callback<[bigint, bigint, number] | undefined> =} callback
|
|
1171
|
+
**/
|
|
1172
|
+
vesting: GenericStorageQuery<
|
|
1173
|
+
Rv,
|
|
1174
|
+
(arg: EthereumAddressLike) => [bigint, bigint, number] | undefined,
|
|
1175
|
+
EthereumAddress
|
|
1176
|
+
>;
|
|
1177
|
+
|
|
1178
|
+
/**
|
|
1179
|
+
* The statement kind that must be signed, if any.
|
|
1180
|
+
*
|
|
1181
|
+
* @param {EthereumAddressLike} arg
|
|
1182
|
+
* @param {Callback<PolkadotRuntimeCommonClaimsStatementKind | undefined> =} callback
|
|
1183
|
+
**/
|
|
1184
|
+
signing: GenericStorageQuery<
|
|
1185
|
+
Rv,
|
|
1186
|
+
(arg: EthereumAddressLike) => PolkadotRuntimeCommonClaimsStatementKind | undefined,
|
|
1187
|
+
EthereumAddress
|
|
1188
|
+
>;
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* Pre-claimed Ethereum accounts, by the Account ID that they are claimed to.
|
|
1192
|
+
*
|
|
1193
|
+
* @param {AccountId32Like} arg
|
|
1194
|
+
* @param {Callback<EthereumAddress | undefined> =} callback
|
|
1195
|
+
**/
|
|
1196
|
+
preclaims: GenericStorageQuery<Rv, (arg: AccountId32Like) => EthereumAddress | undefined, AccountId32>;
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Generic pallet storage query
|
|
1200
|
+
**/
|
|
1201
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1202
|
+
};
|
|
1203
|
+
/**
|
|
1204
|
+
* Pallet `Identity`'s storage queries
|
|
1205
|
+
**/
|
|
1206
|
+
identity: {
|
|
1207
|
+
/**
|
|
1208
|
+
* Information that is pertinent to identify the entity behind an account. First item is the
|
|
1209
|
+
* registration, second is the account's primary username.
|
|
1210
|
+
*
|
|
1211
|
+
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
1212
|
+
*
|
|
1213
|
+
* @param {AccountId32Like} arg
|
|
1214
|
+
* @param {Callback<[PalletIdentityRegistration, Bytes | undefined] | undefined> =} callback
|
|
1215
|
+
**/
|
|
1216
|
+
identityOf: GenericStorageQuery<
|
|
1217
|
+
Rv,
|
|
1218
|
+
(arg: AccountId32Like) => [PalletIdentityRegistration, Bytes | undefined] | undefined,
|
|
1219
|
+
AccountId32
|
|
1220
|
+
>;
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* The super-identity of an alternative "sub" identity together with its name, within that
|
|
1224
|
+
* context. If the account is not some other account's sub-identity, then just `None`.
|
|
1225
|
+
*
|
|
1226
|
+
* @param {AccountId32Like} arg
|
|
1227
|
+
* @param {Callback<[AccountId32, Data] | undefined> =} callback
|
|
1228
|
+
**/
|
|
1229
|
+
superOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [AccountId32, Data] | undefined, AccountId32>;
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* Alternative "sub" identities of this account.
|
|
1233
|
+
*
|
|
1234
|
+
* The first item is the deposit, the second is a vector of the accounts.
|
|
1235
|
+
*
|
|
1236
|
+
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
1237
|
+
*
|
|
1238
|
+
* @param {AccountId32Like} arg
|
|
1239
|
+
* @param {Callback<[bigint, Array<AccountId32>]> =} callback
|
|
1240
|
+
**/
|
|
1241
|
+
subsOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [bigint, Array<AccountId32>], AccountId32>;
|
|
1242
|
+
|
|
1243
|
+
/**
|
|
1244
|
+
* The set of registrars. Not expected to get very big as can only be added through a
|
|
1245
|
+
* special origin (likely a council motion).
|
|
1246
|
+
*
|
|
1247
|
+
* The index into this can be cast to `RegistrarIndex` to get a valid value.
|
|
1248
|
+
*
|
|
1249
|
+
* @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
|
|
1250
|
+
**/
|
|
1251
|
+
registrars: GenericStorageQuery<Rv, () => Array<PalletIdentityRegistrarInfo | undefined>>;
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* A map of the accounts who are authorized to grant usernames.
|
|
1255
|
+
*
|
|
1256
|
+
* @param {AccountId32Like} arg
|
|
1257
|
+
* @param {Callback<PalletIdentityAuthorityProperties | undefined> =} callback
|
|
1258
|
+
**/
|
|
1259
|
+
usernameAuthorities: GenericStorageQuery<
|
|
1260
|
+
Rv,
|
|
1261
|
+
(arg: AccountId32Like) => PalletIdentityAuthorityProperties | undefined,
|
|
1262
|
+
AccountId32
|
|
1263
|
+
>;
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* Reverse lookup from `username` to the `AccountId` that has registered it. The value should
|
|
1267
|
+
* be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
|
|
1268
|
+
*
|
|
1269
|
+
* Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
|
|
1270
|
+
* primary username.
|
|
1271
|
+
*
|
|
1272
|
+
* @param {BytesLike} arg
|
|
1273
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1274
|
+
**/
|
|
1275
|
+
accountOfUsername: GenericStorageQuery<Rv, (arg: BytesLike) => AccountId32 | undefined, Bytes>;
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* Usernames that an authority has granted, but that the account controller has not confirmed
|
|
1279
|
+
* that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
|
|
1280
|
+
* because they are a pure proxy, multisig, etc. In order to confirm it, they should call
|
|
1281
|
+
* [`Call::accept_username`].
|
|
1282
|
+
*
|
|
1283
|
+
* First tuple item is the account and second is the acceptance deadline.
|
|
1284
|
+
*
|
|
1285
|
+
* @param {BytesLike} arg
|
|
1286
|
+
* @param {Callback<[AccountId32, number] | undefined> =} callback
|
|
1287
|
+
**/
|
|
1288
|
+
pendingUsernames: GenericStorageQuery<Rv, (arg: BytesLike) => [AccountId32, number] | undefined, Bytes>;
|
|
1289
|
+
|
|
1290
|
+
/**
|
|
1291
|
+
* Generic pallet storage query
|
|
1292
|
+
**/
|
|
1293
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1294
|
+
};
|
|
1295
|
+
/**
|
|
1296
|
+
* Pallet `Society`'s storage queries
|
|
1297
|
+
**/
|
|
1298
|
+
society: {
|
|
1299
|
+
/**
|
|
1300
|
+
* The max number of members for the society at one time.
|
|
1301
|
+
*
|
|
1302
|
+
* @param {Callback<PalletSocietyGroupParams | undefined> =} callback
|
|
1303
|
+
**/
|
|
1304
|
+
parameters: GenericStorageQuery<Rv, () => PalletSocietyGroupParams | undefined>;
|
|
1305
|
+
|
|
1306
|
+
/**
|
|
1307
|
+
* Amount of our account balance that is specifically for the next round's bid(s).
|
|
1308
|
+
*
|
|
1309
|
+
* @param {Callback<bigint> =} callback
|
|
1310
|
+
**/
|
|
1311
|
+
pot: GenericStorageQuery<Rv, () => bigint>;
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
* The first member.
|
|
1315
|
+
*
|
|
1316
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1317
|
+
**/
|
|
1318
|
+
founder: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* The most primary from the most recently approved rank 0 members in the society.
|
|
1322
|
+
*
|
|
1323
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1324
|
+
**/
|
|
1325
|
+
head: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* A hash of the rules of this society concerning membership. Can only be set once and
|
|
1329
|
+
* only by the founder.
|
|
1330
|
+
*
|
|
1331
|
+
* @param {Callback<H256 | undefined> =} callback
|
|
1332
|
+
**/
|
|
1333
|
+
rules: GenericStorageQuery<Rv, () => H256 | undefined>;
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* The current members and their rank. Doesn't include `SuspendedMembers`.
|
|
1337
|
+
*
|
|
1338
|
+
* @param {AccountId32Like} arg
|
|
1339
|
+
* @param {Callback<PalletSocietyMemberRecord | undefined> =} callback
|
|
1340
|
+
**/
|
|
1341
|
+
members: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletSocietyMemberRecord | undefined, AccountId32>;
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
* Information regarding rank-0 payouts, past and future.
|
|
1345
|
+
*
|
|
1346
|
+
* @param {AccountId32Like} arg
|
|
1347
|
+
* @param {Callback<PalletSocietyPayoutRecord> =} callback
|
|
1348
|
+
**/
|
|
1349
|
+
payouts: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletSocietyPayoutRecord, AccountId32>;
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* The number of items in `Members` currently. (Doesn't include `SuspendedMembers`.)
|
|
1353
|
+
*
|
|
1354
|
+
* @param {Callback<number> =} callback
|
|
1355
|
+
**/
|
|
1356
|
+
memberCount: GenericStorageQuery<Rv, () => number>;
|
|
1357
|
+
|
|
1358
|
+
/**
|
|
1359
|
+
* The current items in `Members` keyed by their unique index. Keys are densely populated
|
|
1360
|
+
* `0..MemberCount` (does not include `MemberCount`).
|
|
1361
|
+
*
|
|
1362
|
+
* @param {number} arg
|
|
1363
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1364
|
+
**/
|
|
1365
|
+
memberByIndex: GenericStorageQuery<Rv, (arg: number) => AccountId32 | undefined, number>;
|
|
1366
|
+
|
|
1367
|
+
/**
|
|
1368
|
+
* The set of suspended members, with their old membership record.
|
|
1369
|
+
*
|
|
1370
|
+
* @param {AccountId32Like} arg
|
|
1371
|
+
* @param {Callback<PalletSocietyMemberRecord | undefined> =} callback
|
|
1372
|
+
**/
|
|
1373
|
+
suspendedMembers: GenericStorageQuery<
|
|
1374
|
+
Rv,
|
|
1375
|
+
(arg: AccountId32Like) => PalletSocietyMemberRecord | undefined,
|
|
1376
|
+
AccountId32
|
|
1377
|
+
>;
|
|
1378
|
+
|
|
1379
|
+
/**
|
|
1380
|
+
* The number of rounds which have passed.
|
|
1381
|
+
*
|
|
1382
|
+
* @param {Callback<number> =} callback
|
|
1383
|
+
**/
|
|
1384
|
+
roundCount: GenericStorageQuery<Rv, () => number>;
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* The current bids, stored ordered by the value of the bid.
|
|
1388
|
+
*
|
|
1389
|
+
* @param {Callback<Array<PalletSocietyBid>> =} callback
|
|
1390
|
+
**/
|
|
1391
|
+
bids: GenericStorageQuery<Rv, () => Array<PalletSocietyBid>>;
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
*
|
|
1395
|
+
* @param {AccountId32Like} arg
|
|
1396
|
+
* @param {Callback<PalletSocietyCandidacy | undefined> =} callback
|
|
1397
|
+
**/
|
|
1398
|
+
candidates: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletSocietyCandidacy | undefined, AccountId32>;
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* The current skeptic.
|
|
1402
|
+
*
|
|
1403
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1404
|
+
**/
|
|
1405
|
+
skeptic: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* Double map from Candidate -> Voter -> (Maybe) Vote.
|
|
1409
|
+
*
|
|
1410
|
+
* @param {[AccountId32Like, AccountId32Like]} arg
|
|
1411
|
+
* @param {Callback<PalletSocietyVote | undefined> =} callback
|
|
1412
|
+
**/
|
|
1413
|
+
votes: GenericStorageQuery<
|
|
1414
|
+
Rv,
|
|
1415
|
+
(arg: [AccountId32Like, AccountId32Like]) => PalletSocietyVote | undefined,
|
|
1416
|
+
[AccountId32, AccountId32]
|
|
1417
|
+
>;
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* Clear-cursor for Vote, map from Candidate -> (Maybe) Cursor.
|
|
1421
|
+
*
|
|
1422
|
+
* @param {AccountId32Like} arg
|
|
1423
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1424
|
+
**/
|
|
1425
|
+
voteClearCursor: GenericStorageQuery<Rv, (arg: AccountId32Like) => Bytes | undefined, AccountId32>;
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
* At the end of the claim period, this contains the most recently approved members (along with
|
|
1429
|
+
* their bid and round ID) who is from the most recent round with the lowest bid. They will
|
|
1430
|
+
* become the new `Head`.
|
|
1431
|
+
*
|
|
1432
|
+
* @param {Callback<PalletSocietyIntakeRecord | undefined> =} callback
|
|
1433
|
+
**/
|
|
1434
|
+
nextHead: GenericStorageQuery<Rv, () => PalletSocietyIntakeRecord | undefined>;
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* The number of challenge rounds there have been. Used to identify stale DefenderVotes.
|
|
1438
|
+
*
|
|
1439
|
+
* @param {Callback<number> =} callback
|
|
1440
|
+
**/
|
|
1441
|
+
challengeRoundCount: GenericStorageQuery<Rv, () => number>;
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* The defending member currently being challenged, along with a running tally of votes.
|
|
1445
|
+
*
|
|
1446
|
+
* @param {Callback<[AccountId32, AccountId32, PalletSocietyTally] | undefined> =} callback
|
|
1447
|
+
**/
|
|
1448
|
+
defending: GenericStorageQuery<Rv, () => [AccountId32, AccountId32, PalletSocietyTally] | undefined>;
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
* Votes for the defender, keyed by challenge round.
|
|
1452
|
+
*
|
|
1453
|
+
* @param {[number, AccountId32Like]} arg
|
|
1454
|
+
* @param {Callback<PalletSocietyVote | undefined> =} callback
|
|
1455
|
+
**/
|
|
1456
|
+
defenderVotes: GenericStorageQuery<
|
|
1457
|
+
Rv,
|
|
1458
|
+
(arg: [number, AccountId32Like]) => PalletSocietyVote | undefined,
|
|
1459
|
+
[number, AccountId32]
|
|
1460
|
+
>;
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* Generic pallet storage query
|
|
1464
|
+
**/
|
|
1465
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1466
|
+
};
|
|
1467
|
+
/**
|
|
1468
|
+
* Pallet `Recovery`'s storage queries
|
|
1469
|
+
**/
|
|
1470
|
+
recovery: {
|
|
1471
|
+
/**
|
|
1472
|
+
* The set of recoverable accounts and their recovery configuration.
|
|
1473
|
+
*
|
|
1474
|
+
* @param {AccountId32Like} arg
|
|
1475
|
+
* @param {Callback<PalletRecoveryRecoveryConfig | undefined> =} callback
|
|
1476
|
+
**/
|
|
1477
|
+
recoverable: GenericStorageQuery<
|
|
1478
|
+
Rv,
|
|
1479
|
+
(arg: AccountId32Like) => PalletRecoveryRecoveryConfig | undefined,
|
|
1480
|
+
AccountId32
|
|
1481
|
+
>;
|
|
1482
|
+
|
|
1483
|
+
/**
|
|
1484
|
+
* Active recovery attempts.
|
|
1485
|
+
*
|
|
1486
|
+
* First account is the account to be recovered, and the second account
|
|
1487
|
+
* is the user trying to recover the account.
|
|
1488
|
+
*
|
|
1489
|
+
* @param {[AccountId32Like, AccountId32Like]} arg
|
|
1490
|
+
* @param {Callback<PalletRecoveryActiveRecovery | undefined> =} callback
|
|
1491
|
+
**/
|
|
1492
|
+
activeRecoveries: GenericStorageQuery<
|
|
1493
|
+
Rv,
|
|
1494
|
+
(arg: [AccountId32Like, AccountId32Like]) => PalletRecoveryActiveRecovery | undefined,
|
|
1495
|
+
[AccountId32, AccountId32]
|
|
1496
|
+
>;
|
|
1497
|
+
|
|
1498
|
+
/**
|
|
1499
|
+
* The list of allowed proxy accounts.
|
|
1500
|
+
*
|
|
1501
|
+
* Map from the user who can access it to the recovered account.
|
|
1502
|
+
*
|
|
1503
|
+
* @param {AccountId32Like} arg
|
|
1504
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1505
|
+
**/
|
|
1506
|
+
proxy: GenericStorageQuery<Rv, (arg: AccountId32Like) => AccountId32 | undefined, AccountId32>;
|
|
1507
|
+
|
|
1508
|
+
/**
|
|
1509
|
+
* Generic pallet storage query
|
|
1510
|
+
**/
|
|
1511
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1512
|
+
};
|
|
1513
|
+
/**
|
|
1514
|
+
* Pallet `Vesting`'s storage queries
|
|
1515
|
+
**/
|
|
1516
|
+
vesting: {
|
|
1517
|
+
/**
|
|
1518
|
+
* Information regarding the vesting of a given account.
|
|
1519
|
+
*
|
|
1520
|
+
* @param {AccountId32Like} arg
|
|
1521
|
+
* @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
|
|
1522
|
+
**/
|
|
1523
|
+
vesting: GenericStorageQuery<
|
|
1524
|
+
Rv,
|
|
1525
|
+
(arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined,
|
|
1526
|
+
AccountId32
|
|
1527
|
+
>;
|
|
1528
|
+
|
|
1529
|
+
/**
|
|
1530
|
+
* Storage version of the pallet.
|
|
1531
|
+
*
|
|
1532
|
+
* New networks start with latest version, as determined by the genesis build.
|
|
1533
|
+
*
|
|
1534
|
+
* @param {Callback<PalletVestingReleases> =} callback
|
|
1535
|
+
**/
|
|
1536
|
+
storageVersion: GenericStorageQuery<Rv, () => PalletVestingReleases>;
|
|
1537
|
+
|
|
1538
|
+
/**
|
|
1539
|
+
* Generic pallet storage query
|
|
1540
|
+
**/
|
|
1541
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1542
|
+
};
|
|
1543
|
+
/**
|
|
1544
|
+
* Pallet `Scheduler`'s storage queries
|
|
1545
|
+
**/
|
|
1546
|
+
scheduler: {
|
|
1547
|
+
/**
|
|
1548
|
+
*
|
|
1549
|
+
* @param {Callback<number | undefined> =} callback
|
|
1550
|
+
**/
|
|
1551
|
+
incompleteSince: GenericStorageQuery<Rv, () => number | undefined>;
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
* Items to be executed, indexed by the block number that they should be executed on.
|
|
1555
|
+
*
|
|
1556
|
+
* @param {number} arg
|
|
1557
|
+
* @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
|
|
1558
|
+
**/
|
|
1559
|
+
agenda: GenericStorageQuery<Rv, (arg: number) => Array<PalletSchedulerScheduled | undefined>, number>;
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* Retry configurations for items to be executed, indexed by task address.
|
|
1563
|
+
*
|
|
1564
|
+
* @param {[number, number]} arg
|
|
1565
|
+
* @param {Callback<PalletSchedulerRetryConfig | undefined> =} callback
|
|
1566
|
+
**/
|
|
1567
|
+
retries: GenericStorageQuery<
|
|
1568
|
+
Rv,
|
|
1569
|
+
(arg: [number, number]) => PalletSchedulerRetryConfig | undefined,
|
|
1570
|
+
[number, number]
|
|
1571
|
+
>;
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* Lookup from a name to the block number and index of the task.
|
|
1575
|
+
*
|
|
1576
|
+
* For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
|
|
1577
|
+
* identities.
|
|
1578
|
+
*
|
|
1579
|
+
* @param {FixedBytes<32>} arg
|
|
1580
|
+
* @param {Callback<[number, number] | undefined> =} callback
|
|
1581
|
+
**/
|
|
1582
|
+
lookup: GenericStorageQuery<Rv, (arg: FixedBytes<32>) => [number, number] | undefined, FixedBytes<32>>;
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
* Generic pallet storage query
|
|
1586
|
+
**/
|
|
1587
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1588
|
+
};
|
|
1589
|
+
/**
|
|
1590
|
+
* Pallet `Proxy`'s storage queries
|
|
1591
|
+
**/
|
|
1592
|
+
proxy: {
|
|
1593
|
+
/**
|
|
1594
|
+
* The set of account proxies. Maps the account which has delegated to the accounts
|
|
1595
|
+
* which are being delegated to, together with the amount held on deposit.
|
|
1596
|
+
*
|
|
1597
|
+
* @param {AccountId32Like} arg
|
|
1598
|
+
* @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
|
|
1599
|
+
**/
|
|
1600
|
+
proxies: GenericStorageQuery<
|
|
1601
|
+
Rv,
|
|
1602
|
+
(arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
|
|
1603
|
+
AccountId32
|
|
1604
|
+
>;
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
* The announcements made by the proxy (key).
|
|
1608
|
+
*
|
|
1609
|
+
* @param {AccountId32Like} arg
|
|
1610
|
+
* @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
|
|
1611
|
+
**/
|
|
1612
|
+
announcements: GenericStorageQuery<
|
|
1613
|
+
Rv,
|
|
1614
|
+
(arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint],
|
|
1615
|
+
AccountId32
|
|
1616
|
+
>;
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* Generic pallet storage query
|
|
1620
|
+
**/
|
|
1621
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1622
|
+
};
|
|
1623
|
+
/**
|
|
1624
|
+
* Pallet `Multisig`'s storage queries
|
|
1625
|
+
**/
|
|
1626
|
+
multisig: {
|
|
1627
|
+
/**
|
|
1628
|
+
* The set of open multisig operations.
|
|
1629
|
+
*
|
|
1630
|
+
* @param {[AccountId32Like, FixedBytes<32>]} arg
|
|
1631
|
+
* @param {Callback<PalletMultisigMultisig | undefined> =} callback
|
|
1632
|
+
**/
|
|
1633
|
+
multisigs: GenericStorageQuery<
|
|
1634
|
+
Rv,
|
|
1635
|
+
(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
|
|
1636
|
+
[AccountId32, FixedBytes<32>]
|
|
1637
|
+
>;
|
|
1638
|
+
|
|
1639
|
+
/**
|
|
1640
|
+
* Generic pallet storage query
|
|
1641
|
+
**/
|
|
1642
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1643
|
+
};
|
|
1644
|
+
/**
|
|
1645
|
+
* Pallet `Preimage`'s storage queries
|
|
1646
|
+
**/
|
|
1647
|
+
preimage: {
|
|
1648
|
+
/**
|
|
1649
|
+
* The request status of a given hash.
|
|
1650
|
+
*
|
|
1651
|
+
* @param {H256} arg
|
|
1652
|
+
* @param {Callback<PalletPreimageOldRequestStatus | undefined> =} callback
|
|
1653
|
+
**/
|
|
1654
|
+
statusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageOldRequestStatus | undefined, H256>;
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
* The request status of a given hash.
|
|
1658
|
+
*
|
|
1659
|
+
* @param {H256} arg
|
|
1660
|
+
* @param {Callback<PalletPreimageRequestStatus | undefined> =} callback
|
|
1661
|
+
**/
|
|
1662
|
+
requestStatusFor: GenericStorageQuery<Rv, (arg: H256) => PalletPreimageRequestStatus | undefined, H256>;
|
|
1663
|
+
|
|
1664
|
+
/**
|
|
1665
|
+
*
|
|
1666
|
+
* @param {[H256, number]} arg
|
|
1667
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1668
|
+
**/
|
|
1669
|
+
preimageFor: GenericStorageQuery<Rv, (arg: [H256, number]) => Bytes | undefined, [H256, number]>;
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* Generic pallet storage query
|
|
1673
|
+
**/
|
|
1674
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1675
|
+
};
|
|
1676
|
+
/**
|
|
1677
|
+
* Pallet `AssetRate`'s storage queries
|
|
1678
|
+
**/
|
|
1679
|
+
assetRate: {
|
|
1680
|
+
/**
|
|
1681
|
+
* Maps an asset to its fixed point representation in the native balance.
|
|
1682
|
+
*
|
|
1683
|
+
* E.g. `native_amount = asset_amount * ConversionRateToNative::<T>::get(asset_kind)`
|
|
1684
|
+
*
|
|
1685
|
+
* @param {PolkadotRuntimeCommonImplsVersionedLocatableAsset} arg
|
|
1686
|
+
* @param {Callback<FixedU128 | undefined> =} callback
|
|
1687
|
+
**/
|
|
1688
|
+
conversionRateToNative: GenericStorageQuery<
|
|
1689
|
+
Rv,
|
|
1690
|
+
(arg: PolkadotRuntimeCommonImplsVersionedLocatableAsset) => FixedU128 | undefined,
|
|
1691
|
+
PolkadotRuntimeCommonImplsVersionedLocatableAsset
|
|
1692
|
+
>;
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* Generic pallet storage query
|
|
1696
|
+
**/
|
|
1697
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1698
|
+
};
|
|
1699
|
+
/**
|
|
1700
|
+
* Pallet `Bounties`'s storage queries
|
|
1701
|
+
**/
|
|
1702
|
+
bounties: {
|
|
1703
|
+
/**
|
|
1704
|
+
* Number of bounty proposals that have been made.
|
|
1705
|
+
*
|
|
1706
|
+
* @param {Callback<number> =} callback
|
|
1707
|
+
**/
|
|
1708
|
+
bountyCount: GenericStorageQuery<Rv, () => number>;
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* Bounties that have been made.
|
|
1712
|
+
*
|
|
1713
|
+
* @param {number} arg
|
|
1714
|
+
* @param {Callback<PalletBountiesBounty | undefined> =} callback
|
|
1715
|
+
**/
|
|
1716
|
+
bounties: GenericStorageQuery<Rv, (arg: number) => PalletBountiesBounty | undefined, number>;
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* The description of each bounty.
|
|
1720
|
+
*
|
|
1721
|
+
* @param {number} arg
|
|
1722
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1723
|
+
**/
|
|
1724
|
+
bountyDescriptions: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
|
|
1725
|
+
|
|
1726
|
+
/**
|
|
1727
|
+
* Bounty indices that have been approved but not yet funded.
|
|
1728
|
+
*
|
|
1729
|
+
* @param {Callback<Array<number>> =} callback
|
|
1730
|
+
**/
|
|
1731
|
+
bountyApprovals: GenericStorageQuery<Rv, () => Array<number>>;
|
|
1732
|
+
|
|
1733
|
+
/**
|
|
1734
|
+
* Generic pallet storage query
|
|
1735
|
+
**/
|
|
1736
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1737
|
+
};
|
|
1738
|
+
/**
|
|
1739
|
+
* Pallet `ChildBounties`'s storage queries
|
|
1740
|
+
**/
|
|
1741
|
+
childBounties: {
|
|
1742
|
+
/**
|
|
1743
|
+
* Number of total child bounties.
|
|
1744
|
+
*
|
|
1745
|
+
* @param {Callback<number> =} callback
|
|
1746
|
+
**/
|
|
1747
|
+
childBountyCount: GenericStorageQuery<Rv, () => number>;
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
* Number of child bounties per parent bounty.
|
|
1751
|
+
* Map of parent bounty index to number of child bounties.
|
|
1752
|
+
*
|
|
1753
|
+
* @param {number} arg
|
|
1754
|
+
* @param {Callback<number> =} callback
|
|
1755
|
+
**/
|
|
1756
|
+
parentChildBounties: GenericStorageQuery<Rv, (arg: number) => number, number>;
|
|
1757
|
+
|
|
1758
|
+
/**
|
|
1759
|
+
* Child bounties that have been added.
|
|
1760
|
+
*
|
|
1761
|
+
* @param {[number, number]} arg
|
|
1762
|
+
* @param {Callback<PalletChildBountiesChildBounty | undefined> =} callback
|
|
1763
|
+
**/
|
|
1764
|
+
childBounties: GenericStorageQuery<
|
|
1765
|
+
Rv,
|
|
1766
|
+
(arg: [number, number]) => PalletChildBountiesChildBounty | undefined,
|
|
1767
|
+
[number, number]
|
|
1768
|
+
>;
|
|
1769
|
+
|
|
1770
|
+
/**
|
|
1771
|
+
* The description of each child-bounty.
|
|
1772
|
+
*
|
|
1773
|
+
* @param {number} arg
|
|
1774
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1775
|
+
**/
|
|
1776
|
+
childBountyDescriptions: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
|
|
1777
|
+
|
|
1778
|
+
/**
|
|
1779
|
+
* The cumulative child-bounty curator fee for each parent bounty.
|
|
1780
|
+
*
|
|
1781
|
+
* @param {number} arg
|
|
1782
|
+
* @param {Callback<bigint> =} callback
|
|
1783
|
+
**/
|
|
1784
|
+
childrenCuratorFees: GenericStorageQuery<Rv, (arg: number) => bigint, number>;
|
|
1785
|
+
|
|
1786
|
+
/**
|
|
1787
|
+
* Generic pallet storage query
|
|
1788
|
+
**/
|
|
1789
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1790
|
+
};
|
|
1791
|
+
/**
|
|
1792
|
+
* Pallet `Nis`'s storage queries
|
|
1793
|
+
**/
|
|
1794
|
+
nis: {
|
|
1795
|
+
/**
|
|
1796
|
+
* The totals of items and balances within each queue. Saves a lot of storage reads in the
|
|
1797
|
+
* case of sparsely packed queues.
|
|
1798
|
+
*
|
|
1799
|
+
* The vector is indexed by duration in `Period`s, offset by one, so information on the queue
|
|
1800
|
+
* whose duration is one `Period` would be storage `0`.
|
|
1801
|
+
*
|
|
1802
|
+
* @param {Callback<Array<[number, bigint]>> =} callback
|
|
1803
|
+
**/
|
|
1804
|
+
queueTotals: GenericStorageQuery<Rv, () => Array<[number, bigint]>>;
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* The queues of bids. Indexed by duration (in `Period`s).
|
|
1808
|
+
*
|
|
1809
|
+
* @param {number} arg
|
|
1810
|
+
* @param {Callback<Array<PalletNisBid>> =} callback
|
|
1811
|
+
**/
|
|
1812
|
+
queues: GenericStorageQuery<Rv, (arg: number) => Array<PalletNisBid>, number>;
|
|
1813
|
+
|
|
1814
|
+
/**
|
|
1815
|
+
* Summary information over the general state.
|
|
1816
|
+
*
|
|
1817
|
+
* @param {Callback<PalletNisSummaryRecord> =} callback
|
|
1818
|
+
**/
|
|
1819
|
+
summary: GenericStorageQuery<Rv, () => PalletNisSummaryRecord>;
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* The currently outstanding receipts, indexed according to the order of creation.
|
|
1823
|
+
*
|
|
1824
|
+
* @param {number} arg
|
|
1825
|
+
* @param {Callback<PalletNisReceiptRecord | undefined> =} callback
|
|
1826
|
+
**/
|
|
1827
|
+
receipts: GenericStorageQuery<Rv, (arg: number) => PalletNisReceiptRecord | undefined, number>;
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* Generic pallet storage query
|
|
1831
|
+
**/
|
|
1832
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1833
|
+
};
|
|
1834
|
+
/**
|
|
1835
|
+
* Pallet `NisCounterpartBalances`'s storage queries
|
|
1836
|
+
**/
|
|
1837
|
+
nisCounterpartBalances: {
|
|
1838
|
+
/**
|
|
1839
|
+
* The total units issued in the system.
|
|
1840
|
+
*
|
|
1841
|
+
* @param {Callback<bigint> =} callback
|
|
1842
|
+
**/
|
|
1843
|
+
totalIssuance: GenericStorageQuery<Rv, () => bigint>;
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* The total units of outstanding deactivated balance in the system.
|
|
1847
|
+
*
|
|
1848
|
+
* @param {Callback<bigint> =} callback
|
|
1849
|
+
**/
|
|
1850
|
+
inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* The Balances pallet example of storing the balance of an account.
|
|
1854
|
+
*
|
|
1855
|
+
* # Example
|
|
1856
|
+
*
|
|
1857
|
+
* ```nocompile
|
|
1858
|
+
* impl pallet_balances::Config for Runtime {
|
|
1859
|
+
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
|
1860
|
+
* }
|
|
1861
|
+
* ```
|
|
1862
|
+
*
|
|
1863
|
+
* You can also store the balance of an account in the `System` pallet.
|
|
1864
|
+
*
|
|
1865
|
+
* # Example
|
|
1866
|
+
*
|
|
1867
|
+
* ```nocompile
|
|
1868
|
+
* impl pallet_balances::Config for Runtime {
|
|
1869
|
+
* type AccountStore = System
|
|
1870
|
+
* }
|
|
1871
|
+
* ```
|
|
1872
|
+
*
|
|
1873
|
+
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
|
1874
|
+
* `frame_system` data alongside the account data contrary to storing account balances in the
|
|
1875
|
+
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
|
1876
|
+
* NOTE: This is only used in the case that this pallet is used to store balances.
|
|
1877
|
+
*
|
|
1878
|
+
* @param {AccountId32Like} arg
|
|
1879
|
+
* @param {Callback<PalletBalancesAccountData> =} callback
|
|
1880
|
+
**/
|
|
1881
|
+
account: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>;
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* Any liquidity locks on some account balances.
|
|
1885
|
+
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
1886
|
+
*
|
|
1887
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
1888
|
+
*
|
|
1889
|
+
* @param {AccountId32Like} arg
|
|
1890
|
+
* @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
|
|
1891
|
+
**/
|
|
1892
|
+
locks: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesBalanceLock>, AccountId32>;
|
|
1893
|
+
|
|
1894
|
+
/**
|
|
1895
|
+
* Named reserves on some account balances.
|
|
1896
|
+
*
|
|
1897
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
1898
|
+
*
|
|
1899
|
+
* @param {AccountId32Like} arg
|
|
1900
|
+
* @param {Callback<Array<PalletBalancesReserveData>> =} callback
|
|
1901
|
+
**/
|
|
1902
|
+
reserves: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesReserveData>, AccountId32>;
|
|
1903
|
+
|
|
1904
|
+
/**
|
|
1905
|
+
* Holds on account balances.
|
|
1906
|
+
*
|
|
1907
|
+
* @param {AccountId32Like} arg
|
|
1908
|
+
* @param {Callback<Array<PalletBalancesIdAmount>> =} callback
|
|
1909
|
+
**/
|
|
1910
|
+
holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount>, AccountId32>;
|
|
1911
|
+
|
|
1912
|
+
/**
|
|
1913
|
+
* Freeze locks on account balances.
|
|
1914
|
+
*
|
|
1915
|
+
* @param {AccountId32Like} arg
|
|
1916
|
+
* @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
|
|
1917
|
+
**/
|
|
1918
|
+
freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount002>, AccountId32>;
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* Generic pallet storage query
|
|
1922
|
+
**/
|
|
1923
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1924
|
+
};
|
|
1925
|
+
/**
|
|
1926
|
+
* Pallet `Configuration`'s storage queries
|
|
1927
|
+
**/
|
|
1928
|
+
configuration: {
|
|
1929
|
+
/**
|
|
1930
|
+
* The active configuration for the current session.
|
|
1931
|
+
*
|
|
1932
|
+
* @param {Callback<PolkadotRuntimeParachainsConfigurationHostConfiguration> =} callback
|
|
1933
|
+
**/
|
|
1934
|
+
activeConfig: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsConfigurationHostConfiguration>;
|
|
1935
|
+
|
|
1936
|
+
/**
|
|
1937
|
+
* Pending configuration changes.
|
|
1938
|
+
*
|
|
1939
|
+
* This is a list of configuration changes, each with a session index at which it should
|
|
1940
|
+
* be applied.
|
|
1941
|
+
*
|
|
1942
|
+
* The list is sorted ascending by session index. Also, this list can only contain at most
|
|
1943
|
+
* 2 items: for the next session and for the `scheduled_session`.
|
|
1944
|
+
*
|
|
1945
|
+
* @param {Callback<Array<[number, PolkadotRuntimeParachainsConfigurationHostConfiguration]>> =} callback
|
|
1946
|
+
**/
|
|
1947
|
+
pendingConfigs: GenericStorageQuery<
|
|
1948
|
+
Rv,
|
|
1949
|
+
() => Array<[number, PolkadotRuntimeParachainsConfigurationHostConfiguration]>
|
|
1950
|
+
>;
|
|
1951
|
+
|
|
1952
|
+
/**
|
|
1953
|
+
* If this is set, then the configuration setters will bypass the consistency checks. This
|
|
1954
|
+
* is meant to be used only as the last resort.
|
|
1955
|
+
*
|
|
1956
|
+
* @param {Callback<boolean> =} callback
|
|
1957
|
+
**/
|
|
1958
|
+
bypassConsistencyCheck: GenericStorageQuery<Rv, () => boolean>;
|
|
1959
|
+
|
|
1960
|
+
/**
|
|
1961
|
+
* Generic pallet storage query
|
|
1962
|
+
**/
|
|
1963
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1964
|
+
};
|
|
1965
|
+
/**
|
|
1966
|
+
* Pallet `ParasShared`'s storage queries
|
|
1967
|
+
**/
|
|
1968
|
+
parasShared: {
|
|
1969
|
+
/**
|
|
1970
|
+
* The current session index.
|
|
1971
|
+
*
|
|
1972
|
+
* @param {Callback<number> =} callback
|
|
1973
|
+
**/
|
|
1974
|
+
currentSessionIndex: GenericStorageQuery<Rv, () => number>;
|
|
1975
|
+
|
|
1976
|
+
/**
|
|
1977
|
+
* All the validators actively participating in parachain consensus.
|
|
1978
|
+
* Indices are into the broader validator set.
|
|
1979
|
+
*
|
|
1980
|
+
* @param {Callback<Array<PolkadotPrimitivesV7ValidatorIndex>> =} callback
|
|
1981
|
+
**/
|
|
1982
|
+
activeValidatorIndices: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7ValidatorIndex>>;
|
|
1983
|
+
|
|
1984
|
+
/**
|
|
1985
|
+
* The parachain attestation keys of the validators actively participating in parachain
|
|
1986
|
+
* consensus. This should be the same length as `ActiveValidatorIndices`.
|
|
1987
|
+
*
|
|
1988
|
+
* @param {Callback<Array<PolkadotPrimitivesV7ValidatorAppPublic>> =} callback
|
|
1989
|
+
**/
|
|
1990
|
+
activeValidatorKeys: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7ValidatorAppPublic>>;
|
|
1991
|
+
|
|
1992
|
+
/**
|
|
1993
|
+
* All allowed relay-parents.
|
|
1994
|
+
*
|
|
1995
|
+
* @param {Callback<PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker> =} callback
|
|
1996
|
+
**/
|
|
1997
|
+
allowedRelayParents: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker>;
|
|
1998
|
+
|
|
1999
|
+
/**
|
|
2000
|
+
* Generic pallet storage query
|
|
2001
|
+
**/
|
|
2002
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2003
|
+
};
|
|
2004
|
+
/**
|
|
2005
|
+
* Pallet `ParaInclusion`'s storage queries
|
|
2006
|
+
**/
|
|
2007
|
+
paraInclusion: {
|
|
2008
|
+
/**
|
|
2009
|
+
* Candidates pending availability by `ParaId`. They form a chain starting from the latest
|
|
2010
|
+
* included head of the para.
|
|
2011
|
+
* Use a different prefix post-migration to v1, since the v0 `PendingAvailability` storage
|
|
2012
|
+
* would otherwise have the exact same prefix which could cause undefined behaviour when doing
|
|
2013
|
+
* the migration.
|
|
2014
|
+
*
|
|
2015
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2016
|
+
* @param {Callback<Array<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability> | undefined> =} callback
|
|
2017
|
+
**/
|
|
2018
|
+
v1: GenericStorageQuery<
|
|
2019
|
+
Rv,
|
|
2020
|
+
(
|
|
2021
|
+
arg: PolkadotParachainPrimitivesPrimitivesId,
|
|
2022
|
+
) => Array<PolkadotRuntimeParachainsInclusionCandidatePendingAvailability> | undefined,
|
|
2023
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2024
|
+
>;
|
|
2025
|
+
|
|
2026
|
+
/**
|
|
2027
|
+
* Generic pallet storage query
|
|
2028
|
+
**/
|
|
2029
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2030
|
+
};
|
|
2031
|
+
/**
|
|
2032
|
+
* Pallet `ParaInherent`'s storage queries
|
|
2033
|
+
**/
|
|
2034
|
+
paraInherent: {
|
|
2035
|
+
/**
|
|
2036
|
+
* Whether the paras inherent was included within this block.
|
|
2037
|
+
*
|
|
2038
|
+
* The `Option<()>` is effectively a `bool`, but it never hits storage in the `None` variant
|
|
2039
|
+
* due to the guarantees of FRAME's storage APIs.
|
|
2040
|
+
*
|
|
2041
|
+
* If this is `None` at the end of the block, we panic and render the block invalid.
|
|
2042
|
+
*
|
|
2043
|
+
* @param {Callback<[] | undefined> =} callback
|
|
2044
|
+
**/
|
|
2045
|
+
included: GenericStorageQuery<Rv, () => [] | undefined>;
|
|
2046
|
+
|
|
2047
|
+
/**
|
|
2048
|
+
* Scraped on chain data for extracting resolved disputes as well as backing votes.
|
|
2049
|
+
*
|
|
2050
|
+
* @param {Callback<PolkadotPrimitivesV7ScrapedOnChainVotes | undefined> =} callback
|
|
2051
|
+
**/
|
|
2052
|
+
onChainVotes: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7ScrapedOnChainVotes | undefined>;
|
|
2053
|
+
|
|
2054
|
+
/**
|
|
2055
|
+
* Generic pallet storage query
|
|
2056
|
+
**/
|
|
2057
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2058
|
+
};
|
|
2059
|
+
/**
|
|
2060
|
+
* Pallet `ParaScheduler`'s storage queries
|
|
2061
|
+
**/
|
|
2062
|
+
paraScheduler: {
|
|
2063
|
+
/**
|
|
2064
|
+
* All the validator groups. One for each core. Indices are into `ActiveValidators` - not the
|
|
2065
|
+
* broader set of Polkadot validators, but instead just the subset used for parachains during
|
|
2066
|
+
* this session.
|
|
2067
|
+
*
|
|
2068
|
+
* Bound: The number of cores is the sum of the numbers of parachains and parathread
|
|
2069
|
+
* multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe
|
|
2070
|
+
* upper bound at 10k.
|
|
2071
|
+
*
|
|
2072
|
+
* @param {Callback<Array<Array<PolkadotPrimitivesV7ValidatorIndex>>> =} callback
|
|
2073
|
+
**/
|
|
2074
|
+
validatorGroups: GenericStorageQuery<Rv, () => Array<Array<PolkadotPrimitivesV7ValidatorIndex>>>;
|
|
2075
|
+
|
|
2076
|
+
/**
|
|
2077
|
+
* One entry for each availability core. The i'th parachain belongs to the i'th core, with the
|
|
2078
|
+
* remaining cores all being on demand parachain multiplexers.
|
|
2079
|
+
*
|
|
2080
|
+
* Bounded by the maximum of either of these two values:
|
|
2081
|
+
* * The number of parachains and parathread multiplexers
|
|
2082
|
+
* * The number of validators divided by `configuration.max_validators_per_core`.
|
|
2083
|
+
*
|
|
2084
|
+
* @param {Callback<Array<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>> =} callback
|
|
2085
|
+
**/
|
|
2086
|
+
availabilityCores: GenericStorageQuery<Rv, () => Array<PolkadotRuntimeParachainsSchedulerPalletCoreOccupied>>;
|
|
2087
|
+
|
|
2088
|
+
/**
|
|
2089
|
+
* The block number where the session start occurred. Used to track how many group rotations
|
|
2090
|
+
* have occurred.
|
|
2091
|
+
*
|
|
2092
|
+
* Note that in the context of parachains modules the session change is signaled during
|
|
2093
|
+
* the block and enacted at the end of the block (at the finalization stage, to be exact).
|
|
2094
|
+
* Thus for all intents and purposes the effect of the session change is observed at the
|
|
2095
|
+
* block following the session change, block number of which we save in this storage value.
|
|
2096
|
+
*
|
|
2097
|
+
* @param {Callback<number> =} callback
|
|
2098
|
+
**/
|
|
2099
|
+
sessionStartBlock: GenericStorageQuery<Rv, () => number>;
|
|
2100
|
+
|
|
2101
|
+
/**
|
|
2102
|
+
* One entry for each availability core. The `VecDeque` represents the assignments to be
|
|
2103
|
+
* scheduled on that core. The value contained here will not be valid after the end of
|
|
2104
|
+
* a block. Runtime APIs should be used to determine scheduled cores for the upcoming block.
|
|
2105
|
+
*
|
|
2106
|
+
* @param {Callback<Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
|
|
2107
|
+
**/
|
|
2108
|
+
claimQueue: GenericStorageQuery<
|
|
2109
|
+
Rv,
|
|
2110
|
+
() => Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
|
|
2111
|
+
>;
|
|
2112
|
+
|
|
2113
|
+
/**
|
|
2114
|
+
* Generic pallet storage query
|
|
2115
|
+
**/
|
|
2116
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2117
|
+
};
|
|
2118
|
+
/**
|
|
2119
|
+
* Pallet `Paras`'s storage queries
|
|
2120
|
+
**/
|
|
2121
|
+
paras: {
|
|
2122
|
+
/**
|
|
2123
|
+
* All currently active PVF pre-checking votes.
|
|
2124
|
+
*
|
|
2125
|
+
* Invariant:
|
|
2126
|
+
* - There are no PVF pre-checking votes that exists in list but not in the set and vice versa.
|
|
2127
|
+
*
|
|
2128
|
+
* @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} arg
|
|
2129
|
+
* @param {Callback<PolkadotRuntimeParachainsParasPvfCheckActiveVoteState | undefined> =} callback
|
|
2130
|
+
**/
|
|
2131
|
+
pvfActiveVoteMap: GenericStorageQuery<
|
|
2132
|
+
Rv,
|
|
2133
|
+
(
|
|
2134
|
+
arg: PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
2135
|
+
) => PolkadotRuntimeParachainsParasPvfCheckActiveVoteState | undefined,
|
|
2136
|
+
PolkadotParachainPrimitivesPrimitivesValidationCodeHash
|
|
2137
|
+
>;
|
|
2138
|
+
|
|
2139
|
+
/**
|
|
2140
|
+
* The list of all currently active PVF votes. Auxiliary to `PvfActiveVoteMap`.
|
|
2141
|
+
*
|
|
2142
|
+
* @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesValidationCodeHash>> =} callback
|
|
2143
|
+
**/
|
|
2144
|
+
pvfActiveVoteList: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesValidationCodeHash>>;
|
|
2145
|
+
|
|
2146
|
+
/**
|
|
2147
|
+
* All lease holding parachains. Ordered ascending by `ParaId`. On demand parachains are not
|
|
2148
|
+
* included.
|
|
2149
|
+
*
|
|
2150
|
+
* Consider using the [`ParachainsCache`] type of modifying.
|
|
2151
|
+
*
|
|
2152
|
+
* @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
|
|
2153
|
+
**/
|
|
2154
|
+
parachains: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesId>>;
|
|
2155
|
+
|
|
2156
|
+
/**
|
|
2157
|
+
* The current lifecycle of a all known Para IDs.
|
|
2158
|
+
*
|
|
2159
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2160
|
+
* @param {Callback<PolkadotRuntimeParachainsParasParaLifecycle | undefined> =} callback
|
|
2161
|
+
**/
|
|
2162
|
+
paraLifecycles: GenericStorageQuery<
|
|
2163
|
+
Rv,
|
|
2164
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeParachainsParasParaLifecycle | undefined,
|
|
2165
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2166
|
+
>;
|
|
2167
|
+
|
|
2168
|
+
/**
|
|
2169
|
+
* The head-data of every registered para.
|
|
2170
|
+
*
|
|
2171
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2172
|
+
* @param {Callback<PolkadotParachainPrimitivesPrimitivesHeadData | undefined> =} callback
|
|
2173
|
+
**/
|
|
2174
|
+
heads: GenericStorageQuery<
|
|
2175
|
+
Rv,
|
|
2176
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotParachainPrimitivesPrimitivesHeadData | undefined,
|
|
2177
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2178
|
+
>;
|
|
2179
|
+
|
|
2180
|
+
/**
|
|
2181
|
+
* The context (relay-chain block number) of the most recent parachain head.
|
|
2182
|
+
*
|
|
2183
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2184
|
+
* @param {Callback<number | undefined> =} callback
|
|
2185
|
+
**/
|
|
2186
|
+
mostRecentContext: GenericStorageQuery<
|
|
2187
|
+
Rv,
|
|
2188
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => number | undefined,
|
|
2189
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2190
|
+
>;
|
|
2191
|
+
|
|
2192
|
+
/**
|
|
2193
|
+
* The validation code hash of every live para.
|
|
2194
|
+
*
|
|
2195
|
+
* Corresponding code can be retrieved with [`CodeByHash`].
|
|
2196
|
+
*
|
|
2197
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2198
|
+
* @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined> =} callback
|
|
2199
|
+
**/
|
|
2200
|
+
currentCodeHash: GenericStorageQuery<
|
|
2201
|
+
Rv,
|
|
2202
|
+
(
|
|
2203
|
+
arg: PolkadotParachainPrimitivesPrimitivesId,
|
|
2204
|
+
) => PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined,
|
|
2205
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2206
|
+
>;
|
|
2207
|
+
|
|
2208
|
+
/**
|
|
2209
|
+
* Actual past code hash, indicated by the para id as well as the block number at which it
|
|
2210
|
+
* became outdated.
|
|
2211
|
+
*
|
|
2212
|
+
* Corresponding code can be retrieved with [`CodeByHash`].
|
|
2213
|
+
*
|
|
2214
|
+
* @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
|
|
2215
|
+
* @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined> =} callback
|
|
2216
|
+
**/
|
|
2217
|
+
pastCodeHash: GenericStorageQuery<
|
|
2218
|
+
Rv,
|
|
2219
|
+
(
|
|
2220
|
+
arg: [PolkadotParachainPrimitivesPrimitivesId, number],
|
|
2221
|
+
) => PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined,
|
|
2222
|
+
[PolkadotParachainPrimitivesPrimitivesId, number]
|
|
2223
|
+
>;
|
|
2224
|
+
|
|
2225
|
+
/**
|
|
2226
|
+
* Past code of parachains. The parachains themselves may not be registered anymore,
|
|
2227
|
+
* but we also keep their code on-chain for the same amount of time as outdated code
|
|
2228
|
+
* to keep it available for approval checkers.
|
|
2229
|
+
*
|
|
2230
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2231
|
+
* @param {Callback<PolkadotRuntimeParachainsParasParaPastCodeMeta> =} callback
|
|
2232
|
+
**/
|
|
2233
|
+
pastCodeMeta: GenericStorageQuery<
|
|
2234
|
+
Rv,
|
|
2235
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeParachainsParasParaPastCodeMeta,
|
|
2236
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2237
|
+
>;
|
|
2238
|
+
|
|
2239
|
+
/**
|
|
2240
|
+
* Which paras have past code that needs pruning and the relay-chain block at which the code
|
|
2241
|
+
* was replaced. Note that this is the actual height of the included block, not the expected
|
|
2242
|
+
* height at which the code upgrade would be applied, although they may be equal.
|
|
2243
|
+
* This is to ensure the entire acceptance period is covered, not an offset acceptance period
|
|
2244
|
+
* starting from the time at which the parachain perceives a code upgrade as having occurred.
|
|
2245
|
+
* Multiple entries for a single para are permitted. Ordered ascending by block number.
|
|
2246
|
+
*
|
|
2247
|
+
* @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
|
|
2248
|
+
**/
|
|
2249
|
+
pastCodePruning: GenericStorageQuery<Rv, () => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
|
|
2250
|
+
|
|
2251
|
+
/**
|
|
2252
|
+
* The block number at which the planned code change is expected for a parachain.
|
|
2253
|
+
*
|
|
2254
|
+
* The change will be applied after the first parablock for this ID included which executes
|
|
2255
|
+
* in the context of a relay chain block with a number >= `expected_at`.
|
|
2256
|
+
*
|
|
2257
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2258
|
+
* @param {Callback<number | undefined> =} callback
|
|
2259
|
+
**/
|
|
2260
|
+
futureCodeUpgrades: GenericStorageQuery<
|
|
2261
|
+
Rv,
|
|
2262
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => number | undefined,
|
|
2263
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2264
|
+
>;
|
|
2265
|
+
|
|
2266
|
+
/**
|
|
2267
|
+
* The list of upcoming future code upgrades.
|
|
2268
|
+
*
|
|
2269
|
+
* Each item is a pair of the parachain and the expected block at which the upgrade should be
|
|
2270
|
+
* applied. The upgrade will be applied at the given relay chain block. In contrast to
|
|
2271
|
+
* [`FutureCodeUpgrades`] this code upgrade will be applied regardless the parachain making any
|
|
2272
|
+
* progress or not.
|
|
2273
|
+
*
|
|
2274
|
+
* Ordered ascending by block number.
|
|
2275
|
+
*
|
|
2276
|
+
* @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
|
|
2277
|
+
**/
|
|
2278
|
+
futureCodeUpgradesAt: GenericStorageQuery<Rv, () => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
|
|
2279
|
+
|
|
2280
|
+
/**
|
|
2281
|
+
* The actual future code hash of a para.
|
|
2282
|
+
*
|
|
2283
|
+
* Corresponding code can be retrieved with [`CodeByHash`].
|
|
2284
|
+
*
|
|
2285
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2286
|
+
* @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined> =} callback
|
|
2287
|
+
**/
|
|
2288
|
+
futureCodeHash: GenericStorageQuery<
|
|
2289
|
+
Rv,
|
|
2290
|
+
(
|
|
2291
|
+
arg: PolkadotParachainPrimitivesPrimitivesId,
|
|
2292
|
+
) => PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined,
|
|
2293
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2294
|
+
>;
|
|
2295
|
+
|
|
2296
|
+
/**
|
|
2297
|
+
* This is used by the relay-chain to communicate to a parachain a go-ahead with in the upgrade
|
|
2298
|
+
* procedure.
|
|
2299
|
+
*
|
|
2300
|
+
* This value is absent when there are no upgrades scheduled or during the time the relay chain
|
|
2301
|
+
* performs the checks. It is set at the first relay-chain block when the corresponding
|
|
2302
|
+
* parachain can switch its upgrade function. As soon as the parachain's block is included, the
|
|
2303
|
+
* value gets reset to `None`.
|
|
2304
|
+
*
|
|
2305
|
+
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
|
2306
|
+
* the format will require migration of parachains.
|
|
2307
|
+
*
|
|
2308
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2309
|
+
* @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
|
|
2310
|
+
**/
|
|
2311
|
+
upgradeGoAheadSignal: GenericStorageQuery<
|
|
2312
|
+
Rv,
|
|
2313
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV7UpgradeGoAhead | undefined,
|
|
2314
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2315
|
+
>;
|
|
2316
|
+
|
|
2317
|
+
/**
|
|
2318
|
+
* This is used by the relay-chain to communicate that there are restrictions for performing
|
|
2319
|
+
* an upgrade for this parachain.
|
|
2320
|
+
*
|
|
2321
|
+
* This may be a because the parachain waits for the upgrade cooldown to expire. Another
|
|
2322
|
+
* potential use case is when we want to perform some maintenance (such as storage migration)
|
|
2323
|
+
* we could restrict upgrades to make the process simpler.
|
|
2324
|
+
*
|
|
2325
|
+
* NOTE that this field is used by parachains via merkle storage proofs, therefore changing
|
|
2326
|
+
* the format will require migration of parachains.
|
|
2327
|
+
*
|
|
2328
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2329
|
+
* @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
|
|
2330
|
+
**/
|
|
2331
|
+
upgradeRestrictionSignal: GenericStorageQuery<
|
|
2332
|
+
Rv,
|
|
2333
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV7UpgradeRestriction | undefined,
|
|
2334
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2335
|
+
>;
|
|
2336
|
+
|
|
2337
|
+
/**
|
|
2338
|
+
* The list of parachains that are awaiting for their upgrade restriction to cooldown.
|
|
2339
|
+
*
|
|
2340
|
+
* Ordered ascending by block number.
|
|
2341
|
+
*
|
|
2342
|
+
* @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
|
|
2343
|
+
**/
|
|
2344
|
+
upgradeCooldowns: GenericStorageQuery<Rv, () => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
|
|
2345
|
+
|
|
2346
|
+
/**
|
|
2347
|
+
* The list of upcoming code upgrades.
|
|
2348
|
+
*
|
|
2349
|
+
* Each item is a pair of which para performs a code upgrade and at which relay-chain block it
|
|
2350
|
+
* is expected at.
|
|
2351
|
+
*
|
|
2352
|
+
* Ordered ascending by block number.
|
|
2353
|
+
*
|
|
2354
|
+
* @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, number]>> =} callback
|
|
2355
|
+
**/
|
|
2356
|
+
upcomingUpgrades: GenericStorageQuery<Rv, () => Array<[PolkadotParachainPrimitivesPrimitivesId, number]>>;
|
|
2357
|
+
|
|
2358
|
+
/**
|
|
2359
|
+
* The actions to perform during the start of a specific session index.
|
|
2360
|
+
*
|
|
2361
|
+
* @param {number} arg
|
|
2362
|
+
* @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
|
|
2363
|
+
**/
|
|
2364
|
+
actionsQueue: GenericStorageQuery<Rv, (arg: number) => Array<PolkadotParachainPrimitivesPrimitivesId>, number>;
|
|
2365
|
+
|
|
2366
|
+
/**
|
|
2367
|
+
* Upcoming paras instantiation arguments.
|
|
2368
|
+
*
|
|
2369
|
+
* NOTE that after PVF pre-checking is enabled the para genesis arg will have it's code set
|
|
2370
|
+
* to empty. Instead, the code will be saved into the storage right away via `CodeByHash`.
|
|
2371
|
+
*
|
|
2372
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2373
|
+
* @param {Callback<PolkadotRuntimeParachainsParasParaGenesisArgs | undefined> =} callback
|
|
2374
|
+
**/
|
|
2375
|
+
upcomingParasGenesis: GenericStorageQuery<
|
|
2376
|
+
Rv,
|
|
2377
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeParachainsParasParaGenesisArgs | undefined,
|
|
2378
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2379
|
+
>;
|
|
2380
|
+
|
|
2381
|
+
/**
|
|
2382
|
+
* The number of reference on the validation code in [`CodeByHash`] storage.
|
|
2383
|
+
*
|
|
2384
|
+
* @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} arg
|
|
2385
|
+
* @param {Callback<number> =} callback
|
|
2386
|
+
**/
|
|
2387
|
+
codeByHashRefs: GenericStorageQuery<
|
|
2388
|
+
Rv,
|
|
2389
|
+
(arg: PolkadotParachainPrimitivesPrimitivesValidationCodeHash) => number,
|
|
2390
|
+
PolkadotParachainPrimitivesPrimitivesValidationCodeHash
|
|
2391
|
+
>;
|
|
2392
|
+
|
|
2393
|
+
/**
|
|
2394
|
+
* Validation code stored by its hash.
|
|
2395
|
+
*
|
|
2396
|
+
* This storage is consistent with [`FutureCodeHash`], [`CurrentCodeHash`] and
|
|
2397
|
+
* [`PastCodeHash`].
|
|
2398
|
+
*
|
|
2399
|
+
* @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} arg
|
|
2400
|
+
* @param {Callback<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined> =} callback
|
|
2401
|
+
**/
|
|
2402
|
+
codeByHash: GenericStorageQuery<
|
|
2403
|
+
Rv,
|
|
2404
|
+
(
|
|
2405
|
+
arg: PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
|
|
2406
|
+
) => PolkadotParachainPrimitivesPrimitivesValidationCode | undefined,
|
|
2407
|
+
PolkadotParachainPrimitivesPrimitivesValidationCodeHash
|
|
2408
|
+
>;
|
|
2409
|
+
|
|
2410
|
+
/**
|
|
2411
|
+
* Generic pallet storage query
|
|
2412
|
+
**/
|
|
2413
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2414
|
+
};
|
|
2415
|
+
/**
|
|
2416
|
+
* Pallet `Initializer`'s storage queries
|
|
2417
|
+
**/
|
|
2418
|
+
initializer: {
|
|
2419
|
+
/**
|
|
2420
|
+
* Whether the parachains modules have been initialized within this block.
|
|
2421
|
+
*
|
|
2422
|
+
* Semantically a `bool`, but this guarantees it should never hit the trie,
|
|
2423
|
+
* as this is cleared in `on_finalize` and Frame optimizes `None` values to be empty values.
|
|
2424
|
+
*
|
|
2425
|
+
* As a `bool`, `set(false)` and `remove()` both lead to the next `get()` being false, but one
|
|
2426
|
+
* of them writes to the trie and one does not. This confusion makes `Option<()>` more suitable
|
|
2427
|
+
* for the semantics of this variable.
|
|
2428
|
+
*
|
|
2429
|
+
* @param {Callback<[] | undefined> =} callback
|
|
2430
|
+
**/
|
|
2431
|
+
hasInitialized: GenericStorageQuery<Rv, () => [] | undefined>;
|
|
2432
|
+
|
|
2433
|
+
/**
|
|
2434
|
+
* Buffered session changes along with the block number at which they should be applied.
|
|
2435
|
+
*
|
|
2436
|
+
* Typically this will be empty or one element long. Apart from that this item never hits
|
|
2437
|
+
* the storage.
|
|
2438
|
+
*
|
|
2439
|
+
* However this is a `Vec` regardless to handle various edge cases that may occur at runtime
|
|
2440
|
+
* upgrade boundaries or if governance intervenes.
|
|
2441
|
+
*
|
|
2442
|
+
* @param {Callback<Array<PolkadotRuntimeParachainsInitializerBufferedSessionChange>> =} callback
|
|
2443
|
+
**/
|
|
2444
|
+
bufferedSessionChanges: GenericStorageQuery<
|
|
2445
|
+
Rv,
|
|
2446
|
+
() => Array<PolkadotRuntimeParachainsInitializerBufferedSessionChange>
|
|
2447
|
+
>;
|
|
2448
|
+
|
|
2449
|
+
/**
|
|
2450
|
+
* Generic pallet storage query
|
|
2451
|
+
**/
|
|
2452
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2453
|
+
};
|
|
2454
|
+
/**
|
|
2455
|
+
* Pallet `Dmp`'s storage queries
|
|
2456
|
+
**/
|
|
2457
|
+
dmp: {
|
|
2458
|
+
/**
|
|
2459
|
+
* The downward messages addressed for a certain para.
|
|
2460
|
+
*
|
|
2461
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2462
|
+
* @param {Callback<Array<PolkadotCorePrimitivesInboundDownwardMessage>> =} callback
|
|
2463
|
+
**/
|
|
2464
|
+
downwardMessageQueues: GenericStorageQuery<
|
|
2465
|
+
Rv,
|
|
2466
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => Array<PolkadotCorePrimitivesInboundDownwardMessage>,
|
|
2467
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2468
|
+
>;
|
|
2469
|
+
|
|
2470
|
+
/**
|
|
2471
|
+
* A mapping that stores the downward message queue MQC head for each para.
|
|
2472
|
+
*
|
|
2473
|
+
* Each link in this chain has a form:
|
|
2474
|
+
* `(prev_head, B, H(M))`, where
|
|
2475
|
+
* - `prev_head`: is the previous head hash or zero if none.
|
|
2476
|
+
* - `B`: is the relay-chain block number in which a message was appended.
|
|
2477
|
+
* - `H(M)`: is the hash of the message being appended.
|
|
2478
|
+
*
|
|
2479
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2480
|
+
* @param {Callback<H256> =} callback
|
|
2481
|
+
**/
|
|
2482
|
+
downwardMessageQueueHeads: GenericStorageQuery<
|
|
2483
|
+
Rv,
|
|
2484
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => H256,
|
|
2485
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2486
|
+
>;
|
|
2487
|
+
|
|
2488
|
+
/**
|
|
2489
|
+
* The factor to multiply the base delivery fee by.
|
|
2490
|
+
*
|
|
2491
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2492
|
+
* @param {Callback<FixedU128> =} callback
|
|
2493
|
+
**/
|
|
2494
|
+
deliveryFeeFactor: GenericStorageQuery<
|
|
2495
|
+
Rv,
|
|
2496
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128,
|
|
2497
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2498
|
+
>;
|
|
2499
|
+
|
|
2500
|
+
/**
|
|
2501
|
+
* Generic pallet storage query
|
|
2502
|
+
**/
|
|
2503
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2504
|
+
};
|
|
2505
|
+
/**
|
|
2506
|
+
* Pallet `Hrmp`'s storage queries
|
|
2507
|
+
**/
|
|
2508
|
+
hrmp: {
|
|
2509
|
+
/**
|
|
2510
|
+
* The set of pending HRMP open channel requests.
|
|
2511
|
+
*
|
|
2512
|
+
* The set is accompanied by a list for iteration.
|
|
2513
|
+
*
|
|
2514
|
+
* Invariant:
|
|
2515
|
+
* - There are no channels that exists in list but not in the set and vice versa.
|
|
2516
|
+
*
|
|
2517
|
+
* @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
|
|
2518
|
+
* @param {Callback<PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest | undefined> =} callback
|
|
2519
|
+
**/
|
|
2520
|
+
hrmpOpenChannelRequests: GenericStorageQuery<
|
|
2521
|
+
Rv,
|
|
2522
|
+
(
|
|
2523
|
+
arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
|
|
2524
|
+
) => PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest | undefined,
|
|
2525
|
+
PolkadotParachainPrimitivesPrimitivesHrmpChannelId
|
|
2526
|
+
>;
|
|
2527
|
+
|
|
2528
|
+
/**
|
|
2529
|
+
*
|
|
2530
|
+
* @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>> =} callback
|
|
2531
|
+
**/
|
|
2532
|
+
hrmpOpenChannelRequestsList: GenericStorageQuery<
|
|
2533
|
+
Rv,
|
|
2534
|
+
() => Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>
|
|
2535
|
+
>;
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* This mapping tracks how many open channel requests are initiated by a given sender para.
|
|
2539
|
+
* Invariant: `HrmpOpenChannelRequests` should contain the same number of items that has
|
|
2540
|
+
* `(X, _)` as the number of `HrmpOpenChannelRequestCount` for `X`.
|
|
2541
|
+
*
|
|
2542
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2543
|
+
* @param {Callback<number> =} callback
|
|
2544
|
+
**/
|
|
2545
|
+
hrmpOpenChannelRequestCount: GenericStorageQuery<
|
|
2546
|
+
Rv,
|
|
2547
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => number,
|
|
2548
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2549
|
+
>;
|
|
2550
|
+
|
|
2551
|
+
/**
|
|
2552
|
+
* This mapping tracks how many open channel requests were accepted by a given recipient para.
|
|
2553
|
+
* Invariant: `HrmpOpenChannelRequests` should contain the same number of items `(_, X)` with
|
|
2554
|
+
* `confirmed` set to true, as the number of `HrmpAcceptedChannelRequestCount` for `X`.
|
|
2555
|
+
*
|
|
2556
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2557
|
+
* @param {Callback<number> =} callback
|
|
2558
|
+
**/
|
|
2559
|
+
hrmpAcceptedChannelRequestCount: GenericStorageQuery<
|
|
2560
|
+
Rv,
|
|
2561
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => number,
|
|
2562
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2563
|
+
>;
|
|
2564
|
+
|
|
2565
|
+
/**
|
|
2566
|
+
* A set of pending HRMP close channel requests that are going to be closed during the session
|
|
2567
|
+
* change. Used for checking if a given channel is registered for closure.
|
|
2568
|
+
*
|
|
2569
|
+
* The set is accompanied by a list for iteration.
|
|
2570
|
+
*
|
|
2571
|
+
* Invariant:
|
|
2572
|
+
* - There are no channels that exists in list but not in the set and vice versa.
|
|
2573
|
+
*
|
|
2574
|
+
* @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
|
|
2575
|
+
* @param {Callback<[] | undefined> =} callback
|
|
2576
|
+
**/
|
|
2577
|
+
hrmpCloseChannelRequests: GenericStorageQuery<
|
|
2578
|
+
Rv,
|
|
2579
|
+
(arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId) => [] | undefined,
|
|
2580
|
+
PolkadotParachainPrimitivesPrimitivesHrmpChannelId
|
|
2581
|
+
>;
|
|
2582
|
+
|
|
2583
|
+
/**
|
|
2584
|
+
*
|
|
2585
|
+
* @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>> =} callback
|
|
2586
|
+
**/
|
|
2587
|
+
hrmpCloseChannelRequestsList: GenericStorageQuery<
|
|
2588
|
+
Rv,
|
|
2589
|
+
() => Array<PolkadotParachainPrimitivesPrimitivesHrmpChannelId>
|
|
2590
|
+
>;
|
|
2591
|
+
|
|
2592
|
+
/**
|
|
2593
|
+
* The HRMP watermark associated with each para.
|
|
2594
|
+
* Invariant:
|
|
2595
|
+
* - each para `P` used here as a key should satisfy `Paras::is_valid_para(P)` within a
|
|
2596
|
+
* session.
|
|
2597
|
+
*
|
|
2598
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2599
|
+
* @param {Callback<number | undefined> =} callback
|
|
2600
|
+
**/
|
|
2601
|
+
hrmpWatermarks: GenericStorageQuery<
|
|
2602
|
+
Rv,
|
|
2603
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => number | undefined,
|
|
2604
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2605
|
+
>;
|
|
2606
|
+
|
|
2607
|
+
/**
|
|
2608
|
+
* HRMP channel data associated with each para.
|
|
2609
|
+
* Invariant:
|
|
2610
|
+
* - each participant in the channel should satisfy `Paras::is_valid_para(P)` within a session.
|
|
2611
|
+
*
|
|
2612
|
+
* @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
|
|
2613
|
+
* @param {Callback<PolkadotRuntimeParachainsHrmpHrmpChannel | undefined> =} callback
|
|
2614
|
+
**/
|
|
2615
|
+
hrmpChannels: GenericStorageQuery<
|
|
2616
|
+
Rv,
|
|
2617
|
+
(arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId) => PolkadotRuntimeParachainsHrmpHrmpChannel | undefined,
|
|
2618
|
+
PolkadotParachainPrimitivesPrimitivesHrmpChannelId
|
|
2619
|
+
>;
|
|
2620
|
+
|
|
2621
|
+
/**
|
|
2622
|
+
* Ingress/egress indexes allow to find all the senders and receivers given the opposite side.
|
|
2623
|
+
* I.e.
|
|
2624
|
+
*
|
|
2625
|
+
* (a) ingress index allows to find all the senders for a given recipient.
|
|
2626
|
+
* (b) egress index allows to find all the recipients for a given sender.
|
|
2627
|
+
*
|
|
2628
|
+
* Invariants:
|
|
2629
|
+
* - for each ingress index entry for `P` each item `I` in the index should present in
|
|
2630
|
+
* `HrmpChannels` as `(I, P)`.
|
|
2631
|
+
* - for each egress index entry for `P` each item `E` in the index should present in
|
|
2632
|
+
* `HrmpChannels` as `(P, E)`.
|
|
2633
|
+
* - there should be no other dangling channels in `HrmpChannels`.
|
|
2634
|
+
* - the vectors are sorted.
|
|
2635
|
+
*
|
|
2636
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2637
|
+
* @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
|
|
2638
|
+
**/
|
|
2639
|
+
hrmpIngressChannelsIndex: GenericStorageQuery<
|
|
2640
|
+
Rv,
|
|
2641
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => Array<PolkadotParachainPrimitivesPrimitivesId>,
|
|
2642
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2643
|
+
>;
|
|
2644
|
+
|
|
2645
|
+
/**
|
|
2646
|
+
*
|
|
2647
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2648
|
+
* @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
|
|
2649
|
+
**/
|
|
2650
|
+
hrmpEgressChannelsIndex: GenericStorageQuery<
|
|
2651
|
+
Rv,
|
|
2652
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => Array<PolkadotParachainPrimitivesPrimitivesId>,
|
|
2653
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2654
|
+
>;
|
|
2655
|
+
|
|
2656
|
+
/**
|
|
2657
|
+
* Storage for the messages for each channel.
|
|
2658
|
+
* Invariant: cannot be non-empty if the corresponding channel in `HrmpChannels` is `None`.
|
|
2659
|
+
*
|
|
2660
|
+
* @param {PolkadotParachainPrimitivesPrimitivesHrmpChannelId} arg
|
|
2661
|
+
* @param {Callback<Array<PolkadotCorePrimitivesInboundHrmpMessage>> =} callback
|
|
2662
|
+
**/
|
|
2663
|
+
hrmpChannelContents: GenericStorageQuery<
|
|
2664
|
+
Rv,
|
|
2665
|
+
(arg: PolkadotParachainPrimitivesPrimitivesHrmpChannelId) => Array<PolkadotCorePrimitivesInboundHrmpMessage>,
|
|
2666
|
+
PolkadotParachainPrimitivesPrimitivesHrmpChannelId
|
|
2667
|
+
>;
|
|
2668
|
+
|
|
2669
|
+
/**
|
|
2670
|
+
* Maintains a mapping that can be used to answer the question: What paras sent a message at
|
|
2671
|
+
* the given block number for a given receiver. Invariants:
|
|
2672
|
+
* - The inner `Vec<ParaId>` is never empty.
|
|
2673
|
+
* - The inner `Vec<ParaId>` cannot store two same `ParaId`.
|
|
2674
|
+
* - The outer vector is sorted ascending by block number and cannot store two items with the
|
|
2675
|
+
* same block number.
|
|
2676
|
+
*
|
|
2677
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2678
|
+
* @param {Callback<Array<[number, Array<PolkadotParachainPrimitivesPrimitivesId>]>> =} callback
|
|
2679
|
+
**/
|
|
2680
|
+
hrmpChannelDigests: GenericStorageQuery<
|
|
2681
|
+
Rv,
|
|
2682
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => Array<[number, Array<PolkadotParachainPrimitivesPrimitivesId>]>,
|
|
2683
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2684
|
+
>;
|
|
2685
|
+
|
|
2686
|
+
/**
|
|
2687
|
+
* Generic pallet storage query
|
|
2688
|
+
**/
|
|
2689
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2690
|
+
};
|
|
2691
|
+
/**
|
|
2692
|
+
* Pallet `ParaSessionInfo`'s storage queries
|
|
2693
|
+
**/
|
|
2694
|
+
paraSessionInfo: {
|
|
2695
|
+
/**
|
|
2696
|
+
* Assignment keys for the current session.
|
|
2697
|
+
* Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
|
|
2698
|
+
* When in doubt, use `Sessions` API instead.
|
|
2699
|
+
*
|
|
2700
|
+
* @param {Callback<Array<PolkadotPrimitivesV7AssignmentAppPublic>> =} callback
|
|
2701
|
+
**/
|
|
2702
|
+
assignmentKeysUnsafe: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7AssignmentAppPublic>>;
|
|
2703
|
+
|
|
2704
|
+
/**
|
|
2705
|
+
* The earliest session for which previous session info is stored.
|
|
2706
|
+
*
|
|
2707
|
+
* @param {Callback<number> =} callback
|
|
2708
|
+
**/
|
|
2709
|
+
earliestStoredSession: GenericStorageQuery<Rv, () => number>;
|
|
2710
|
+
|
|
2711
|
+
/**
|
|
2712
|
+
* Session information in a rolling window.
|
|
2713
|
+
* Should have an entry in range `EarliestStoredSession..=CurrentSessionIndex`.
|
|
2714
|
+
* Does not have any entries before the session index in the first session change notification.
|
|
2715
|
+
*
|
|
2716
|
+
* @param {number} arg
|
|
2717
|
+
* @param {Callback<PolkadotPrimitivesV7SessionInfo | undefined> =} callback
|
|
2718
|
+
**/
|
|
2719
|
+
sessions: GenericStorageQuery<Rv, (arg: number) => PolkadotPrimitivesV7SessionInfo | undefined, number>;
|
|
2720
|
+
|
|
2721
|
+
/**
|
|
2722
|
+
* The validator account keys of the validators actively participating in parachain consensus.
|
|
2723
|
+
*
|
|
2724
|
+
* @param {number} arg
|
|
2725
|
+
* @param {Callback<Array<AccountId32> | undefined> =} callback
|
|
2726
|
+
**/
|
|
2727
|
+
accountKeys: GenericStorageQuery<Rv, (arg: number) => Array<AccountId32> | undefined, number>;
|
|
2728
|
+
|
|
2729
|
+
/**
|
|
2730
|
+
* Executor parameter set for a given session index
|
|
2731
|
+
*
|
|
2732
|
+
* @param {number} arg
|
|
2733
|
+
* @param {Callback<PolkadotPrimitivesV7ExecutorParams | undefined> =} callback
|
|
2734
|
+
**/
|
|
2735
|
+
sessionExecutorParams: GenericStorageQuery<
|
|
2736
|
+
Rv,
|
|
2737
|
+
(arg: number) => PolkadotPrimitivesV7ExecutorParams | undefined,
|
|
2738
|
+
number
|
|
2739
|
+
>;
|
|
2740
|
+
|
|
2741
|
+
/**
|
|
2742
|
+
* Generic pallet storage query
|
|
2743
|
+
**/
|
|
2744
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2745
|
+
};
|
|
2746
|
+
/**
|
|
2747
|
+
* Pallet `ParasDisputes`'s storage queries
|
|
2748
|
+
**/
|
|
2749
|
+
parasDisputes: {
|
|
2750
|
+
/**
|
|
2751
|
+
* The last pruned session, if any. All data stored by this module
|
|
2752
|
+
* references sessions.
|
|
2753
|
+
*
|
|
2754
|
+
* @param {Callback<number | undefined> =} callback
|
|
2755
|
+
**/
|
|
2756
|
+
lastPrunedSession: GenericStorageQuery<Rv, () => number | undefined>;
|
|
2757
|
+
|
|
2758
|
+
/**
|
|
2759
|
+
* All ongoing or concluded disputes for the last several sessions.
|
|
2760
|
+
*
|
|
2761
|
+
* @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
|
|
2762
|
+
* @param {Callback<PolkadotPrimitivesV7DisputeState | undefined> =} callback
|
|
2763
|
+
**/
|
|
2764
|
+
disputes: GenericStorageQuery<
|
|
2765
|
+
Rv,
|
|
2766
|
+
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV7DisputeState | undefined,
|
|
2767
|
+
[number, PolkadotCorePrimitivesCandidateHash]
|
|
2768
|
+
>;
|
|
2769
|
+
|
|
2770
|
+
/**
|
|
2771
|
+
* Backing votes stored for each dispute.
|
|
2772
|
+
* This storage is used for slashing.
|
|
2773
|
+
*
|
|
2774
|
+
* @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
|
|
2775
|
+
* @param {Callback<Array<PolkadotPrimitivesV7ValidatorIndex> | undefined> =} callback
|
|
2776
|
+
**/
|
|
2777
|
+
backersOnDisputes: GenericStorageQuery<
|
|
2778
|
+
Rv,
|
|
2779
|
+
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV7ValidatorIndex> | undefined,
|
|
2780
|
+
[number, PolkadotCorePrimitivesCandidateHash]
|
|
2781
|
+
>;
|
|
2782
|
+
|
|
2783
|
+
/**
|
|
2784
|
+
* All included blocks on the chain, as well as the block number in this chain that
|
|
2785
|
+
* should be reverted back to if the candidate is disputed and determined to be invalid.
|
|
2786
|
+
*
|
|
2787
|
+
* @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
|
|
2788
|
+
* @param {Callback<number | undefined> =} callback
|
|
2789
|
+
**/
|
|
2790
|
+
included: GenericStorageQuery<
|
|
2791
|
+
Rv,
|
|
2792
|
+
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => number | undefined,
|
|
2793
|
+
[number, PolkadotCorePrimitivesCandidateHash]
|
|
2794
|
+
>;
|
|
2795
|
+
|
|
2796
|
+
/**
|
|
2797
|
+
* Whether the chain is frozen. Starts as `None`. When this is `Some`,
|
|
2798
|
+
* the chain will not accept any new parachain blocks for backing or inclusion,
|
|
2799
|
+
* and its value indicates the last valid block number in the chain.
|
|
2800
|
+
* It can only be set back to `None` by governance intervention.
|
|
2801
|
+
*
|
|
2802
|
+
* @param {Callback<number | undefined> =} callback
|
|
2803
|
+
**/
|
|
2804
|
+
frozen: GenericStorageQuery<Rv, () => number | undefined>;
|
|
2805
|
+
|
|
2806
|
+
/**
|
|
2807
|
+
* Generic pallet storage query
|
|
2808
|
+
**/
|
|
2809
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2810
|
+
};
|
|
2811
|
+
/**
|
|
2812
|
+
* Pallet `ParasSlashing`'s storage queries
|
|
2813
|
+
**/
|
|
2814
|
+
parasSlashing: {
|
|
2815
|
+
/**
|
|
2816
|
+
* Validators pending dispute slashes.
|
|
2817
|
+
*
|
|
2818
|
+
* @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
|
|
2819
|
+
* @param {Callback<PolkadotPrimitivesV7SlashingPendingSlashes | undefined> =} callback
|
|
2820
|
+
**/
|
|
2821
|
+
unappliedSlashes: GenericStorageQuery<
|
|
2822
|
+
Rv,
|
|
2823
|
+
(arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV7SlashingPendingSlashes | undefined,
|
|
2824
|
+
[number, PolkadotCorePrimitivesCandidateHash]
|
|
2825
|
+
>;
|
|
2826
|
+
|
|
2827
|
+
/**
|
|
2828
|
+
* `ValidatorSetCount` per session.
|
|
2829
|
+
*
|
|
2830
|
+
* @param {number} arg
|
|
2831
|
+
* @param {Callback<number | undefined> =} callback
|
|
2832
|
+
**/
|
|
2833
|
+
validatorSetCounts: GenericStorageQuery<Rv, (arg: number) => number | undefined, number>;
|
|
2834
|
+
|
|
2835
|
+
/**
|
|
2836
|
+
* Generic pallet storage query
|
|
2837
|
+
**/
|
|
2838
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2839
|
+
};
|
|
2840
|
+
/**
|
|
2841
|
+
* Pallet `MessageQueue`'s storage queries
|
|
2842
|
+
**/
|
|
2843
|
+
messageQueue: {
|
|
2844
|
+
/**
|
|
2845
|
+
* The index of the first and last (non-empty) pages.
|
|
2846
|
+
*
|
|
2847
|
+
* @param {PolkadotRuntimeParachainsInclusionAggregateMessageOrigin} arg
|
|
2848
|
+
* @param {Callback<PalletMessageQueueBookState> =} callback
|
|
2849
|
+
**/
|
|
2850
|
+
bookStateFor: GenericStorageQuery<
|
|
2851
|
+
Rv,
|
|
2852
|
+
(arg: PolkadotRuntimeParachainsInclusionAggregateMessageOrigin) => PalletMessageQueueBookState,
|
|
2853
|
+
PolkadotRuntimeParachainsInclusionAggregateMessageOrigin
|
|
2854
|
+
>;
|
|
2855
|
+
|
|
2856
|
+
/**
|
|
2857
|
+
* The origin at which we should begin servicing.
|
|
2858
|
+
*
|
|
2859
|
+
* @param {Callback<PolkadotRuntimeParachainsInclusionAggregateMessageOrigin | undefined> =} callback
|
|
2860
|
+
**/
|
|
2861
|
+
serviceHead: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsInclusionAggregateMessageOrigin | undefined>;
|
|
2862
|
+
|
|
2863
|
+
/**
|
|
2864
|
+
* The map of page indices to pages.
|
|
2865
|
+
*
|
|
2866
|
+
* @param {[PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, number]} arg
|
|
2867
|
+
* @param {Callback<PalletMessageQueuePage | undefined> =} callback
|
|
2868
|
+
**/
|
|
2869
|
+
pages: GenericStorageQuery<
|
|
2870
|
+
Rv,
|
|
2871
|
+
(arg: [PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, number]) => PalletMessageQueuePage | undefined,
|
|
2872
|
+
[PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, number]
|
|
2873
|
+
>;
|
|
2874
|
+
|
|
2875
|
+
/**
|
|
2876
|
+
* Generic pallet storage query
|
|
2877
|
+
**/
|
|
2878
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2879
|
+
};
|
|
2880
|
+
/**
|
|
2881
|
+
* Pallet `OnDemandAssignmentProvider`'s storage queries
|
|
2882
|
+
**/
|
|
2883
|
+
onDemandAssignmentProvider: {
|
|
2884
|
+
/**
|
|
2885
|
+
* Maps a `ParaId` to `CoreIndex` and keeps track of how many assignments the scheduler has in
|
|
2886
|
+
* it's lookahead. Keeping track of this affinity prevents parallel execution of the same
|
|
2887
|
+
* `ParaId` on two or more `CoreIndex`es.
|
|
2888
|
+
*
|
|
2889
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2890
|
+
* @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount | undefined> =} callback
|
|
2891
|
+
**/
|
|
2892
|
+
paraIdAffinity: GenericStorageQuery<
|
|
2893
|
+
Rv,
|
|
2894
|
+
(
|
|
2895
|
+
arg: PolkadotParachainPrimitivesPrimitivesId,
|
|
2896
|
+
) => PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount | undefined,
|
|
2897
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2898
|
+
>;
|
|
2899
|
+
|
|
2900
|
+
/**
|
|
2901
|
+
* Overall status of queue (both free + affinity entries)
|
|
2902
|
+
*
|
|
2903
|
+
* @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandQueueStatusType> =} callback
|
|
2904
|
+
**/
|
|
2905
|
+
queueStatus: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsAssignerOnDemandQueueStatusType>;
|
|
2906
|
+
|
|
2907
|
+
/**
|
|
2908
|
+
* Priority queue for all orders which don't yet (or not any more) have any core affinity.
|
|
2909
|
+
*
|
|
2910
|
+
* @param {Callback<BinaryHeapEnqueuedOrder> =} callback
|
|
2911
|
+
**/
|
|
2912
|
+
freeEntries: GenericStorageQuery<Rv, () => BinaryHeapEnqueuedOrder>;
|
|
2913
|
+
|
|
2914
|
+
/**
|
|
2915
|
+
* Queue entries that are currently bound to a particular core due to core affinity.
|
|
2916
|
+
*
|
|
2917
|
+
* @param {PolkadotPrimitivesV7CoreIndex} arg
|
|
2918
|
+
* @param {Callback<BinaryHeapEnqueuedOrder> =} callback
|
|
2919
|
+
**/
|
|
2920
|
+
affinityEntries: GenericStorageQuery<
|
|
2921
|
+
Rv,
|
|
2922
|
+
(arg: PolkadotPrimitivesV7CoreIndex) => BinaryHeapEnqueuedOrder,
|
|
2923
|
+
PolkadotPrimitivesV7CoreIndex
|
|
2924
|
+
>;
|
|
2925
|
+
|
|
2926
|
+
/**
|
|
2927
|
+
* Generic pallet storage query
|
|
2928
|
+
**/
|
|
2929
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2930
|
+
};
|
|
2931
|
+
/**
|
|
2932
|
+
* Pallet `CoretimeAssignmentProvider`'s storage queries
|
|
2933
|
+
**/
|
|
2934
|
+
coretimeAssignmentProvider: {
|
|
2935
|
+
/**
|
|
2936
|
+
* Scheduled assignment sets.
|
|
2937
|
+
*
|
|
2938
|
+
* Assignments as of the given block number. They will go into state once the block number is
|
|
2939
|
+
* reached (and replace whatever was in there before).
|
|
2940
|
+
*
|
|
2941
|
+
* @param {[number, PolkadotPrimitivesV7CoreIndex]} arg
|
|
2942
|
+
* @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined> =} callback
|
|
2943
|
+
**/
|
|
2944
|
+
coreSchedules: GenericStorageQuery<
|
|
2945
|
+
Rv,
|
|
2946
|
+
(arg: [number, PolkadotPrimitivesV7CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
|
|
2947
|
+
[number, PolkadotPrimitivesV7CoreIndex]
|
|
2948
|
+
>;
|
|
2949
|
+
|
|
2950
|
+
/**
|
|
2951
|
+
* Assignments which are currently active.
|
|
2952
|
+
*
|
|
2953
|
+
* They will be picked from `PendingAssignments` once we reach the scheduled block number in
|
|
2954
|
+
* `PendingAssignments`.
|
|
2955
|
+
*
|
|
2956
|
+
* @param {PolkadotPrimitivesV7CoreIndex} arg
|
|
2957
|
+
* @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor> =} callback
|
|
2958
|
+
**/
|
|
2959
|
+
coreDescriptors: GenericStorageQuery<
|
|
2960
|
+
Rv,
|
|
2961
|
+
(arg: PolkadotPrimitivesV7CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
|
|
2962
|
+
PolkadotPrimitivesV7CoreIndex
|
|
2963
|
+
>;
|
|
2964
|
+
|
|
2965
|
+
/**
|
|
2966
|
+
* Generic pallet storage query
|
|
2967
|
+
**/
|
|
2968
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
2969
|
+
};
|
|
2970
|
+
/**
|
|
2971
|
+
* Pallet `Registrar`'s storage queries
|
|
2972
|
+
**/
|
|
2973
|
+
registrar: {
|
|
2974
|
+
/**
|
|
2975
|
+
* Pending swap operations.
|
|
2976
|
+
*
|
|
2977
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2978
|
+
* @param {Callback<PolkadotParachainPrimitivesPrimitivesId | undefined> =} callback
|
|
2979
|
+
**/
|
|
2980
|
+
pendingSwap: GenericStorageQuery<
|
|
2981
|
+
Rv,
|
|
2982
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotParachainPrimitivesPrimitivesId | undefined,
|
|
2983
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2984
|
+
>;
|
|
2985
|
+
|
|
2986
|
+
/**
|
|
2987
|
+
* Amount held on deposit for each para and the original depositor.
|
|
2988
|
+
*
|
|
2989
|
+
* The given account ID is responsible for registering the code and initial head data, but may
|
|
2990
|
+
* only do so if it isn't yet registered. (After that, it's up to governance to do so.)
|
|
2991
|
+
*
|
|
2992
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
2993
|
+
* @param {Callback<PolkadotRuntimeCommonParasRegistrarParaInfo | undefined> =} callback
|
|
2994
|
+
**/
|
|
2995
|
+
paras: GenericStorageQuery<
|
|
2996
|
+
Rv,
|
|
2997
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeCommonParasRegistrarParaInfo | undefined,
|
|
2998
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
2999
|
+
>;
|
|
3000
|
+
|
|
3001
|
+
/**
|
|
3002
|
+
* The next free `ParaId`.
|
|
3003
|
+
*
|
|
3004
|
+
* @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
|
|
3005
|
+
**/
|
|
3006
|
+
nextFreeParaId: GenericStorageQuery<Rv, () => PolkadotParachainPrimitivesPrimitivesId>;
|
|
3007
|
+
|
|
3008
|
+
/**
|
|
3009
|
+
* Generic pallet storage query
|
|
3010
|
+
**/
|
|
3011
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3012
|
+
};
|
|
3013
|
+
/**
|
|
3014
|
+
* Pallet `Slots`'s storage queries
|
|
3015
|
+
**/
|
|
3016
|
+
slots: {
|
|
3017
|
+
/**
|
|
3018
|
+
* Amounts held on deposit for each (possibly future) leased parachain.
|
|
3019
|
+
*
|
|
3020
|
+
* The actual amount locked on its behalf by any account at any time is the maximum of the
|
|
3021
|
+
* second values of the items in this list whose first value is the account.
|
|
3022
|
+
*
|
|
3023
|
+
* The first item in the list is the amount locked for the current Lease Period. Following
|
|
3024
|
+
* items are for the subsequent lease periods.
|
|
3025
|
+
*
|
|
3026
|
+
* The default value (an empty list) implies that the parachain no longer exists (or never
|
|
3027
|
+
* existed) as far as this pallet is concerned.
|
|
3028
|
+
*
|
|
3029
|
+
* If a parachain doesn't exist *yet* but is scheduled to exist in the future, then it
|
|
3030
|
+
* will be left-padded with one or more `None`s to denote the fact that nothing is held on
|
|
3031
|
+
* deposit for the non-existent chain currently, but is held at some point in the future.
|
|
3032
|
+
*
|
|
3033
|
+
* It is illegal for a `None` value to trail in the list.
|
|
3034
|
+
*
|
|
3035
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
3036
|
+
* @param {Callback<Array<[AccountId32, bigint] | undefined>> =} callback
|
|
3037
|
+
**/
|
|
3038
|
+
leases: GenericStorageQuery<
|
|
3039
|
+
Rv,
|
|
3040
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => Array<[AccountId32, bigint] | undefined>,
|
|
3041
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
3042
|
+
>;
|
|
3043
|
+
|
|
3044
|
+
/**
|
|
3045
|
+
* Generic pallet storage query
|
|
3046
|
+
**/
|
|
3047
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3048
|
+
};
|
|
3049
|
+
/**
|
|
3050
|
+
* Pallet `Auctions`'s storage queries
|
|
3051
|
+
**/
|
|
3052
|
+
auctions: {
|
|
3053
|
+
/**
|
|
3054
|
+
* Number of auctions started so far.
|
|
3055
|
+
*
|
|
3056
|
+
* @param {Callback<number> =} callback
|
|
3057
|
+
**/
|
|
3058
|
+
auctionCounter: GenericStorageQuery<Rv, () => number>;
|
|
3059
|
+
|
|
3060
|
+
/**
|
|
3061
|
+
* Information relating to the current auction, if there is one.
|
|
3062
|
+
*
|
|
3063
|
+
* The first item in the tuple is the lease period index that the first of the four
|
|
3064
|
+
* contiguous lease periods on auction is for. The second is the block number when the
|
|
3065
|
+
* auction will "begin to end", i.e. the first block of the Ending Period of the auction.
|
|
3066
|
+
*
|
|
3067
|
+
* @param {Callback<[number, number] | undefined> =} callback
|
|
3068
|
+
**/
|
|
3069
|
+
auctionInfo: GenericStorageQuery<Rv, () => [number, number] | undefined>;
|
|
3070
|
+
|
|
3071
|
+
/**
|
|
3072
|
+
* Amounts currently reserved in the accounts of the bidders currently winning
|
|
3073
|
+
* (sub-)ranges.
|
|
3074
|
+
*
|
|
3075
|
+
* @param {[AccountId32Like, PolkadotParachainPrimitivesPrimitivesId]} arg
|
|
3076
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
3077
|
+
**/
|
|
3078
|
+
reservedAmounts: GenericStorageQuery<
|
|
3079
|
+
Rv,
|
|
3080
|
+
(arg: [AccountId32Like, PolkadotParachainPrimitivesPrimitivesId]) => bigint | undefined,
|
|
3081
|
+
[AccountId32, PolkadotParachainPrimitivesPrimitivesId]
|
|
3082
|
+
>;
|
|
3083
|
+
|
|
3084
|
+
/**
|
|
3085
|
+
* The winning bids for each of the 10 ranges at each sample in the final Ending Period of
|
|
3086
|
+
* the current auction. The map's key is the 0-based index into the Sample Size. The
|
|
3087
|
+
* first sample of the ending period is 0; the last is `Sample Size - 1`.
|
|
3088
|
+
*
|
|
3089
|
+
* @param {number} arg
|
|
3090
|
+
* @param {Callback<FixedArray<[AccountId32, PolkadotParachainPrimitivesPrimitivesId, bigint] | undefined, 36> | undefined> =} callback
|
|
3091
|
+
**/
|
|
3092
|
+
winning: GenericStorageQuery<
|
|
3093
|
+
Rv,
|
|
3094
|
+
(
|
|
3095
|
+
arg: number,
|
|
3096
|
+
) => FixedArray<[AccountId32, PolkadotParachainPrimitivesPrimitivesId, bigint] | undefined, 36> | undefined,
|
|
3097
|
+
number
|
|
3098
|
+
>;
|
|
3099
|
+
|
|
3100
|
+
/**
|
|
3101
|
+
* Generic pallet storage query
|
|
3102
|
+
**/
|
|
3103
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3104
|
+
};
|
|
3105
|
+
/**
|
|
3106
|
+
* Pallet `Crowdloan`'s storage queries
|
|
3107
|
+
**/
|
|
3108
|
+
crowdloan: {
|
|
3109
|
+
/**
|
|
3110
|
+
* Info on all of the funds.
|
|
3111
|
+
*
|
|
3112
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
3113
|
+
* @param {Callback<PolkadotRuntimeCommonCrowdloanFundInfo | undefined> =} callback
|
|
3114
|
+
**/
|
|
3115
|
+
funds: GenericStorageQuery<
|
|
3116
|
+
Rv,
|
|
3117
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotRuntimeCommonCrowdloanFundInfo | undefined,
|
|
3118
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
3119
|
+
>;
|
|
3120
|
+
|
|
3121
|
+
/**
|
|
3122
|
+
* The funds that have had additional contributions during the last block. This is used
|
|
3123
|
+
* in order to determine which funds should submit new or updated bids.
|
|
3124
|
+
*
|
|
3125
|
+
* @param {Callback<Array<PolkadotParachainPrimitivesPrimitivesId>> =} callback
|
|
3126
|
+
**/
|
|
3127
|
+
newRaise: GenericStorageQuery<Rv, () => Array<PolkadotParachainPrimitivesPrimitivesId>>;
|
|
3128
|
+
|
|
3129
|
+
/**
|
|
3130
|
+
* The number of auctions that have entered into their ending period so far.
|
|
3131
|
+
*
|
|
3132
|
+
* @param {Callback<number> =} callback
|
|
3133
|
+
**/
|
|
3134
|
+
endingsCount: GenericStorageQuery<Rv, () => number>;
|
|
3135
|
+
|
|
3136
|
+
/**
|
|
3137
|
+
* Tracker for the next available fund index
|
|
3138
|
+
*
|
|
3139
|
+
* @param {Callback<number> =} callback
|
|
3140
|
+
**/
|
|
3141
|
+
nextFundIndex: GenericStorageQuery<Rv, () => number>;
|
|
3142
|
+
|
|
3143
|
+
/**
|
|
3144
|
+
* Generic pallet storage query
|
|
3145
|
+
**/
|
|
3146
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3147
|
+
};
|
|
3148
|
+
/**
|
|
3149
|
+
* Pallet `XcmPallet`'s storage queries
|
|
3150
|
+
**/
|
|
3151
|
+
xcmPallet: {
|
|
3152
|
+
/**
|
|
3153
|
+
* The latest available query index.
|
|
3154
|
+
*
|
|
3155
|
+
* @param {Callback<bigint> =} callback
|
|
3156
|
+
**/
|
|
3157
|
+
queryCounter: GenericStorageQuery<Rv, () => bigint>;
|
|
3158
|
+
|
|
3159
|
+
/**
|
|
3160
|
+
* The ongoing queries.
|
|
3161
|
+
*
|
|
3162
|
+
* @param {bigint} arg
|
|
3163
|
+
* @param {Callback<PalletXcmQueryStatus | undefined> =} callback
|
|
3164
|
+
**/
|
|
3165
|
+
queries: GenericStorageQuery<Rv, (arg: bigint) => PalletXcmQueryStatus | undefined, bigint>;
|
|
3166
|
+
|
|
3167
|
+
/**
|
|
3168
|
+
* The existing asset traps.
|
|
3169
|
+
*
|
|
3170
|
+
* Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
|
|
3171
|
+
* times this pair has been trapped (usually just 1 if it exists at all).
|
|
3172
|
+
*
|
|
3173
|
+
* @param {H256} arg
|
|
3174
|
+
* @param {Callback<number> =} callback
|
|
3175
|
+
**/
|
|
3176
|
+
assetTraps: GenericStorageQuery<Rv, (arg: H256) => number, H256>;
|
|
3177
|
+
|
|
3178
|
+
/**
|
|
3179
|
+
* Default version to encode XCM when latest version of destination is unknown. If `None`,
|
|
3180
|
+
* then the destinations whose XCM version is unknown are considered unreachable.
|
|
3181
|
+
*
|
|
3182
|
+
* @param {Callback<number | undefined> =} callback
|
|
3183
|
+
**/
|
|
3184
|
+
safeXcmVersion: GenericStorageQuery<Rv, () => number | undefined>;
|
|
3185
|
+
|
|
3186
|
+
/**
|
|
3187
|
+
* The Latest versions that we know various locations support.
|
|
3188
|
+
*
|
|
3189
|
+
* @param {[number, XcmVersionedLocation]} arg
|
|
3190
|
+
* @param {Callback<number | undefined> =} callback
|
|
3191
|
+
**/
|
|
3192
|
+
supportedVersion: GenericStorageQuery<
|
|
3193
|
+
Rv,
|
|
3194
|
+
(arg: [number, XcmVersionedLocation]) => number | undefined,
|
|
3195
|
+
[number, XcmVersionedLocation]
|
|
3196
|
+
>;
|
|
3197
|
+
|
|
3198
|
+
/**
|
|
3199
|
+
* All locations that we have requested version notifications from.
|
|
3200
|
+
*
|
|
3201
|
+
* @param {[number, XcmVersionedLocation]} arg
|
|
3202
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
3203
|
+
**/
|
|
3204
|
+
versionNotifiers: GenericStorageQuery<
|
|
3205
|
+
Rv,
|
|
3206
|
+
(arg: [number, XcmVersionedLocation]) => bigint | undefined,
|
|
3207
|
+
[number, XcmVersionedLocation]
|
|
3208
|
+
>;
|
|
3209
|
+
|
|
3210
|
+
/**
|
|
3211
|
+
* The target locations that are subscribed to our version changes, as well as the most recent
|
|
3212
|
+
* of our versions we informed them of.
|
|
3213
|
+
*
|
|
3214
|
+
* @param {[number, XcmVersionedLocation]} arg
|
|
3215
|
+
* @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
|
|
3216
|
+
**/
|
|
3217
|
+
versionNotifyTargets: GenericStorageQuery<
|
|
3218
|
+
Rv,
|
|
3219
|
+
(arg: [number, XcmVersionedLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined,
|
|
3220
|
+
[number, XcmVersionedLocation]
|
|
3221
|
+
>;
|
|
3222
|
+
|
|
3223
|
+
/**
|
|
3224
|
+
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
|
|
3225
|
+
* the `u32` counter is the number of times that a send to the destination has been attempted,
|
|
3226
|
+
* which is used as a prioritization.
|
|
3227
|
+
*
|
|
3228
|
+
* @param {Callback<Array<[XcmVersionedLocation, number]>> =} callback
|
|
3229
|
+
**/
|
|
3230
|
+
versionDiscoveryQueue: GenericStorageQuery<Rv, () => Array<[XcmVersionedLocation, number]>>;
|
|
3231
|
+
|
|
3232
|
+
/**
|
|
3233
|
+
* The current migration's stage, if any.
|
|
3234
|
+
*
|
|
3235
|
+
* @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
|
|
3236
|
+
**/
|
|
3237
|
+
currentMigration: GenericStorageQuery<Rv, () => PalletXcmVersionMigrationStage | undefined>;
|
|
3238
|
+
|
|
3239
|
+
/**
|
|
3240
|
+
* Fungible assets which we know are locked on a remote chain.
|
|
3241
|
+
*
|
|
3242
|
+
* @param {[number, AccountId32Like, XcmVersionedAssetId]} arg
|
|
3243
|
+
* @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
|
|
3244
|
+
**/
|
|
3245
|
+
remoteLockedFungibles: GenericStorageQuery<
|
|
3246
|
+
Rv,
|
|
3247
|
+
(arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined,
|
|
3248
|
+
[number, AccountId32, XcmVersionedAssetId]
|
|
3249
|
+
>;
|
|
3250
|
+
|
|
3251
|
+
/**
|
|
3252
|
+
* Fungible assets which we know are locked on this chain.
|
|
3253
|
+
*
|
|
3254
|
+
* @param {AccountId32Like} arg
|
|
3255
|
+
* @param {Callback<Array<[bigint, XcmVersionedLocation]> | undefined> =} callback
|
|
3256
|
+
**/
|
|
3257
|
+
lockedFungibles: GenericStorageQuery<
|
|
3258
|
+
Rv,
|
|
3259
|
+
(arg: AccountId32Like) => Array<[bigint, XcmVersionedLocation]> | undefined,
|
|
3260
|
+
AccountId32
|
|
3261
|
+
>;
|
|
3262
|
+
|
|
3263
|
+
/**
|
|
3264
|
+
* Global suspension state of the XCM executor.
|
|
3265
|
+
*
|
|
3266
|
+
* @param {Callback<boolean> =} callback
|
|
3267
|
+
**/
|
|
3268
|
+
xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
|
|
3269
|
+
|
|
3270
|
+
/**
|
|
3271
|
+
* Whether or not incoming XCMs (both executed locally and received) should be recorded.
|
|
3272
|
+
* Only one XCM program will be recorded at a time.
|
|
3273
|
+
* This is meant to be used in runtime APIs, and it's advised it stays false
|
|
3274
|
+
* for all other use cases, so as to not degrade regular performance.
|
|
3275
|
+
*
|
|
3276
|
+
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
3277
|
+
* implementation in the XCM executor configuration.
|
|
3278
|
+
*
|
|
3279
|
+
* @param {Callback<boolean> =} callback
|
|
3280
|
+
**/
|
|
3281
|
+
shouldRecordXcm: GenericStorageQuery<Rv, () => boolean>;
|
|
3282
|
+
|
|
3283
|
+
/**
|
|
3284
|
+
* If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
|
|
3285
|
+
* will be stored here.
|
|
3286
|
+
* Runtime APIs can fetch the XCM that was executed by accessing this value.
|
|
3287
|
+
*
|
|
3288
|
+
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
3289
|
+
* implementation in the XCM executor configuration.
|
|
3290
|
+
*
|
|
3291
|
+
* @param {Callback<StagingXcmV4Xcm | undefined> =} callback
|
|
3292
|
+
**/
|
|
3293
|
+
recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
|
|
3294
|
+
|
|
3295
|
+
/**
|
|
3296
|
+
* Generic pallet storage query
|
|
3297
|
+
**/
|
|
3298
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3299
|
+
};
|
|
3300
|
+
/**
|
|
3301
|
+
* Pallet `Beefy`'s storage queries
|
|
3302
|
+
**/
|
|
3303
|
+
beefy: {
|
|
3304
|
+
/**
|
|
3305
|
+
* The current authorities set
|
|
3306
|
+
*
|
|
3307
|
+
* @param {Callback<Array<SpConsensusBeefyEcdsaCryptoPublic>> =} callback
|
|
3308
|
+
**/
|
|
3309
|
+
authorities: GenericStorageQuery<Rv, () => Array<SpConsensusBeefyEcdsaCryptoPublic>>;
|
|
3310
|
+
|
|
3311
|
+
/**
|
|
3312
|
+
* The current validator set id
|
|
3313
|
+
*
|
|
3314
|
+
* @param {Callback<bigint> =} callback
|
|
3315
|
+
**/
|
|
3316
|
+
validatorSetId: GenericStorageQuery<Rv, () => bigint>;
|
|
3317
|
+
|
|
3318
|
+
/**
|
|
3319
|
+
* Authorities set scheduled to be used with the next session
|
|
3320
|
+
*
|
|
3321
|
+
* @param {Callback<Array<SpConsensusBeefyEcdsaCryptoPublic>> =} callback
|
|
3322
|
+
**/
|
|
3323
|
+
nextAuthorities: GenericStorageQuery<Rv, () => Array<SpConsensusBeefyEcdsaCryptoPublic>>;
|
|
3324
|
+
|
|
3325
|
+
/**
|
|
3326
|
+
* A mapping from BEEFY set ID to the index of the *most recent* session for which its
|
|
3327
|
+
* members were responsible.
|
|
3328
|
+
*
|
|
3329
|
+
* This is only used for validating equivocation proofs. An equivocation proof must
|
|
3330
|
+
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
|
3331
|
+
* together sessions and BEEFY set ids, i.e. we need to validate that a validator
|
|
3332
|
+
* was the owner of a given key on a given session, and what the active set ID was
|
|
3333
|
+
* during that session.
|
|
3334
|
+
*
|
|
3335
|
+
* TWOX-NOTE: `ValidatorSetId` is not under user control.
|
|
3336
|
+
*
|
|
3337
|
+
* @param {bigint} arg
|
|
3338
|
+
* @param {Callback<number | undefined> =} callback
|
|
3339
|
+
**/
|
|
3340
|
+
setIdSession: GenericStorageQuery<Rv, (arg: bigint) => number | undefined, bigint>;
|
|
3341
|
+
|
|
3342
|
+
/**
|
|
3343
|
+
* Block number where BEEFY consensus is enabled/started.
|
|
3344
|
+
* By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively
|
|
3345
|
+
* restarted from the newly set block number.
|
|
3346
|
+
*
|
|
3347
|
+
* @param {Callback<number | undefined> =} callback
|
|
3348
|
+
**/
|
|
3349
|
+
genesisBlock: GenericStorageQuery<Rv, () => number | undefined>;
|
|
3350
|
+
|
|
3351
|
+
/**
|
|
3352
|
+
* Generic pallet storage query
|
|
3353
|
+
**/
|
|
3354
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3355
|
+
};
|
|
3356
|
+
/**
|
|
3357
|
+
* Pallet `Mmr`'s storage queries
|
|
3358
|
+
**/
|
|
3359
|
+
mmr: {
|
|
3360
|
+
/**
|
|
3361
|
+
* Latest MMR Root hash.
|
|
3362
|
+
*
|
|
3363
|
+
* @param {Callback<H256> =} callback
|
|
3364
|
+
**/
|
|
3365
|
+
rootHash: GenericStorageQuery<Rv, () => H256>;
|
|
3366
|
+
|
|
3367
|
+
/**
|
|
3368
|
+
* Current size of the MMR (number of leaves).
|
|
3369
|
+
*
|
|
3370
|
+
* @param {Callback<bigint> =} callback
|
|
3371
|
+
**/
|
|
3372
|
+
numberOfLeaves: GenericStorageQuery<Rv, () => bigint>;
|
|
3373
|
+
|
|
3374
|
+
/**
|
|
3375
|
+
* Hashes of the nodes in the MMR.
|
|
3376
|
+
*
|
|
3377
|
+
* Note this collection only contains MMR peaks, the inner nodes (and leaves)
|
|
3378
|
+
* are pruned and only stored in the Offchain DB.
|
|
3379
|
+
*
|
|
3380
|
+
* @param {bigint} arg
|
|
3381
|
+
* @param {Callback<H256 | undefined> =} callback
|
|
3382
|
+
**/
|
|
3383
|
+
nodes: GenericStorageQuery<Rv, (arg: bigint) => H256 | undefined, bigint>;
|
|
3384
|
+
|
|
3385
|
+
/**
|
|
3386
|
+
* Generic pallet storage query
|
|
3387
|
+
**/
|
|
3388
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3389
|
+
};
|
|
3390
|
+
/**
|
|
3391
|
+
* Pallet `MmrLeaf`'s storage queries
|
|
3392
|
+
**/
|
|
3393
|
+
mmrLeaf: {
|
|
3394
|
+
/**
|
|
3395
|
+
* Details of current BEEFY authority set.
|
|
3396
|
+
*
|
|
3397
|
+
* @param {Callback<SpConsensusBeefyMmrBeefyAuthoritySet> =} callback
|
|
3398
|
+
**/
|
|
3399
|
+
beefyAuthorities: GenericStorageQuery<Rv, () => SpConsensusBeefyMmrBeefyAuthoritySet>;
|
|
3400
|
+
|
|
3401
|
+
/**
|
|
3402
|
+
* Details of next BEEFY authority set.
|
|
3403
|
+
*
|
|
3404
|
+
* This storage entry is used as cache for calls to `update_beefy_next_authority_set`.
|
|
3405
|
+
*
|
|
3406
|
+
* @param {Callback<SpConsensusBeefyMmrBeefyAuthoritySet> =} callback
|
|
3407
|
+
**/
|
|
3408
|
+
beefyNextAuthorities: GenericStorageQuery<Rv, () => SpConsensusBeefyMmrBeefyAuthoritySet>;
|
|
3409
|
+
|
|
3410
|
+
/**
|
|
3411
|
+
* Generic pallet storage query
|
|
3412
|
+
**/
|
|
3413
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3414
|
+
};
|
|
3415
|
+
/**
|
|
3416
|
+
* Pallet `AssignedSlots`'s storage queries
|
|
3417
|
+
**/
|
|
3418
|
+
assignedSlots: {
|
|
3419
|
+
/**
|
|
3420
|
+
* Assigned permanent slots, with their start lease period, and duration.
|
|
3421
|
+
*
|
|
3422
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
3423
|
+
* @param {Callback<[number, number] | undefined> =} callback
|
|
3424
|
+
**/
|
|
3425
|
+
permanentSlots: GenericStorageQuery<
|
|
3426
|
+
Rv,
|
|
3427
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => [number, number] | undefined,
|
|
3428
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
3429
|
+
>;
|
|
3430
|
+
|
|
3431
|
+
/**
|
|
3432
|
+
* Number of assigned (and active) permanent slots.
|
|
3433
|
+
*
|
|
3434
|
+
* @param {Callback<number> =} callback
|
|
3435
|
+
**/
|
|
3436
|
+
permanentSlotCount: GenericStorageQuery<Rv, () => number>;
|
|
3437
|
+
|
|
3438
|
+
/**
|
|
3439
|
+
* Assigned temporary slots.
|
|
3440
|
+
*
|
|
3441
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
3442
|
+
* @param {Callback<PolkadotRuntimeCommonAssignedSlotsParachainTemporarySlot | undefined> =} callback
|
|
3443
|
+
**/
|
|
3444
|
+
temporarySlots: GenericStorageQuery<
|
|
3445
|
+
Rv,
|
|
3446
|
+
(
|
|
3447
|
+
arg: PolkadotParachainPrimitivesPrimitivesId,
|
|
3448
|
+
) => PolkadotRuntimeCommonAssignedSlotsParachainTemporarySlot | undefined,
|
|
3449
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
3450
|
+
>;
|
|
3451
|
+
|
|
3452
|
+
/**
|
|
3453
|
+
* Number of assigned temporary slots.
|
|
3454
|
+
*
|
|
3455
|
+
* @param {Callback<number> =} callback
|
|
3456
|
+
**/
|
|
3457
|
+
temporarySlotCount: GenericStorageQuery<Rv, () => number>;
|
|
3458
|
+
|
|
3459
|
+
/**
|
|
3460
|
+
* Number of active temporary slots in current slot lease period.
|
|
3461
|
+
*
|
|
3462
|
+
* @param {Callback<number> =} callback
|
|
3463
|
+
**/
|
|
3464
|
+
activeTemporarySlotCount: GenericStorageQuery<Rv, () => number>;
|
|
3465
|
+
|
|
3466
|
+
/**
|
|
3467
|
+
* The max number of temporary slots that can be assigned.
|
|
3468
|
+
*
|
|
3469
|
+
* @param {Callback<number> =} callback
|
|
3470
|
+
**/
|
|
3471
|
+
maxTemporarySlots: GenericStorageQuery<Rv, () => number>;
|
|
3472
|
+
|
|
3473
|
+
/**
|
|
3474
|
+
* The max number of permanent slots that can be assigned.
|
|
3475
|
+
*
|
|
3476
|
+
* @param {Callback<number> =} callback
|
|
3477
|
+
**/
|
|
3478
|
+
maxPermanentSlots: GenericStorageQuery<Rv, () => number>;
|
|
3479
|
+
|
|
3480
|
+
/**
|
|
3481
|
+
* Generic pallet storage query
|
|
3482
|
+
**/
|
|
3483
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3484
|
+
};
|
|
3485
|
+
/**
|
|
3486
|
+
* Pallet `ValidatorManager`'s storage queries
|
|
3487
|
+
**/
|
|
3488
|
+
validatorManager: {
|
|
3489
|
+
/**
|
|
3490
|
+
* Validators that should be retired, because their Parachain was deregistered.
|
|
3491
|
+
*
|
|
3492
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
3493
|
+
**/
|
|
3494
|
+
validatorsToRetire: GenericStorageQuery<Rv, () => Array<AccountId32>>;
|
|
3495
|
+
|
|
3496
|
+
/**
|
|
3497
|
+
* Validators that should be added.
|
|
3498
|
+
*
|
|
3499
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
3500
|
+
**/
|
|
3501
|
+
validatorsToAdd: GenericStorageQuery<Rv, () => Array<AccountId32>>;
|
|
3502
|
+
|
|
3503
|
+
/**
|
|
3504
|
+
* Generic pallet storage query
|
|
3505
|
+
**/
|
|
3506
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3507
|
+
};
|
|
3508
|
+
/**
|
|
3509
|
+
* Pallet `StateTrieMigration`'s storage queries
|
|
3510
|
+
**/
|
|
3511
|
+
stateTrieMigration: {
|
|
3512
|
+
/**
|
|
3513
|
+
* Migration progress.
|
|
3514
|
+
*
|
|
3515
|
+
* This stores the snapshot of the last migrated keys. It can be set into motion and move
|
|
3516
|
+
* forward by any of the means provided by this pallet.
|
|
3517
|
+
*
|
|
3518
|
+
* @param {Callback<PalletStateTrieMigrationMigrationTask> =} callback
|
|
3519
|
+
**/
|
|
3520
|
+
migrationProcess: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationTask>;
|
|
3521
|
+
|
|
3522
|
+
/**
|
|
3523
|
+
* The limits that are imposed on automatic migrations.
|
|
3524
|
+
*
|
|
3525
|
+
* If set to None, then no automatic migration happens.
|
|
3526
|
+
*
|
|
3527
|
+
* @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
|
|
3528
|
+
**/
|
|
3529
|
+
autoLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
|
|
3530
|
+
|
|
3531
|
+
/**
|
|
3532
|
+
* The maximum limits that the signed migration could use.
|
|
3533
|
+
*
|
|
3534
|
+
* If not set, no signed submission is allowed.
|
|
3535
|
+
*
|
|
3536
|
+
* @param {Callback<PalletStateTrieMigrationMigrationLimits | undefined> =} callback
|
|
3537
|
+
**/
|
|
3538
|
+
signedMigrationMaxLimits: GenericStorageQuery<Rv, () => PalletStateTrieMigrationMigrationLimits | undefined>;
|
|
3539
|
+
|
|
3540
|
+
/**
|
|
3541
|
+
* Generic pallet storage query
|
|
3542
|
+
**/
|
|
3543
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3544
|
+
};
|
|
3545
|
+
/**
|
|
3546
|
+
* Pallet `Sudo`'s storage queries
|
|
3547
|
+
**/
|
|
3548
|
+
sudo: {
|
|
3549
|
+
/**
|
|
3550
|
+
* The `AccountId` of the sudo key.
|
|
3551
|
+
*
|
|
3552
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
3553
|
+
**/
|
|
3554
|
+
key: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
|
|
3555
|
+
|
|
3556
|
+
/**
|
|
3557
|
+
* Generic pallet storage query
|
|
3558
|
+
**/
|
|
3559
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
3560
|
+
};
|
|
3561
|
+
}
|