@dedot/chaintypes 0.0.1-alpha.22

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 (280) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +3 -0
  3. package/aleph/consts.d.ts +533 -0
  4. package/aleph/consts.js +2 -0
  5. package/aleph/errors.d.ts +822 -0
  6. package/aleph/errors.js +2 -0
  7. package/aleph/events.d.ts +997 -0
  8. package/aleph/events.js +2 -0
  9. package/aleph/index.d.ts +19 -0
  10. package/aleph/index.js +3 -0
  11. package/aleph/query.d.ts +1271 -0
  12. package/aleph/query.js +2 -0
  13. package/aleph/rpc.d.ts +575 -0
  14. package/aleph/rpc.js +2 -0
  15. package/aleph/runtime.d.ts +410 -0
  16. package/aleph/runtime.js +2 -0
  17. package/aleph/tx.d.ts +2206 -0
  18. package/aleph/tx.js +2 -0
  19. package/aleph/types.d.ts +5560 -0
  20. package/aleph/types.js +2 -0
  21. package/astar/consts.d.ts +679 -0
  22. package/astar/consts.js +2 -0
  23. package/astar/errors.d.ts +1317 -0
  24. package/astar/errors.js +2 -0
  25. package/astar/events.d.ts +1707 -0
  26. package/astar/events.js +2 -0
  27. package/astar/index.d.ts +19 -0
  28. package/astar/index.js +3 -0
  29. package/astar/query.d.ts +1474 -0
  30. package/astar/query.js +2 -0
  31. package/astar/rpc.d.ts +775 -0
  32. package/astar/rpc.js +2 -0
  33. package/astar/runtime.d.ts +262 -0
  34. package/astar/runtime.js +2 -0
  35. package/astar/tx.d.ts +4810 -0
  36. package/astar/tx.js +2 -0
  37. package/astar/types.d.ts +12338 -0
  38. package/astar/types.js +2 -0
  39. package/cjs/aleph/consts.js +3 -0
  40. package/cjs/aleph/errors.js +3 -0
  41. package/cjs/aleph/events.js +3 -0
  42. package/cjs/aleph/index.js +19 -0
  43. package/cjs/aleph/query.js +3 -0
  44. package/cjs/aleph/rpc.js +3 -0
  45. package/cjs/aleph/runtime.js +3 -0
  46. package/cjs/aleph/tx.js +3 -0
  47. package/cjs/aleph/types.js +3 -0
  48. package/cjs/astar/consts.js +3 -0
  49. package/cjs/astar/errors.js +3 -0
  50. package/cjs/astar/events.js +3 -0
  51. package/cjs/astar/index.js +19 -0
  52. package/cjs/astar/query.js +3 -0
  53. package/cjs/astar/rpc.js +3 -0
  54. package/cjs/astar/runtime.js +3 -0
  55. package/cjs/astar/tx.js +3 -0
  56. package/cjs/astar/types.js +3 -0
  57. package/cjs/index.js +2 -0
  58. package/cjs/kusama/consts.js +3 -0
  59. package/cjs/kusama/errors.js +3 -0
  60. package/cjs/kusama/events.js +3 -0
  61. package/cjs/kusama/index.js +19 -0
  62. package/cjs/kusama/query.js +3 -0
  63. package/cjs/kusama/rpc.js +3 -0
  64. package/cjs/kusama/runtime.js +3 -0
  65. package/cjs/kusama/tx.js +3 -0
  66. package/cjs/kusama/types.js +3 -0
  67. package/cjs/kusamaAssetHub/consts.js +3 -0
  68. package/cjs/kusamaAssetHub/errors.js +3 -0
  69. package/cjs/kusamaAssetHub/events.js +3 -0
  70. package/cjs/kusamaAssetHub/index.js +19 -0
  71. package/cjs/kusamaAssetHub/query.js +3 -0
  72. package/cjs/kusamaAssetHub/rpc.js +3 -0
  73. package/cjs/kusamaAssetHub/runtime.js +3 -0
  74. package/cjs/kusamaAssetHub/tx.js +3 -0
  75. package/cjs/kusamaAssetHub/types.js +3 -0
  76. package/cjs/moonbeam/consts.js +3 -0
  77. package/cjs/moonbeam/errors.js +3 -0
  78. package/cjs/moonbeam/events.js +3 -0
  79. package/cjs/moonbeam/index.js +19 -0
  80. package/cjs/moonbeam/query.js +3 -0
  81. package/cjs/moonbeam/rpc.js +3 -0
  82. package/cjs/moonbeam/runtime.js +3 -0
  83. package/cjs/moonbeam/tx.js +3 -0
  84. package/cjs/moonbeam/types.js +3 -0
  85. package/cjs/package.json +1 -0
  86. package/cjs/packageInfo.js +5 -0
  87. package/cjs/polkadot/consts.js +3 -0
  88. package/cjs/polkadot/errors.js +3 -0
  89. package/cjs/polkadot/events.js +3 -0
  90. package/cjs/polkadot/index.js +19 -0
  91. package/cjs/polkadot/query.js +3 -0
  92. package/cjs/polkadot/rpc.js +3 -0
  93. package/cjs/polkadot/runtime.js +3 -0
  94. package/cjs/polkadot/tx.js +3 -0
  95. package/cjs/polkadot/types.js +3 -0
  96. package/cjs/polkadotAssetHub/consts.js +3 -0
  97. package/cjs/polkadotAssetHub/errors.js +3 -0
  98. package/cjs/polkadotAssetHub/events.js +3 -0
  99. package/cjs/polkadotAssetHub/index.js +19 -0
  100. package/cjs/polkadotAssetHub/query.js +3 -0
  101. package/cjs/polkadotAssetHub/rpc.js +3 -0
  102. package/cjs/polkadotAssetHub/runtime.js +3 -0
  103. package/cjs/polkadotAssetHub/tx.js +3 -0
  104. package/cjs/polkadotAssetHub/types.js +3 -0
  105. package/cjs/rococoAssetHub/consts.js +3 -0
  106. package/cjs/rococoAssetHub/errors.js +3 -0
  107. package/cjs/rococoAssetHub/events.js +3 -0
  108. package/cjs/rococoAssetHub/index.js +19 -0
  109. package/cjs/rococoAssetHub/query.js +3 -0
  110. package/cjs/rococoAssetHub/rpc.js +3 -0
  111. package/cjs/rococoAssetHub/runtime.js +3 -0
  112. package/cjs/rococoAssetHub/tx.js +3 -0
  113. package/cjs/rococoAssetHub/types.js +3 -0
  114. package/cjs/substrate/consts.js +3 -0
  115. package/cjs/substrate/errors.js +3 -0
  116. package/cjs/substrate/events.js +3 -0
  117. package/cjs/substrate/index.js +19 -0
  118. package/cjs/substrate/query.js +3 -0
  119. package/cjs/substrate/rpc.js +3 -0
  120. package/cjs/substrate/runtime.js +3 -0
  121. package/cjs/substrate/tx.js +3 -0
  122. package/cjs/substrate/types.js +3 -0
  123. package/cjs/westendAssetHub/consts.js +3 -0
  124. package/cjs/westendAssetHub/errors.js +3 -0
  125. package/cjs/westendAssetHub/events.js +3 -0
  126. package/cjs/westendAssetHub/index.js +19 -0
  127. package/cjs/westendAssetHub/query.js +3 -0
  128. package/cjs/westendAssetHub/rpc.js +3 -0
  129. package/cjs/westendAssetHub/runtime.js +3 -0
  130. package/cjs/westendAssetHub/tx.js +3 -0
  131. package/cjs/westendAssetHub/types.js +3 -0
  132. package/index.d.ts +5 -0
  133. package/index.js +1 -0
  134. package/kusama/consts.d.ts +1427 -0
  135. package/kusama/consts.js +2 -0
  136. package/kusama/errors.d.ts +2494 -0
  137. package/kusama/errors.js +2 -0
  138. package/kusama/events.d.ts +2960 -0
  139. package/kusama/events.js +2 -0
  140. package/kusama/index.d.ts +19 -0
  141. package/kusama/index.js +3 -0
  142. package/kusama/query.d.ts +3251 -0
  143. package/kusama/query.js +2 -0
  144. package/kusama/rpc.d.ts +726 -0
  145. package/kusama/rpc.js +2 -0
  146. package/kusama/runtime.d.ts +844 -0
  147. package/kusama/runtime.js +2 -0
  148. package/kusama/tx.d.ts +6014 -0
  149. package/kusama/tx.js +2 -0
  150. package/kusama/types.d.ts +15903 -0
  151. package/kusama/types.js +2 -0
  152. package/kusamaAssetHub/consts.d.ts +632 -0
  153. package/kusamaAssetHub/consts.js +2 -0
  154. package/kusamaAssetHub/errors.d.ts +1164 -0
  155. package/kusamaAssetHub/errors.js +2 -0
  156. package/kusamaAssetHub/events.d.ts +2162 -0
  157. package/kusamaAssetHub/events.js +2 -0
  158. package/kusamaAssetHub/index.d.ts +19 -0
  159. package/kusamaAssetHub/index.js +3 -0
  160. package/kusamaAssetHub/query.d.ts +1301 -0
  161. package/kusamaAssetHub/query.js +2 -0
  162. package/kusamaAssetHub/rpc.d.ts +590 -0
  163. package/kusamaAssetHub/rpc.js +2 -0
  164. package/kusamaAssetHub/runtime.d.ts +402 -0
  165. package/kusamaAssetHub/runtime.js +2 -0
  166. package/kusamaAssetHub/tx.d.ts +4217 -0
  167. package/kusamaAssetHub/tx.js +2 -0
  168. package/kusamaAssetHub/types.d.ts +10418 -0
  169. package/kusamaAssetHub/types.js +2 -0
  170. package/moonbeam/consts.d.ts +961 -0
  171. package/moonbeam/consts.js +2 -0
  172. package/moonbeam/errors.d.ts +1797 -0
  173. package/moonbeam/errors.js +2 -0
  174. package/moonbeam/events.d.ts +2840 -0
  175. package/moonbeam/events.js +2 -0
  176. package/moonbeam/index.d.ts +19 -0
  177. package/moonbeam/index.js +3 -0
  178. package/moonbeam/query.d.ts +2027 -0
  179. package/moonbeam/query.js +2 -0
  180. package/moonbeam/rpc.d.ts +809 -0
  181. package/moonbeam/rpc.js +2 -0
  182. package/moonbeam/runtime.d.ts +506 -0
  183. package/moonbeam/runtime.js +2 -0
  184. package/moonbeam/tx.d.ts +5205 -0
  185. package/moonbeam/tx.js +2 -0
  186. package/moonbeam/types.d.ts +12349 -0
  187. package/moonbeam/types.js +2 -0
  188. package/package.json +33 -0
  189. package/packageInfo.d.ts +4 -0
  190. package/packageInfo.js +3 -0
  191. package/polkadot/consts.d.ts +1160 -0
  192. package/polkadot/consts.js +2 -0
  193. package/polkadot/errors.d.ts +2020 -0
  194. package/polkadot/errors.js +2 -0
  195. package/polkadot/events.d.ts +2235 -0
  196. package/polkadot/events.js +2 -0
  197. package/polkadot/index.d.ts +19 -0
  198. package/polkadot/index.js +3 -0
  199. package/polkadot/query.d.ts +2811 -0
  200. package/polkadot/query.js +2 -0
  201. package/polkadot/rpc.d.ts +726 -0
  202. package/polkadot/rpc.js +2 -0
  203. package/polkadot/runtime.d.ts +844 -0
  204. package/polkadot/runtime.js +2 -0
  205. package/polkadot/tx.d.ts +5009 -0
  206. package/polkadot/tx.js +2 -0
  207. package/polkadot/types.d.ts +13729 -0
  208. package/polkadot/types.js +2 -0
  209. package/polkadotAssetHub/consts.d.ts +524 -0
  210. package/polkadotAssetHub/consts.js +2 -0
  211. package/polkadotAssetHub/errors.d.ts +925 -0
  212. package/polkadotAssetHub/errors.js +2 -0
  213. package/polkadotAssetHub/events.d.ts +1787 -0
  214. package/polkadotAssetHub/events.js +2 -0
  215. package/polkadotAssetHub/index.d.ts +19 -0
  216. package/polkadotAssetHub/index.js +3 -0
  217. package/polkadotAssetHub/query.d.ts +1222 -0
  218. package/polkadotAssetHub/query.js +2 -0
  219. package/polkadotAssetHub/rpc.d.ts +590 -0
  220. package/polkadotAssetHub/rpc.js +2 -0
  221. package/polkadotAssetHub/runtime.d.ts +359 -0
  222. package/polkadotAssetHub/runtime.js +2 -0
  223. package/polkadotAssetHub/tx.d.ts +3492 -0
  224. package/polkadotAssetHub/tx.js +2 -0
  225. package/polkadotAssetHub/types.d.ts +9164 -0
  226. package/polkadotAssetHub/types.js +2 -0
  227. package/rococoAssetHub/consts.d.ts +658 -0
  228. package/rococoAssetHub/consts.js +2 -0
  229. package/rococoAssetHub/errors.d.ts +1231 -0
  230. package/rococoAssetHub/errors.js +2 -0
  231. package/rococoAssetHub/events.d.ts +2172 -0
  232. package/rococoAssetHub/events.js +2 -0
  233. package/rococoAssetHub/index.d.ts +19 -0
  234. package/rococoAssetHub/index.js +3 -0
  235. package/rococoAssetHub/query.d.ts +1269 -0
  236. package/rococoAssetHub/query.js +2 -0
  237. package/rococoAssetHub/rpc.d.ts +590 -0
  238. package/rococoAssetHub/rpc.js +2 -0
  239. package/rococoAssetHub/runtime.d.ts +428 -0
  240. package/rococoAssetHub/runtime.js +2 -0
  241. package/rococoAssetHub/tx.d.ts +4307 -0
  242. package/rococoAssetHub/tx.js +2 -0
  243. package/rococoAssetHub/types.d.ts +11066 -0
  244. package/rococoAssetHub/types.js +2 -0
  245. package/substrate/consts.d.ts +1971 -0
  246. package/substrate/consts.js +2 -0
  247. package/substrate/errors.d.ts +3337 -0
  248. package/substrate/errors.js +2 -0
  249. package/substrate/events.d.ts +4777 -0
  250. package/substrate/events.js +2 -0
  251. package/substrate/index.d.ts +19 -0
  252. package/substrate/index.js +3 -0
  253. package/substrate/query.d.ts +3350 -0
  254. package/substrate/query.js +2 -0
  255. package/substrate/rpc.d.ts +718 -0
  256. package/substrate/rpc.js +2 -0
  257. package/substrate/runtime.d.ts +708 -0
  258. package/substrate/runtime.js +2 -0
  259. package/substrate/tx.d.ts +8800 -0
  260. package/substrate/tx.js +2 -0
  261. package/substrate/types.d.ts +20332 -0
  262. package/substrate/types.js +2 -0
  263. package/westendAssetHub/consts.d.ts +658 -0
  264. package/westendAssetHub/consts.js +2 -0
  265. package/westendAssetHub/errors.d.ts +1231 -0
  266. package/westendAssetHub/errors.js +2 -0
  267. package/westendAssetHub/events.d.ts +2172 -0
  268. package/westendAssetHub/events.js +2 -0
  269. package/westendAssetHub/index.d.ts +19 -0
  270. package/westendAssetHub/index.js +3 -0
  271. package/westendAssetHub/query.d.ts +1269 -0
  272. package/westendAssetHub/query.js +2 -0
  273. package/westendAssetHub/rpc.d.ts +590 -0
  274. package/westendAssetHub/rpc.js +2 -0
  275. package/westendAssetHub/runtime.d.ts +456 -0
  276. package/westendAssetHub/runtime.js +2 -0
  277. package/westendAssetHub/tx.d.ts +4307 -0
  278. package/westendAssetHub/tx.js +2 -0
  279. package/westendAssetHub/types.d.ts +11062 -0
  280. package/westendAssetHub/types.js +2 -0
