@storagehub/api-augment 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 +54 -0
- package/biome.json +10 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/augment-api-consts.js +6 -0
- package/dist/interfaces/augment-api-consts.js.map +1 -0
- package/dist/interfaces/augment-api-errors.js +6 -0
- package/dist/interfaces/augment-api-errors.js.map +1 -0
- package/dist/interfaces/augment-api-events.js +6 -0
- package/dist/interfaces/augment-api-events.js.map +1 -0
- package/dist/interfaces/augment-api-query.js +6 -0
- package/dist/interfaces/augment-api-query.js.map +1 -0
- package/dist/interfaces/augment-api-rpc.js +6 -0
- package/dist/interfaces/augment-api-rpc.js.map +1 -0
- package/dist/interfaces/augment-api-runtime.js +6 -0
- package/dist/interfaces/augment-api-runtime.js.map +1 -0
- package/dist/interfaces/augment-api-tx.js +6 -0
- package/dist/interfaces/augment-api-tx.js.map +1 -0
- package/dist/interfaces/augment-api.js +10 -0
- package/dist/interfaces/augment-api.js.map +1 -0
- package/dist/interfaces/augment-types.js +6 -0
- package/dist/interfaces/augment-types.js.map +1 -0
- package/dist/interfaces/definitions.js +2 -0
- package/dist/interfaces/definitions.js.map +1 -0
- package/dist/interfaces/index.js +4 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/interfaces/lookup.js +4504 -0
- package/dist/interfaces/lookup.js.map +1 -0
- package/dist/interfaces/registry.js +6 -0
- package/dist/interfaces/registry.js.map +1 -0
- package/dist/interfaces/storagehubclient/definitions.js +7 -0
- package/dist/interfaces/storagehubclient/definitions.js.map +1 -0
- package/dist/interfaces/storagehubclient/index.js +4 -0
- package/dist/interfaces/storagehubclient/index.js.map +1 -0
- package/dist/interfaces/storagehubclient/runtime.js +152 -0
- package/dist/interfaces/storagehubclient/runtime.js.map +1 -0
- package/dist/interfaces/storagehubclient/types.js +4 -0
- package/dist/interfaces/storagehubclient/types.js.map +1 -0
- package/dist/interfaces/types-lookup.js +6 -0
- package/dist/interfaces/types-lookup.js.map +1 -0
- package/dist/interfaces/types.js +4 -0
- package/dist/interfaces/types.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/interfaces/augment-api-consts.d.ts +556 -0
- package/dist/types/interfaces/augment-api-errors.d.ts +1195 -0
- package/dist/types/interfaces/augment-api-events.d.ts +2070 -0
- package/dist/types/interfaces/augment-api-query.d.ts +1439 -0
- package/dist/types/interfaces/augment-api-rpc.d.ts +718 -0
- package/dist/types/interfaces/augment-api-runtime.d.ts +441 -0
- package/dist/types/interfaces/augment-api-tx.d.ts +3039 -0
- package/dist/types/interfaces/augment-api.d.ts +7 -0
- package/dist/types/interfaces/augment-types.d.ts +1285 -0
- package/dist/types/interfaces/definitions.d.ts +1 -0
- package/dist/types/interfaces/index.d.ts +1 -0
- package/dist/types/interfaces/lookup.d.ts +4179 -0
- package/dist/types/interfaces/registry.d.ts +272 -0
- package/dist/types/interfaces/storagehubclient/definitions.d.ts +6 -0
- package/dist/types/interfaces/storagehubclient/index.d.ts +1 -0
- package/dist/types/interfaces/storagehubclient/runtime.d.ts +2 -0
- package/dist/types/interfaces/storagehubclient/types.d.ts +198 -0
- package/dist/types/interfaces/types-lookup.d.ts +4457 -0
- package/dist/types/interfaces/types.d.ts +1 -0
- package/package.json +38 -0
- package/scripts/scrapeMetadata.ts +77 -0
- package/src/index.ts +3 -0
- package/src/interfaces/augment-api-consts.ts +570 -0
- package/src/interfaces/augment-api-errors.ts +1203 -0
- package/src/interfaces/augment-api-events.ts +1836 -0
- package/src/interfaces/augment-api-query.ts +1975 -0
- package/src/interfaces/augment-api-rpc.ts +1201 -0
- package/src/interfaces/augment-api-runtime.ts +707 -0
- package/src/interfaces/augment-api-tx.ts +3418 -0
- package/src/interfaces/augment-api.ts +10 -0
- package/src/interfaces/augment-types.ts +2508 -0
- package/src/interfaces/definitions.ts +1 -0
- package/src/interfaces/index.ts +4 -0
- package/src/interfaces/lookup.ts +4511 -0
- package/src/interfaces/registry.ts +546 -0
- package/src/interfaces/storagehubclient/definitions.ts +7 -0
- package/src/interfaces/storagehubclient/index.ts +4 -0
- package/src/interfaces/storagehubclient/runtime.ts +156 -0
- package/src/interfaces/storagehubclient/types.ts +241 -0
- package/src/interfaces/types-lookup.ts +5623 -0
- package/src/interfaces/types.ts +4 -0
- package/storagehub.json +1 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,1439 @@
|
|
|
1
|
+
import "@polkadot/api-base/types/storage";
|
|
2
|
+
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from "@polkadot/api-base/types";
|
|
3
|
+
import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, Vec, bool, u128, u16, u32, u64, u8 } from "@polkadot/types-codec";
|
|
4
|
+
import type { AnyNumber, ITuple } from "@polkadot/types-codec/types";
|
|
5
|
+
import type { AccountId32, H256 } from "@polkadot/types/interfaces/runtime";
|
|
6
|
+
import type { CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot, CumulusPalletParachainSystemUnincludedSegmentAncestor, CumulusPalletParachainSystemUnincludedSegmentSegmentTracker, CumulusPalletXcmpQueueOutboundChannelDetails, CumulusPalletXcmpQueueQueueConfigData, CumulusPrimitivesCoreAggregateMessageOrigin, FrameSupportDispatchPerDispatchClassWeight, FrameSupportTokensMiscIdAmount, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletCollatorSelectionCandidateInfo, PalletFileSystemMoveBucketRequestMetadata, PalletFileSystemStorageRequestBspsMetadata, PalletFileSystemStorageRequestMetadata, PalletMessageQueueBookState, PalletMessageQueuePage, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletPaymentStreamsDynamicRatePaymentStream, PalletPaymentStreamsFixedRatePaymentStream, PalletPaymentStreamsProviderLastChargeableInfo, PalletStorageProvidersBackupStorageProvider, PalletStorageProvidersBucket, PalletStorageProvidersMainStorageProvider, PalletStorageProvidersStorageProvider, PalletTransactionPaymentReleases, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesOutboundHrmpMessage, PolkadotPrimitivesV7AbridgedHostConfiguration, PolkadotPrimitivesV7PersistedValidationData, PolkadotPrimitivesV7UpgradeGoAhead, PolkadotPrimitivesV7UpgradeRestriction, ShpTraitsTrieRemoveMutation, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, SpRuntimeDigest, SpTrieStorageProof, SpWeightsWeightV2Weight, StagingXcmV4Instruction, StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersKey, StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersValue, StorageHubRuntimeRuntimeHoldReason, StorageHubRuntimeSessionKeys, XcmVersionedAssetId, XcmVersionedLocation } from "@polkadot/types/lookup";
|
|
7
|
+
import type { Observable } from "@polkadot/types/types";
|
|
8
|
+
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
9
|
+
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
10
|
+
declare module "@polkadot/api-base/types/storage" {
|
|
11
|
+
interface AugmentedQueries<ApiType extends ApiTypes> {
|
|
12
|
+
aura: {
|
|
13
|
+
/**
|
|
14
|
+
* The current authority set.
|
|
15
|
+
**/
|
|
16
|
+
authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusAuraSr25519AppSr25519Public>>, [
|
|
17
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
18
|
+
/**
|
|
19
|
+
* The current slot of this block.
|
|
20
|
+
*
|
|
21
|
+
* This will be set in `on_initialize`.
|
|
22
|
+
**/
|
|
23
|
+
currentSlot: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
24
|
+
/**
|
|
25
|
+
* Generic query
|
|
26
|
+
**/
|
|
27
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
28
|
+
};
|
|
29
|
+
auraExt: {
|
|
30
|
+
/**
|
|
31
|
+
* Serves as cache for the authorities.
|
|
32
|
+
*
|
|
33
|
+
* The authorities in AuRa are overwritten in `on_initialize` when we switch to a new session,
|
|
34
|
+
* but we require the old authorities to verify the seal when validating a PoV. This will
|
|
35
|
+
* always be updated to the latest AuRa authorities in `on_finalize`.
|
|
36
|
+
**/
|
|
37
|
+
authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusAuraSr25519AppSr25519Public>>, [
|
|
38
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
39
|
+
/**
|
|
40
|
+
* Current slot paired with a number of authored blocks.
|
|
41
|
+
*
|
|
42
|
+
* Updated on each block initialization.
|
|
43
|
+
**/
|
|
44
|
+
slotInfo: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
45
|
+
/**
|
|
46
|
+
* Generic query
|
|
47
|
+
**/
|
|
48
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
49
|
+
};
|
|
50
|
+
authorship: {
|
|
51
|
+
/**
|
|
52
|
+
* Author of current block.
|
|
53
|
+
**/
|
|
54
|
+
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
55
|
+
/**
|
|
56
|
+
* Generic query
|
|
57
|
+
**/
|
|
58
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
59
|
+
};
|
|
60
|
+
balances: {
|
|
61
|
+
/**
|
|
62
|
+
* The Balances pallet example of storing the balance of an account.
|
|
63
|
+
*
|
|
64
|
+
* # Example
|
|
65
|
+
*
|
|
66
|
+
* ```nocompile
|
|
67
|
+
* impl pallet_balances::Config for Runtime {
|
|
68
|
+
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
|
69
|
+
* }
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* You can also store the balance of an account in the `System` pallet.
|
|
73
|
+
*
|
|
74
|
+
* # Example
|
|
75
|
+
*
|
|
76
|
+
* ```nocompile
|
|
77
|
+
* impl pallet_balances::Config for Runtime {
|
|
78
|
+
* type AccountStore = System
|
|
79
|
+
* }
|
|
80
|
+
* ```
|
|
81
|
+
*
|
|
82
|
+
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
|
83
|
+
* `frame_system` data alongside the account data contrary to storing account balances in the
|
|
84
|
+
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
|
85
|
+
* NOTE: This is only used in the case that this pallet is used to store balances.
|
|
86
|
+
**/
|
|
87
|
+
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [
|
|
88
|
+
AccountId32
|
|
89
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
90
|
+
/**
|
|
91
|
+
* Freeze locks on account balances.
|
|
92
|
+
**/
|
|
93
|
+
freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<FrameSupportTokensMiscIdAmount>>, [
|
|
94
|
+
AccountId32
|
|
95
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
96
|
+
/**
|
|
97
|
+
* Holds on account balances.
|
|
98
|
+
**/
|
|
99
|
+
holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
|
|
100
|
+
readonly id: StorageHubRuntimeRuntimeHoldReason;
|
|
101
|
+
readonly amount: u128;
|
|
102
|
+
} & Struct>>, [
|
|
103
|
+
AccountId32
|
|
104
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
105
|
+
/**
|
|
106
|
+
* The total units of outstanding deactivated balance in the system.
|
|
107
|
+
**/
|
|
108
|
+
inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
109
|
+
/**
|
|
110
|
+
* Any liquidity locks on some account balances.
|
|
111
|
+
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
112
|
+
*
|
|
113
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
114
|
+
**/
|
|
115
|
+
locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [
|
|
116
|
+
AccountId32
|
|
117
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
118
|
+
/**
|
|
119
|
+
* Named reserves on some account balances.
|
|
120
|
+
*
|
|
121
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
122
|
+
**/
|
|
123
|
+
reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [
|
|
124
|
+
AccountId32
|
|
125
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
126
|
+
/**
|
|
127
|
+
* The total units issued in the system.
|
|
128
|
+
**/
|
|
129
|
+
totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
130
|
+
/**
|
|
131
|
+
* Generic query
|
|
132
|
+
**/
|
|
133
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
134
|
+
};
|
|
135
|
+
collatorSelection: {
|
|
136
|
+
/**
|
|
137
|
+
* Fixed amount to deposit to become a collator.
|
|
138
|
+
*
|
|
139
|
+
* When a collator calls `leave_intent` they immediately receive the deposit back.
|
|
140
|
+
**/
|
|
141
|
+
candidacyBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
142
|
+
/**
|
|
143
|
+
* The (community, limited) collation candidates. `Candidates` and `Invulnerables` should be
|
|
144
|
+
* mutually exclusive.
|
|
145
|
+
*
|
|
146
|
+
* This list is sorted in ascending order by deposit and when the deposits are equal, the least
|
|
147
|
+
* recently updated is considered greater.
|
|
148
|
+
**/
|
|
149
|
+
candidateList: AugmentedQuery<ApiType, () => Observable<Vec<PalletCollatorSelectionCandidateInfo>>, [
|
|
150
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
151
|
+
/**
|
|
152
|
+
* Desired number of candidates.
|
|
153
|
+
*
|
|
154
|
+
* This should ideally always be less than [`Config::MaxCandidates`] for weights to be correct.
|
|
155
|
+
**/
|
|
156
|
+
desiredCandidates: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
157
|
+
/**
|
|
158
|
+
* The invulnerable, permissioned collators. This list must be sorted.
|
|
159
|
+
**/
|
|
160
|
+
invulnerables: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
161
|
+
/**
|
|
162
|
+
* Last block authored by collator.
|
|
163
|
+
**/
|
|
164
|
+
lastAuthoredBlock: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u32>, [
|
|
165
|
+
AccountId32
|
|
166
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
167
|
+
/**
|
|
168
|
+
* Generic query
|
|
169
|
+
**/
|
|
170
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
171
|
+
};
|
|
172
|
+
fileSystem: {
|
|
173
|
+
/**
|
|
174
|
+
* Bookkeeping of the buckets containing open storage requests.
|
|
175
|
+
**/
|
|
176
|
+
bucketsWithStorageRequests: AugmentedQuery<ApiType, (arg1: H256 | string | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<Null>>, [
|
|
177
|
+
H256,
|
|
178
|
+
H256
|
|
179
|
+
]> & QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
180
|
+
/**
|
|
181
|
+
* BSP data servers for move bucket requests.
|
|
182
|
+
**/
|
|
183
|
+
dataServersForMoveBucket: AugmentedQuery<ApiType, (arg1: H256 | string | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<Null>>, [
|
|
184
|
+
H256,
|
|
185
|
+
H256
|
|
186
|
+
]> & QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
187
|
+
/**
|
|
188
|
+
* A map of blocks to expired file deletion requests.
|
|
189
|
+
**/
|
|
190
|
+
fileDeletionRequestExpirations: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[AccountId32, H256]>>>, [
|
|
191
|
+
u32
|
|
192
|
+
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
193
|
+
/**
|
|
194
|
+
* A map of blocks to expired move bucket requests.
|
|
195
|
+
**/
|
|
196
|
+
moveBucketRequestExpirations: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[H256, H256]>>>, [
|
|
197
|
+
u32
|
|
198
|
+
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
199
|
+
/**
|
|
200
|
+
* A pointer to the earliest available block to insert a new file deletion request expiration.
|
|
201
|
+
*
|
|
202
|
+
* This should always be greater or equal than current block + [`Config::PendingFileDeletionRequestTtl`].
|
|
203
|
+
**/
|
|
204
|
+
nextAvailableFileDeletionRequestExpirationBlock: AugmentedQuery<ApiType, () => Observable<u32>, [
|
|
205
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
206
|
+
/**
|
|
207
|
+
* A pointer to the earliest available block to insert a new move bucket request expiration.
|
|
208
|
+
*
|
|
209
|
+
* This should always be greater or equal than current block + [`Config::MoveBucketRequestTtl`].
|
|
210
|
+
**/
|
|
211
|
+
nextAvailableMoveBucketRequestExpirationBlock: AugmentedQuery<ApiType, () => Observable<u32>, [
|
|
212
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
213
|
+
/**
|
|
214
|
+
* A pointer to the earliest available block to insert a new storage request expiration.
|
|
215
|
+
*
|
|
216
|
+
* This should always be greater or equal than current block + [`Config::StorageRequestTtl`].
|
|
217
|
+
**/
|
|
218
|
+
nextAvailableStorageRequestExpirationBlock: AugmentedQuery<ApiType, () => Observable<u32>, [
|
|
219
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
220
|
+
/**
|
|
221
|
+
* A pointer to the starting block to clean up expired storage requests.
|
|
222
|
+
*
|
|
223
|
+
* If this block is behind the current block number, the cleanup algorithm in `on_idle` will
|
|
224
|
+
* attempt to accelerate this block pointer as close to or up to the current block number. This
|
|
225
|
+
* will execute provided that there is enough remaining weight to do so.
|
|
226
|
+
**/
|
|
227
|
+
nextStartingBlockToCleanUp: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
228
|
+
/**
|
|
229
|
+
* Bookkeeping of buckets that are pending to be moved to a new MSP.
|
|
230
|
+
**/
|
|
231
|
+
pendingBucketsToMove: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Null>, [
|
|
232
|
+
H256
|
|
233
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
234
|
+
/**
|
|
235
|
+
* Pending file deletion requests.
|
|
236
|
+
*
|
|
237
|
+
* A mapping from a user account id to a list of pending file deletion requests, holding a tuple of the file key and bucket id.
|
|
238
|
+
**/
|
|
239
|
+
pendingFileDeletionRequests: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<ITuple<[H256, H256]>>>, [
|
|
240
|
+
AccountId32
|
|
241
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
242
|
+
/**
|
|
243
|
+
* Pending move bucket requests.
|
|
244
|
+
*
|
|
245
|
+
* A double mapping from MSP IDs to a list of bucket IDs which they can accept or decline to take over.
|
|
246
|
+
* The value is the user who requested the move.
|
|
247
|
+
**/
|
|
248
|
+
pendingMoveBucketRequests: AugmentedQuery<ApiType, (arg1: H256 | string | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PalletFileSystemMoveBucketRequestMetadata>>, [
|
|
249
|
+
H256,
|
|
250
|
+
H256
|
|
251
|
+
]> & QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
252
|
+
/**
|
|
253
|
+
* Pending file stop storing requests.
|
|
254
|
+
*
|
|
255
|
+
* A double mapping from BSP IDs to a list of file keys pending stop storing requests to the block in which those requests were opened
|
|
256
|
+
* and the proven size of the file.
|
|
257
|
+
* The block number is used to avoid BSPs being able to stop storing files immediately which would allow them to avoid challenges
|
|
258
|
+
* of missing files. The size is to be able to decrease their used capacity when they confirm to stop storing the file.
|
|
259
|
+
**/
|
|
260
|
+
pendingStopStoringRequests: AugmentedQuery<ApiType, (arg1: H256 | string | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<ITuple<[u32, u64]>>>, [
|
|
261
|
+
H256,
|
|
262
|
+
H256
|
|
263
|
+
]> & QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
264
|
+
/**
|
|
265
|
+
* Number of BSPs required to fulfill a storage request
|
|
266
|
+
*
|
|
267
|
+
* This is also used as a default value if the BSPs required are not specified when creating a storage request.
|
|
268
|
+
**/
|
|
269
|
+
replicationTarget: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
270
|
+
/**
|
|
271
|
+
* A double map from storage request to BSP `AccountId`s that volunteered to store the file.
|
|
272
|
+
*
|
|
273
|
+
* Any BSP under a storage request prefix is considered to be a volunteer and can be removed at any time.
|
|
274
|
+
* Once a BSP submits a valid proof to the via the `bsp_confirm_storing` extrinsic, the `confirmed` field in [`StorageRequestBspsMetadata`] will be set to `true`.
|
|
275
|
+
*
|
|
276
|
+
* When a storage request is expired or removed, the corresponding storage request prefix in this map is removed.
|
|
277
|
+
**/
|
|
278
|
+
storageRequestBsps: AugmentedQuery<ApiType, (arg1: H256 | string | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<PalletFileSystemStorageRequestBspsMetadata>>, [
|
|
279
|
+
H256,
|
|
280
|
+
H256
|
|
281
|
+
]> & QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
282
|
+
/**
|
|
283
|
+
* A map of blocks to expired storage requests.
|
|
284
|
+
**/
|
|
285
|
+
storageRequestExpirations: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<H256>>, [
|
|
286
|
+
u32
|
|
287
|
+
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
288
|
+
storageRequests: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletFileSystemStorageRequestMetadata>>, [
|
|
289
|
+
H256
|
|
290
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
291
|
+
/**
|
|
292
|
+
* Number of ticks until all BSPs would reach the [`Config::MaximumThreshold`] to ensure that all BSPs are able to volunteer.
|
|
293
|
+
**/
|
|
294
|
+
tickRangeToMaximumThreshold: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
295
|
+
/**
|
|
296
|
+
* Generic query
|
|
297
|
+
**/
|
|
298
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
299
|
+
};
|
|
300
|
+
messageQueue: {
|
|
301
|
+
/**
|
|
302
|
+
* The index of the first and last (non-empty) pages.
|
|
303
|
+
**/
|
|
304
|
+
bookStateFor: AugmentedQuery<ApiType, (arg: CumulusPrimitivesCoreAggregateMessageOrigin | {
|
|
305
|
+
Here: any;
|
|
306
|
+
} | {
|
|
307
|
+
Parent: any;
|
|
308
|
+
} | {
|
|
309
|
+
Sibling: any;
|
|
310
|
+
} | string | Uint8Array) => Observable<PalletMessageQueueBookState>, [
|
|
311
|
+
CumulusPrimitivesCoreAggregateMessageOrigin
|
|
312
|
+
]> & QueryableStorageEntry<ApiType, [CumulusPrimitivesCoreAggregateMessageOrigin]>;
|
|
313
|
+
/**
|
|
314
|
+
* The map of page indices to pages.
|
|
315
|
+
**/
|
|
316
|
+
pages: AugmentedQuery<ApiType, (arg1: CumulusPrimitivesCoreAggregateMessageOrigin | {
|
|
317
|
+
Here: any;
|
|
318
|
+
} | {
|
|
319
|
+
Parent: any;
|
|
320
|
+
} | {
|
|
321
|
+
Sibling: any;
|
|
322
|
+
} | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMessageQueuePage>>, [
|
|
323
|
+
CumulusPrimitivesCoreAggregateMessageOrigin,
|
|
324
|
+
u32
|
|
325
|
+
]> & QueryableStorageEntry<ApiType, [CumulusPrimitivesCoreAggregateMessageOrigin, u32]>;
|
|
326
|
+
/**
|
|
327
|
+
* The origin at which we should begin servicing.
|
|
328
|
+
**/
|
|
329
|
+
serviceHead: AugmentedQuery<ApiType, () => Observable<Option<CumulusPrimitivesCoreAggregateMessageOrigin>>, [
|
|
330
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
331
|
+
/**
|
|
332
|
+
* Generic query
|
|
333
|
+
**/
|
|
334
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
335
|
+
};
|
|
336
|
+
nfts: {
|
|
337
|
+
/**
|
|
338
|
+
* The items held by any given account; set out this way so that items owned by a single
|
|
339
|
+
* account can be enumerated.
|
|
340
|
+
**/
|
|
341
|
+
account: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array, arg3: u32 | AnyNumber | Uint8Array) => Observable<Option<Null>>, [
|
|
342
|
+
AccountId32,
|
|
343
|
+
u32,
|
|
344
|
+
u32
|
|
345
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32, u32, u32]>;
|
|
346
|
+
/**
|
|
347
|
+
* Attributes of a collection.
|
|
348
|
+
**/
|
|
349
|
+
attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber, arg3: PalletNftsAttributeNamespace | {
|
|
350
|
+
Pallet: any;
|
|
351
|
+
} | {
|
|
352
|
+
CollectionOwner: any;
|
|
353
|
+
} | {
|
|
354
|
+
ItemOwner: any;
|
|
355
|
+
} | {
|
|
356
|
+
Account: any;
|
|
357
|
+
} | string | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<ITuple<[Bytes, PalletNftsAttributeDeposit]>>>, [
|
|
358
|
+
u32,
|
|
359
|
+
Option<u32>,
|
|
360
|
+
PalletNftsAttributeNamespace,
|
|
361
|
+
Bytes
|
|
362
|
+
]> & QueryableStorageEntry<ApiType, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]>;
|
|
363
|
+
/**
|
|
364
|
+
* Details of a collection.
|
|
365
|
+
**/
|
|
366
|
+
collection: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsCollectionDetails>>, [
|
|
367
|
+
u32
|
|
368
|
+
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
369
|
+
/**
|
|
370
|
+
* The collections owned by any given account; set out this way so that collections owned by
|
|
371
|
+
* a single account can be enumerated.
|
|
372
|
+
**/
|
|
373
|
+
collectionAccount: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<Null>>, [
|
|
374
|
+
AccountId32,
|
|
375
|
+
u32
|
|
376
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32, u32]>;
|
|
377
|
+
/**
|
|
378
|
+
* Config of a collection.
|
|
379
|
+
**/
|
|
380
|
+
collectionConfigOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsCollectionConfig>>, [
|
|
381
|
+
u32
|
|
382
|
+
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
383
|
+
/**
|
|
384
|
+
* Metadata of a collection.
|
|
385
|
+
**/
|
|
386
|
+
collectionMetadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsCollectionMetadata>>, [
|
|
387
|
+
u32
|
|
388
|
+
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
389
|
+
/**
|
|
390
|
+
* The items in existence and their ownership details.
|
|
391
|
+
* Stores collection roles as per account.
|
|
392
|
+
**/
|
|
393
|
+
collectionRoleOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u8>>, [
|
|
394
|
+
u32,
|
|
395
|
+
AccountId32
|
|
396
|
+
]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
397
|
+
/**
|
|
398
|
+
* The items in existence and their ownership details.
|
|
399
|
+
**/
|
|
400
|
+
item: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsItemDetails>>, [
|
|
401
|
+
u32,
|
|
402
|
+
u32
|
|
403
|
+
]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
404
|
+
/**
|
|
405
|
+
* Item attribute approvals.
|
|
406
|
+
**/
|
|
407
|
+
itemAttributesApprovalsOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<BTreeSet<AccountId32>>, [
|
|
408
|
+
u32,
|
|
409
|
+
u32
|
|
410
|
+
]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
411
|
+
/**
|
|
412
|
+
* Config of an item.
|
|
413
|
+
**/
|
|
414
|
+
itemConfigOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsItemConfig>>, [
|
|
415
|
+
u32,
|
|
416
|
+
u32
|
|
417
|
+
]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
418
|
+
/**
|
|
419
|
+
* Metadata of an item.
|
|
420
|
+
**/
|
|
421
|
+
itemMetadataOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsItemMetadata>>, [
|
|
422
|
+
u32,
|
|
423
|
+
u32
|
|
424
|
+
]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
425
|
+
/**
|
|
426
|
+
* A price of an item.
|
|
427
|
+
**/
|
|
428
|
+
itemPriceOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[u128, Option<AccountId32>]>>>, [
|
|
429
|
+
u32,
|
|
430
|
+
u32
|
|
431
|
+
]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
432
|
+
/**
|
|
433
|
+
* Stores the `CollectionId` that is going to be used for the next collection.
|
|
434
|
+
* This gets incremented whenever a new collection is created.
|
|
435
|
+
**/
|
|
436
|
+
nextCollectionId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
437
|
+
/**
|
|
438
|
+
* The collection, if any, of which an account is willing to take ownership.
|
|
439
|
+
**/
|
|
440
|
+
ownershipAcceptance: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [
|
|
441
|
+
AccountId32
|
|
442
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
443
|
+
/**
|
|
444
|
+
* Handles all the pending swaps.
|
|
445
|
+
**/
|
|
446
|
+
pendingSwapOf: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsPendingSwap>>, [
|
|
447
|
+
u32,
|
|
448
|
+
u32
|
|
449
|
+
]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
450
|
+
/**
|
|
451
|
+
* Generic query
|
|
452
|
+
**/
|
|
453
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
454
|
+
};
|
|
455
|
+
parachainInfo: {
|
|
456
|
+
parachainId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
457
|
+
/**
|
|
458
|
+
* Generic query
|
|
459
|
+
**/
|
|
460
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
461
|
+
};
|
|
462
|
+
parachainSystem: {
|
|
463
|
+
/**
|
|
464
|
+
* Storage field that keeps track of bandwidth used by the unincluded segment along with the
|
|
465
|
+
* latest HRMP watermark. Used for limiting the acceptance of new blocks with
|
|
466
|
+
* respect to relay chain constraints.
|
|
467
|
+
**/
|
|
468
|
+
aggregatedUnincludedSegment: AugmentedQuery<ApiType, () => Observable<Option<CumulusPalletParachainSystemUnincludedSegmentSegmentTracker>>, [
|
|
469
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
470
|
+
/**
|
|
471
|
+
* The number of HRMP messages we observed in `on_initialize` and thus used that number for
|
|
472
|
+
* announcing the weight of `on_initialize` and `on_finalize`.
|
|
473
|
+
**/
|
|
474
|
+
announcedHrmpMessagesPerCandidate: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
475
|
+
/**
|
|
476
|
+
* A custom head data that should be returned as result of `validate_block`.
|
|
477
|
+
*
|
|
478
|
+
* See `Pallet::set_custom_validation_head_data` for more information.
|
|
479
|
+
**/
|
|
480
|
+
customValidationHeadData: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
481
|
+
/**
|
|
482
|
+
* Were the validation data set to notify the relay chain?
|
|
483
|
+
**/
|
|
484
|
+
didSetValidationCode: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
485
|
+
/**
|
|
486
|
+
* The parachain host configuration that was obtained from the relay parent.
|
|
487
|
+
*
|
|
488
|
+
* This field is meant to be updated each block with the validation data inherent. Therefore,
|
|
489
|
+
* before processing of the inherent, e.g. in `on_initialize` this data may be stale.
|
|
490
|
+
*
|
|
491
|
+
* This data is also absent from the genesis.
|
|
492
|
+
**/
|
|
493
|
+
hostConfiguration: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV7AbridgedHostConfiguration>>, [
|
|
494
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
495
|
+
/**
|
|
496
|
+
* HRMP messages that were sent in a block.
|
|
497
|
+
*
|
|
498
|
+
* This will be cleared in `on_initialize` of each new block.
|
|
499
|
+
**/
|
|
500
|
+
hrmpOutboundMessages: AugmentedQuery<ApiType, () => Observable<Vec<PolkadotCorePrimitivesOutboundHrmpMessage>>, [
|
|
501
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
502
|
+
/**
|
|
503
|
+
* HRMP watermark that was set in a block.
|
|
504
|
+
*
|
|
505
|
+
* This will be cleared in `on_initialize` of each new block.
|
|
506
|
+
**/
|
|
507
|
+
hrmpWatermark: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
508
|
+
/**
|
|
509
|
+
* The last downward message queue chain head we have observed.
|
|
510
|
+
*
|
|
511
|
+
* This value is loaded before and saved after processing inbound downward messages carried
|
|
512
|
+
* by the system inherent.
|
|
513
|
+
**/
|
|
514
|
+
lastDmqMqcHead: AugmentedQuery<ApiType, () => Observable<H256>, []> & QueryableStorageEntry<ApiType, []>;
|
|
515
|
+
/**
|
|
516
|
+
* The message queue chain heads we have observed per each channel incoming channel.
|
|
517
|
+
*
|
|
518
|
+
* This value is loaded before and saved after processing inbound downward messages carried
|
|
519
|
+
* by the system inherent.
|
|
520
|
+
**/
|
|
521
|
+
lastHrmpMqcHeads: AugmentedQuery<ApiType, () => Observable<BTreeMap<u32, H256>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
522
|
+
/**
|
|
523
|
+
* The relay chain block number associated with the last parachain block.
|
|
524
|
+
*
|
|
525
|
+
* This is updated in `on_finalize`.
|
|
526
|
+
**/
|
|
527
|
+
lastRelayChainBlockNumber: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
528
|
+
/**
|
|
529
|
+
* Validation code that is set by the parachain and is to be communicated to collator and
|
|
530
|
+
* consequently the relay-chain.
|
|
531
|
+
*
|
|
532
|
+
* This will be cleared in `on_initialize` of each new block if no other pallet already set
|
|
533
|
+
* the value.
|
|
534
|
+
**/
|
|
535
|
+
newValidationCode: AugmentedQuery<ApiType, () => Observable<Option<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
536
|
+
/**
|
|
537
|
+
* Upward messages that are still pending and not yet send to the relay chain.
|
|
538
|
+
**/
|
|
539
|
+
pendingUpwardMessages: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
540
|
+
/**
|
|
541
|
+
* In case of a scheduled upgrade, this storage field contains the validation code to be
|
|
542
|
+
* applied.
|
|
543
|
+
*
|
|
544
|
+
* As soon as the relay chain gives us the go-ahead signal, we will overwrite the
|
|
545
|
+
* [`:code`][sp_core::storage::well_known_keys::CODE] which will result the next block process
|
|
546
|
+
* with the new validation code. This concludes the upgrade process.
|
|
547
|
+
**/
|
|
548
|
+
pendingValidationCode: AugmentedQuery<ApiType, () => Observable<Bytes>, []> & QueryableStorageEntry<ApiType, []>;
|
|
549
|
+
/**
|
|
550
|
+
* Number of downward messages processed in a block.
|
|
551
|
+
*
|
|
552
|
+
* This will be cleared in `on_initialize` of each new block.
|
|
553
|
+
**/
|
|
554
|
+
processedDownwardMessages: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
555
|
+
/**
|
|
556
|
+
* The state proof for the last relay parent block.
|
|
557
|
+
*
|
|
558
|
+
* This field is meant to be updated each block with the validation data inherent. Therefore,
|
|
559
|
+
* before processing of the inherent, e.g. in `on_initialize` this data may be stale.
|
|
560
|
+
*
|
|
561
|
+
* This data is also absent from the genesis.
|
|
562
|
+
**/
|
|
563
|
+
relayStateProof: AugmentedQuery<ApiType, () => Observable<Option<SpTrieStorageProof>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
564
|
+
/**
|
|
565
|
+
* The snapshot of some state related to messaging relevant to the current parachain as per
|
|
566
|
+
* the relay parent.
|
|
567
|
+
*
|
|
568
|
+
* This field is meant to be updated each block with the validation data inherent. Therefore,
|
|
569
|
+
* before processing of the inherent, e.g. in `on_initialize` this data may be stale.
|
|
570
|
+
*
|
|
571
|
+
* This data is also absent from the genesis.
|
|
572
|
+
**/
|
|
573
|
+
relevantMessagingState: AugmentedQuery<ApiType, () => Observable<Option<CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot>>, [
|
|
574
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
575
|
+
/**
|
|
576
|
+
* The weight we reserve at the beginning of the block for processing DMP messages. This
|
|
577
|
+
* overrides the amount set in the Config trait.
|
|
578
|
+
**/
|
|
579
|
+
reservedDmpWeightOverride: AugmentedQuery<ApiType, () => Observable<Option<SpWeightsWeightV2Weight>>, [
|
|
580
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
581
|
+
/**
|
|
582
|
+
* The weight we reserve at the beginning of the block for processing XCMP messages. This
|
|
583
|
+
* overrides the amount set in the Config trait.
|
|
584
|
+
**/
|
|
585
|
+
reservedXcmpWeightOverride: AugmentedQuery<ApiType, () => Observable<Option<SpWeightsWeightV2Weight>>, [
|
|
586
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
587
|
+
/**
|
|
588
|
+
* Latest included block descendants the runtime accepted. In other words, these are
|
|
589
|
+
* ancestors of the currently executing block which have not been included in the observed
|
|
590
|
+
* relay-chain state.
|
|
591
|
+
*
|
|
592
|
+
* The segment length is limited by the capacity returned from the [`ConsensusHook`] configured
|
|
593
|
+
* in the pallet.
|
|
594
|
+
**/
|
|
595
|
+
unincludedSegment: AugmentedQuery<ApiType, () => Observable<Vec<CumulusPalletParachainSystemUnincludedSegmentAncestor>>, [
|
|
596
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
597
|
+
/**
|
|
598
|
+
* Optional upgrade go-ahead signal from the relay-chain.
|
|
599
|
+
*
|
|
600
|
+
* This storage item is a mirror of the corresponding value for the current parachain from the
|
|
601
|
+
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
602
|
+
* set after the inherent.
|
|
603
|
+
**/
|
|
604
|
+
upgradeGoAhead: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV7UpgradeGoAhead>>, [
|
|
605
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
606
|
+
/**
|
|
607
|
+
* An option which indicates if the relay-chain restricts signalling a validation code upgrade.
|
|
608
|
+
* In other words, if this is `Some` and [`NewValidationCode`] is `Some` then the produced
|
|
609
|
+
* candidate will be invalid.
|
|
610
|
+
*
|
|
611
|
+
* This storage item is a mirror of the corresponding value for the current parachain from the
|
|
612
|
+
* relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
|
|
613
|
+
* set after the inherent.
|
|
614
|
+
**/
|
|
615
|
+
upgradeRestrictionSignal: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV7UpgradeRestriction>>, [
|
|
616
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
617
|
+
/**
|
|
618
|
+
* The factor to multiply the base delivery fee by for UMP.
|
|
619
|
+
**/
|
|
620
|
+
upwardDeliveryFeeFactor: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
621
|
+
/**
|
|
622
|
+
* Upward messages that were sent in a block.
|
|
623
|
+
*
|
|
624
|
+
* This will be cleared in `on_initialize` of each new block.
|
|
625
|
+
**/
|
|
626
|
+
upwardMessages: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
627
|
+
/**
|
|
628
|
+
* The [`PersistedValidationData`] set for this block.
|
|
629
|
+
* This value is expected to be set only once per block and it's never stored
|
|
630
|
+
* in the trie.
|
|
631
|
+
**/
|
|
632
|
+
validationData: AugmentedQuery<ApiType, () => Observable<Option<PolkadotPrimitivesV7PersistedValidationData>>, [
|
|
633
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
634
|
+
/**
|
|
635
|
+
* Generic query
|
|
636
|
+
**/
|
|
637
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
638
|
+
};
|
|
639
|
+
parameters: {
|
|
640
|
+
/**
|
|
641
|
+
* Stored parameters.
|
|
642
|
+
**/
|
|
643
|
+
parameters: AugmentedQuery<ApiType, (arg: StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersKey | {
|
|
644
|
+
RuntimeConfig: any;
|
|
645
|
+
} | string | Uint8Array) => Observable<Option<StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersValue>>, [
|
|
646
|
+
StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersKey
|
|
647
|
+
]> & QueryableStorageEntry<ApiType, [StorageHubRuntimeConfigsRuntimeParamsRuntimeParametersKey]>;
|
|
648
|
+
/**
|
|
649
|
+
* Generic query
|
|
650
|
+
**/
|
|
651
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
652
|
+
};
|
|
653
|
+
paymentStreams: {
|
|
654
|
+
/**
|
|
655
|
+
* The accumulated price index since genesis, used to calculate the amount to charge for dynamic-rate payment streams.
|
|
656
|
+
*
|
|
657
|
+
* This is equivalent to what it would have cost to store one unit of the provided service since the beginning of the network.
|
|
658
|
+
* We use this to calculate the amount to charge for dynamic-rate payment streams, by checking out the difference between the index
|
|
659
|
+
* when the payment stream was last charged, and the index at the last chargeable tick.
|
|
660
|
+
*
|
|
661
|
+
* This storage is updated in:
|
|
662
|
+
* - [do_update_price_index](crate::utils::do_update_price_index), which updates the accumulated price index, adding to it the current price.
|
|
663
|
+
**/
|
|
664
|
+
accumulatedPriceIndex: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
665
|
+
/**
|
|
666
|
+
* The current price per unit per tick of the provided service, used to calculate the amount to charge for dynamic-rate payment streams.
|
|
667
|
+
*
|
|
668
|
+
* This is updated each tick using the formula that considers current system capacity (total storage of the system) and system availability (total storage available).
|
|
669
|
+
*
|
|
670
|
+
* This storage is updated in:
|
|
671
|
+
* - [do_update_current_price_per_unit_per_tick](crate::utils::do_update_current_price_per_unit_per_tick), which updates the current price per unit per tick.
|
|
672
|
+
**/
|
|
673
|
+
currentPricePerUnitPerTick: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
674
|
+
/**
|
|
675
|
+
* The double mapping from a Provider, to its provided Users, to their dynamic-rate payment streams.
|
|
676
|
+
*
|
|
677
|
+
* This is used to store and manage dynamic-rate payment streams between Users and Providers.
|
|
678
|
+
*
|
|
679
|
+
* This storage is updated in:
|
|
680
|
+
* - [add_dynamic_rate_payment_stream](crate::dispatchables::add_dynamic_rate_payment_stream), which adds a new entry to the map.
|
|
681
|
+
* - [delete_dynamic_rate_payment_stream](crate::dispatchables::delete_dynamic_rate_payment_stream), which removes the corresponding entry from the map.
|
|
682
|
+
* - [update_dynamic_rate_payment_stream](crate::dispatchables::update_dynamic_rate_payment_stream), which updates the entry's `amount_provided`.
|
|
683
|
+
* - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which updates the entry's `price_index_when_last_charged`.
|
|
684
|
+
**/
|
|
685
|
+
dynamicRatePaymentStreams: AugmentedQuery<ApiType, (arg1: H256 | string | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletPaymentStreamsDynamicRatePaymentStream>>, [
|
|
686
|
+
H256,
|
|
687
|
+
AccountId32
|
|
688
|
+
]> & QueryableStorageEntry<ApiType, [H256, AccountId32]>;
|
|
689
|
+
/**
|
|
690
|
+
* The double mapping from a Provider, to its provided Users, to their fixed-rate payment streams.
|
|
691
|
+
*
|
|
692
|
+
* This is used to store and manage fixed-rate payment streams between Users and Providers.
|
|
693
|
+
*
|
|
694
|
+
* This storage is updated in:
|
|
695
|
+
* - [add_fixed_rate_payment_stream](crate::dispatchables::add_fixed_rate_payment_stream), which adds a new entry to the map.
|
|
696
|
+
* - [delete_fixed_rate_payment_stream](crate::dispatchables::delete_fixed_rate_payment_stream), which removes the corresponding entry from the map.
|
|
697
|
+
* - [update_fixed_rate_payment_stream](crate::dispatchables::update_fixed_rate_payment_stream), which updates the entry's `rate`.
|
|
698
|
+
* - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which updates the entry's `last_charged_tick`.
|
|
699
|
+
**/
|
|
700
|
+
fixedRatePaymentStreams: AugmentedQuery<ApiType, (arg1: H256 | string | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletPaymentStreamsFixedRatePaymentStream>>, [
|
|
701
|
+
H256,
|
|
702
|
+
AccountId32
|
|
703
|
+
]> & QueryableStorageEntry<ApiType, [H256, AccountId32]>;
|
|
704
|
+
/**
|
|
705
|
+
* The mapping from a Provider to its last chargeable price index (for dynamic-rate payment streams) and last chargeable tick (for fixed-rate payment streams).
|
|
706
|
+
*
|
|
707
|
+
* This is used to keep track of the last chargeable price index and tick number for each Provider, so this pallet can charge the payment streams correctly.
|
|
708
|
+
*
|
|
709
|
+
* This storage is updated in:
|
|
710
|
+
* - [update_last_chargeable_info](crate::PaymentManager::update_last_chargeable_info), which updates the entry's `last_chargeable_tick` and `price_index`.
|
|
711
|
+
**/
|
|
712
|
+
lastChargeableInfo: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<PalletPaymentStreamsProviderLastChargeableInfo>, [
|
|
713
|
+
H256
|
|
714
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
715
|
+
/**
|
|
716
|
+
* The last tick from the Providers Proof Submitters pallet that was registered.
|
|
717
|
+
*
|
|
718
|
+
* This is used to keep track of the last tick from the Providers Proof Submitters pallet, that this pallet
|
|
719
|
+
* registered. For the tick in this storage element, this pallet already knows the Providers that submitted
|
|
720
|
+
* a valid proof.
|
|
721
|
+
**/
|
|
722
|
+
lastSubmittersTickRegistered: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
723
|
+
/**
|
|
724
|
+
* A counter of blocks for which Providers can charge their streams.
|
|
725
|
+
*
|
|
726
|
+
* This counter is not necessarily the same as the block number, as the last chargeable info of Providers
|
|
727
|
+
* (and the global price index) are updated in the `on_poll` hook, which happens at the beginning of every block,
|
|
728
|
+
* so long as the block is not part of a [Multi-Block-Migration](https://github.com/paritytech/polkadot-sdk/pull/1781) (MBM).
|
|
729
|
+
* During MBMs, the block number increases, but `OnPollTicker` does not.
|
|
730
|
+
**/
|
|
731
|
+
onPollTicker: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
732
|
+
/**
|
|
733
|
+
* The mapping from a user to if it has been registered to the network and the amount of payment streams it has.
|
|
734
|
+
*
|
|
735
|
+
* Since users have to provide a deposit to be able to open each payment stream, this is used to keep track of the amount of payment streams
|
|
736
|
+
* that a user has and it is also useful to check if a user has registered to the network.
|
|
737
|
+
*
|
|
738
|
+
* This storage is updated in:
|
|
739
|
+
* - [add_fixed_rate_payment_stream](crate::dispatchables::add_fixed_rate_payment_stream), which holds the deposit of the user and adds one to this storage.
|
|
740
|
+
* - [add_dynamic_rate_payment_stream](crate::dispatchables::add_dynamic_rate_payment_stream), which holds the deposit of the user and adds one to this storage.
|
|
741
|
+
* - [remove_fixed_rate_payment_stream](crate::dispatchables::remove_fixed_rate_payment_stream), which removes one from this storage and releases the deposit.
|
|
742
|
+
* - [remove_dynamic_rate_payment_stream](crate::dispatchables::remove_dynamic_rate_payment_stream), which removes one from this storage and releases the deposit.
|
|
743
|
+
**/
|
|
744
|
+
registeredUsers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<u32>, [
|
|
745
|
+
AccountId32
|
|
746
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
747
|
+
/**
|
|
748
|
+
* The mapping from a user to if it has been flagged for not having enough funds to pay for its requested services.
|
|
749
|
+
*
|
|
750
|
+
* This is used to flag users that do not have enough funds to pay for their requested services, so other Providers
|
|
751
|
+
* can stop providing services to them.
|
|
752
|
+
*
|
|
753
|
+
* This storage is updated in:
|
|
754
|
+
* - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which emits a `UserWithoutFunds` event and sets the user's entry in this map if it does not
|
|
755
|
+
* have enough funds, and clears the entry if it was set and the user has enough funds.
|
|
756
|
+
**/
|
|
757
|
+
usersWithoutFunds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [
|
|
758
|
+
AccountId32
|
|
759
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
760
|
+
/**
|
|
761
|
+
* Generic query
|
|
762
|
+
**/
|
|
763
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
764
|
+
};
|
|
765
|
+
polkadotXcm: {
|
|
766
|
+
/**
|
|
767
|
+
* The existing asset traps.
|
|
768
|
+
*
|
|
769
|
+
* Key is the blake2 256 hash of (origin, versioned `Assets`) pair. Value is the number of
|
|
770
|
+
* times this pair has been trapped (usually just 1 if it exists at all).
|
|
771
|
+
**/
|
|
772
|
+
assetTraps: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<u32>, [
|
|
773
|
+
H256
|
|
774
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
775
|
+
/**
|
|
776
|
+
* The current migration's stage, if any.
|
|
777
|
+
**/
|
|
778
|
+
currentMigration: AugmentedQuery<ApiType, () => Observable<Option<PalletXcmVersionMigrationStage>>, [
|
|
779
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
780
|
+
/**
|
|
781
|
+
* Fungible assets which we know are locked on this chain.
|
|
782
|
+
**/
|
|
783
|
+
lockedFungibles: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Vec<ITuple<[u128, XcmVersionedLocation]>>>>, [
|
|
784
|
+
AccountId32
|
|
785
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
786
|
+
/**
|
|
787
|
+
* The ongoing queries.
|
|
788
|
+
**/
|
|
789
|
+
queries: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletXcmQueryStatus>>, [
|
|
790
|
+
u64
|
|
791
|
+
]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
792
|
+
/**
|
|
793
|
+
* The latest available query index.
|
|
794
|
+
**/
|
|
795
|
+
queryCounter: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
796
|
+
/**
|
|
797
|
+
* If [`ShouldRecordXcm`] is set to true, then the last XCM program executed locally
|
|
798
|
+
* will be stored here.
|
|
799
|
+
* Runtime APIs can fetch the XCM that was executed by accessing this value.
|
|
800
|
+
*
|
|
801
|
+
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
802
|
+
* implementation in the XCM executor configuration.
|
|
803
|
+
**/
|
|
804
|
+
recordedXcm: AugmentedQuery<ApiType, () => Observable<Option<Vec<StagingXcmV4Instruction>>>, [
|
|
805
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
806
|
+
/**
|
|
807
|
+
* Fungible assets which we know are locked on a remote chain.
|
|
808
|
+
**/
|
|
809
|
+
remoteLockedFungibles: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array, arg3: XcmVersionedAssetId | {
|
|
810
|
+
V3: any;
|
|
811
|
+
} | {
|
|
812
|
+
V4: any;
|
|
813
|
+
} | string | Uint8Array) => Observable<Option<PalletXcmRemoteLockedFungibleRecord>>, [
|
|
814
|
+
u32,
|
|
815
|
+
AccountId32,
|
|
816
|
+
XcmVersionedAssetId
|
|
817
|
+
]> & QueryableStorageEntry<ApiType, [u32, AccountId32, XcmVersionedAssetId]>;
|
|
818
|
+
/**
|
|
819
|
+
* Default version to encode XCM when latest version of destination is unknown. If `None`,
|
|
820
|
+
* then the destinations whose XCM version is unknown are considered unreachable.
|
|
821
|
+
**/
|
|
822
|
+
safeXcmVersion: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
823
|
+
/**
|
|
824
|
+
* Whether or not incoming XCMs (both executed locally and received) should be recorded.
|
|
825
|
+
* Only one XCM program will be recorded at a time.
|
|
826
|
+
* This is meant to be used in runtime APIs, and it's advised it stays false
|
|
827
|
+
* for all other use cases, so as to not degrade regular performance.
|
|
828
|
+
*
|
|
829
|
+
* Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
|
|
830
|
+
* implementation in the XCM executor configuration.
|
|
831
|
+
**/
|
|
832
|
+
shouldRecordXcm: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
833
|
+
/**
|
|
834
|
+
* The Latest versions that we know various locations support.
|
|
835
|
+
**/
|
|
836
|
+
supportedVersion: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | {
|
|
837
|
+
V2: any;
|
|
838
|
+
} | {
|
|
839
|
+
V3: any;
|
|
840
|
+
} | {
|
|
841
|
+
V4: any;
|
|
842
|
+
} | string | Uint8Array) => Observable<Option<u32>>, [
|
|
843
|
+
u32,
|
|
844
|
+
XcmVersionedLocation
|
|
845
|
+
]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
|
|
846
|
+
/**
|
|
847
|
+
* Destinations whose latest XCM version we would like to know. Duplicates not allowed, and
|
|
848
|
+
* the `u32` counter is the number of times that a send to the destination has been attempted,
|
|
849
|
+
* which is used as a prioritization.
|
|
850
|
+
**/
|
|
851
|
+
versionDiscoveryQueue: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[XcmVersionedLocation, u32]>>>, [
|
|
852
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
853
|
+
/**
|
|
854
|
+
* All locations that we have requested version notifications from.
|
|
855
|
+
**/
|
|
856
|
+
versionNotifiers: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | {
|
|
857
|
+
V2: any;
|
|
858
|
+
} | {
|
|
859
|
+
V3: any;
|
|
860
|
+
} | {
|
|
861
|
+
V4: any;
|
|
862
|
+
} | string | Uint8Array) => Observable<Option<u64>>, [
|
|
863
|
+
u32,
|
|
864
|
+
XcmVersionedLocation
|
|
865
|
+
]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
|
|
866
|
+
/**
|
|
867
|
+
* The target locations that are subscribed to our version changes, as well as the most recent
|
|
868
|
+
* of our versions we informed them of.
|
|
869
|
+
**/
|
|
870
|
+
versionNotifyTargets: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: XcmVersionedLocation | {
|
|
871
|
+
V2: any;
|
|
872
|
+
} | {
|
|
873
|
+
V3: any;
|
|
874
|
+
} | {
|
|
875
|
+
V4: any;
|
|
876
|
+
} | string | Uint8Array) => Observable<Option<ITuple<[u64, SpWeightsWeightV2Weight, u32]>>>, [
|
|
877
|
+
u32,
|
|
878
|
+
XcmVersionedLocation
|
|
879
|
+
]> & QueryableStorageEntry<ApiType, [u32, XcmVersionedLocation]>;
|
|
880
|
+
/**
|
|
881
|
+
* Global suspension state of the XCM executor.
|
|
882
|
+
**/
|
|
883
|
+
xcmExecutionSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
884
|
+
/**
|
|
885
|
+
* Generic query
|
|
886
|
+
**/
|
|
887
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
888
|
+
};
|
|
889
|
+
proofsDealer: {
|
|
890
|
+
/**
|
|
891
|
+
* A queue of keys that have been challenged manually.
|
|
892
|
+
*
|
|
893
|
+
* The elements in this queue will be challenged in the coming blocks,
|
|
894
|
+
* always ensuring that the maximum number of challenges per block is not exceeded.
|
|
895
|
+
* A `BoundedVec` is used because the `parity_scale_codec::MaxEncodedLen` trait
|
|
896
|
+
* is required, but using a `VecDeque` would be more efficient as this is a FIFO queue.
|
|
897
|
+
**/
|
|
898
|
+
challengesQueue: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
899
|
+
/**
|
|
900
|
+
* A counter of blocks in which challenges were distributed.
|
|
901
|
+
*
|
|
902
|
+
* This counter is not necessarily the same as the block number, as challenges are
|
|
903
|
+
* distributed in the `on_poll` hook, which happens at the beginning of every block,
|
|
904
|
+
* so long as the block is not part of a [Multi-Block-Migration](https://github.com/paritytech/polkadot-sdk/pull/1781) (MBM).
|
|
905
|
+
* During MBMsm, the block number increases, but [`ChallengesTicker`] does not.
|
|
906
|
+
**/
|
|
907
|
+
challengesTicker: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
908
|
+
/**
|
|
909
|
+
* A boolean that represents whether the [`ChallengesTicker`] is paused.
|
|
910
|
+
*
|
|
911
|
+
* By default, this is `false`, meaning that the [`ChallengesTicker`] is incremented every time `on_poll` is called.
|
|
912
|
+
* This can be set to `true` which would pause the [`ChallengesTicker`], preventing `do_new_challenges_round` from
|
|
913
|
+
* being executed. Therefore:
|
|
914
|
+
* - No new random challenges would be emitted and added to [`TickToChallengesSeed`].
|
|
915
|
+
* - No new checkpoint challenges would be emitted and added to [`TickToCheckpointChallenges`].
|
|
916
|
+
* - Deadlines for proof submissions are indefinitely postponed.
|
|
917
|
+
**/
|
|
918
|
+
challengesTickerPaused: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
919
|
+
/**
|
|
920
|
+
* The challenge tick of the last checkpoint challenge round.
|
|
921
|
+
*
|
|
922
|
+
* This is used to determine when to include the challenges from the [`ChallengesQueue`] and
|
|
923
|
+
* [`PriorityChallengesQueue`] in the [`TickToCheckpointChallenges`] StorageMap. These checkpoint
|
|
924
|
+
* challenge rounds have to be answered by ALL Providers, and this is enforced by the
|
|
925
|
+
* `submit_proof` extrinsic.
|
|
926
|
+
**/
|
|
927
|
+
lastCheckpointTick: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
928
|
+
/**
|
|
929
|
+
* A value that represents the last tick that was deleted from the [`ValidProofSubmittersLastTicks`] StorageMap.
|
|
930
|
+
*
|
|
931
|
+
* This is used to know which tick to delete from the [`ValidProofSubmittersLastTicks`] StorageMap when the
|
|
932
|
+
* `on_idle` hook is called.
|
|
933
|
+
**/
|
|
934
|
+
lastDeletedTick: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
935
|
+
/**
|
|
936
|
+
* A mapping from a Provider to the last tick for which they SHOULD have submitted a proof.
|
|
937
|
+
* If for a Provider `p`, `LastTickProviderSubmittedAProofFor[p]` is `n`, then the
|
|
938
|
+
* Provider should submit a proof for tick `n + stake_to_challenge_period(p)`.
|
|
939
|
+
*
|
|
940
|
+
* This gets updated when a Provider submits a proof successfully and is used to determine the
|
|
941
|
+
* next tick for which the Provider should submit a proof, and it's deadline.
|
|
942
|
+
*
|
|
943
|
+
* If the Provider fails to submit a proof in time and is slashed, this will still get updated
|
|
944
|
+
* to the tick it should have submitted a proof for.
|
|
945
|
+
**/
|
|
946
|
+
lastTickProviderSubmittedAProofFor: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<u32>>, [
|
|
947
|
+
H256
|
|
948
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
949
|
+
/**
|
|
950
|
+
* The number of blocks that have been considered _not_ full in the last [`Config::BlockFullnessPeriod`].
|
|
951
|
+
*
|
|
952
|
+
* This is used to check if the network is presumably under a spam attack.
|
|
953
|
+
**/
|
|
954
|
+
notFullBlocksCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
955
|
+
/**
|
|
956
|
+
* A mapping from block number to the weight used in that block.
|
|
957
|
+
*
|
|
958
|
+
* This is used to check if the network is presumably under a spam attack.
|
|
959
|
+
* It is cleared for blocks older than `current_block` - ([`Config::BlockFullnessPeriod`] + 1).
|
|
960
|
+
**/
|
|
961
|
+
pastBlocksWeight: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<SpWeightsWeightV2Weight>>, [
|
|
962
|
+
u32
|
|
963
|
+
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
964
|
+
/**
|
|
965
|
+
* A priority queue of keys that have been challenged manually.
|
|
966
|
+
*
|
|
967
|
+
* The difference between this and `ChallengesQueue` is that the challenges
|
|
968
|
+
* in this queue are given priority over the others. So this queue should be
|
|
969
|
+
* emptied before any of the challenges in the `ChallengesQueue` are dispatched.
|
|
970
|
+
* This queue should not be accessible to the public.
|
|
971
|
+
* The elements in this queue will be challenged in the coming blocks,
|
|
972
|
+
* always ensuring that the maximum number of challenges per block is not exceeded.
|
|
973
|
+
* A `BoundedVec` is used because the `parity_scale_codec::MaxEncodedLen` trait
|
|
974
|
+
* is required, but using a `VecDeque` would be more efficient as this is a FIFO queue.
|
|
975
|
+
**/
|
|
976
|
+
priorityChallengesQueue: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[H256, Option<ShpTraitsTrieRemoveMutation>]>>>, [
|
|
977
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
978
|
+
slashableProviders: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<u32>>, [
|
|
979
|
+
H256
|
|
980
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
981
|
+
/**
|
|
982
|
+
* A mapping from challenges tick to a random seed used for generating the challenges in that tick.
|
|
983
|
+
*
|
|
984
|
+
* This is used to keep track of the challenges' seed in the past.
|
|
985
|
+
* This mapping goes back only [`ChallengeHistoryLengthFor`] blocks. Previous challenges are removed.
|
|
986
|
+
**/
|
|
987
|
+
tickToChallengesSeed: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [
|
|
988
|
+
u32
|
|
989
|
+
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
990
|
+
/**
|
|
991
|
+
* A mapping from challenges tick to a vector of custom challenged keys for that tick.
|
|
992
|
+
*
|
|
993
|
+
* This is used to keep track of the challenges that have been made in the past, specifically
|
|
994
|
+
* in the checkpoint challenge rounds.
|
|
995
|
+
* The vector is bounded by [`MaxCustomChallengesPerBlockFor`].
|
|
996
|
+
* This mapping goes back only [`ChallengeHistoryLengthFor`] ticks. Previous challenges are removed.
|
|
997
|
+
**/
|
|
998
|
+
tickToCheckpointChallenges: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<ITuple<[H256, Option<ShpTraitsTrieRemoveMutation>]>>>>, [
|
|
999
|
+
u32
|
|
1000
|
+
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1001
|
+
/**
|
|
1002
|
+
* A mapping from challenge tick to a vector of challenged Providers for that tick.
|
|
1003
|
+
*
|
|
1004
|
+
* This is used to keep track of the Providers that have been challenged, and should
|
|
1005
|
+
* submit a proof by the time of the [`ChallengesTicker`] reaches the number used as
|
|
1006
|
+
* key in the mapping. Providers who do submit a proof are removed from their respective
|
|
1007
|
+
* entry and pushed forward to the next tick in which they should submit a proof.
|
|
1008
|
+
* Those who are still in the entry by the time the tick is reached are considered to
|
|
1009
|
+
* have failed to submit a proof and subject to slashing.
|
|
1010
|
+
**/
|
|
1011
|
+
tickToProvidersDeadlines: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<Null>>, [
|
|
1012
|
+
u32,
|
|
1013
|
+
H256
|
|
1014
|
+
]> & QueryableStorageEntry<ApiType, [u32, H256]>;
|
|
1015
|
+
/**
|
|
1016
|
+
* A mapping from tick to Providers, which is set if the Provider submitted a valid proof in that tick.
|
|
1017
|
+
*
|
|
1018
|
+
* This is used to keep track of the Providers that have submitted proofs in the last few
|
|
1019
|
+
* ticks, where availability only up to the last [`Config::TargetTicksStorageOfSubmitters`] ticks is guaranteed.
|
|
1020
|
+
* This storage is then made available for other pallets to use through the `ProofSubmittersInterface`.
|
|
1021
|
+
**/
|
|
1022
|
+
validProofSubmittersLastTicks: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<BTreeSet<H256>>>, [
|
|
1023
|
+
u32
|
|
1024
|
+
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1025
|
+
/**
|
|
1026
|
+
* Generic query
|
|
1027
|
+
**/
|
|
1028
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1029
|
+
};
|
|
1030
|
+
providers: {
|
|
1031
|
+
/**
|
|
1032
|
+
* The mapping from an AccountId to a BackupStorageProviderId.
|
|
1033
|
+
*
|
|
1034
|
+
* This is used to get a Backup Storage Provider's unique identifier needed to access its metadata.
|
|
1035
|
+
*
|
|
1036
|
+
* This storage is updated in:
|
|
1037
|
+
*
|
|
1038
|
+
* - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds a new entry to the map if the account to confirm is a Backup Storage Provider.
|
|
1039
|
+
* - [bsp_sign_off](crate::dispatchables::bsp_sign_off), which removes the corresponding entry from the map.
|
|
1040
|
+
**/
|
|
1041
|
+
accountIdToBackupStorageProviderId: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<H256>>, [
|
|
1042
|
+
AccountId32
|
|
1043
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1044
|
+
/**
|
|
1045
|
+
* The mapping from an AccountId to a MainStorageProviderId.
|
|
1046
|
+
*
|
|
1047
|
+
* This is used to get a Main Storage Provider's unique identifier needed to access its metadata.
|
|
1048
|
+
*
|
|
1049
|
+
* This storage is updated in:
|
|
1050
|
+
* - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds a new entry to the map if the account to confirm is a Main Storage Provider.
|
|
1051
|
+
* - [msp_sign_off](crate::dispatchables::msp_sign_off), which removes the corresponding entry from the map.
|
|
1052
|
+
**/
|
|
1053
|
+
accountIdToMainStorageProviderId: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<H256>>, [
|
|
1054
|
+
AccountId32
|
|
1055
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1056
|
+
/**
|
|
1057
|
+
* The mapping from a BackupStorageProviderId to a BackupStorageProvider.
|
|
1058
|
+
*
|
|
1059
|
+
* This is used to get a Backup Storage Provider's metadata.
|
|
1060
|
+
* It returns `None` if the Backup Storage Provider ID does not correspond to any registered Backup Storage Provider.
|
|
1061
|
+
*
|
|
1062
|
+
* This storage is updated in:
|
|
1063
|
+
* - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds a new entry to the map if the account to confirm is a Backup Storage Provider.
|
|
1064
|
+
* - [bsp_sign_off](crate::dispatchables::bsp_sign_off), which removes the corresponding entry from the map.
|
|
1065
|
+
* - [change_capacity](crate::dispatchables::change_capacity), which changes the entry's `capacity`.
|
|
1066
|
+
**/
|
|
1067
|
+
backupStorageProviders: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletStorageProvidersBackupStorageProvider>>, [
|
|
1068
|
+
H256
|
|
1069
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1070
|
+
/**
|
|
1071
|
+
* The amount of Backup Storage Providers that are currently registered in the runtime.
|
|
1072
|
+
*
|
|
1073
|
+
* This is used to keep track of the total amount of BSPs in the system.
|
|
1074
|
+
*
|
|
1075
|
+
* This storage is updated in:
|
|
1076
|
+
* - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds one to this storage if the account to confirm is a Backup Storage Provider.
|
|
1077
|
+
* - [bsp_sign_off](crate::dispatchables::bsp_sign_off), which subtracts one from this storage.
|
|
1078
|
+
**/
|
|
1079
|
+
bspCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1080
|
+
/**
|
|
1081
|
+
* The mapping from a BucketId to that bucket's metadata.
|
|
1082
|
+
*
|
|
1083
|
+
* This is used to get a bucket's metadata, such as root, user ID, and MSP ID.
|
|
1084
|
+
* It returns `None` if the Bucket ID does not correspond to any registered bucket.
|
|
1085
|
+
*
|
|
1086
|
+
* This storage is updated in:
|
|
1087
|
+
* - [add_bucket](shp_traits::MutateProvidersInterface::add_bucket), which adds a new entry to the map.
|
|
1088
|
+
* - [change_root_bucket](shp_traits::MutateProvidersInterface::change_root_bucket), which changes the corresponding bucket's root.
|
|
1089
|
+
* - [remove_root_bucket](shp_traits::MutateProvidersInterface::remove_root_bucket), which removes the entry of the corresponding bucket.
|
|
1090
|
+
**/
|
|
1091
|
+
buckets: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletStorageProvidersBucket>>, [
|
|
1092
|
+
H256
|
|
1093
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1094
|
+
/**
|
|
1095
|
+
* The total global reputation weight of all BSPs.
|
|
1096
|
+
**/
|
|
1097
|
+
globalBspsReputationWeight: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1098
|
+
/**
|
|
1099
|
+
* The mapping from a MainStorageProviderId to a vector of BucketIds.
|
|
1100
|
+
*
|
|
1101
|
+
* This is used to efficiently retrieve the list of buckets that a Main Storage Provider is currently storing.
|
|
1102
|
+
*
|
|
1103
|
+
* This storage is updated in:
|
|
1104
|
+
* - [add_bucket](shp_traits::MutateProvidersInterface::add_bucket)
|
|
1105
|
+
* - [remove_root_bucket](shp_traits::MutateProvidersInterface::remove_root_bucket)
|
|
1106
|
+
**/
|
|
1107
|
+
mainStorageProviderIdsToBuckets: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Vec<H256>>>, [
|
|
1108
|
+
H256
|
|
1109
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1110
|
+
/**
|
|
1111
|
+
* The mapping from a MainStorageProviderId to a MainStorageProvider.
|
|
1112
|
+
*
|
|
1113
|
+
* This is used to get a Main Storage Provider's metadata.
|
|
1114
|
+
* It returns `None` if the Main Storage Provider ID does not correspond to any registered Main Storage Provider.
|
|
1115
|
+
*
|
|
1116
|
+
* This storage is updated in:
|
|
1117
|
+
* - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds a new entry to the map if the account to confirm is a Main Storage Provider.
|
|
1118
|
+
* - [msp_sign_off](crate::dispatchables::msp_sign_off), which removes the corresponding entry from the map.
|
|
1119
|
+
* - [change_capacity](crate::dispatchables::change_capacity), which changes the entry's `capacity`.
|
|
1120
|
+
* - [add_value_prop](crate::dispatchables::add_value_prop), which appends a new value proposition to the entry's existing `value_prop` bounded vector.
|
|
1121
|
+
**/
|
|
1122
|
+
mainStorageProviders: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletStorageProvidersMainStorageProvider>>, [
|
|
1123
|
+
H256
|
|
1124
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1125
|
+
/**
|
|
1126
|
+
* The amount of Main Storage Providers that are currently registered in the runtime.
|
|
1127
|
+
*
|
|
1128
|
+
* This is used to keep track of the total amount of MSPs in the system.
|
|
1129
|
+
*
|
|
1130
|
+
* This storage is updated in:
|
|
1131
|
+
* - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds one to this storage if the account to confirm is a Main Storage Provider.
|
|
1132
|
+
* - [msp_sign_off](crate::dispatchables::msp_sign_off), which subtracts one from this storage.
|
|
1133
|
+
**/
|
|
1134
|
+
mspCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1135
|
+
/**
|
|
1136
|
+
* The mapping from an AccountId that requested to sign up to a tuple of the metadata with type of the request, and the block
|
|
1137
|
+
* number when the request was made.
|
|
1138
|
+
*
|
|
1139
|
+
* This is used for the two-step process of registering: when a user requests to register as a SP (either MSP or BSP),
|
|
1140
|
+
* that request with the metadata and the deposit held is stored here. When the user confirms the sign up, the
|
|
1141
|
+
* request is removed from this storage and the user is registered as a SP.
|
|
1142
|
+
*
|
|
1143
|
+
* This storage is updated in:
|
|
1144
|
+
* - [request_msp_sign_up](crate::dispatchables::request_msp_sign_up) and [request_bsp_sign_up](crate::dispatchables::request_bsp_sign_up), which add a new entry to the map.
|
|
1145
|
+
* - [confirm_sign_up](crate::dispatchables::confirm_sign_up) and [cancel_sign_up](crate::dispatchables::cancel_sign_up), which remove an existing entry from the map.
|
|
1146
|
+
**/
|
|
1147
|
+
signUpRequests: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletStorageProvidersStorageProvider, u32]>>>, [
|
|
1148
|
+
AccountId32
|
|
1149
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1150
|
+
/**
|
|
1151
|
+
* The total amount of storage capacity all BSPs have.
|
|
1152
|
+
*
|
|
1153
|
+
* This is used to keep track of the total amount of storage capacity all BSPs have in the system, which is also the
|
|
1154
|
+
* total amount of storage capacity that can be used by users if we factor in the replication factor.
|
|
1155
|
+
*
|
|
1156
|
+
* This storage is updated in:
|
|
1157
|
+
* - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds the capacity of the registered Storage Provider to this storage if the account to confirm is a Backup Storage Provider.
|
|
1158
|
+
* - [bsp_sign_off](crate::dispatchables::bsp_sign_off), which subtracts the capacity of the Backup Storage Provider to sign off from this storage.
|
|
1159
|
+
**/
|
|
1160
|
+
totalBspsCapacity: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1161
|
+
/**
|
|
1162
|
+
* The total amount of storage capacity of BSPs that is currently in use.
|
|
1163
|
+
*
|
|
1164
|
+
* This is used to keep track of the total amount of storage capacity that is currently in use by users, which is useful for
|
|
1165
|
+
* system metrics and also to calculate the current price of storage.
|
|
1166
|
+
**/
|
|
1167
|
+
usedBspsCapacity: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1168
|
+
/**
|
|
1169
|
+
* Generic query
|
|
1170
|
+
**/
|
|
1171
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1172
|
+
};
|
|
1173
|
+
randomness: {
|
|
1174
|
+
/**
|
|
1175
|
+
* Ensures the mandatory inherent was included in the block
|
|
1176
|
+
**/
|
|
1177
|
+
inherentIncluded: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1178
|
+
/**
|
|
1179
|
+
* Latest random seed obtained from the one epoch ago randomness from BABE, and the latest block that it can process randomness requests from
|
|
1180
|
+
**/
|
|
1181
|
+
latestOneEpochAgoRandomness: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[H256, u32]>>>, [
|
|
1182
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
1183
|
+
/**
|
|
1184
|
+
* Latest random seed obtained from the parent block randomness from BABE, and the latest block that it can process randomness requests from
|
|
1185
|
+
**/
|
|
1186
|
+
latestParentBlockRandomness: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[H256, u32]>>>, [
|
|
1187
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
1188
|
+
/**
|
|
1189
|
+
* Current relay epoch
|
|
1190
|
+
**/
|
|
1191
|
+
relayEpoch: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1192
|
+
/**
|
|
1193
|
+
* Generic query
|
|
1194
|
+
**/
|
|
1195
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1196
|
+
};
|
|
1197
|
+
session: {
|
|
1198
|
+
/**
|
|
1199
|
+
* Current index of the session.
|
|
1200
|
+
**/
|
|
1201
|
+
currentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1202
|
+
/**
|
|
1203
|
+
* Indices of disabled validators.
|
|
1204
|
+
*
|
|
1205
|
+
* The vec is always kept sorted so that we can find whether a given validator is
|
|
1206
|
+
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
|
1207
|
+
* a new set of identities.
|
|
1208
|
+
**/
|
|
1209
|
+
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1210
|
+
/**
|
|
1211
|
+
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
|
1212
|
+
**/
|
|
1213
|
+
keyOwner: AugmentedQuery<ApiType, (arg: ITuple<[SpCoreCryptoKeyTypeId, Bytes]> | [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]) => Observable<Option<AccountId32>>, [
|
|
1214
|
+
ITuple<[SpCoreCryptoKeyTypeId, Bytes]>
|
|
1215
|
+
]> & QueryableStorageEntry<ApiType, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]>;
|
|
1216
|
+
/**
|
|
1217
|
+
* The next session keys for a validator.
|
|
1218
|
+
**/
|
|
1219
|
+
nextKeys: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<StorageHubRuntimeSessionKeys>>, [
|
|
1220
|
+
AccountId32
|
|
1221
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1222
|
+
/**
|
|
1223
|
+
* True if the underlying economic identities or weighting behind the validators
|
|
1224
|
+
* has changed in the queued validator set.
|
|
1225
|
+
**/
|
|
1226
|
+
queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1227
|
+
/**
|
|
1228
|
+
* The queued keys for the next session. When the next session begins, these keys
|
|
1229
|
+
* will be used to determine the validator's session keys.
|
|
1230
|
+
**/
|
|
1231
|
+
queuedKeys: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[AccountId32, StorageHubRuntimeSessionKeys]>>>, [
|
|
1232
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
1233
|
+
/**
|
|
1234
|
+
* The current set of validators.
|
|
1235
|
+
**/
|
|
1236
|
+
validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1237
|
+
/**
|
|
1238
|
+
* Generic query
|
|
1239
|
+
**/
|
|
1240
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1241
|
+
};
|
|
1242
|
+
sudo: {
|
|
1243
|
+
/**
|
|
1244
|
+
* The `AccountId` of the sudo key.
|
|
1245
|
+
**/
|
|
1246
|
+
key: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1247
|
+
/**
|
|
1248
|
+
* Generic query
|
|
1249
|
+
**/
|
|
1250
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1251
|
+
};
|
|
1252
|
+
system: {
|
|
1253
|
+
/**
|
|
1254
|
+
* The full account information for a particular account ID.
|
|
1255
|
+
**/
|
|
1256
|
+
account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<FrameSystemAccountInfo>, [
|
|
1257
|
+
AccountId32
|
|
1258
|
+
]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1259
|
+
/**
|
|
1260
|
+
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
1261
|
+
**/
|
|
1262
|
+
allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1263
|
+
/**
|
|
1264
|
+
* `Some` if a code upgrade has been authorized.
|
|
1265
|
+
**/
|
|
1266
|
+
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>, [
|
|
1267
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
1268
|
+
/**
|
|
1269
|
+
* Map of block numbers to block hashes.
|
|
1270
|
+
**/
|
|
1271
|
+
blockHash: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<H256>, [
|
|
1272
|
+
u32
|
|
1273
|
+
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1274
|
+
/**
|
|
1275
|
+
* The current weight for the block.
|
|
1276
|
+
**/
|
|
1277
|
+
blockWeight: AugmentedQuery<ApiType, () => Observable<FrameSupportDispatchPerDispatchClassWeight>, [
|
|
1278
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
1279
|
+
/**
|
|
1280
|
+
* Digest of the current block, also part of the block header.
|
|
1281
|
+
**/
|
|
1282
|
+
digest: AugmentedQuery<ApiType, () => Observable<SpRuntimeDigest>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1283
|
+
/**
|
|
1284
|
+
* The number of events in the `Events<T>` list.
|
|
1285
|
+
**/
|
|
1286
|
+
eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1287
|
+
/**
|
|
1288
|
+
* Events deposited for the current block.
|
|
1289
|
+
*
|
|
1290
|
+
* NOTE: The item is unbound and should therefore never be read on chain.
|
|
1291
|
+
* It could otherwise inflate the PoV size of a block.
|
|
1292
|
+
*
|
|
1293
|
+
* Events have a large in-memory size. Box the events to not go out-of-memory
|
|
1294
|
+
* just in case someone still reads them from within the runtime.
|
|
1295
|
+
**/
|
|
1296
|
+
events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1297
|
+
/**
|
|
1298
|
+
* Mapping between a topic (represented by T::Hash) and a vector of indexes
|
|
1299
|
+
* of events in the `<Events<T>>` list.
|
|
1300
|
+
*
|
|
1301
|
+
* All topic vectors have deterministic storage locations depending on the topic. This
|
|
1302
|
+
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
|
1303
|
+
* in case of changes fetch the list of events of interest.
|
|
1304
|
+
*
|
|
1305
|
+
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
|
1306
|
+
* the `EventIndex` then in case if the topic has the same contents on the next block
|
|
1307
|
+
* no notification will be triggered thus the event might be lost.
|
|
1308
|
+
**/
|
|
1309
|
+
eventTopics: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u32]>>>, [
|
|
1310
|
+
H256
|
|
1311
|
+
]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1312
|
+
/**
|
|
1313
|
+
* The execution phase of the block.
|
|
1314
|
+
**/
|
|
1315
|
+
executionPhase: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemPhase>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1316
|
+
/**
|
|
1317
|
+
* Total extrinsics count for the current block.
|
|
1318
|
+
**/
|
|
1319
|
+
extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1320
|
+
/**
|
|
1321
|
+
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
1322
|
+
**/
|
|
1323
|
+
extrinsicData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [
|
|
1324
|
+
u32
|
|
1325
|
+
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1326
|
+
/**
|
|
1327
|
+
* Whether all inherents have been applied.
|
|
1328
|
+
**/
|
|
1329
|
+
inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1330
|
+
/**
|
|
1331
|
+
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
1332
|
+
**/
|
|
1333
|
+
lastRuntimeUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemLastRuntimeUpgradeInfo>>, [
|
|
1334
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
1335
|
+
/**
|
|
1336
|
+
* The current block number being processed. Set by `execute_block`.
|
|
1337
|
+
**/
|
|
1338
|
+
number: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1339
|
+
/**
|
|
1340
|
+
* Hash of the previous block.
|
|
1341
|
+
**/
|
|
1342
|
+
parentHash: AugmentedQuery<ApiType, () => Observable<H256>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1343
|
+
/**
|
|
1344
|
+
* True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
|
|
1345
|
+
* (default) if not.
|
|
1346
|
+
**/
|
|
1347
|
+
upgradedToTripleRefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1348
|
+
/**
|
|
1349
|
+
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
1350
|
+
**/
|
|
1351
|
+
upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1352
|
+
/**
|
|
1353
|
+
* Generic query
|
|
1354
|
+
**/
|
|
1355
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1356
|
+
};
|
|
1357
|
+
timestamp: {
|
|
1358
|
+
/**
|
|
1359
|
+
* Whether the timestamp has been updated in this block.
|
|
1360
|
+
*
|
|
1361
|
+
* This value is updated to `true` upon successful submission of a timestamp by a node.
|
|
1362
|
+
* It is then checked at the end of each block execution in the `on_finalize` hook.
|
|
1363
|
+
**/
|
|
1364
|
+
didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1365
|
+
/**
|
|
1366
|
+
* The current time for the current block.
|
|
1367
|
+
**/
|
|
1368
|
+
now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1369
|
+
/**
|
|
1370
|
+
* Generic query
|
|
1371
|
+
**/
|
|
1372
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1373
|
+
};
|
|
1374
|
+
transactionPayment: {
|
|
1375
|
+
nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1376
|
+
storageVersion: AugmentedQuery<ApiType, () => Observable<PalletTransactionPaymentReleases>, [
|
|
1377
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
1378
|
+
/**
|
|
1379
|
+
* Generic query
|
|
1380
|
+
**/
|
|
1381
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1382
|
+
};
|
|
1383
|
+
xcmpQueue: {
|
|
1384
|
+
/**
|
|
1385
|
+
* The factor to multiply the base delivery fee by.
|
|
1386
|
+
**/
|
|
1387
|
+
deliveryFeeFactor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<u128>, [
|
|
1388
|
+
u32
|
|
1389
|
+
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1390
|
+
/**
|
|
1391
|
+
* The suspended inbound XCMP channels. All others are not suspended.
|
|
1392
|
+
*
|
|
1393
|
+
* This is a `StorageValue` instead of a `StorageMap` since we expect multiple reads per block
|
|
1394
|
+
* to different keys with a one byte payload. The access to `BoundedBTreeSet` will be cached
|
|
1395
|
+
* within the block and therefore only included once in the proof size.
|
|
1396
|
+
*
|
|
1397
|
+
* NOTE: The PoV benchmarking cannot know this and will over-estimate, but the actual proof
|
|
1398
|
+
* will be smaller.
|
|
1399
|
+
**/
|
|
1400
|
+
inboundXcmpSuspended: AugmentedQuery<ApiType, () => Observable<BTreeSet<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1401
|
+
/**
|
|
1402
|
+
* The messages outbound in a given XCMP channel.
|
|
1403
|
+
**/
|
|
1404
|
+
outboundXcmpMessages: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u16 | AnyNumber | Uint8Array) => Observable<Bytes>, [
|
|
1405
|
+
u32,
|
|
1406
|
+
u16
|
|
1407
|
+
]> & QueryableStorageEntry<ApiType, [u32, u16]>;
|
|
1408
|
+
/**
|
|
1409
|
+
* The non-empty XCMP channels in order of becoming non-empty, and the index of the first
|
|
1410
|
+
* and last outbound message. If the two indices are equal, then it indicates an empty
|
|
1411
|
+
* queue and there must be a non-`Ok` `OutboundStatus`. We assume queues grow no greater
|
|
1412
|
+
* than 65535 items. Queue indices for normal messages begin at one; zero is reserved in
|
|
1413
|
+
* case of the need to send a high-priority signal message this block.
|
|
1414
|
+
* The bool is true if there is a signal message waiting to be sent.
|
|
1415
|
+
**/
|
|
1416
|
+
outboundXcmpStatus: AugmentedQuery<ApiType, () => Observable<Vec<CumulusPalletXcmpQueueOutboundChannelDetails>>, [
|
|
1417
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
1418
|
+
/**
|
|
1419
|
+
* The configuration which controls the dynamics of the outbound queue.
|
|
1420
|
+
**/
|
|
1421
|
+
queueConfig: AugmentedQuery<ApiType, () => Observable<CumulusPalletXcmpQueueQueueConfigData>, [
|
|
1422
|
+
]> & QueryableStorageEntry<ApiType, []>;
|
|
1423
|
+
/**
|
|
1424
|
+
* Whether or not the XCMP queue is suspended from executing incoming XCMs or not.
|
|
1425
|
+
**/
|
|
1426
|
+
queueSuspended: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1427
|
+
/**
|
|
1428
|
+
* Any signal messages waiting to be sent.
|
|
1429
|
+
**/
|
|
1430
|
+
signalMessages: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [
|
|
1431
|
+
u32
|
|
1432
|
+
]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1433
|
+
/**
|
|
1434
|
+
* Generic query
|
|
1435
|
+
**/
|
|
1436
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1437
|
+
};
|
|
1438
|
+
}
|
|
1439
|
+
}
|