@storagehub/api-augment 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/biome.json +2 -9
- package/dist/parachain/index.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-consts.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-errors.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-events.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-query.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-rpc.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-runtime.js.map +1 -0
- package/dist/parachain/interfaces/augment-api-tx.js.map +1 -0
- package/dist/parachain/interfaces/augment-api.js.map +1 -0
- package/dist/parachain/interfaces/augment-types.js.map +1 -0
- package/dist/parachain/interfaces/definitions.js.map +1 -0
- package/dist/parachain/interfaces/index.js.map +1 -0
- package/dist/{interfaces → parachain/interfaces}/lookup.js +1465 -813
- package/dist/parachain/interfaces/lookup.js.map +1 -0
- package/dist/parachain/interfaces/registry.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/definitions.js +7 -0
- package/dist/parachain/interfaces/storagehubclient/definitions.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/index.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/runtime.js.map +1 -0
- package/dist/parachain/interfaces/storagehubclient/types.js.map +1 -0
- package/dist/parachain/interfaces/types-lookup.js.map +1 -0
- package/dist/parachain/interfaces/types.js.map +1 -0
- package/dist/solochain-evm/index.js +4 -0
- package/dist/solochain-evm/index.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-consts.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-consts.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-errors.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-errors.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-events.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-events.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-query.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-query.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-rpc.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-rpc.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-runtime.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-runtime.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api-tx.js +6 -0
- package/dist/solochain-evm/interfaces/augment-api-tx.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-api.js +10 -0
- package/dist/solochain-evm/interfaces/augment-api.js.map +1 -0
- package/dist/solochain-evm/interfaces/augment-types.js +6 -0
- package/dist/solochain-evm/interfaces/augment-types.js.map +1 -0
- package/dist/solochain-evm/interfaces/definitions.js +2 -0
- package/dist/solochain-evm/interfaces/definitions.js.map +1 -0
- package/dist/solochain-evm/interfaces/index.js +4 -0
- package/dist/solochain-evm/interfaces/index.js.map +1 -0
- package/dist/solochain-evm/interfaces/lookup.js +3744 -0
- package/dist/solochain-evm/interfaces/lookup.js.map +1 -0
- package/dist/solochain-evm/interfaces/registry.js +6 -0
- package/dist/solochain-evm/interfaces/registry.js.map +1 -0
- package/dist/solochain-evm/interfaces/storagehubclient/definitions.js +7 -0
- package/dist/solochain-evm/interfaces/storagehubclient/definitions.js.map +1 -0
- package/dist/solochain-evm/interfaces/storagehubclient/index.js +4 -0
- package/dist/solochain-evm/interfaces/storagehubclient/index.js.map +1 -0
- package/dist/solochain-evm/interfaces/storagehubclient/types.js +4 -0
- package/dist/solochain-evm/interfaces/storagehubclient/types.js.map +1 -0
- package/dist/solochain-evm/interfaces/types-lookup.js +6 -0
- package/dist/solochain-evm/interfaces/types-lookup.js.map +1 -0
- package/dist/solochain-evm/interfaces/types.js +4 -0
- package/dist/solochain-evm/interfaces/types.js.map +1 -0
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-consts.d.ts +147 -20
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-errors.d.ts +235 -8
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-events.d.ts +542 -118
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-query.d.ts +208 -118
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-rpc.d.ts +61 -4
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-runtime.d.ts +97 -8
- package/dist/types/{interfaces → parachain/interfaces}/augment-api-tx.d.ts +356 -181
- package/dist/types/{interfaces → parachain/interfaces}/augment-types.d.ts +144 -11
- package/dist/types/{interfaces → parachain/interfaces}/lookup.d.ts +1067 -513
- package/dist/types/parachain/interfaces/registry.d.ts +311 -0
- package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/types.d.ts +129 -18
- package/dist/types/{interfaces → parachain/interfaces}/types-lookup.d.ts +1619 -887
- package/dist/types/solochain-evm/interfaces/augment-api-consts.d.ts +641 -0
- package/dist/types/solochain-evm/interfaces/augment-api-errors.d.ts +1260 -0
- package/dist/types/solochain-evm/interfaces/augment-api-events.d.ts +2058 -0
- package/dist/types/solochain-evm/interfaces/augment-api-query.d.ts +1317 -0
- package/dist/types/solochain-evm/interfaces/augment-api-rpc.d.ts +775 -0
- package/dist/types/solochain-evm/interfaces/augment-api-runtime.d.ts +535 -0
- package/dist/types/solochain-evm/interfaces/augment-api-tx.d.ts +2381 -0
- package/dist/types/solochain-evm/interfaces/augment-api.d.ts +7 -0
- package/dist/types/solochain-evm/interfaces/augment-types.d.ts +1418 -0
- package/dist/types/solochain-evm/interfaces/index.d.ts +1 -0
- package/dist/types/solochain-evm/interfaces/lookup.d.ts +3363 -0
- package/dist/types/solochain-evm/interfaces/registry.d.ts +252 -0
- package/dist/types/solochain-evm/interfaces/storagehubclient/definitions.d.ts +6 -0
- package/dist/types/solochain-evm/interfaces/storagehubclient/index.d.ts +1 -0
- package/dist/types/solochain-evm/interfaces/storagehubclient/types.d.ts +319 -0
- package/dist/types/solochain-evm/interfaces/types-lookup.d.ts +3577 -0
- package/dist/types/solochain-evm/interfaces/types.d.ts +1 -0
- package/metadata-sh-parachain.json +5 -0
- package/metadata-sh-solochain-evm.json +5 -0
- package/package.json +41 -26
- package/scripts/scrapeMetadata.ts +41 -29
- package/src/parachain/index.ts +3 -0
- package/src/{interfaces → parachain/interfaces}/augment-api-consts.ts +147 -20
- package/src/{interfaces → parachain/interfaces}/augment-api-errors.ts +235 -8
- package/src/{interfaces → parachain/interfaces}/augment-api-events.ts +527 -137
- package/src/{interfaces → parachain/interfaces}/augment-api-query.ts +272 -145
- package/src/{interfaces → parachain/interfaces}/augment-api-rpc.ts +123 -5
- package/src/{interfaces → parachain/interfaces}/augment-api-runtime.ts +183 -8
- package/src/{interfaces → parachain/interfaces}/augment-api-tx.ts +374 -182
- package/src/{interfaces → parachain/interfaces}/augment-types.ts +278 -12
- package/src/parachain/interfaces/definitions.ts +1 -0
- package/src/{interfaces → parachain/interfaces}/lookup.ts +1497 -813
- package/src/{interfaces → parachain/interfaces}/registry.ts +176 -98
- package/src/parachain/interfaces/storagehubclient/definitions.ts +7 -0
- package/src/{interfaces → parachain/interfaces}/storagehubclient/types.ts +158 -18
- package/src/{interfaces → parachain/interfaces}/types-lookup.ts +1970 -896
- package/src/solochain-evm/index.ts +3 -0
- package/src/solochain-evm/interfaces/augment-api-consts.ts +655 -0
- package/src/solochain-evm/interfaces/augment-api-errors.ts +1268 -0
- package/src/solochain-evm/interfaces/augment-api-events.ts +1813 -0
- package/src/solochain-evm/interfaces/augment-api-query.ts +1838 -0
- package/src/solochain-evm/interfaces/augment-api-rpc.ts +1319 -0
- package/src/solochain-evm/interfaces/augment-api-runtime.ts +958 -0
- package/src/solochain-evm/interfaces/augment-api-tx.ts +2818 -0
- package/src/solochain-evm/interfaces/augment-api.ts +10 -0
- package/src/solochain-evm/interfaces/augment-types.ts +2774 -0
- package/src/solochain-evm/interfaces/definitions.ts +1 -0
- package/src/solochain-evm/interfaces/index.ts +4 -0
- package/src/solochain-evm/interfaces/lookup.ts +3788 -0
- package/src/solochain-evm/interfaces/registry.ts +506 -0
- package/src/solochain-evm/interfaces/storagehubclient/definitions.ts +7 -0
- package/src/solochain-evm/interfaces/storagehubclient/index.ts +4 -0
- package/src/solochain-evm/interfaces/storagehubclient/types.ts +391 -0
- package/src/solochain-evm/interfaces/types-lookup.ts +4616 -0
- package/src/solochain-evm/interfaces/types.ts +4 -0
- package/tsconfig.json +17 -20
- package/tsconfig.parachain.json +17 -0
- package/tsconfig.solochain-evm.json +17 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/dist/index.js.map +0 -1
- package/dist/interfaces/augment-api-consts.js.map +0 -1
- package/dist/interfaces/augment-api-errors.js.map +0 -1
- package/dist/interfaces/augment-api-events.js.map +0 -1
- package/dist/interfaces/augment-api-query.js.map +0 -1
- package/dist/interfaces/augment-api-rpc.js.map +0 -1
- package/dist/interfaces/augment-api-runtime.js.map +0 -1
- package/dist/interfaces/augment-api-tx.js.map +0 -1
- package/dist/interfaces/augment-api.js.map +0 -1
- package/dist/interfaces/augment-types.js.map +0 -1
- package/dist/interfaces/definitions.js.map +0 -1
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/lookup.js.map +0 -1
- package/dist/interfaces/registry.js.map +0 -1
- package/dist/interfaces/storagehubclient/definitions.js +0 -7
- package/dist/interfaces/storagehubclient/definitions.js.map +0 -1
- package/dist/interfaces/storagehubclient/index.js.map +0 -1
- package/dist/interfaces/storagehubclient/runtime.js.map +0 -1
- package/dist/interfaces/storagehubclient/types.js.map +0 -1
- package/dist/interfaces/types-lookup.js.map +0 -1
- package/dist/interfaces/types.js.map +0 -1
- package/dist/types/interfaces/registry.d.ts +0 -272
- package/src/interfaces/storagehubclient/definitions.ts +0 -7
- package/storagehub.json +0 -1
- /package/dist/{index.js → parachain/index.js} +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-consts.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-errors.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-events.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-query.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-rpc.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-runtime.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api-tx.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-api.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/augment-types.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/definitions.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/index.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/registry.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/storagehubclient/index.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/storagehubclient/runtime.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/storagehubclient/types.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/types-lookup.js +0 -0
- /package/dist/{interfaces → parachain/interfaces}/types.js +0 -0
- /package/dist/types/{index.d.ts → parachain/index.d.ts} +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/augment-api.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/definitions.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/index.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/definitions.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/index.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/storagehubclient/runtime.d.ts +0 -0
- /package/dist/types/{interfaces → parachain/interfaces}/types.d.ts +0 -0
- /package/{src/index.ts → dist/types/solochain-evm/index.d.ts} +0 -0
- /package/{src/interfaces/definitions.ts → dist/types/solochain-evm/interfaces/definitions.d.ts} +0 -0
- /package/src/{interfaces → parachain/interfaces}/augment-api.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/index.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/storagehubclient/index.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/storagehubclient/runtime.ts +0 -0
- /package/src/{interfaces → parachain/interfaces}/types.ts +0 -0
|
@@ -0,0 +1,1838 @@
|
|
|
1
|
+
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
// import type lookup before we augment - in some environments
|
|
5
|
+
// this is required to allow for ambient/previous definitions
|
|
6
|
+
import "@polkadot/api-base/types/storage";
|
|
7
|
+
|
|
8
|
+
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from "@polkadot/api-base/types";
|
|
9
|
+
import type {
|
|
10
|
+
BTreeSet,
|
|
11
|
+
Bytes,
|
|
12
|
+
Null,
|
|
13
|
+
Option,
|
|
14
|
+
U256,
|
|
15
|
+
U8aFixed,
|
|
16
|
+
Vec,
|
|
17
|
+
bool,
|
|
18
|
+
u128,
|
|
19
|
+
u32,
|
|
20
|
+
u64,
|
|
21
|
+
u8
|
|
22
|
+
} from "@polkadot/types-codec";
|
|
23
|
+
import type { AnyNumber, ITuple } from "@polkadot/types-codec/types";
|
|
24
|
+
import type { AccountId20, H160, H256 } from "@polkadot/types/interfaces/runtime";
|
|
25
|
+
import type {
|
|
26
|
+
EthereumBlock,
|
|
27
|
+
EthereumReceiptReceiptV3,
|
|
28
|
+
EthereumTransactionTransactionV2,
|
|
29
|
+
FpRpcTransactionStatus,
|
|
30
|
+
FrameSupportDispatchPerDispatchClassWeight,
|
|
31
|
+
FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
|
|
32
|
+
FrameSupportTokensMiscIdAmountRuntimeHoldReason,
|
|
33
|
+
FrameSystemAccountInfo,
|
|
34
|
+
FrameSystemCodeUpgradeAuthorization,
|
|
35
|
+
FrameSystemEventRecord,
|
|
36
|
+
FrameSystemLastRuntimeUpgradeInfo,
|
|
37
|
+
FrameSystemPhase,
|
|
38
|
+
PalletBalancesAccountData,
|
|
39
|
+
PalletBalancesBalanceLock,
|
|
40
|
+
PalletBalancesReserveData,
|
|
41
|
+
PalletEvmCodeMetadata,
|
|
42
|
+
PalletFileSystemIncompleteStorageRequestMetadata,
|
|
43
|
+
PalletFileSystemMoveBucketRequestMetadata,
|
|
44
|
+
PalletFileSystemPendingFileDeletionRequest,
|
|
45
|
+
PalletFileSystemPendingStopStoringRequest,
|
|
46
|
+
PalletFileSystemStorageRequestBspsMetadata,
|
|
47
|
+
PalletFileSystemStorageRequestMetadata,
|
|
48
|
+
PalletGrandpaStoredPendingChange,
|
|
49
|
+
PalletGrandpaStoredState,
|
|
50
|
+
PalletNftsAttributeDeposit,
|
|
51
|
+
PalletNftsAttributeNamespace,
|
|
52
|
+
PalletNftsCollectionConfig,
|
|
53
|
+
PalletNftsCollectionDetails,
|
|
54
|
+
PalletNftsCollectionMetadata,
|
|
55
|
+
PalletNftsItemConfig,
|
|
56
|
+
PalletNftsItemDetails,
|
|
57
|
+
PalletNftsItemMetadata,
|
|
58
|
+
PalletNftsPendingSwap,
|
|
59
|
+
PalletPaymentStreamsDynamicRatePaymentStream,
|
|
60
|
+
PalletPaymentStreamsFixedRatePaymentStream,
|
|
61
|
+
PalletPaymentStreamsProviderLastChargeableInfo,
|
|
62
|
+
PalletProofsDealerCustomChallenge,
|
|
63
|
+
PalletProofsDealerProofSubmissionRecord,
|
|
64
|
+
PalletStorageProvidersBackupStorageProvider,
|
|
65
|
+
PalletStorageProvidersBucket,
|
|
66
|
+
PalletStorageProvidersMainStorageProvider,
|
|
67
|
+
PalletStorageProvidersSignUpRequest,
|
|
68
|
+
PalletStorageProvidersStorageProviderId,
|
|
69
|
+
PalletStorageProvidersTopUpMetadata,
|
|
70
|
+
PalletStorageProvidersValueProposition,
|
|
71
|
+
PalletTransactionPaymentReleases,
|
|
72
|
+
ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersKey,
|
|
73
|
+
ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersValue,
|
|
74
|
+
ShSolochainEvmRuntimeSessionKeys,
|
|
75
|
+
SpConsensusBabeAppPublic,
|
|
76
|
+
SpConsensusBabeBabeEpochConfiguration,
|
|
77
|
+
SpConsensusBabeDigestsNextConfigDescriptor,
|
|
78
|
+
SpConsensusBabeDigestsPreDigest,
|
|
79
|
+
SpConsensusGrandpaAppPublic,
|
|
80
|
+
SpCoreCryptoKeyTypeId,
|
|
81
|
+
SpRuntimeDigest,
|
|
82
|
+
SpStakingOffenceOffenceDetails,
|
|
83
|
+
SpWeightsWeightV2Weight
|
|
84
|
+
} from "@polkadot/types/lookup";
|
|
85
|
+
import type { Observable } from "@polkadot/types/types";
|
|
86
|
+
|
|
87
|
+
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
88
|
+
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
89
|
+
|
|
90
|
+
declare module "@polkadot/api-base/types/storage" {
|
|
91
|
+
interface AugmentedQueries<ApiType extends ApiTypes> {
|
|
92
|
+
authorship: {
|
|
93
|
+
/**
|
|
94
|
+
* Author of current block.
|
|
95
|
+
**/
|
|
96
|
+
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId20>>, []> &
|
|
97
|
+
QueryableStorageEntry<ApiType, []>;
|
|
98
|
+
/**
|
|
99
|
+
* Generic query
|
|
100
|
+
**/
|
|
101
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
102
|
+
};
|
|
103
|
+
babe: {
|
|
104
|
+
/**
|
|
105
|
+
* Current epoch authorities.
|
|
106
|
+
**/
|
|
107
|
+
authorities: AugmentedQuery<
|
|
108
|
+
ApiType,
|
|
109
|
+
() => Observable<Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>>,
|
|
110
|
+
[]
|
|
111
|
+
> &
|
|
112
|
+
QueryableStorageEntry<ApiType, []>;
|
|
113
|
+
/**
|
|
114
|
+
* This field should always be populated during block processing unless
|
|
115
|
+
* secondary plain slots are enabled (which don't contain a VRF output).
|
|
116
|
+
*
|
|
117
|
+
* It is set in `on_finalize`, before it will contain the value from the last block.
|
|
118
|
+
**/
|
|
119
|
+
authorVrfRandomness: AugmentedQuery<ApiType, () => Observable<Option<U8aFixed>>, []> &
|
|
120
|
+
QueryableStorageEntry<ApiType, []>;
|
|
121
|
+
/**
|
|
122
|
+
* Current slot number.
|
|
123
|
+
**/
|
|
124
|
+
currentSlot: AugmentedQuery<ApiType, () => Observable<u64>, []> &
|
|
125
|
+
QueryableStorageEntry<ApiType, []>;
|
|
126
|
+
/**
|
|
127
|
+
* The configuration for the current epoch. Should never be `None` as it is initialized in
|
|
128
|
+
* genesis.
|
|
129
|
+
**/
|
|
130
|
+
epochConfig: AugmentedQuery<
|
|
131
|
+
ApiType,
|
|
132
|
+
() => Observable<Option<SpConsensusBabeBabeEpochConfiguration>>,
|
|
133
|
+
[]
|
|
134
|
+
> &
|
|
135
|
+
QueryableStorageEntry<ApiType, []>;
|
|
136
|
+
/**
|
|
137
|
+
* Current epoch index.
|
|
138
|
+
**/
|
|
139
|
+
epochIndex: AugmentedQuery<ApiType, () => Observable<u64>, []> &
|
|
140
|
+
QueryableStorageEntry<ApiType, []>;
|
|
141
|
+
/**
|
|
142
|
+
* The block numbers when the last and current epoch have started, respectively `N-1` and
|
|
143
|
+
* `N`.
|
|
144
|
+
* NOTE: We track this is in order to annotate the block number when a given pool of
|
|
145
|
+
* entropy was fixed (i.e. it was known to chain observers). Since epochs are defined in
|
|
146
|
+
* slots, which may be skipped, the block numbers may not line up with the slot numbers.
|
|
147
|
+
**/
|
|
148
|
+
epochStart: AugmentedQuery<ApiType, () => Observable<ITuple<[u32, u32]>>, []> &
|
|
149
|
+
QueryableStorageEntry<ApiType, []>;
|
|
150
|
+
/**
|
|
151
|
+
* The slot at which the first epoch actually started. This is 0
|
|
152
|
+
* until the first block of the chain.
|
|
153
|
+
**/
|
|
154
|
+
genesisSlot: AugmentedQuery<ApiType, () => Observable<u64>, []> &
|
|
155
|
+
QueryableStorageEntry<ApiType, []>;
|
|
156
|
+
/**
|
|
157
|
+
* Temporary value (cleared at block finalization) which is `Some`
|
|
158
|
+
* if per-block initialization has already been called for current block.
|
|
159
|
+
**/
|
|
160
|
+
initialized: AugmentedQuery<
|
|
161
|
+
ApiType,
|
|
162
|
+
() => Observable<Option<Option<SpConsensusBabeDigestsPreDigest>>>,
|
|
163
|
+
[]
|
|
164
|
+
> &
|
|
165
|
+
QueryableStorageEntry<ApiType, []>;
|
|
166
|
+
/**
|
|
167
|
+
* How late the current block is compared to its parent.
|
|
168
|
+
*
|
|
169
|
+
* This entry is populated as part of block execution and is cleaned up
|
|
170
|
+
* on block finalization. Querying this storage entry outside of block
|
|
171
|
+
* execution context should always yield zero.
|
|
172
|
+
**/
|
|
173
|
+
lateness: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
174
|
+
QueryableStorageEntry<ApiType, []>;
|
|
175
|
+
/**
|
|
176
|
+
* Next epoch authorities.
|
|
177
|
+
**/
|
|
178
|
+
nextAuthorities: AugmentedQuery<
|
|
179
|
+
ApiType,
|
|
180
|
+
() => Observable<Vec<ITuple<[SpConsensusBabeAppPublic, u64]>>>,
|
|
181
|
+
[]
|
|
182
|
+
> &
|
|
183
|
+
QueryableStorageEntry<ApiType, []>;
|
|
184
|
+
/**
|
|
185
|
+
* The configuration for the next epoch, `None` if the config will not change
|
|
186
|
+
* (you can fallback to `EpochConfig` instead in that case).
|
|
187
|
+
**/
|
|
188
|
+
nextEpochConfig: AugmentedQuery<
|
|
189
|
+
ApiType,
|
|
190
|
+
() => Observable<Option<SpConsensusBabeBabeEpochConfiguration>>,
|
|
191
|
+
[]
|
|
192
|
+
> &
|
|
193
|
+
QueryableStorageEntry<ApiType, []>;
|
|
194
|
+
/**
|
|
195
|
+
* Next epoch randomness.
|
|
196
|
+
**/
|
|
197
|
+
nextRandomness: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []> &
|
|
198
|
+
QueryableStorageEntry<ApiType, []>;
|
|
199
|
+
/**
|
|
200
|
+
* Pending epoch configuration change that will be applied when the next epoch is enacted.
|
|
201
|
+
**/
|
|
202
|
+
pendingEpochConfigChange: AugmentedQuery<
|
|
203
|
+
ApiType,
|
|
204
|
+
() => Observable<Option<SpConsensusBabeDigestsNextConfigDescriptor>>,
|
|
205
|
+
[]
|
|
206
|
+
> &
|
|
207
|
+
QueryableStorageEntry<ApiType, []>;
|
|
208
|
+
/**
|
|
209
|
+
* The epoch randomness for the *current* epoch.
|
|
210
|
+
*
|
|
211
|
+
* # Security
|
|
212
|
+
*
|
|
213
|
+
* This MUST NOT be used for gambling, as it can be influenced by a
|
|
214
|
+
* malicious validator in the short term. It MAY be used in many
|
|
215
|
+
* cryptographic protocols, however, so long as one remembers that this
|
|
216
|
+
* (like everything else on-chain) it is public. For example, it can be
|
|
217
|
+
* used where a number is needed that cannot have been chosen by an
|
|
218
|
+
* adversary, for purposes such as public-coin zero-knowledge proofs.
|
|
219
|
+
**/
|
|
220
|
+
randomness: AugmentedQuery<ApiType, () => Observable<U8aFixed>, []> &
|
|
221
|
+
QueryableStorageEntry<ApiType, []>;
|
|
222
|
+
/**
|
|
223
|
+
* Randomness under construction.
|
|
224
|
+
*
|
|
225
|
+
* We make a trade-off between storage accesses and list length.
|
|
226
|
+
* We store the under-construction randomness in segments of up to
|
|
227
|
+
* `UNDER_CONSTRUCTION_SEGMENT_LENGTH`.
|
|
228
|
+
*
|
|
229
|
+
* Once a segment reaches this length, we begin the next one.
|
|
230
|
+
* We reset all segments and return to `0` at the beginning of every
|
|
231
|
+
* epoch.
|
|
232
|
+
**/
|
|
233
|
+
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
234
|
+
QueryableStorageEntry<ApiType, []>;
|
|
235
|
+
/**
|
|
236
|
+
* A list of the last 100 skipped epochs and the corresponding session index
|
|
237
|
+
* when the epoch was skipped.
|
|
238
|
+
*
|
|
239
|
+
* This is only used for validating equivocation proofs. An equivocation proof
|
|
240
|
+
* must contains a key-ownership proof for a given session, therefore we need a
|
|
241
|
+
* way to tie together sessions and epoch indices, i.e. we need to validate that
|
|
242
|
+
* a validator was the owner of a given key on a given session, and what the
|
|
243
|
+
* active epoch index was during that session.
|
|
244
|
+
**/
|
|
245
|
+
skippedEpochs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []> &
|
|
246
|
+
QueryableStorageEntry<ApiType, []>;
|
|
247
|
+
/**
|
|
248
|
+
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
|
249
|
+
**/
|
|
250
|
+
underConstruction: AugmentedQuery<
|
|
251
|
+
ApiType,
|
|
252
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<U8aFixed>>,
|
|
253
|
+
[u32]
|
|
254
|
+
> &
|
|
255
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
256
|
+
/**
|
|
257
|
+
* Generic query
|
|
258
|
+
**/
|
|
259
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
260
|
+
};
|
|
261
|
+
balances: {
|
|
262
|
+
/**
|
|
263
|
+
* The Balances pallet example of storing the balance of an account.
|
|
264
|
+
*
|
|
265
|
+
* # Example
|
|
266
|
+
*
|
|
267
|
+
* ```nocompile
|
|
268
|
+
* impl pallet_balances::Config for Runtime {
|
|
269
|
+
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
|
270
|
+
* }
|
|
271
|
+
* ```
|
|
272
|
+
*
|
|
273
|
+
* You can also store the balance of an account in the `System` pallet.
|
|
274
|
+
*
|
|
275
|
+
* # Example
|
|
276
|
+
*
|
|
277
|
+
* ```nocompile
|
|
278
|
+
* impl pallet_balances::Config for Runtime {
|
|
279
|
+
* type AccountStore = System
|
|
280
|
+
* }
|
|
281
|
+
* ```
|
|
282
|
+
*
|
|
283
|
+
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
|
284
|
+
* `frame_system` data alongside the account data contrary to storing account balances in the
|
|
285
|
+
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
|
286
|
+
* NOTE: This is only used in the case that this pallet is used to store balances.
|
|
287
|
+
**/
|
|
288
|
+
account: AugmentedQuery<
|
|
289
|
+
ApiType,
|
|
290
|
+
(arg: AccountId20 | string | Uint8Array) => Observable<PalletBalancesAccountData>,
|
|
291
|
+
[AccountId20]
|
|
292
|
+
> &
|
|
293
|
+
QueryableStorageEntry<ApiType, [AccountId20]>;
|
|
294
|
+
/**
|
|
295
|
+
* Freeze locks on account balances.
|
|
296
|
+
**/
|
|
297
|
+
freezes: AugmentedQuery<
|
|
298
|
+
ApiType,
|
|
299
|
+
(
|
|
300
|
+
arg: AccountId20 | string | Uint8Array
|
|
301
|
+
) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeFreezeReason>>,
|
|
302
|
+
[AccountId20]
|
|
303
|
+
> &
|
|
304
|
+
QueryableStorageEntry<ApiType, [AccountId20]>;
|
|
305
|
+
/**
|
|
306
|
+
* Holds on account balances.
|
|
307
|
+
**/
|
|
308
|
+
holds: AugmentedQuery<
|
|
309
|
+
ApiType,
|
|
310
|
+
(
|
|
311
|
+
arg: AccountId20 | string | Uint8Array
|
|
312
|
+
) => Observable<Vec<FrameSupportTokensMiscIdAmountRuntimeHoldReason>>,
|
|
313
|
+
[AccountId20]
|
|
314
|
+
> &
|
|
315
|
+
QueryableStorageEntry<ApiType, [AccountId20]>;
|
|
316
|
+
/**
|
|
317
|
+
* The total units of outstanding deactivated balance in the system.
|
|
318
|
+
**/
|
|
319
|
+
inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> &
|
|
320
|
+
QueryableStorageEntry<ApiType, []>;
|
|
321
|
+
/**
|
|
322
|
+
* Any liquidity locks on some account balances.
|
|
323
|
+
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
324
|
+
*
|
|
325
|
+
* Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
326
|
+
**/
|
|
327
|
+
locks: AugmentedQuery<
|
|
328
|
+
ApiType,
|
|
329
|
+
(arg: AccountId20 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>,
|
|
330
|
+
[AccountId20]
|
|
331
|
+
> &
|
|
332
|
+
QueryableStorageEntry<ApiType, [AccountId20]>;
|
|
333
|
+
/**
|
|
334
|
+
* Named reserves on some account balances.
|
|
335
|
+
*
|
|
336
|
+
* Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
|
|
337
|
+
**/
|
|
338
|
+
reserves: AugmentedQuery<
|
|
339
|
+
ApiType,
|
|
340
|
+
(arg: AccountId20 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>,
|
|
341
|
+
[AccountId20]
|
|
342
|
+
> &
|
|
343
|
+
QueryableStorageEntry<ApiType, [AccountId20]>;
|
|
344
|
+
/**
|
|
345
|
+
* The total units issued in the system.
|
|
346
|
+
**/
|
|
347
|
+
totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> &
|
|
348
|
+
QueryableStorageEntry<ApiType, []>;
|
|
349
|
+
/**
|
|
350
|
+
* Generic query
|
|
351
|
+
**/
|
|
352
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
353
|
+
};
|
|
354
|
+
ethereum: {
|
|
355
|
+
blockHash: AugmentedQuery<
|
|
356
|
+
ApiType,
|
|
357
|
+
(arg: U256 | AnyNumber | Uint8Array) => Observable<H256>,
|
|
358
|
+
[U256]
|
|
359
|
+
> &
|
|
360
|
+
QueryableStorageEntry<ApiType, [U256]>;
|
|
361
|
+
/**
|
|
362
|
+
* Counter for the related counted storage map
|
|
363
|
+
**/
|
|
364
|
+
counterForPending: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
365
|
+
QueryableStorageEntry<ApiType, []>;
|
|
366
|
+
/**
|
|
367
|
+
* The current Ethereum block.
|
|
368
|
+
**/
|
|
369
|
+
currentBlock: AugmentedQuery<ApiType, () => Observable<Option<EthereumBlock>>, []> &
|
|
370
|
+
QueryableStorageEntry<ApiType, []>;
|
|
371
|
+
/**
|
|
372
|
+
* The current Ethereum receipts.
|
|
373
|
+
**/
|
|
374
|
+
currentReceipts: AugmentedQuery<
|
|
375
|
+
ApiType,
|
|
376
|
+
() => Observable<Option<Vec<EthereumReceiptReceiptV3>>>,
|
|
377
|
+
[]
|
|
378
|
+
> &
|
|
379
|
+
QueryableStorageEntry<ApiType, []>;
|
|
380
|
+
/**
|
|
381
|
+
* The current transaction statuses.
|
|
382
|
+
**/
|
|
383
|
+
currentTransactionStatuses: AugmentedQuery<
|
|
384
|
+
ApiType,
|
|
385
|
+
() => Observable<Option<Vec<FpRpcTransactionStatus>>>,
|
|
386
|
+
[]
|
|
387
|
+
> &
|
|
388
|
+
QueryableStorageEntry<ApiType, []>;
|
|
389
|
+
/**
|
|
390
|
+
* Mapping from transaction index to transaction in the current building block.
|
|
391
|
+
**/
|
|
392
|
+
pending: AugmentedQuery<
|
|
393
|
+
ApiType,
|
|
394
|
+
(
|
|
395
|
+
arg: u32 | AnyNumber | Uint8Array
|
|
396
|
+
) => Observable<
|
|
397
|
+
Option<
|
|
398
|
+
ITuple<
|
|
399
|
+
[EthereumTransactionTransactionV2, FpRpcTransactionStatus, EthereumReceiptReceiptV3]
|
|
400
|
+
>
|
|
401
|
+
>
|
|
402
|
+
>,
|
|
403
|
+
[u32]
|
|
404
|
+
> &
|
|
405
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
406
|
+
/**
|
|
407
|
+
* Generic query
|
|
408
|
+
**/
|
|
409
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
410
|
+
};
|
|
411
|
+
evm: {
|
|
412
|
+
accountCodes: AugmentedQuery<
|
|
413
|
+
ApiType,
|
|
414
|
+
(arg: H160 | string | Uint8Array) => Observable<Bytes>,
|
|
415
|
+
[H160]
|
|
416
|
+
> &
|
|
417
|
+
QueryableStorageEntry<ApiType, [H160]>;
|
|
418
|
+
accountCodesMetadata: AugmentedQuery<
|
|
419
|
+
ApiType,
|
|
420
|
+
(arg: H160 | string | Uint8Array) => Observable<Option<PalletEvmCodeMetadata>>,
|
|
421
|
+
[H160]
|
|
422
|
+
> &
|
|
423
|
+
QueryableStorageEntry<ApiType, [H160]>;
|
|
424
|
+
accountStorages: AugmentedQuery<
|
|
425
|
+
ApiType,
|
|
426
|
+
(arg1: H160 | string | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<H256>,
|
|
427
|
+
[H160, H256]
|
|
428
|
+
> &
|
|
429
|
+
QueryableStorageEntry<ApiType, [H160, H256]>;
|
|
430
|
+
/**
|
|
431
|
+
* Generic query
|
|
432
|
+
**/
|
|
433
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
434
|
+
};
|
|
435
|
+
evmChainId: {
|
|
436
|
+
/**
|
|
437
|
+
* The EVM chain ID.
|
|
438
|
+
**/
|
|
439
|
+
chainId: AugmentedQuery<ApiType, () => Observable<u64>, []> &
|
|
440
|
+
QueryableStorageEntry<ApiType, []>;
|
|
441
|
+
/**
|
|
442
|
+
* Generic query
|
|
443
|
+
**/
|
|
444
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
445
|
+
};
|
|
446
|
+
fileSystem: {
|
|
447
|
+
/**
|
|
448
|
+
* Bookkeeping of the buckets containing open storage requests.
|
|
449
|
+
**/
|
|
450
|
+
bucketsWithStorageRequests: AugmentedQuery<
|
|
451
|
+
ApiType,
|
|
452
|
+
(
|
|
453
|
+
arg1: H256 | string | Uint8Array,
|
|
454
|
+
arg2: H256 | string | Uint8Array
|
|
455
|
+
) => Observable<Option<Null>>,
|
|
456
|
+
[H256, H256]
|
|
457
|
+
> &
|
|
458
|
+
QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
459
|
+
/**
|
|
460
|
+
* Incomplete storage requests with pending provider file removal.
|
|
461
|
+
*
|
|
462
|
+
* This mapping tracks storage requests that have been expired or rejected but still have
|
|
463
|
+
* confirmed providers storing files. Each entry tracks which providers still need to remove
|
|
464
|
+
* their files. Once all providers have removed their files, the entry is automatically cleaned up.
|
|
465
|
+
**/
|
|
466
|
+
incompleteStorageRequests: AugmentedQuery<
|
|
467
|
+
ApiType,
|
|
468
|
+
(
|
|
469
|
+
arg: H256 | string | Uint8Array
|
|
470
|
+
) => Observable<Option<PalletFileSystemIncompleteStorageRequestMetadata>>,
|
|
471
|
+
[H256]
|
|
472
|
+
> &
|
|
473
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
474
|
+
/**
|
|
475
|
+
* A map of ticks to expired move bucket requests.
|
|
476
|
+
**/
|
|
477
|
+
moveBucketRequestExpirations: AugmentedQuery<
|
|
478
|
+
ApiType,
|
|
479
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<H256>>,
|
|
480
|
+
[u32]
|
|
481
|
+
> &
|
|
482
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
483
|
+
/**
|
|
484
|
+
* Mapping from MSPs to the amount of pending file deletion requests they have.
|
|
485
|
+
*
|
|
486
|
+
* This is used to keep track of the amount of pending file deletion requests each MSP has, so that MSPs are removed
|
|
487
|
+
* from the privileged providers list if they have at least one, and are added back if they have none.
|
|
488
|
+
* This is to ensure that MSPs are correctly incentivised to submit the required proofs for file deletions.
|
|
489
|
+
**/
|
|
490
|
+
mspsAmountOfPendingFileDeletionRequests: AugmentedQuery<
|
|
491
|
+
ApiType,
|
|
492
|
+
(arg: H256 | string | Uint8Array) => Observable<u32>,
|
|
493
|
+
[H256]
|
|
494
|
+
> &
|
|
495
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
496
|
+
/**
|
|
497
|
+
* A pointer to the earliest available tick to insert a new move bucket request expiration.
|
|
498
|
+
*
|
|
499
|
+
* This should always be greater or equal than current tick + [`Config::MoveBucketRequestTtl`].
|
|
500
|
+
**/
|
|
501
|
+
nextAvailableMoveBucketRequestExpirationTick: AugmentedQuery<
|
|
502
|
+
ApiType,
|
|
503
|
+
() => Observable<u32>,
|
|
504
|
+
[]
|
|
505
|
+
> &
|
|
506
|
+
QueryableStorageEntry<ApiType, []>;
|
|
507
|
+
/**
|
|
508
|
+
* A pointer to the earliest available tick to insert a new storage request expiration.
|
|
509
|
+
*
|
|
510
|
+
* This should always be greater or equal than current tick + [`Config::StorageRequestTtl`].
|
|
511
|
+
**/
|
|
512
|
+
nextAvailableStorageRequestExpirationTick: AugmentedQuery<
|
|
513
|
+
ApiType,
|
|
514
|
+
() => Observable<u32>,
|
|
515
|
+
[]
|
|
516
|
+
> &
|
|
517
|
+
QueryableStorageEntry<ApiType, []>;
|
|
518
|
+
/**
|
|
519
|
+
* A pointer to the starting tick to clean up expired items.
|
|
520
|
+
*
|
|
521
|
+
* If this tick is behind the current tick number, the cleanup algorithm in `on_idle` will
|
|
522
|
+
* attempt to advance this tick pointer as close to or up to the current tick number. This
|
|
523
|
+
* will execute provided that there is enough remaining weight to do so.
|
|
524
|
+
**/
|
|
525
|
+
nextStartingTickToCleanUp: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
526
|
+
QueryableStorageEntry<ApiType, []>;
|
|
527
|
+
/**
|
|
528
|
+
* Pending file deletion requests.
|
|
529
|
+
*
|
|
530
|
+
* A mapping from a user Account ID to a list of pending file deletion requests (which have the file information).
|
|
531
|
+
**/
|
|
532
|
+
pendingFileDeletionRequests: AugmentedQuery<
|
|
533
|
+
ApiType,
|
|
534
|
+
(
|
|
535
|
+
arg: AccountId20 | string | Uint8Array
|
|
536
|
+
) => Observable<Vec<PalletFileSystemPendingFileDeletionRequest>>,
|
|
537
|
+
[AccountId20]
|
|
538
|
+
> &
|
|
539
|
+
QueryableStorageEntry<ApiType, [AccountId20]>;
|
|
540
|
+
/**
|
|
541
|
+
* Pending move bucket requests.
|
|
542
|
+
*
|
|
543
|
+
* A mapping from Bucket ID to their move bucket request metadata, which includes the new MSP
|
|
544
|
+
* and value propositions that this bucket would take if accepted.
|
|
545
|
+
**/
|
|
546
|
+
pendingMoveBucketRequests: AugmentedQuery<
|
|
547
|
+
ApiType,
|
|
548
|
+
(
|
|
549
|
+
arg: H256 | string | Uint8Array
|
|
550
|
+
) => Observable<Option<PalletFileSystemMoveBucketRequestMetadata>>,
|
|
551
|
+
[H256]
|
|
552
|
+
> &
|
|
553
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
554
|
+
/**
|
|
555
|
+
* Pending file stop storing requests.
|
|
556
|
+
*
|
|
557
|
+
* 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,
|
|
558
|
+
* the proven size of the file and the owner of the file.
|
|
559
|
+
* The block number is used to avoid BSPs being able to stop storing files immediately which would allow them to avoid challenges
|
|
560
|
+
* of missing files. The size is to be able to decrease their used capacity when they confirm to stop storing the file.
|
|
561
|
+
* The owner is to be able to update the payment stream between the user and the BSP.
|
|
562
|
+
**/
|
|
563
|
+
pendingStopStoringRequests: AugmentedQuery<
|
|
564
|
+
ApiType,
|
|
565
|
+
(
|
|
566
|
+
arg1: H256 | string | Uint8Array,
|
|
567
|
+
arg2: H256 | string | Uint8Array
|
|
568
|
+
) => Observable<Option<PalletFileSystemPendingStopStoringRequest>>,
|
|
569
|
+
[H256, H256]
|
|
570
|
+
> &
|
|
571
|
+
QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
572
|
+
/**
|
|
573
|
+
* A double map from file key to the BSP IDs of the BSPs that volunteered to store the file to whether that BSP has confirmed storing it.
|
|
574
|
+
*
|
|
575
|
+
* Any BSP under a file key prefix is considered to be a volunteer and can be removed at any time.
|
|
576
|
+
* Once a BSP submits a valid proof via the `bsp_confirm_storing` extrinsic, the `confirmed` field in [`StorageRequestBspsMetadata`] will be set to `true`.
|
|
577
|
+
*
|
|
578
|
+
* When a storage request is expired or removed, the corresponding file key prefix in this map is removed.
|
|
579
|
+
**/
|
|
580
|
+
storageRequestBsps: AugmentedQuery<
|
|
581
|
+
ApiType,
|
|
582
|
+
(
|
|
583
|
+
arg1: H256 | string | Uint8Array,
|
|
584
|
+
arg2: H256 | string | Uint8Array
|
|
585
|
+
) => Observable<Option<PalletFileSystemStorageRequestBspsMetadata>>,
|
|
586
|
+
[H256, H256]
|
|
587
|
+
> &
|
|
588
|
+
QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
589
|
+
/**
|
|
590
|
+
* A map of ticks to expired storage requests.
|
|
591
|
+
**/
|
|
592
|
+
storageRequestExpirations: AugmentedQuery<
|
|
593
|
+
ApiType,
|
|
594
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<H256>>,
|
|
595
|
+
[u32]
|
|
596
|
+
> &
|
|
597
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
598
|
+
storageRequests: AugmentedQuery<
|
|
599
|
+
ApiType,
|
|
600
|
+
(
|
|
601
|
+
arg: H256 | string | Uint8Array
|
|
602
|
+
) => Observable<Option<PalletFileSystemStorageRequestMetadata>>,
|
|
603
|
+
[H256]
|
|
604
|
+
> &
|
|
605
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
606
|
+
/**
|
|
607
|
+
* Generic query
|
|
608
|
+
**/
|
|
609
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
610
|
+
};
|
|
611
|
+
grandpa: {
|
|
612
|
+
/**
|
|
613
|
+
* The current list of authorities.
|
|
614
|
+
**/
|
|
615
|
+
authorities: AugmentedQuery<
|
|
616
|
+
ApiType,
|
|
617
|
+
() => Observable<Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>>,
|
|
618
|
+
[]
|
|
619
|
+
> &
|
|
620
|
+
QueryableStorageEntry<ApiType, []>;
|
|
621
|
+
/**
|
|
622
|
+
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
|
623
|
+
* in the "set" of Grandpa validators from genesis.
|
|
624
|
+
**/
|
|
625
|
+
currentSetId: AugmentedQuery<ApiType, () => Observable<u64>, []> &
|
|
626
|
+
QueryableStorageEntry<ApiType, []>;
|
|
627
|
+
/**
|
|
628
|
+
* next block number where we can force a change.
|
|
629
|
+
**/
|
|
630
|
+
nextForced: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> &
|
|
631
|
+
QueryableStorageEntry<ApiType, []>;
|
|
632
|
+
/**
|
|
633
|
+
* Pending change: (signaled at, scheduled change).
|
|
634
|
+
**/
|
|
635
|
+
pendingChange: AugmentedQuery<
|
|
636
|
+
ApiType,
|
|
637
|
+
() => Observable<Option<PalletGrandpaStoredPendingChange>>,
|
|
638
|
+
[]
|
|
639
|
+
> &
|
|
640
|
+
QueryableStorageEntry<ApiType, []>;
|
|
641
|
+
/**
|
|
642
|
+
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
|
643
|
+
* members were responsible.
|
|
644
|
+
*
|
|
645
|
+
* This is only used for validating equivocation proofs. An equivocation proof must
|
|
646
|
+
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
|
647
|
+
* together sessions and GRANDPA set ids, i.e. we need to validate that a validator
|
|
648
|
+
* was the owner of a given key on a given session, and what the active set ID was
|
|
649
|
+
* during that session.
|
|
650
|
+
*
|
|
651
|
+
* TWOX-NOTE: `SetId` is not under user control.
|
|
652
|
+
**/
|
|
653
|
+
setIdSession: AugmentedQuery<
|
|
654
|
+
ApiType,
|
|
655
|
+
(arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>,
|
|
656
|
+
[u64]
|
|
657
|
+
> &
|
|
658
|
+
QueryableStorageEntry<ApiType, [u64]>;
|
|
659
|
+
/**
|
|
660
|
+
* `true` if we are currently stalled.
|
|
661
|
+
**/
|
|
662
|
+
stalled: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> &
|
|
663
|
+
QueryableStorageEntry<ApiType, []>;
|
|
664
|
+
/**
|
|
665
|
+
* State of the current authority set.
|
|
666
|
+
**/
|
|
667
|
+
state: AugmentedQuery<ApiType, () => Observable<PalletGrandpaStoredState>, []> &
|
|
668
|
+
QueryableStorageEntry<ApiType, []>;
|
|
669
|
+
/**
|
|
670
|
+
* Generic query
|
|
671
|
+
**/
|
|
672
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
673
|
+
};
|
|
674
|
+
historical: {
|
|
675
|
+
/**
|
|
676
|
+
* Mapping from historical session indices to session-data root hash and validator count.
|
|
677
|
+
**/
|
|
678
|
+
historicalSessions: AugmentedQuery<
|
|
679
|
+
ApiType,
|
|
680
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[H256, u32]>>>,
|
|
681
|
+
[u32]
|
|
682
|
+
> &
|
|
683
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
684
|
+
/**
|
|
685
|
+
* The range of historical sessions we store. [first, last)
|
|
686
|
+
**/
|
|
687
|
+
storedRange: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> &
|
|
688
|
+
QueryableStorageEntry<ApiType, []>;
|
|
689
|
+
/**
|
|
690
|
+
* Generic query
|
|
691
|
+
**/
|
|
692
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
693
|
+
};
|
|
694
|
+
nfts: {
|
|
695
|
+
/**
|
|
696
|
+
* The items held by any given account; set out this way so that items owned by a single
|
|
697
|
+
* account can be enumerated.
|
|
698
|
+
**/
|
|
699
|
+
account: AugmentedQuery<
|
|
700
|
+
ApiType,
|
|
701
|
+
(
|
|
702
|
+
arg1: AccountId20 | string | Uint8Array,
|
|
703
|
+
arg2: u32 | AnyNumber | Uint8Array,
|
|
704
|
+
arg3: u32 | AnyNumber | Uint8Array
|
|
705
|
+
) => Observable<Option<Null>>,
|
|
706
|
+
[AccountId20, u32, u32]
|
|
707
|
+
> &
|
|
708
|
+
QueryableStorageEntry<ApiType, [AccountId20, u32, u32]>;
|
|
709
|
+
/**
|
|
710
|
+
* Attributes of a collection.
|
|
711
|
+
**/
|
|
712
|
+
attribute: AugmentedQuery<
|
|
713
|
+
ApiType,
|
|
714
|
+
(
|
|
715
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
716
|
+
arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber,
|
|
717
|
+
arg3:
|
|
718
|
+
| PalletNftsAttributeNamespace
|
|
719
|
+
| { Pallet: any }
|
|
720
|
+
| { CollectionOwner: any }
|
|
721
|
+
| { ItemOwner: any }
|
|
722
|
+
| { Account: any }
|
|
723
|
+
| string
|
|
724
|
+
| Uint8Array,
|
|
725
|
+
arg4: Bytes | string | Uint8Array
|
|
726
|
+
) => Observable<Option<ITuple<[Bytes, PalletNftsAttributeDeposit]>>>,
|
|
727
|
+
[u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]
|
|
728
|
+
> &
|
|
729
|
+
QueryableStorageEntry<ApiType, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]>;
|
|
730
|
+
/**
|
|
731
|
+
* Details of a collection.
|
|
732
|
+
**/
|
|
733
|
+
collection: AugmentedQuery<
|
|
734
|
+
ApiType,
|
|
735
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsCollectionDetails>>,
|
|
736
|
+
[u32]
|
|
737
|
+
> &
|
|
738
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
739
|
+
/**
|
|
740
|
+
* The collections owned by any given account; set out this way so that collections owned by
|
|
741
|
+
* a single account can be enumerated.
|
|
742
|
+
**/
|
|
743
|
+
collectionAccount: AugmentedQuery<
|
|
744
|
+
ApiType,
|
|
745
|
+
(
|
|
746
|
+
arg1: AccountId20 | string | Uint8Array,
|
|
747
|
+
arg2: u32 | AnyNumber | Uint8Array
|
|
748
|
+
) => Observable<Option<Null>>,
|
|
749
|
+
[AccountId20, u32]
|
|
750
|
+
> &
|
|
751
|
+
QueryableStorageEntry<ApiType, [AccountId20, u32]>;
|
|
752
|
+
/**
|
|
753
|
+
* Config of a collection.
|
|
754
|
+
**/
|
|
755
|
+
collectionConfigOf: AugmentedQuery<
|
|
756
|
+
ApiType,
|
|
757
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsCollectionConfig>>,
|
|
758
|
+
[u32]
|
|
759
|
+
> &
|
|
760
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
761
|
+
/**
|
|
762
|
+
* Metadata of a collection.
|
|
763
|
+
**/
|
|
764
|
+
collectionMetadataOf: AugmentedQuery<
|
|
765
|
+
ApiType,
|
|
766
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNftsCollectionMetadata>>,
|
|
767
|
+
[u32]
|
|
768
|
+
> &
|
|
769
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
770
|
+
/**
|
|
771
|
+
* The items in existence and their ownership details.
|
|
772
|
+
* Stores collection roles as per account.
|
|
773
|
+
**/
|
|
774
|
+
collectionRoleOf: AugmentedQuery<
|
|
775
|
+
ApiType,
|
|
776
|
+
(
|
|
777
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
778
|
+
arg2: AccountId20 | string | Uint8Array
|
|
779
|
+
) => Observable<Option<u8>>,
|
|
780
|
+
[u32, AccountId20]
|
|
781
|
+
> &
|
|
782
|
+
QueryableStorageEntry<ApiType, [u32, AccountId20]>;
|
|
783
|
+
/**
|
|
784
|
+
* The items in existence and their ownership details.
|
|
785
|
+
**/
|
|
786
|
+
item: AugmentedQuery<
|
|
787
|
+
ApiType,
|
|
788
|
+
(
|
|
789
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
790
|
+
arg2: u32 | AnyNumber | Uint8Array
|
|
791
|
+
) => Observable<Option<PalletNftsItemDetails>>,
|
|
792
|
+
[u32, u32]
|
|
793
|
+
> &
|
|
794
|
+
QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
795
|
+
/**
|
|
796
|
+
* Item attribute approvals.
|
|
797
|
+
**/
|
|
798
|
+
itemAttributesApprovalsOf: AugmentedQuery<
|
|
799
|
+
ApiType,
|
|
800
|
+
(
|
|
801
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
802
|
+
arg2: u32 | AnyNumber | Uint8Array
|
|
803
|
+
) => Observable<BTreeSet<AccountId20>>,
|
|
804
|
+
[u32, u32]
|
|
805
|
+
> &
|
|
806
|
+
QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
807
|
+
/**
|
|
808
|
+
* Config of an item.
|
|
809
|
+
**/
|
|
810
|
+
itemConfigOf: AugmentedQuery<
|
|
811
|
+
ApiType,
|
|
812
|
+
(
|
|
813
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
814
|
+
arg2: u32 | AnyNumber | Uint8Array
|
|
815
|
+
) => Observable<Option<PalletNftsItemConfig>>,
|
|
816
|
+
[u32, u32]
|
|
817
|
+
> &
|
|
818
|
+
QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
819
|
+
/**
|
|
820
|
+
* Metadata of an item.
|
|
821
|
+
**/
|
|
822
|
+
itemMetadataOf: AugmentedQuery<
|
|
823
|
+
ApiType,
|
|
824
|
+
(
|
|
825
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
826
|
+
arg2: u32 | AnyNumber | Uint8Array
|
|
827
|
+
) => Observable<Option<PalletNftsItemMetadata>>,
|
|
828
|
+
[u32, u32]
|
|
829
|
+
> &
|
|
830
|
+
QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
831
|
+
/**
|
|
832
|
+
* A price of an item.
|
|
833
|
+
**/
|
|
834
|
+
itemPriceOf: AugmentedQuery<
|
|
835
|
+
ApiType,
|
|
836
|
+
(
|
|
837
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
838
|
+
arg2: u32 | AnyNumber | Uint8Array
|
|
839
|
+
) => Observable<Option<ITuple<[u128, Option<AccountId20>]>>>,
|
|
840
|
+
[u32, u32]
|
|
841
|
+
> &
|
|
842
|
+
QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
843
|
+
/**
|
|
844
|
+
* Stores the `CollectionId` that is going to be used for the next collection.
|
|
845
|
+
* This gets incremented whenever a new collection is created.
|
|
846
|
+
**/
|
|
847
|
+
nextCollectionId: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> &
|
|
848
|
+
QueryableStorageEntry<ApiType, []>;
|
|
849
|
+
/**
|
|
850
|
+
* The collection, if any, of which an account is willing to take ownership.
|
|
851
|
+
**/
|
|
852
|
+
ownershipAcceptance: AugmentedQuery<
|
|
853
|
+
ApiType,
|
|
854
|
+
(arg: AccountId20 | string | Uint8Array) => Observable<Option<u32>>,
|
|
855
|
+
[AccountId20]
|
|
856
|
+
> &
|
|
857
|
+
QueryableStorageEntry<ApiType, [AccountId20]>;
|
|
858
|
+
/**
|
|
859
|
+
* Handles all the pending swaps.
|
|
860
|
+
**/
|
|
861
|
+
pendingSwapOf: AugmentedQuery<
|
|
862
|
+
ApiType,
|
|
863
|
+
(
|
|
864
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
865
|
+
arg2: u32 | AnyNumber | Uint8Array
|
|
866
|
+
) => Observable<Option<PalletNftsPendingSwap>>,
|
|
867
|
+
[u32, u32]
|
|
868
|
+
> &
|
|
869
|
+
QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
870
|
+
/**
|
|
871
|
+
* Generic query
|
|
872
|
+
**/
|
|
873
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
874
|
+
};
|
|
875
|
+
offences: {
|
|
876
|
+
/**
|
|
877
|
+
* A vector of reports of the same kind that happened at the same time slot.
|
|
878
|
+
**/
|
|
879
|
+
concurrentReportsIndex: AugmentedQuery<
|
|
880
|
+
ApiType,
|
|
881
|
+
(
|
|
882
|
+
arg1: U8aFixed | string | Uint8Array,
|
|
883
|
+
arg2: Bytes | string | Uint8Array
|
|
884
|
+
) => Observable<Vec<H256>>,
|
|
885
|
+
[U8aFixed, Bytes]
|
|
886
|
+
> &
|
|
887
|
+
QueryableStorageEntry<ApiType, [U8aFixed, Bytes]>;
|
|
888
|
+
/**
|
|
889
|
+
* The primary structure that holds all offence records keyed by report identifiers.
|
|
890
|
+
**/
|
|
891
|
+
reports: AugmentedQuery<
|
|
892
|
+
ApiType,
|
|
893
|
+
(arg: H256 | string | Uint8Array) => Observable<Option<SpStakingOffenceOffenceDetails>>,
|
|
894
|
+
[H256]
|
|
895
|
+
> &
|
|
896
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
897
|
+
/**
|
|
898
|
+
* Generic query
|
|
899
|
+
**/
|
|
900
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
901
|
+
};
|
|
902
|
+
parameters: {
|
|
903
|
+
/**
|
|
904
|
+
* Stored parameters.
|
|
905
|
+
**/
|
|
906
|
+
parameters: AugmentedQuery<
|
|
907
|
+
ApiType,
|
|
908
|
+
(
|
|
909
|
+
arg:
|
|
910
|
+
| ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersKey
|
|
911
|
+
| { RuntimeConfig: any }
|
|
912
|
+
| string
|
|
913
|
+
| Uint8Array
|
|
914
|
+
) => Observable<Option<ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersValue>>,
|
|
915
|
+
[ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersKey]
|
|
916
|
+
> &
|
|
917
|
+
QueryableStorageEntry<
|
|
918
|
+
ApiType,
|
|
919
|
+
[ShSolochainEvmRuntimeConfigsRuntimeParamsRuntimeParametersKey]
|
|
920
|
+
>;
|
|
921
|
+
/**
|
|
922
|
+
* Generic query
|
|
923
|
+
**/
|
|
924
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
925
|
+
};
|
|
926
|
+
paymentStreams: {
|
|
927
|
+
/**
|
|
928
|
+
* The accumulated price index since genesis, used to calculate the amount to charge for dynamic-rate payment streams.
|
|
929
|
+
*
|
|
930
|
+
* This is equivalent to what it would have cost to provide one unit of the provided service since the beginning of the network.
|
|
931
|
+
* We use this to calculate the amount to charge for dynamic-rate payment streams, by checking out the difference between the index
|
|
932
|
+
* when the payment stream was last charged, and the index at the last chargeable tick.
|
|
933
|
+
*
|
|
934
|
+
* This storage is updated in:
|
|
935
|
+
* - [do_update_price_index](crate::utils::do_update_price_index), which updates the accumulated price index, adding to it the current price.
|
|
936
|
+
**/
|
|
937
|
+
accumulatedPriceIndex: AugmentedQuery<ApiType, () => Observable<u128>, []> &
|
|
938
|
+
QueryableStorageEntry<ApiType, []>;
|
|
939
|
+
/**
|
|
940
|
+
* The current price per gigaunit per tick of the provided service, used to calculate the amount to charge for dynamic-rate payment streams.
|
|
941
|
+
*
|
|
942
|
+
* This can be updated each tick by the system manager.
|
|
943
|
+
*
|
|
944
|
+
* It is in giga-units to allow for a more granular price per unit considering the limitations in decimal places that the Balance type might have.
|
|
945
|
+
**/
|
|
946
|
+
currentPricePerGigaUnitPerTick: AugmentedQuery<ApiType, () => Observable<u128>, []> &
|
|
947
|
+
QueryableStorageEntry<ApiType, []>;
|
|
948
|
+
/**
|
|
949
|
+
* The double mapping from a Provider, to its provided Users, to their dynamic-rate payment streams.
|
|
950
|
+
*
|
|
951
|
+
* This is used to store and manage dynamic-rate payment streams between Users and Providers.
|
|
952
|
+
*
|
|
953
|
+
* This storage is updated in:
|
|
954
|
+
* - [create_dynamic_rate_payment_stream](crate::dispatchables::create_dynamic_rate_payment_stream), which adds a new entry to the map.
|
|
955
|
+
* - [delete_dynamic_rate_payment_stream](crate::dispatchables::delete_dynamic_rate_payment_stream), which removes the corresponding entry from the map.
|
|
956
|
+
* - [update_dynamic_rate_payment_stream](crate::dispatchables::update_dynamic_rate_payment_stream), which updates the entry's `amount_provided`.
|
|
957
|
+
* - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which updates the entry's `price_index_when_last_charged`.
|
|
958
|
+
**/
|
|
959
|
+
dynamicRatePaymentStreams: AugmentedQuery<
|
|
960
|
+
ApiType,
|
|
961
|
+
(
|
|
962
|
+
arg1: H256 | string | Uint8Array,
|
|
963
|
+
arg2: AccountId20 | string | Uint8Array
|
|
964
|
+
) => Observable<Option<PalletPaymentStreamsDynamicRatePaymentStream>>,
|
|
965
|
+
[H256, AccountId20]
|
|
966
|
+
> &
|
|
967
|
+
QueryableStorageEntry<ApiType, [H256, AccountId20]>;
|
|
968
|
+
/**
|
|
969
|
+
* The double mapping from a Provider, to its provided Users, to their fixed-rate payment streams.
|
|
970
|
+
*
|
|
971
|
+
* This is used to store and manage fixed-rate payment streams between Users and Providers.
|
|
972
|
+
*
|
|
973
|
+
* This storage is updated in:
|
|
974
|
+
* - [create_fixed_rate_payment_stream](crate::dispatchables::create_fixed_rate_payment_stream), which adds a new entry to the map.
|
|
975
|
+
* - [delete_fixed_rate_payment_stream](crate::dispatchables::delete_fixed_rate_payment_stream), which removes the corresponding entry from the map.
|
|
976
|
+
* - [update_fixed_rate_payment_stream](crate::dispatchables::update_fixed_rate_payment_stream), which updates the entry's `rate`.
|
|
977
|
+
* - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which updates the entry's `last_charged_tick`.
|
|
978
|
+
**/
|
|
979
|
+
fixedRatePaymentStreams: AugmentedQuery<
|
|
980
|
+
ApiType,
|
|
981
|
+
(
|
|
982
|
+
arg1: H256 | string | Uint8Array,
|
|
983
|
+
arg2: AccountId20 | string | Uint8Array
|
|
984
|
+
) => Observable<Option<PalletPaymentStreamsFixedRatePaymentStream>>,
|
|
985
|
+
[H256, AccountId20]
|
|
986
|
+
> &
|
|
987
|
+
QueryableStorageEntry<ApiType, [H256, AccountId20]>;
|
|
988
|
+
/**
|
|
989
|
+
* 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).
|
|
990
|
+
*
|
|
991
|
+
* 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.
|
|
992
|
+
*
|
|
993
|
+
* This storage is updated in:
|
|
994
|
+
* - [update_last_chargeable_info](crate::PaymentManager::update_last_chargeable_info), which updates the entry's `last_chargeable_tick` and `price_index`.
|
|
995
|
+
**/
|
|
996
|
+
lastChargeableInfo: AugmentedQuery<
|
|
997
|
+
ApiType,
|
|
998
|
+
(
|
|
999
|
+
arg: H256 | string | Uint8Array
|
|
1000
|
+
) => Observable<PalletPaymentStreamsProviderLastChargeableInfo>,
|
|
1001
|
+
[H256]
|
|
1002
|
+
> &
|
|
1003
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
1004
|
+
/**
|
|
1005
|
+
* The last tick that was processed by this pallet from the Proof Submitters interface.
|
|
1006
|
+
*
|
|
1007
|
+
* This is used to keep track of the last tick processed by this pallet from the pallet that implements the from the ProvidersProofSubmitters interface.
|
|
1008
|
+
* This is done to know the last tick for which this pallet has registered the Providers that submitted a valid proof and updated their last chargeable info.
|
|
1009
|
+
* In the next `on_poll` hook execution, this pallet will update the last chargeable info of the Providers that submitted a valid proof in the tick that
|
|
1010
|
+
* follows the one saved in this storage element.
|
|
1011
|
+
**/
|
|
1012
|
+
lastSubmittersTickRegistered: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1013
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1014
|
+
/**
|
|
1015
|
+
* A counter of blocks for which Providers can charge their streams.
|
|
1016
|
+
*
|
|
1017
|
+
* This counter is not necessarily the same as the block number, as the last chargeable info of Providers
|
|
1018
|
+
* (and the global price index) are updated in the `on_poll` hook, which happens at the beginning of every block,
|
|
1019
|
+
* so long as the block is not part of a [Multi-Block-Migration](https://github.com/paritytech/polkadot-sdk/pull/1781) (MBM).
|
|
1020
|
+
* During MBMs, the block number increases, but `OnPollTicker` does not.
|
|
1021
|
+
**/
|
|
1022
|
+
onPollTicker: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1023
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1024
|
+
/**
|
|
1025
|
+
* Mapping of Privileged Providers.
|
|
1026
|
+
*
|
|
1027
|
+
* Privileged Providers are those who are allowed to charge up to the current tick in
|
|
1028
|
+
* fixed rate payment streams, regardless of their [`LastChargeableInfo`].
|
|
1029
|
+
**/
|
|
1030
|
+
privilegedProviders: AugmentedQuery<
|
|
1031
|
+
ApiType,
|
|
1032
|
+
(arg: H256 | string | Uint8Array) => Observable<Option<Null>>,
|
|
1033
|
+
[H256]
|
|
1034
|
+
> &
|
|
1035
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
1036
|
+
/**
|
|
1037
|
+
* The mapping from a user to if it has been registered to the network and the amount of payment streams it has.
|
|
1038
|
+
*
|
|
1039
|
+
* 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
|
|
1040
|
+
* that a user has and it is also useful to check if a user has registered to the network.
|
|
1041
|
+
*
|
|
1042
|
+
* This storage is updated in:
|
|
1043
|
+
* - [create_fixed_rate_payment_stream](crate::dispatchables::create_fixed_rate_payment_stream), which holds the deposit of the user and adds one to this storage.
|
|
1044
|
+
* - [create_dynamic_rate_payment_stream](crate::dispatchables::create_dynamic_rate_payment_stream), which holds the deposit of the user and adds one to this storage.
|
|
1045
|
+
* - [remove_fixed_rate_payment_stream](crate::dispatchables::remove_fixed_rate_payment_stream), which removes one from this storage and releases the deposit.
|
|
1046
|
+
* - [remove_dynamic_rate_payment_stream](crate::dispatchables::remove_dynamic_rate_payment_stream), which removes one from this storage and releases the deposit.
|
|
1047
|
+
**/
|
|
1048
|
+
registeredUsers: AugmentedQuery<
|
|
1049
|
+
ApiType,
|
|
1050
|
+
(arg: AccountId20 | string | Uint8Array) => Observable<u32>,
|
|
1051
|
+
[AccountId20]
|
|
1052
|
+
> &
|
|
1053
|
+
QueryableStorageEntry<ApiType, [AccountId20]>;
|
|
1054
|
+
/**
|
|
1055
|
+
* The mapping from a user to if it has been flagged for not having enough funds to pay for its requested services.
|
|
1056
|
+
*
|
|
1057
|
+
* This is used to flag users that do not have enough funds to pay for their requested services, so other Providers
|
|
1058
|
+
* can stop providing services to them.
|
|
1059
|
+
*
|
|
1060
|
+
* This storage is updated in:
|
|
1061
|
+
* - [charge_payment_streams](crate::dispatchables::charge_payment_streams), which emits a `UserWithoutFunds` event and sets the user's entry in this map
|
|
1062
|
+
* to that moment's tick number if it does not have enough funds.
|
|
1063
|
+
* - [clear_insolvent_flag](crate::utils::clear_insolvent_flag), which clears the user's entry in this map if the cooldown period has passed and the user has paid all its outstanding debt.
|
|
1064
|
+
**/
|
|
1065
|
+
usersWithoutFunds: AugmentedQuery<
|
|
1066
|
+
ApiType,
|
|
1067
|
+
(arg: AccountId20 | string | Uint8Array) => Observable<Option<u32>>,
|
|
1068
|
+
[AccountId20]
|
|
1069
|
+
> &
|
|
1070
|
+
QueryableStorageEntry<ApiType, [AccountId20]>;
|
|
1071
|
+
/**
|
|
1072
|
+
* Generic query
|
|
1073
|
+
**/
|
|
1074
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1075
|
+
};
|
|
1076
|
+
proofsDealer: {
|
|
1077
|
+
/**
|
|
1078
|
+
* A queue of keys that have been challenged manually.
|
|
1079
|
+
*
|
|
1080
|
+
* The elements in this queue will be challenged in the coming blocks,
|
|
1081
|
+
* always ensuring that the maximum number of challenges per block is not exceeded.
|
|
1082
|
+
* A `BoundedVec` is used because the `parity_scale_codec::MaxEncodedLen` trait
|
|
1083
|
+
* is required, but using a `VecDeque` would be more efficient as this is a FIFO queue.
|
|
1084
|
+
**/
|
|
1085
|
+
challengesQueue: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> &
|
|
1086
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1087
|
+
/**
|
|
1088
|
+
* A counter of blocks in which challenges were distributed.
|
|
1089
|
+
*
|
|
1090
|
+
* This counter is not necessarily the same as the block number, as challenges are
|
|
1091
|
+
* distributed in the `on_poll` hook, which happens at the beginning of every block,
|
|
1092
|
+
* so long as the block is not part of a [Multi-Block-Migration](https://github.com/paritytech/polkadot-sdk/pull/1781) (MBM).
|
|
1093
|
+
* During MBMsm, the block number increases, but [`ChallengesTicker`] does not.
|
|
1094
|
+
**/
|
|
1095
|
+
challengesTicker: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1096
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1097
|
+
/**
|
|
1098
|
+
* A boolean that represents whether the [`ChallengesTicker`] is paused.
|
|
1099
|
+
*
|
|
1100
|
+
* By default, this is `false`, meaning that the [`ChallengesTicker`] is incremented every time `on_poll` is called.
|
|
1101
|
+
* This can be set to `true` which would pause the [`ChallengesTicker`], preventing `do_new_challenges_round` from
|
|
1102
|
+
* being executed. Therefore:
|
|
1103
|
+
* - No new random challenges would be emitted and added to [`TickToChallengesSeed`].
|
|
1104
|
+
* - No new checkpoint challenges would be emitted and added to [`TickToCheckpointChallenges`].
|
|
1105
|
+
* - Deadlines for proof submissions are indefinitely postponed.
|
|
1106
|
+
**/
|
|
1107
|
+
challengesTickerPaused: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> &
|
|
1108
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1109
|
+
/**
|
|
1110
|
+
* The challenge tick of the last checkpoint challenge round.
|
|
1111
|
+
*
|
|
1112
|
+
* This is used to determine when to include the challenges from the [`ChallengesQueue`] and
|
|
1113
|
+
* [`PriorityChallengesQueue`] in the [`TickToCheckpointChallenges`] StorageMap. These checkpoint
|
|
1114
|
+
* challenge rounds have to be answered by ALL Providers, and this is enforced by the
|
|
1115
|
+
* `submit_proof` extrinsic.
|
|
1116
|
+
**/
|
|
1117
|
+
lastCheckpointTick: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1118
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1119
|
+
/**
|
|
1120
|
+
* A value that represents the last tick that was deleted from the [`ValidProofSubmittersLastTicks`] StorageMap.
|
|
1121
|
+
*
|
|
1122
|
+
* This is used to know which tick to delete from the [`ValidProofSubmittersLastTicks`] StorageMap when the
|
|
1123
|
+
* `on_idle` hook is called.
|
|
1124
|
+
**/
|
|
1125
|
+
lastDeletedTick: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1126
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1127
|
+
/**
|
|
1128
|
+
* The vector holding whether the last [`Config::BlockFullnessPeriod`] blocks were full or not.
|
|
1129
|
+
*
|
|
1130
|
+
* Each element in the vector represents a block, and is `true` if the block was full, and `false` otherwise.
|
|
1131
|
+
* Note: Ideally we would use a `BitVec` to reduce storage, but since there's no bounded `BitVec` implementation
|
|
1132
|
+
* we use a BoundedVec<bool> instead. This uses 7 more bits of storage per element.
|
|
1133
|
+
**/
|
|
1134
|
+
pastBlocksStatus: AugmentedQuery<ApiType, () => Observable<Vec<bool>>, []> &
|
|
1135
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1136
|
+
/**
|
|
1137
|
+
* A mapping from block number to the weight used in that block.
|
|
1138
|
+
*
|
|
1139
|
+
* This is used to check if the network is presumably under a spam attack.
|
|
1140
|
+
* It is cleared for blocks older than `current_block` - ([`Config::BlockFullnessPeriod`] + 1).
|
|
1141
|
+
**/
|
|
1142
|
+
pastBlocksWeight: AugmentedQuery<
|
|
1143
|
+
ApiType,
|
|
1144
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<Option<SpWeightsWeightV2Weight>>,
|
|
1145
|
+
[u32]
|
|
1146
|
+
> &
|
|
1147
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
1148
|
+
/**
|
|
1149
|
+
* A priority queue of keys that have been challenged manually.
|
|
1150
|
+
*
|
|
1151
|
+
* The difference between this and `ChallengesQueue` is that the challenges
|
|
1152
|
+
* in this queue are given priority over the others. So this queue should be
|
|
1153
|
+
* emptied before any of the challenges in the `ChallengesQueue` are dispatched.
|
|
1154
|
+
* This queue should not be accessible to the public.
|
|
1155
|
+
* The elements in this queue will be challenged in the coming blocks,
|
|
1156
|
+
* always ensuring that the maximum number of challenges per block is not exceeded.
|
|
1157
|
+
* A `BoundedVec` is used because the `parity_scale_codec::MaxEncodedLen` trait
|
|
1158
|
+
* is required, but using a `VecDeque` would be more efficient as this is a FIFO queue.
|
|
1159
|
+
**/
|
|
1160
|
+
priorityChallengesQueue: AugmentedQuery<
|
|
1161
|
+
ApiType,
|
|
1162
|
+
() => Observable<Vec<PalletProofsDealerCustomChallenge>>,
|
|
1163
|
+
[]
|
|
1164
|
+
> &
|
|
1165
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1166
|
+
/**
|
|
1167
|
+
* A mapping from a Provider to its [`ProofSubmissionRecord`], which stores the last tick
|
|
1168
|
+
* the Provider submitted a proof for, and the next tick the Provider should submit a proof for.
|
|
1169
|
+
*
|
|
1170
|
+
* Normally the difference between these two ticks is equal to the Provider's challenge period,
|
|
1171
|
+
* but if the Provider's period is changed, this change only affects the next cycle. In other words,
|
|
1172
|
+
* for one cycle, `next_tick_to_submit_proof_for - last_tick_proven ≠ provider_challenge_period`.
|
|
1173
|
+
*
|
|
1174
|
+
* If a Provider submits a proof successfully, both fields are updated.
|
|
1175
|
+
*
|
|
1176
|
+
* If the Provider fails to submit a proof in time and is slashed, only `next_tick_to_submit_proof_for`
|
|
1177
|
+
* is updated.
|
|
1178
|
+
**/
|
|
1179
|
+
providerToProofSubmissionRecord: AugmentedQuery<
|
|
1180
|
+
ApiType,
|
|
1181
|
+
(
|
|
1182
|
+
arg: H256 | string | Uint8Array
|
|
1183
|
+
) => Observable<Option<PalletProofsDealerProofSubmissionRecord>>,
|
|
1184
|
+
[H256]
|
|
1185
|
+
> &
|
|
1186
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
1187
|
+
slashableProviders: AugmentedQuery<
|
|
1188
|
+
ApiType,
|
|
1189
|
+
(arg: H256 | string | Uint8Array) => Observable<Option<u32>>,
|
|
1190
|
+
[H256]
|
|
1191
|
+
> &
|
|
1192
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
1193
|
+
/**
|
|
1194
|
+
* A mapping from challenges tick to a random seed used for generating the challenges in that tick.
|
|
1195
|
+
*
|
|
1196
|
+
* This is used to keep track of the challenges' seed in the past.
|
|
1197
|
+
* This mapping goes back only [`ChallengeHistoryLengthFor`] blocks. Previous challenges are removed.
|
|
1198
|
+
**/
|
|
1199
|
+
tickToChallengesSeed: AugmentedQuery<
|
|
1200
|
+
ApiType,
|
|
1201
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>,
|
|
1202
|
+
[u32]
|
|
1203
|
+
> &
|
|
1204
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
1205
|
+
/**
|
|
1206
|
+
* The tick to check and see if Providers failed to submit proofs before their deadline.
|
|
1207
|
+
*
|
|
1208
|
+
* In a normal situation, this should always be equal to [`ChallengesTicker`].
|
|
1209
|
+
* However, in the unlikely scenario where a large number of Providers fail to submit proofs (larger
|
|
1210
|
+
* than [`Config::MaxSlashableProvidersPerTick`]), and all of them had the same deadline, not all of
|
|
1211
|
+
* them will be marked as slashable. Only the first [`Config::MaxSlashableProvidersPerTick`] will be.
|
|
1212
|
+
* In that case, this stored tick will lag behind [`ChallengesTicker`].
|
|
1213
|
+
*
|
|
1214
|
+
* It is expected that this tick should catch up to [`ChallengesTicker`], as blocks with less
|
|
1215
|
+
* slashable Providers follow.
|
|
1216
|
+
**/
|
|
1217
|
+
tickToCheckForSlashableProviders: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1218
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1219
|
+
/**
|
|
1220
|
+
* A mapping from challenges tick to a vector of custom challenged keys for that tick.
|
|
1221
|
+
*
|
|
1222
|
+
* This is used to keep track of the challenges that have been made in the past, specifically
|
|
1223
|
+
* in the checkpoint challenge rounds.
|
|
1224
|
+
* The vector is bounded by [`MaxCustomChallengesPerBlockFor`].
|
|
1225
|
+
* This mapping goes back only [`ChallengeHistoryLengthFor`] ticks. Previous challenges are removed.
|
|
1226
|
+
**/
|
|
1227
|
+
tickToCheckpointChallenges: AugmentedQuery<
|
|
1228
|
+
ApiType,
|
|
1229
|
+
(
|
|
1230
|
+
arg: u32 | AnyNumber | Uint8Array
|
|
1231
|
+
) => Observable<Option<Vec<PalletProofsDealerCustomChallenge>>>,
|
|
1232
|
+
[u32]
|
|
1233
|
+
> &
|
|
1234
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
1235
|
+
/**
|
|
1236
|
+
* A mapping from challenge tick to a vector of challenged Providers for that tick.
|
|
1237
|
+
*
|
|
1238
|
+
* This is used to keep track of the Providers that have been challenged, and should
|
|
1239
|
+
* submit a proof by the time of the [`ChallengesTicker`] reaches the number used as
|
|
1240
|
+
* key in the mapping. Providers who do submit a proof are removed from their respective
|
|
1241
|
+
* entry and pushed forward to the next tick in which they should submit a proof.
|
|
1242
|
+
* Those who are still in the entry by the time the tick is reached are considered to
|
|
1243
|
+
* have failed to submit a proof and subject to slashing.
|
|
1244
|
+
**/
|
|
1245
|
+
tickToProvidersDeadlines: AugmentedQuery<
|
|
1246
|
+
ApiType,
|
|
1247
|
+
(
|
|
1248
|
+
arg1: u32 | AnyNumber | Uint8Array,
|
|
1249
|
+
arg2: H256 | string | Uint8Array
|
|
1250
|
+
) => Observable<Option<Null>>,
|
|
1251
|
+
[u32, H256]
|
|
1252
|
+
> &
|
|
1253
|
+
QueryableStorageEntry<ApiType, [u32, H256]>;
|
|
1254
|
+
/**
|
|
1255
|
+
* A mapping from tick to Providers, which is set if the Provider submitted a valid proof in that tick.
|
|
1256
|
+
*
|
|
1257
|
+
* This is used to keep track of the Providers that have submitted proofs in the last few
|
|
1258
|
+
* ticks, where availability only up to the last [`Config::TargetTicksStorageOfSubmitters`] ticks is guaranteed.
|
|
1259
|
+
* This storage is then made available for other pallets to use through the `ProofSubmittersInterface`.
|
|
1260
|
+
**/
|
|
1261
|
+
validProofSubmittersLastTicks: AugmentedQuery<
|
|
1262
|
+
ApiType,
|
|
1263
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<Option<BTreeSet<H256>>>,
|
|
1264
|
+
[u32]
|
|
1265
|
+
> &
|
|
1266
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
1267
|
+
/**
|
|
1268
|
+
* Generic query
|
|
1269
|
+
**/
|
|
1270
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1271
|
+
};
|
|
1272
|
+
providers: {
|
|
1273
|
+
/**
|
|
1274
|
+
* The mapping from an AccountId to a BackupStorageProviderId.
|
|
1275
|
+
*
|
|
1276
|
+
* This is used to get a Backup Storage Provider's unique identifier needed to access its metadata.
|
|
1277
|
+
*
|
|
1278
|
+
* This storage is updated in:
|
|
1279
|
+
*
|
|
1280
|
+
* - [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.
|
|
1281
|
+
* - [bsp_sign_off](crate::dispatchables::bsp_sign_off), which removes the corresponding entry from the map.
|
|
1282
|
+
**/
|
|
1283
|
+
accountIdToBackupStorageProviderId: AugmentedQuery<
|
|
1284
|
+
ApiType,
|
|
1285
|
+
(arg: AccountId20 | string | Uint8Array) => Observable<Option<H256>>,
|
|
1286
|
+
[AccountId20]
|
|
1287
|
+
> &
|
|
1288
|
+
QueryableStorageEntry<ApiType, [AccountId20]>;
|
|
1289
|
+
/**
|
|
1290
|
+
* The mapping from an AccountId to a MainStorageProviderId.
|
|
1291
|
+
*
|
|
1292
|
+
* This is used to get a Main Storage Provider's unique identifier needed to access its metadata.
|
|
1293
|
+
*
|
|
1294
|
+
* This storage is updated in:
|
|
1295
|
+
* - [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.
|
|
1296
|
+
* - [msp_sign_off](crate::dispatchables::msp_sign_off), which removes the corresponding entry from the map.
|
|
1297
|
+
**/
|
|
1298
|
+
accountIdToMainStorageProviderId: AugmentedQuery<
|
|
1299
|
+
ApiType,
|
|
1300
|
+
(arg: AccountId20 | string | Uint8Array) => Observable<Option<H256>>,
|
|
1301
|
+
[AccountId20]
|
|
1302
|
+
> &
|
|
1303
|
+
QueryableStorageEntry<ApiType, [AccountId20]>;
|
|
1304
|
+
/**
|
|
1305
|
+
* Storage providers currently awaited for to top up their deposit (providers whom have been slashed and as
|
|
1306
|
+
* a result have a capacity deficit, i.e. their capacity is below their used capacity).
|
|
1307
|
+
*
|
|
1308
|
+
* This is primarily used to lookup providers and restrict certain operations while they are in this state.
|
|
1309
|
+
*
|
|
1310
|
+
* Providers can optionally call the `top_up_deposit` during the grace period to top up their held deposit to cover the capacity deficit.
|
|
1311
|
+
* As a result, their provider account would be cleared from this storage.
|
|
1312
|
+
*
|
|
1313
|
+
* The `on_idle` hook will process every provider in this storage and mark them as insolvent.
|
|
1314
|
+
* If a provider is marked as insolvent, the network (e.g users, other providers) can call `issue_storage_request`
|
|
1315
|
+
* with a replication target of 1 to fill a slot with another BSP if the provider who was marked as insolvent is in fact a BSP.
|
|
1316
|
+
* If it was an MSP, the user can decide to move their buckets to another MSP or delete their buckets (as they normally can).
|
|
1317
|
+
**/
|
|
1318
|
+
awaitingTopUpFromProviders: AugmentedQuery<
|
|
1319
|
+
ApiType,
|
|
1320
|
+
(
|
|
1321
|
+
arg:
|
|
1322
|
+
| PalletStorageProvidersStorageProviderId
|
|
1323
|
+
| { BackupStorageProvider: any }
|
|
1324
|
+
| { MainStorageProvider: any }
|
|
1325
|
+
| string
|
|
1326
|
+
| Uint8Array
|
|
1327
|
+
) => Observable<Option<PalletStorageProvidersTopUpMetadata>>,
|
|
1328
|
+
[PalletStorageProvidersStorageProviderId]
|
|
1329
|
+
> &
|
|
1330
|
+
QueryableStorageEntry<ApiType, [PalletStorageProvidersStorageProviderId]>;
|
|
1331
|
+
/**
|
|
1332
|
+
* The mapping from a BackupStorageProviderId to a BackupStorageProvider.
|
|
1333
|
+
*
|
|
1334
|
+
* This is used to get a Backup Storage Provider's metadata.
|
|
1335
|
+
* It returns `None` if the Backup Storage Provider ID does not correspond to any registered Backup Storage Provider.
|
|
1336
|
+
*
|
|
1337
|
+
* This storage is updated in:
|
|
1338
|
+
* - [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.
|
|
1339
|
+
* - [bsp_sign_off](crate::dispatchables::bsp_sign_off), which removes the corresponding entry from the map.
|
|
1340
|
+
* - [change_capacity](crate::dispatchables::change_capacity), which changes the entry's `capacity`.
|
|
1341
|
+
**/
|
|
1342
|
+
backupStorageProviders: AugmentedQuery<
|
|
1343
|
+
ApiType,
|
|
1344
|
+
(
|
|
1345
|
+
arg: H256 | string | Uint8Array
|
|
1346
|
+
) => Observable<Option<PalletStorageProvidersBackupStorageProvider>>,
|
|
1347
|
+
[H256]
|
|
1348
|
+
> &
|
|
1349
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
1350
|
+
/**
|
|
1351
|
+
* The amount of Backup Storage Providers that are currently registered in the runtime.
|
|
1352
|
+
*
|
|
1353
|
+
* This is used to keep track of the total amount of BSPs in the system.
|
|
1354
|
+
*
|
|
1355
|
+
* This storage is updated in:
|
|
1356
|
+
* - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds one to this storage if the account to confirm is a Backup Storage Provider.
|
|
1357
|
+
* - [bsp_sign_off](crate::dispatchables::bsp_sign_off), which subtracts one from this storage.
|
|
1358
|
+
**/
|
|
1359
|
+
bspCount: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1360
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1361
|
+
/**
|
|
1362
|
+
* The mapping from a BucketId to that bucket's metadata.
|
|
1363
|
+
*
|
|
1364
|
+
* This is used to get a bucket's metadata, such as root, user ID, and MSP ID.
|
|
1365
|
+
* It returns `None` if the Bucket ID does not correspond to any registered bucket.
|
|
1366
|
+
*
|
|
1367
|
+
* This storage is updated in:
|
|
1368
|
+
* - [add_bucket](shp_traits::MutateProvidersInterface::add_bucket), which adds a new entry to the map.
|
|
1369
|
+
* - [change_root_bucket](shp_traits::MutateProvidersInterface::change_root_bucket), which changes the corresponding bucket's root.
|
|
1370
|
+
* - [delete_bucket](shp_traits::MutateProvidersInterface::delete_bucket), which removes the entry of the corresponding bucket.
|
|
1371
|
+
**/
|
|
1372
|
+
buckets: AugmentedQuery<
|
|
1373
|
+
ApiType,
|
|
1374
|
+
(arg: H256 | string | Uint8Array) => Observable<Option<PalletStorageProvidersBucket>>,
|
|
1375
|
+
[H256]
|
|
1376
|
+
> &
|
|
1377
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
1378
|
+
/**
|
|
1379
|
+
* The total global reputation weight of all BSPs.
|
|
1380
|
+
**/
|
|
1381
|
+
globalBspsReputationWeight: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1382
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1383
|
+
/**
|
|
1384
|
+
* A map of insolvent providers who have failed to top up their deposit before the end of the expiration.
|
|
1385
|
+
*
|
|
1386
|
+
* Providers are marked insolvent by the `on_idle` hook.
|
|
1387
|
+
**/
|
|
1388
|
+
insolventProviders: AugmentedQuery<
|
|
1389
|
+
ApiType,
|
|
1390
|
+
(
|
|
1391
|
+
arg:
|
|
1392
|
+
| PalletStorageProvidersStorageProviderId
|
|
1393
|
+
| { BackupStorageProvider: any }
|
|
1394
|
+
| { MainStorageProvider: any }
|
|
1395
|
+
| string
|
|
1396
|
+
| Uint8Array
|
|
1397
|
+
) => Observable<Option<Null>>,
|
|
1398
|
+
[PalletStorageProvidersStorageProviderId]
|
|
1399
|
+
> &
|
|
1400
|
+
QueryableStorageEntry<ApiType, [PalletStorageProvidersStorageProviderId]>;
|
|
1401
|
+
/**
|
|
1402
|
+
* The double mapping from a MainStorageProviderId to a BucketIds.
|
|
1403
|
+
*
|
|
1404
|
+
* This is used to efficiently retrieve the list of buckets that a Main Storage Provider is currently storing.
|
|
1405
|
+
*
|
|
1406
|
+
* This storage is updated in:
|
|
1407
|
+
* - [add_bucket](shp_traits::MutateProvidersInterface::add_bucket)
|
|
1408
|
+
* - [delete_bucket](shp_traits::MutateProvidersInterface::delete_bucket)
|
|
1409
|
+
**/
|
|
1410
|
+
mainStorageProviderIdsToBuckets: AugmentedQuery<
|
|
1411
|
+
ApiType,
|
|
1412
|
+
(
|
|
1413
|
+
arg1: H256 | string | Uint8Array,
|
|
1414
|
+
arg2: H256 | string | Uint8Array
|
|
1415
|
+
) => Observable<Option<Null>>,
|
|
1416
|
+
[H256, H256]
|
|
1417
|
+
> &
|
|
1418
|
+
QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
1419
|
+
/**
|
|
1420
|
+
* Double mapping from a [`MainStorageProviderId`] to [`ValueProposition`]s.
|
|
1421
|
+
*
|
|
1422
|
+
* These are applied at the bucket level. Propositions are the price per [`Config::StorageDataUnit`] per block and the
|
|
1423
|
+
* limit of data that can be stored in the bucket.
|
|
1424
|
+
**/
|
|
1425
|
+
mainStorageProviderIdsToValuePropositions: AugmentedQuery<
|
|
1426
|
+
ApiType,
|
|
1427
|
+
(
|
|
1428
|
+
arg1: H256 | string | Uint8Array,
|
|
1429
|
+
arg2: H256 | string | Uint8Array
|
|
1430
|
+
) => Observable<Option<PalletStorageProvidersValueProposition>>,
|
|
1431
|
+
[H256, H256]
|
|
1432
|
+
> &
|
|
1433
|
+
QueryableStorageEntry<ApiType, [H256, H256]>;
|
|
1434
|
+
/**
|
|
1435
|
+
* The mapping from a MainStorageProviderId to a MainStorageProvider.
|
|
1436
|
+
*
|
|
1437
|
+
* This is used to get a Main Storage Provider's metadata.
|
|
1438
|
+
* It returns `None` if the Main Storage Provider ID does not correspond to any registered Main Storage Provider.
|
|
1439
|
+
*
|
|
1440
|
+
* This storage is updated in:
|
|
1441
|
+
* - [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.
|
|
1442
|
+
* - [msp_sign_off](crate::dispatchables::msp_sign_off), which removes the corresponding entry from the map.
|
|
1443
|
+
* - [change_capacity](crate::dispatchables::change_capacity), which changes the entry's `capacity`.
|
|
1444
|
+
**/
|
|
1445
|
+
mainStorageProviders: AugmentedQuery<
|
|
1446
|
+
ApiType,
|
|
1447
|
+
(
|
|
1448
|
+
arg: H256 | string | Uint8Array
|
|
1449
|
+
) => Observable<Option<PalletStorageProvidersMainStorageProvider>>,
|
|
1450
|
+
[H256]
|
|
1451
|
+
> &
|
|
1452
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
1453
|
+
/**
|
|
1454
|
+
* The amount of Main Storage Providers that are currently registered in the runtime.
|
|
1455
|
+
*
|
|
1456
|
+
* This is used to keep track of the total amount of MSPs in the system.
|
|
1457
|
+
*
|
|
1458
|
+
* This storage is updated in:
|
|
1459
|
+
* - [confirm_sign_up](crate::dispatchables::confirm_sign_up), which adds one to this storage if the account to confirm is a Main Storage Provider.
|
|
1460
|
+
* - [msp_sign_off](crate::dispatchables::msp_sign_off), which subtracts one from this storage.
|
|
1461
|
+
**/
|
|
1462
|
+
mspCount: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1463
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1464
|
+
/**
|
|
1465
|
+
* A pointer to the earliest available Storage Hub tick to insert a new provider top up expiration item.
|
|
1466
|
+
*
|
|
1467
|
+
* This should always be greater or equal than `current_sh_tick` + [`Config::ProviderTopUpTtl`].
|
|
1468
|
+
**/
|
|
1469
|
+
nextAvailableProviderTopUpExpirationShTick: AugmentedQuery<
|
|
1470
|
+
ApiType,
|
|
1471
|
+
() => Observable<u32>,
|
|
1472
|
+
[]
|
|
1473
|
+
> &
|
|
1474
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1475
|
+
/**
|
|
1476
|
+
* A pointer to the starting Storage Hub tick number to clean up expired items.
|
|
1477
|
+
*
|
|
1478
|
+
* If this Storage Hub tick is behind the one, the cleanup algorithm in `on_idle` will
|
|
1479
|
+
* attempt to advance this tick pointer as close to or up to the current one. This
|
|
1480
|
+
* will execute provided that there is enough remaining weight to do so.
|
|
1481
|
+
**/
|
|
1482
|
+
nextStartingShTickToCleanUp: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1483
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1484
|
+
/**
|
|
1485
|
+
* A map of Storage Hub tick numbers to expired provider top up expired items.
|
|
1486
|
+
*
|
|
1487
|
+
* Processed in the `on_idle` hook.
|
|
1488
|
+
*
|
|
1489
|
+
* Provider top up expiration items are ignored and cleared if the provider is not found in the [`AwaitingTopUpFromProviders`] storage.
|
|
1490
|
+
* Providers are removed from [`AwaitingTopUpFromProviders`] storage when they have successfully topped up their deposit.
|
|
1491
|
+
* If they are still part of the [`AwaitingTopUpFromProviders`] storage after the expiration period, they are marked as insolvent.
|
|
1492
|
+
**/
|
|
1493
|
+
providerTopUpExpirations: AugmentedQuery<
|
|
1494
|
+
ApiType,
|
|
1495
|
+
(
|
|
1496
|
+
arg: u32 | AnyNumber | Uint8Array
|
|
1497
|
+
) => Observable<Vec<PalletStorageProvidersStorageProviderId>>,
|
|
1498
|
+
[u32]
|
|
1499
|
+
> &
|
|
1500
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
1501
|
+
/**
|
|
1502
|
+
* The mapping from an AccountId that requested to sign up to a tuple of the metadata with type of the request, and the block
|
|
1503
|
+
* number when the request was made.
|
|
1504
|
+
*
|
|
1505
|
+
* This is used for the two-step process of registering: when a user requests to register as a SP (either MSP or BSP),
|
|
1506
|
+
* that request with the metadata and the deposit held is stored here. When the user confirms the sign up, the
|
|
1507
|
+
* request is removed from this storage and the user is registered as a SP.
|
|
1508
|
+
*
|
|
1509
|
+
* This storage is updated in:
|
|
1510
|
+
* - [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.
|
|
1511
|
+
* - [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.
|
|
1512
|
+
**/
|
|
1513
|
+
signUpRequests: AugmentedQuery<
|
|
1514
|
+
ApiType,
|
|
1515
|
+
(
|
|
1516
|
+
arg: AccountId20 | string | Uint8Array
|
|
1517
|
+
) => Observable<Option<PalletStorageProvidersSignUpRequest>>,
|
|
1518
|
+
[AccountId20]
|
|
1519
|
+
> &
|
|
1520
|
+
QueryableStorageEntry<ApiType, [AccountId20]>;
|
|
1521
|
+
/**
|
|
1522
|
+
* The total amount of storage capacity all BSPs have.
|
|
1523
|
+
*
|
|
1524
|
+
* This is used to keep track of the total amount of storage capacity all BSPs have in the system, which is also the
|
|
1525
|
+
* total amount of storage capacity that can be used by users if we factor in the replication factor.
|
|
1526
|
+
*
|
|
1527
|
+
* This storage is updated in:
|
|
1528
|
+
* - [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.
|
|
1529
|
+
* - [bsp_sign_off](crate::dispatchables::bsp_sign_off), which subtracts the capacity of the Backup Storage Provider to sign off from this storage.
|
|
1530
|
+
**/
|
|
1531
|
+
totalBspsCapacity: AugmentedQuery<ApiType, () => Observable<u64>, []> &
|
|
1532
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1533
|
+
/**
|
|
1534
|
+
* The total amount of storage capacity of BSPs that is currently in use.
|
|
1535
|
+
*
|
|
1536
|
+
* This is used to keep track of the total amount of storage capacity that is currently in use by users, which is useful for
|
|
1537
|
+
* system metrics and also to calculate the current price of storage.
|
|
1538
|
+
**/
|
|
1539
|
+
usedBspsCapacity: AugmentedQuery<ApiType, () => Observable<u64>, []> &
|
|
1540
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1541
|
+
/**
|
|
1542
|
+
* Generic query
|
|
1543
|
+
**/
|
|
1544
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1545
|
+
};
|
|
1546
|
+
randomness: {
|
|
1547
|
+
/**
|
|
1548
|
+
* Ensures the mandatory inherent was included in the block
|
|
1549
|
+
**/
|
|
1550
|
+
inherentIncluded: AugmentedQuery<ApiType, () => Observable<Option<Null>>, []> &
|
|
1551
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1552
|
+
/**
|
|
1553
|
+
* The relay chain block (and anchored parachain block) to use when epoch changes
|
|
1554
|
+
**/
|
|
1555
|
+
lastRelayBlockAndParaBlockValidForNextEpoch: AugmentedQuery<
|
|
1556
|
+
ApiType,
|
|
1557
|
+
() => Observable<ITuple<[u32, u32]>>,
|
|
1558
|
+
[]
|
|
1559
|
+
> &
|
|
1560
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1561
|
+
/**
|
|
1562
|
+
* Latest random seed obtained from the one epoch ago randomness from BABE, and the latest block that it can process randomness requests from
|
|
1563
|
+
**/
|
|
1564
|
+
latestOneEpochAgoRandomness: AugmentedQuery<
|
|
1565
|
+
ApiType,
|
|
1566
|
+
() => Observable<Option<ITuple<[H256, u32]>>>,
|
|
1567
|
+
[]
|
|
1568
|
+
> &
|
|
1569
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1570
|
+
/**
|
|
1571
|
+
* Latest random seed obtained from the parent block randomness from BABE, and the latest block that it can process randomness requests from
|
|
1572
|
+
**/
|
|
1573
|
+
latestParentBlockRandomness: AugmentedQuery<
|
|
1574
|
+
ApiType,
|
|
1575
|
+
() => Observable<Option<ITuple<[H256, u32]>>>,
|
|
1576
|
+
[]
|
|
1577
|
+
> &
|
|
1578
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1579
|
+
/**
|
|
1580
|
+
* Current relay epoch
|
|
1581
|
+
**/
|
|
1582
|
+
relayEpoch: AugmentedQuery<ApiType, () => Observable<u64>, []> &
|
|
1583
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1584
|
+
/**
|
|
1585
|
+
* Generic query
|
|
1586
|
+
**/
|
|
1587
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1588
|
+
};
|
|
1589
|
+
session: {
|
|
1590
|
+
/**
|
|
1591
|
+
* Current index of the session.
|
|
1592
|
+
**/
|
|
1593
|
+
currentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1594
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1595
|
+
/**
|
|
1596
|
+
* Indices of disabled validators.
|
|
1597
|
+
*
|
|
1598
|
+
* The vec is always kept sorted so that we can find whether a given validator is
|
|
1599
|
+
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
|
1600
|
+
* a new set of identities.
|
|
1601
|
+
**/
|
|
1602
|
+
disabledValidators: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> &
|
|
1603
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1604
|
+
/**
|
|
1605
|
+
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
|
1606
|
+
**/
|
|
1607
|
+
keyOwner: AugmentedQuery<
|
|
1608
|
+
ApiType,
|
|
1609
|
+
(
|
|
1610
|
+
arg:
|
|
1611
|
+
| ITuple<[SpCoreCryptoKeyTypeId, Bytes]>
|
|
1612
|
+
| [SpCoreCryptoKeyTypeId | string | Uint8Array, Bytes | string | Uint8Array]
|
|
1613
|
+
) => Observable<Option<AccountId20>>,
|
|
1614
|
+
[ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]
|
|
1615
|
+
> &
|
|
1616
|
+
QueryableStorageEntry<ApiType, [ITuple<[SpCoreCryptoKeyTypeId, Bytes]>]>;
|
|
1617
|
+
/**
|
|
1618
|
+
* The next session keys for a validator.
|
|
1619
|
+
**/
|
|
1620
|
+
nextKeys: AugmentedQuery<
|
|
1621
|
+
ApiType,
|
|
1622
|
+
(
|
|
1623
|
+
arg: AccountId20 | string | Uint8Array
|
|
1624
|
+
) => Observable<Option<ShSolochainEvmRuntimeSessionKeys>>,
|
|
1625
|
+
[AccountId20]
|
|
1626
|
+
> &
|
|
1627
|
+
QueryableStorageEntry<ApiType, [AccountId20]>;
|
|
1628
|
+
/**
|
|
1629
|
+
* True if the underlying economic identities or weighting behind the validators
|
|
1630
|
+
* has changed in the queued validator set.
|
|
1631
|
+
**/
|
|
1632
|
+
queuedChanged: AugmentedQuery<ApiType, () => Observable<bool>, []> &
|
|
1633
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1634
|
+
/**
|
|
1635
|
+
* The queued keys for the next session. When the next session begins, these keys
|
|
1636
|
+
* will be used to determine the validator's session keys.
|
|
1637
|
+
**/
|
|
1638
|
+
queuedKeys: AugmentedQuery<
|
|
1639
|
+
ApiType,
|
|
1640
|
+
() => Observable<Vec<ITuple<[AccountId20, ShSolochainEvmRuntimeSessionKeys]>>>,
|
|
1641
|
+
[]
|
|
1642
|
+
> &
|
|
1643
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1644
|
+
/**
|
|
1645
|
+
* The current set of validators.
|
|
1646
|
+
**/
|
|
1647
|
+
validators: AugmentedQuery<ApiType, () => Observable<Vec<AccountId20>>, []> &
|
|
1648
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1649
|
+
/**
|
|
1650
|
+
* Generic query
|
|
1651
|
+
**/
|
|
1652
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1653
|
+
};
|
|
1654
|
+
sudo: {
|
|
1655
|
+
/**
|
|
1656
|
+
* The `AccountId` of the sudo key.
|
|
1657
|
+
**/
|
|
1658
|
+
key: AugmentedQuery<ApiType, () => Observable<Option<AccountId20>>, []> &
|
|
1659
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1660
|
+
/**
|
|
1661
|
+
* Generic query
|
|
1662
|
+
**/
|
|
1663
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1664
|
+
};
|
|
1665
|
+
system: {
|
|
1666
|
+
/**
|
|
1667
|
+
* The full account information for a particular account ID.
|
|
1668
|
+
**/
|
|
1669
|
+
account: AugmentedQuery<
|
|
1670
|
+
ApiType,
|
|
1671
|
+
(arg: AccountId20 | string | Uint8Array) => Observable<FrameSystemAccountInfo>,
|
|
1672
|
+
[AccountId20]
|
|
1673
|
+
> &
|
|
1674
|
+
QueryableStorageEntry<ApiType, [AccountId20]>;
|
|
1675
|
+
/**
|
|
1676
|
+
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
1677
|
+
**/
|
|
1678
|
+
allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> &
|
|
1679
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1680
|
+
/**
|
|
1681
|
+
* `Some` if a code upgrade has been authorized.
|
|
1682
|
+
**/
|
|
1683
|
+
authorizedUpgrade: AugmentedQuery<
|
|
1684
|
+
ApiType,
|
|
1685
|
+
() => Observable<Option<FrameSystemCodeUpgradeAuthorization>>,
|
|
1686
|
+
[]
|
|
1687
|
+
> &
|
|
1688
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1689
|
+
/**
|
|
1690
|
+
* Map of block numbers to block hashes.
|
|
1691
|
+
**/
|
|
1692
|
+
blockHash: AugmentedQuery<
|
|
1693
|
+
ApiType,
|
|
1694
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<H256>,
|
|
1695
|
+
[u32]
|
|
1696
|
+
> &
|
|
1697
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
1698
|
+
/**
|
|
1699
|
+
* The current weight for the block.
|
|
1700
|
+
**/
|
|
1701
|
+
blockWeight: AugmentedQuery<
|
|
1702
|
+
ApiType,
|
|
1703
|
+
() => Observable<FrameSupportDispatchPerDispatchClassWeight>,
|
|
1704
|
+
[]
|
|
1705
|
+
> &
|
|
1706
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1707
|
+
/**
|
|
1708
|
+
* Digest of the current block, also part of the block header.
|
|
1709
|
+
**/
|
|
1710
|
+
digest: AugmentedQuery<ApiType, () => Observable<SpRuntimeDigest>, []> &
|
|
1711
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1712
|
+
/**
|
|
1713
|
+
* The number of events in the `Events<T>` list.
|
|
1714
|
+
**/
|
|
1715
|
+
eventCount: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1716
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1717
|
+
/**
|
|
1718
|
+
* Events deposited for the current block.
|
|
1719
|
+
*
|
|
1720
|
+
* NOTE: The item is unbound and should therefore never be read on chain.
|
|
1721
|
+
* It could otherwise inflate the PoV size of a block.
|
|
1722
|
+
*
|
|
1723
|
+
* Events have a large in-memory size. Box the events to not go out-of-memory
|
|
1724
|
+
* just in case someone still reads them from within the runtime.
|
|
1725
|
+
**/
|
|
1726
|
+
events: AugmentedQuery<ApiType, () => Observable<Vec<FrameSystemEventRecord>>, []> &
|
|
1727
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1728
|
+
/**
|
|
1729
|
+
* Mapping between a topic (represented by T::Hash) and a vector of indexes
|
|
1730
|
+
* of events in the `<Events<T>>` list.
|
|
1731
|
+
*
|
|
1732
|
+
* All topic vectors have deterministic storage locations depending on the topic. This
|
|
1733
|
+
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
|
1734
|
+
* in case of changes fetch the list of events of interest.
|
|
1735
|
+
*
|
|
1736
|
+
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
|
1737
|
+
* the `EventIndex` then in case if the topic has the same contents on the next block
|
|
1738
|
+
* no notification will be triggered thus the event might be lost.
|
|
1739
|
+
**/
|
|
1740
|
+
eventTopics: AugmentedQuery<
|
|
1741
|
+
ApiType,
|
|
1742
|
+
(arg: H256 | string | Uint8Array) => Observable<Vec<ITuple<[u32, u32]>>>,
|
|
1743
|
+
[H256]
|
|
1744
|
+
> &
|
|
1745
|
+
QueryableStorageEntry<ApiType, [H256]>;
|
|
1746
|
+
/**
|
|
1747
|
+
* The execution phase of the block.
|
|
1748
|
+
**/
|
|
1749
|
+
executionPhase: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemPhase>>, []> &
|
|
1750
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1751
|
+
/**
|
|
1752
|
+
* Total extrinsics count for the current block.
|
|
1753
|
+
**/
|
|
1754
|
+
extrinsicCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> &
|
|
1755
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1756
|
+
/**
|
|
1757
|
+
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
1758
|
+
**/
|
|
1759
|
+
extrinsicData: AugmentedQuery<
|
|
1760
|
+
ApiType,
|
|
1761
|
+
(arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>,
|
|
1762
|
+
[u32]
|
|
1763
|
+
> &
|
|
1764
|
+
QueryableStorageEntry<ApiType, [u32]>;
|
|
1765
|
+
/**
|
|
1766
|
+
* Whether all inherents have been applied.
|
|
1767
|
+
**/
|
|
1768
|
+
inherentsApplied: AugmentedQuery<ApiType, () => Observable<bool>, []> &
|
|
1769
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1770
|
+
/**
|
|
1771
|
+
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
1772
|
+
**/
|
|
1773
|
+
lastRuntimeUpgrade: AugmentedQuery<
|
|
1774
|
+
ApiType,
|
|
1775
|
+
() => Observable<Option<FrameSystemLastRuntimeUpgradeInfo>>,
|
|
1776
|
+
[]
|
|
1777
|
+
> &
|
|
1778
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1779
|
+
/**
|
|
1780
|
+
* The current block number being processed. Set by `execute_block`.
|
|
1781
|
+
**/
|
|
1782
|
+
number: AugmentedQuery<ApiType, () => Observable<u32>, []> &
|
|
1783
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1784
|
+
/**
|
|
1785
|
+
* Hash of the previous block.
|
|
1786
|
+
**/
|
|
1787
|
+
parentHash: AugmentedQuery<ApiType, () => Observable<H256>, []> &
|
|
1788
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1789
|
+
/**
|
|
1790
|
+
* True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
|
|
1791
|
+
* (default) if not.
|
|
1792
|
+
**/
|
|
1793
|
+
upgradedToTripleRefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> &
|
|
1794
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1795
|
+
/**
|
|
1796
|
+
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
1797
|
+
**/
|
|
1798
|
+
upgradedToU32RefCount: AugmentedQuery<ApiType, () => Observable<bool>, []> &
|
|
1799
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1800
|
+
/**
|
|
1801
|
+
* Generic query
|
|
1802
|
+
**/
|
|
1803
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1804
|
+
};
|
|
1805
|
+
timestamp: {
|
|
1806
|
+
/**
|
|
1807
|
+
* Whether the timestamp has been updated in this block.
|
|
1808
|
+
*
|
|
1809
|
+
* This value is updated to `true` upon successful submission of a timestamp by a node.
|
|
1810
|
+
* It is then checked at the end of each block execution in the `on_finalize` hook.
|
|
1811
|
+
**/
|
|
1812
|
+
didUpdate: AugmentedQuery<ApiType, () => Observable<bool>, []> &
|
|
1813
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1814
|
+
/**
|
|
1815
|
+
* The current time for the current block.
|
|
1816
|
+
**/
|
|
1817
|
+
now: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1818
|
+
/**
|
|
1819
|
+
* Generic query
|
|
1820
|
+
**/
|
|
1821
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1822
|
+
};
|
|
1823
|
+
transactionPayment: {
|
|
1824
|
+
nextFeeMultiplier: AugmentedQuery<ApiType, () => Observable<u128>, []> &
|
|
1825
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1826
|
+
storageVersion: AugmentedQuery<
|
|
1827
|
+
ApiType,
|
|
1828
|
+
() => Observable<PalletTransactionPaymentReleases>,
|
|
1829
|
+
[]
|
|
1830
|
+
> &
|
|
1831
|
+
QueryableStorageEntry<ApiType, []>;
|
|
1832
|
+
/**
|
|
1833
|
+
* Generic query
|
|
1834
|
+
**/
|
|
1835
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1836
|
+
};
|
|
1837
|
+
} // AugmentedQueries
|
|
1838
|
+
} // declare module
|