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