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