@dedot/api 0.0.1-alpha.32

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 (202) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +1 -0
  3. package/chaintypes/index.d.ts +1 -0
  4. package/chaintypes/index.js +1 -0
  5. package/chaintypes/substrate/consts.d.ts +2132 -0
  6. package/chaintypes/substrate/consts.js +2 -0
  7. package/chaintypes/substrate/errors.d.ts +3490 -0
  8. package/chaintypes/substrate/errors.js +2 -0
  9. package/chaintypes/substrate/events.d.ts +5187 -0
  10. package/chaintypes/substrate/events.js +2 -0
  11. package/chaintypes/substrate/index.d.ts +22 -0
  12. package/chaintypes/substrate/index.js +2 -0
  13. package/chaintypes/substrate/json-rpc.d.ts +3 -0
  14. package/chaintypes/substrate/json-rpc.js +2 -0
  15. package/chaintypes/substrate/query.d.ts +3829 -0
  16. package/chaintypes/substrate/query.js +2 -0
  17. package/chaintypes/substrate/runtime.d.ts +850 -0
  18. package/chaintypes/substrate/runtime.js +2 -0
  19. package/chaintypes/substrate/tx.d.ts +14269 -0
  20. package/chaintypes/substrate/tx.js +2 -0
  21. package/chaintypes/substrate/types.d.ts +30457 -0
  22. package/chaintypes/substrate/types.js +2 -0
  23. package/cjs/chaintypes/index.js +17 -0
  24. package/cjs/chaintypes/substrate/consts.js +3 -0
  25. package/cjs/chaintypes/substrate/errors.js +3 -0
  26. package/cjs/chaintypes/substrate/events.js +3 -0
  27. package/cjs/chaintypes/substrate/index.js +18 -0
  28. package/cjs/chaintypes/substrate/json-rpc.js +3 -0
  29. package/cjs/chaintypes/substrate/query.js +3 -0
  30. package/cjs/chaintypes/substrate/runtime.js +3 -0
  31. package/cjs/chaintypes/substrate/tx.js +3 -0
  32. package/cjs/chaintypes/substrate/types.js +3 -0
  33. package/cjs/client/BaseSubstrateClient.js +257 -0
  34. package/cjs/client/Dedot.js +250 -0
  35. package/cjs/client/DedotClient.js +186 -0
  36. package/cjs/client/index.js +18 -0
  37. package/cjs/executor/ConstantExecutor.js +20 -0
  38. package/cjs/executor/ErrorExecutor.js +46 -0
  39. package/cjs/executor/EventExecutor.js +52 -0
  40. package/cjs/executor/Executor.js +42 -0
  41. package/cjs/executor/RuntimeApiExecutor.js +121 -0
  42. package/cjs/executor/StorageQueryExecutor.js +115 -0
  43. package/cjs/executor/TxExecutor.js +55 -0
  44. package/cjs/executor/index.js +26 -0
  45. package/cjs/executor/v2/RuntimeApiExecutorV2.js +21 -0
  46. package/cjs/executor/v2/StorageQueryExecutorV2.js +65 -0
  47. package/cjs/executor/v2/TxExecutorV2.js +20 -0
  48. package/cjs/extrinsic/extensions/ExtraSignedExtension.js +87 -0
  49. package/cjs/extrinsic/extensions/SignedExtension.js +41 -0
  50. package/cjs/extrinsic/extensions/index.js +19 -0
  51. package/cjs/extrinsic/extensions/known/ChargeAssetTxPayment.js +43 -0
  52. package/cjs/extrinsic/extensions/known/ChargeTransactionPayment.js +16 -0
  53. package/cjs/extrinsic/extensions/known/CheckGenesis.js +19 -0
  54. package/cjs/extrinsic/extensions/known/CheckMortality.js +90 -0
  55. package/cjs/extrinsic/extensions/known/CheckNonZeroSender.js +10 -0
  56. package/cjs/extrinsic/extensions/known/CheckNonce.js +33 -0
  57. package/cjs/extrinsic/extensions/known/CheckSpecVersion.js +19 -0
  58. package/cjs/extrinsic/extensions/known/CheckTxVersion.js +19 -0
  59. package/cjs/extrinsic/extensions/known/CheckWeight.js +10 -0
  60. package/cjs/extrinsic/extensions/known/PrevalidateAttests.js +11 -0
  61. package/cjs/extrinsic/extensions/known/index.js +25 -0
  62. package/cjs/extrinsic/index.js +18 -0
  63. package/cjs/extrinsic/submittable/BaseSubmittableExtrinsic.js +70 -0
  64. package/cjs/extrinsic/submittable/SubmittableExtrinsic.js +47 -0
  65. package/cjs/extrinsic/submittable/SubmittableExtrinsicV2.js +204 -0
  66. package/cjs/extrinsic/submittable/SubmittableResult.js +33 -0
  67. package/cjs/extrinsic/submittable/errors.js +16 -0
  68. package/cjs/extrinsic/submittable/fakeSigner.js +13 -0
  69. package/cjs/extrinsic/submittable/index.js +20 -0
  70. package/cjs/extrinsic/submittable/utils.js +20 -0
  71. package/cjs/index.js +21 -0
  72. package/cjs/json-rpc/JsonRpcClient.js +165 -0
  73. package/cjs/json-rpc/group/ChainHead/BlockUsage.js +24 -0
  74. package/cjs/json-rpc/group/ChainHead/ChainHead.js +603 -0
  75. package/cjs/json-rpc/group/ChainHead/error.js +59 -0
  76. package/cjs/json-rpc/group/ChainHead/index.js +18 -0
  77. package/cjs/json-rpc/group/ChainSpec.js +19 -0
  78. package/cjs/json-rpc/group/JsonRpcGroup.js +89 -0
  79. package/cjs/json-rpc/group/Transaction.js +25 -0
  80. package/cjs/json-rpc/group/TransactionWatch.js +17 -0
  81. package/cjs/json-rpc/group/index.js +21 -0
  82. package/cjs/json-rpc/index.js +20 -0
  83. package/cjs/json-rpc/scaledResponses.js +15 -0
  84. package/cjs/json-rpc/subscriptionsInfo.js +20 -0
  85. package/cjs/package.json +1 -0
  86. package/cjs/proxychain.js +27 -0
  87. package/cjs/storage/QueryableStorage.js +161 -0
  88. package/cjs/storage/index.js +17 -0
  89. package/cjs/types.js +2 -0
  90. package/client/BaseSubstrateClient.d.ts +65 -0
  91. package/client/BaseSubstrateClient.js +252 -0
  92. package/client/Dedot.d.ts +131 -0
  93. package/client/Dedot.js +246 -0
  94. package/client/DedotClient.d.ts +61 -0
  95. package/client/DedotClient.js +182 -0
  96. package/client/index.d.ts +2 -0
  97. package/client/index.js +2 -0
  98. package/executor/ConstantExecutor.d.ts +10 -0
  99. package/executor/ConstantExecutor.js +16 -0
  100. package/executor/ErrorExecutor.d.ts +10 -0
  101. package/executor/ErrorExecutor.js +42 -0
  102. package/executor/EventExecutor.d.ts +10 -0
  103. package/executor/EventExecutor.js +48 -0
  104. package/executor/Executor.d.ts +149 -0
  105. package/executor/Executor.js +38 -0
  106. package/executor/RuntimeApiExecutor.d.ts +27 -0
  107. package/executor/RuntimeApiExecutor.js +117 -0
  108. package/executor/StorageQueryExecutor.d.ts +14 -0
  109. package/executor/StorageQueryExecutor.js +111 -0
  110. package/executor/TxExecutor.d.ts +10 -0
  111. package/executor/TxExecutor.js +51 -0
  112. package/executor/index.d.ts +10 -0
  113. package/executor/index.js +10 -0
  114. package/executor/v2/RuntimeApiExecutorV2.d.ts +14 -0
  115. package/executor/v2/RuntimeApiExecutorV2.js +17 -0
  116. package/executor/v2/StorageQueryExecutorV2.d.ts +17 -0
  117. package/executor/v2/StorageQueryExecutorV2.js +61 -0
  118. package/executor/v2/TxExecutorV2.d.ts +11 -0
  119. package/executor/v2/TxExecutorV2.js +16 -0
  120. package/extrinsic/extensions/ExtraSignedExtension.d.ts +14 -0
  121. package/extrinsic/extensions/ExtraSignedExtension.js +60 -0
  122. package/extrinsic/extensions/SignedExtension.d.ts +40 -0
  123. package/extrinsic/extensions/SignedExtension.js +37 -0
  124. package/extrinsic/extensions/index.d.ts +3 -0
  125. package/extrinsic/extensions/index.js +3 -0
  126. package/extrinsic/extensions/known/ChargeAssetTxPayment.d.ts +14 -0
  127. package/extrinsic/extensions/known/ChargeAssetTxPayment.js +39 -0
  128. package/extrinsic/extensions/known/ChargeTransactionPayment.d.ts +6 -0
  129. package/extrinsic/extensions/known/ChargeTransactionPayment.js +12 -0
  130. package/extrinsic/extensions/known/CheckGenesis.d.ts +10 -0
  131. package/extrinsic/extensions/known/CheckGenesis.js +15 -0
  132. package/extrinsic/extensions/known/CheckMortality.d.ts +15 -0
  133. package/extrinsic/extensions/known/CheckMortality.js +86 -0
  134. package/extrinsic/extensions/known/CheckNonZeroSender.d.ts +6 -0
  135. package/extrinsic/extensions/known/CheckNonZeroSender.js +6 -0
  136. package/extrinsic/extensions/known/CheckNonce.d.ts +10 -0
  137. package/extrinsic/extensions/known/CheckNonce.js +29 -0
  138. package/extrinsic/extensions/known/CheckSpecVersion.d.ts +9 -0
  139. package/extrinsic/extensions/known/CheckSpecVersion.js +15 -0
  140. package/extrinsic/extensions/known/CheckTxVersion.d.ts +9 -0
  141. package/extrinsic/extensions/known/CheckTxVersion.js +15 -0
  142. package/extrinsic/extensions/known/CheckWeight.d.ts +6 -0
  143. package/extrinsic/extensions/known/CheckWeight.js +6 -0
  144. package/extrinsic/extensions/known/PrevalidateAttests.d.ts +7 -0
  145. package/extrinsic/extensions/known/PrevalidateAttests.js +7 -0
  146. package/extrinsic/extensions/known/index.d.ts +3 -0
  147. package/extrinsic/extensions/known/index.js +22 -0
  148. package/extrinsic/index.d.ts +2 -0
  149. package/extrinsic/index.js +2 -0
  150. package/extrinsic/submittable/BaseSubmittableExtrinsic.d.ts +17 -0
  151. package/extrinsic/submittable/BaseSubmittableExtrinsic.js +66 -0
  152. package/extrinsic/submittable/SubmittableExtrinsic.d.ts +12 -0
  153. package/extrinsic/submittable/SubmittableExtrinsic.js +43 -0
  154. package/extrinsic/submittable/SubmittableExtrinsicV2.d.ts +15 -0
  155. package/extrinsic/submittable/SubmittableExtrinsicV2.js +200 -0
  156. package/extrinsic/submittable/SubmittableResult.d.ts +19 -0
  157. package/extrinsic/submittable/SubmittableResult.js +29 -0
  158. package/extrinsic/submittable/errors.d.ts +11 -0
  159. package/extrinsic/submittable/errors.js +12 -0
  160. package/extrinsic/submittable/fakeSigner.d.ts +2 -0
  161. package/extrinsic/submittable/fakeSigner.js +10 -0
  162. package/extrinsic/submittable/index.d.ts +4 -0
  163. package/extrinsic/submittable/index.js +4 -0
  164. package/extrinsic/submittable/utils.d.ts +10 -0
  165. package/extrinsic/submittable/utils.js +15 -0
  166. package/index.d.ts +6 -0
  167. package/index.js +5 -0
  168. package/json-rpc/JsonRpcClient.d.ts +50 -0
  169. package/json-rpc/JsonRpcClient.js +160 -0
  170. package/json-rpc/group/ChainHead/BlockUsage.d.ts +11 -0
  171. package/json-rpc/group/ChainHead/BlockUsage.js +20 -0
  172. package/json-rpc/group/ChainHead/ChainHead.d.ts +70 -0
  173. package/json-rpc/group/ChainHead/ChainHead.js +599 -0
  174. package/json-rpc/group/ChainHead/error.d.ts +47 -0
  175. package/json-rpc/group/ChainHead/error.js +48 -0
  176. package/json-rpc/group/ChainHead/index.d.ts +2 -0
  177. package/json-rpc/group/ChainHead/index.js +2 -0
  178. package/json-rpc/group/ChainSpec.d.ts +10 -0
  179. package/json-rpc/group/ChainSpec.js +15 -0
  180. package/json-rpc/group/JsonRpcGroup.d.ts +74 -0
  181. package/json-rpc/group/JsonRpcGroup.js +85 -0
  182. package/json-rpc/group/Transaction.d.ts +11 -0
  183. package/json-rpc/group/Transaction.js +21 -0
  184. package/json-rpc/group/TransactionWatch.d.ts +10 -0
  185. package/json-rpc/group/TransactionWatch.js +13 -0
  186. package/json-rpc/group/index.d.ts +5 -0
  187. package/json-rpc/group/index.js +5 -0
  188. package/json-rpc/index.d.ts +4 -0
  189. package/json-rpc/index.js +4 -0
  190. package/json-rpc/scaledResponses.d.ts +2 -0
  191. package/json-rpc/scaledResponses.js +12 -0
  192. package/json-rpc/subscriptionsInfo.d.ts +2 -0
  193. package/json-rpc/subscriptionsInfo.js +17 -0
  194. package/package.json +54 -0
  195. package/proxychain.d.ts +14 -0
  196. package/proxychain.js +23 -0
  197. package/storage/QueryableStorage.d.ts +35 -0
  198. package/storage/QueryableStorage.js +157 -0
  199. package/storage/index.d.ts +1 -0
  200. package/storage/index.js +1 -0
  201. package/types.d.ts +120 -0
  202. package/types.js +1 -0
