@pezkuwi/api-augment 16.5.5

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