@polkadot/api-augment 14.0.1 → 14.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/cjs/base.d.ts +2 -0
  2. package/cjs/bundle.d.ts +2 -0
  3. package/cjs/index.d.ts +2 -0
  4. package/cjs/kusama/consts.d.ts +1044 -0
  5. package/cjs/kusama/errors.d.ts +2355 -0
  6. package/cjs/kusama/events.d.ts +2543 -0
  7. package/cjs/kusama/index.d.ts +8 -0
  8. package/cjs/kusama/query.d.ts +2378 -0
  9. package/cjs/kusama/registry.d.ts +3 -0
  10. package/cjs/kusama/runtime.d.ts +683 -0
  11. package/cjs/kusama/tx.d.ts +5778 -0
  12. package/cjs/packageDetect.d.ts +1 -0
  13. package/cjs/packageInfo.d.ts +6 -0
  14. package/cjs/packageInfo.js +1 -1
  15. package/cjs/polkadot/consts.d.ts +864 -0
  16. package/cjs/polkadot/errors.d.ts +1954 -0
  17. package/cjs/polkadot/events.d.ts +2024 -0
  18. package/cjs/polkadot/index.d.ts +8 -0
  19. package/cjs/polkadot/query.d.ts +2133 -0
  20. package/cjs/polkadot/registry.d.ts +2 -0
  21. package/cjs/polkadot/runtime.d.ts +683 -0
  22. package/cjs/polkadot/tx.d.ts +4932 -0
  23. package/cjs/substrate/consts.d.ts +1763 -0
  24. package/cjs/substrate/errors.d.ts +3409 -0
  25. package/cjs/substrate/events.d.ts +4300 -0
  26. package/cjs/substrate/index.d.ts +8 -0
  27. package/cjs/substrate/query.d.ts +2582 -0
  28. package/cjs/substrate/registry.d.ts +1 -0
  29. package/cjs/substrate/runtime.d.ts +577 -0
  30. package/cjs/substrate/tx.d.ts +10200 -0
  31. package/kusama/runtime.d.ts +253 -212
  32. package/package.json +368 -128
  33. package/packageInfo.js +1 -1
  34. package/polkadot/consts.d.ts +50 -66
  35. package/polkadot/errors.d.ts +114 -183
  36. package/polkadot/events.d.ts +83 -144
  37. package/polkadot/query.d.ts +159 -100
  38. package/polkadot/runtime.d.ts +315 -179
  39. package/polkadot/tx.d.ts +2770 -636
  40. package/substrate/runtime.d.ts +217 -175
