@dedot/chaintypes 0.0.1-alpha.4 → 0.0.1-alpha.40

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