@@ -0,0 +1,2132 @@
1
+ import type { Bytes, FixedBytes, Perbill, Percent, Permill, Perquintill, RuntimeVersion } from '@dedot/codecs';
2
+ import type { GenericChainConsts, RpcVersion } from '@dedot/types';
3
+ import type { FrameSupportPalletId, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletContractsApiVersion, PalletContractsEnvironment, PalletContractsSchedule, PalletNftsBitFlagsPalletFeature, PalletReferendaTrackInfo, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight } from './types.js';
4
+ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
5
+ /**
6
+ * Pallet `System`'s constants
7
+ **/
8
+ system: {
9
+ /**
10
+ * Block & extrinsics weights: base values and limits.
11
+ **/
12
+ blockWeights: FrameSystemLimitsBlockWeights;
13
+ /**
14
+ * The maximum length of a block (in bytes).
15
+ **/
16
+ blockLength: FrameSystemLimitsBlockLength;
17
+ /**
18
+ * Maximum number of block number to block hash mappings to keep (oldest pruned first).
19
+ **/
20
+ blockHashCount: number;
21
+ /**
22
+ * The weight of runtime database operations the runtime can invoke.
23
+ **/
24
+ dbWeight: SpWeightsRuntimeDbWeight;
25
+ /**
26
+ * Get the chain's in-code version.
27
+ **/
28
+ version: RuntimeVersion;
29
+ /**
30
+ * The designated SS58 prefix of this chain.
31
+ *
32
+ * This replaces the "ss58Format" property declared in the chain spec. Reason is
33
+ * that the runtime should know about the prefix in order to make use of it as
34
+ * an identifier of the chain.
35
+ **/
36
+ ss58Prefix: number;
37
+ /**
38
+ * Generic pallet constant
39
+ **/
40
+ [name: string]: any;
41
+ };
42
+ /**
43
+ * Pallet `Utility`'s constants
44
+ **/
45
+ utility: {
46
+ /**
47
+ * The limit on the number of batched calls.
48
+ **/
49
+ batchedCallsLimit: number;
50
+ /**
51
+ * Generic pallet constant
52
+ **/
53
+ [name: string]: any;
54
+ };
55
+ /**
56
+ * Pallet `Babe`'s constants
57
+ **/
58
+ babe: {
59
+ /**
60
+ * The amount of time, in slots, that each epoch should last.
61
+ * NOTE: Currently it is not possible to change the epoch duration after
62
+ * the chain has started. Attempting to do so will brick block production.
63
+ **/
64
+ epochDuration: bigint;
65
+ /**
66
+ * The expected average block time at which BABE should be creating
67
+ * blocks. Since BABE is probabilistic it is not trivial to figure out
68
+ * what the expected average block time should be based on the slot
69
+ * duration and the security parameter `c` (where `1 - c` represents
70
+ * the probability of a slot being empty).
71
+ **/
72
+ expectedBlockTime: bigint;
73
+ /**
74
+ * Max number of authorities allowed
75
+ **/
76
+ maxAuthorities: number;
77
+ /**
78
+ * The maximum number of nominators for each validator.
79
+ **/
80
+ maxNominators: number;
81
+ /**
82
+ * Generic pallet constant
83
+ **/
84
+ [name: string]: any;
85
+ };
86
+ /**
87
+ * Pallet `Timestamp`'s constants
88
+ **/
89
+ timestamp: {
90
+ /**
91
+ * The minimum period between blocks.
92
+ *
93
+ * Be aware that this is different to the *expected* period that the block production
94
+ * apparatus provides. Your chosen consensus system will generally work with this to
95
+ * determine a sensible block time. For example, in the Aura pallet it will be double this
96
+ * period on default settings.
97
+ **/
98
+ minimumPeriod: bigint;
99
+ /**
100
+ * Generic pallet constant
101
+ **/
102
+ [name: string]: any;
103
+ };
104
+ /**
105
+ * Pallet `Authorship`'s constants
106
+ **/
107
+ authorship: {
108
+ /**
109
+ * Generic pallet constant
110
+ **/
111
+ [name: string]: any;
112
+ };
113
+ /**
114
+ * Pallet `Indices`'s constants
115
+ **/
116
+ indices: {
117
+ /**
118
+ * The deposit needed for reserving an index.
119
+ **/
120
+ deposit: bigint;
121
+ /**
122
+ * Generic pallet constant
123
+ **/
124
+ [name: string]: any;
125
+ };
126
+ /**
127
+ * Pallet `Balances`'s constants
128
+ **/
129
+ balances: {
130
+ /**
131
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
132
+ *
133
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
134
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
135
+ * In case you have multiple sources of provider references, you may also get unexpected
136
+ * behaviour if you set this to zero.
137
+ *
138
+ * Bottom line: Do yourself a favour and make it at least one!
139
+ **/
140
+ existentialDeposit: bigint;
141
+ /**
142
+ * The maximum number of locks that should exist on an account.
143
+ * Not strictly enforced, but used for weight estimation.
144
+ **/
145
+ maxLocks: number;
146
+ /**
147
+ * The maximum number of named reserves that can exist on an account.
148
+ **/
149
+ maxReserves: number;
150
+ /**
151
+ * The maximum number of individual freeze locks that can exist on an account at any time.
152
+ **/
153
+ maxFreezes: number;
154
+ /**
155
+ * Generic pallet constant
156
+ **/
157
+ [name: string]: any;
158
+ };
159
+ /**
160
+ * Pallet `TransactionPayment`'s constants
161
+ **/
162
+ transactionPayment: {
163
+ /**
164
+ * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
165
+ * `priority`
166
+ *
167
+ * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
168
+ * added to a tip component in regular `priority` calculations.
169
+ * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
170
+ * extrinsic (with no tip), by including a tip value greater than the virtual tip.
171
+ *
172
+ * ```rust,ignore
173
+ * // For `Normal`
174
+ * let priority = priority_calc(tip);
175
+ *
176
+ * // For `Operational`
177
+ * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
178
+ * let priority = priority_calc(tip + virtual_tip);
179
+ * ```
180
+ *
181
+ * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
182
+ * sent with the transaction. So, not only does the transaction get a priority bump based
183
+ * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
184
+ * transactions.
185
+ **/
186
+ operationalFeeMultiplier: number;
187
+ /**
188
+ * Generic pallet constant
189
+ **/
190
+ [name: string]: any;
191
+ };
192
+ /**
193
+ * Pallet `AssetTxPayment`'s constants
194
+ **/
195
+ assetTxPayment: {
196
+ /**
197
+ * Generic pallet constant
198
+ **/
199
+ [name: string]: any;
200
+ };
201
+ /**
202
+ * Pallet `AssetConversionTxPayment`'s constants
203
+ **/
204
+ assetConversionTxPayment: {
205
+ /**
206
+ * Generic pallet constant
207
+ **/
208
+ [name: string]: any;
209
+ };
210
+ /**
211
+ * Pallet `ElectionProviderMultiPhase`'s constants
212
+ **/
213
+ electionProviderMultiPhase: {
214
+ /**
215
+ * Duration of the unsigned phase.
216
+ **/
217
+ unsignedPhase: number;
218
+ /**
219
+ * Duration of the signed phase.
220
+ **/
221
+ signedPhase: number;
222
+ /**
223
+ * The minimum amount of improvement to the solution score that defines a solution as
224
+ * "better" in the Signed phase.
225
+ **/
226
+ betterSignedThreshold: Perbill;
227
+ /**
228
+ * The repeat threshold of the offchain worker.
229
+ *
230
+ * For example, if it is 5, that means that at least 5 blocks will elapse between attempts
231
+ * to submit the worker's solution.
232
+ **/
233
+ offchainRepeat: number;
234
+ /**
235
+ * The priority of the unsigned transaction submitted in the unsigned-phase
236
+ **/
237
+ minerTxPriority: bigint;
238
+ /**
239
+ * Maximum number of signed submissions that can be queued.
240
+ *
241
+ * It is best to avoid adjusting this during an election, as it impacts downstream data
242
+ * structures. In particular, `SignedSubmissionIndices<T>` is bounded on this value. If you
243
+ * update this value during an election, you _must_ ensure that
244
+ * `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,
245
+ * attempts to submit new solutions may cause a runtime panic.
246
+ **/
247
+ signedMaxSubmissions: number;
248
+ /**
249
+ * Maximum weight of a signed solution.
250
+ *
251
+ * If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of
252
+ * this pallet), then [`MinerConfig::solution_weight`] is used to compare against
253
+ * this value.
254
+ **/
255
+ signedMaxWeight: SpWeightsWeightV2Weight;
256
+ /**
257
+ * The maximum amount of unchecked solutions to refund the call fee for.
258
+ **/
259
+ signedMaxRefunds: number;
260
+ /**
261
+ * Base reward for a signed solution
262
+ **/
263
+ signedRewardBase: bigint;
264
+ /**
265
+ * Per-byte deposit for a signed solution.
266
+ **/
267
+ signedDepositByte: bigint;
268
+ /**
269
+ * Per-weight deposit for a signed solution.
270
+ **/
271
+ signedDepositWeight: bigint;
272
+ /**
273
+ * The maximum number of winners that can be elected by this `ElectionProvider`
274
+ * implementation.
275
+ *
276
+ * Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
277
+ **/
278
+ maxWinners: number;
279
+ minerMaxLength: number;
280
+ minerMaxWeight: SpWeightsWeightV2Weight;
281
+ minerMaxVotesPerVoter: number;
282
+ minerMaxWinners: number;
283
+ /**
284
+ * Generic pallet constant
285
+ **/
286
+ [name: string]: any;
287
+ };
288
+ /**
289
+ * Pallet `Staking`'s constants
290
+ **/
291
+ staking: {
292
+ /**
293
+ * Number of eras to keep in history.
294
+ *
295
+ * Following information is kept for eras in `[current_era -
296
+ * HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
297
+ * `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
298
+ * `ErasTotalStake`, `ErasStartSessionIndex`, `ClaimedRewards`, `ErasStakersPaged`,
299
+ * `ErasStakersOverview`.
300
+ *
301
+ * Must be more than the number of eras delayed by session.
302
+ * I.e. active era must always be in history. I.e. `active_era >
303
+ * current_era - history_depth` must be guaranteed.
304
+ *
305
+ * If migrating an existing pallet from storage value to config value,
306
+ * this should be set to same value or greater as in storage.
307
+ *
308
+ * Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
309
+ * item `StakingLedger.legacy_claimed_rewards`. Setting this value lower than
310
+ * the existing value can lead to inconsistencies in the
311
+ * `StakingLedger` and will need to be handled properly in a migration.
312
+ * The test `reducing_history_depth_abrupt` shows this effect.
313
+ **/
314
+ historyDepth: number;
315
+ /**
316
+ * Number of sessions per era.
317
+ **/
318
+ sessionsPerEra: number;
319
+ /**
320
+ * Number of eras that staked funds must remain bonded for.
321
+ **/
322
+ bondingDuration: number;
323
+ /**
324
+ * Number of eras that slashes are deferred by, after computation.
325
+ *
326
+ * This should be less than the bonding duration. Set to 0 if slashes
327
+ * should be applied immediately, without opportunity for intervention.
328
+ **/
329
+ slashDeferDuration: number;
330
+ /**
331
+ * The maximum size of each `T::ExposurePage`.
332
+ *
333
+ * An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
334
+ * nominators.
335
+ *
336
+ * For older non-paged exposure, a reward payout was restricted to the top
337
+ * `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
338
+ * nominator payout.
339
+ *
340
+ * Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to reduce
341
+ * without handling it in a migration.
342
+ **/
343
+ maxExposurePageSize: number;
344
+ /**
345
+ * The maximum number of `unlocking` chunks a [`StakingLedger`] can
346
+ * have. Effectively determines how many unique eras a staker may be
347
+ * unbonding in.
348
+ *
349
+ * Note: `MaxUnlockingChunks` is used as the upper bound for the
350
+ * `BoundedVec` item `StakingLedger.unlocking`. Setting this value
351
+ * lower than the existing value can lead to inconsistencies in the
352
+ * `StakingLedger` and will need to be handled properly in a runtime
353
+ * migration. The test `reducing_max_unlocking_chunks_abrupt` shows
354
+ * this effect.
355
+ **/
356
+ maxUnlockingChunks: number;
357
+ /**
358
+ * Generic pallet constant
359
+ **/
360
+ [name: string]: any;
361
+ };
362
+ /**
363
+ * Pallet `Session`'s constants
364
+ **/
365
+ session: {
366
+ /**
367
+ * Generic pallet constant
368
+ **/
369
+ [name: string]: any;
370
+ };
371
+ /**
372
+ * Pallet `Democracy`'s constants
373
+ **/
374
+ democracy: {
375
+ /**
376
+ * The period between a proposal being approved and enacted.
377
+ *
378
+ * It should generally be a little more than the unstake period to ensure that
379
+ * voting stakers have an opportunity to remove themselves from the system in the case
380
+ * where they are on the losing side of a vote.
381
+ **/
382
+ enactmentPeriod: number;
383
+ /**
384
+ * How often (in blocks) new public referenda are launched.
385
+ **/
386
+ launchPeriod: number;
387
+ /**
388
+ * How often (in blocks) to check for new votes.
389
+ **/
390
+ votingPeriod: number;
391
+ /**
392
+ * The minimum period of vote locking.
393
+ *
394
+ * It should be no shorter than enactment period to ensure that in the case of an approval,
395
+ * those successful voters are locked into the consequences that their votes entail.
396
+ **/
397
+ voteLockingPeriod: number;
398
+ /**
399
+ * The minimum amount to be used as a deposit for a public referendum proposal.
400
+ **/
401
+ minimumDeposit: bigint;
402
+ /**
403
+ * Indicator for whether an emergency origin is even allowed to happen. Some chains may
404
+ * want to set this permanently to `false`, others may want to condition it on things such
405
+ * as an upgrade having happened recently.
406
+ **/
407
+ instantAllowed: boolean;
408
+ /**
409
+ * Minimum voting period allowed for a fast-track referendum.
410
+ **/
411
+ fastTrackVotingPeriod: number;
412
+ /**
413
+ * Period in blocks where an external proposal may not be re-submitted after being vetoed.
414
+ **/
415
+ cooloffPeriod: number;
416
+ /**
417
+ * The maximum number of votes for an account.
418
+ *
419
+ * Also used to compute weight, an overly big value can
420
+ * lead to extrinsic with very big weight: see `delegate` for instance.
421
+ **/
422
+ maxVotes: number;
423
+ /**
424
+ * The maximum number of public proposals that can exist at any time.
425
+ **/
426
+ maxProposals: number;
427
+ /**
428
+ * The maximum number of deposits a public proposal may have at any time.
429
+ **/
430
+ maxDeposits: number;
431
+ /**
432
+ * The maximum number of items which can be blacklisted.
433
+ **/
434
+ maxBlacklisted: number;
435
+ /**
436
+ * Generic pallet constant
437
+ **/
438
+ [name: string]: any;
439
+ };
440
+ /**
441
+ * Pallet `Council`'s constants
442
+ **/
443
+ council: {
444
+ /**
445
+ * The maximum weight of a dispatch call that can be proposed and executed.
446
+ **/
447
+ maxProposalWeight: SpWeightsWeightV2Weight;
448
+ /**
449
+ * Generic pallet constant
450
+ **/
451
+ [name: string]: any;
452
+ };
453
+ /**
454
+ * Pallet `TechnicalCommittee`'s constants
455
+ **/
456
+ technicalCommittee: {
457
+ /**
458
+ * The maximum weight of a dispatch call that can be proposed and executed.
459
+ **/
460
+ maxProposalWeight: SpWeightsWeightV2Weight;
461
+ /**
462
+ * Generic pallet constant
463
+ **/
464
+ [name: string]: any;
465
+ };
466
+ /**
467
+ * Pallet `Elections`'s constants
468
+ **/
469
+ elections: {
470
+ /**
471
+ * Identifier for the elections-phragmen pallet's lock
472
+ **/
473
+ palletId: FixedBytes<8>;
474
+ /**
475
+ * How much should be locked up in order to submit one's candidacy.
476
+ **/
477
+ candidacyBond: bigint;
478
+ /**
479
+ * Base deposit associated with voting.
480
+ *
481
+ * This should be sensibly high to economically ensure the pallet cannot be attacked by
482
+ * creating a gigantic number of votes.
483
+ **/
484
+ votingBondBase: bigint;
485
+ /**
486
+ * The amount of bond that need to be locked for each vote (32 bytes).
487
+ **/
488
+ votingBondFactor: bigint;
489
+ /**
490
+ * Number of members to elect.
491
+ **/
492
+ desiredMembers: number;
493
+ /**
494
+ * Number of runners_up to keep.
495
+ **/
496
+ desiredRunnersUp: number;
497
+ /**
498
+ * How long each seat is kept. This defines the next block number at which an election
499
+ * round will happen. If set to zero, no elections are ever triggered and the module will
500
+ * be in passive mode.
501
+ **/
502
+ termDuration: number;
503
+ /**
504
+ * The maximum number of candidates in a phragmen election.
505
+ *
506
+ * Warning: This impacts the size of the election which is run onchain. Chose wisely, and
507
+ * consider how it will impact `T::WeightInfo::election_phragmen`.
508
+ *
509
+ * When this limit is reached no more candidates are accepted in the election.
510
+ **/
511
+ maxCandidates: number;
512
+ /**
513
+ * The maximum number of voters to allow in a phragmen election.
514
+ *
515
+ * Warning: This impacts the size of the election which is run onchain. Chose wisely, and
516
+ * consider how it will impact `T::WeightInfo::election_phragmen`.
517
+ *
518
+ * When the limit is reached the new voters are ignored.
519
+ **/
520
+ maxVoters: number;
521
+ /**
522
+ * Maximum numbers of votes per voter.
523
+ *
524
+ * Warning: This impacts the size of the election which is run onchain. Chose wisely, and
525
+ * consider how it will impact `T::WeightInfo::election_phragmen`.
526
+ **/
527
+ maxVotesPerVoter: number;
528
+ /**
529
+ * Generic pallet constant
530
+ **/
531
+ [name: string]: any;
532
+ };
533
+ /**
534
+ * Pallet `TechnicalMembership`'s constants
535
+ **/
536
+ technicalMembership: {
537
+ /**
538
+ * Generic pallet constant
539
+ **/
540
+ [name: string]: any;
541
+ };
542
+ /**
543
+ * Pallet `Grandpa`'s constants
544
+ **/
545
+ grandpa: {
546
+ /**
547
+ * Max Authorities in use
548
+ **/
549
+ maxAuthorities: number;
550
+ /**
551
+ * The maximum number of nominators for each validator.
552
+ **/
553
+ maxNominators: number;
554
+ /**
555
+ * The maximum number of entries to keep in the set id to session index mapping.
556
+ *
557
+ * Since the `SetIdSession` map is only used for validating equivocations this
558
+ * value should relate to the bonding duration of whatever staking system is
559
+ * being used (if any). If equivocation handling is not enabled then this value
560
+ * can be zero.
561
+ **/
562
+ maxSetIdSessionEntries: bigint;
563
+ /**
564
+ * Generic pallet constant
565
+ **/
566
+ [name: string]: any;
567
+ };
568
+ /**
569
+ * Pallet `Treasury`'s constants
570
+ **/
571
+ treasury: {
572
+ /**
573
+ * Fraction of a proposal's value that should be bonded in order to place the proposal.
574
+ * An accepted proposal gets these back. A rejected proposal does not.
575
+ **/
576
+ proposalBond: Permill;
577
+ /**
578
+ * Minimum amount of funds that should be placed in a deposit for making a proposal.
579
+ **/
580
+ proposalBondMinimum: bigint;
581
+ /**
582
+ * Maximum amount of funds that should be placed in a deposit for making a proposal.
583
+ **/
584
+ proposalBondMaximum: bigint | undefined;
585
+ /**
586
+ * Period between successive spends.
587
+ **/
588
+ spendPeriod: number;
589
+ /**
590
+ * Percentage of spare funds (if any) that are burnt per spend period.
591
+ **/
592
+ burn: Permill;
593
+ /**
594
+ * The treasury's pallet id, used for deriving its sovereign account ID.
595
+ **/
596
+ palletId: FrameSupportPalletId;
597
+ /**
598
+ * The maximum number of approvals that can wait in the spending queue.
599
+ *
600
+ * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
601
+ **/
602
+ maxApprovals: number;
603
+ /**
604
+ * The period during which an approved treasury spend has to be claimed.
605
+ **/
606
+ payoutPeriod: number;
607
+ /**
608
+ * Generic pallet constant
609
+ **/
610
+ [name: string]: any;
611
+ };
612
+ /**
613
+ * Pallet `AssetRate`'s constants
614
+ **/
615
+ assetRate: {
616
+ /**
617
+ * Generic pallet constant
618
+ **/
619
+ [name: string]: any;
620
+ };
621
+ /**
622
+ * Pallet `Contracts`'s constants
623
+ **/
624
+ contracts: {
625
+ /**
626
+ * Cost schedule and limits.
627
+ **/
628
+ schedule: PalletContractsSchedule;
629
+ /**
630
+ * The amount of balance a caller has to pay for each byte of storage.
631
+ *
632
+ * # Note
633
+ *
634
+ * Changing this value for an existing chain might need a storage migration.
635
+ **/
636
+ depositPerByte: bigint;
637
+ /**
638
+ * Fallback value to limit the storage deposit if it's not being set by the caller.
639
+ **/
640
+ defaultDepositLimit: bigint;
641
+ /**
642
+ * The amount of balance a caller has to pay for each storage item.
643
+ *
644
+ * # Note
645
+ *
646
+ * Changing this value for an existing chain might need a storage migration.
647
+ **/
648
+ depositPerItem: bigint;
649
+ /**
650
+ * The percentage of the storage deposit that should be held for using a code hash.
651
+ * Instantiating a contract, or calling [`chain_extension::Ext::lock_delegate_dependency`]
652
+ * protects the code from being removed. In order to prevent abuse these actions are
653
+ * protected with a percentage of the code deposit.
654
+ **/
655
+ codeHashLockupDepositPercent: Perbill;
656
+ /**
657
+ * The maximum length of a contract code in bytes.
658
+ *
659
+ * The value should be chosen carefully taking into the account the overall memory limit
660
+ * your runtime has, as well as the [maximum allowed callstack
661
+ * depth](#associatedtype.CallStack). Look into the `integrity_test()` for some insights.
662
+ **/
663
+ maxCodeLen: number;
664
+ /**
665
+ * The maximum allowable length in bytes for storage keys.
666
+ **/
667
+ maxStorageKeyLen: number;
668
+ /**
669
+ * The maximum number of delegate_dependencies that a contract can lock with
670
+ * [`chain_extension::Ext::lock_delegate_dependency`].
671
+ **/
672
+ maxDelegateDependencies: number;
673
+ /**
674
+ * Make contract callable functions marked as `#[unstable]` available.
675
+ *
676
+ * Contracts that use `#[unstable]` functions won't be able to be uploaded unless
677
+ * this is set to `true`. This is only meant for testnets and dev nodes in order to
678
+ * experiment with new features.
679
+ *
680
+ * # Warning
681
+ *
682
+ * Do **not** set to `true` on productions chains.
683
+ **/
684
+ unsafeUnstableInterface: boolean;
685
+ /**
686
+ * The maximum length of the debug buffer in bytes.
687
+ **/
688
+ maxDebugBufferLen: number;
689
+ /**
690
+ * Type that bundles together all the runtime configurable interface types.
691
+ *
692
+ * This is not a real config. We just mention the type here as constant so that
693
+ * its type appears in the metadata. Only valid value is `()`.
694
+ **/
695
+ environment: PalletContractsEnvironment;
696
+ /**
697
+ * The version of the HostFn APIs that are available in the runtime.
698
+ *
699
+ * Only valid value is `()`.
700
+ **/
701
+ apiVersion: PalletContractsApiVersion;
702
+ /**
703
+ * Generic pallet constant
704
+ **/
705
+ [name: string]: any;
706
+ };
707
+ /**
708
+ * Pallet `Sudo`'s constants
709
+ **/
710
+ sudo: {
711
+ /**
712
+ * Generic pallet constant
713
+ **/
714
+ [name: string]: any;
715
+ };
716
+ /**
717
+ * Pallet `ImOnline`'s constants
718
+ **/
719
+ imOnline: {
720
+ /**
721
+ * A configuration for base priority of unsigned transactions.
722
+ *
723
+ * This is exposed so that it can be tuned for particular runtime, when
724
+ * multiple pallets send unsigned transactions.
725
+ **/
726
+ unsignedPriority: bigint;
727
+ /**
728
+ * Generic pallet constant
729
+ **/
730
+ [name: string]: any;
731
+ };
732
+ /**
733
+ * Pallet `AuthorityDiscovery`'s constants
734
+ **/
735
+ authorityDiscovery: {
736
+ /**
737
+ * Generic pallet constant
738
+ **/
739
+ [name: string]: any;
740
+ };
741
+ /**
742
+ * Pallet `Offences`'s constants
743
+ **/
744
+ offences: {
745
+ /**
746
+ * Generic pallet constant
747
+ **/
748
+ [name: string]: any;
749
+ };
750
+ /**
751
+ * Pallet `Historical`'s constants
752
+ **/
753
+ historical: {
754
+ /**
755
+ * Generic pallet constant
756
+ **/
757
+ [name: string]: any;
758
+ };
759
+ /**
760
+ * Pallet `RandomnessCollectiveFlip`'s constants
761
+ **/
762
+ randomnessCollectiveFlip: {
763
+ /**
764
+ * Generic pallet constant
765
+ **/
766
+ [name: string]: any;
767
+ };
768
+ /**
769
+ * Pallet `Identity`'s constants
770
+ **/
771
+ identity: {
772
+ /**
773
+ * The amount held on deposit for a registered identity.
774
+ **/
775
+ basicDeposit: bigint;
776
+ /**
777
+ * The amount held on deposit per encoded byte for a registered identity.
778
+ **/
779
+ byteDeposit: bigint;
780
+ /**
781
+ * The amount held on deposit for a registered subaccount. This should account for the fact
782
+ * that one storage item's value will increase by the size of an account ID, and there will
783
+ * be another trie item whose value is the size of an account ID plus 32 bytes.
784
+ **/
785
+ subAccountDeposit: bigint;
786
+ /**
787
+ * The maximum number of sub-accounts allowed per identified account.
788
+ **/
789
+ maxSubAccounts: number;
790
+ /**
791
+ * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
792
+ * of, e.g., updating judgements.
793
+ **/
794
+ maxRegistrars: number;
795
+ /**
796
+ * The number of blocks within which a username grant must be accepted.
797
+ **/
798
+ pendingUsernameExpiration: number;
799
+ /**
800
+ * The maximum length of a suffix.
801
+ **/
802
+ maxSuffixLength: number;
803
+ /**
804
+ * The maximum length of a username, including its suffix and any system-added delimiters.
805
+ **/
806
+ maxUsernameLength: number;
807
+ /**
808
+ * Generic pallet constant
809
+ **/
810
+ [name: string]: any;
811
+ };
812
+ /**
813
+ * Pallet `Society`'s constants
814
+ **/
815
+ society: {
816
+ /**
817
+ * The societies's pallet id
818
+ **/
819
+ palletId: FrameSupportPalletId;
820
+ /**
821
+ * The maximum number of strikes before a member gets funds slashed.
822
+ **/
823
+ graceStrikes: number;
824
+ /**
825
+ * The amount of incentive paid within each period. Doesn't include VoterTip.
826
+ **/
827
+ periodSpend: bigint;
828
+ /**
829
+ * The number of blocks on which new candidates should be voted on. Together with
830
+ * `ClaimPeriod`, this sums to the number of blocks between candidate intake periods.
831
+ **/
832
+ votingPeriod: number;
833
+ /**
834
+ * The number of blocks on which new candidates can claim their membership and be the
835
+ * named head.
836
+ **/
837
+ claimPeriod: number;
838
+ /**
839
+ * The maximum duration of the payout lock.
840
+ **/
841
+ maxLockDuration: number;
842
+ /**
843
+ * The number of blocks between membership challenges.
844
+ **/
845
+ challengePeriod: number;
846
+ /**
847
+ * The maximum number of payouts a member may have waiting unclaimed.
848
+ **/
849
+ maxPayouts: number;
850
+ /**
851
+ * The maximum number of bids at once.
852
+ **/
853
+ maxBids: number;
854
+ /**
855
+ * Generic pallet constant
856
+ **/
857
+ [name: string]: any;
858
+ };
859
+ /**
860
+ * Pallet `Recovery`'s constants
861
+ **/
862
+ recovery: {
863
+ /**
864
+ * The base amount of currency needed to reserve for creating a recovery configuration.
865
+ *
866
+ * This is held for an additional storage item whose value size is
867
+ * `2 + sizeof(BlockNumber, Balance)` bytes.
868
+ **/
869
+ configDepositBase: bigint;
870
+ /**
871
+ * The amount of currency needed per additional user when creating a recovery
872
+ * configuration.
873
+ *
874
+ * This is held for adding `sizeof(AccountId)` bytes more into a pre-existing storage
875
+ * value.
876
+ **/
877
+ friendDepositFactor: bigint;
878
+ /**
879
+ * The maximum amount of friends allowed in a recovery configuration.
880
+ *
881
+ * NOTE: The threshold programmed in this Pallet uses u16, so it does
882
+ * not really make sense to have a limit here greater than u16::MAX.
883
+ * But also, that is a lot more than you should probably set this value
884
+ * to anyway...
885
+ **/
886
+ maxFriends: number;
887
+ /**
888
+ * The base amount of currency needed to reserve for starting a recovery.
889
+ *
890
+ * This is primarily held for deterring malicious recovery attempts, and should
891
+ * have a value large enough that a bad actor would choose not to place this
892
+ * deposit. It also acts to fund additional storage item whose value size is
893
+ * `sizeof(BlockNumber, Balance + T * AccountId)` bytes. Where T is a configurable
894
+ * threshold.
895
+ **/
896
+ recoveryDeposit: bigint;
897
+ /**
898
+ * Generic pallet constant
899
+ **/
900
+ [name: string]: any;
901
+ };
902
+ /**
903
+ * Pallet `Vesting`'s constants
904
+ **/
905
+ vesting: {
906
+ /**
907
+ * The minimum amount transferred to call `vested_transfer`.
908
+ **/
909
+ minVestedTransfer: bigint;
910
+ maxVestingSchedules: number;
911
+ /**
912
+ * Generic pallet constant
913
+ **/
914
+ [name: string]: any;
915
+ };
916
+ /**
917
+ * Pallet `Scheduler`'s constants
918
+ **/
919
+ scheduler: {
920
+ /**
921
+ * The maximum weight that may be scheduled per block for any dispatchables.
922
+ **/
923
+ maximumWeight: SpWeightsWeightV2Weight;
924
+ /**
925
+ * The maximum number of scheduled calls in the queue for a single block.
926
+ *
927
+ * NOTE:
928
+ * + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
929
+ * higher limit under `runtime-benchmarks` feature.
930
+ **/
931
+ maxScheduledPerBlock: number;
932
+ /**
933
+ * Generic pallet constant
934
+ **/
935
+ [name: string]: any;
936
+ };
937
+ /**
938
+ * Pallet `Glutton`'s constants
939
+ **/
940
+ glutton: {
941
+ /**
942
+ * Generic pallet constant
943
+ **/
944
+ [name: string]: any;
945
+ };
946
+ /**
947
+ * Pallet `Preimage`'s constants
948
+ **/
949
+ preimage: {
950
+ /**
951
+ * Generic pallet constant
952
+ **/
953
+ [name: string]: any;
954
+ };
955
+ /**
956
+ * Pallet `Proxy`'s constants
957
+ **/
958
+ proxy: {
959
+ /**
960
+ * The base amount of currency needed to reserve for creating a proxy.
961
+ *
962
+ * This is held for an additional storage item whose value size is
963
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
964
+ **/
965
+ proxyDepositBase: bigint;
966
+ /**
967
+ * The amount of currency needed per proxy added.
968
+ *
969
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
970
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
971
+ * into account `32 + proxy_type.encode().len()` bytes of data.
972
+ **/
973
+ proxyDepositFactor: bigint;
974
+ /**
975
+ * The maximum amount of proxies allowed for a single account.
976
+ **/
977
+ maxProxies: number;
978
+ /**
979
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
980
+ **/
981
+ maxPending: number;
982
+ /**
983
+ * The base amount of currency needed to reserve for creating an announcement.
984
+ *
985
+ * This is held when a new storage item holding a `Balance` is created (typically 16
986
+ * bytes).
987
+ **/
988
+ announcementDepositBase: bigint;
989
+ /**
990
+ * The amount of currency needed per announcement made.
991
+ *
992
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
993
+ * into a pre-existing storage value.
994
+ **/
995
+ announcementDepositFactor: bigint;
996
+ /**
997
+ * Generic pallet constant
998
+ **/
999
+ [name: string]: any;
1000
+ };
1001
+ /**
1002
+ * Pallet `Multisig`'s constants
1003
+ **/
1004
+ multisig: {
1005
+ /**
1006
+ * The base amount of currency needed to reserve for creating a multisig execution or to
1007
+ * store a dispatch call for later.
1008
+ *
1009
+ * This is held for an additional storage item whose value size is
1010
+ * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
1011
+ * `32 + sizeof(AccountId)` bytes.
1012
+ **/
1013
+ depositBase: bigint;
1014
+ /**
1015
+ * The amount of currency needed per unit threshold when creating a multisig execution.
1016
+ *
1017
+ * This is held for adding 32 bytes more into a pre-existing storage value.
1018
+ **/
1019
+ depositFactor: bigint;
1020
+ /**
1021
+ * The maximum amount of signatories allowed in the multisig.
1022
+ **/
1023
+ maxSignatories: number;
1024
+ /**
1025
+ * Generic pallet constant
1026
+ **/
1027
+ [name: string]: any;
1028
+ };
1029
+ /**
1030
+ * Pallet `Bounties`'s constants
1031
+ **/
1032
+ bounties: {
1033
+ /**
1034
+ * The amount held on deposit for placing a bounty proposal.
1035
+ **/
1036
+ bountyDepositBase: bigint;
1037
+ /**
1038
+ * The delay period for which a bounty beneficiary need to wait before claim the payout.
1039
+ **/
1040
+ bountyDepositPayoutDelay: number;
1041
+ /**
1042
+ * Bounty duration in blocks.
1043
+ **/
1044
+ bountyUpdatePeriod: number;
1045
+ /**
1046
+ * The curator deposit is calculated as a percentage of the curator fee.
1047
+ *
1048
+ * This deposit has optional upper and lower bounds with `CuratorDepositMax` and
1049
+ * `CuratorDepositMin`.
1050
+ **/
1051
+ curatorDepositMultiplier: Permill;
1052
+ /**
1053
+ * Maximum amount of funds that should be placed in a deposit for making a proposal.
1054
+ **/
1055
+ curatorDepositMax: bigint | undefined;
1056
+ /**
1057
+ * Minimum amount of funds that should be placed in a deposit for making a proposal.
1058
+ **/
1059
+ curatorDepositMin: bigint | undefined;
1060
+ /**
1061
+ * Minimum value for a bounty.
1062
+ **/
1063
+ bountyValueMinimum: bigint;
1064
+ /**
1065
+ * The amount held on deposit per byte within the tip report reason or bounty description.
1066
+ **/
1067
+ dataDepositPerByte: bigint;
1068
+ /**
1069
+ * Maximum acceptable reason length.
1070
+ *
1071
+ * Benchmarks depend on this value, be sure to update weights file when changing this value
1072
+ **/
1073
+ maximumReasonLength: number;
1074
+ /**
1075
+ * Generic pallet constant
1076
+ **/
1077
+ [name: string]: any;
1078
+ };
1079
+ /**
1080
+ * Pallet `Tips`'s constants
1081
+ **/
1082
+ tips: {
1083
+ /**
1084
+ * Maximum acceptable reason length.
1085
+ *
1086
+ * Benchmarks depend on this value, be sure to update weights file when changing this value
1087
+ **/
1088
+ maximumReasonLength: number;
1089
+ /**
1090
+ * The amount held on deposit per byte within the tip report reason or bounty description.
1091
+ **/
1092
+ dataDepositPerByte: bigint;
1093
+ /**
1094
+ * The period for which a tip remains open after is has achieved threshold tippers.
1095
+ **/
1096
+ tipCountdown: number;
1097
+ /**
1098
+ * The percent of the final tip which goes to the original reporter of the tip.
1099
+ **/
1100
+ tipFindersFee: Percent;
1101
+ /**
1102
+ * The non-zero amount held on deposit for placing a tip report.
1103
+ **/
1104
+ tipReportDepositBase: bigint;
1105
+ /**
1106
+ * The maximum amount for a single tip.
1107
+ **/
1108
+ maxTipAmount: bigint;
1109
+ /**
1110
+ * Generic pallet constant
1111
+ **/
1112
+ [name: string]: any;
1113
+ };
1114
+ /**
1115
+ * Pallet `Assets`'s constants
1116
+ **/
1117
+ assets: {
1118
+ /**
1119
+ * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
1120
+ *
1121
+ * Must be configured to result in a weight that makes each call fit in a block.
1122
+ **/
1123
+ removeItemsLimit: number;
1124
+ /**
1125
+ * The basic amount of funds that must be reserved for an asset.
1126
+ **/
1127
+ assetDeposit: bigint;
1128
+ /**
1129
+ * The amount of funds that must be reserved for a non-provider asset account to be
1130
+ * maintained.
1131
+ **/
1132
+ assetAccountDeposit: bigint;
1133
+ /**
1134
+ * The basic amount of funds that must be reserved when adding metadata to your asset.
1135
+ **/
1136
+ metadataDepositBase: bigint;
1137
+ /**
1138
+ * The additional funds that must be reserved for the number of bytes you store in your
1139
+ * metadata.
1140
+ **/
1141
+ metadataDepositPerByte: bigint;
1142
+ /**
1143
+ * The amount of funds that must be reserved when creating a new approval.
1144
+ **/
1145
+ approvalDeposit: bigint;
1146
+ /**
1147
+ * The maximum length of a name or symbol stored on-chain.
1148
+ **/
1149
+ stringLimit: number;
1150
+ /**
1151
+ * Generic pallet constant
1152
+ **/
1153
+ [name: string]: any;
1154
+ };
1155
+ /**
1156
+ * Pallet `PoolAssets`'s constants
1157
+ **/
1158
+ poolAssets: {
1159
+ /**
1160
+ * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
1161
+ *
1162
+ * Must be configured to result in a weight that makes each call fit in a block.
1163
+ **/
1164
+ removeItemsLimit: number;
1165
+ /**
1166
+ * The basic amount of funds that must be reserved for an asset.
1167
+ **/
1168
+ assetDeposit: bigint;
1169
+ /**
1170
+ * The amount of funds that must be reserved for a non-provider asset account to be
1171
+ * maintained.
1172
+ **/
1173
+ assetAccountDeposit: bigint;
1174
+ /**
1175
+ * The basic amount of funds that must be reserved when adding metadata to your asset.
1176
+ **/
1177
+ metadataDepositBase: bigint;
1178
+ /**
1179
+ * The additional funds that must be reserved for the number of bytes you store in your
1180
+ * metadata.
1181
+ **/
1182
+ metadataDepositPerByte: bigint;
1183
+ /**
1184
+ * The amount of funds that must be reserved when creating a new approval.
1185
+ **/
1186
+ approvalDeposit: bigint;
1187
+ /**
1188
+ * The maximum length of a name or symbol stored on-chain.
1189
+ **/
1190
+ stringLimit: number;
1191
+ /**
1192
+ * Generic pallet constant
1193
+ **/
1194
+ [name: string]: any;
1195
+ };
1196
+ /**
1197
+ * Pallet `Beefy`'s constants
1198
+ **/
1199
+ beefy: {
1200
+ /**
1201
+ * The maximum number of authorities that can be added.
1202
+ **/
1203
+ maxAuthorities: number;
1204
+ /**
1205
+ * The maximum number of nominators for each validator.
1206
+ **/
1207
+ maxNominators: number;
1208
+ /**
1209
+ * The maximum number of entries to keep in the set id to session index mapping.
1210
+ *
1211
+ * Since the `SetIdSession` map is only used for validating equivocations this
1212
+ * value should relate to the bonding duration of whatever staking system is
1213
+ * being used (if any). If equivocation handling is not enabled then this value
1214
+ * can be zero.
1215
+ **/
1216
+ maxSetIdSessionEntries: bigint;
1217
+ /**
1218
+ * Generic pallet constant
1219
+ **/
1220
+ [name: string]: any;
1221
+ };
1222
+ /**
1223
+ * Pallet `Mmr`'s constants
1224
+ **/
1225
+ mmr: {
1226
+ /**
1227
+ * Generic pallet constant
1228
+ **/
1229
+ [name: string]: any;
1230
+ };
1231
+ /**
1232
+ * Pallet `MmrLeaf`'s constants
1233
+ **/
1234
+ mmrLeaf: {
1235
+ /**
1236
+ * Generic pallet constant
1237
+ **/
1238
+ [name: string]: any;
1239
+ };
1240
+ /**
1241
+ * Pallet `Lottery`'s constants
1242
+ **/
1243
+ lottery: {
1244
+ /**
1245
+ * The Lottery's pallet id
1246
+ **/
1247
+ palletId: FrameSupportPalletId;
1248
+ /**
1249
+ * The max number of calls available in a single lottery.
1250
+ **/
1251
+ maxCalls: number;
1252
+ /**
1253
+ * Number of time we should try to generate a random number that has no modulo bias.
1254
+ * The larger this number, the more potential computation is used for picking the winner,
1255
+ * but also the more likely that the chosen winner is done fairly.
1256
+ **/
1257
+ maxGenerateRandom: number;
1258
+ /**
1259
+ * Generic pallet constant
1260
+ **/
1261
+ [name: string]: any;
1262
+ };
1263
+ /**
1264
+ * Pallet `Nis`'s constants
1265
+ **/
1266
+ nis: {
1267
+ /**
1268
+ * The treasury's pallet id, used for deriving its sovereign account ID.
1269
+ **/
1270
+ palletId: FrameSupportPalletId;
1271
+ /**
1272
+ * Number of duration queues in total. This sets the maximum duration supported, which is
1273
+ * this value multiplied by `Period`.
1274
+ **/
1275
+ queueCount: number;
1276
+ /**
1277
+ * Maximum number of items that may be in each duration queue.
1278
+ *
1279
+ * Must be larger than zero.
1280
+ **/
1281
+ maxQueueLen: number;
1282
+ /**
1283
+ * Portion of the queue which is free from ordering and just a FIFO.
1284
+ *
1285
+ * Must be no greater than `MaxQueueLen`.
1286
+ **/
1287
+ fifoQueueLen: number;
1288
+ /**
1289
+ * The base period for the duration queues. This is the common multiple across all
1290
+ * supported freezing durations that can be bid upon.
1291
+ **/
1292
+ basePeriod: number;
1293
+ /**
1294
+ * The minimum amount of funds that may be placed in a bid. Note that this
1295
+ * does not actually limit the amount which may be represented in a receipt since bids may
1296
+ * be split up by the system.
1297
+ *
1298
+ * It should be at least big enough to ensure that there is no possible storage spam attack
1299
+ * or queue-filling attack.
1300
+ **/
1301
+ minBid: bigint;
1302
+ /**
1303
+ * The minimum amount of funds which may intentionally be left remaining under a single
1304
+ * receipt.
1305
+ **/
1306
+ minReceipt: Perquintill;
1307
+ /**
1308
+ * The number of blocks between consecutive attempts to dequeue bids and create receipts.
1309
+ *
1310
+ * A larger value results in fewer storage hits each block, but a slower period to get to
1311
+ * the target.
1312
+ **/
1313
+ intakePeriod: number;
1314
+ /**
1315
+ * The maximum amount of bids that can consolidated into receipts in a single intake. A
1316
+ * larger value here means less of the block available for transactions should there be a
1317
+ * glut of bids.
1318
+ **/
1319
+ maxIntakeWeight: SpWeightsWeightV2Weight;
1320
+ /**
1321
+ * The maximum proportion which may be thawed and the period over which it is reset.
1322
+ **/
1323
+ thawThrottle: [Perquintill, number];
1324
+ /**
1325
+ * Generic pallet constant
1326
+ **/
1327
+ [name: string]: any;
1328
+ };
1329
+ /**
1330
+ * Pallet `Uniques`'s constants
1331
+ **/
1332
+ uniques: {
1333
+ /**
1334
+ * The basic amount of funds that must be reserved for collection.
1335
+ **/
1336
+ collectionDeposit: bigint;
1337
+ /**
1338
+ * The basic amount of funds that must be reserved for an item.
1339
+ **/
1340
+ itemDeposit: bigint;
1341
+ /**
1342
+ * The basic amount of funds that must be reserved when adding metadata to your item.
1343
+ **/
1344
+ metadataDepositBase: bigint;
1345
+ /**
1346
+ * The basic amount of funds that must be reserved when adding an attribute to an item.
1347
+ **/
1348
+ attributeDepositBase: bigint;
1349
+ /**
1350
+ * The additional funds that must be reserved for the number of bytes store in metadata,
1351
+ * either "normal" metadata or attribute metadata.
1352
+ **/
1353
+ depositPerByte: bigint;
1354
+ /**
1355
+ * The maximum length of data stored on-chain.
1356
+ **/
1357
+ stringLimit: number;
1358
+ /**
1359
+ * The maximum length of an attribute key.
1360
+ **/
1361
+ keyLimit: number;
1362
+ /**
1363
+ * The maximum length of an attribute value.
1364
+ **/
1365
+ valueLimit: number;
1366
+ /**
1367
+ * Generic pallet constant
1368
+ **/
1369
+ [name: string]: any;
1370
+ };
1371
+ /**
1372
+ * Pallet `Nfts`'s constants
1373
+ **/
1374
+ nfts: {
1375
+ /**
1376
+ * The basic amount of funds that must be reserved for collection.
1377
+ **/
1378
+ collectionDeposit: bigint;
1379
+ /**
1380
+ * The basic amount of funds that must be reserved for an item.
1381
+ **/
1382
+ itemDeposit: bigint;
1383
+ /**
1384
+ * The basic amount of funds that must be reserved when adding metadata to your item.
1385
+ **/
1386
+ metadataDepositBase: bigint;
1387
+ /**
1388
+ * The basic amount of funds that must be reserved when adding an attribute to an item.
1389
+ **/
1390
+ attributeDepositBase: bigint;
1391
+ /**
1392
+ * The additional funds that must be reserved for the number of bytes store in metadata,
1393
+ * either "normal" metadata or attribute metadata.
1394
+ **/
1395
+ depositPerByte: bigint;
1396
+ /**
1397
+ * The maximum length of data stored on-chain.
1398
+ **/
1399
+ stringLimit: number;
1400
+ /**
1401
+ * The maximum length of an attribute key.
1402
+ **/
1403
+ keyLimit: number;
1404
+ /**
1405
+ * The maximum length of an attribute value.
1406
+ **/
1407
+ valueLimit: number;
1408
+ /**
1409
+ * The maximum approvals an item could have.
1410
+ **/
1411
+ approvalsLimit: number;
1412
+ /**
1413
+ * The maximum attributes approvals an item could have.
1414
+ **/
1415
+ itemAttributesApprovalsLimit: number;
1416
+ /**
1417
+ * The max number of tips a user could send.
1418
+ **/
1419
+ maxTips: number;
1420
+ /**
1421
+ * The max duration in blocks for deadlines.
1422
+ **/
1423
+ maxDeadlineDuration: number;
1424
+ /**
1425
+ * The max number of attributes a user could set per call.
1426
+ **/
1427
+ maxAttributesPerCall: number;
1428
+ /**
1429
+ * Disables some of pallet's features.
1430
+ **/
1431
+ features: PalletNftsBitFlagsPalletFeature;
1432
+ /**
1433
+ * Generic pallet constant
1434
+ **/
1435
+ [name: string]: any;
1436
+ };
1437
+ /**
1438
+ * Pallet `NftFractionalization`'s constants
1439
+ **/
1440
+ nftFractionalization: {
1441
+ /**
1442
+ * The deposit paid by the user locking an NFT. The deposit is returned to the original NFT
1443
+ * owner when the asset is unified and the NFT is unlocked.
1444
+ **/
1445
+ deposit: bigint;
1446
+ /**
1447
+ * The pallet's id, used for deriving its sovereign account ID.
1448
+ **/
1449
+ palletId: FrameSupportPalletId;
1450
+ /**
1451
+ * The newly created asset's symbol.
1452
+ **/
1453
+ newAssetSymbol: Bytes;
1454
+ /**
1455
+ * The newly created asset's name.
1456
+ **/
1457
+ newAssetName: Bytes;
1458
+ /**
1459
+ * The maximum length of a name or symbol stored on-chain.
1460
+ **/
1461
+ stringLimit: number;
1462
+ /**
1463
+ * Generic pallet constant
1464
+ **/
1465
+ [name: string]: any;
1466
+ };
1467
+ /**
1468
+ * Pallet `Salary`'s constants
1469
+ **/
1470
+ salary: {
1471
+ /**
1472
+ * The number of blocks within a cycle which accounts have to register their intent to
1473
+ * claim.
1474
+ *
1475
+ * The number of blocks between sequential payout cycles is the sum of this and
1476
+ * `PayoutPeriod`.
1477
+ **/
1478
+ registrationPeriod: number;
1479
+ /**
1480
+ * The number of blocks within a cycle which accounts have to claim the payout.
1481
+ *
1482
+ * The number of blocks between sequential payout cycles is the sum of this and
1483
+ * `RegistrationPeriod`.
1484
+ **/
1485
+ payoutPeriod: number;
1486
+ /**
1487
+ * The total budget per cycle.
1488
+ *
1489
+ * This may change over the course of a cycle without any problem.
1490
+ **/
1491
+ budget: bigint;
1492
+ /**
1493
+ * Generic pallet constant
1494
+ **/
1495
+ [name: string]: any;
1496
+ };
1497
+ /**
1498
+ * Pallet `CoreFellowship`'s constants
1499
+ **/
1500
+ coreFellowship: {
1501
+ /**
1502
+ * The maximum size in bytes submitted evidence is allowed to be.
1503
+ **/
1504
+ evidenceSize: number;
1505
+ /**
1506
+ * Generic pallet constant
1507
+ **/
1508
+ [name: string]: any;
1509
+ };
1510
+ /**
1511
+ * Pallet `TransactionStorage`'s constants
1512
+ **/
1513
+ transactionStorage: {
1514
+ /**
1515
+ * Generic pallet constant
1516
+ **/
1517
+ [name: string]: any;
1518
+ };
1519
+ /**
1520
+ * Pallet `VoterList`'s constants
1521
+ **/
1522
+ voterList: {
1523
+ /**
1524
+ * The list of thresholds separating the various bags.
1525
+ *
1526
+ * Ids are separated into unsorted bags according to their score. This specifies the
1527
+ * thresholds separating the bags. An id's bag is the largest bag for which the id's score
1528
+ * is less than or equal to its upper threshold.
1529
+ *
1530
+ * When ids are iterated, higher bags are iterated completely before lower bags. This means
1531
+ * that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
1532
+ * score, but peer ids within a particular bag are sorted in insertion order.
1533
+ *
1534
+ * # Expressing the constant
1535
+ *
1536
+ * This constant must be sorted in strictly increasing order. Duplicate items are not
1537
+ * permitted.
1538
+ *
1539
+ * There is an implied upper limit of `Score::MAX`; that value does not need to be
1540
+ * specified within the bag. For any two threshold lists, if one ends with
1541
+ * `Score::MAX`, the other one does not, and they are otherwise equal, the two
1542
+ * lists will behave identically.
1543
+ *
1544
+ * # Calculation
1545
+ *
1546
+ * It is recommended to generate the set of thresholds in a geometric series, such that
1547
+ * there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
1548
+ * constant_ratio).max(threshold[k] + 1)` for all `k`.
1549
+ *
1550
+ * The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
1551
+ *
1552
+ * # Examples
1553
+ *
1554
+ * - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
1555
+ * iteration is strictly in insertion order.
1556
+ * - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
1557
+ * the procedure given above, then the constant ratio is equal to 2.
1558
+ * - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
1559
+ * the procedure given above, then the constant ratio is approximately equal to 1.248.
1560
+ * - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
1561
+ * into bag 0, an id with score 2 will fall into bag 1, etc.
1562
+ *
1563
+ * # Migration
1564
+ *
1565
+ * In the event that this list ever changes, a copy of the old bags list must be retained.
1566
+ * With that `List::migrate` can be called, which will perform the appropriate migration.
1567
+ **/
1568
+ bagThresholds: Array<bigint>;
1569
+ /**
1570
+ * Generic pallet constant
1571
+ **/
1572
+ [name: string]: any;
1573
+ };
1574
+ /**
1575
+ * Pallet `StateTrieMigration`'s constants
1576
+ **/
1577
+ stateTrieMigration: {
1578
+ /**
1579
+ * Maximal number of bytes that a key can have.
1580
+ *
1581
+ * FRAME itself does not limit the key length.
1582
+ * The concrete value must therefore depend on your storage usage.
1583
+ * A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
1584
+ * keys which are then hashed and concatenated, resulting in arbitrarily long keys.
1585
+ *
1586
+ * Use the *state migration RPC* to retrieve the length of the longest key in your
1587
+ * storage: <https://github.com/paritytech/substrate/issues/11642>
1588
+ *
1589
+ * The migration will halt with a `Halted` event if this value is too small.
1590
+ * Since there is no real penalty from over-estimating, it is advised to use a large
1591
+ * value. The default is 512 byte.
1592
+ *
1593
+ * Some key lengths for reference:
1594
+ * - [`frame_support::storage::StorageValue`]: 32 byte
1595
+ * - [`frame_support::storage::StorageMap`]: 64 byte
1596
+ * - [`frame_support::storage::StorageDoubleMap`]: 96 byte
1597
+ *
1598
+ * For more info see
1599
+ * <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
1600
+ **/
1601
+ maxKeyLen: number;
1602
+ /**
1603
+ * Generic pallet constant
1604
+ **/
1605
+ [name: string]: any;
1606
+ };
1607
+ /**
1608
+ * Pallet `ChildBounties`'s constants
1609
+ **/
1610
+ childBounties: {
1611
+ /**
1612
+ * Maximum number of child bounties that can be added to a parent bounty.
1613
+ **/
1614
+ maxActiveChildBountyCount: number;
1615
+ /**
1616
+ * Minimum value for a child-bounty.
1617
+ **/
1618
+ childBountyValueMinimum: bigint;
1619
+ /**
1620
+ * Generic pallet constant
1621
+ **/
1622
+ [name: string]: any;
1623
+ };
1624
+ /**
1625
+ * Pallet `Referenda`'s constants
1626
+ **/
1627
+ referenda: {
1628
+ /**
1629
+ * The minimum amount to be used as a deposit for a public referendum proposal.
1630
+ **/
1631
+ submissionDeposit: bigint;
1632
+ /**
1633
+ * Maximum size of the referendum queue for a single track.
1634
+ **/
1635
+ maxQueued: number;
1636
+ /**
1637
+ * The number of blocks after submission that a referendum must begin being decided by.
1638
+ * Once this passes, then anyone may cancel the referendum.
1639
+ **/
1640
+ undecidingTimeout: number;
1641
+ /**
1642
+ * Quantization level for the referendum wakeup scheduler. A higher number will result in
1643
+ * fewer storage reads/writes needed for smaller voters, but also result in delays to the
1644
+ * automatic referendum status changes. Explicit servicing instructions are unaffected.
1645
+ **/
1646
+ alarmInterval: number;
1647
+ /**
1648
+ * Information concerning the different referendum tracks.
1649
+ **/
1650
+ tracks: Array<[number, PalletReferendaTrackInfo]>;
1651
+ /**
1652
+ * Generic pallet constant
1653
+ **/
1654
+ [name: string]: any;
1655
+ };
1656
+ /**
1657
+ * Pallet `Remark`'s constants
1658
+ **/
1659
+ remark: {
1660
+ /**
1661
+ * Generic pallet constant
1662
+ **/
1663
+ [name: string]: any;
1664
+ };
1665
+ /**
1666
+ * Pallet `RootTesting`'s constants
1667
+ **/
1668
+ rootTesting: {
1669
+ /**
1670
+ * Generic pallet constant
1671
+ **/
1672
+ [name: string]: any;
1673
+ };
1674
+ /**
1675
+ * Pallet `ConvictionVoting`'s constants
1676
+ **/
1677
+ convictionVoting: {
1678
+ /**
1679
+ * The maximum number of concurrent votes an account may have.
1680
+ *
1681
+ * Also used to compute weight, an overly large value can lead to extrinsics with large
1682
+ * weight estimation: see `delegate` for instance.
1683
+ **/
1684
+ maxVotes: number;
1685
+ /**
1686
+ * The minimum period of vote locking.
1687
+ *
1688
+ * It should be no shorter than enactment period to ensure that in the case of an approval,
1689
+ * those successful voters are locked into the consequences that their votes entail.
1690
+ **/
1691
+ voteLockingPeriod: number;
1692
+ /**
1693
+ * Generic pallet constant
1694
+ **/
1695
+ [name: string]: any;
1696
+ };
1697
+ /**
1698
+ * Pallet `Whitelist`'s constants
1699
+ **/
1700
+ whitelist: {
1701
+ /**
1702
+ * Generic pallet constant
1703
+ **/
1704
+ [name: string]: any;
1705
+ };
1706
+ /**
1707
+ * Pallet `AllianceMotion`'s constants
1708
+ **/
1709
+ allianceMotion: {
1710
+ /**
1711
+ * The maximum weight of a dispatch call that can be proposed and executed.
1712
+ **/
1713
+ maxProposalWeight: SpWeightsWeightV2Weight;
1714
+ /**
1715
+ * Generic pallet constant
1716
+ **/
1717
+ [name: string]: any;
1718
+ };
1719
+ /**
1720
+ * Pallet `Alliance`'s constants
1721
+ **/
1722
+ alliance: {
1723
+ /**
1724
+ * The maximum number of the unscrupulous items supported by the pallet.
1725
+ **/
1726
+ maxUnscrupulousItems: number;
1727
+ /**
1728
+ * The maximum length of a website URL.
1729
+ **/
1730
+ maxWebsiteUrlLength: number;
1731
+ /**
1732
+ * The deposit required for submitting candidacy.
1733
+ **/
1734
+ allyDeposit: bigint;
1735
+ /**
1736
+ * The maximum number of announcements.
1737
+ **/
1738
+ maxAnnouncementsCount: number;
1739
+ /**
1740
+ * The maximum number of members per member role.
1741
+ **/
1742
+ maxMembersCount: number;
1743
+ /**
1744
+ * Generic pallet constant
1745
+ **/
1746
+ [name: string]: any;
1747
+ };
1748
+ /**
1749
+ * Pallet `NominationPools`'s constants
1750
+ **/
1751
+ nominationPools: {
1752
+ /**
1753
+ * The nomination pool's pallet id.
1754
+ **/
1755
+ palletId: FrameSupportPalletId;
1756
+ /**
1757
+ * The maximum pool points-to-balance ratio that an `open` pool can have.
1758
+ *
1759
+ * This is important in the event slashing takes place and the pool's points-to-balance
1760
+ * ratio becomes disproportional.
1761
+ *
1762
+ * Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
1763
+ * are a function of number of points, and by setting this value to e.g. 10, you ensure
1764
+ * that the total number of points in the system are at most 10 times the total_issuance of
1765
+ * the chain, in the absolute worse case.
1766
+ *
1767
+ * For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
1768
+ * Such a scenario would also be the equivalent of the pool being 90% slashed.
1769
+ **/
1770
+ maxPointsToBalance: number;
1771
+ /**
1772
+ * The maximum number of simultaneous unbonding chunks that can exist per member.
1773
+ **/
1774
+ maxUnbonding: number;
1775
+ /**
1776
+ * Generic pallet constant
1777
+ **/
1778
+ [name: string]: any;
1779
+ };
1780
+ /**
1781
+ * Pallet `RankedPolls`'s constants
1782
+ **/
1783
+ rankedPolls: {
1784
+ /**
1785
+ * The minimum amount to be used as a deposit for a public referendum proposal.
1786
+ **/
1787
+ submissionDeposit: bigint;
1788
+ /**
1789
+ * Maximum size of the referendum queue for a single track.
1790
+ **/
1791
+ maxQueued: number;
1792
+ /**
1793
+ * The number of blocks after submission that a referendum must begin being decided by.
1794
+ * Once this passes, then anyone may cancel the referendum.
1795
+ **/
1796
+ undecidingTimeout: number;
1797
+ /**
1798
+ * Quantization level for the referendum wakeup scheduler. A higher number will result in
1799
+ * fewer storage reads/writes needed for smaller voters, but also result in delays to the
1800
+ * automatic referendum status changes. Explicit servicing instructions are unaffected.
1801
+ **/
1802
+ alarmInterval: number;
1803
+ /**
1804
+ * Information concerning the different referendum tracks.
1805
+ **/
1806
+ tracks: Array<[number, PalletReferendaTrackInfo]>;
1807
+ /**
1808
+ * Generic pallet constant
1809
+ **/
1810
+ [name: string]: any;
1811
+ };
1812
+ /**
1813
+ * Pallet `RankedCollective`'s constants
1814
+ **/
1815
+ rankedCollective: {
1816
+ /**
1817
+ * Generic pallet constant
1818
+ **/
1819
+ [name: string]: any;
1820
+ };
1821
+ /**
1822
+ * Pallet `AssetConversion`'s constants
1823
+ **/
1824
+ assetConversion: {
1825
+ /**
1826
+ * A % the liquidity providers will take of every swap. Represents 10ths of a percent.
1827
+ **/
1828
+ lpFee: number;
1829
+ /**
1830
+ * A one-time fee to setup the pool.
1831
+ **/
1832
+ poolSetupFee: bigint;
1833
+ /**
1834
+ * Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`].
1835
+ **/
1836
+ poolSetupFeeAsset: FrameSupportTokensFungibleUnionOfNativeOrWithId;
1837
+ /**
1838
+ * A fee to withdraw the liquidity.
1839
+ **/
1840
+ liquidityWithdrawalFee: Permill;
1841
+ /**
1842
+ * The minimum LP token amount that could be minted. Ameliorates rounding errors.
1843
+ **/
1844
+ mintMinLiquidity: bigint;
1845
+ /**
1846
+ * The max number of hops in a swap.
1847
+ **/
1848
+ maxSwapPathLength: number;
1849
+ /**
1850
+ * The pallet's id, used for deriving its sovereign account ID.
1851
+ **/
1852
+ palletId: FrameSupportPalletId;
1853
+ /**
1854
+ * Generic pallet constant
1855
+ **/
1856
+ [name: string]: any;
1857
+ };
1858
+ /**
1859
+ * Pallet `FastUnstake`'s constants
1860
+ **/
1861
+ fastUnstake: {
1862
+ /**
1863
+ * Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
1864
+ * the costs of resources on unsuccessful unstake.
1865
+ **/
1866
+ deposit: bigint;
1867
+ /**
1868
+ * Generic pallet constant
1869
+ **/
1870
+ [name: string]: any;
1871
+ };
1872
+ /**
1873
+ * Pallet `MessageQueue`'s constants
1874
+ **/
1875
+ messageQueue: {
1876
+ /**
1877
+ * The size of the page; this implies the maximum message size which can be sent.
1878
+ *
1879
+ * A good value depends on the expected message sizes, their weights, the weight that is
1880
+ * available for processing them and the maximal needed message size. The maximal message
1881
+ * size is slightly lower than this as defined by [`MaxMessageLenOf`].
1882
+ **/
1883
+ heapSize: number;
1884
+ /**
1885
+ * The maximum number of stale pages (i.e. of overweight messages) allowed before culling
1886
+ * can happen. Once there are more stale pages than this, then historical pages may be
1887
+ * dropped, even if they contain unprocessed overweight messages.
1888
+ **/
1889
+ maxStale: number;
1890
+ /**
1891
+ * The amount of weight (if any) which should be provided to the message queue for
1892
+ * servicing enqueued items.
1893
+ *
1894
+ * This may be legitimately `None` in the case that you will call
1895
+ * `ServiceQueues::service_queues` manually.
1896
+ **/
1897
+ serviceWeight: SpWeightsWeightV2Weight | undefined;
1898
+ /**
1899
+ * Generic pallet constant
1900
+ **/
1901
+ [name: string]: any;
1902
+ };
1903
+ /**
1904
+ * Pallet `Pov`'s constants
1905
+ **/
1906
+ pov: {
1907
+ /**
1908
+ * Generic pallet constant
1909
+ **/
1910
+ [name: string]: any;
1911
+ };
1912
+ /**
1913
+ * Pallet `TxPause`'s constants
1914
+ **/
1915
+ txPause: {
1916
+ /**
1917
+ * Maximum length for pallet name and call name SCALE encoded string names.
1918
+ *
1919
+ * TOO LONG NAMES WILL BE TREATED AS PAUSED.
1920
+ **/
1921
+ maxNameLen: number;
1922
+ /**
1923
+ * Generic pallet constant
1924
+ **/
1925
+ [name: string]: any;
1926
+ };
1927
+ /**
1928
+ * Pallet `SafeMode`'s constants
1929
+ **/
1930
+ safeMode: {
1931
+ /**
1932
+ * For how many blocks the safe-mode will be entered by [`Pallet::enter`].
1933
+ **/
1934
+ enterDuration: number;
1935
+ /**
1936
+ * For how many blocks the safe-mode can be extended by each [`Pallet::extend`] call.
1937
+ *
1938
+ * This does not impose a hard limit as the safe-mode can be extended multiple times.
1939
+ **/
1940
+ extendDuration: number;
1941
+ /**
1942
+ * The amount that will be reserved upon calling [`Pallet::enter`].
1943
+ *
1944
+ * `None` disallows permissionlessly enabling the safe-mode and is a sane default.
1945
+ **/
1946
+ enterDepositAmount: bigint | undefined;
1947
+ /**
1948
+ * The amount that will be reserved upon calling [`Pallet::extend`].
1949
+ *
1950
+ * `None` disallows permissionlessly extending the safe-mode and is a sane default.
1951
+ **/
1952
+ extendDepositAmount: bigint | undefined;
1953
+ /**
1954
+ * The minimal duration a deposit will remain reserved after safe-mode is entered or
1955
+ * extended, unless [`Pallet::force_release_deposit`] is successfully called sooner.
1956
+ *
1957
+ * Every deposit is tied to a specific activation or extension, thus each deposit can be
1958
+ * released independently after the delay for it has passed.
1959
+ *
1960
+ * `None` disallows permissionlessly releasing the safe-mode deposits and is a sane
1961
+ * default.
1962
+ **/
1963
+ releaseDelay: number | undefined;
1964
+ /**
1965
+ * Generic pallet constant
1966
+ **/
1967
+ [name: string]: any;
1968
+ };
1969
+ /**
1970
+ * Pallet `Statement`'s constants
1971
+ **/
1972
+ statement: {
1973
+ /**
1974
+ * Min balance for priority statements.
1975
+ **/
1976
+ statementCost: bigint;
1977
+ /**
1978
+ * Cost of data byte used for priority calculation.
1979
+ **/
1980
+ byteCost: bigint;
1981
+ /**
1982
+ * Minimum number of statements allowed per account.
1983
+ **/
1984
+ minAllowedStatements: number;
1985
+ /**
1986
+ * Maximum number of statements allowed per account.
1987
+ **/
1988
+ maxAllowedStatements: number;
1989
+ /**
1990
+ * Minimum data bytes allowed per account.
1991
+ **/
1992
+ minAllowedBytes: number;
1993
+ /**
1994
+ * Maximum data bytes allowed per account.
1995
+ **/
1996
+ maxAllowedBytes: number;
1997
+ /**
1998
+ * Generic pallet constant
1999
+ **/
2000
+ [name: string]: any;
2001
+ };
2002
+ /**
2003
+ * Pallet `MultiBlockMigrations`'s constants
2004
+ **/
2005
+ multiBlockMigrations: {
2006
+ /**
2007
+ * The maximal length of an encoded cursor.
2008
+ *
2009
+ * A good default needs to selected such that no migration will ever have a cursor with MEL
2010
+ * above this limit. This is statically checked in `integrity_test`.
2011
+ **/
2012
+ cursorMaxLen: number;
2013
+ /**
2014
+ * The maximal length of an encoded identifier.
2015
+ *
2016
+ * A good default needs to selected such that no migration will ever have an identifier
2017
+ * with MEL above this limit. This is statically checked in `integrity_test`.
2018
+ **/
2019
+ identifierMaxLen: number;
2020
+ /**
2021
+ * Generic pallet constant
2022
+ **/
2023
+ [name: string]: any;
2024
+ };
2025
+ /**
2026
+ * Pallet `Broker`'s constants
2027
+ **/
2028
+ broker: {
2029
+ /**
2030
+ * Identifier from which the internal Pot is generated.
2031
+ **/
2032
+ palletId: FrameSupportPalletId;
2033
+ /**
2034
+ * Number of Relay-chain blocks per timeslice.
2035
+ **/
2036
+ timeslicePeriod: number;
2037
+ /**
2038
+ * Maximum number of legacy leases.
2039
+ **/
2040
+ maxLeasedCores: number;
2041
+ /**
2042
+ * Maximum number of system cores.
2043
+ **/
2044
+ maxReservedCores: number;
2045
+ /**
2046
+ * Generic pallet constant
2047
+ **/
2048
+ [name: string]: any;
2049
+ };
2050
+ /**
2051
+ * Pallet `TasksExample`'s constants
2052
+ **/
2053
+ tasksExample: {
2054
+ /**
2055
+ * Generic pallet constant
2056
+ **/
2057
+ [name: string]: any;
2058
+ };
2059
+ /**
2060
+ * Pallet `Mixnet`'s constants
2061
+ **/
2062
+ mixnet: {
2063
+ /**
2064
+ * The maximum number of authorities per session.
2065
+ **/
2066
+ maxAuthorities: number;
2067
+ /**
2068
+ * The maximum size of one of a mixnode's external addresses.
2069
+ **/
2070
+ maxExternalAddressSize: number;
2071
+ /**
2072
+ * The maximum number of external addresses for a mixnode.
2073
+ **/
2074
+ maxExternalAddressesPerMixnode: number;
2075
+ /**
2076
+ * Length of the first phase of each session (`CoverToCurrent`), in blocks.
2077
+ **/
2078
+ numCoverToCurrentBlocks: number;
2079
+ /**
2080
+ * Length of the second phase of each session (`RequestsToCurrent`), in blocks.
2081
+ **/
2082
+ numRequestsToCurrentBlocks: number;
2083
+ /**
2084
+ * Length of the third phase of each session (`CoverToPrev`), in blocks.
2085
+ **/
2086
+ numCoverToPrevBlocks: number;
2087
+ /**
2088
+ * The number of "slack" blocks at the start of each session, during which
2089
+ * [`maybe_register`](Pallet::maybe_register) will not attempt to post registration
2090
+ * transactions.
2091
+ **/
2092
+ numRegisterStartSlackBlocks: number;
2093
+ /**
2094
+ * The number of "slack" blocks at the end of each session.
2095
+ * [`maybe_register`](Pallet::maybe_register) will try to register before this slack
2096
+ * period, but may post registration transactions during the slack period as a last
2097
+ * resort.
2098
+ **/
2099
+ numRegisterEndSlackBlocks: number;
2100
+ /**
2101
+ * Priority of unsigned transactions used to register mixnodes.
2102
+ **/
2103
+ registrationPriority: bigint;
2104
+ /**
2105
+ * Minimum number of mixnodes. If there are fewer than this many mixnodes registered for a
2106
+ * session, the mixnet will not be active during the session.
2107
+ **/
2108
+ minMixnodes: number;
2109
+ /**
2110
+ * Generic pallet constant
2111
+ **/
2112
+ [name: string]: any;
2113
+ };
2114
+ /**
2115
+ * Pallet `Parameters`'s constants
2116
+ **/
2117
+ parameters: {
2118
+ /**
2119
+ * Generic pallet constant
2120
+ **/
2121
+ [name: string]: any;
2122
+ };
2123
+ /**
2124
+ * Pallet `SkipFeelessPayment`'s constants
2125
+ **/
2126
+ skipFeelessPayment: {
2127
+ /**
2128
+ * Generic pallet constant
2129
+ **/
2130
+ [name: string]: any;
2131
+ };
2132
+ }