@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,1125 @@
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, StagingXcmV5Location } 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
+ assetConversion: {
19
+ /**
20
+ * A fee to withdraw the liquidity.
21
+ **/
22
+ liquidityWithdrawalFee: Permill & AugmentedConst<ApiType>;
23
+ /**
24
+ * A % the liquidity providers will take of every swap. Represents 10ths of a percent.
25
+ **/
26
+ lpFee: u32 & AugmentedConst<ApiType>;
27
+ /**
28
+ * The max number of hops in a swap.
29
+ **/
30
+ maxSwapPathLength: u32 & AugmentedConst<ApiType>;
31
+ /**
32
+ * The minimum LP token amount that could be minted. Ameliorates rounding errors.
33
+ **/
34
+ mintMinLiquidity: u128 & AugmentedConst<ApiType>;
35
+ /**
36
+ * The pallet's id, used for deriving its sovereign account ID.
37
+ **/
38
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
39
+ /**
40
+ * A one-time fee to setup the pool.
41
+ **/
42
+ poolSetupFee: u128 & AugmentedConst<ApiType>;
43
+ /**
44
+ * Asset class from [`Config::Assets`] used to pay the [`Config::PoolSetupFee`].
45
+ **/
46
+ poolSetupFeeAsset: StagingXcmV5Location & AugmentedConst<ApiType>;
47
+ /**
48
+ * Generic const
49
+ **/
50
+ [key: string]: Codec;
51
+ };
52
+ assets: {
53
+ /**
54
+ * The amount of funds that must be reserved when creating a new approval.
55
+ **/
56
+ approvalDeposit: u128 & AugmentedConst<ApiType>;
57
+ /**
58
+ * The amount of funds that must be reserved for a non-provider asset account to be
59
+ * maintained.
60
+ **/
61
+ assetAccountDeposit: u128 & AugmentedConst<ApiType>;
62
+ /**
63
+ * The basic amount of funds that must be reserved for an asset.
64
+ **/
65
+ assetDeposit: u128 & AugmentedConst<ApiType>;
66
+ /**
67
+ * The basic amount of funds that must be reserved when adding metadata to your asset.
68
+ **/
69
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
70
+ /**
71
+ * The additional funds that must be reserved for the number of bytes you store in your
72
+ * metadata.
73
+ **/
74
+ metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
75
+ /**
76
+ * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
77
+ *
78
+ * Must be configured to result in a weight that makes each call fit in a block.
79
+ **/
80
+ removeItemsLimit: u32 & AugmentedConst<ApiType>;
81
+ /**
82
+ * The maximum length of a name or symbol stored on-chain.
83
+ **/
84
+ stringLimit: u32 & AugmentedConst<ApiType>;
85
+ /**
86
+ * Generic const
87
+ **/
88
+ [key: string]: Codec;
89
+ };
90
+ aura: {
91
+ /**
92
+ * The slot duration Aura should run with, expressed in milliseconds.
93
+ * The effective value of this type should not change while the chain is running.
94
+ *
95
+ * For backwards compatibility either use [`MinimumPeriodTimesTwo`] or a const.
96
+ **/
97
+ slotDuration: u64 & AugmentedConst<ApiType>;
98
+ /**
99
+ * Generic const
100
+ **/
101
+ [key: string]: Codec;
102
+ };
103
+ balances: {
104
+ /**
105
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
106
+ *
107
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
108
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
109
+ * In case you have multiple sources of provider references, you may also get unexpected
110
+ * behaviour if you set this to zero.
111
+ *
112
+ * Bottom line: Do yourself a favour and make it at least one!
113
+ **/
114
+ existentialDeposit: u128 & AugmentedConst<ApiType>;
115
+ /**
116
+ * The maximum number of individual freeze locks that can exist on an account at any time.
117
+ **/
118
+ maxFreezes: u32 & AugmentedConst<ApiType>;
119
+ /**
120
+ * The maximum number of locks that should exist on an account.
121
+ * Not strictly enforced, but used for weight estimation.
122
+ *
123
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
124
+ **/
125
+ maxLocks: u32 & AugmentedConst<ApiType>;
126
+ /**
127
+ * The maximum number of named reserves that can exist on an account.
128
+ *
129
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
130
+ **/
131
+ maxReserves: u32 & AugmentedConst<ApiType>;
132
+ /**
133
+ * Generic const
134
+ **/
135
+ [key: string]: Codec;
136
+ };
137
+ bounties: {
138
+ /**
139
+ * The amount held on deposit for placing a bounty proposal.
140
+ **/
141
+ bountyDepositBase: u128 & AugmentedConst<ApiType>;
142
+ /**
143
+ * The delay period for which a bounty beneficiary need to wait before claim the payout.
144
+ **/
145
+ bountyDepositPayoutDelay: u32 & AugmentedConst<ApiType>;
146
+ /**
147
+ * The time limit for a curator to act before a bounty expires.
148
+ *
149
+ * The period that starts when a curator is approved, during which they must execute or
150
+ * update the bounty via `extend_bounty_expiry`. If missed, the bounty expires, and the
151
+ * curator may be slashed. If `BlockNumberFor::MAX`, bounties stay active indefinitely,
152
+ * removing the need for `extend_bounty_expiry`.
153
+ **/
154
+ bountyUpdatePeriod: u32 & AugmentedConst<ApiType>;
155
+ /**
156
+ * Minimum value for a bounty.
157
+ **/
158
+ bountyValueMinimum: u128 & AugmentedConst<ApiType>;
159
+ /**
160
+ * Maximum amount of funds that should be placed in a deposit for making a proposal.
161
+ **/
162
+ curatorDepositMax: Option<u128> & AugmentedConst<ApiType>;
163
+ /**
164
+ * Minimum amount of funds that should be placed in a deposit for making a proposal.
165
+ **/
166
+ curatorDepositMin: Option<u128> & AugmentedConst<ApiType>;
167
+ /**
168
+ * The curator deposit is calculated as a percentage of the curator fee.
169
+ *
170
+ * This deposit has optional upper and lower bounds with `CuratorDepositMax` and
171
+ * `CuratorDepositMin`.
172
+ **/
173
+ curatorDepositMultiplier: Permill & AugmentedConst<ApiType>;
174
+ /**
175
+ * The amount held on deposit per byte within the tip report reason or bounty description.
176
+ **/
177
+ dataDepositPerByte: u128 & AugmentedConst<ApiType>;
178
+ /**
179
+ * Maximum acceptable reason length.
180
+ *
181
+ * Benchmarks depend on this value, be sure to update weights file when changing this value
182
+ **/
183
+ maximumReasonLength: u32 & AugmentedConst<ApiType>;
184
+ /**
185
+ * Generic const
186
+ **/
187
+ [key: string]: Codec;
188
+ };
189
+ childBounties: {
190
+ /**
191
+ * Minimum value for a child-bounty.
192
+ **/
193
+ childBountyValueMinimum: u128 & AugmentedConst<ApiType>;
194
+ /**
195
+ * Maximum number of child bounties that can be added to a parent bounty.
196
+ **/
197
+ maxActiveChildBountyCount: u32 & AugmentedConst<ApiType>;
198
+ /**
199
+ * Generic const
200
+ **/
201
+ [key: string]: Codec;
202
+ };
203
+ claims: {
204
+ prefix: Bytes & AugmentedConst<ApiType>;
205
+ /**
206
+ * Generic const
207
+ **/
208
+ [key: string]: Codec;
209
+ };
210
+ collatorSelection: {
211
+ kickThreshold: u32 & AugmentedConst<ApiType>;
212
+ /**
213
+ * Maximum number of candidates that we should have.
214
+ *
215
+ * This does not take into account the invulnerables.
216
+ **/
217
+ maxCandidates: u32 & AugmentedConst<ApiType>;
218
+ /**
219
+ * Maximum number of invulnerables.
220
+ **/
221
+ maxInvulnerables: u32 & AugmentedConst<ApiType>;
222
+ /**
223
+ * Minimum number eligible collators. Should always be greater than zero. This includes
224
+ * Invulnerable collators. This ensures that there will always be one collator who can
225
+ * produce a block.
226
+ **/
227
+ minEligibleCollators: u32 & AugmentedConst<ApiType>;
228
+ /**
229
+ * Gets this pallet's derived pot account.
230
+ **/
231
+ potAccount: AccountId32 & AugmentedConst<ApiType>;
232
+ /**
233
+ * Account Identifier from which the internal Pot is generated.
234
+ **/
235
+ potId: FrameSupportPalletId & AugmentedConst<ApiType>;
236
+ /**
237
+ * Generic const
238
+ **/
239
+ [key: string]: Codec;
240
+ };
241
+ convictionVoting: {
242
+ /**
243
+ * The maximum number of concurrent votes an account may have.
244
+ *
245
+ * Also used to compute weight, an overly large value can lead to extrinsics with large
246
+ * weight estimation: see `delegate` for instance.
247
+ **/
248
+ maxVotes: u32 & AugmentedConst<ApiType>;
249
+ /**
250
+ * The minimum period of vote locking.
251
+ *
252
+ * It should be no shorter than enactment period to ensure that in the case of an approval,
253
+ * those successful voters are locked into the consequences that their votes entail.
254
+ **/
255
+ voteLockingPeriod: u32 & AugmentedConst<ApiType>;
256
+ /**
257
+ * Generic const
258
+ **/
259
+ [key: string]: Codec;
260
+ };
261
+ delegatedStaking: {
262
+ /**
263
+ * Injected identifier for the pallet.
264
+ **/
265
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
266
+ /**
267
+ * Fraction of the slash that is rewarded to the caller of pending slash to the agent.
268
+ **/
269
+ slashRewardFraction: Perbill & AugmentedConst<ApiType>;
270
+ /**
271
+ * Generic const
272
+ **/
273
+ [key: string]: Codec;
274
+ };
275
+ foreignAssets: {
276
+ /**
277
+ * The amount of funds that must be reserved when creating a new approval.
278
+ **/
279
+ approvalDeposit: u128 & AugmentedConst<ApiType>;
280
+ /**
281
+ * The amount of funds that must be reserved for a non-provider asset account to be
282
+ * maintained.
283
+ **/
284
+ assetAccountDeposit: u128 & AugmentedConst<ApiType>;
285
+ /**
286
+ * The basic amount of funds that must be reserved for an asset.
287
+ **/
288
+ assetDeposit: u128 & AugmentedConst<ApiType>;
289
+ /**
290
+ * The basic amount of funds that must be reserved when adding metadata to your asset.
291
+ **/
292
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
293
+ /**
294
+ * The additional funds that must be reserved for the number of bytes you store in your
295
+ * metadata.
296
+ **/
297
+ metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
298
+ /**
299
+ * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
300
+ *
301
+ * Must be configured to result in a weight that makes each call fit in a block.
302
+ **/
303
+ removeItemsLimit: u32 & AugmentedConst<ApiType>;
304
+ /**
305
+ * The maximum length of a name or symbol stored on-chain.
306
+ **/
307
+ stringLimit: u32 & AugmentedConst<ApiType>;
308
+ /**
309
+ * Generic const
310
+ **/
311
+ [key: string]: Codec;
312
+ };
313
+ indices: {
314
+ /**
315
+ * The deposit needed for reserving an index.
316
+ **/
317
+ deposit: u128 & AugmentedConst<ApiType>;
318
+ /**
319
+ * Generic const
320
+ **/
321
+ [key: string]: Codec;
322
+ };
323
+ messageQueue: {
324
+ /**
325
+ * The size of the page; this implies the maximum message size which can be sent.
326
+ *
327
+ * A good value depends on the expected message sizes, their weights, the weight that is
328
+ * available for processing them and the maximal needed message size. The maximal message
329
+ * size is slightly lower than this as defined by [`MaxMessageLenOf`].
330
+ **/
331
+ heapSize: u32 & AugmentedConst<ApiType>;
332
+ /**
333
+ * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
334
+ * should be provided to the message queue for servicing enqueued items `on_idle`.
335
+ * Useful for parachains to process messages at the same block they are received.
336
+ *
337
+ * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
338
+ **/
339
+ idleMaxServiceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
340
+ /**
341
+ * The maximum number of stale pages (i.e. of overweight messages) allowed before culling
342
+ * can happen. Once there are more stale pages than this, then historical pages may be
343
+ * dropped, even if they contain unprocessed overweight messages.
344
+ **/
345
+ maxStale: u32 & AugmentedConst<ApiType>;
346
+ /**
347
+ * The amount of weight (if any) which should be provided to the message queue for
348
+ * servicing enqueued items `on_initialize`.
349
+ *
350
+ * This may be legitimately `None` in the case that you will call
351
+ * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
352
+ * it run in `on_idle`.
353
+ **/
354
+ serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
355
+ /**
356
+ * Generic const
357
+ **/
358
+ [key: string]: Codec;
359
+ };
360
+ multiBlockElection: {
361
+ /**
362
+ * The number of pages.
363
+ *
364
+ * The snapshot is created with this many keys in the storage map.
365
+ *
366
+ * The solutions may contain at MOST this many pages, but less pages are acceptable as
367
+ * well.
368
+ **/
369
+ pages: u32 & AugmentedConst<ApiType>;
370
+ /**
371
+ * Duration of the signed phase.
372
+ **/
373
+ signedPhase: u32 & AugmentedConst<ApiType>;
374
+ /**
375
+ * Duration of the singed validation phase.
376
+ *
377
+ * The duration of this should not be less than `T::Pages`, and there is no point in it
378
+ * being more than `SignedPhase::MaxSubmission::get() * T::Pages`. TODO: integrity test for
379
+ * it.
380
+ **/
381
+ signedValidationPhase: u32 & AugmentedConst<ApiType>;
382
+ /**
383
+ * The number of snapshot targets to fetch per block.
384
+ **/
385
+ targetSnapshotPerBlock: u32 & AugmentedConst<ApiType>;
386
+ /**
387
+ * Duration of the unsigned phase.
388
+ **/
389
+ unsignedPhase: u32 & AugmentedConst<ApiType>;
390
+ /**
391
+ * The number of snapshot voters to fetch per block.
392
+ **/
393
+ voterSnapshotPerBlock: u32 & AugmentedConst<ApiType>;
394
+ /**
395
+ * Generic const
396
+ **/
397
+ [key: string]: Codec;
398
+ };
399
+ multiBlockElectionVerifier: {
400
+ /**
401
+ * Maximum number of backers, per winner, per page.
402
+ **/
403
+ maxBackersPerWinner: u32 & AugmentedConst<ApiType>;
404
+ /**
405
+ * Maximum number of backers, per winner, among all pages of an election.
406
+ *
407
+ * This can only be checked at the very final step of verification.
408
+ *
409
+ * NOTE: at the moment, we don't check this, and it is in place for future compatibility.
410
+ **/
411
+ maxBackersPerWinnerFinal: u32 & AugmentedConst<ApiType>;
412
+ /**
413
+ * Maximum number of supports (aka. winners/validators/targets) that can be represented in
414
+ * a page of results.
415
+ **/
416
+ maxWinnersPerPage: u32 & AugmentedConst<ApiType>;
417
+ /**
418
+ * The minimum amount of improvement to the solution score that defines a solution as
419
+ * "better".
420
+ **/
421
+ solutionImprovementThreshold: Perbill & AugmentedConst<ApiType>;
422
+ /**
423
+ * Generic const
424
+ **/
425
+ [key: string]: Codec;
426
+ };
427
+ multisig: {
428
+ /**
429
+ * The base amount of currency needed to reserve for creating a multisig execution or to
430
+ * store a dispatch call for later.
431
+ *
432
+ * This is held for an additional storage item whose value size is
433
+ * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
434
+ * `32 + sizeof(AccountId)` bytes.
435
+ **/
436
+ depositBase: u128 & AugmentedConst<ApiType>;
437
+ /**
438
+ * The amount of currency needed per unit threshold when creating a multisig execution.
439
+ *
440
+ * This is held for adding 32 bytes more into a pre-existing storage value.
441
+ **/
442
+ depositFactor: u128 & AugmentedConst<ApiType>;
443
+ /**
444
+ * The maximum amount of signatories allowed in the multisig.
445
+ **/
446
+ maxSignatories: u32 & AugmentedConst<ApiType>;
447
+ /**
448
+ * Generic const
449
+ **/
450
+ [key: string]: Codec;
451
+ };
452
+ nfts: {
453
+ /**
454
+ * The maximum approvals an item could have.
455
+ **/
456
+ approvalsLimit: u32 & AugmentedConst<ApiType>;
457
+ /**
458
+ * The basic amount of funds that must be reserved when adding an attribute to an item.
459
+ **/
460
+ attributeDepositBase: u128 & AugmentedConst<ApiType>;
461
+ /**
462
+ * The basic amount of funds that must be reserved for collection.
463
+ **/
464
+ collectionDeposit: u128 & AugmentedConst<ApiType>;
465
+ /**
466
+ * The additional funds that must be reserved for the number of bytes store in metadata,
467
+ * either "normal" metadata or attribute metadata.
468
+ **/
469
+ depositPerByte: u128 & AugmentedConst<ApiType>;
470
+ /**
471
+ * Disables some of pallet's features.
472
+ **/
473
+ features: u64 & AugmentedConst<ApiType>;
474
+ /**
475
+ * The maximum attributes approvals an item could have.
476
+ **/
477
+ itemAttributesApprovalsLimit: u32 & AugmentedConst<ApiType>;
478
+ /**
479
+ * The basic amount of funds that must be reserved for an item.
480
+ **/
481
+ itemDeposit: u128 & AugmentedConst<ApiType>;
482
+ /**
483
+ * The maximum length of an attribute key.
484
+ **/
485
+ keyLimit: u32 & AugmentedConst<ApiType>;
486
+ /**
487
+ * The max number of attributes a user could set per call.
488
+ **/
489
+ maxAttributesPerCall: u32 & AugmentedConst<ApiType>;
490
+ /**
491
+ * The max duration in blocks for deadlines.
492
+ **/
493
+ maxDeadlineDuration: u32 & AugmentedConst<ApiType>;
494
+ /**
495
+ * The max number of tips a user could send.
496
+ **/
497
+ maxTips: u32 & AugmentedConst<ApiType>;
498
+ /**
499
+ * The basic amount of funds that must be reserved when adding metadata to your item.
500
+ **/
501
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
502
+ /**
503
+ * The maximum length of data stored on-chain.
504
+ **/
505
+ stringLimit: u32 & AugmentedConst<ApiType>;
506
+ /**
507
+ * The maximum length of an attribute value.
508
+ **/
509
+ valueLimit: u32 & AugmentedConst<ApiType>;
510
+ /**
511
+ * Generic const
512
+ **/
513
+ [key: string]: Codec;
514
+ };
515
+ nominationPools: {
516
+ /**
517
+ * The maximum pool points-to-balance ratio that an `open` pool can have.
518
+ *
519
+ * This is important in the event slashing takes place and the pool's points-to-balance
520
+ * ratio becomes disproportional.
521
+ *
522
+ * Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
523
+ * are a function of number of points, and by setting this value to e.g. 10, you ensure
524
+ * that the total number of points in the system are at most 10 times the total_issuance of
525
+ * the chain, in the absolute worse case.
526
+ *
527
+ * For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
528
+ * Such a scenario would also be the equivalent of the pool being 90% slashed.
529
+ **/
530
+ maxPointsToBalance: u8 & AugmentedConst<ApiType>;
531
+ /**
532
+ * The maximum number of simultaneous unbonding chunks that can exist per member.
533
+ **/
534
+ maxUnbonding: u32 & AugmentedConst<ApiType>;
535
+ /**
536
+ * The nomination pool's pallet id.
537
+ **/
538
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
539
+ /**
540
+ * Generic const
541
+ **/
542
+ [key: string]: Codec;
543
+ };
544
+ parachainSystem: {
545
+ /**
546
+ * Returns the parachain ID we are running with.
547
+ **/
548
+ selfParaId: u32 & AugmentedConst<ApiType>;
549
+ /**
550
+ * Generic const
551
+ **/
552
+ [key: string]: Codec;
553
+ };
554
+ polkadotXcm: {
555
+ /**
556
+ * The latest supported version that we advertise. Generally just set it to
557
+ * `pallet_xcm::CurrentXcmVersion`.
558
+ **/
559
+ advertisedXcmVersion: u32 & AugmentedConst<ApiType>;
560
+ /**
561
+ * The maximum number of local XCM locks that a single account may have.
562
+ **/
563
+ maxLockers: u32 & AugmentedConst<ApiType>;
564
+ /**
565
+ * The maximum number of consumers a single remote lock may have.
566
+ **/
567
+ maxRemoteLockConsumers: u32 & AugmentedConst<ApiType>;
568
+ /**
569
+ * This chain's Universal Location.
570
+ **/
571
+ universalLocation: StagingXcmV5Junctions & AugmentedConst<ApiType>;
572
+ /**
573
+ * Generic const
574
+ **/
575
+ [key: string]: Codec;
576
+ };
577
+ poolAssets: {
578
+ /**
579
+ * The amount of funds that must be reserved when creating a new approval.
580
+ **/
581
+ approvalDeposit: u128 & AugmentedConst<ApiType>;
582
+ /**
583
+ * The amount of funds that must be reserved for a non-provider asset account to be
584
+ * maintained.
585
+ **/
586
+ assetAccountDeposit: u128 & AugmentedConst<ApiType>;
587
+ /**
588
+ * The basic amount of funds that must be reserved for an asset.
589
+ **/
590
+ assetDeposit: u128 & AugmentedConst<ApiType>;
591
+ /**
592
+ * The basic amount of funds that must be reserved when adding metadata to your asset.
593
+ **/
594
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
595
+ /**
596
+ * The additional funds that must be reserved for the number of bytes you store in your
597
+ * metadata.
598
+ **/
599
+ metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
600
+ /**
601
+ * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
602
+ *
603
+ * Must be configured to result in a weight that makes each call fit in a block.
604
+ **/
605
+ removeItemsLimit: u32 & AugmentedConst<ApiType>;
606
+ /**
607
+ * The maximum length of a name or symbol stored on-chain.
608
+ **/
609
+ stringLimit: u32 & AugmentedConst<ApiType>;
610
+ /**
611
+ * Generic const
612
+ **/
613
+ [key: string]: Codec;
614
+ };
615
+ proxy: {
616
+ /**
617
+ * The base amount of currency needed to reserve for creating an announcement.
618
+ *
619
+ * This is held when a new storage item holding a `Balance` is created (typically 16
620
+ * bytes).
621
+ **/
622
+ announcementDepositBase: u128 & AugmentedConst<ApiType>;
623
+ /**
624
+ * The amount of currency needed per announcement made.
625
+ *
626
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
627
+ * into a pre-existing storage value.
628
+ **/
629
+ announcementDepositFactor: u128 & AugmentedConst<ApiType>;
630
+ /**
631
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
632
+ **/
633
+ maxPending: u32 & AugmentedConst<ApiType>;
634
+ /**
635
+ * The maximum amount of proxies allowed for a single account.
636
+ **/
637
+ maxProxies: u32 & AugmentedConst<ApiType>;
638
+ /**
639
+ * The base amount of currency needed to reserve for creating a proxy.
640
+ *
641
+ * This is held for an additional storage item whose value size is
642
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
643
+ **/
644
+ proxyDepositBase: u128 & AugmentedConst<ApiType>;
645
+ /**
646
+ * The amount of currency needed per proxy added.
647
+ *
648
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
649
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
650
+ * into account `32 + proxy_type.encode().len()` bytes of data.
651
+ **/
652
+ proxyDepositFactor: u128 & AugmentedConst<ApiType>;
653
+ /**
654
+ * Generic const
655
+ **/
656
+ [key: string]: Codec;
657
+ };
658
+ referenda: {
659
+ /**
660
+ * Quantization level for the referendum wakeup scheduler. A higher number will result in
661
+ * fewer storage reads/writes needed for smaller voters, but also result in delays to the
662
+ * automatic referendum status changes. Explicit servicing instructions are unaffected.
663
+ **/
664
+ alarmInterval: u32 & AugmentedConst<ApiType>;
665
+ /**
666
+ * Maximum size of the referendum queue for a single track.
667
+ **/
668
+ maxQueued: u32 & AugmentedConst<ApiType>;
669
+ /**
670
+ * The minimum amount to be used as a deposit for a public referendum proposal.
671
+ **/
672
+ submissionDeposit: u128 & AugmentedConst<ApiType>;
673
+ /**
674
+ * A list of tracks.
675
+ *
676
+ * Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
677
+ **/
678
+ tracks: Vec<ITuple<[u16, PalletReferendaTrackDetails]>> & AugmentedConst<ApiType>;
679
+ /**
680
+ * The number of blocks after submission that a referendum must begin being decided by.
681
+ * Once this passes, then anyone may cancel the referendum.
682
+ **/
683
+ undecidingTimeout: u32 & AugmentedConst<ApiType>;
684
+ /**
685
+ * Generic const
686
+ **/
687
+ [key: string]: Codec;
688
+ };
689
+ scheduler: {
690
+ /**
691
+ * The maximum weight that may be scheduled per block for any dispatchables.
692
+ **/
693
+ maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
694
+ /**
695
+ * The maximum number of scheduled calls in the queue for a single block.
696
+ *
697
+ * NOTE:
698
+ * + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
699
+ * higher limit under `runtime-benchmarks` feature.
700
+ **/
701
+ maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
702
+ /**
703
+ * Generic const
704
+ **/
705
+ [key: string]: Codec;
706
+ };
707
+ session: {
708
+ /**
709
+ * The amount to be held when setting keys.
710
+ **/
711
+ keyDeposit: u128 & AugmentedConst<ApiType>;
712
+ /**
713
+ * Generic const
714
+ **/
715
+ [key: string]: Codec;
716
+ };
717
+ staking: {
718
+ /**
719
+ * Number of eras that staked funds must remain bonded for.
720
+ **/
721
+ bondingDuration: u32 & AugmentedConst<ApiType>;
722
+ /**
723
+ * Number of eras to keep in history.
724
+ *
725
+ * Following information is kept for eras in `[current_era -
726
+ * HistoryDepth, current_era]`: `ErasValidatorPrefs`, `ErasValidatorReward`,
727
+ * `ErasRewardPoints`, `ErasTotalStake`, `ClaimedRewards`,
728
+ * `ErasStakersPaged`, `ErasStakersOverview`.
729
+ *
730
+ * Must be more than the number of eras delayed by session.
731
+ * I.e. active era must always be in history. I.e. `active_era >
732
+ * current_era - history_depth` must be guaranteed.
733
+ *
734
+ * If migrating an existing pallet from storage value to config value,
735
+ * this should be set to same value or greater as in storage.
736
+ **/
737
+ historyDepth: u32 & AugmentedConst<ApiType>;
738
+ /**
739
+ * Maximum allowed era duration in milliseconds.
740
+ *
741
+ * This provides a defensive upper bound to cap the effective era duration, preventing
742
+ * excessively long eras from causing runaway inflation (e.g., due to bugs). If the actual
743
+ * era duration exceeds this value, it will be clamped to this maximum.
744
+ *
745
+ * Example: For an ideal era duration of 24 hours (86,400,000 ms),
746
+ * this can be set to 604,800,000 ms (7 days).
747
+ **/
748
+ maxEraDuration: u64 & AugmentedConst<ApiType>;
749
+ /**
750
+ * The maximum size of each `T::ExposurePage`.
751
+ *
752
+ * An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
753
+ * nominators.
754
+ *
755
+ * For older non-paged exposure, a reward payout was restricted to the top
756
+ * `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
757
+ * nominator payout.
758
+ *
759
+ * Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to
760
+ * reduce without handling it in a migration.
761
+ **/
762
+ maxExposurePageSize: u32 & AugmentedConst<ApiType>;
763
+ /**
764
+ * Maximum number of invulnerable validators.
765
+ **/
766
+ maxInvulnerables: u32 & AugmentedConst<ApiType>;
767
+ /**
768
+ * Maximum number of storage items that can be pruned in a single call.
769
+ *
770
+ * This controls how many storage items can be deleted in each call to `prune_era_step`.
771
+ * This should be set to a conservative value (e.g., 100-500 items) to ensure pruning
772
+ * doesn't consume too much block space. The actual weight is determined by benchmarks.
773
+ **/
774
+ maxPruningItems: u32 & AugmentedConst<ApiType>;
775
+ /**
776
+ * The maximum number of `unlocking` chunks a [`StakingLedger`] can
777
+ * have. Effectively determines how many unique eras a staker may be
778
+ * unbonding in.
779
+ *
780
+ * Note: `MaxUnlockingChunks` is used as the upper bound for the
781
+ * `BoundedVec` item `StakingLedger.unlocking`. Setting this value
782
+ * lower than the existing value can lead to inconsistencies in the
783
+ * `StakingLedger` and will need to be handled properly in a runtime
784
+ * migration. The test `reducing_max_unlocking_chunks_abrupt` shows
785
+ * this effect.
786
+ **/
787
+ maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
788
+ /**
789
+ * The absolute maximum of winner validators this pallet should return.
790
+ *
791
+ * As this pallet supports multi-block election, the set of winner validators *per
792
+ * election* is bounded by this type.
793
+ **/
794
+ maxValidatorSet: u32 & AugmentedConst<ApiType>;
795
+ /**
796
+ * Number of sessions before the end of an era when the election for the next era will
797
+ * start.
798
+ *
799
+ * - This determines how many sessions **before** the last session of the era the staking
800
+ * election process should begin.
801
+ * - The value is bounded between **1** (election starts at the beginning of the last
802
+ * session) and `SessionsPerEra` (election starts at the beginning of the first session
803
+ * of the era).
804
+ *
805
+ * ### Example:
806
+ * - If `SessionsPerEra = 6` and `PlanningEraOffset = 1`, the election starts at the
807
+ * beginning of session `6 - 1 = 5`.
808
+ * - If `PlanningEraOffset = 6`, the election starts at the beginning of session `6 - 6 =
809
+ * 0`, meaning it starts at the very beginning of the era.
810
+ **/
811
+ planningEraOffset: u32 & AugmentedConst<ApiType>;
812
+ /**
813
+ * Number of sessions per era, as per the preferences of the **relay chain**.
814
+ **/
815
+ sessionsPerEra: u32 & AugmentedConst<ApiType>;
816
+ /**
817
+ * Number of eras that slashes are deferred by, after computation.
818
+ *
819
+ * This should be less than the bonding duration. Set to 0 if slashes
820
+ * should be applied immediately, without opportunity for intervention.
821
+ **/
822
+ slashDeferDuration: u32 & AugmentedConst<ApiType>;
823
+ /**
824
+ * Generic const
825
+ **/
826
+ [key: string]: Codec;
827
+ };
828
+ stateTrieMigration: {
829
+ /**
830
+ * Maximal number of bytes that a key can have.
831
+ *
832
+ * FRAME itself does not limit the key length.
833
+ * The concrete value must therefore depend on your storage usage.
834
+ * A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
835
+ * keys which are then hashed and concatenated, resulting in arbitrarily long keys.
836
+ *
837
+ * Use the *state migration RPC* to retrieve the length of the longest key in your
838
+ * storage: <https://github.com/paritytech/substrate/issues/11642>
839
+ *
840
+ * The migration will halt with a `Halted` event if this value is too small.
841
+ * Since there is no real penalty from over-estimating, it is advised to use a large
842
+ * value. The default is 512 byte.
843
+ *
844
+ * Some key lengths for reference:
845
+ * - [`frame_support::storage::StorageValue`]: 32 byte
846
+ * - [`frame_support::storage::StorageMap`]: 64 byte
847
+ * - [`frame_support::storage::StorageDoubleMap`]: 96 byte
848
+ *
849
+ * For more info see
850
+ * <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
851
+ **/
852
+ maxKeyLen: u32 & AugmentedConst<ApiType>;
853
+ /**
854
+ * Generic const
855
+ **/
856
+ [key: string]: Codec;
857
+ };
858
+ system: {
859
+ /**
860
+ * Maximum number of block number to block hash mappings to keep (oldest pruned first).
861
+ **/
862
+ blockHashCount: u32 & AugmentedConst<ApiType>;
863
+ /**
864
+ * The maximum length of a block (in bytes).
865
+ **/
866
+ blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
867
+ /**
868
+ * Block & extrinsics weights: base values and limits.
869
+ **/
870
+ blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
871
+ /**
872
+ * The weight of runtime database operations the runtime can invoke.
873
+ **/
874
+ dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
875
+ /**
876
+ * The designated SS58 prefix of this chain.
877
+ *
878
+ * This replaces the "ss58Format" property declared in the chain spec. Reason is
879
+ * that the runtime should know about the prefix in order to make use of it as
880
+ * an identifier of the chain.
881
+ **/
882
+ ss58Prefix: u16 & AugmentedConst<ApiType>;
883
+ /**
884
+ * Get the chain's in-code version.
885
+ **/
886
+ version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
887
+ /**
888
+ * Generic const
889
+ **/
890
+ [key: string]: Codec;
891
+ };
892
+ timestamp: {
893
+ /**
894
+ * The minimum period between blocks.
895
+ *
896
+ * Be aware that this is different to the *expected* period that the block production
897
+ * apparatus provides. Your chosen consensus system will generally work with this to
898
+ * determine a sensible block time. For example, in the Aura pallet it will be double this
899
+ * period on default settings.
900
+ **/
901
+ minimumPeriod: u64 & AugmentedConst<ApiType>;
902
+ /**
903
+ * Generic const
904
+ **/
905
+ [key: string]: Codec;
906
+ };
907
+ transactionPayment: {
908
+ /**
909
+ * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
910
+ * `priority`
911
+ *
912
+ * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
913
+ * added to a tip component in regular `priority` calculations.
914
+ * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
915
+ * extrinsic (with no tip), by including a tip value greater than the virtual tip.
916
+ *
917
+ * ```rust,ignore
918
+ * // For `Normal`
919
+ * let priority = priority_calc(tip);
920
+ *
921
+ * // For `Operational`
922
+ * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
923
+ * let priority = priority_calc(tip + virtual_tip);
924
+ * ```
925
+ *
926
+ * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
927
+ * sent with the transaction. So, not only does the transaction get a priority bump based
928
+ * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
929
+ * transactions.
930
+ **/
931
+ operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
932
+ /**
933
+ * Generic const
934
+ **/
935
+ [key: string]: Codec;
936
+ };
937
+ treasury: {
938
+ /**
939
+ * Percentage of spare funds (if any) that are burnt per spend period.
940
+ **/
941
+ burn: Permill & AugmentedConst<ApiType>;
942
+ /**
943
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
944
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
945
+ *
946
+ * The maximum number of approvals that can wait in the spending queue.
947
+ *
948
+ * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
949
+ **/
950
+ maxApprovals: u32 & AugmentedConst<ApiType>;
951
+ /**
952
+ * The treasury's pallet id, used for deriving its sovereign account ID.
953
+ **/
954
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
955
+ /**
956
+ * The period during which an approved treasury spend has to be claimed.
957
+ **/
958
+ payoutPeriod: u32 & AugmentedConst<ApiType>;
959
+ /**
960
+ * Gets this pallet's derived pot account.
961
+ **/
962
+ potAccount: AccountId32 & AugmentedConst<ApiType>;
963
+ /**
964
+ * Period between successive spends.
965
+ **/
966
+ spendPeriod: u32 & AugmentedConst<ApiType>;
967
+ /**
968
+ * Generic const
969
+ **/
970
+ [key: string]: Codec;
971
+ };
972
+ uniques: {
973
+ /**
974
+ * The basic amount of funds that must be reserved when adding an attribute to an item.
975
+ **/
976
+ attributeDepositBase: u128 & AugmentedConst<ApiType>;
977
+ /**
978
+ * The basic amount of funds that must be reserved for collection.
979
+ **/
980
+ collectionDeposit: u128 & AugmentedConst<ApiType>;
981
+ /**
982
+ * The additional funds that must be reserved for the number of bytes store in metadata,
983
+ * either "normal" metadata or attribute metadata.
984
+ **/
985
+ depositPerByte: u128 & AugmentedConst<ApiType>;
986
+ /**
987
+ * The basic amount of funds that must be reserved for an item.
988
+ **/
989
+ itemDeposit: u128 & AugmentedConst<ApiType>;
990
+ /**
991
+ * The maximum length of an attribute key.
992
+ **/
993
+ keyLimit: u32 & AugmentedConst<ApiType>;
994
+ /**
995
+ * The basic amount of funds that must be reserved when adding metadata to your item.
996
+ **/
997
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
998
+ /**
999
+ * The maximum length of data stored on-chain.
1000
+ **/
1001
+ stringLimit: u32 & AugmentedConst<ApiType>;
1002
+ /**
1003
+ * The maximum length of an attribute value.
1004
+ **/
1005
+ valueLimit: u32 & AugmentedConst<ApiType>;
1006
+ /**
1007
+ * Generic const
1008
+ **/
1009
+ [key: string]: Codec;
1010
+ };
1011
+ utility: {
1012
+ /**
1013
+ * The limit on the number of batched calls.
1014
+ **/
1015
+ batchedCallsLimit: u32 & AugmentedConst<ApiType>;
1016
+ /**
1017
+ * Generic const
1018
+ **/
1019
+ [key: string]: Codec;
1020
+ };
1021
+ vesting: {
1022
+ maxVestingSchedules: u32 & AugmentedConst<ApiType>;
1023
+ /**
1024
+ * The minimum amount transferred to call `vested_transfer`.
1025
+ **/
1026
+ minVestedTransfer: u128 & AugmentedConst<ApiType>;
1027
+ /**
1028
+ * Generic const
1029
+ **/
1030
+ [key: string]: Codec;
1031
+ };
1032
+ voterList: {
1033
+ /**
1034
+ * The list of thresholds separating the various bags.
1035
+ *
1036
+ * Ids are separated into unsorted bags according to their score. This specifies the
1037
+ * thresholds separating the bags. An id's bag is the largest bag for which the id's score
1038
+ * is less than or equal to its upper threshold.
1039
+ *
1040
+ * When ids are iterated, higher bags are iterated completely before lower bags. This means
1041
+ * that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
1042
+ * score, but peer ids within a particular bag are sorted in insertion order.
1043
+ *
1044
+ * # Expressing the constant
1045
+ *
1046
+ * This constant must be sorted in strictly increasing order. Duplicate items are not
1047
+ * permitted.
1048
+ *
1049
+ * There is an implied upper limit of `Score::MAX`; that value does not need to be
1050
+ * specified within the bag. For any two threshold lists, if one ends with
1051
+ * `Score::MAX`, the other one does not, and they are otherwise equal, the two
1052
+ * lists will behave identically.
1053
+ *
1054
+ * # Calculation
1055
+ *
1056
+ * It is recommended to generate the set of thresholds in a geometric series, such that
1057
+ * there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
1058
+ * constant_ratio).max(threshold[k] + 1)` for all `k`.
1059
+ *
1060
+ * The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
1061
+ *
1062
+ * # Examples
1063
+ *
1064
+ * - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
1065
+ * iteration is strictly in insertion order.
1066
+ * - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
1067
+ * the procedure given above, then the constant ratio is equal to 2.
1068
+ * - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
1069
+ * the procedure given above, then the constant ratio is approximately equal to 1.248.
1070
+ * - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
1071
+ * into bag 0, an id with score 2 will fall into bag 1, etc.
1072
+ *
1073
+ * # Migration
1074
+ *
1075
+ * In the event that this list ever changes, a copy of the old bags list must be retained.
1076
+ * With that `List::migrate` can be called, which will perform the appropriate migration.
1077
+ **/
1078
+ bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
1079
+ /**
1080
+ * Maximum number of accounts that may be re-bagged automatically in `on_idle`.
1081
+ *
1082
+ * A value of `0` (obtained by configuring `type MaxAutoRebagPerBlock = ();`) disables
1083
+ * the feature.
1084
+ **/
1085
+ maxAutoRebagPerBlock: u32 & AugmentedConst<ApiType>;
1086
+ /**
1087
+ * Generic const
1088
+ **/
1089
+ [key: string]: Codec;
1090
+ };
1091
+ xcmpQueue: {
1092
+ /**
1093
+ * Maximal number of outbound XCMP channels that can have messages queued at the same time.
1094
+ *
1095
+ * If this is reached, then no further messages can be sent to channels that do not yet
1096
+ * have a message queued. This should be set to the expected maximum of outbound channels
1097
+ * which is determined by [`Self::ChannelInfo`]. It is important to set this large enough,
1098
+ * since otherwise the congestion control protocol will not work as intended and messages
1099
+ * may be dropped. This value increases the PoV and should therefore not be picked too
1100
+ * high. Governance needs to pay attention to not open more channels than this value.
1101
+ **/
1102
+ maxActiveOutboundChannels: u32 & AugmentedConst<ApiType>;
1103
+ /**
1104
+ * The maximum number of inbound XCMP channels that can be suspended simultaneously.
1105
+ *
1106
+ * Any further channel suspensions will fail and messages may get dropped without further
1107
+ * notice. Choosing a high value (1000) is okay; the trade-off that is described in
1108
+ * [`InboundXcmpSuspended`] still applies at that scale.
1109
+ **/
1110
+ maxInboundSuspended: u32 & AugmentedConst<ApiType>;
1111
+ /**
1112
+ * The maximal page size for HRMP message pages.
1113
+ *
1114
+ * A lower limit can be set dynamically, but this is the hard-limit for the PoV worst case
1115
+ * benchmarking. The limit for the size of a message is slightly below this, since some
1116
+ * overhead is incurred for encoding the format.
1117
+ **/
1118
+ maxPageSize: u32 & AugmentedConst<ApiType>;
1119
+ /**
1120
+ * Generic const
1121
+ **/
1122
+ [key: string]: Codec;
1123
+ };
1124
+ } // AugmentedConsts
1125
+ } // declare module