@dedot/chaintypes 0.0.1-next.f5bf4fc2.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/aleph/consts.d.ts +94 -13
- package/aleph/errors.d.ts +251 -182
- package/aleph/events.d.ts +319 -102
- package/aleph/index.d.ts +16 -11
- package/aleph/json-rpc.d.ts +76 -0
- package/aleph/query.d.ts +261 -168
- package/aleph/runtime.d.ts +90 -39
- package/aleph/tx.d.ts +1822 -1052
- package/aleph/types.d.ts +458 -138
- package/astar/consts.d.ts +112 -116
- package/astar/errors.d.ts +342 -409
- package/astar/events.d.ts +449 -358
- package/astar/index.d.ts +16 -11
- package/astar/json-rpc.d.ts +131 -0
- package/astar/query.d.ts +459 -367
- package/astar/runtime.d.ts +591 -98
- package/astar/tx.d.ts +2485 -3430
- package/astar/types.d.ts +1530 -4436
- package/index.d.ts +3 -0
- package/index.ts +3 -0
- package/kusama/consts.d.ts +54 -115
- package/kusama/errors.d.ts +696 -682
- package/kusama/events.d.ts +592 -407
- package/kusama/index.d.ts +16 -11
- package/kusama/json-rpc.d.ts +103 -0
- package/kusama/query.d.ts +840 -538
- package/kusama/runtime.d.ts +136 -65
- package/kusama/tx.d.ts +4557 -3051
- package/kusama/types.d.ts +1437 -1161
- package/kusamaAssetHub/consts.d.ts +66 -20
- package/kusamaAssetHub/errors.d.ts +428 -308
- package/kusamaAssetHub/events.d.ts +497 -305
- package/kusamaAssetHub/index.d.ts +16 -11
- package/kusamaAssetHub/json-rpc.d.ts +89 -0
- package/kusamaAssetHub/query.d.ts +376 -253
- package/kusamaAssetHub/runtime.d.ts +82 -41
- package/kusamaAssetHub/tx.d.ts +3264 -1955
- package/kusamaAssetHub/types.d.ts +1262 -726
- package/moonbeam/consts.d.ts +115 -170
- package/moonbeam/errors.d.ts +564 -787
- package/moonbeam/events.d.ts +583 -746
- package/moonbeam/index.d.ts +16 -11
- package/moonbeam/json-rpc.d.ts +137 -0
- package/moonbeam/query.d.ts +507 -607
- package/moonbeam/runtime.d.ts +132 -47
- package/moonbeam/tx.d.ts +3309 -3268
- package/moonbeam/types.d.ts +1484 -1375
- package/package.json +4 -14
- package/paseo/consts.d.ts +1331 -0
- package/paseo/errors.d.ts +2644 -0
- package/paseo/events.d.ts +2821 -0
- package/paseo/index.d.ts +27 -0
- package/paseo/json-rpc.d.ts +103 -0
- package/paseo/query.d.ts +3709 -0
- package/paseo/runtime.d.ts +1205 -0
- package/paseo/tx.d.ts +8024 -0
- package/paseo/types.d.ts +10194 -0
- package/polkadot/consts.d.ts +95 -50
- package/polkadot/errors.d.ts +619 -468
- package/polkadot/events.d.ts +582 -257
- package/polkadot/index.d.ts +16 -11
- package/polkadot/json-rpc.d.ts +103 -0
- package/polkadot/query.d.ts +770 -399
- package/polkadot/runtime.d.ts +136 -65
- package/polkadot/tx.d.ts +4268 -2368
- package/polkadot/types.d.ts +1570 -745
- package/polkadotAssetHub/consts.d.ts +154 -15
- package/polkadotAssetHub/errors.d.ts +615 -234
- package/polkadotAssetHub/events.d.ts +829 -270
- package/polkadotAssetHub/index.d.ts +16 -11
- package/polkadotAssetHub/json-rpc.d.ts +89 -0
- package/polkadotAssetHub/query.d.ts +438 -243
- package/polkadotAssetHub/runtime.d.ts +147 -40
- package/polkadotAssetHub/tx.d.ts +3747 -1643
- package/polkadotAssetHub/types.d.ts +2096 -806
- package/rococo/consts.d.ts +51 -32
- package/rococo/errors.d.ts +549 -605
- package/rococo/events.d.ts +447 -238
- package/rococo/index.d.ts +16 -11
- package/rococo/json-rpc.d.ts +103 -0
- package/rococo/query.d.ts +724 -426
- package/rococo/runtime.d.ts +366 -144
- package/rococo/tx.d.ts +6850 -3079
- package/rococo/types.d.ts +5959 -1619
- package/rococoAssetHub/consts.d.ts +92 -7
- package/rococoAssetHub/errors.d.ts +381 -285
- package/rococoAssetHub/events.d.ts +461 -140
- package/rococoAssetHub/index.d.ts +16 -11
- package/rococoAssetHub/json-rpc.d.ts +89 -0
- package/rococoAssetHub/query.d.ts +487 -174
- package/rococoAssetHub/runtime.d.ts +235 -51
- package/rococoAssetHub/tx.d.ts +6005 -2163
- package/rococoAssetHub/types.d.ts +6683 -1003
- package/substrate/consts.d.ts +233 -52
- package/substrate/errors.d.ts +966 -781
- package/substrate/events.d.ts +1226 -381
- package/substrate/index.d.ts +16 -11
- package/substrate/json-rpc.d.ts +103 -0
- package/substrate/query.d.ts +1090 -460
- package/substrate/runtime.d.ts +274 -71
- package/substrate/tx.d.ts +12313 -4510
- package/substrate/types.d.ts +11036 -1432
- package/westend/consts.d.ts +1349 -0
- package/westend/errors.d.ts +2736 -0
- package/westend/events.d.ts +2906 -0
- package/westend/index.d.ts +27 -0
- package/westend/json-rpc.d.ts +103 -0
- package/westend/query.d.ts +3855 -0
- package/westend/runtime.d.ts +1437 -0
- package/westend/tx.d.ts +10248 -0
- package/westend/types.d.ts +14769 -0
- package/westendAssetHub/consts.d.ts +126 -7
- package/westendAssetHub/errors.d.ts +426 -285
- package/westendAssetHub/events.d.ts +498 -140
- package/westendAssetHub/index.d.ts +16 -11
- package/westendAssetHub/json-rpc.d.ts +89 -0
- package/westendAssetHub/query.d.ts +526 -174
- package/westendAssetHub/runtime.d.ts +245 -56
- package/westendAssetHub/tx.d.ts +6196 -2166
- package/westendAssetHub/types.d.ts +6913 -1002
- package/westendPeople/consts.d.ts +434 -0
- package/westendPeople/errors.d.ts +769 -0
- package/westendPeople/events.d.ts +1082 -0
- package/westendPeople/index.d.ts +27 -0
- package/westendPeople/json-rpc.d.ts +89 -0
- package/westendPeople/query.d.ts +1209 -0
- package/westendPeople/runtime.d.ts +636 -0
- package/westendPeople/tx.d.ts +2891 -0
- package/westendPeople/types.d.ts +4984 -0
- package/aleph/rpc.d.ts +0 -727
- package/astar/rpc.d.ts +0 -974
- package/kusama/rpc.d.ts +0 -904
- package/kusamaAssetHub/rpc.d.ts +0 -746
- package/moonbeam/rpc.d.ts +0 -1015
- package/packageInfo.d.ts +0 -4
- package/packageInfo.js +0 -2
- package/packageInfo.ts +0 -3
- package/polkadot/rpc.d.ts +0 -904
- package/polkadotAssetHub/rpc.d.ts +0 -746
- package/rococo/rpc.d.ts +0 -904
- package/rococoAssetHub/rpc.d.ts +0 -746
- package/substrate/rpc.d.ts +0 -894
- package/westendAssetHub/rpc.d.ts +0 -746
package/astar/query.d.ts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
// Generated by
|
|
1
|
+
// Generated by dedot cli
|
|
2
2
|
|
|
3
|
-
import type { GenericChainStorage, GenericStorageQuery, Callback } from '
|
|
3
|
+
import type { GenericChainStorage, GenericStorageQuery, Callback, RpcVersion } from 'dedot/types';
|
|
4
4
|
import type {
|
|
5
|
+
AccountId32,
|
|
5
6
|
AccountId32Like,
|
|
6
7
|
H256,
|
|
7
8
|
Bytes,
|
|
8
9
|
Digest,
|
|
9
10
|
Phase,
|
|
10
|
-
AccountId32,
|
|
11
11
|
Data,
|
|
12
12
|
FixedBytes,
|
|
13
13
|
FixedU128,
|
|
14
14
|
BytesLike,
|
|
15
15
|
H160,
|
|
16
16
|
U256,
|
|
17
|
-
|
|
18
|
-
} from '@dedot/codecs';
|
|
17
|
+
} from 'dedot/codecs';
|
|
19
18
|
import type {
|
|
20
19
|
FrameSystemAccountInfo,
|
|
21
20
|
FrameSupportDispatchPerDispatchClass,
|
|
@@ -26,13 +25,16 @@ import type {
|
|
|
26
25
|
PalletMultisigMultisig,
|
|
27
26
|
PalletProxyProxyDefinition,
|
|
28
27
|
PalletProxyAnnouncement,
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
CumulusPalletParachainSystemUnincludedSegmentAncestor,
|
|
29
|
+
CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
|
|
30
|
+
PolkadotPrimitivesV6PersistedValidationData,
|
|
31
|
+
PolkadotPrimitivesV6UpgradeRestriction,
|
|
32
|
+
PolkadotPrimitivesV6UpgradeGoAhead,
|
|
31
33
|
SpTrieStorageProof,
|
|
32
34
|
CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
|
|
33
|
-
|
|
35
|
+
PolkadotPrimitivesV6AbridgedHostConfiguration,
|
|
34
36
|
CumulusPrimitivesParachainInherentMessageQueueChain,
|
|
35
|
-
|
|
37
|
+
PolkadotParachainPrimitivesPrimitivesId,
|
|
36
38
|
PolkadotCorePrimitivesOutboundHrmpMessage,
|
|
37
39
|
SpWeightsWeightV2Weight,
|
|
38
40
|
CumulusPalletParachainSystemCodeUpgradeAuthorization,
|
|
@@ -63,6 +65,11 @@ import type {
|
|
|
63
65
|
PalletAssetsAssetAccount,
|
|
64
66
|
PalletAssetsApproval,
|
|
65
67
|
PalletAssetsAssetMetadata,
|
|
68
|
+
PalletPriceAggregatorValueAggregator,
|
|
69
|
+
PalletPriceAggregatorCircularBuffer,
|
|
70
|
+
OrmlOracleModuleTimestampedValue,
|
|
71
|
+
AstarPrimitivesOracleCurrencyId,
|
|
72
|
+
OrmlUtilitiesOrderedSet,
|
|
66
73
|
PalletCollatorSelectionCandidateInfo,
|
|
67
74
|
AstarRuntimeSessionKeys,
|
|
68
75
|
SpCoreCryptoKeyTypeId,
|
|
@@ -83,22 +90,12 @@ import type {
|
|
|
83
90
|
FpRpcTransactionStatus,
|
|
84
91
|
EthereumReceiptReceiptV3,
|
|
85
92
|
EthereumBlock,
|
|
86
|
-
|
|
87
|
-
PalletContractsWasmOwnerInfo,
|
|
93
|
+
PalletContractsWasmCodeInfo,
|
|
88
94
|
PalletContractsStorageContractInfo,
|
|
89
95
|
PalletContractsStorageDeletionQueueManager,
|
|
90
|
-
PalletDappStakingMigrationMigrationState,
|
|
91
|
-
PalletDappsStakingAccountLedger,
|
|
92
|
-
PalletDappsStakingRewardInfo,
|
|
93
|
-
PalletDappsStakingForcing,
|
|
94
|
-
PalletDappsStakingDAppInfo,
|
|
95
|
-
PalletDappsStakingEraInfo,
|
|
96
|
-
PalletDappsStakingContractStakeInfo,
|
|
97
|
-
PalletDappsStakingStakerInfo,
|
|
98
|
-
PalletDappsStakingVersion,
|
|
99
96
|
} from './types';
|
|
100
97
|
|
|
101
|
-
export interface ChainStorage extends GenericChainStorage {
|
|
98
|
+
export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
|
|
102
99
|
/**
|
|
103
100
|
* Pallet `System`'s storage queries
|
|
104
101
|
**/
|
|
@@ -109,28 +106,28 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
109
106
|
* @param {AccountId32Like} arg
|
|
110
107
|
* @param {Callback<FrameSystemAccountInfo> =} callback
|
|
111
108
|
**/
|
|
112
|
-
account: GenericStorageQuery<(arg: AccountId32Like) => FrameSystemAccountInfo>;
|
|
109
|
+
account: GenericStorageQuery<Rv, (arg: AccountId32Like) => FrameSystemAccountInfo, AccountId32>;
|
|
113
110
|
|
|
114
111
|
/**
|
|
115
112
|
* Total extrinsics count for the current block.
|
|
116
113
|
*
|
|
117
114
|
* @param {Callback<number | undefined> =} callback
|
|
118
115
|
**/
|
|
119
|
-
extrinsicCount: GenericStorageQuery<() => number | undefined>;
|
|
116
|
+
extrinsicCount: GenericStorageQuery<Rv, () => number | undefined>;
|
|
120
117
|
|
|
121
118
|
/**
|
|
122
119
|
* The current weight for the block.
|
|
123
120
|
*
|
|
124
121
|
* @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
|
|
125
122
|
**/
|
|
126
|
-
blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
|
|
123
|
+
blockWeight: GenericStorageQuery<Rv, () => FrameSupportDispatchPerDispatchClass>;
|
|
127
124
|
|
|
128
125
|
/**
|
|
129
126
|
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
130
127
|
*
|
|
131
128
|
* @param {Callback<number | undefined> =} callback
|
|
132
129
|
**/
|
|
133
|
-
allExtrinsicsLen: GenericStorageQuery<() => number | undefined>;
|
|
130
|
+
allExtrinsicsLen: GenericStorageQuery<Rv, () => number | undefined>;
|
|
134
131
|
|
|
135
132
|
/**
|
|
136
133
|
* Map of block numbers to block hashes.
|
|
@@ -138,7 +135,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
138
135
|
* @param {number} arg
|
|
139
136
|
* @param {Callback<H256> =} callback
|
|
140
137
|
**/
|
|
141
|
-
blockHash: GenericStorageQuery<(arg: number) => H256>;
|
|
138
|
+
blockHash: GenericStorageQuery<Rv, (arg: number) => H256, number>;
|
|
142
139
|
|
|
143
140
|
/**
|
|
144
141
|
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
@@ -146,28 +143,28 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
146
143
|
* @param {number} arg
|
|
147
144
|
* @param {Callback<Bytes> =} callback
|
|
148
145
|
**/
|
|
149
|
-
extrinsicData: GenericStorageQuery<(arg: number) => Bytes>;
|
|
146
|
+
extrinsicData: GenericStorageQuery<Rv, (arg: number) => Bytes, number>;
|
|
150
147
|
|
|
151
148
|
/**
|
|
152
149
|
* The current block number being processed. Set by `execute_block`.
|
|
153
150
|
*
|
|
154
151
|
* @param {Callback<number> =} callback
|
|
155
152
|
**/
|
|
156
|
-
number: GenericStorageQuery<() => number>;
|
|
153
|
+
number: GenericStorageQuery<Rv, () => number>;
|
|
157
154
|
|
|
158
155
|
/**
|
|
159
156
|
* Hash of the previous block.
|
|
160
157
|
*
|
|
161
158
|
* @param {Callback<H256> =} callback
|
|
162
159
|
**/
|
|
163
|
-
parentHash: GenericStorageQuery<() => H256>;
|
|
160
|
+
parentHash: GenericStorageQuery<Rv, () => H256>;
|
|
164
161
|
|
|
165
162
|
/**
|
|
166
163
|
* Digest of the current block, also part of the block header.
|
|
167
164
|
*
|
|
168
165
|
* @param {Callback<Digest> =} callback
|
|
169
166
|
**/
|
|
170
|
-
digest: GenericStorageQuery<() => Digest>;
|
|
167
|
+
digest: GenericStorageQuery<Rv, () => Digest>;
|
|
171
168
|
|
|
172
169
|
/**
|
|
173
170
|
* Events deposited for the current block.
|
|
@@ -180,14 +177,14 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
180
177
|
*
|
|
181
178
|
* @param {Callback<Array<FrameSystemEventRecord>> =} callback
|
|
182
179
|
**/
|
|
183
|
-
events: GenericStorageQuery<() => Array<FrameSystemEventRecord>>;
|
|
180
|
+
events: GenericStorageQuery<Rv, () => Array<FrameSystemEventRecord>>;
|
|
184
181
|
|
|
185
182
|
/**
|
|
186
183
|
* The number of events in the `Events<T>` list.
|
|
187
184
|
*
|
|
188
185
|
* @param {Callback<number> =} callback
|
|
189
186
|
**/
|
|
190
|
-
eventCount: GenericStorageQuery<() => number>;
|
|
187
|
+
eventCount: GenericStorageQuery<Rv, () => number>;
|
|
191
188
|
|
|
192
189
|
/**
|
|
193
190
|
* Mapping between a topic (represented by T::Hash) and a vector of indexes
|
|
@@ -197,28 +194,28 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
197
194
|
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
|
198
195
|
* in case of changes fetch the list of events of interest.
|
|
199
196
|
*
|
|
200
|
-
* The value has the type `(T
|
|
197
|
+
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
|
201
198
|
* the `EventIndex` then in case if the topic has the same contents on the next block
|
|
202
199
|
* no notification will be triggered thus the event might be lost.
|
|
203
200
|
*
|
|
204
201
|
* @param {H256} arg
|
|
205
202
|
* @param {Callback<Array<[number, number]>> =} callback
|
|
206
203
|
**/
|
|
207
|
-
eventTopics: GenericStorageQuery<(arg: H256) => Array<[number, number]
|
|
204
|
+
eventTopics: GenericStorageQuery<Rv, (arg: H256) => Array<[number, number]>, H256>;
|
|
208
205
|
|
|
209
206
|
/**
|
|
210
207
|
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
211
208
|
*
|
|
212
209
|
* @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
|
|
213
210
|
**/
|
|
214
|
-
lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
|
|
211
|
+
lastRuntimeUpgrade: GenericStorageQuery<Rv, () => FrameSystemLastRuntimeUpgradeInfo | undefined>;
|
|
215
212
|
|
|
216
213
|
/**
|
|
217
214
|
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
218
215
|
*
|
|
219
216
|
* @param {Callback<boolean> =} callback
|
|
220
217
|
**/
|
|
221
|
-
upgradedToU32RefCount: GenericStorageQuery<() => boolean>;
|
|
218
|
+
upgradedToU32RefCount: GenericStorageQuery<Rv, () => boolean>;
|
|
222
219
|
|
|
223
220
|
/**
|
|
224
221
|
* True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
|
|
@@ -226,19 +223,19 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
226
223
|
*
|
|
227
224
|
* @param {Callback<boolean> =} callback
|
|
228
225
|
**/
|
|
229
|
-
upgradedToTripleRefCount: GenericStorageQuery<() => boolean>;
|
|
226
|
+
upgradedToTripleRefCount: GenericStorageQuery<Rv, () => boolean>;
|
|
230
227
|
|
|
231
228
|
/**
|
|
232
229
|
* The execution phase of the block.
|
|
233
230
|
*
|
|
234
231
|
* @param {Callback<Phase | undefined> =} callback
|
|
235
232
|
**/
|
|
236
|
-
executionPhase: GenericStorageQuery<() => Phase | undefined>;
|
|
233
|
+
executionPhase: GenericStorageQuery<Rv, () => Phase | undefined>;
|
|
237
234
|
|
|
238
235
|
/**
|
|
239
236
|
* Generic pallet storage query
|
|
240
237
|
**/
|
|
241
|
-
[storage: string]: GenericStorageQuery
|
|
238
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
242
239
|
};
|
|
243
240
|
/**
|
|
244
241
|
* Pallet `Identity`'s storage queries
|
|
@@ -252,7 +249,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
252
249
|
* @param {AccountId32Like} arg
|
|
253
250
|
* @param {Callback<PalletIdentityRegistration | undefined> =} callback
|
|
254
251
|
**/
|
|
255
|
-
identityOf: GenericStorageQuery<(arg: AccountId32Like) => PalletIdentityRegistration | undefined>;
|
|
252
|
+
identityOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletIdentityRegistration | undefined, AccountId32>;
|
|
256
253
|
|
|
257
254
|
/**
|
|
258
255
|
* The super-identity of an alternative "sub" identity together with its name, within that
|
|
@@ -261,7 +258,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
261
258
|
* @param {AccountId32Like} arg
|
|
262
259
|
* @param {Callback<[AccountId32, Data] | undefined> =} callback
|
|
263
260
|
**/
|
|
264
|
-
superOf: GenericStorageQuery<(arg: AccountId32Like) => [AccountId32, Data] | undefined>;
|
|
261
|
+
superOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [AccountId32, Data] | undefined, AccountId32>;
|
|
265
262
|
|
|
266
263
|
/**
|
|
267
264
|
* Alternative "sub" identities of this account.
|
|
@@ -273,7 +270,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
273
270
|
* @param {AccountId32Like} arg
|
|
274
271
|
* @param {Callback<[bigint, Array<AccountId32>]> =} callback
|
|
275
272
|
**/
|
|
276
|
-
subsOf: GenericStorageQuery<(arg: AccountId32Like) => [bigint, Array<AccountId32>]>;
|
|
273
|
+
subsOf: GenericStorageQuery<Rv, (arg: AccountId32Like) => [bigint, Array<AccountId32>], AccountId32>;
|
|
277
274
|
|
|
278
275
|
/**
|
|
279
276
|
* The set of registrars. Not expected to get very big as can only be added through a
|
|
@@ -283,35 +280,38 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
283
280
|
*
|
|
284
281
|
* @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
|
|
285
282
|
**/
|
|
286
|
-
registrars: GenericStorageQuery<() => Array<PalletIdentityRegistrarInfo | undefined>>;
|
|
283
|
+
registrars: GenericStorageQuery<Rv, () => Array<PalletIdentityRegistrarInfo | undefined>>;
|
|
287
284
|
|
|
288
285
|
/**
|
|
289
286
|
* Generic pallet storage query
|
|
290
287
|
**/
|
|
291
|
-
[storage: string]: GenericStorageQuery
|
|
288
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
292
289
|
};
|
|
293
290
|
/**
|
|
294
291
|
* Pallet `Timestamp`'s storage queries
|
|
295
292
|
**/
|
|
296
293
|
timestamp: {
|
|
297
294
|
/**
|
|
298
|
-
*
|
|
295
|
+
* The current time for the current block.
|
|
299
296
|
*
|
|
300
297
|
* @param {Callback<bigint> =} callback
|
|
301
298
|
**/
|
|
302
|
-
now: GenericStorageQuery<() => bigint>;
|
|
299
|
+
now: GenericStorageQuery<Rv, () => bigint>;
|
|
303
300
|
|
|
304
301
|
/**
|
|
305
|
-
*
|
|
302
|
+
* Whether the timestamp has been updated in this block.
|
|
303
|
+
*
|
|
304
|
+
* This value is updated to `true` upon successful submission of a timestamp by a node.
|
|
305
|
+
* It is then checked at the end of each block execution in the `on_finalize` hook.
|
|
306
306
|
*
|
|
307
307
|
* @param {Callback<boolean> =} callback
|
|
308
308
|
**/
|
|
309
|
-
didUpdate: GenericStorageQuery<() => boolean>;
|
|
309
|
+
didUpdate: GenericStorageQuery<Rv, () => boolean>;
|
|
310
310
|
|
|
311
311
|
/**
|
|
312
312
|
* Generic pallet storage query
|
|
313
313
|
**/
|
|
314
|
-
[storage: string]: GenericStorageQuery
|
|
314
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
315
315
|
};
|
|
316
316
|
/**
|
|
317
317
|
* Pallet `Multisig`'s storage queries
|
|
@@ -323,12 +323,16 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
323
323
|
* @param {[AccountId32Like, FixedBytes<32>]} arg
|
|
324
324
|
* @param {Callback<PalletMultisigMultisig | undefined> =} callback
|
|
325
325
|
**/
|
|
326
|
-
multisigs: GenericStorageQuery<
|
|
326
|
+
multisigs: GenericStorageQuery<
|
|
327
|
+
Rv,
|
|
328
|
+
(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined,
|
|
329
|
+
[AccountId32, FixedBytes<32>]
|
|
330
|
+
>;
|
|
327
331
|
|
|
328
332
|
/**
|
|
329
333
|
* Generic pallet storage query
|
|
330
334
|
**/
|
|
331
|
-
[storage: string]: GenericStorageQuery
|
|
335
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
332
336
|
};
|
|
333
337
|
/**
|
|
334
338
|
* Pallet `Proxy`'s storage queries
|
|
@@ -341,7 +345,11 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
341
345
|
* @param {AccountId32Like} arg
|
|
342
346
|
* @param {Callback<[Array<PalletProxyProxyDefinition>, bigint]> =} callback
|
|
343
347
|
**/
|
|
344
|
-
proxies: GenericStorageQuery<
|
|
348
|
+
proxies: GenericStorageQuery<
|
|
349
|
+
Rv,
|
|
350
|
+
(arg: AccountId32Like) => [Array<PalletProxyProxyDefinition>, bigint],
|
|
351
|
+
AccountId32
|
|
352
|
+
>;
|
|
345
353
|
|
|
346
354
|
/**
|
|
347
355
|
* The announcements made by the proxy (key).
|
|
@@ -349,28 +357,56 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
349
357
|
* @param {AccountId32Like} arg
|
|
350
358
|
* @param {Callback<[Array<PalletProxyAnnouncement>, bigint]> =} callback
|
|
351
359
|
**/
|
|
352
|
-
announcements: GenericStorageQuery<
|
|
360
|
+
announcements: GenericStorageQuery<
|
|
361
|
+
Rv,
|
|
362
|
+
(arg: AccountId32Like) => [Array<PalletProxyAnnouncement>, bigint],
|
|
363
|
+
AccountId32
|
|
364
|
+
>;
|
|
353
365
|
|
|
354
366
|
/**
|
|
355
367
|
* Generic pallet storage query
|
|
356
368
|
**/
|
|
357
|
-
[storage: string]: GenericStorageQuery
|
|
369
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
358
370
|
};
|
|
359
371
|
/**
|
|
360
372
|
* Pallet `ParachainSystem`'s storage queries
|
|
361
373
|
**/
|
|
362
374
|
parachainSystem: {
|
|
363
375
|
/**
|
|
364
|
-
*
|
|
376
|
+
* Latest included block descendants the runtime accepted. In other words, these are
|
|
377
|
+
* ancestors of the currently executing block which have not been included in the observed
|
|
378
|
+
* relay-chain state.
|
|
379
|
+
*
|
|
380
|
+
* The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
|
|
381
|
+
* in the pallet.
|
|
365
382
|
*
|
|
366
|
-
*
|
|
367
|
-
|
|
383
|
+
* @param {Callback<Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>> =} callback
|
|
384
|
+
**/
|
|
385
|
+
unincludedSegment: GenericStorageQuery<Rv, () => Array<CumulusPalletParachainSystemUnincludedSegmentAncestor>>;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Storage field that keeps track of bandwidth used by the unincluded segment along with the
|
|
389
|
+
* latest HRMP watermark. Used for limiting the acceptance of new blocks with
|
|
390
|
+
* respect to relay chain constraints.
|
|
391
|
+
*
|
|
392
|
+
* @param {Callback<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined> =} callback
|
|
393
|
+
**/
|
|
394
|
+
aggregatedUnincludedSegment: GenericStorageQuery<
|
|
395
|
+
Rv,
|
|
396
|
+
() => CumulusPalletParachainSystemUnincludedSegmentSegmentTracker | undefined
|
|
397
|
+
>;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* In case of a scheduled upgrade, this storage field contains the validation code to be
|
|
401
|
+
* applied.
|
|
368
402
|
*
|
|
369
|
-
*
|
|
403
|
+
* As soon as the relay chain gives us the go-ahead signal, we will overwrite the
|
|
404
|
+
* [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
|
|
405
|
+
* with the new validation code. This concludes the upgrade process.
|
|
370
406
|
*
|
|
371
407
|
* @param {Callback<Bytes> =} callback
|
|
372
408
|
**/
|
|
373
|
-
pendingValidationCode: GenericStorageQuery<() => Bytes>;
|
|
409
|
+
pendingValidationCode: GenericStorageQuery<Rv, () => Bytes>;
|
|
374
410
|
|
|
375
411
|
/**
|
|
376
412
|
* Validation code that is set by the parachain and is to be communicated to collator and
|
|
@@ -381,30 +417,32 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
381
417
|
*
|
|
382
418
|
* @param {Callback<Bytes | undefined> =} callback
|
|
383
419
|
**/
|
|
384
|
-
newValidationCode: GenericStorageQuery<() => Bytes | undefined>;
|
|
420
|
+
newValidationCode: GenericStorageQuery<Rv, () => Bytes | undefined>;
|
|
385
421
|
|
|
386
422
|
/**
|
|
387
423
|
* The [`PersistedValidationData`] set for this block.
|
|
388
424
|
* This value is expected to be set only once per block and it's never stored
|
|
389
425
|
* in the trie.
|
|
390
426
|
*
|
|
391
|
-
* @param {Callback<
|
|
427
|
+
* @param {Callback<PolkadotPrimitivesV6PersistedValidationData | undefined> =} callback
|
|
392
428
|
**/
|
|
393
|
-
validationData: GenericStorageQuery<() =>
|
|
429
|
+
validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6PersistedValidationData | undefined>;
|
|
394
430
|
|
|
395
431
|
/**
|
|
396
432
|
* Were the validation data set to notify the relay chain?
|
|
397
433
|
*
|
|
398
434
|
* @param {Callback<boolean> =} callback
|
|
399
435
|
**/
|
|
400
|
-
didSetValidationCode: GenericStorageQuery<() => boolean>;
|
|
436
|
+
didSetValidationCode: GenericStorageQuery<Rv, () => boolean>;
|
|
401
437
|
|
|
402
438
|
/**
|
|
403
439
|
* The relay chain block number associated with the last parachain block.
|
|
404
440
|
*
|
|
441
|
+
* This is updated in `on_finalize`.
|
|
442
|
+
*
|
|
405
443
|
* @param {Callback<number> =} callback
|
|
406
444
|
**/
|
|
407
|
-
lastRelayChainBlockNumber: GenericStorageQuery<() => number>;
|
|
445
|
+
lastRelayChainBlockNumber: GenericStorageQuery<Rv, () => number>;
|
|
408
446
|
|
|
409
447
|
/**
|
|
410
448
|
* An option which indicates if the relay-chain restricts signalling a validation code upgrade.
|
|
@@ -415,9 +453,20 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
415
453
|
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
416
454
|
* set after the inherent.
|
|
417
455
|
*
|
|
418
|
-
* @param {Callback<
|
|
456
|
+
* @param {Callback<PolkadotPrimitivesV6UpgradeRestriction | undefined> =} callback
|
|
419
457
|
**/
|
|
420
|
-
upgradeRestrictionSignal: GenericStorageQuery<() =>
|
|
458
|
+
upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6UpgradeRestriction | undefined>;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Optional upgrade go-ahead signal from the relay-chain.
|
|
462
|
+
*
|
|
463
|
+
* This storage item is a mirror of the corresponding value for the current parachain from the
|
|
464
|
+
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
465
|
+
* set after the inherent.
|
|
466
|
+
*
|
|
467
|
+
* @param {Callback<PolkadotPrimitivesV6UpgradeGoAhead | undefined> =} callback
|
|
468
|
+
**/
|
|
469
|
+
upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6UpgradeGoAhead | undefined>;
|
|
421
470
|
|
|
422
471
|
/**
|
|
423
472
|
* The state proof for the last relay parent block.
|
|
@@ -429,7 +478,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
429
478
|
*
|
|
430
479
|
* @param {Callback<SpTrieStorageProof | undefined> =} callback
|
|
431
480
|
**/
|
|
432
|
-
relayStateProof: GenericStorageQuery<() => SpTrieStorageProof | undefined>;
|
|
481
|
+
relayStateProof: GenericStorageQuery<Rv, () => SpTrieStorageProof | undefined>;
|
|
433
482
|
|
|
434
483
|
/**
|
|
435
484
|
* The snapshot of some state related to messaging relevant to the current parachain as per
|
|
@@ -443,6 +492,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
443
492
|
* @param {Callback<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined> =} callback
|
|
444
493
|
**/
|
|
445
494
|
relevantMessagingState: GenericStorageQuery<
|
|
495
|
+
Rv,
|
|
446
496
|
() => CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot | undefined
|
|
447
497
|
>;
|
|
448
498
|
|
|
@@ -454,9 +504,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
454
504
|
*
|
|
455
505
|
* This data is also absent from the genesis.
|
|
456
506
|
*
|
|
457
|
-
* @param {Callback<
|
|
507
|
+
* @param {Callback<PolkadotPrimitivesV6AbridgedHostConfiguration | undefined> =} callback
|
|
458
508
|
**/
|
|
459
|
-
hostConfiguration: GenericStorageQuery<() =>
|
|
509
|
+
hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV6AbridgedHostConfiguration | undefined>;
|
|
460
510
|
|
|
461
511
|
/**
|
|
462
512
|
* The last downward message queue chain head we have observed.
|
|
@@ -466,7 +516,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
466
516
|
*
|
|
467
517
|
* @param {Callback<CumulusPrimitivesParachainInherentMessageQueueChain> =} callback
|
|
468
518
|
**/
|
|
469
|
-
lastDmqMqcHead: GenericStorageQuery<() => CumulusPrimitivesParachainInherentMessageQueueChain>;
|
|
519
|
+
lastDmqMqcHead: GenericStorageQuery<Rv, () => CumulusPrimitivesParachainInherentMessageQueueChain>;
|
|
470
520
|
|
|
471
521
|
/**
|
|
472
522
|
* The message queue chain heads we have observed per each channel incoming channel.
|
|
@@ -474,10 +524,11 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
474
524
|
* This value is loaded before and saved after processing inbound downward messages carried
|
|
475
525
|
* by the system inherent.
|
|
476
526
|
*
|
|
477
|
-
* @param {Callback<Array<[
|
|
527
|
+
* @param {Callback<Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>> =} callback
|
|
478
528
|
**/
|
|
479
529
|
lastHrmpMqcHeads: GenericStorageQuery<
|
|
480
|
-
|
|
530
|
+
Rv,
|
|
531
|
+
() => Array<[PolkadotParachainPrimitivesPrimitivesId, CumulusPrimitivesParachainInherentMessageQueueChain]>
|
|
481
532
|
>;
|
|
482
533
|
|
|
483
534
|
/**
|
|
@@ -487,7 +538,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
487
538
|
*
|
|
488
539
|
* @param {Callback<number> =} callback
|
|
489
540
|
**/
|
|
490
|
-
processedDownwardMessages: GenericStorageQuery<() => number>;
|
|
541
|
+
processedDownwardMessages: GenericStorageQuery<Rv, () => number>;
|
|
491
542
|
|
|
492
543
|
/**
|
|
493
544
|
* HRMP watermark that was set in a block.
|
|
@@ -496,7 +547,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
496
547
|
*
|
|
497
548
|
* @param {Callback<number> =} callback
|
|
498
549
|
**/
|
|
499
|
-
hrmpWatermark: GenericStorageQuery<() => number>;
|
|
550
|
+
hrmpWatermark: GenericStorageQuery<Rv, () => number>;
|
|
500
551
|
|
|
501
552
|
/**
|
|
502
553
|
* HRMP messages that were sent in a block.
|
|
@@ -505,7 +556,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
505
556
|
*
|
|
506
557
|
* @param {Callback<Array<PolkadotCorePrimitivesOutboundHrmpMessage>> =} callback
|
|
507
558
|
**/
|
|
508
|
-
hrmpOutboundMessages: GenericStorageQuery<() => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
|
|
559
|
+
hrmpOutboundMessages: GenericStorageQuery<Rv, () => Array<PolkadotCorePrimitivesOutboundHrmpMessage>>;
|
|
509
560
|
|
|
510
561
|
/**
|
|
511
562
|
* Upward messages that were sent in a block.
|
|
@@ -514,14 +565,21 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
514
565
|
*
|
|
515
566
|
* @param {Callback<Array<Bytes>> =} callback
|
|
516
567
|
**/
|
|
517
|
-
upwardMessages: GenericStorageQuery<() => Array<Bytes>>;
|
|
568
|
+
upwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
|
|
518
569
|
|
|
519
570
|
/**
|
|
520
571
|
* Upward messages that are still pending and not yet send to the relay chain.
|
|
521
572
|
*
|
|
522
573
|
* @param {Callback<Array<Bytes>> =} callback
|
|
523
574
|
**/
|
|
524
|
-
pendingUpwardMessages: GenericStorageQuery<() => Array<Bytes>>;
|
|
575
|
+
pendingUpwardMessages: GenericStorageQuery<Rv, () => Array<Bytes>>;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* The factor to multiply the base delivery fee by for UMP.
|
|
579
|
+
*
|
|
580
|
+
* @param {Callback<FixedU128> =} callback
|
|
581
|
+
**/
|
|
582
|
+
upwardDeliveryFeeFactor: GenericStorageQuery<Rv, () => FixedU128>;
|
|
525
583
|
|
|
526
584
|
/**
|
|
527
585
|
* The number of HRMP messages we observed in `on_initialize` and thus used that number for
|
|
@@ -529,7 +587,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
529
587
|
*
|
|
530
588
|
* @param {Callback<number> =} callback
|
|
531
589
|
**/
|
|
532
|
-
announcedHrmpMessagesPerCandidate: GenericStorageQuery<() => number>;
|
|
590
|
+
announcedHrmpMessagesPerCandidate: GenericStorageQuery<Rv, () => number>;
|
|
533
591
|
|
|
534
592
|
/**
|
|
535
593
|
* The weight we reserve at the beginning of the block for processing XCMP messages. This
|
|
@@ -537,7 +595,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
537
595
|
*
|
|
538
596
|
* @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
|
|
539
597
|
**/
|
|
540
|
-
reservedXcmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
|
|
598
|
+
reservedXcmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
|
|
541
599
|
|
|
542
600
|
/**
|
|
543
601
|
* The weight we reserve at the beginning of the block for processing DMP messages. This
|
|
@@ -545,28 +603,28 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
545
603
|
*
|
|
546
604
|
* @param {Callback<SpWeightsWeightV2Weight | undefined> =} callback
|
|
547
605
|
**/
|
|
548
|
-
reservedDmpWeightOverride: GenericStorageQuery<() => SpWeightsWeightV2Weight | undefined>;
|
|
606
|
+
reservedDmpWeightOverride: GenericStorageQuery<Rv, () => SpWeightsWeightV2Weight | undefined>;
|
|
549
607
|
|
|
550
608
|
/**
|
|
551
609
|
* The next authorized upgrade, if there is one.
|
|
552
610
|
*
|
|
553
611
|
* @param {Callback<CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined> =} callback
|
|
554
612
|
**/
|
|
555
|
-
authorizedUpgrade: GenericStorageQuery<() => CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined>;
|
|
613
|
+
authorizedUpgrade: GenericStorageQuery<Rv, () => CumulusPalletParachainSystemCodeUpgradeAuthorization | undefined>;
|
|
556
614
|
|
|
557
615
|
/**
|
|
558
616
|
* A custom head data that should be returned as result of `validate_block`.
|
|
559
617
|
*
|
|
560
|
-
* See
|
|
618
|
+
* See `Pallet::set_custom_validation_head_data` for more information.
|
|
561
619
|
*
|
|
562
620
|
* @param {Callback<Bytes | undefined> =} callback
|
|
563
621
|
**/
|
|
564
|
-
customValidationHeadData: GenericStorageQuery<() => Bytes | undefined>;
|
|
622
|
+
customValidationHeadData: GenericStorageQuery<Rv, () => Bytes | undefined>;
|
|
565
623
|
|
|
566
624
|
/**
|
|
567
625
|
* Generic pallet storage query
|
|
568
626
|
**/
|
|
569
|
-
[storage: string]: GenericStorageQuery
|
|
627
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
570
628
|
};
|
|
571
629
|
/**
|
|
572
630
|
* Pallet `ParachainInfo`'s storage queries
|
|
@@ -574,14 +632,14 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
574
632
|
parachainInfo: {
|
|
575
633
|
/**
|
|
576
634
|
*
|
|
577
|
-
* @param {Callback<
|
|
635
|
+
* @param {Callback<PolkadotParachainPrimitivesPrimitivesId> =} callback
|
|
578
636
|
**/
|
|
579
|
-
parachainId: GenericStorageQuery<() =>
|
|
637
|
+
parachainId: GenericStorageQuery<Rv, () => PolkadotParachainPrimitivesPrimitivesId>;
|
|
580
638
|
|
|
581
639
|
/**
|
|
582
640
|
* Generic pallet storage query
|
|
583
641
|
**/
|
|
584
|
-
[storage: string]: GenericStorageQuery
|
|
642
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
585
643
|
};
|
|
586
644
|
/**
|
|
587
645
|
* Pallet `TransactionPayment`'s storage queries
|
|
@@ -591,18 +649,18 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
591
649
|
*
|
|
592
650
|
* @param {Callback<FixedU128> =} callback
|
|
593
651
|
**/
|
|
594
|
-
nextFeeMultiplier: GenericStorageQuery<() => FixedU128>;
|
|
652
|
+
nextFeeMultiplier: GenericStorageQuery<Rv, () => FixedU128>;
|
|
595
653
|
|
|
596
654
|
/**
|
|
597
655
|
*
|
|
598
656
|
* @param {Callback<PalletTransactionPaymentReleases> =} callback
|
|
599
657
|
**/
|
|
600
|
-
storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
|
|
658
|
+
storageVersion: GenericStorageQuery<Rv, () => PalletTransactionPaymentReleases>;
|
|
601
659
|
|
|
602
660
|
/**
|
|
603
661
|
* Generic pallet storage query
|
|
604
662
|
**/
|
|
605
|
-
[storage: string]: GenericStorageQuery
|
|
663
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
606
664
|
};
|
|
607
665
|
/**
|
|
608
666
|
* Pallet `Balances`'s storage queries
|
|
@@ -613,14 +671,14 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
613
671
|
*
|
|
614
672
|
* @param {Callback<bigint> =} callback
|
|
615
673
|
**/
|
|
616
|
-
totalIssuance: GenericStorageQuery<() => bigint>;
|
|
674
|
+
totalIssuance: GenericStorageQuery<Rv, () => bigint>;
|
|
617
675
|
|
|
618
676
|
/**
|
|
619
677
|
* The total units of outstanding deactivated balance in the system.
|
|
620
678
|
*
|
|
621
679
|
* @param {Callback<bigint> =} callback
|
|
622
680
|
**/
|
|
623
|
-
inactiveIssuance: GenericStorageQuery<() => bigint>;
|
|
681
|
+
inactiveIssuance: GenericStorageQuery<Rv, () => bigint>;
|
|
624
682
|
|
|
625
683
|
/**
|
|
626
684
|
* The Balances pallet example of storing the balance of an account.
|
|
@@ -651,7 +709,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
651
709
|
* @param {AccountId32Like} arg
|
|
652
710
|
* @param {Callback<PalletBalancesAccountData> =} callback
|
|
653
711
|
**/
|
|
654
|
-
account: GenericStorageQuery<(arg: AccountId32Like) => PalletBalancesAccountData>;
|
|
712
|
+
account: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletBalancesAccountData, AccountId32>;
|
|
655
713
|
|
|
656
714
|
/**
|
|
657
715
|
* Any liquidity locks on some account balances.
|
|
@@ -660,7 +718,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
660
718
|
* @param {AccountId32Like} arg
|
|
661
719
|
* @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
|
|
662
720
|
**/
|
|
663
|
-
locks: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesBalanceLock
|
|
721
|
+
locks: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesBalanceLock>, AccountId32>;
|
|
664
722
|
|
|
665
723
|
/**
|
|
666
724
|
* Named reserves on some account balances.
|
|
@@ -668,7 +726,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
668
726
|
* @param {AccountId32Like} arg
|
|
669
727
|
* @param {Callback<Array<PalletBalancesReserveData>> =} callback
|
|
670
728
|
**/
|
|
671
|
-
reserves: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesReserveData
|
|
729
|
+
reserves: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesReserveData>, AccountId32>;
|
|
672
730
|
|
|
673
731
|
/**
|
|
674
732
|
* Holds on account balances.
|
|
@@ -676,7 +734,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
676
734
|
* @param {AccountId32Like} arg
|
|
677
735
|
* @param {Callback<Array<PalletBalancesIdAmount>> =} callback
|
|
678
736
|
**/
|
|
679
|
-
holds: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount
|
|
737
|
+
holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount>, AccountId32>;
|
|
680
738
|
|
|
681
739
|
/**
|
|
682
740
|
* Freeze locks on account balances.
|
|
@@ -684,12 +742,16 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
684
742
|
* @param {AccountId32Like} arg
|
|
685
743
|
* @param {Callback<Array<PalletBalancesIdAmountRuntimeFreezeReason>> =} callback
|
|
686
744
|
**/
|
|
687
|
-
freezes: GenericStorageQuery<
|
|
745
|
+
freezes: GenericStorageQuery<
|
|
746
|
+
Rv,
|
|
747
|
+
(arg: AccountId32Like) => Array<PalletBalancesIdAmountRuntimeFreezeReason>,
|
|
748
|
+
AccountId32
|
|
749
|
+
>;
|
|
688
750
|
|
|
689
751
|
/**
|
|
690
752
|
* Generic pallet storage query
|
|
691
753
|
**/
|
|
692
|
-
[storage: string]: GenericStorageQuery
|
|
754
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
693
755
|
};
|
|
694
756
|
/**
|
|
695
757
|
* Pallet `Vesting`'s storage queries
|
|
@@ -701,7 +763,11 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
701
763
|
* @param {AccountId32Like} arg
|
|
702
764
|
* @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
|
|
703
765
|
**/
|
|
704
|
-
vesting: GenericStorageQuery<
|
|
766
|
+
vesting: GenericStorageQuery<
|
|
767
|
+
Rv,
|
|
768
|
+
(arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined,
|
|
769
|
+
AccountId32
|
|
770
|
+
>;
|
|
705
771
|
|
|
706
772
|
/**
|
|
707
773
|
* Storage version of the pallet.
|
|
@@ -710,12 +776,12 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
710
776
|
*
|
|
711
777
|
* @param {Callback<PalletVestingReleases> =} callback
|
|
712
778
|
**/
|
|
713
|
-
storageVersion: GenericStorageQuery<() => PalletVestingReleases>;
|
|
779
|
+
storageVersion: GenericStorageQuery<Rv, () => PalletVestingReleases>;
|
|
714
780
|
|
|
715
781
|
/**
|
|
716
782
|
* Generic pallet storage query
|
|
717
783
|
**/
|
|
718
|
-
[storage: string]: GenericStorageQuery
|
|
784
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
719
785
|
};
|
|
720
786
|
/**
|
|
721
787
|
* Pallet `Inflation`'s storage queries
|
|
@@ -727,26 +793,26 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
727
793
|
*
|
|
728
794
|
* @param {Callback<PalletInflationInflationConfiguration> =} callback
|
|
729
795
|
**/
|
|
730
|
-
activeInflationConfig: GenericStorageQuery<() => PalletInflationInflationConfiguration>;
|
|
796
|
+
activeInflationConfig: GenericStorageQuery<Rv, () => PalletInflationInflationConfiguration>;
|
|
731
797
|
|
|
732
798
|
/**
|
|
733
799
|
* Static inflation parameters - used to calculate active inflation configuration at certain points in time.
|
|
734
800
|
*
|
|
735
801
|
* @param {Callback<PalletInflationInflationParameters> =} callback
|
|
736
802
|
**/
|
|
737
|
-
inflationParams: GenericStorageQuery<() => PalletInflationInflationParameters>;
|
|
803
|
+
inflationParams: GenericStorageQuery<Rv, () => PalletInflationInflationParameters>;
|
|
738
804
|
|
|
739
805
|
/**
|
|
740
806
|
* Flag indicating whether on the first possible opportunity, recalculation of the inflation config should be done.
|
|
741
807
|
*
|
|
742
808
|
* @param {Callback<number | undefined> =} callback
|
|
743
809
|
**/
|
|
744
|
-
doRecalculation: GenericStorageQuery<() => number | undefined>;
|
|
810
|
+
doRecalculation: GenericStorageQuery<Rv, () => number | undefined>;
|
|
745
811
|
|
|
746
812
|
/**
|
|
747
813
|
* Generic pallet storage query
|
|
748
814
|
**/
|
|
749
|
-
[storage: string]: GenericStorageQuery
|
|
815
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
750
816
|
};
|
|
751
817
|
/**
|
|
752
818
|
* Pallet `DappStaking`'s storage queries
|
|
@@ -757,14 +823,14 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
757
823
|
*
|
|
758
824
|
* @param {Callback<PalletDappStakingV3ProtocolState> =} callback
|
|
759
825
|
**/
|
|
760
|
-
activeProtocolState: GenericStorageQuery<() => PalletDappStakingV3ProtocolState>;
|
|
826
|
+
activeProtocolState: GenericStorageQuery<Rv, () => PalletDappStakingV3ProtocolState>;
|
|
761
827
|
|
|
762
828
|
/**
|
|
763
829
|
* Counter for unique dApp identifiers.
|
|
764
830
|
*
|
|
765
831
|
* @param {Callback<number> =} callback
|
|
766
832
|
**/
|
|
767
|
-
nextDAppId: GenericStorageQuery<() => number>;
|
|
833
|
+
nextDAppId: GenericStorageQuery<Rv, () => number>;
|
|
768
834
|
|
|
769
835
|
/**
|
|
770
836
|
* Map of all dApps integrated into dApp staking protocol.
|
|
@@ -776,7 +842,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
776
842
|
* @param {Callback<PalletDappStakingV3DAppInfo | undefined> =} callback
|
|
777
843
|
**/
|
|
778
844
|
integratedDApps: GenericStorageQuery<
|
|
779
|
-
|
|
845
|
+
Rv,
|
|
846
|
+
(arg: AstarPrimitivesDappStakingSmartContract) => PalletDappStakingV3DAppInfo | undefined,
|
|
847
|
+
AstarPrimitivesDappStakingSmartContract
|
|
780
848
|
>;
|
|
781
849
|
|
|
782
850
|
/**
|
|
@@ -784,7 +852,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
784
852
|
*
|
|
785
853
|
* @param {Callback<number> =} callback
|
|
786
854
|
**/
|
|
787
|
-
counterForIntegratedDApps: GenericStorageQuery<() => number>;
|
|
855
|
+
counterForIntegratedDApps: GenericStorageQuery<Rv, () => number>;
|
|
788
856
|
|
|
789
857
|
/**
|
|
790
858
|
* General locked/staked information for each account.
|
|
@@ -792,7 +860,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
792
860
|
* @param {AccountId32Like} arg
|
|
793
861
|
* @param {Callback<PalletDappStakingV3AccountLedger> =} callback
|
|
794
862
|
**/
|
|
795
|
-
ledger: GenericStorageQuery<(arg: AccountId32Like) => PalletDappStakingV3AccountLedger>;
|
|
863
|
+
ledger: GenericStorageQuery<Rv, (arg: AccountId32Like) => PalletDappStakingV3AccountLedger, AccountId32>;
|
|
796
864
|
|
|
797
865
|
/**
|
|
798
866
|
* Information about how much each staker has staked for each smart contract in some period.
|
|
@@ -801,9 +869,11 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
801
869
|
* @param {Callback<PalletDappStakingV3SingularStakingInfo | undefined> =} callback
|
|
802
870
|
**/
|
|
803
871
|
stakerInfo: GenericStorageQuery<
|
|
872
|
+
Rv,
|
|
804
873
|
(
|
|
805
874
|
arg: [AccountId32Like, AstarPrimitivesDappStakingSmartContract],
|
|
806
|
-
) => PalletDappStakingV3SingularStakingInfo | undefined
|
|
875
|
+
) => PalletDappStakingV3SingularStakingInfo | undefined,
|
|
876
|
+
[AccountId32, AstarPrimitivesDappStakingSmartContract]
|
|
807
877
|
>;
|
|
808
878
|
|
|
809
879
|
/**
|
|
@@ -812,14 +882,14 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
812
882
|
* @param {number} arg
|
|
813
883
|
* @param {Callback<PalletDappStakingV3ContractStakeAmount> =} callback
|
|
814
884
|
**/
|
|
815
|
-
contractStake: GenericStorageQuery<(arg: number) => PalletDappStakingV3ContractStakeAmount>;
|
|
885
|
+
contractStake: GenericStorageQuery<Rv, (arg: number) => PalletDappStakingV3ContractStakeAmount, number>;
|
|
816
886
|
|
|
817
887
|
/**
|
|
818
888
|
* General information about the current era.
|
|
819
889
|
*
|
|
820
890
|
* @param {Callback<PalletDappStakingV3EraInfo> =} callback
|
|
821
891
|
**/
|
|
822
|
-
currentEraInfo: GenericStorageQuery<() => PalletDappStakingV3EraInfo>;
|
|
892
|
+
currentEraInfo: GenericStorageQuery<Rv, () => PalletDappStakingV3EraInfo>;
|
|
823
893
|
|
|
824
894
|
/**
|
|
825
895
|
* Information about rewards for each era.
|
|
@@ -835,7 +905,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
835
905
|
* @param {number} arg
|
|
836
906
|
* @param {Callback<PalletDappStakingV3EraRewardSpan | undefined> =} callback
|
|
837
907
|
**/
|
|
838
|
-
eraRewards: GenericStorageQuery<(arg: number) => PalletDappStakingV3EraRewardSpan | undefined>;
|
|
908
|
+
eraRewards: GenericStorageQuery<Rv, (arg: number) => PalletDappStakingV3EraRewardSpan | undefined, number>;
|
|
839
909
|
|
|
840
910
|
/**
|
|
841
911
|
* Information about period's end.
|
|
@@ -843,21 +913,21 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
843
913
|
* @param {number} arg
|
|
844
914
|
* @param {Callback<PalletDappStakingV3PeriodEndInfo | undefined> =} callback
|
|
845
915
|
**/
|
|
846
|
-
periodEnd: GenericStorageQuery<(arg: number) => PalletDappStakingV3PeriodEndInfo | undefined>;
|
|
916
|
+
periodEnd: GenericStorageQuery<Rv, (arg: number) => PalletDappStakingV3PeriodEndInfo | undefined, number>;
|
|
847
917
|
|
|
848
918
|
/**
|
|
849
919
|
* Static tier parameters used to calculate tier configuration.
|
|
850
920
|
*
|
|
851
921
|
* @param {Callback<PalletDappStakingV3TierParameters> =} callback
|
|
852
922
|
**/
|
|
853
|
-
staticTierParams: GenericStorageQuery<() => PalletDappStakingV3TierParameters>;
|
|
923
|
+
staticTierParams: GenericStorageQuery<Rv, () => PalletDappStakingV3TierParameters>;
|
|
854
924
|
|
|
855
925
|
/**
|
|
856
926
|
* Tier configuration user for current & preceding eras.
|
|
857
927
|
*
|
|
858
928
|
* @param {Callback<PalletDappStakingV3TiersConfiguration> =} callback
|
|
859
929
|
**/
|
|
860
|
-
tierConfig: GenericStorageQuery<() => PalletDappStakingV3TiersConfiguration>;
|
|
930
|
+
tierConfig: GenericStorageQuery<Rv, () => PalletDappStakingV3TiersConfiguration>;
|
|
861
931
|
|
|
862
932
|
/**
|
|
863
933
|
* Information about which tier a dApp belonged to in a specific era.
|
|
@@ -865,14 +935,14 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
865
935
|
* @param {number} arg
|
|
866
936
|
* @param {Callback<PalletDappStakingV3DAppTierRewards | undefined> =} callback
|
|
867
937
|
**/
|
|
868
|
-
dAppTiers: GenericStorageQuery<(arg: number) => PalletDappStakingV3DAppTierRewards | undefined>;
|
|
938
|
+
dAppTiers: GenericStorageQuery<Rv, (arg: number) => PalletDappStakingV3DAppTierRewards | undefined, number>;
|
|
869
939
|
|
|
870
940
|
/**
|
|
871
941
|
* History cleanup marker - holds information about which DB entries should be cleaned up next, when applicable.
|
|
872
942
|
*
|
|
873
943
|
* @param {Callback<PalletDappStakingV3CleanupMarker> =} callback
|
|
874
944
|
**/
|
|
875
|
-
historyCleanupMarker: GenericStorageQuery<() => PalletDappStakingV3CleanupMarker>;
|
|
945
|
+
historyCleanupMarker: GenericStorageQuery<Rv, () => PalletDappStakingV3CleanupMarker>;
|
|
876
946
|
|
|
877
947
|
/**
|
|
878
948
|
* Safeguard to prevent unwanted operations in production.
|
|
@@ -881,12 +951,12 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
881
951
|
*
|
|
882
952
|
* @param {Callback<boolean> =} callback
|
|
883
953
|
**/
|
|
884
|
-
safeguard: GenericStorageQuery<() => boolean>;
|
|
954
|
+
safeguard: GenericStorageQuery<Rv, () => boolean>;
|
|
885
955
|
|
|
886
956
|
/**
|
|
887
957
|
* Generic pallet storage query
|
|
888
958
|
**/
|
|
889
|
-
[storage: string]: GenericStorageQuery
|
|
959
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
890
960
|
};
|
|
891
961
|
/**
|
|
892
962
|
* Pallet `Assets`'s storage queries
|
|
@@ -898,7 +968,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
898
968
|
* @param {bigint} arg
|
|
899
969
|
* @param {Callback<PalletAssetsAssetDetails | undefined> =} callback
|
|
900
970
|
**/
|
|
901
|
-
asset: GenericStorageQuery<(arg: bigint) => PalletAssetsAssetDetails | undefined>;
|
|
971
|
+
asset: GenericStorageQuery<Rv, (arg: bigint) => PalletAssetsAssetDetails | undefined, bigint>;
|
|
902
972
|
|
|
903
973
|
/**
|
|
904
974
|
* The holdings of a specific account for a specific asset.
|
|
@@ -906,7 +976,11 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
906
976
|
* @param {[bigint, AccountId32Like]} arg
|
|
907
977
|
* @param {Callback<PalletAssetsAssetAccount | undefined> =} callback
|
|
908
978
|
**/
|
|
909
|
-
account: GenericStorageQuery<
|
|
979
|
+
account: GenericStorageQuery<
|
|
980
|
+
Rv,
|
|
981
|
+
(arg: [bigint, AccountId32Like]) => PalletAssetsAssetAccount | undefined,
|
|
982
|
+
[bigint, AccountId32]
|
|
983
|
+
>;
|
|
910
984
|
|
|
911
985
|
/**
|
|
912
986
|
* Approved balance transfers. First balance is the amount approved for transfer. Second
|
|
@@ -917,7 +991,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
917
991
|
* @param {Callback<PalletAssetsApproval | undefined> =} callback
|
|
918
992
|
**/
|
|
919
993
|
approvals: GenericStorageQuery<
|
|
920
|
-
|
|
994
|
+
Rv,
|
|
995
|
+
(arg: [bigint, AccountId32Like, AccountId32Like]) => PalletAssetsApproval | undefined,
|
|
996
|
+
[bigint, AccountId32, AccountId32]
|
|
921
997
|
>;
|
|
922
998
|
|
|
923
999
|
/**
|
|
@@ -926,12 +1002,105 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
926
1002
|
* @param {bigint} arg
|
|
927
1003
|
* @param {Callback<PalletAssetsAssetMetadata> =} callback
|
|
928
1004
|
**/
|
|
929
|
-
metadata: GenericStorageQuery<(arg: bigint) => PalletAssetsAssetMetadata>;
|
|
1005
|
+
metadata: GenericStorageQuery<Rv, (arg: bigint) => PalletAssetsAssetMetadata, bigint>;
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Generic pallet storage query
|
|
1009
|
+
**/
|
|
1010
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1011
|
+
};
|
|
1012
|
+
/**
|
|
1013
|
+
* Pallet `PriceAggregator`'s storage queries
|
|
1014
|
+
**/
|
|
1015
|
+
priceAggregator: {
|
|
1016
|
+
/**
|
|
1017
|
+
* Storage for the accumulated native currency price in the current block.
|
|
1018
|
+
*
|
|
1019
|
+
* @param {Callback<Array<FixedU128>> =} callback
|
|
1020
|
+
**/
|
|
1021
|
+
currentBlockValues: GenericStorageQuery<Rv, () => Array<FixedU128>>;
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* Used to store the aggregated processed block values during some time period.
|
|
1025
|
+
*
|
|
1026
|
+
* @param {Callback<PalletPriceAggregatorValueAggregator> =} callback
|
|
1027
|
+
**/
|
|
1028
|
+
intermediateValueAggregator: GenericStorageQuery<Rv, () => PalletPriceAggregatorValueAggregator>;
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* Used to store aggregated intermediate values for some time period.
|
|
1032
|
+
*
|
|
1033
|
+
* @param {Callback<PalletPriceAggregatorCircularBuffer> =} callback
|
|
1034
|
+
**/
|
|
1035
|
+
valuesCircularBuffer: GenericStorageQuery<Rv, () => PalletPriceAggregatorCircularBuffer>;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Generic pallet storage query
|
|
1039
|
+
**/
|
|
1040
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1041
|
+
};
|
|
1042
|
+
/**
|
|
1043
|
+
* Pallet `Oracle`'s storage queries
|
|
1044
|
+
**/
|
|
1045
|
+
oracle: {
|
|
1046
|
+
/**
|
|
1047
|
+
* Raw values for each oracle operators
|
|
1048
|
+
*
|
|
1049
|
+
* @param {[AccountId32Like, AstarPrimitivesOracleCurrencyId]} arg
|
|
1050
|
+
* @param {Callback<OrmlOracleModuleTimestampedValue | undefined> =} callback
|
|
1051
|
+
**/
|
|
1052
|
+
rawValues: GenericStorageQuery<
|
|
1053
|
+
Rv,
|
|
1054
|
+
(arg: [AccountId32Like, AstarPrimitivesOracleCurrencyId]) => OrmlOracleModuleTimestampedValue | undefined,
|
|
1055
|
+
[AccountId32, AstarPrimitivesOracleCurrencyId]
|
|
1056
|
+
>;
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* Up to date combined value from Raw Values
|
|
1060
|
+
*
|
|
1061
|
+
* @param {AstarPrimitivesOracleCurrencyId} arg
|
|
1062
|
+
* @param {Callback<OrmlOracleModuleTimestampedValue | undefined> =} callback
|
|
1063
|
+
**/
|
|
1064
|
+
values: GenericStorageQuery<
|
|
1065
|
+
Rv,
|
|
1066
|
+
(arg: AstarPrimitivesOracleCurrencyId) => OrmlOracleModuleTimestampedValue | undefined,
|
|
1067
|
+
AstarPrimitivesOracleCurrencyId
|
|
1068
|
+
>;
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* If an oracle operator has fed a value in this block
|
|
1072
|
+
*
|
|
1073
|
+
* @param {Callback<OrmlUtilitiesOrderedSet> =} callback
|
|
1074
|
+
**/
|
|
1075
|
+
hasDispatched: GenericStorageQuery<Rv, () => OrmlUtilitiesOrderedSet>;
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Generic pallet storage query
|
|
1079
|
+
**/
|
|
1080
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1081
|
+
};
|
|
1082
|
+
/**
|
|
1083
|
+
* Pallet `OracleMembership`'s storage queries
|
|
1084
|
+
**/
|
|
1085
|
+
oracleMembership: {
|
|
1086
|
+
/**
|
|
1087
|
+
* The current membership, stored as an ordered Vec.
|
|
1088
|
+
*
|
|
1089
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
1090
|
+
**/
|
|
1091
|
+
members: GenericStorageQuery<Rv, () => Array<AccountId32>>;
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* The current prime member, if one exists.
|
|
1095
|
+
*
|
|
1096
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1097
|
+
**/
|
|
1098
|
+
prime: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
|
|
930
1099
|
|
|
931
1100
|
/**
|
|
932
1101
|
* Generic pallet storage query
|
|
933
1102
|
**/
|
|
934
|
-
[storage: string]: GenericStorageQuery
|
|
1103
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
935
1104
|
};
|
|
936
1105
|
/**
|
|
937
1106
|
* Pallet `Authorship`'s storage queries
|
|
@@ -942,12 +1111,12 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
942
1111
|
*
|
|
943
1112
|
* @param {Callback<AccountId32 | undefined> =} callback
|
|
944
1113
|
**/
|
|
945
|
-
author: GenericStorageQuery<() => AccountId32 | undefined>;
|
|
1114
|
+
author: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
|
|
946
1115
|
|
|
947
1116
|
/**
|
|
948
1117
|
* Generic pallet storage query
|
|
949
1118
|
**/
|
|
950
|
-
[storage: string]: GenericStorageQuery
|
|
1119
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
951
1120
|
};
|
|
952
1121
|
/**
|
|
953
1122
|
* Pallet `CollatorSelection`'s storage queries
|
|
@@ -958,14 +1127,14 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
958
1127
|
*
|
|
959
1128
|
* @param {Callback<Array<AccountId32>> =} callback
|
|
960
1129
|
**/
|
|
961
|
-
invulnerables: GenericStorageQuery<() => Array<AccountId32>>;
|
|
1130
|
+
invulnerables: GenericStorageQuery<Rv, () => Array<AccountId32>>;
|
|
962
1131
|
|
|
963
1132
|
/**
|
|
964
1133
|
* The (community, limited) collation candidates.
|
|
965
1134
|
*
|
|
966
1135
|
* @param {Callback<Array<PalletCollatorSelectionCandidateInfo>> =} callback
|
|
967
1136
|
**/
|
|
968
|
-
candidates: GenericStorageQuery<() => Array<PalletCollatorSelectionCandidateInfo>>;
|
|
1137
|
+
candidates: GenericStorageQuery<Rv, () => Array<PalletCollatorSelectionCandidateInfo>>;
|
|
969
1138
|
|
|
970
1139
|
/**
|
|
971
1140
|
* Last block authored by collator.
|
|
@@ -973,7 +1142,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
973
1142
|
* @param {AccountId32Like} arg
|
|
974
1143
|
* @param {Callback<number> =} callback
|
|
975
1144
|
**/
|
|
976
|
-
lastAuthoredBlock: GenericStorageQuery<(arg: AccountId32Like) => number>;
|
|
1145
|
+
lastAuthoredBlock: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
|
|
977
1146
|
|
|
978
1147
|
/**
|
|
979
1148
|
* Desired number of candidates.
|
|
@@ -982,7 +1151,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
982
1151
|
*
|
|
983
1152
|
* @param {Callback<number> =} callback
|
|
984
1153
|
**/
|
|
985
|
-
desiredCandidates: GenericStorageQuery<() => number>;
|
|
1154
|
+
desiredCandidates: GenericStorageQuery<Rv, () => number>;
|
|
986
1155
|
|
|
987
1156
|
/**
|
|
988
1157
|
* Fixed amount to deposit to become a collator.
|
|
@@ -991,19 +1160,19 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
991
1160
|
*
|
|
992
1161
|
* @param {Callback<bigint> =} callback
|
|
993
1162
|
**/
|
|
994
|
-
candidacyBond: GenericStorageQuery<() => bigint>;
|
|
1163
|
+
candidacyBond: GenericStorageQuery<Rv, () => bigint>;
|
|
995
1164
|
|
|
996
1165
|
/**
|
|
997
1166
|
* Destination account for slashed amount.
|
|
998
1167
|
*
|
|
999
1168
|
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1000
1169
|
**/
|
|
1001
|
-
slashDestination: GenericStorageQuery<() => AccountId32 | undefined>;
|
|
1170
|
+
slashDestination: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
|
|
1002
1171
|
|
|
1003
1172
|
/**
|
|
1004
1173
|
* Generic pallet storage query
|
|
1005
1174
|
**/
|
|
1006
|
-
[storage: string]: GenericStorageQuery
|
|
1175
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1007
1176
|
};
|
|
1008
1177
|
/**
|
|
1009
1178
|
* Pallet `Session`'s storage queries
|
|
@@ -1014,14 +1183,14 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1014
1183
|
*
|
|
1015
1184
|
* @param {Callback<Array<AccountId32>> =} callback
|
|
1016
1185
|
**/
|
|
1017
|
-
validators: GenericStorageQuery<() => Array<AccountId32>>;
|
|
1186
|
+
validators: GenericStorageQuery<Rv, () => Array<AccountId32>>;
|
|
1018
1187
|
|
|
1019
1188
|
/**
|
|
1020
1189
|
* Current index of the session.
|
|
1021
1190
|
*
|
|
1022
1191
|
* @param {Callback<number> =} callback
|
|
1023
1192
|
**/
|
|
1024
|
-
currentIndex: GenericStorageQuery<() => number>;
|
|
1193
|
+
currentIndex: GenericStorageQuery<Rv, () => number>;
|
|
1025
1194
|
|
|
1026
1195
|
/**
|
|
1027
1196
|
* True if the underlying economic identities or weighting behind the validators
|
|
@@ -1029,7 +1198,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1029
1198
|
*
|
|
1030
1199
|
* @param {Callback<boolean> =} callback
|
|
1031
1200
|
**/
|
|
1032
|
-
queuedChanged: GenericStorageQuery<() => boolean>;
|
|
1201
|
+
queuedChanged: GenericStorageQuery<Rv, () => boolean>;
|
|
1033
1202
|
|
|
1034
1203
|
/**
|
|
1035
1204
|
* The queued keys for the next session. When the next session begins, these keys
|
|
@@ -1037,7 +1206,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1037
1206
|
*
|
|
1038
1207
|
* @param {Callback<Array<[AccountId32, AstarRuntimeSessionKeys]>> =} callback
|
|
1039
1208
|
**/
|
|
1040
|
-
queuedKeys: GenericStorageQuery<() => Array<[AccountId32, AstarRuntimeSessionKeys]>>;
|
|
1209
|
+
queuedKeys: GenericStorageQuery<Rv, () => Array<[AccountId32, AstarRuntimeSessionKeys]>>;
|
|
1041
1210
|
|
|
1042
1211
|
/**
|
|
1043
1212
|
* Indices of disabled validators.
|
|
@@ -1048,7 +1217,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1048
1217
|
*
|
|
1049
1218
|
* @param {Callback<Array<number>> =} callback
|
|
1050
1219
|
**/
|
|
1051
|
-
disabledValidators: GenericStorageQuery<() => Array<number>>;
|
|
1220
|
+
disabledValidators: GenericStorageQuery<Rv, () => Array<number>>;
|
|
1052
1221
|
|
|
1053
1222
|
/**
|
|
1054
1223
|
* The next session keys for a validator.
|
|
@@ -1056,7 +1225,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1056
1225
|
* @param {AccountId32Like} arg
|
|
1057
1226
|
* @param {Callback<AstarRuntimeSessionKeys | undefined> =} callback
|
|
1058
1227
|
**/
|
|
1059
|
-
nextKeys: GenericStorageQuery<(arg: AccountId32Like) => AstarRuntimeSessionKeys | undefined>;
|
|
1228
|
+
nextKeys: GenericStorageQuery<Rv, (arg: AccountId32Like) => AstarRuntimeSessionKeys | undefined, AccountId32>;
|
|
1060
1229
|
|
|
1061
1230
|
/**
|
|
1062
1231
|
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
|
@@ -1064,12 +1233,16 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1064
1233
|
* @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
|
|
1065
1234
|
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1066
1235
|
**/
|
|
1067
|
-
keyOwner: GenericStorageQuery<
|
|
1236
|
+
keyOwner: GenericStorageQuery<
|
|
1237
|
+
Rv,
|
|
1238
|
+
(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined,
|
|
1239
|
+
[SpCoreCryptoKeyTypeId, Bytes]
|
|
1240
|
+
>;
|
|
1068
1241
|
|
|
1069
1242
|
/**
|
|
1070
1243
|
* Generic pallet storage query
|
|
1071
1244
|
**/
|
|
1072
|
-
[storage: string]: GenericStorageQuery
|
|
1245
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1073
1246
|
};
|
|
1074
1247
|
/**
|
|
1075
1248
|
* Pallet `Aura`'s storage queries
|
|
@@ -1080,7 +1253,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1080
1253
|
*
|
|
1081
1254
|
* @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
|
|
1082
1255
|
**/
|
|
1083
|
-
authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
|
|
1256
|
+
authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
|
|
1084
1257
|
|
|
1085
1258
|
/**
|
|
1086
1259
|
* The current slot of this block.
|
|
@@ -1089,12 +1262,12 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1089
1262
|
*
|
|
1090
1263
|
* @param {Callback<SpConsensusSlotsSlot> =} callback
|
|
1091
1264
|
**/
|
|
1092
|
-
currentSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
|
|
1265
|
+
currentSlot: GenericStorageQuery<Rv, () => SpConsensusSlotsSlot>;
|
|
1093
1266
|
|
|
1094
1267
|
/**
|
|
1095
1268
|
* Generic pallet storage query
|
|
1096
1269
|
**/
|
|
1097
|
-
[storage: string]: GenericStorageQuery
|
|
1270
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1098
1271
|
};
|
|
1099
1272
|
/**
|
|
1100
1273
|
* Pallet `AuraExt`'s storage queries
|
|
@@ -1104,17 +1277,26 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1104
1277
|
* Serves as cache for the authorities.
|
|
1105
1278
|
*
|
|
1106
1279
|
* The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,
|
|
1107
|
-
* but we require the old authorities to verify the seal when validating a PoV. This will
|
|
1108
|
-
* be updated to the latest AuRa authorities in `on_finalize`.
|
|
1280
|
+
* but we require the old authorities to verify the seal when validating a PoV. This will
|
|
1281
|
+
* always be updated to the latest AuRa authorities in `on_finalize`.
|
|
1109
1282
|
*
|
|
1110
1283
|
* @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
|
|
1111
1284
|
**/
|
|
1112
|
-
authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
|
|
1285
|
+
authorities: GenericStorageQuery<Rv, () => Array<SpConsensusAuraSr25519AppSr25519Public>>;
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Current slot paired with a number of authored blocks.
|
|
1289
|
+
*
|
|
1290
|
+
* Updated on each block initialization.
|
|
1291
|
+
*
|
|
1292
|
+
* @param {Callback<[SpConsensusSlotsSlot, number] | undefined> =} callback
|
|
1293
|
+
**/
|
|
1294
|
+
slotInfo: GenericStorageQuery<Rv, () => [SpConsensusSlotsSlot, number] | undefined>;
|
|
1113
1295
|
|
|
1114
1296
|
/**
|
|
1115
1297
|
* Generic pallet storage query
|
|
1116
1298
|
**/
|
|
1117
|
-
[storage: string]: GenericStorageQuery
|
|
1299
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1118
1300
|
};
|
|
1119
1301
|
/**
|
|
1120
1302
|
* Pallet `XcmpQueue`'s storage queries
|
|
@@ -1125,15 +1307,19 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1125
1307
|
*
|
|
1126
1308
|
* @param {Callback<Array<CumulusPalletXcmpQueueInboundChannelDetails>> =} callback
|
|
1127
1309
|
**/
|
|
1128
|
-
inboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueInboundChannelDetails>>;
|
|
1310
|
+
inboundXcmpStatus: GenericStorageQuery<Rv, () => Array<CumulusPalletXcmpQueueInboundChannelDetails>>;
|
|
1129
1311
|
|
|
1130
1312
|
/**
|
|
1131
1313
|
* Inbound aggregate XCMP messages. It can only be one per ParaId/block.
|
|
1132
1314
|
*
|
|
1133
|
-
* @param {[
|
|
1315
|
+
* @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
|
|
1134
1316
|
* @param {Callback<Bytes> =} callback
|
|
1135
1317
|
**/
|
|
1136
|
-
inboundXcmpMessages: GenericStorageQuery<
|
|
1318
|
+
inboundXcmpMessages: GenericStorageQuery<
|
|
1319
|
+
Rv,
|
|
1320
|
+
(arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes,
|
|
1321
|
+
[PolkadotParachainPrimitivesPrimitivesId, number]
|
|
1322
|
+
>;
|
|
1137
1323
|
|
|
1138
1324
|
/**
|
|
1139
1325
|
* The non-empty XCMP channels in order of becoming non-empty, and the index of the first
|
|
@@ -1145,30 +1331,38 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1145
1331
|
*
|
|
1146
1332
|
* @param {Callback<Array<CumulusPalletXcmpQueueOutboundChannelDetails>> =} callback
|
|
1147
1333
|
**/
|
|
1148
|
-
outboundXcmpStatus: GenericStorageQuery<() => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
|
|
1334
|
+
outboundXcmpStatus: GenericStorageQuery<Rv, () => Array<CumulusPalletXcmpQueueOutboundChannelDetails>>;
|
|
1149
1335
|
|
|
1150
1336
|
/**
|
|
1151
1337
|
* The messages outbound in a given XCMP channel.
|
|
1152
1338
|
*
|
|
1153
|
-
* @param {[
|
|
1339
|
+
* @param {[PolkadotParachainPrimitivesPrimitivesId, number]} arg
|
|
1154
1340
|
* @param {Callback<Bytes> =} callback
|
|
1155
1341
|
**/
|
|
1156
|
-
outboundXcmpMessages: GenericStorageQuery<
|
|
1342
|
+
outboundXcmpMessages: GenericStorageQuery<
|
|
1343
|
+
Rv,
|
|
1344
|
+
(arg: [PolkadotParachainPrimitivesPrimitivesId, number]) => Bytes,
|
|
1345
|
+
[PolkadotParachainPrimitivesPrimitivesId, number]
|
|
1346
|
+
>;
|
|
1157
1347
|
|
|
1158
1348
|
/**
|
|
1159
1349
|
* Any signal messages waiting to be sent.
|
|
1160
1350
|
*
|
|
1161
|
-
* @param {
|
|
1351
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
1162
1352
|
* @param {Callback<Bytes> =} callback
|
|
1163
1353
|
**/
|
|
1164
|
-
signalMessages: GenericStorageQuery<
|
|
1354
|
+
signalMessages: GenericStorageQuery<
|
|
1355
|
+
Rv,
|
|
1356
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => Bytes,
|
|
1357
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
1358
|
+
>;
|
|
1165
1359
|
|
|
1166
1360
|
/**
|
|
1167
1361
|
* The configuration which controls the dynamics of the outbound queue.
|
|
1168
1362
|
*
|
|
1169
1363
|
* @param {Callback<CumulusPalletXcmpQueueQueueConfigData> =} callback
|
|
1170
1364
|
**/
|
|
1171
|
-
queueConfig: GenericStorageQuery<() => CumulusPalletXcmpQueueQueueConfigData>;
|
|
1365
|
+
queueConfig: GenericStorageQuery<Rv, () => CumulusPalletXcmpQueueQueueConfigData>;
|
|
1172
1366
|
|
|
1173
1367
|
/**
|
|
1174
1368
|
* The messages that exceeded max individual message weight budget.
|
|
@@ -1177,16 +1371,20 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1177
1371
|
* `service_overweight`.
|
|
1178
1372
|
*
|
|
1179
1373
|
* @param {bigint} arg
|
|
1180
|
-
* @param {Callback<[
|
|
1374
|
+
* @param {Callback<[PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined> =} callback
|
|
1181
1375
|
**/
|
|
1182
|
-
overweight: GenericStorageQuery<
|
|
1376
|
+
overweight: GenericStorageQuery<
|
|
1377
|
+
Rv,
|
|
1378
|
+
(arg: bigint) => [PolkadotParachainPrimitivesPrimitivesId, number, Bytes] | undefined,
|
|
1379
|
+
bigint
|
|
1380
|
+
>;
|
|
1183
1381
|
|
|
1184
1382
|
/**
|
|
1185
1383
|
* Counter for the related counted storage map
|
|
1186
1384
|
*
|
|
1187
1385
|
* @param {Callback<number> =} callback
|
|
1188
1386
|
**/
|
|
1189
|
-
counterForOverweight: GenericStorageQuery<() => number>;
|
|
1387
|
+
counterForOverweight: GenericStorageQuery<Rv, () => number>;
|
|
1190
1388
|
|
|
1191
1389
|
/**
|
|
1192
1390
|
* The number of overweight messages ever recorded in `Overweight`. Also doubles as the next
|
|
@@ -1194,19 +1392,31 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1194
1392
|
*
|
|
1195
1393
|
* @param {Callback<bigint> =} callback
|
|
1196
1394
|
**/
|
|
1197
|
-
overweightCount: GenericStorageQuery<() => bigint>;
|
|
1395
|
+
overweightCount: GenericStorageQuery<Rv, () => bigint>;
|
|
1198
1396
|
|
|
1199
1397
|
/**
|
|
1200
1398
|
* Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
|
|
1201
1399
|
*
|
|
1202
1400
|
* @param {Callback<boolean> =} callback
|
|
1203
1401
|
**/
|
|
1204
|
-
queueSuspended: GenericStorageQuery<() => boolean>;
|
|
1402
|
+
queueSuspended: GenericStorageQuery<Rv, () => boolean>;
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* The factor to multiply the base delivery fee by.
|
|
1406
|
+
*
|
|
1407
|
+
* @param {PolkadotParachainPrimitivesPrimitivesId} arg
|
|
1408
|
+
* @param {Callback<FixedU128> =} callback
|
|
1409
|
+
**/
|
|
1410
|
+
deliveryFeeFactor: GenericStorageQuery<
|
|
1411
|
+
Rv,
|
|
1412
|
+
(arg: PolkadotParachainPrimitivesPrimitivesId) => FixedU128,
|
|
1413
|
+
PolkadotParachainPrimitivesPrimitivesId
|
|
1414
|
+
>;
|
|
1205
1415
|
|
|
1206
1416
|
/**
|
|
1207
1417
|
* Generic pallet storage query
|
|
1208
1418
|
**/
|
|
1209
|
-
[storage: string]: GenericStorageQuery
|
|
1419
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1210
1420
|
};
|
|
1211
1421
|
/**
|
|
1212
1422
|
* Pallet `PolkadotXcm`'s storage queries
|
|
@@ -1217,7 +1427,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1217
1427
|
*
|
|
1218
1428
|
* @param {Callback<bigint> =} callback
|
|
1219
1429
|
**/
|
|
1220
|
-
queryCounter: GenericStorageQuery<() => bigint>;
|
|
1430
|
+
queryCounter: GenericStorageQuery<Rv, () => bigint>;
|
|
1221
1431
|
|
|
1222
1432
|
/**
|
|
1223
1433
|
* The ongoing queries.
|
|
@@ -1225,7 +1435,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1225
1435
|
* @param {bigint} arg
|
|
1226
1436
|
* @param {Callback<PalletXcmQueryStatus | undefined> =} callback
|
|
1227
1437
|
**/
|
|
1228
|
-
queries: GenericStorageQuery<(arg: bigint) => PalletXcmQueryStatus | undefined>;
|
|
1438
|
+
queries: GenericStorageQuery<Rv, (arg: bigint) => PalletXcmQueryStatus | undefined, bigint>;
|
|
1229
1439
|
|
|
1230
1440
|
/**
|
|
1231
1441
|
* The existing asset traps.
|
|
@@ -1236,7 +1446,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1236
1446
|
* @param {H256} arg
|
|
1237
1447
|
* @param {Callback<number> =} callback
|
|
1238
1448
|
**/
|
|
1239
|
-
assetTraps: GenericStorageQuery<(arg: H256) => number>;
|
|
1449
|
+
assetTraps: GenericStorageQuery<Rv, (arg: H256) => number, H256>;
|
|
1240
1450
|
|
|
1241
1451
|
/**
|
|
1242
1452
|
* Default version to encode XCM when latest version of destination is unknown. If `None`,
|
|
@@ -1244,7 +1454,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1244
1454
|
*
|
|
1245
1455
|
* @param {Callback<number | undefined> =} callback
|
|
1246
1456
|
**/
|
|
1247
|
-
safeXcmVersion: GenericStorageQuery<() => number | undefined>;
|
|
1457
|
+
safeXcmVersion: GenericStorageQuery<Rv, () => number | undefined>;
|
|
1248
1458
|
|
|
1249
1459
|
/**
|
|
1250
1460
|
* The Latest versions that we know various locations support.
|
|
@@ -1252,7 +1462,11 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1252
1462
|
* @param {[number, XcmVersionedMultiLocation]} arg
|
|
1253
1463
|
* @param {Callback<number | undefined> =} callback
|
|
1254
1464
|
**/
|
|
1255
|
-
supportedVersion: GenericStorageQuery<
|
|
1465
|
+
supportedVersion: GenericStorageQuery<
|
|
1466
|
+
Rv,
|
|
1467
|
+
(arg: [number, XcmVersionedMultiLocation]) => number | undefined,
|
|
1468
|
+
[number, XcmVersionedMultiLocation]
|
|
1469
|
+
>;
|
|
1256
1470
|
|
|
1257
1471
|
/**
|
|
1258
1472
|
* All locations that we have requested version notifications from.
|
|
@@ -1260,7 +1474,11 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1260
1474
|
* @param {[number, XcmVersionedMultiLocation]} arg
|
|
1261
1475
|
* @param {Callback<bigint | undefined> =} callback
|
|
1262
1476
|
**/
|
|
1263
|
-
versionNotifiers: GenericStorageQuery<
|
|
1477
|
+
versionNotifiers: GenericStorageQuery<
|
|
1478
|
+
Rv,
|
|
1479
|
+
(arg: [number, XcmVersionedMultiLocation]) => bigint | undefined,
|
|
1480
|
+
[number, XcmVersionedMultiLocation]
|
|
1481
|
+
>;
|
|
1264
1482
|
|
|
1265
1483
|
/**
|
|
1266
1484
|
* The target locations that are subscribed to our version changes, as well as the most recent
|
|
@@ -1270,7 +1488,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1270
1488
|
* @param {Callback<[bigint, SpWeightsWeightV2Weight, number] | undefined> =} callback
|
|
1271
1489
|
**/
|
|
1272
1490
|
versionNotifyTargets: GenericStorageQuery<
|
|
1273
|
-
|
|
1491
|
+
Rv,
|
|
1492
|
+
(arg: [number, XcmVersionedMultiLocation]) => [bigint, SpWeightsWeightV2Weight, number] | undefined,
|
|
1493
|
+
[number, XcmVersionedMultiLocation]
|
|
1274
1494
|
>;
|
|
1275
1495
|
|
|
1276
1496
|
/**
|
|
@@ -1280,14 +1500,14 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1280
1500
|
*
|
|
1281
1501
|
* @param {Callback<Array<[XcmVersionedMultiLocation, number]>> =} callback
|
|
1282
1502
|
**/
|
|
1283
|
-
versionDiscoveryQueue: GenericStorageQuery<() => Array<[XcmVersionedMultiLocation, number]>>;
|
|
1503
|
+
versionDiscoveryQueue: GenericStorageQuery<Rv, () => Array<[XcmVersionedMultiLocation, number]>>;
|
|
1284
1504
|
|
|
1285
1505
|
/**
|
|
1286
1506
|
* The current migration's stage, if any.
|
|
1287
1507
|
*
|
|
1288
1508
|
* @param {Callback<PalletXcmVersionMigrationStage | undefined> =} callback
|
|
1289
1509
|
**/
|
|
1290
|
-
currentMigration: GenericStorageQuery<() => PalletXcmVersionMigrationStage | undefined>;
|
|
1510
|
+
currentMigration: GenericStorageQuery<Rv, () => PalletXcmVersionMigrationStage | undefined>;
|
|
1291
1511
|
|
|
1292
1512
|
/**
|
|
1293
1513
|
* Fungible assets which we know are locked on a remote chain.
|
|
@@ -1296,7 +1516,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1296
1516
|
* @param {Callback<PalletXcmRemoteLockedFungibleRecord | undefined> =} callback
|
|
1297
1517
|
**/
|
|
1298
1518
|
remoteLockedFungibles: GenericStorageQuery<
|
|
1299
|
-
|
|
1519
|
+
Rv,
|
|
1520
|
+
(arg: [number, AccountId32Like, XcmVersionedAssetId]) => PalletXcmRemoteLockedFungibleRecord | undefined,
|
|
1521
|
+
[number, AccountId32, XcmVersionedAssetId]
|
|
1300
1522
|
>;
|
|
1301
1523
|
|
|
1302
1524
|
/**
|
|
@@ -1306,7 +1528,9 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1306
1528
|
* @param {Callback<Array<[bigint, XcmVersionedMultiLocation]> | undefined> =} callback
|
|
1307
1529
|
**/
|
|
1308
1530
|
lockedFungibles: GenericStorageQuery<
|
|
1309
|
-
|
|
1531
|
+
Rv,
|
|
1532
|
+
(arg: AccountId32Like) => Array<[bigint, XcmVersionedMultiLocation]> | undefined,
|
|
1533
|
+
AccountId32
|
|
1310
1534
|
>;
|
|
1311
1535
|
|
|
1312
1536
|
/**
|
|
@@ -1314,12 +1538,12 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1314
1538
|
*
|
|
1315
1539
|
* @param {Callback<boolean> =} callback
|
|
1316
1540
|
**/
|
|
1317
|
-
xcmExecutionSuspended: GenericStorageQuery<() => boolean>;
|
|
1541
|
+
xcmExecutionSuspended: GenericStorageQuery<Rv, () => boolean>;
|
|
1318
1542
|
|
|
1319
1543
|
/**
|
|
1320
1544
|
* Generic pallet storage query
|
|
1321
1545
|
**/
|
|
1322
|
-
[storage: string]: GenericStorageQuery
|
|
1546
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1323
1547
|
};
|
|
1324
1548
|
/**
|
|
1325
1549
|
* Pallet `DmpQueue`'s storage queries
|
|
@@ -1330,14 +1554,14 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1330
1554
|
*
|
|
1331
1555
|
* @param {Callback<CumulusPalletDmpQueueConfigData> =} callback
|
|
1332
1556
|
**/
|
|
1333
|
-
configuration: GenericStorageQuery<() => CumulusPalletDmpQueueConfigData>;
|
|
1557
|
+
configuration: GenericStorageQuery<Rv, () => CumulusPalletDmpQueueConfigData>;
|
|
1334
1558
|
|
|
1335
1559
|
/**
|
|
1336
1560
|
* The page index.
|
|
1337
1561
|
*
|
|
1338
1562
|
* @param {Callback<CumulusPalletDmpQueuePageIndexData> =} callback
|
|
1339
1563
|
**/
|
|
1340
|
-
pageIndex: GenericStorageQuery<() => CumulusPalletDmpQueuePageIndexData>;
|
|
1564
|
+
pageIndex: GenericStorageQuery<Rv, () => CumulusPalletDmpQueuePageIndexData>;
|
|
1341
1565
|
|
|
1342
1566
|
/**
|
|
1343
1567
|
* The queue pages.
|
|
@@ -1345,7 +1569,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1345
1569
|
* @param {number} arg
|
|
1346
1570
|
* @param {Callback<Array<[number, Bytes]>> =} callback
|
|
1347
1571
|
**/
|
|
1348
|
-
pages: GenericStorageQuery<(arg: number) => Array<[number, Bytes]
|
|
1572
|
+
pages: GenericStorageQuery<Rv, (arg: number) => Array<[number, Bytes]>, number>;
|
|
1349
1573
|
|
|
1350
1574
|
/**
|
|
1351
1575
|
* The overweight messages.
|
|
@@ -1353,19 +1577,19 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1353
1577
|
* @param {bigint} arg
|
|
1354
1578
|
* @param {Callback<[number, Bytes] | undefined> =} callback
|
|
1355
1579
|
**/
|
|
1356
|
-
overweight: GenericStorageQuery<(arg: bigint) => [number, Bytes] | undefined>;
|
|
1580
|
+
overweight: GenericStorageQuery<Rv, (arg: bigint) => [number, Bytes] | undefined, bigint>;
|
|
1357
1581
|
|
|
1358
1582
|
/**
|
|
1359
1583
|
* Counter for the related counted storage map
|
|
1360
1584
|
*
|
|
1361
1585
|
* @param {Callback<number> =} callback
|
|
1362
1586
|
**/
|
|
1363
|
-
counterForOverweight: GenericStorageQuery<() => number>;
|
|
1587
|
+
counterForOverweight: GenericStorageQuery<Rv, () => number>;
|
|
1364
1588
|
|
|
1365
1589
|
/**
|
|
1366
1590
|
* Generic pallet storage query
|
|
1367
1591
|
**/
|
|
1368
|
-
[storage: string]: GenericStorageQuery
|
|
1592
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1369
1593
|
};
|
|
1370
1594
|
/**
|
|
1371
1595
|
* Pallet `XcAssetConfig`'s storage queries
|
|
@@ -1379,7 +1603,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1379
1603
|
* @param {bigint} arg
|
|
1380
1604
|
* @param {Callback<XcmVersionedMultiLocation | undefined> =} callback
|
|
1381
1605
|
**/
|
|
1382
|
-
assetIdToLocation: GenericStorageQuery<(arg: bigint) => XcmVersionedMultiLocation | undefined>;
|
|
1606
|
+
assetIdToLocation: GenericStorageQuery<Rv, (arg: bigint) => XcmVersionedMultiLocation | undefined, bigint>;
|
|
1383
1607
|
|
|
1384
1608
|
/**
|
|
1385
1609
|
* Mapping from an asset type to an asset id.
|
|
@@ -1389,7 +1613,11 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1389
1613
|
* @param {XcmVersionedMultiLocation} arg
|
|
1390
1614
|
* @param {Callback<bigint | undefined> =} callback
|
|
1391
1615
|
**/
|
|
1392
|
-
assetLocationToId: GenericStorageQuery<
|
|
1616
|
+
assetLocationToId: GenericStorageQuery<
|
|
1617
|
+
Rv,
|
|
1618
|
+
(arg: XcmVersionedMultiLocation) => bigint | undefined,
|
|
1619
|
+
XcmVersionedMultiLocation
|
|
1620
|
+
>;
|
|
1393
1621
|
|
|
1394
1622
|
/**
|
|
1395
1623
|
* Stores the units per second for local execution for a AssetLocation.
|
|
@@ -1400,42 +1628,53 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1400
1628
|
* @param {XcmVersionedMultiLocation} arg
|
|
1401
1629
|
* @param {Callback<bigint | undefined> =} callback
|
|
1402
1630
|
**/
|
|
1403
|
-
assetLocationUnitsPerSecond: GenericStorageQuery<
|
|
1631
|
+
assetLocationUnitsPerSecond: GenericStorageQuery<
|
|
1632
|
+
Rv,
|
|
1633
|
+
(arg: XcmVersionedMultiLocation) => bigint | undefined,
|
|
1634
|
+
XcmVersionedMultiLocation
|
|
1635
|
+
>;
|
|
1404
1636
|
|
|
1405
1637
|
/**
|
|
1406
1638
|
* Generic pallet storage query
|
|
1407
1639
|
**/
|
|
1408
|
-
[storage: string]: GenericStorageQuery
|
|
1640
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1409
1641
|
};
|
|
1410
1642
|
/**
|
|
1411
1643
|
* Pallet `EVM`'s storage queries
|
|
1412
1644
|
**/
|
|
1413
|
-
|
|
1645
|
+
evm: {
|
|
1414
1646
|
/**
|
|
1415
1647
|
*
|
|
1416
1648
|
* @param {H160} arg
|
|
1417
1649
|
* @param {Callback<Bytes> =} callback
|
|
1418
1650
|
**/
|
|
1419
|
-
accountCodes: GenericStorageQuery<(arg: H160) => Bytes>;
|
|
1651
|
+
accountCodes: GenericStorageQuery<Rv, (arg: H160) => Bytes, H160>;
|
|
1420
1652
|
|
|
1421
1653
|
/**
|
|
1422
1654
|
*
|
|
1423
1655
|
* @param {H160} arg
|
|
1424
1656
|
* @param {Callback<PalletEvmCodeMetadata | undefined> =} callback
|
|
1425
1657
|
**/
|
|
1426
|
-
accountCodesMetadata: GenericStorageQuery<(arg: H160) => PalletEvmCodeMetadata | undefined>;
|
|
1658
|
+
accountCodesMetadata: GenericStorageQuery<Rv, (arg: H160) => PalletEvmCodeMetadata | undefined, H160>;
|
|
1427
1659
|
|
|
1428
1660
|
/**
|
|
1429
1661
|
*
|
|
1430
1662
|
* @param {[H160, H256]} arg
|
|
1431
1663
|
* @param {Callback<H256> =} callback
|
|
1432
1664
|
**/
|
|
1433
|
-
accountStorages: GenericStorageQuery<(arg: [H160, H256]) => H256>;
|
|
1665
|
+
accountStorages: GenericStorageQuery<Rv, (arg: [H160, H256]) => H256, [H160, H256]>;
|
|
1666
|
+
|
|
1667
|
+
/**
|
|
1668
|
+
*
|
|
1669
|
+
* @param {H160} arg
|
|
1670
|
+
* @param {Callback<[] | undefined> =} callback
|
|
1671
|
+
**/
|
|
1672
|
+
suicided: GenericStorageQuery<Rv, (arg: H160) => [] | undefined, H160>;
|
|
1434
1673
|
|
|
1435
1674
|
/**
|
|
1436
1675
|
* Generic pallet storage query
|
|
1437
1676
|
**/
|
|
1438
|
-
[storage: string]: GenericStorageQuery
|
|
1677
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1439
1678
|
};
|
|
1440
1679
|
/**
|
|
1441
1680
|
* Pallet `Ethereum`'s storage queries
|
|
@@ -1447,6 +1686,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1447
1686
|
* @param {Callback<Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>> =} callback
|
|
1448
1687
|
**/
|
|
1449
1688
|
pending: GenericStorageQuery<
|
|
1689
|
+
Rv,
|
|
1450
1690
|
() => Array<[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]>
|
|
1451
1691
|
>;
|
|
1452
1692
|
|
|
@@ -1455,33 +1695,33 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1455
1695
|
*
|
|
1456
1696
|
* @param {Callback<EthereumBlock | undefined> =} callback
|
|
1457
1697
|
**/
|
|
1458
|
-
currentBlock: GenericStorageQuery<() => EthereumBlock | undefined>;
|
|
1698
|
+
currentBlock: GenericStorageQuery<Rv, () => EthereumBlock | undefined>;
|
|
1459
1699
|
|
|
1460
1700
|
/**
|
|
1461
1701
|
* The current Ethereum receipts.
|
|
1462
1702
|
*
|
|
1463
1703
|
* @param {Callback<Array<EthereumReceiptReceiptV3> | undefined> =} callback
|
|
1464
1704
|
**/
|
|
1465
|
-
currentReceipts: GenericStorageQuery<() => Array<EthereumReceiptReceiptV3> | undefined>;
|
|
1705
|
+
currentReceipts: GenericStorageQuery<Rv, () => Array<EthereumReceiptReceiptV3> | undefined>;
|
|
1466
1706
|
|
|
1467
1707
|
/**
|
|
1468
1708
|
* The current transaction statuses.
|
|
1469
1709
|
*
|
|
1470
1710
|
* @param {Callback<Array<FpRpcTransactionStatus> | undefined> =} callback
|
|
1471
1711
|
**/
|
|
1472
|
-
currentTransactionStatuses: GenericStorageQuery<() => Array<FpRpcTransactionStatus> | undefined>;
|
|
1712
|
+
currentTransactionStatuses: GenericStorageQuery<Rv, () => Array<FpRpcTransactionStatus> | undefined>;
|
|
1473
1713
|
|
|
1474
1714
|
/**
|
|
1475
1715
|
*
|
|
1476
1716
|
* @param {U256} arg
|
|
1477
1717
|
* @param {Callback<H256> =} callback
|
|
1478
1718
|
**/
|
|
1479
|
-
blockHash: GenericStorageQuery<(arg: U256) => H256>;
|
|
1719
|
+
blockHash: GenericStorageQuery<Rv, (arg: U256) => H256, U256>;
|
|
1480
1720
|
|
|
1481
1721
|
/**
|
|
1482
1722
|
* Generic pallet storage query
|
|
1483
1723
|
**/
|
|
1484
|
-
[storage: string]: GenericStorageQuery
|
|
1724
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1485
1725
|
};
|
|
1486
1726
|
/**
|
|
1487
1727
|
* Pallet `DynamicEvmBaseFee`'s storage queries
|
|
@@ -1491,40 +1731,32 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1491
1731
|
*
|
|
1492
1732
|
* @param {Callback<U256> =} callback
|
|
1493
1733
|
**/
|
|
1494
|
-
baseFeePerGas: GenericStorageQuery<() => U256>;
|
|
1734
|
+
baseFeePerGas: GenericStorageQuery<Rv, () => U256>;
|
|
1495
1735
|
|
|
1496
1736
|
/**
|
|
1497
1737
|
* Generic pallet storage query
|
|
1498
1738
|
**/
|
|
1499
|
-
[storage: string]: GenericStorageQuery
|
|
1739
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1500
1740
|
};
|
|
1501
1741
|
/**
|
|
1502
1742
|
* Pallet `Contracts`'s storage queries
|
|
1503
1743
|
**/
|
|
1504
1744
|
contracts: {
|
|
1505
1745
|
/**
|
|
1506
|
-
* A mapping from
|
|
1746
|
+
* A mapping from a contract's code hash to its code.
|
|
1507
1747
|
*
|
|
1508
1748
|
* @param {H256} arg
|
|
1509
1749
|
* @param {Callback<Bytes | undefined> =} callback
|
|
1510
1750
|
**/
|
|
1511
|
-
pristineCode: GenericStorageQuery<(arg: H256) => Bytes | undefined>;
|
|
1751
|
+
pristineCode: GenericStorageQuery<Rv, (arg: H256) => Bytes | undefined, H256>;
|
|
1512
1752
|
|
|
1513
1753
|
/**
|
|
1514
|
-
* A mapping
|
|
1754
|
+
* A mapping from a contract's code hash to its code info.
|
|
1515
1755
|
*
|
|
1516
1756
|
* @param {H256} arg
|
|
1517
|
-
* @param {Callback<
|
|
1757
|
+
* @param {Callback<PalletContractsWasmCodeInfo | undefined> =} callback
|
|
1518
1758
|
**/
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
/**
|
|
1522
|
-
* A mapping between an original code hash and its owner information.
|
|
1523
|
-
*
|
|
1524
|
-
* @param {H256} arg
|
|
1525
|
-
* @param {Callback<PalletContractsWasmOwnerInfo | undefined> =} callback
|
|
1526
|
-
**/
|
|
1527
|
-
ownerInfoOf: GenericStorageQuery<(arg: H256) => PalletContractsWasmOwnerInfo | undefined>;
|
|
1759
|
+
codeInfoOf: GenericStorageQuery<Rv, (arg: H256) => PalletContractsWasmCodeInfo | undefined, H256>;
|
|
1528
1760
|
|
|
1529
1761
|
/**
|
|
1530
1762
|
* This is a **monotonic** counter incremented on contract instantiation.
|
|
@@ -1552,7 +1784,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1552
1784
|
*
|
|
1553
1785
|
* @param {Callback<bigint> =} callback
|
|
1554
1786
|
**/
|
|
1555
|
-
nonce: GenericStorageQuery<() => bigint>;
|
|
1787
|
+
nonce: GenericStorageQuery<Rv, () => bigint>;
|
|
1556
1788
|
|
|
1557
1789
|
/**
|
|
1558
1790
|
* The code associated with a given account.
|
|
@@ -1562,7 +1794,11 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1562
1794
|
* @param {AccountId32Like} arg
|
|
1563
1795
|
* @param {Callback<PalletContractsStorageContractInfo | undefined> =} callback
|
|
1564
1796
|
**/
|
|
1565
|
-
contractInfoOf: GenericStorageQuery<
|
|
1797
|
+
contractInfoOf: GenericStorageQuery<
|
|
1798
|
+
Rv,
|
|
1799
|
+
(arg: AccountId32Like) => PalletContractsStorageContractInfo | undefined,
|
|
1800
|
+
AccountId32
|
|
1801
|
+
>;
|
|
1566
1802
|
|
|
1567
1803
|
/**
|
|
1568
1804
|
* Evicted contracts that await child trie deletion.
|
|
@@ -1573,7 +1809,7 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1573
1809
|
* @param {number} arg
|
|
1574
1810
|
* @param {Callback<Bytes | undefined> =} callback
|
|
1575
1811
|
**/
|
|
1576
|
-
deletionQueue: GenericStorageQuery<(arg: number) => Bytes | undefined>;
|
|
1812
|
+
deletionQueue: GenericStorageQuery<Rv, (arg: number) => Bytes | undefined, number>;
|
|
1577
1813
|
|
|
1578
1814
|
/**
|
|
1579
1815
|
* A pair of monotonic counters used to track the latest contract marked for deletion
|
|
@@ -1581,18 +1817,20 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1581
1817
|
*
|
|
1582
1818
|
* @param {Callback<PalletContractsStorageDeletionQueueManager> =} callback
|
|
1583
1819
|
**/
|
|
1584
|
-
deletionQueueCounter: GenericStorageQuery<() => PalletContractsStorageDeletionQueueManager>;
|
|
1820
|
+
deletionQueueCounter: GenericStorageQuery<Rv, () => PalletContractsStorageDeletionQueueManager>;
|
|
1585
1821
|
|
|
1586
1822
|
/**
|
|
1823
|
+
* A migration can span across multiple blocks. This storage defines a cursor to track the
|
|
1824
|
+
* progress of the migration, enabling us to resume from the last completed position.
|
|
1587
1825
|
*
|
|
1588
1826
|
* @param {Callback<Bytes | undefined> =} callback
|
|
1589
1827
|
**/
|
|
1590
|
-
migrationInProgress: GenericStorageQuery<() => Bytes | undefined>;
|
|
1828
|
+
migrationInProgress: GenericStorageQuery<Rv, () => Bytes | undefined>;
|
|
1591
1829
|
|
|
1592
1830
|
/**
|
|
1593
1831
|
* Generic pallet storage query
|
|
1594
1832
|
**/
|
|
1595
|
-
[storage: string]: GenericStorageQuery
|
|
1833
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1596
1834
|
};
|
|
1597
1835
|
/**
|
|
1598
1836
|
* Pallet `Sudo`'s storage queries
|
|
@@ -1603,157 +1841,11 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1603
1841
|
*
|
|
1604
1842
|
* @param {Callback<AccountId32 | undefined> =} callback
|
|
1605
1843
|
**/
|
|
1606
|
-
key: GenericStorageQuery<() => AccountId32 | undefined>;
|
|
1607
|
-
|
|
1608
|
-
/**
|
|
1609
|
-
* Generic pallet storage query
|
|
1610
|
-
**/
|
|
1611
|
-
[storage: string]: GenericStorageQuery;
|
|
1612
|
-
};
|
|
1613
|
-
/**
|
|
1614
|
-
* Pallet `StaticPriceProvider`'s storage queries
|
|
1615
|
-
**/
|
|
1616
|
-
staticPriceProvider: {
|
|
1617
|
-
/**
|
|
1618
|
-
* Current active native currency price.
|
|
1619
|
-
*
|
|
1620
|
-
* @param {Callback<FixedU64> =} callback
|
|
1621
|
-
**/
|
|
1622
|
-
activePrice: GenericStorageQuery<() => FixedU64>;
|
|
1623
|
-
|
|
1624
|
-
/**
|
|
1625
|
-
* Generic pallet storage query
|
|
1626
|
-
**/
|
|
1627
|
-
[storage: string]: GenericStorageQuery;
|
|
1628
|
-
};
|
|
1629
|
-
/**
|
|
1630
|
-
* Pallet `DappStakingMigration`'s storage queries
|
|
1631
|
-
**/
|
|
1632
|
-
dappStakingMigration: {
|
|
1633
|
-
/**
|
|
1634
|
-
* Used to store the current migration state.
|
|
1635
|
-
*
|
|
1636
|
-
* @param {Callback<PalletDappStakingMigrationMigrationState> =} callback
|
|
1637
|
-
**/
|
|
1638
|
-
migrationStateStorage: GenericStorageQuery<() => PalletDappStakingMigrationMigrationState>;
|
|
1639
|
-
|
|
1640
|
-
/**
|
|
1641
|
-
* Generic pallet storage query
|
|
1642
|
-
**/
|
|
1643
|
-
[storage: string]: GenericStorageQuery;
|
|
1644
|
-
};
|
|
1645
|
-
/**
|
|
1646
|
-
* Pallet `DappsStaking`'s storage queries
|
|
1647
|
-
**/
|
|
1648
|
-
dappsStaking: {
|
|
1649
|
-
/**
|
|
1650
|
-
* Denotes whether pallet is disabled (in maintenance mode) or not
|
|
1651
|
-
*
|
|
1652
|
-
* @param {Callback<boolean> =} callback
|
|
1653
|
-
**/
|
|
1654
|
-
palletDisabled: GenericStorageQuery<() => boolean>;
|
|
1655
|
-
|
|
1656
|
-
/**
|
|
1657
|
-
* Denotes whether pallet decommissioning has started or not.
|
|
1658
|
-
*
|
|
1659
|
-
* @param {Callback<boolean> =} callback
|
|
1660
|
-
**/
|
|
1661
|
-
decommissionStarted: GenericStorageQuery<() => boolean>;
|
|
1662
|
-
|
|
1663
|
-
/**
|
|
1664
|
-
* General information about the staker (non-smart-contract specific).
|
|
1665
|
-
*
|
|
1666
|
-
* @param {AccountId32Like} arg
|
|
1667
|
-
* @param {Callback<PalletDappsStakingAccountLedger> =} callback
|
|
1668
|
-
**/
|
|
1669
|
-
ledger: GenericStorageQuery<(arg: AccountId32Like) => PalletDappsStakingAccountLedger>;
|
|
1670
|
-
|
|
1671
|
-
/**
|
|
1672
|
-
* The current era index.
|
|
1673
|
-
*
|
|
1674
|
-
* @param {Callback<number> =} callback
|
|
1675
|
-
**/
|
|
1676
|
-
currentEra: GenericStorageQuery<() => number>;
|
|
1677
|
-
|
|
1678
|
-
/**
|
|
1679
|
-
* Accumulator for block rewards during an era. It is reset at every new era
|
|
1680
|
-
*
|
|
1681
|
-
* @param {Callback<PalletDappsStakingRewardInfo> =} callback
|
|
1682
|
-
**/
|
|
1683
|
-
blockRewardAccumulator: GenericStorageQuery<() => PalletDappsStakingRewardInfo>;
|
|
1684
|
-
|
|
1685
|
-
/**
|
|
1686
|
-
* Mode of era forcing.
|
|
1687
|
-
*
|
|
1688
|
-
* @param {Callback<PalletDappsStakingForcing> =} callback
|
|
1689
|
-
**/
|
|
1690
|
-
forceEra: GenericStorageQuery<() => PalletDappsStakingForcing>;
|
|
1691
|
-
|
|
1692
|
-
/**
|
|
1693
|
-
* Stores the block number of when the next era starts
|
|
1694
|
-
*
|
|
1695
|
-
* @param {Callback<number> =} callback
|
|
1696
|
-
**/
|
|
1697
|
-
nextEraStartingBlock: GenericStorageQuery<() => number>;
|
|
1698
|
-
|
|
1699
|
-
/**
|
|
1700
|
-
* Simple map where developer account points to their smart contract
|
|
1701
|
-
*
|
|
1702
|
-
* @param {AccountId32Like} arg
|
|
1703
|
-
* @param {Callback<AstarPrimitivesDappStakingSmartContract | undefined> =} callback
|
|
1704
|
-
**/
|
|
1705
|
-
registeredDevelopers: GenericStorageQuery<
|
|
1706
|
-
(arg: AccountId32Like) => AstarPrimitivesDappStakingSmartContract | undefined
|
|
1707
|
-
>;
|
|
1708
|
-
|
|
1709
|
-
/**
|
|
1710
|
-
* Simple map where smart contract points to basic info about it (e.g. developer address, state)
|
|
1711
|
-
*
|
|
1712
|
-
* @param {AstarPrimitivesDappStakingSmartContract} arg
|
|
1713
|
-
* @param {Callback<PalletDappsStakingDAppInfo | undefined> =} callback
|
|
1714
|
-
**/
|
|
1715
|
-
registeredDapps: GenericStorageQuery<
|
|
1716
|
-
(arg: AstarPrimitivesDappStakingSmartContract) => PalletDappsStakingDAppInfo | undefined
|
|
1717
|
-
>;
|
|
1718
|
-
|
|
1719
|
-
/**
|
|
1720
|
-
* General information about an era like TVL, total staked value, rewards.
|
|
1721
|
-
*
|
|
1722
|
-
* @param {number} arg
|
|
1723
|
-
* @param {Callback<PalletDappsStakingEraInfo | undefined> =} callback
|
|
1724
|
-
**/
|
|
1725
|
-
generalEraInfo: GenericStorageQuery<(arg: number) => PalletDappsStakingEraInfo | undefined>;
|
|
1726
|
-
|
|
1727
|
-
/**
|
|
1728
|
-
* Staking information about contract in a particular era.
|
|
1729
|
-
*
|
|
1730
|
-
* @param {[AstarPrimitivesDappStakingSmartContract, number]} arg
|
|
1731
|
-
* @param {Callback<PalletDappsStakingContractStakeInfo | undefined> =} callback
|
|
1732
|
-
**/
|
|
1733
|
-
contractEraStake: GenericStorageQuery<
|
|
1734
|
-
(arg: [AstarPrimitivesDappStakingSmartContract, number]) => PalletDappsStakingContractStakeInfo | undefined
|
|
1735
|
-
>;
|
|
1736
|
-
|
|
1737
|
-
/**
|
|
1738
|
-
* Info about stakers stakes on particular contracts.
|
|
1739
|
-
*
|
|
1740
|
-
* @param {[AccountId32Like, AstarPrimitivesDappStakingSmartContract]} arg
|
|
1741
|
-
* @param {Callback<PalletDappsStakingStakerInfo> =} callback
|
|
1742
|
-
**/
|
|
1743
|
-
generalStakerInfo: GenericStorageQuery<
|
|
1744
|
-
(arg: [AccountId32Like, AstarPrimitivesDappStakingSmartContract]) => PalletDappsStakingStakerInfo
|
|
1745
|
-
>;
|
|
1746
|
-
|
|
1747
|
-
/**
|
|
1748
|
-
* Stores the current pallet storage version.
|
|
1749
|
-
*
|
|
1750
|
-
* @param {Callback<PalletDappsStakingVersion> =} callback
|
|
1751
|
-
**/
|
|
1752
|
-
storageVersion: GenericStorageQuery<() => PalletDappsStakingVersion>;
|
|
1844
|
+
key: GenericStorageQuery<Rv, () => AccountId32 | undefined>;
|
|
1753
1845
|
|
|
1754
1846
|
/**
|
|
1755
1847
|
* Generic pallet storage query
|
|
1756
1848
|
**/
|
|
1757
|
-
[storage: string]: GenericStorageQuery
|
|
1849
|
+
[storage: string]: GenericStorageQuery<Rv>;
|
|
1758
1850
|
};
|
|
1759
1851
|
}
|