@@ -0,0 +1,1427 @@
1
+ import type { GenericChainConsts } from '@dedot/types';
2
+ import type { RuntimeVersion, Permill, Bytes, Perbill, Perquintill } from '@dedot/codecs';
3
+ import type { FrameSystemLimitsBlockWeights, FrameSystemLimitsBlockLength, SpWeightsRuntimeDbWeight, FrameSupportPalletId, PalletReferendaTrackInfo, SpWeightsWeightV2Weight } from './types';
4
+ export interface ChainConsts extends GenericChainConsts {
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 current 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 `Babe`'s constants
44
+ **/
45
+ babe: {
46
+ /**
47
+ * The amount of time, in slots, that each epoch should last.
48
+ * NOTE: Currently it is not possible to change the epoch duration after
49
+ * the chain has started. Attempting to do so will brick block production.
50
+ **/
51
+ epochDuration: bigint;
52
+ /**
53
+ * The expected average block time at which BABE should be creating
54
+ * blocks. Since BABE is probabilistic it is not trivial to figure out
55
+ * what the expected average block time should be based on the slot
56
+ * duration and the security parameter `c` (where `1 - c` represents
57
+ * the probability of a slot being empty).
58
+ **/
59
+ expectedBlockTime: bigint;
60
+ /**
61
+ * Max number of authorities allowed
62
+ **/
63
+ maxAuthorities: number;
64
+ /**
65
+ * The maximum number of nominators for each validator.
66
+ **/
67
+ maxNominators: number;
68
+ /**
69
+ * Generic pallet constant
70
+ **/
71
+ [name: string]: any;
72
+ };
73
+ /**
74
+ * Pallet `Timestamp`'s constants
75
+ **/
76
+ timestamp: {
77
+ /**
78
+ * The minimum period between blocks.
79
+ *
80
+ * Be aware that this is different to the *expected* period that the block production
81
+ * apparatus provides. Your chosen consensus system will generally work with this to
82
+ * determine a sensible block time. For example, in the Aura pallet it will be double this
83
+ * period on default settings.
84
+ **/
85
+ minimumPeriod: bigint;
86
+ /**
87
+ * Generic pallet constant
88
+ **/
89
+ [name: string]: any;
90
+ };
91
+ /**
92
+ * Pallet `Indices`'s constants
93
+ **/
94
+ indices: {
95
+ /**
96
+ * The deposit needed for reserving an index.
97
+ **/
98
+ deposit: bigint;
99
+ /**
100
+ * Generic pallet constant
101
+ **/
102
+ [name: string]: any;
103
+ };
104
+ /**
105
+ * Pallet `Balances`'s constants
106
+ **/
107
+ balances: {
108
+ /**
109
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
110
+ *
111
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
112
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
113
+ * In case you have multiple sources of provider references, you may also get unexpected
114
+ * behaviour if you set this to zero.
115
+ *
116
+ * Bottom line: Do yourself a favour and make it at least one!
117
+ **/
118
+ existentialDeposit: bigint;
119
+ /**
120
+ * The maximum number of locks that should exist on an account.
121
+ * Not strictly enforced, but used for weight estimation.
122
+ **/
123
+ maxLocks: number;
124
+ /**
125
+ * The maximum number of named reserves that can exist on an account.
126
+ **/
127
+ maxReserves: number;
128
+ /**
129
+ * The maximum number of holds that can exist on an account at any time.
130
+ **/
131
+ maxHolds: number;
132
+ /**
133
+ * The maximum number of individual freeze locks that can exist on an account at any time.
134
+ **/
135
+ maxFreezes: number;
136
+ /**
137
+ * Generic pallet constant
138
+ **/
139
+ [name: string]: any;
140
+ };
141
+ /**
142
+ * Pallet `TransactionPayment`'s constants
143
+ **/
144
+ transactionPayment: {
145
+ /**
146
+ * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
147
+ * `priority`
148
+ *
149
+ * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
150
+ * added to a tip component in regular `priority` calculations.
151
+ * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
152
+ * extrinsic (with no tip), by including a tip value greater than the virtual tip.
153
+ *
154
+ * ```rust,ignore
155
+ * // For `Normal`
156
+ * let priority = priority_calc(tip);
157
+ *
158
+ * // For `Operational`
159
+ * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
160
+ * let priority = priority_calc(tip + virtual_tip);
161
+ * ```
162
+ *
163
+ * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
164
+ * sent with the transaction. So, not only does the transaction get a priority bump based
165
+ * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
166
+ * transactions.
167
+ **/
168
+ operationalFeeMultiplier: number;
169
+ /**
170
+ * Generic pallet constant
171
+ **/
172
+ [name: string]: any;
173
+ };
174
+ /**
175
+ * Pallet `Authorship`'s constants
176
+ **/
177
+ authorship: {
178
+ /**
179
+ * Generic pallet constant
180
+ **/
181
+ [name: string]: any;
182
+ };
183
+ /**
184
+ * Pallet `Staking`'s constants
185
+ **/
186
+ staking: {
187
+ /**
188
+ * Number of eras to keep in history.
189
+ *
190
+ * Following information is kept for eras in `[current_era -
191
+ * HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
192
+ * `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
193
+ * `ErasTotalStake`, `ErasStartSessionIndex`,
194
+ * `StakingLedger.claimed_rewards`.
195
+ *
196
+ * Must be more than the number of eras delayed by session.
197
+ * I.e. active era must always be in history. I.e. `active_era >
198
+ * current_era - history_depth` must be guaranteed.
199
+ *
200
+ * If migrating an existing pallet from storage value to config value,
201
+ * this should be set to same value or greater as in storage.
202
+ *
203
+ * Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
204
+ * item `StakingLedger.claimed_rewards`. Setting this value lower than
205
+ * the existing value can lead to inconsistencies in the
206
+ * `StakingLedger` and will need to be handled properly in a migration.
207
+ * The test `reducing_history_depth_abrupt` shows this effect.
208
+ **/
209
+ historyDepth: number;
210
+ /**
211
+ * Number of sessions per era.
212
+ **/
213
+ sessionsPerEra: number;
214
+ /**
215
+ * Number of eras that staked funds must remain bonded for.
216
+ **/
217
+ bondingDuration: number;
218
+ /**
219
+ * Number of eras that slashes are deferred by, after computation.
220
+ *
221
+ * This should be less than the bonding duration. Set to 0 if slashes
222
+ * should be applied immediately, without opportunity for intervention.
223
+ **/
224
+ slashDeferDuration: number;
225
+ /**
226
+ * The maximum number of nominators rewarded for each validator.
227
+ *
228
+ * For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can
229
+ * claim their reward. This used to limit the i/o cost for the nominator payout.
230
+ **/
231
+ maxNominatorRewardedPerValidator: number;
232
+ /**
233
+ * The maximum number of `unlocking` chunks a [`StakingLedger`] can
234
+ * have. Effectively determines how many unique eras a staker may be
235
+ * unbonding in.
236
+ *
237
+ * Note: `MaxUnlockingChunks` is used as the upper bound for the
238
+ * `BoundedVec` item `StakingLedger.unlocking`. Setting this value
239
+ * lower than the existing value can lead to inconsistencies in the
240
+ * `StakingLedger` and will need to be handled properly in a runtime
241
+ * migration. The test `reducing_max_unlocking_chunks_abrupt` shows
242
+ * this effect.
243
+ **/
244
+ maxUnlockingChunks: number;
245
+ /**
246
+ * Generic pallet constant
247
+ **/
248
+ [name: string]: any;
249
+ };
250
+ /**
251
+ * Pallet `Offences`'s constants
252
+ **/
253
+ offences: {
254
+ /**
255
+ * Generic pallet constant
256
+ **/
257
+ [name: string]: any;
258
+ };
259
+ /**
260
+ * Pallet `Historical`'s constants
261
+ **/
262
+ historical: {
263
+ /**
264
+ * Generic pallet constant
265
+ **/
266
+ [name: string]: any;
267
+ };
268
+ /**
269
+ * Pallet `Session`'s constants
270
+ **/
271
+ session: {
272
+ /**
273
+ * Generic pallet constant
274
+ **/
275
+ [name: string]: any;
276
+ };
277
+ /**
278
+ * Pallet `Grandpa`'s constants
279
+ **/
280
+ grandpa: {
281
+ /**
282
+ * Max Authorities in use
283
+ **/
284
+ maxAuthorities: number;
285
+ /**
286
+ * The maximum number of nominators for each validator.
287
+ **/
288
+ maxNominators: number;
289
+ /**
290
+ * The maximum number of entries to keep in the set id to session index mapping.
291
+ *
292
+ * Since the `SetIdSession` map is only used for validating equivocations this
293
+ * value should relate to the bonding duration of whatever staking system is
294
+ * being used (if any). If equivocation handling is not enabled then this value
295
+ * can be zero.
296
+ **/
297
+ maxSetIdSessionEntries: bigint;
298
+ /**
299
+ * Generic pallet constant
300
+ **/
301
+ [name: string]: any;
302
+ };
303
+ /**
304
+ * Pallet `ImOnline`'s constants
305
+ **/
306
+ imOnline: {
307
+ /**
308
+ * A configuration for base priority of unsigned transactions.
309
+ *
310
+ * This is exposed so that it can be tuned for particular runtime, when
311
+ * multiple pallets send unsigned transactions.
312
+ **/
313
+ unsignedPriority: bigint;
314
+ /**
315
+ * Generic pallet constant
316
+ **/
317
+ [name: string]: any;
318
+ };
319
+ /**
320
+ * Pallet `AuthorityDiscovery`'s constants
321
+ **/
322
+ authorityDiscovery: {
323
+ /**
324
+ * Generic pallet constant
325
+ **/
326
+ [name: string]: any;
327
+ };
328
+ /**
329
+ * Pallet `Treasury`'s constants
330
+ **/
331
+ treasury: {
332
+ /**
333
+ * Fraction of a proposal's value that should be bonded in order to place the proposal.
334
+ * An accepted proposal gets these back. A rejected proposal does not.
335
+ **/
336
+ proposalBond: Permill;
337
+ /**
338
+ * Minimum amount of funds that should be placed in a deposit for making a proposal.
339
+ **/
340
+ proposalBondMinimum: bigint;
341
+ /**
342
+ * Maximum amount of funds that should be placed in a deposit for making a proposal.
343
+ **/
344
+ proposalBondMaximum: bigint | undefined;
345
+ /**
346
+ * Period between successive spends.
347
+ **/
348
+ spendPeriod: number;
349
+ /**
350
+ * Percentage of spare funds (if any) that are burnt per spend period.
351
+ **/
352
+ burn: Permill;
353
+ /**
354
+ * The treasury's pallet id, used for deriving its sovereign account ID.
355
+ **/
356
+ palletId: FrameSupportPalletId;
357
+ /**
358
+ * The maximum number of approvals that can wait in the spending queue.
359
+ *
360
+ * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
361
+ **/
362
+ maxApprovals: number;
363
+ /**
364
+ * The period during which an approved treasury spend has to be claimed.
365
+ **/
366
+ payoutPeriod: number;
367
+ /**
368
+ * Generic pallet constant
369
+ **/
370
+ [name: string]: any;
371
+ };
372
+ /**
373
+ * Pallet `ConvictionVoting`'s constants
374
+ **/
375
+ convictionVoting: {
376
+ /**
377
+ * The maximum number of concurrent votes an account may have.
378
+ *
379
+ * Also used to compute weight, an overly large value can lead to extrinsics with large
380
+ * weight estimation: see `delegate` for instance.
381
+ **/
382
+ maxVotes: number;
383
+ /**
384
+ * The minimum period of vote locking.
385
+ *
386
+ * It should be no shorter than enactment period to ensure that in the case of an approval,
387
+ * those successful voters are locked into the consequences that their votes entail.
388
+ **/
389
+ voteLockingPeriod: number;
390
+ /**
391
+ * Generic pallet constant
392
+ **/
393
+ [name: string]: any;
394
+ };
395
+ /**
396
+ * Pallet `Referenda`'s constants
397
+ **/
398
+ referenda: {
399
+ /**
400
+ * The minimum amount to be used as a deposit for a public referendum proposal.
401
+ **/
402
+ submissionDeposit: bigint;
403
+ /**
404
+ * Maximum size of the referendum queue for a single track.
405
+ **/
406
+ maxQueued: number;
407
+ /**
408
+ * The number of blocks after submission that a referendum must begin being decided by.
409
+ * Once this passes, then anyone may cancel the referendum.
410
+ **/
411
+ undecidingTimeout: number;
412
+ /**
413
+ * Quantization level for the referendum wakeup scheduler. A higher number will result in
414
+ * fewer storage reads/writes needed for smaller voters, but also result in delays to the
415
+ * automatic referendum status changes. Explicit servicing instructions are unaffected.
416
+ **/
417
+ alarmInterval: number;
418
+ /**
419
+ * Information concerning the different referendum tracks.
420
+ **/
421
+ tracks: Array<[number, PalletReferendaTrackInfo]>;
422
+ /**
423
+ * Generic pallet constant
424
+ **/
425
+ [name: string]: any;
426
+ };
427
+ /**
428
+ * Pallet `FellowshipCollective`'s constants
429
+ **/
430
+ fellowshipCollective: {
431
+ /**
432
+ * Generic pallet constant
433
+ **/
434
+ [name: string]: any;
435
+ };
436
+ /**
437
+ * Pallet `FellowshipReferenda`'s constants
438
+ **/
439
+ fellowshipReferenda: {
440
+ /**
441
+ * The minimum amount to be used as a deposit for a public referendum proposal.
442
+ **/
443
+ submissionDeposit: bigint;
444
+ /**
445
+ * Maximum size of the referendum queue for a single track.
446
+ **/
447
+ maxQueued: number;
448
+ /**
449
+ * The number of blocks after submission that a referendum must begin being decided by.
450
+ * Once this passes, then anyone may cancel the referendum.
451
+ **/
452
+ undecidingTimeout: number;
453
+ /**
454
+ * Quantization level for the referendum wakeup scheduler. A higher number will result in
455
+ * fewer storage reads/writes needed for smaller voters, but also result in delays to the
456
+ * automatic referendum status changes. Explicit servicing instructions are unaffected.
457
+ **/
458
+ alarmInterval: number;
459
+ /**
460
+ * Information concerning the different referendum tracks.
461
+ **/
462
+ tracks: Array<[number, PalletReferendaTrackInfo]>;
463
+ /**
464
+ * Generic pallet constant
465
+ **/
466
+ [name: string]: any;
467
+ };
468
+ /**
469
+ * Pallet `Whitelist`'s constants
470
+ **/
471
+ whitelist: {
472
+ /**
473
+ * Generic pallet constant
474
+ **/
475
+ [name: string]: any;
476
+ };
477
+ /**
478
+ * Pallet `Claims`'s constants
479
+ **/
480
+ claims: {
481
+ prefix: Bytes;
482
+ /**
483
+ * Generic pallet constant
484
+ **/
485
+ [name: string]: any;
486
+ };
487
+ /**
488
+ * Pallet `Utility`'s constants
489
+ **/
490
+ utility: {
491
+ /**
492
+ * The limit on the number of batched calls.
493
+ **/
494
+ batchedCallsLimit: number;
495
+ /**
496
+ * Generic pallet constant
497
+ **/
498
+ [name: string]: any;
499
+ };
500
+ /**
501
+ * Pallet `Identity`'s constants
502
+ **/
503
+ identity: {
504
+ /**
505
+ * The amount held on deposit for a registered identity
506
+ **/
507
+ basicDeposit: bigint;
508
+ /**
509
+ * The amount held on deposit per additional field for a registered identity.
510
+ **/
511
+ fieldDeposit: bigint;
512
+ /**
513
+ * The amount held on deposit for a registered subaccount. This should account for the fact
514
+ * that one storage item's value will increase by the size of an account ID, and there will
515
+ * be another trie item whose value is the size of an account ID plus 32 bytes.
516
+ **/
517
+ subAccountDeposit: bigint;
518
+ /**
519
+ * The maximum number of sub-accounts allowed per identified account.
520
+ **/
521
+ maxSubAccounts: number;
522
+ /**
523
+ * Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O
524
+ * required to access an identity, but can be pretty high.
525
+ **/
526
+ maxAdditionalFields: number;
527
+ /**
528
+ * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
529
+ * of, e.g., updating judgements.
530
+ **/
531
+ maxRegistrars: number;
532
+ /**
533
+ * Generic pallet constant
534
+ **/
535
+ [name: string]: any;
536
+ };
537
+ /**
538
+ * Pallet `Society`'s constants
539
+ **/
540
+ society: {
541
+ /**
542
+ * The societies's pallet id
543
+ **/
544
+ palletId: FrameSupportPalletId;
545
+ /**
546
+ * The maximum number of strikes before a member gets funds slashed.
547
+ **/
548
+ graceStrikes: number;
549
+ /**
550
+ * The amount of incentive paid within each period. Doesn't include VoterTip.
551
+ **/
552
+ periodSpend: bigint;
553
+ /**
554
+ * The number of blocks on which new candidates should be voted on. Together with
555
+ * `ClaimPeriod`, this sums to the number of blocks between candidate intake periods.
556
+ **/
557
+ votingPeriod: number;
558
+ /**
559
+ * The number of blocks on which new candidates can claim their membership and be the
560
+ * named head.
561
+ **/
562
+ claimPeriod: number;
563
+ /**
564
+ * The maximum duration of the payout lock.
565
+ **/
566
+ maxLockDuration: number;
567
+ /**
568
+ * The number of blocks between membership challenges.
569
+ **/
570
+ challengePeriod: number;
571
+ /**
572
+ * The maximum number of payouts a member may have waiting unclaimed.
573
+ **/
574
+ maxPayouts: number;
575
+ /**
576
+ * The maximum number of bids at once.
577
+ **/
578
+ maxBids: number;
579
+ /**
580
+ * Generic pallet constant
581
+ **/
582
+ [name: string]: any;
583
+ };
584
+ /**
585
+ * Pallet `Recovery`'s constants
586
+ **/
587
+ recovery: {
588
+ /**
589
+ * The base amount of currency needed to reserve for creating a recovery configuration.
590
+ *
591
+ * This is held for an additional storage item whose value size is
592
+ * `2 + sizeof(BlockNumber, Balance)` bytes.
593
+ **/
594
+ configDepositBase: bigint;
595
+ /**
596
+ * The amount of currency needed per additional user when creating a recovery
597
+ * configuration.
598
+ *
599
+ * This is held for adding `sizeof(AccountId)` bytes more into a pre-existing storage
600
+ * value.
601
+ **/
602
+ friendDepositFactor: bigint;
603
+ /**
604
+ * The maximum amount of friends allowed in a recovery configuration.
605
+ *
606
+ * NOTE: The threshold programmed in this Pallet uses u16, so it does
607
+ * not really make sense to have a limit here greater than u16::MAX.
608
+ * But also, that is a lot more than you should probably set this value
609
+ * to anyway...
610
+ **/
611
+ maxFriends: number;
612
+ /**
613
+ * The base amount of currency needed to reserve for starting a recovery.
614
+ *
615
+ * This is primarily held for deterring malicious recovery attempts, and should
616
+ * have a value large enough that a bad actor would choose not to place this
617
+ * deposit. It also acts to fund additional storage item whose value size is
618
+ * `sizeof(BlockNumber, Balance + T * AccountId)` bytes. Where T is a configurable
619
+ * threshold.
620
+ **/
621
+ recoveryDeposit: bigint;
622
+ /**
623
+ * Generic pallet constant
624
+ **/
625
+ [name: string]: any;
626
+ };
627
+ /**
628
+ * Pallet `Vesting`'s constants
629
+ **/
630
+ vesting: {
631
+ /**
632
+ * The minimum amount transferred to call `vested_transfer`.
633
+ **/
634
+ minVestedTransfer: bigint;
635
+ maxVestingSchedules: number;
636
+ /**
637
+ * Generic pallet constant
638
+ **/
639
+ [name: string]: any;
640
+ };
641
+ /**
642
+ * Pallet `Scheduler`'s constants
643
+ **/
644
+ scheduler: {
645
+ /**
646
+ * The maximum weight that may be scheduled per block for any dispatchables.
647
+ **/
648
+ maximumWeight: SpWeightsWeightV2Weight;
649
+ /**
650
+ * The maximum number of scheduled calls in the queue for a single block.
651
+ *
652
+ * NOTE:
653
+ * + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
654
+ * higher limit under `runtime-benchmarks` feature.
655
+ **/
656
+ maxScheduledPerBlock: number;
657
+ /**
658
+ * Generic pallet constant
659
+ **/
660
+ [name: string]: any;
661
+ };
662
+ /**
663
+ * Pallet `Proxy`'s constants
664
+ **/
665
+ proxy: {
666
+ /**
667
+ * The base amount of currency needed to reserve for creating a proxy.
668
+ *
669
+ * This is held for an additional storage item whose value size is
670
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
671
+ **/
672
+ proxyDepositBase: bigint;
673
+ /**
674
+ * The amount of currency needed per proxy added.
675
+ *
676
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
677
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
678
+ * into account `32 + proxy_type.encode().len()` bytes of data.
679
+ **/
680
+ proxyDepositFactor: bigint;
681
+ /**
682
+ * The maximum amount of proxies allowed for a single account.
683
+ **/
684
+ maxProxies: number;
685
+ /**
686
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
687
+ **/
688
+ maxPending: number;
689
+ /**
690
+ * The base amount of currency needed to reserve for creating an announcement.
691
+ *
692
+ * This is held when a new storage item holding a `Balance` is created (typically 16
693
+ * bytes).
694
+ **/
695
+ announcementDepositBase: bigint;
696
+ /**
697
+ * The amount of currency needed per announcement made.
698
+ *
699
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
700
+ * into a pre-existing storage value.
701
+ **/
702
+ announcementDepositFactor: bigint;
703
+ /**
704
+ * Generic pallet constant
705
+ **/
706
+ [name: string]: any;
707
+ };
708
+ /**
709
+ * Pallet `Multisig`'s constants
710
+ **/
711
+ multisig: {
712
+ /**
713
+ * The base amount of currency needed to reserve for creating a multisig execution or to
714
+ * store a dispatch call for later.
715
+ *
716
+ * This is held for an additional storage item whose value size is
717
+ * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
718
+ * `32 + sizeof(AccountId)` bytes.
719
+ **/
720
+ depositBase: bigint;
721
+ /**
722
+ * The amount of currency needed per unit threshold when creating a multisig execution.
723
+ *
724
+ * This is held for adding 32 bytes more into a pre-existing storage value.
725
+ **/
726
+ depositFactor: bigint;
727
+ /**
728
+ * The maximum amount of signatories allowed in the multisig.
729
+ **/
730
+ maxSignatories: number;
731
+ /**
732
+ * Generic pallet constant
733
+ **/
734
+ [name: string]: any;
735
+ };
736
+ /**
737
+ * Pallet `Preimage`'s constants
738
+ **/
739
+ preimage: {
740
+ /**
741
+ * Generic pallet constant
742
+ **/
743
+ [name: string]: any;
744
+ };
745
+ /**
746
+ * Pallet `Bounties`'s constants
747
+ **/
748
+ bounties: {
749
+ /**
750
+ * The amount held on deposit for placing a bounty proposal.
751
+ **/
752
+ bountyDepositBase: bigint;
753
+ /**
754
+ * The delay period for which a bounty beneficiary need to wait before claim the payout.
755
+ **/
756
+ bountyDepositPayoutDelay: number;
757
+ /**
758
+ * Bounty duration in blocks.
759
+ **/
760
+ bountyUpdatePeriod: number;
761
+ /**
762
+ * The curator deposit is calculated as a percentage of the curator fee.
763
+ *
764
+ * This deposit has optional upper and lower bounds with `CuratorDepositMax` and
765
+ * `CuratorDepositMin`.
766
+ **/
767
+ curatorDepositMultiplier: Permill;
768
+ /**
769
+ * Maximum amount of funds that should be placed in a deposit for making a proposal.
770
+ **/
771
+ curatorDepositMax: bigint | undefined;
772
+ /**
773
+ * Minimum amount of funds that should be placed in a deposit for making a proposal.
774
+ **/
775
+ curatorDepositMin: bigint | undefined;
776
+ /**
777
+ * Minimum value for a bounty.
778
+ **/
779
+ bountyValueMinimum: bigint;
780
+ /**
781
+ * The amount held on deposit per byte within the tip report reason or bounty description.
782
+ **/
783
+ dataDepositPerByte: bigint;
784
+ /**
785
+ * Maximum acceptable reason length.
786
+ *
787
+ * Benchmarks depend on this value, be sure to update weights file when changing this value
788
+ **/
789
+ maximumReasonLength: number;
790
+ /**
791
+ * Generic pallet constant
792
+ **/
793
+ [name: string]: any;
794
+ };
795
+ /**
796
+ * Pallet `ChildBounties`'s constants
797
+ **/
798
+ childBounties: {
799
+ /**
800
+ * Maximum number of child bounties that can be added to a parent bounty.
801
+ **/
802
+ maxActiveChildBountyCount: number;
803
+ /**
804
+ * Minimum value for a child-bounty.
805
+ **/
806
+ childBountyValueMinimum: bigint;
807
+ /**
808
+ * Generic pallet constant
809
+ **/
810
+ [name: string]: any;
811
+ };
812
+ /**
813
+ * Pallet `ElectionProviderMultiPhase`'s constants
814
+ **/
815
+ electionProviderMultiPhase: {
816
+ /**
817
+ * Duration of the unsigned phase.
818
+ **/
819
+ unsignedPhase: number;
820
+ /**
821
+ * Duration of the signed phase.
822
+ **/
823
+ signedPhase: number;
824
+ /**
825
+ * The minimum amount of improvement to the solution score that defines a solution as
826
+ * "better" in the Signed phase.
827
+ **/
828
+ betterSignedThreshold: Perbill;
829
+ /**
830
+ * The minimum amount of improvement to the solution score that defines a solution as
831
+ * "better" in the Unsigned phase.
832
+ **/
833
+ betterUnsignedThreshold: Perbill;
834
+ /**
835
+ * The repeat threshold of the offchain worker.
836
+ *
837
+ * For example, if it is 5, that means that at least 5 blocks will elapse between attempts
838
+ * to submit the worker's solution.
839
+ **/
840
+ offchainRepeat: number;
841
+ /**
842
+ * The priority of the unsigned transaction submitted in the unsigned-phase
843
+ **/
844
+ minerTxPriority: bigint;
845
+ /**
846
+ * Maximum number of signed submissions that can be queued.
847
+ *
848
+ * It is best to avoid adjusting this during an election, as it impacts downstream data
849
+ * structures. In particular, `SignedSubmissionIndices<T>` is bounded on this value. If you
850
+ * update this value during an election, you _must_ ensure that
851
+ * `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,
852
+ * attempts to submit new solutions may cause a runtime panic.
853
+ **/
854
+ signedMaxSubmissions: number;
855
+ /**
856
+ * Maximum weight of a signed solution.
857
+ *
858
+ * If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of
859
+ * this pallet), then [`MinerConfig::solution_weight`] is used to compare against
860
+ * this value.
861
+ **/
862
+ signedMaxWeight: SpWeightsWeightV2Weight;
863
+ /**
864
+ * The maximum amount of unchecked solutions to refund the call fee for.
865
+ **/
866
+ signedMaxRefunds: number;
867
+ /**
868
+ * Base reward for a signed solution
869
+ **/
870
+ signedRewardBase: bigint;
871
+ /**
872
+ * Per-byte deposit for a signed solution.
873
+ **/
874
+ signedDepositByte: bigint;
875
+ /**
876
+ * Per-weight deposit for a signed solution.
877
+ **/
878
+ signedDepositWeight: bigint;
879
+ /**
880
+ * The maximum number of winners that can be elected by this `ElectionProvider`
881
+ * implementation.
882
+ *
883
+ * Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
884
+ **/
885
+ maxWinners: number;
886
+ minerMaxLength: number;
887
+ minerMaxWeight: SpWeightsWeightV2Weight;
888
+ minerMaxVotesPerVoter: number;
889
+ minerMaxWinners: number;
890
+ /**
891
+ * Generic pallet constant
892
+ **/
893
+ [name: string]: any;
894
+ };
895
+ /**
896
+ * Pallet `Nis`'s constants
897
+ **/
898
+ nis: {
899
+ /**
900
+ * The treasury's pallet id, used for deriving its sovereign account ID.
901
+ **/
902
+ palletId: FrameSupportPalletId;
903
+ /**
904
+ * Number of duration queues in total. This sets the maximum duration supported, which is
905
+ * this value multiplied by `Period`.
906
+ **/
907
+ queueCount: number;
908
+ /**
909
+ * Maximum number of items that may be in each duration queue.
910
+ *
911
+ * Must be larger than zero.
912
+ **/
913
+ maxQueueLen: number;
914
+ /**
915
+ * Portion of the queue which is free from ordering and just a FIFO.
916
+ *
917
+ * Must be no greater than `MaxQueueLen`.
918
+ **/
919
+ fifoQueueLen: number;
920
+ /**
921
+ * The base period for the duration queues. This is the common multiple across all
922
+ * supported freezing durations that can be bid upon.
923
+ **/
924
+ basePeriod: number;
925
+ /**
926
+ * The minimum amount of funds that may be placed in a bid. Note that this
927
+ * does not actually limit the amount which may be represented in a receipt since bids may
928
+ * be split up by the system.
929
+ *
930
+ * It should be at least big enough to ensure that there is no possible storage spam attack
931
+ * or queue-filling attack.
932
+ **/
933
+ minBid: bigint;
934
+ /**
935
+ * The minimum amount of funds which may intentionally be left remaining under a single
936
+ * receipt.
937
+ **/
938
+ minReceipt: Perquintill;
939
+ /**
940
+ * The number of blocks between consecutive attempts to dequeue bids and create receipts.
941
+ *
942
+ * A larger value results in fewer storage hits each block, but a slower period to get to
943
+ * the target.
944
+ **/
945
+ intakePeriod: number;
946
+ /**
947
+ * The maximum amount of bids that can consolidated into receipts in a single intake. A
948
+ * larger value here means less of the block available for transactions should there be a
949
+ * glut of bids.
950
+ **/
951
+ maxIntakeWeight: SpWeightsWeightV2Weight;
952
+ /**
953
+ * The maximum proportion which may be thawed and the period over which it is reset.
954
+ **/
955
+ thawThrottle: [Perquintill, number];
956
+ /**
957
+ * Generic pallet constant
958
+ **/
959
+ [name: string]: any;
960
+ };
961
+ /**
962
+ * Pallet `NisCounterpartBalances`'s constants
963
+ **/
964
+ nisCounterpartBalances: {
965
+ /**
966
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
967
+ *
968
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
969
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
970
+ * In case you have multiple sources of provider references, you may also get unexpected
971
+ * behaviour if you set this to zero.
972
+ *
973
+ * Bottom line: Do yourself a favour and make it at least one!
974
+ **/
975
+ existentialDeposit: bigint;
976
+ /**
977
+ * The maximum number of locks that should exist on an account.
978
+ * Not strictly enforced, but used for weight estimation.
979
+ **/
980
+ maxLocks: number;
981
+ /**
982
+ * The maximum number of named reserves that can exist on an account.
983
+ **/
984
+ maxReserves: number;
985
+ /**
986
+ * The maximum number of holds that can exist on an account at any time.
987
+ **/
988
+ maxHolds: number;
989
+ /**
990
+ * The maximum number of individual freeze locks that can exist on an account at any time.
991
+ **/
992
+ maxFreezes: number;
993
+ /**
994
+ * Generic pallet constant
995
+ **/
996
+ [name: string]: any;
997
+ };
998
+ /**
999
+ * Pallet `VoterList`'s constants
1000
+ **/
1001
+ voterList: {
1002
+ /**
1003
+ * The list of thresholds separating the various bags.
1004
+ *
1005
+ * Ids are separated into unsorted bags according to their score. This specifies the
1006
+ * thresholds separating the bags. An id's bag is the largest bag for which the id's score
1007
+ * is less than or equal to its upper threshold.
1008
+ *
1009
+ * When ids are iterated, higher bags are iterated completely before lower bags. This means
1010
+ * that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
1011
+ * score, but peer ids within a particular bag are sorted in insertion order.
1012
+ *
1013
+ * # Expressing the constant
1014
+ *
1015
+ * This constant must be sorted in strictly increasing order. Duplicate items are not
1016
+ * permitted.
1017
+ *
1018
+ * There is an implied upper limit of `Score::MAX`; that value does not need to be
1019
+ * specified within the bag. For any two threshold lists, if one ends with
1020
+ * `Score::MAX`, the other one does not, and they are otherwise equal, the two
1021
+ * lists will behave identically.
1022
+ *
1023
+ * # Calculation
1024
+ *
1025
+ * It is recommended to generate the set of thresholds in a geometric series, such that
1026
+ * there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
1027
+ * constant_ratio).max(threshold[k] + 1)` for all `k`.
1028
+ *
1029
+ * The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
1030
+ *
1031
+ * # Examples
1032
+ *
1033
+ * - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
1034
+ * iteration is strictly in insertion order.
1035
+ * - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
1036
+ * the procedure given above, then the constant ratio is equal to 2.
1037
+ * - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
1038
+ * the procedure given above, then the constant ratio is approximately equal to 1.248.
1039
+ * - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
1040
+ * into bag 0, an id with score 2 will fall into bag 1, etc.
1041
+ *
1042
+ * # Migration
1043
+ *
1044
+ * In the event that this list ever changes, a copy of the old bags list must be retained.
1045
+ * With that `List::migrate` can be called, which will perform the appropriate migration.
1046
+ **/
1047
+ bagThresholds: Array<bigint>;
1048
+ /**
1049
+ * Generic pallet constant
1050
+ **/
1051
+ [name: string]: any;
1052
+ };
1053
+ /**
1054
+ * Pallet `NominationPools`'s constants
1055
+ **/
1056
+ nominationPools: {
1057
+ /**
1058
+ * The nomination pool's pallet id.
1059
+ **/
1060
+ palletId: FrameSupportPalletId;
1061
+ /**
1062
+ * The maximum pool points-to-balance ratio that an `open` pool can have.
1063
+ *
1064
+ * This is important in the event slashing takes place and the pool's points-to-balance
1065
+ * ratio becomes disproportional.
1066
+ *
1067
+ * Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
1068
+ * are a function of number of points, and by setting this value to e.g. 10, you ensure
1069
+ * that the total number of points in the system are at most 10 times the total_issuance of
1070
+ * the chain, in the absolute worse case.
1071
+ *
1072
+ * For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
1073
+ * Such a scenario would also be the equivalent of the pool being 90% slashed.
1074
+ **/
1075
+ maxPointsToBalance: number;
1076
+ /**
1077
+ * Generic pallet constant
1078
+ **/
1079
+ [name: string]: any;
1080
+ };
1081
+ /**
1082
+ * Pallet `FastUnstake`'s constants
1083
+ **/
1084
+ fastUnstake: {
1085
+ /**
1086
+ * Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
1087
+ * the costs of resources on unsuccessful unstake.
1088
+ **/
1089
+ deposit: bigint;
1090
+ /**
1091
+ * Generic pallet constant
1092
+ **/
1093
+ [name: string]: any;
1094
+ };
1095
+ /**
1096
+ * Pallet `ParachainsOrigin`'s constants
1097
+ **/
1098
+ parachainsOrigin: {
1099
+ /**
1100
+ * Generic pallet constant
1101
+ **/
1102
+ [name: string]: any;
1103
+ };
1104
+ /**
1105
+ * Pallet `Configuration`'s constants
1106
+ **/
1107
+ configuration: {
1108
+ /**
1109
+ * Generic pallet constant
1110
+ **/
1111
+ [name: string]: any;
1112
+ };
1113
+ /**
1114
+ * Pallet `ParasShared`'s constants
1115
+ **/
1116
+ parasShared: {
1117
+ /**
1118
+ * Generic pallet constant
1119
+ **/
1120
+ [name: string]: any;
1121
+ };
1122
+ /**
1123
+ * Pallet `ParaInclusion`'s constants
1124
+ **/
1125
+ paraInclusion: {
1126
+ /**
1127
+ * Generic pallet constant
1128
+ **/
1129
+ [name: string]: any;
1130
+ };
1131
+ /**
1132
+ * Pallet `ParaInherent`'s constants
1133
+ **/
1134
+ paraInherent: {
1135
+ /**
1136
+ * Generic pallet constant
1137
+ **/
1138
+ [name: string]: any;
1139
+ };
1140
+ /**
1141
+ * Pallet `ParaScheduler`'s constants
1142
+ **/
1143
+ paraScheduler: {
1144
+ /**
1145
+ * Generic pallet constant
1146
+ **/
1147
+ [name: string]: any;
1148
+ };
1149
+ /**
1150
+ * Pallet `Paras`'s constants
1151
+ **/
1152
+ paras: {
1153
+ unsignedPriority: bigint;
1154
+ /**
1155
+ * Generic pallet constant
1156
+ **/
1157
+ [name: string]: any;
1158
+ };
1159
+ /**
1160
+ * Pallet `Initializer`'s constants
1161
+ **/
1162
+ initializer: {
1163
+ /**
1164
+ * Generic pallet constant
1165
+ **/
1166
+ [name: string]: any;
1167
+ };
1168
+ /**
1169
+ * Pallet `Dmp`'s constants
1170
+ **/
1171
+ dmp: {
1172
+ /**
1173
+ * Generic pallet constant
1174
+ **/
1175
+ [name: string]: any;
1176
+ };
1177
+ /**
1178
+ * Pallet `Hrmp`'s constants
1179
+ **/
1180
+ hrmp: {
1181
+ /**
1182
+ * Generic pallet constant
1183
+ **/
1184
+ [name: string]: any;
1185
+ };
1186
+ /**
1187
+ * Pallet `ParaSessionInfo`'s constants
1188
+ **/
1189
+ paraSessionInfo: {
1190
+ /**
1191
+ * Generic pallet constant
1192
+ **/
1193
+ [name: string]: any;
1194
+ };
1195
+ /**
1196
+ * Pallet `ParasDisputes`'s constants
1197
+ **/
1198
+ parasDisputes: {
1199
+ /**
1200
+ * Generic pallet constant
1201
+ **/
1202
+ [name: string]: any;
1203
+ };
1204
+ /**
1205
+ * Pallet `ParasSlashing`'s constants
1206
+ **/
1207
+ parasSlashing: {
1208
+ /**
1209
+ * Generic pallet constant
1210
+ **/
1211
+ [name: string]: any;
1212
+ };
1213
+ /**
1214
+ * Pallet `ParaAssignmentProvider`'s constants
1215
+ **/
1216
+ paraAssignmentProvider: {
1217
+ /**
1218
+ * Generic pallet constant
1219
+ **/
1220
+ [name: string]: any;
1221
+ };
1222
+ /**
1223
+ * Pallet `Registrar`'s constants
1224
+ **/
1225
+ registrar: {
1226
+ /**
1227
+ * The deposit to be paid to run a on-demand parachain.
1228
+ * This should include the cost for storing the genesis head and validation code.
1229
+ **/
1230
+ paraDeposit: bigint;
1231
+ /**
1232
+ * The deposit to be paid per byte stored on chain.
1233
+ **/
1234
+ dataDepositPerByte: bigint;
1235
+ /**
1236
+ * Generic pallet constant
1237
+ **/
1238
+ [name: string]: any;
1239
+ };
1240
+ /**
1241
+ * Pallet `Slots`'s constants
1242
+ **/
1243
+ slots: {
1244
+ /**
1245
+ * The number of blocks over which a single period lasts.
1246
+ **/
1247
+ leasePeriod: number;
1248
+ /**
1249
+ * The number of blocks to offset each lease period by.
1250
+ **/
1251
+ leaseOffset: number;
1252
+ /**
1253
+ * Generic pallet constant
1254
+ **/
1255
+ [name: string]: any;
1256
+ };
1257
+ /**
1258
+ * Pallet `Auctions`'s constants
1259
+ **/
1260
+ auctions: {
1261
+ /**
1262
+ * The number of blocks over which an auction may be retroactively ended.
1263
+ **/
1264
+ endingPeriod: number;
1265
+ /**
1266
+ * The length of each sample to take during the ending period.
1267
+ *
1268
+ * `EndingPeriod` / `SampleLength` = Total # of Samples
1269
+ **/
1270
+ sampleLength: number;
1271
+ slotRangeCount: number;
1272
+ leasePeriodsPerSlot: number;
1273
+ /**
1274
+ * Generic pallet constant
1275
+ **/
1276
+ [name: string]: any;
1277
+ };
1278
+ /**
1279
+ * Pallet `Crowdloan`'s constants
1280
+ **/
1281
+ crowdloan: {
1282
+ /**
1283
+ * `PalletId` for the crowdloan pallet. An appropriate value could be
1284
+ * `PalletId(*b"py/cfund")`
1285
+ **/
1286
+ palletId: FrameSupportPalletId;
1287
+ /**
1288
+ * The minimum amount that may be contributed into a crowdloan. Should almost certainly be
1289
+ * at least `ExistentialDeposit`.
1290
+ **/
1291
+ minContribution: bigint;
1292
+ /**
1293
+ * Max number of storage keys to remove per extrinsic call.
1294
+ **/
1295
+ removeKeysLimit: number;
1296
+ /**
1297
+ * Generic pallet constant
1298
+ **/
1299
+ [name: string]: any;
1300
+ };
1301
+ /**
1302
+ * Pallet `StateTrieMigration`'s constants
1303
+ **/
1304
+ stateTrieMigration: {
1305
+ /**
1306
+ * Maximal number of bytes that a key can have.
1307
+ *
1308
+ * FRAME itself does not limit the key length.
1309
+ * The concrete value must therefore depend on your storage usage.
1310
+ * A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
1311
+ * keys which are then hashed and concatenated, resulting in arbitrarily long keys.
1312
+ *
1313
+ * Use the *state migration RPC* to retrieve the length of the longest key in your
1314
+ * storage: <https://github.com/paritytech/substrate/issues/11642>
1315
+ *
1316
+ * The migration will halt with a `Halted` event if this value is too small.
1317
+ * Since there is no real penalty from over-estimating, it is advised to use a large
1318
+ * value. The default is 512 byte.
1319
+ *
1320
+ * Some key lengths for reference:
1321
+ * - [`frame_support::storage::StorageValue`]: 32 byte
1322
+ * - [`frame_support::storage::StorageMap`]: 64 byte
1323
+ * - [`frame_support::storage::StorageDoubleMap`]: 96 byte
1324
+ *
1325
+ * For more info see
1326
+ * <https://www.shawntabrizi.com/substrate/querying-substrate-storage-via-rpc/>
1327
+ **/
1328
+ maxKeyLen: number;
1329
+ /**
1330
+ * Generic pallet constant
1331
+ **/
1332
+ [name: string]: any;
1333
+ };
1334
+ /**
1335
+ * Pallet `XcmPallet`'s constants
1336
+ **/
1337
+ xcmPallet: {
1338
+ /**
1339
+ * Generic pallet constant
1340
+ **/
1341
+ [name: string]: any;
1342
+ };
1343
+ /**
1344
+ * Pallet `MessageQueue`'s constants
1345
+ **/
1346
+ messageQueue: {
1347
+ /**
1348
+ * The size of the page; this implies the maximum message size which can be sent.
1349
+ *
1350
+ * A good value depends on the expected message sizes, their weights, the weight that is
1351
+ * available for processing them and the maximal needed message size. The maximal message
1352
+ * size is slightly lower than this as defined by [`MaxMessageLenOf`].
1353
+ **/
1354
+ heapSize: number;
1355
+ /**
1356
+ * The maximum number of stale pages (i.e. of overweight messages) allowed before culling
1357
+ * can happen. Once there are more stale pages than this, then historical pages may be
1358
+ * dropped, even if they contain unprocessed overweight messages.
1359
+ **/
1360
+ maxStale: number;
1361
+ /**
1362
+ * The amount of weight (if any) which should be provided to the message queue for
1363
+ * servicing enqueued items.
1364
+ *
1365
+ * This may be legitimately `None` in the case that you will call
1366
+ * `ServiceQueues::service_queues` manually.
1367
+ **/
1368
+ serviceWeight: SpWeightsWeightV2Weight | undefined;
1369
+ /**
1370
+ * Generic pallet constant
1371
+ **/
1372
+ [name: string]: any;
1373
+ };
1374
+ /**
1375
+ * Pallet `AssetRate`'s constants
1376
+ **/
1377
+ assetRate: {
1378
+ /**
1379
+ * Generic pallet constant
1380
+ **/
1381
+ [name: string]: any;
1382
+ };
1383
+ /**
1384
+ * Pallet `Beefy`'s constants
1385
+ **/
1386
+ beefy: {
1387
+ /**
1388
+ * The maximum number of authorities that can be added.
1389
+ **/
1390
+ maxAuthorities: number;
1391
+ /**
1392
+ * The maximum number of nominators for each validator.
1393
+ **/
1394
+ maxNominators: number;
1395
+ /**
1396
+ * The maximum number of entries to keep in the set id to session index mapping.
1397
+ *
1398
+ * Since the `SetIdSession` map is only used for validating equivocations this
1399
+ * value should relate to the bonding duration of whatever staking system is
1400
+ * being used (if any). If equivocation handling is not enabled then this value
1401
+ * can be zero.
1402
+ **/
1403
+ maxSetIdSessionEntries: bigint;
1404
+ /**
1405
+ * Generic pallet constant
1406
+ **/
1407
+ [name: string]: any;
1408
+ };
1409
+ /**
1410
+ * Pallet `Mmr`'s constants
1411
+ **/
1412
+ mmr: {
1413
+ /**
1414
+ * Generic pallet constant
1415
+ **/
1416
+ [name: string]: any;
1417
+ };
1418
+ /**
1419
+ * Pallet `BeefyMmrLeaf`'s constants
1420
+ **/
1421
+ beefyMmrLeaf: {
1422
+ /**
1423
+ * Generic pallet constant
1424
+ **/
1425
+ [name: string]: any;
1426
+ };
1427
+ }