@@ -0,0 +1,864 @@
1
+ import '@polkadot/api-base/types/consts';
2
+ import type { ApiTypes, AugmentedConst } from '@polkadot/api-base/types';
3
+ import type { Bytes, Option, Vec, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
+ import type { Codec, ITuple } from '@polkadot/types-codec/types';
5
+ import type { Perbill, Permill } from '@polkadot/types/interfaces/runtime';
6
+ import type { FrameSupportPalletId, FrameSystemLimitsBlockLength, FrameSystemLimitsBlockWeights, PalletReferendaTrackInfo, SpVersionRuntimeVersion, SpWeightsRuntimeDbWeight, SpWeightsWeightV2Weight, StagingXcmV4Junctions } from '@polkadot/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
+ auctions: {
11
+ /**
12
+ * The number of blocks over which an auction may be retroactively ended.
13
+ **/
14
+ endingPeriod: u32 & AugmentedConst<ApiType>;
15
+ leasePeriodsPerSlot: u32 & AugmentedConst<ApiType>;
16
+ /**
17
+ * The length of each sample to take during the ending period.
18
+ *
19
+ * `EndingPeriod` / `SampleLength` = Total # of Samples
20
+ **/
21
+ sampleLength: u32 & AugmentedConst<ApiType>;
22
+ slotRangeCount: u32 & AugmentedConst<ApiType>;
23
+ /**
24
+ * Generic const
25
+ **/
26
+ [key: string]: Codec;
27
+ };
28
+ babe: {
29
+ /**
30
+ * The amount of time, in slots, that each epoch should last.
31
+ * NOTE: Currently it is not possible to change the epoch duration after
32
+ * the chain has started. Attempting to do so will brick block production.
33
+ **/
34
+ epochDuration: u64 & AugmentedConst<ApiType>;
35
+ /**
36
+ * The expected average block time at which BABE should be creating
37
+ * blocks. Since BABE is probabilistic it is not trivial to figure out
38
+ * what the expected average block time should be based on the slot
39
+ * duration and the security parameter `c` (where `1 - c` represents
40
+ * the probability of a slot being empty).
41
+ **/
42
+ expectedBlockTime: u64 & AugmentedConst<ApiType>;
43
+ /**
44
+ * Max number of authorities allowed
45
+ **/
46
+ maxAuthorities: u32 & AugmentedConst<ApiType>;
47
+ /**
48
+ * The maximum number of nominators for each validator.
49
+ **/
50
+ maxNominators: u32 & AugmentedConst<ApiType>;
51
+ /**
52
+ * Generic const
53
+ **/
54
+ [key: string]: Codec;
55
+ };
56
+ balances: {
57
+ /**
58
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
59
+ *
60
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
61
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
62
+ * In case you have multiple sources of provider references, you may also get unexpected
63
+ * behaviour if you set this to zero.
64
+ *
65
+ * Bottom line: Do yourself a favour and make it at least one!
66
+ **/
67
+ existentialDeposit: u128 & AugmentedConst<ApiType>;
68
+ /**
69
+ * The maximum number of individual freeze locks that can exist on an account at any time.
70
+ **/
71
+ maxFreezes: u32 & AugmentedConst<ApiType>;
72
+ /**
73
+ * The maximum number of locks that should exist on an account.
74
+ * Not strictly enforced, but used for weight estimation.
75
+ *
76
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
77
+ **/
78
+ maxLocks: u32 & AugmentedConst<ApiType>;
79
+ /**
80
+ * The maximum number of named reserves that can exist on an account.
81
+ *
82
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
83
+ **/
84
+ maxReserves: u32 & AugmentedConst<ApiType>;
85
+ /**
86
+ * Generic const
87
+ **/
88
+ [key: string]: Codec;
89
+ };
90
+ beefy: {
91
+ /**
92
+ * The maximum number of authorities that can be added.
93
+ **/
94
+ maxAuthorities: u32 & AugmentedConst<ApiType>;
95
+ /**
96
+ * The maximum number of nominators for each validator.
97
+ **/
98
+ maxNominators: u32 & AugmentedConst<ApiType>;
99
+ /**
100
+ * The maximum number of entries to keep in the set id to session index mapping.
101
+ *
102
+ * Since the `SetIdSession` map is only used for validating equivocations this
103
+ * value should relate to the bonding duration of whatever staking system is
104
+ * being used (if any). If equivocation handling is not enabled then this value
105
+ * can be zero.
106
+ **/
107
+ maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
108
+ /**
109
+ * Generic const
110
+ **/
111
+ [key: string]: Codec;
112
+ };
113
+ bounties: {
114
+ /**
115
+ * The amount held on deposit for placing a bounty proposal.
116
+ **/
117
+ bountyDepositBase: u128 & AugmentedConst<ApiType>;
118
+ /**
119
+ * The delay period for which a bounty beneficiary need to wait before claim the payout.
120
+ **/
121
+ bountyDepositPayoutDelay: u32 & AugmentedConst<ApiType>;
122
+ /**
123
+ * Bounty duration in blocks.
124
+ **/
125
+ bountyUpdatePeriod: u32 & AugmentedConst<ApiType>;
126
+ /**
127
+ * Minimum value for a bounty.
128
+ **/
129
+ bountyValueMinimum: u128 & AugmentedConst<ApiType>;
130
+ /**
131
+ * Maximum amount of funds that should be placed in a deposit for making a proposal.
132
+ **/
133
+ curatorDepositMax: Option<u128> & AugmentedConst<ApiType>;
134
+ /**
135
+ * Minimum amount of funds that should be placed in a deposit for making a proposal.
136
+ **/
137
+ curatorDepositMin: Option<u128> & AugmentedConst<ApiType>;
138
+ /**
139
+ * The curator deposit is calculated as a percentage of the curator fee.
140
+ *
141
+ * This deposit has optional upper and lower bounds with `CuratorDepositMax` and
142
+ * `CuratorDepositMin`.
143
+ **/
144
+ curatorDepositMultiplier: Permill & AugmentedConst<ApiType>;
145
+ /**
146
+ * The amount held on deposit per byte within the tip report reason or bounty description.
147
+ **/
148
+ dataDepositPerByte: u128 & AugmentedConst<ApiType>;
149
+ /**
150
+ * Maximum acceptable reason length.
151
+ *
152
+ * Benchmarks depend on this value, be sure to update weights file when changing this value
153
+ **/
154
+ maximumReasonLength: u32 & AugmentedConst<ApiType>;
155
+ /**
156
+ * Generic const
157
+ **/
158
+ [key: string]: Codec;
159
+ };
160
+ childBounties: {
161
+ /**
162
+ * Minimum value for a child-bounty.
163
+ **/
164
+ childBountyValueMinimum: u128 & AugmentedConst<ApiType>;
165
+ /**
166
+ * Maximum number of child bounties that can be added to a parent bounty.
167
+ **/
168
+ maxActiveChildBountyCount: u32 & AugmentedConst<ApiType>;
169
+ /**
170
+ * Generic const
171
+ **/
172
+ [key: string]: Codec;
173
+ };
174
+ claims: {
175
+ prefix: Bytes & AugmentedConst<ApiType>;
176
+ /**
177
+ * Generic const
178
+ **/
179
+ [key: string]: Codec;
180
+ };
181
+ convictionVoting: {
182
+ /**
183
+ * The maximum number of concurrent votes an account may have.
184
+ *
185
+ * Also used to compute weight, an overly large value can lead to extrinsics with large
186
+ * weight estimation: see `delegate` for instance.
187
+ **/
188
+ maxVotes: u32 & AugmentedConst<ApiType>;
189
+ /**
190
+ * The minimum period of vote locking.
191
+ *
192
+ * It should be no shorter than enactment period to ensure that in the case of an approval,
193
+ * those successful voters are locked into the consequences that their votes entail.
194
+ **/
195
+ voteLockingPeriod: u32 & AugmentedConst<ApiType>;
196
+ /**
197
+ * Generic const
198
+ **/
199
+ [key: string]: Codec;
200
+ };
201
+ coretime: {
202
+ /**
203
+ * The ParaId of the coretime chain.
204
+ **/
205
+ brokerId: u32 & AugmentedConst<ApiType>;
206
+ /**
207
+ * The coretime chain pot location.
208
+ **/
209
+ brokerPotLocation: StagingXcmV4Junctions & AugmentedConst<ApiType>;
210
+ /**
211
+ * Generic const
212
+ **/
213
+ [key: string]: Codec;
214
+ };
215
+ crowdloan: {
216
+ /**
217
+ * The minimum amount that may be contributed into a crowdloan. Should almost certainly be
218
+ * at least `ExistentialDeposit`.
219
+ **/
220
+ minContribution: u128 & AugmentedConst<ApiType>;
221
+ /**
222
+ * `PalletId` for the crowdloan pallet. An appropriate value could be
223
+ * `PalletId(*b"py/cfund")`
224
+ **/
225
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
226
+ /**
227
+ * Max number of storage keys to remove per extrinsic call.
228
+ **/
229
+ removeKeysLimit: u32 & AugmentedConst<ApiType>;
230
+ /**
231
+ * Generic const
232
+ **/
233
+ [key: string]: Codec;
234
+ };
235
+ electionProviderMultiPhase: {
236
+ /**
237
+ * The minimum amount of improvement to the solution score that defines a solution as
238
+ * "better" in the Signed phase.
239
+ **/
240
+ betterSignedThreshold: Perbill & AugmentedConst<ApiType>;
241
+ /**
242
+ * The maximum number of winners that can be elected by this `ElectionProvider`
243
+ * implementation.
244
+ *
245
+ * Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
246
+ **/
247
+ maxWinners: u32 & AugmentedConst<ApiType>;
248
+ minerMaxLength: u32 & AugmentedConst<ApiType>;
249
+ minerMaxVotesPerVoter: u32 & AugmentedConst<ApiType>;
250
+ minerMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
251
+ minerMaxWinners: u32 & AugmentedConst<ApiType>;
252
+ /**
253
+ * The priority of the unsigned transaction submitted in the unsigned-phase
254
+ **/
255
+ minerTxPriority: u64 & AugmentedConst<ApiType>;
256
+ /**
257
+ * The repeat threshold of the offchain worker.
258
+ *
259
+ * For example, if it is 5, that means that at least 5 blocks will elapse between attempts
260
+ * to submit the worker's solution.
261
+ **/
262
+ offchainRepeat: u32 & AugmentedConst<ApiType>;
263
+ /**
264
+ * Per-byte deposit for a signed solution.
265
+ **/
266
+ signedDepositByte: u128 & AugmentedConst<ApiType>;
267
+ /**
268
+ * Per-weight deposit for a signed solution.
269
+ **/
270
+ signedDepositWeight: u128 & AugmentedConst<ApiType>;
271
+ /**
272
+ * The maximum amount of unchecked solutions to refund the call fee for.
273
+ **/
274
+ signedMaxRefunds: u32 & AugmentedConst<ApiType>;
275
+ /**
276
+ * Maximum number of signed submissions that can be queued.
277
+ *
278
+ * It is best to avoid adjusting this during an election, as it impacts downstream data
279
+ * structures. In particular, `SignedSubmissionIndices<T>` is bounded on this value. If you
280
+ * update this value during an election, you _must_ ensure that
281
+ * `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,
282
+ * attempts to submit new solutions may cause a runtime panic.
283
+ **/
284
+ signedMaxSubmissions: u32 & AugmentedConst<ApiType>;
285
+ /**
286
+ * Maximum weight of a signed solution.
287
+ *
288
+ * If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of
289
+ * this pallet), then [`MinerConfig::solution_weight`] is used to compare against
290
+ * this value.
291
+ **/
292
+ signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
293
+ /**
294
+ * Base reward for a signed solution
295
+ **/
296
+ signedRewardBase: u128 & AugmentedConst<ApiType>;
297
+ /**
298
+ * Generic const
299
+ **/
300
+ [key: string]: Codec;
301
+ };
302
+ fastUnstake: {
303
+ /**
304
+ * Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
305
+ * the costs of resources on unsuccessful unstake.
306
+ **/
307
+ deposit: u128 & AugmentedConst<ApiType>;
308
+ /**
309
+ * Generic const
310
+ **/
311
+ [key: string]: Codec;
312
+ };
313
+ grandpa: {
314
+ /**
315
+ * Max Authorities in use
316
+ **/
317
+ maxAuthorities: u32 & AugmentedConst<ApiType>;
318
+ /**
319
+ * The maximum number of nominators for each validator.
320
+ **/
321
+ maxNominators: u32 & AugmentedConst<ApiType>;
322
+ /**
323
+ * The maximum number of entries to keep in the set id to session index mapping.
324
+ *
325
+ * Since the `SetIdSession` map is only used for validating equivocations this
326
+ * value should relate to the bonding duration of whatever staking system is
327
+ * being used (if any). If equivocation handling is not enabled then this value
328
+ * can be zero.
329
+ **/
330
+ maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
331
+ /**
332
+ * Generic const
333
+ **/
334
+ [key: string]: Codec;
335
+ };
336
+ indices: {
337
+ /**
338
+ * The deposit needed for reserving an index.
339
+ **/
340
+ deposit: u128 & AugmentedConst<ApiType>;
341
+ /**
342
+ * Generic const
343
+ **/
344
+ [key: string]: Codec;
345
+ };
346
+ messageQueue: {
347
+ /**
348
+ * The size of the page; this implies the maximum message size which can be sent.
349
+ *
350
+ * A good value depends on the expected message sizes, their weights, the weight that is
351
+ * available for processing them and the maximal needed message size. The maximal message
352
+ * size is slightly lower than this as defined by [`MaxMessageLenOf`].
353
+ **/
354
+ heapSize: u32 & AugmentedConst<ApiType>;
355
+ /**
356
+ * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
357
+ * should be provided to the message queue for servicing enqueued items `on_idle`.
358
+ * Useful for parachains to process messages at the same block they are received.
359
+ *
360
+ * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
361
+ **/
362
+ idleMaxServiceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
363
+ /**
364
+ * The maximum number of stale pages (i.e. of overweight messages) allowed before culling
365
+ * can happen. Once there are more stale pages than this, then historical pages may be
366
+ * dropped, even if they contain unprocessed overweight messages.
367
+ **/
368
+ maxStale: u32 & AugmentedConst<ApiType>;
369
+ /**
370
+ * The amount of weight (if any) which should be provided to the message queue for
371
+ * servicing enqueued items `on_initialize`.
372
+ *
373
+ * This may be legitimately `None` in the case that you will call
374
+ * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
375
+ * it run in `on_idle`.
376
+ **/
377
+ serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
378
+ /**
379
+ * Generic const
380
+ **/
381
+ [key: string]: Codec;
382
+ };
383
+ multisig: {
384
+ /**
385
+ * The base amount of currency needed to reserve for creating a multisig execution or to
386
+ * store a dispatch call for later.
387
+ *
388
+ * This is held for an additional storage item whose value size is
389
+ * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
390
+ * `32 + sizeof(AccountId)` bytes.
391
+ **/
392
+ depositBase: u128 & AugmentedConst<ApiType>;
393
+ /**
394
+ * The amount of currency needed per unit threshold when creating a multisig execution.
395
+ *
396
+ * This is held for adding 32 bytes more into a pre-existing storage value.
397
+ **/
398
+ depositFactor: u128 & AugmentedConst<ApiType>;
399
+ /**
400
+ * The maximum amount of signatories allowed in the multisig.
401
+ **/
402
+ maxSignatories: u32 & AugmentedConst<ApiType>;
403
+ /**
404
+ * Generic const
405
+ **/
406
+ [key: string]: Codec;
407
+ };
408
+ nominationPools: {
409
+ /**
410
+ * The maximum pool points-to-balance ratio that an `open` pool can have.
411
+ *
412
+ * This is important in the event slashing takes place and the pool's points-to-balance
413
+ * ratio becomes disproportional.
414
+ *
415
+ * Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
416
+ * are a function of number of points, and by setting this value to e.g. 10, you ensure
417
+ * that the total number of points in the system are at most 10 times the total_issuance of
418
+ * the chain, in the absolute worse case.
419
+ *
420
+ * For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
421
+ * Such a scenario would also be the equivalent of the pool being 90% slashed.
422
+ **/
423
+ maxPointsToBalance: u8 & AugmentedConst<ApiType>;
424
+ /**
425
+ * The maximum number of simultaneous unbonding chunks that can exist per member.
426
+ **/
427
+ maxUnbonding: u32 & AugmentedConst<ApiType>;
428
+ /**
429
+ * The nomination pool's pallet id.
430
+ **/
431
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
432
+ /**
433
+ * Generic const
434
+ **/
435
+ [key: string]: Codec;
436
+ };
437
+ onDemand: {
438
+ /**
439
+ * The maximum number of blocks some historical revenue
440
+ * information stored for.
441
+ **/
442
+ maxHistoricalRevenue: u32 & AugmentedConst<ApiType>;
443
+ /**
444
+ * Identifier for the internal revenue balance.
445
+ **/
446
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
447
+ /**
448
+ * The default value for the spot traffic multiplier.
449
+ **/
450
+ trafficDefaultValue: u128 & AugmentedConst<ApiType>;
451
+ /**
452
+ * Generic const
453
+ **/
454
+ [key: string]: Codec;
455
+ };
456
+ paras: {
457
+ unsignedPriority: u64 & AugmentedConst<ApiType>;
458
+ /**
459
+ * Generic const
460
+ **/
461
+ [key: string]: Codec;
462
+ };
463
+ proxy: {
464
+ /**
465
+ * The base amount of currency needed to reserve for creating an announcement.
466
+ *
467
+ * This is held when a new storage item holding a `Balance` is created (typically 16
468
+ * bytes).
469
+ **/
470
+ announcementDepositBase: u128 & AugmentedConst<ApiType>;
471
+ /**
472
+ * The amount of currency needed per announcement made.
473
+ *
474
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
475
+ * into a pre-existing storage value.
476
+ **/
477
+ announcementDepositFactor: u128 & AugmentedConst<ApiType>;
478
+ /**
479
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
480
+ **/
481
+ maxPending: u32 & AugmentedConst<ApiType>;
482
+ /**
483
+ * The maximum amount of proxies allowed for a single account.
484
+ **/
485
+ maxProxies: u32 & AugmentedConst<ApiType>;
486
+ /**
487
+ * The base amount of currency needed to reserve for creating a proxy.
488
+ *
489
+ * This is held for an additional storage item whose value size is
490
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
491
+ **/
492
+ proxyDepositBase: u128 & AugmentedConst<ApiType>;
493
+ /**
494
+ * The amount of currency needed per proxy added.
495
+ *
496
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
497
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
498
+ * into account `32 + proxy_type.encode().len()` bytes of data.
499
+ **/
500
+ proxyDepositFactor: u128 & AugmentedConst<ApiType>;
501
+ /**
502
+ * Generic const
503
+ **/
504
+ [key: string]: Codec;
505
+ };
506
+ referenda: {
507
+ /**
508
+ * Quantization level for the referendum wakeup scheduler. A higher number will result in
509
+ * fewer storage reads/writes needed for smaller voters, but also result in delays to the
510
+ * automatic referendum status changes. Explicit servicing instructions are unaffected.
511
+ **/
512
+ alarmInterval: u32 & AugmentedConst<ApiType>;
513
+ /**
514
+ * Maximum size of the referendum queue for a single track.
515
+ **/
516
+ maxQueued: u32 & AugmentedConst<ApiType>;
517
+ /**
518
+ * The minimum amount to be used as a deposit for a public referendum proposal.
519
+ **/
520
+ submissionDeposit: u128 & AugmentedConst<ApiType>;
521
+ /**
522
+ * Information concerning the different referendum tracks.
523
+ **/
524
+ tracks: Vec<ITuple<[u16, PalletReferendaTrackInfo]>> & AugmentedConst<ApiType>;
525
+ /**
526
+ * The number of blocks after submission that a referendum must begin being decided by.
527
+ * Once this passes, then anyone may cancel the referendum.
528
+ **/
529
+ undecidingTimeout: u32 & AugmentedConst<ApiType>;
530
+ /**
531
+ * Generic const
532
+ **/
533
+ [key: string]: Codec;
534
+ };
535
+ registrar: {
536
+ /**
537
+ * The deposit to be paid per byte stored on chain.
538
+ **/
539
+ dataDepositPerByte: u128 & AugmentedConst<ApiType>;
540
+ /**
541
+ * The deposit to be paid to run a on-demand parachain.
542
+ * This should include the cost for storing the genesis head and validation code.
543
+ **/
544
+ paraDeposit: u128 & AugmentedConst<ApiType>;
545
+ /**
546
+ * Generic const
547
+ **/
548
+ [key: string]: Codec;
549
+ };
550
+ scheduler: {
551
+ /**
552
+ * The maximum weight that may be scheduled per block for any dispatchables.
553
+ **/
554
+ maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
555
+ /**
556
+ * The maximum number of scheduled calls in the queue for a single block.
557
+ *
558
+ * NOTE:
559
+ * + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
560
+ * higher limit under `runtime-benchmarks` feature.
561
+ **/
562
+ maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
563
+ /**
564
+ * Generic const
565
+ **/
566
+ [key: string]: Codec;
567
+ };
568
+ slots: {
569
+ /**
570
+ * The number of blocks to offset each lease period by.
571
+ **/
572
+ leaseOffset: u32 & AugmentedConst<ApiType>;
573
+ /**
574
+ * The number of blocks over which a single period lasts.
575
+ **/
576
+ leasePeriod: u32 & AugmentedConst<ApiType>;
577
+ /**
578
+ * Generic const
579
+ **/
580
+ [key: string]: Codec;
581
+ };
582
+ staking: {
583
+ /**
584
+ * Number of eras that staked funds must remain bonded for.
585
+ **/
586
+ bondingDuration: u32 & AugmentedConst<ApiType>;
587
+ /**
588
+ * Number of eras to keep in history.
589
+ *
590
+ * Following information is kept for eras in `[current_era -
591
+ * HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
592
+ * `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
593
+ * `ErasTotalStake`, `ErasStartSessionIndex`, `ClaimedRewards`, `ErasStakersPaged`,
594
+ * `ErasStakersOverview`.
595
+ *
596
+ * Must be more than the number of eras delayed by session.
597
+ * I.e. active era must always be in history. I.e. `active_era >
598
+ * current_era - history_depth` must be guaranteed.
599
+ *
600
+ * If migrating an existing pallet from storage value to config value,
601
+ * this should be set to same value or greater as in storage.
602
+ *
603
+ * Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
604
+ * item `StakingLedger.legacy_claimed_rewards`. Setting this value lower than
605
+ * the existing value can lead to inconsistencies in the
606
+ * `StakingLedger` and will need to be handled properly in a migration.
607
+ * The test `reducing_history_depth_abrupt` shows this effect.
608
+ **/
609
+ historyDepth: u32 & AugmentedConst<ApiType>;
610
+ /**
611
+ * The maximum size of each `T::ExposurePage`.
612
+ *
613
+ * An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
614
+ * nominators.
615
+ *
616
+ * For older non-paged exposure, a reward payout was restricted to the top
617
+ * `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
618
+ * nominator payout.
619
+ *
620
+ * Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to reduce
621
+ * without handling it in a migration.
622
+ **/
623
+ maxExposurePageSize: u32 & AugmentedConst<ApiType>;
624
+ /**
625
+ * The maximum number of `unlocking` chunks a [`StakingLedger`] can
626
+ * have. Effectively determines how many unique eras a staker may be
627
+ * unbonding in.
628
+ *
629
+ * Note: `MaxUnlockingChunks` is used as the upper bound for the
630
+ * `BoundedVec` item `StakingLedger.unlocking`. Setting this value
631
+ * lower than the existing value can lead to inconsistencies in the
632
+ * `StakingLedger` and will need to be handled properly in a runtime
633
+ * migration. The test `reducing_max_unlocking_chunks_abrupt` shows
634
+ * this effect.
635
+ **/
636
+ maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
637
+ /**
638
+ * Number of sessions per era.
639
+ **/
640
+ sessionsPerEra: u32 & AugmentedConst<ApiType>;
641
+ /**
642
+ * Number of eras that slashes are deferred by, after computation.
643
+ *
644
+ * This should be less than the bonding duration. Set to 0 if slashes
645
+ * should be applied immediately, without opportunity for intervention.
646
+ **/
647
+ slashDeferDuration: u32 & AugmentedConst<ApiType>;
648
+ /**
649
+ * Generic const
650
+ **/
651
+ [key: string]: Codec;
652
+ };
653
+ stateTrieMigration: {
654
+ /**
655
+ * Maximal number of bytes that a key can have.
656
+ *
657
+ * FRAME itself does not limit the key length.
658
+ * The concrete value must therefore depend on your storage usage.
659
+ * A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
660
+ * keys which are then hashed and concatenated, resulting in arbitrarily long keys.
661
+ *
662
+ * Use the *state migration RPC* to retrieve the length of the longest key in your
663
+ * storage: <https://github.com/paritytech/substrate/issues/11642>
664
+ *
665
+ * The migration will halt with a `Halted` event if this value is too small.
666
+ * Since there is no real penalty from over-estimating, it is advised to use a large
667
+ * value. The default is 512 byte.
668
+ *
669
+ * Some key lengths for reference:
670
+ * - [`frame_support::storage::StorageValue`]: 32 byte
671
+ * - [`frame_support::storage::StorageMap`]: 64 byte
672
+ * - [`frame_support::storage::StorageDoubleMap`]: 96 byte
673
+ *
674
+ * For more info see
675
+ * <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
676
+ **/
677
+ maxKeyLen: u32 & AugmentedConst<ApiType>;
678
+ /**
679
+ * Generic const
680
+ **/
681
+ [key: string]: Codec;
682
+ };
683
+ system: {
684
+ /**
685
+ * Maximum number of block number to block hash mappings to keep (oldest pruned first).
686
+ **/
687
+ blockHashCount: u32 & AugmentedConst<ApiType>;
688
+ /**
689
+ * The maximum length of a block (in bytes).
690
+ **/
691
+ blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
692
+ /**
693
+ * Block & extrinsics weights: base values and limits.
694
+ **/
695
+ blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
696
+ /**
697
+ * The weight of runtime database operations the runtime can invoke.
698
+ **/
699
+ dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
700
+ /**
701
+ * The designated SS58 prefix of this chain.
702
+ *
703
+ * This replaces the "ss58Format" property declared in the chain spec. Reason is
704
+ * that the runtime should know about the prefix in order to make use of it as
705
+ * an identifier of the chain.
706
+ **/
707
+ ss58Prefix: u16 & AugmentedConst<ApiType>;
708
+ /**
709
+ * Get the chain's in-code version.
710
+ **/
711
+ version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
712
+ /**
713
+ * Generic const
714
+ **/
715
+ [key: string]: Codec;
716
+ };
717
+ timestamp: {
718
+ /**
719
+ * The minimum period between blocks.
720
+ *
721
+ * Be aware that this is different to the *expected* period that the block production
722
+ * apparatus provides. Your chosen consensus system will generally work with this to
723
+ * determine a sensible block time. For example, in the Aura pallet it will be double this
724
+ * period on default settings.
725
+ **/
726
+ minimumPeriod: u64 & AugmentedConst<ApiType>;
727
+ /**
728
+ * Generic const
729
+ **/
730
+ [key: string]: Codec;
731
+ };
732
+ transactionPayment: {
733
+ /**
734
+ * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
735
+ * `priority`
736
+ *
737
+ * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
738
+ * added to a tip component in regular `priority` calculations.
739
+ * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
740
+ * extrinsic (with no tip), by including a tip value greater than the virtual tip.
741
+ *
742
+ * ```rust,ignore
743
+ * // For `Normal`
744
+ * let priority = priority_calc(tip);
745
+ *
746
+ * // For `Operational`
747
+ * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
748
+ * let priority = priority_calc(tip + virtual_tip);
749
+ * ```
750
+ *
751
+ * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
752
+ * sent with the transaction. So, not only does the transaction get a priority bump based
753
+ * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
754
+ * transactions.
755
+ **/
756
+ operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
757
+ /**
758
+ * Generic const
759
+ **/
760
+ [key: string]: Codec;
761
+ };
762
+ treasury: {
763
+ /**
764
+ * Percentage of spare funds (if any) that are burnt per spend period.
765
+ **/
766
+ burn: Permill & AugmentedConst<ApiType>;
767
+ /**
768
+ * The maximum number of approvals that can wait in the spending queue.
769
+ *
770
+ * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
771
+ **/
772
+ maxApprovals: u32 & AugmentedConst<ApiType>;
773
+ /**
774
+ * The treasury's pallet id, used for deriving its sovereign account ID.
775
+ **/
776
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
777
+ /**
778
+ * The period during which an approved treasury spend has to be claimed.
779
+ **/
780
+ payoutPeriod: u32 & AugmentedConst<ApiType>;
781
+ /**
782
+ * Period between successive spends.
783
+ **/
784
+ spendPeriod: u32 & AugmentedConst<ApiType>;
785
+ /**
786
+ * Generic const
787
+ **/
788
+ [key: string]: Codec;
789
+ };
790
+ utility: {
791
+ /**
792
+ * The limit on the number of batched calls.
793
+ **/
794
+ batchedCallsLimit: u32 & AugmentedConst<ApiType>;
795
+ /**
796
+ * Generic const
797
+ **/
798
+ [key: string]: Codec;
799
+ };
800
+ vesting: {
801
+ maxVestingSchedules: u32 & AugmentedConst<ApiType>;
802
+ /**
803
+ * The minimum amount transferred to call `vested_transfer`.
804
+ **/
805
+ minVestedTransfer: u128 & AugmentedConst<ApiType>;
806
+ /**
807
+ * Generic const
808
+ **/
809
+ [key: string]: Codec;
810
+ };
811
+ voterList: {
812
+ /**
813
+ * The list of thresholds separating the various bags.
814
+ *
815
+ * Ids are separated into unsorted bags according to their score. This specifies the
816
+ * thresholds separating the bags. An id's bag is the largest bag for which the id's score
817
+ * is less than or equal to its upper threshold.
818
+ *
819
+ * When ids are iterated, higher bags are iterated completely before lower bags. This means
820
+ * that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
821
+ * score, but peer ids within a particular bag are sorted in insertion order.
822
+ *
823
+ * # Expressing the constant
824
+ *
825
+ * This constant must be sorted in strictly increasing order. Duplicate items are not
826
+ * permitted.
827
+ *
828
+ * There is an implied upper limit of `Score::MAX`; that value does not need to be
829
+ * specified within the bag. For any two threshold lists, if one ends with
830
+ * `Score::MAX`, the other one does not, and they are otherwise equal, the two
831
+ * lists will behave identically.
832
+ *
833
+ * # Calculation
834
+ *
835
+ * It is recommended to generate the set of thresholds in a geometric series, such that
836
+ * there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
837
+ * constant_ratio).max(threshold[k] + 1)` for all `k`.
838
+ *
839
+ * The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
840
+ *
841
+ * # Examples
842
+ *
843
+ * - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
844
+ * iteration is strictly in insertion order.
845
+ * - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
846
+ * the procedure given above, then the constant ratio is equal to 2.
847
+ * - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
848
+ * the procedure given above, then the constant ratio is approximately equal to 1.248.
849
+ * - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
850
+ * into bag 0, an id with score 2 will fall into bag 1, etc.
851
+ *
852
+ * # Migration
853
+ *
854
+ * In the event that this list ever changes, a copy of the old bags list must be retained.
855
+ * With that `List::migrate` can be called, which will perform the appropriate migration.
856
+ **/
857
+ bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
858
+ /**
859
+ * Generic const
860
+ **/
861
+ [key: string]: Codec;
862
+ };
863
+ }
864
+ }