@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,1308 @@
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, bool, 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
+ multiBlockMigrations: {
428
+ /**
429
+ * The maximal length of an encoded cursor.
430
+ *
431
+ * A good default needs to selected such that no migration will ever have a cursor with MEL
432
+ * above this limit. This is statically checked in `integrity_test`.
433
+ **/
434
+ cursorMaxLen: u32 & AugmentedConst<ApiType>;
435
+ /**
436
+ * The maximal length of an encoded identifier.
437
+ *
438
+ * A good default needs to selected such that no migration will ever have an identifier
439
+ * with MEL above this limit. This is statically checked in `integrity_test`.
440
+ **/
441
+ identifierMaxLen: u32 & AugmentedConst<ApiType>;
442
+ /**
443
+ * Generic const
444
+ **/
445
+ [key: string]: Codec;
446
+ };
447
+ multisig: {
448
+ /**
449
+ * The base amount of currency needed to reserve for creating a multisig execution or to
450
+ * store a dispatch call for later.
451
+ *
452
+ * This is held for an additional storage item whose value size is
453
+ * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
454
+ * `32 + sizeof(AccountId)` bytes.
455
+ **/
456
+ depositBase: u128 & AugmentedConst<ApiType>;
457
+ /**
458
+ * The amount of currency needed per unit threshold when creating a multisig execution.
459
+ *
460
+ * This is held for adding 32 bytes more into a pre-existing storage value.
461
+ **/
462
+ depositFactor: u128 & AugmentedConst<ApiType>;
463
+ /**
464
+ * The maximum amount of signatories allowed in the multisig.
465
+ **/
466
+ maxSignatories: u32 & AugmentedConst<ApiType>;
467
+ /**
468
+ * Generic const
469
+ **/
470
+ [key: string]: Codec;
471
+ };
472
+ nftFractionalization: {
473
+ /**
474
+ * The deposit paid by the user locking an NFT. The deposit is returned to the original NFT
475
+ * owner when the asset is unified and the NFT is unlocked.
476
+ **/
477
+ deposit: u128 & AugmentedConst<ApiType>;
478
+ /**
479
+ * The newly created asset's name.
480
+ **/
481
+ newAssetName: Bytes & AugmentedConst<ApiType>;
482
+ /**
483
+ * The newly created asset's symbol.
484
+ **/
485
+ newAssetSymbol: Bytes & AugmentedConst<ApiType>;
486
+ /**
487
+ * The pallet's id, used for deriving its sovereign account ID.
488
+ **/
489
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
490
+ /**
491
+ * The maximum length of a name or symbol stored on-chain.
492
+ **/
493
+ stringLimit: u32 & AugmentedConst<ApiType>;
494
+ /**
495
+ * Generic const
496
+ **/
497
+ [key: string]: Codec;
498
+ };
499
+ nfts: {
500
+ /**
501
+ * The maximum approvals an item could have.
502
+ **/
503
+ approvalsLimit: u32 & AugmentedConst<ApiType>;
504
+ /**
505
+ * The basic amount of funds that must be reserved when adding an attribute to an item.
506
+ **/
507
+ attributeDepositBase: u128 & AugmentedConst<ApiType>;
508
+ /**
509
+ * The basic amount of funds that must be reserved for collection.
510
+ **/
511
+ collectionDeposit: u128 & AugmentedConst<ApiType>;
512
+ /**
513
+ * The additional funds that must be reserved for the number of bytes store in metadata,
514
+ * either "normal" metadata or attribute metadata.
515
+ **/
516
+ depositPerByte: u128 & AugmentedConst<ApiType>;
517
+ /**
518
+ * Disables some of pallet's features.
519
+ **/
520
+ features: u64 & AugmentedConst<ApiType>;
521
+ /**
522
+ * The maximum attributes approvals an item could have.
523
+ **/
524
+ itemAttributesApprovalsLimit: u32 & AugmentedConst<ApiType>;
525
+ /**
526
+ * The basic amount of funds that must be reserved for an item.
527
+ **/
528
+ itemDeposit: u128 & AugmentedConst<ApiType>;
529
+ /**
530
+ * The maximum length of an attribute key.
531
+ **/
532
+ keyLimit: u32 & AugmentedConst<ApiType>;
533
+ /**
534
+ * The max number of attributes a user could set per call.
535
+ **/
536
+ maxAttributesPerCall: u32 & AugmentedConst<ApiType>;
537
+ /**
538
+ * The max duration in blocks for deadlines.
539
+ **/
540
+ maxDeadlineDuration: u32 & AugmentedConst<ApiType>;
541
+ /**
542
+ * The max number of tips a user could send.
543
+ **/
544
+ maxTips: u32 & AugmentedConst<ApiType>;
545
+ /**
546
+ * The basic amount of funds that must be reserved when adding metadata to your item.
547
+ **/
548
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
549
+ /**
550
+ * The maximum length of data stored on-chain.
551
+ **/
552
+ stringLimit: u32 & AugmentedConst<ApiType>;
553
+ /**
554
+ * The maximum length of an attribute value.
555
+ **/
556
+ valueLimit: u32 & AugmentedConst<ApiType>;
557
+ /**
558
+ * Generic const
559
+ **/
560
+ [key: string]: Codec;
561
+ };
562
+ nominationPools: {
563
+ /**
564
+ * The maximum pool points-to-balance ratio that an `open` pool can have.
565
+ *
566
+ * This is important in the event slashing takes place and the pool's points-to-balance
567
+ * ratio becomes disproportional.
568
+ *
569
+ * Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
570
+ * are a function of number of points, and by setting this value to e.g. 10, you ensure
571
+ * that the total number of points in the system are at most 10 times the total_issuance of
572
+ * the chain, in the absolute worse case.
573
+ *
574
+ * For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
575
+ * Such a scenario would also be the equivalent of the pool being 90% slashed.
576
+ **/
577
+ maxPointsToBalance: u8 & AugmentedConst<ApiType>;
578
+ /**
579
+ * The maximum number of simultaneous unbonding chunks that can exist per member.
580
+ **/
581
+ maxUnbonding: u32 & AugmentedConst<ApiType>;
582
+ /**
583
+ * The nomination pool's pallet id.
584
+ **/
585
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
586
+ /**
587
+ * Generic const
588
+ **/
589
+ [key: string]: Codec;
590
+ };
591
+ parachainSystem: {
592
+ /**
593
+ * Returns the parachain ID we are running with.
594
+ **/
595
+ selfParaId: u32 & AugmentedConst<ApiType>;
596
+ /**
597
+ * Generic const
598
+ **/
599
+ [key: string]: Codec;
600
+ };
601
+ polkadotXcm: {
602
+ /**
603
+ * The latest supported version that we advertise. Generally just set it to
604
+ * `pallet_xcm::CurrentXcmVersion`.
605
+ **/
606
+ advertisedXcmVersion: u32 & AugmentedConst<ApiType>;
607
+ /**
608
+ * The maximum number of local XCM locks that a single account may have.
609
+ **/
610
+ maxLockers: u32 & AugmentedConst<ApiType>;
611
+ /**
612
+ * The maximum number of consumers a single remote lock may have.
613
+ **/
614
+ maxRemoteLockConsumers: u32 & AugmentedConst<ApiType>;
615
+ /**
616
+ * This chain's Universal Location.
617
+ **/
618
+ universalLocation: StagingXcmV5Junctions & AugmentedConst<ApiType>;
619
+ /**
620
+ * Generic const
621
+ **/
622
+ [key: string]: Codec;
623
+ };
624
+ poolAssets: {
625
+ /**
626
+ * The amount of funds that must be reserved when creating a new approval.
627
+ **/
628
+ approvalDeposit: u128 & AugmentedConst<ApiType>;
629
+ /**
630
+ * The amount of funds that must be reserved for a non-provider asset account to be
631
+ * maintained.
632
+ **/
633
+ assetAccountDeposit: u128 & AugmentedConst<ApiType>;
634
+ /**
635
+ * The basic amount of funds that must be reserved for an asset.
636
+ **/
637
+ assetDeposit: u128 & AugmentedConst<ApiType>;
638
+ /**
639
+ * The basic amount of funds that must be reserved when adding metadata to your asset.
640
+ **/
641
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
642
+ /**
643
+ * The additional funds that must be reserved for the number of bytes you store in your
644
+ * metadata.
645
+ **/
646
+ metadataDepositPerByte: u128 & AugmentedConst<ApiType>;
647
+ /**
648
+ * Max number of items to destroy per `destroy_accounts` and `destroy_approvals` call.
649
+ *
650
+ * Must be configured to result in a weight that makes each call fit in a block.
651
+ **/
652
+ removeItemsLimit: u32 & AugmentedConst<ApiType>;
653
+ /**
654
+ * The maximum length of a name or symbol stored on-chain.
655
+ **/
656
+ stringLimit: u32 & AugmentedConst<ApiType>;
657
+ /**
658
+ * Generic const
659
+ **/
660
+ [key: string]: Codec;
661
+ };
662
+ proxy: {
663
+ /**
664
+ * The base amount of currency needed to reserve for creating an announcement.
665
+ *
666
+ * This is held when a new storage item holding a `Balance` is created (typically 16
667
+ * bytes).
668
+ **/
669
+ announcementDepositBase: u128 & AugmentedConst<ApiType>;
670
+ /**
671
+ * The amount of currency needed per announcement made.
672
+ *
673
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
674
+ * into a pre-existing storage value.
675
+ **/
676
+ announcementDepositFactor: u128 & AugmentedConst<ApiType>;
677
+ /**
678
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
679
+ **/
680
+ maxPending: u32 & AugmentedConst<ApiType>;
681
+ /**
682
+ * The maximum amount of proxies allowed for a single account.
683
+ **/
684
+ maxProxies: u32 & AugmentedConst<ApiType>;
685
+ /**
686
+ * The base amount of currency needed to reserve for creating a proxy.
687
+ *
688
+ * This is held for an additional storage item whose value size is
689
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
690
+ **/
691
+ proxyDepositBase: u128 & AugmentedConst<ApiType>;
692
+ /**
693
+ * The amount of currency needed per proxy added.
694
+ *
695
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
696
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
697
+ * into account `32 + proxy_type.encode().len()` bytes of data.
698
+ **/
699
+ proxyDepositFactor: u128 & AugmentedConst<ApiType>;
700
+ /**
701
+ * Generic const
702
+ **/
703
+ [key: string]: Codec;
704
+ };
705
+ recovery: {
706
+ /**
707
+ * The base amount of currency needed to reserve for creating a recovery configuration.
708
+ *
709
+ * This is held for an additional storage item whose value size is
710
+ * `2 + sizeof(BlockNumber, Balance)` bytes.
711
+ **/
712
+ configDepositBase: u128 & AugmentedConst<ApiType>;
713
+ /**
714
+ * The amount of currency needed per additional user when creating a recovery
715
+ * configuration.
716
+ *
717
+ * This is held for adding `sizeof(AccountId)` bytes more into a pre-existing storage
718
+ * value.
719
+ **/
720
+ friendDepositFactor: u128 & AugmentedConst<ApiType>;
721
+ /**
722
+ * The maximum amount of friends allowed in a recovery configuration.
723
+ *
724
+ * NOTE: The threshold programmed in this Pallet uses u16, so it does
725
+ * not really make sense to have a limit here greater than u16::MAX.
726
+ * But also, that is a lot more than you should probably set this value
727
+ * to anyway...
728
+ **/
729
+ maxFriends: u32 & AugmentedConst<ApiType>;
730
+ /**
731
+ * The base amount of currency needed to reserve for starting a recovery.
732
+ *
733
+ * This is primarily held for deterring malicious recovery attempts, and should
734
+ * have a value large enough that a bad actor would choose not to place this
735
+ * deposit. It also acts to fund additional storage item whose value size is
736
+ * `sizeof(BlockNumber, Balance + T * AccountId)` bytes. Where T is a configurable
737
+ * threshold.
738
+ **/
739
+ recoveryDeposit: u128 & AugmentedConst<ApiType>;
740
+ /**
741
+ * Generic const
742
+ **/
743
+ [key: string]: Codec;
744
+ };
745
+ referenda: {
746
+ /**
747
+ * Quantization level for the referendum wakeup scheduler. A higher number will result in
748
+ * fewer storage reads/writes needed for smaller voters, but also result in delays to the
749
+ * automatic referendum status changes. Explicit servicing instructions are unaffected.
750
+ **/
751
+ alarmInterval: u32 & AugmentedConst<ApiType>;
752
+ /**
753
+ * Maximum size of the referendum queue for a single track.
754
+ **/
755
+ maxQueued: u32 & AugmentedConst<ApiType>;
756
+ /**
757
+ * The minimum amount to be used as a deposit for a public referendum proposal.
758
+ **/
759
+ submissionDeposit: u128 & AugmentedConst<ApiType>;
760
+ /**
761
+ * A list of tracks.
762
+ *
763
+ * Note: if the tracks are dynamic, the value in the static metadata might be inaccurate.
764
+ **/
765
+ tracks: Vec<ITuple<[u16, PalletReferendaTrackDetails]>> & AugmentedConst<ApiType>;
766
+ /**
767
+ * The number of blocks after submission that a referendum must begin being decided by.
768
+ * Once this passes, then anyone may cancel the referendum.
769
+ **/
770
+ undecidingTimeout: u32 & AugmentedConst<ApiType>;
771
+ /**
772
+ * Generic const
773
+ **/
774
+ [key: string]: Codec;
775
+ };
776
+ revive: {
777
+ /**
778
+ * The [EIP-155](https://eips.ethereum.org/EIPS/eip-155) chain ID.
779
+ *
780
+ * This is a unique identifier assigned to each blockchain network,
781
+ * preventing replay attacks.
782
+ **/
783
+ chainId: u64 & AugmentedConst<ApiType>;
784
+ /**
785
+ * The percentage of the storage deposit that should be held for using a code hash.
786
+ * Instantiating a contract, protects the code from being removed. In order to prevent
787
+ * abuse these actions are protected with a percentage of the code deposit.
788
+ **/
789
+ codeHashLockupDepositPercent: Perbill & AugmentedConst<ApiType>;
790
+ /**
791
+ * The amount of balance a caller has to pay for each byte of storage.
792
+ *
793
+ * # Note
794
+ *
795
+ * It is safe to change this value on a live chain as all refunds are pro rata.
796
+ **/
797
+ depositPerByte: u128 & AugmentedConst<ApiType>;
798
+ /**
799
+ * The amount of balance a caller has to pay for each storage item.
800
+ *
801
+ * # Note
802
+ *
803
+ * It is safe to change this value on a live chain as all refunds are pro rata.
804
+ **/
805
+ depositPerItem: u128 & AugmentedConst<ApiType>;
806
+ /**
807
+ * The ratio between the decimal representation of the native token and the ETH token.
808
+ **/
809
+ nativeToEthRatio: u32 & AugmentedConst<ApiType>;
810
+ /**
811
+ * Make contract callable functions marked as `#[unstable]` available.
812
+ *
813
+ * Contracts that use `#[unstable]` functions won't be able to be uploaded unless
814
+ * this is set to `true`. This is only meant for testnets and dev nodes in order to
815
+ * experiment with new features.
816
+ *
817
+ * # Warning
818
+ *
819
+ * Do **not** set to `true` on productions chains.
820
+ **/
821
+ unsafeUnstableInterface: bool & AugmentedConst<ApiType>;
822
+ /**
823
+ * Generic const
824
+ **/
825
+ [key: string]: Codec;
826
+ };
827
+ scheduler: {
828
+ /**
829
+ * The maximum weight that may be scheduled per block for any dispatchables.
830
+ **/
831
+ maximumWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
832
+ /**
833
+ * The maximum number of scheduled calls in the queue for a single block.
834
+ *
835
+ * NOTE:
836
+ * + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
837
+ * higher limit under `runtime-benchmarks` feature.
838
+ **/
839
+ maxScheduledPerBlock: u32 & AugmentedConst<ApiType>;
840
+ /**
841
+ * Generic const
842
+ **/
843
+ [key: string]: Codec;
844
+ };
845
+ session: {
846
+ /**
847
+ * The amount to be held when setting keys.
848
+ **/
849
+ keyDeposit: u128 & AugmentedConst<ApiType>;
850
+ /**
851
+ * Generic const
852
+ **/
853
+ [key: string]: Codec;
854
+ };
855
+ society: {
856
+ /**
857
+ * The number of [Config::BlockNumberProvider] blocks between membership challenges.
858
+ **/
859
+ challengePeriod: u32 & AugmentedConst<ApiType>;
860
+ /**
861
+ * The number of [Config::BlockNumberProvider] blocks on which new candidates can claim
862
+ * their membership and be the named head.
863
+ **/
864
+ claimPeriod: u32 & AugmentedConst<ApiType>;
865
+ /**
866
+ * The maximum number of strikes before a member gets funds slashed.
867
+ **/
868
+ graceStrikes: u32 & AugmentedConst<ApiType>;
869
+ /**
870
+ * The maximum number of bids at once.
871
+ **/
872
+ maxBids: u32 & AugmentedConst<ApiType>;
873
+ /**
874
+ * The maximum duration of the payout lock.
875
+ **/
876
+ maxLockDuration: u32 & AugmentedConst<ApiType>;
877
+ /**
878
+ * The maximum number of payouts a member may have waiting unclaimed.
879
+ **/
880
+ maxPayouts: u32 & AugmentedConst<ApiType>;
881
+ /**
882
+ * The societies's pallet id
883
+ **/
884
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
885
+ /**
886
+ * The amount of incentive paid within each period. Doesn't include VoterTip.
887
+ **/
888
+ periodSpend: u128 & AugmentedConst<ApiType>;
889
+ /**
890
+ * The number of [Config::BlockNumberProvider] blocks on which new candidates should be
891
+ * voted on. Together with
892
+ * `ClaimPeriod`, this sums to the number of blocks between candidate intake periods.
893
+ **/
894
+ votingPeriod: u32 & AugmentedConst<ApiType>;
895
+ /**
896
+ * Generic const
897
+ **/
898
+ [key: string]: Codec;
899
+ };
900
+ staking: {
901
+ /**
902
+ * Number of eras that staked funds must remain bonded for.
903
+ **/
904
+ bondingDuration: u32 & AugmentedConst<ApiType>;
905
+ /**
906
+ * Number of eras to keep in history.
907
+ *
908
+ * Following information is kept for eras in `[current_era -
909
+ * HistoryDepth, current_era]`: `ErasValidatorPrefs`, `ErasValidatorReward`,
910
+ * `ErasRewardPoints`, `ErasTotalStake`, `ClaimedRewards`,
911
+ * `ErasStakersPaged`, `ErasStakersOverview`.
912
+ *
913
+ * Must be more than the number of eras delayed by session.
914
+ * I.e. active era must always be in history. I.e. `active_era >
915
+ * current_era - history_depth` must be guaranteed.
916
+ *
917
+ * If migrating an existing pallet from storage value to config value,
918
+ * this should be set to same value or greater as in storage.
919
+ **/
920
+ historyDepth: u32 & AugmentedConst<ApiType>;
921
+ /**
922
+ * Maximum allowed era duration in milliseconds.
923
+ *
924
+ * This provides a defensive upper bound to cap the effective era duration, preventing
925
+ * excessively long eras from causing runaway inflation (e.g., due to bugs). If the actual
926
+ * era duration exceeds this value, it will be clamped to this maximum.
927
+ *
928
+ * Example: For an ideal era duration of 24 hours (86,400,000 ms),
929
+ * this can be set to 604,800,000 ms (7 days).
930
+ **/
931
+ maxEraDuration: u64 & AugmentedConst<ApiType>;
932
+ /**
933
+ * The maximum size of each `T::ExposurePage`.
934
+ *
935
+ * An `ExposurePage` is weakly bounded to a maximum of `MaxExposurePageSize`
936
+ * nominators.
937
+ *
938
+ * For older non-paged exposure, a reward payout was restricted to the top
939
+ * `MaxExposurePageSize` nominators. This is to limit the i/o cost for the
940
+ * nominator payout.
941
+ *
942
+ * Note: `MaxExposurePageSize` is used to bound `ClaimedRewards` and is unsafe to
943
+ * reduce without handling it in a migration.
944
+ **/
945
+ maxExposurePageSize: u32 & AugmentedConst<ApiType>;
946
+ /**
947
+ * Maximum number of invulnerable validators.
948
+ **/
949
+ maxInvulnerables: u32 & AugmentedConst<ApiType>;
950
+ /**
951
+ * Maximum number of storage items that can be pruned in a single call.
952
+ *
953
+ * This controls how many storage items can be deleted in each call to `prune_era_step`.
954
+ * This should be set to a conservative value (e.g., 100-500 items) to ensure pruning
955
+ * doesn't consume too much block space. The actual weight is determined by benchmarks.
956
+ **/
957
+ maxPruningItems: u32 & AugmentedConst<ApiType>;
958
+ /**
959
+ * The maximum number of `unlocking` chunks a [`StakingLedger`] can
960
+ * have. Effectively determines how many unique eras a staker may be
961
+ * unbonding in.
962
+ *
963
+ * Note: `MaxUnlockingChunks` is used as the upper bound for the
964
+ * `BoundedVec` item `StakingLedger.unlocking`. Setting this value
965
+ * lower than the existing value can lead to inconsistencies in the
966
+ * `StakingLedger` and will need to be handled properly in a runtime
967
+ * migration. The test `reducing_max_unlocking_chunks_abrupt` shows
968
+ * this effect.
969
+ **/
970
+ maxUnlockingChunks: u32 & AugmentedConst<ApiType>;
971
+ /**
972
+ * The absolute maximum of winner validators this pallet should return.
973
+ *
974
+ * As this pallet supports multi-block election, the set of winner validators *per
975
+ * election* is bounded by this type.
976
+ **/
977
+ maxValidatorSet: u32 & AugmentedConst<ApiType>;
978
+ /**
979
+ * Number of sessions before the end of an era when the election for the next era will
980
+ * start.
981
+ *
982
+ * - This determines how many sessions **before** the last session of the era the staking
983
+ * election process should begin.
984
+ * - The value is bounded between **1** (election starts at the beginning of the last
985
+ * session) and `SessionsPerEra` (election starts at the beginning of the first session
986
+ * of the era).
987
+ *
988
+ * ### Example:
989
+ * - If `SessionsPerEra = 6` and `PlanningEraOffset = 1`, the election starts at the
990
+ * beginning of session `6 - 1 = 5`.
991
+ * - If `PlanningEraOffset = 6`, the election starts at the beginning of session `6 - 6 =
992
+ * 0`, meaning it starts at the very beginning of the era.
993
+ **/
994
+ planningEraOffset: u32 & AugmentedConst<ApiType>;
995
+ /**
996
+ * Number of sessions per era, as per the preferences of the **relay chain**.
997
+ **/
998
+ sessionsPerEra: u32 & AugmentedConst<ApiType>;
999
+ /**
1000
+ * Number of eras that slashes are deferred by, after computation.
1001
+ *
1002
+ * This should be less than the bonding duration. Set to 0 if slashes
1003
+ * should be applied immediately, without opportunity for intervention.
1004
+ **/
1005
+ slashDeferDuration: u32 & AugmentedConst<ApiType>;
1006
+ /**
1007
+ * Generic const
1008
+ **/
1009
+ [key: string]: Codec;
1010
+ };
1011
+ stateTrieMigration: {
1012
+ /**
1013
+ * Maximal number of bytes that a key can have.
1014
+ *
1015
+ * FRAME itself does not limit the key length.
1016
+ * The concrete value must therefore depend on your storage usage.
1017
+ * A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
1018
+ * keys which are then hashed and concatenated, resulting in arbitrarily long keys.
1019
+ *
1020
+ * Use the *state migration RPC* to retrieve the length of the longest key in your
1021
+ * storage: <https://github.com/paritytech/substrate/issues/11642>
1022
+ *
1023
+ * The migration will halt with a `Halted` event if this value is too small.
1024
+ * Since there is no real penalty from over-estimating, it is advised to use a large
1025
+ * value. The default is 512 byte.
1026
+ *
1027
+ * Some key lengths for reference:
1028
+ * - [`frame_support::storage::StorageValue`]: 32 byte
1029
+ * - [`frame_support::storage::StorageMap`]: 64 byte
1030
+ * - [`frame_support::storage::StorageDoubleMap`]: 96 byte
1031
+ *
1032
+ * For more info see
1033
+ * <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
1034
+ **/
1035
+ maxKeyLen: u32 & AugmentedConst<ApiType>;
1036
+ /**
1037
+ * Generic const
1038
+ **/
1039
+ [key: string]: Codec;
1040
+ };
1041
+ system: {
1042
+ /**
1043
+ * Maximum number of block number to block hash mappings to keep (oldest pruned first).
1044
+ **/
1045
+ blockHashCount: u32 & AugmentedConst<ApiType>;
1046
+ /**
1047
+ * The maximum length of a block (in bytes).
1048
+ **/
1049
+ blockLength: FrameSystemLimitsBlockLength & AugmentedConst<ApiType>;
1050
+ /**
1051
+ * Block & extrinsics weights: base values and limits.
1052
+ **/
1053
+ blockWeights: FrameSystemLimitsBlockWeights & AugmentedConst<ApiType>;
1054
+ /**
1055
+ * The weight of runtime database operations the runtime can invoke.
1056
+ **/
1057
+ dbWeight: SpWeightsRuntimeDbWeight & AugmentedConst<ApiType>;
1058
+ /**
1059
+ * The designated SS58 prefix of this chain.
1060
+ *
1061
+ * This replaces the "ss58Format" property declared in the chain spec. Reason is
1062
+ * that the runtime should know about the prefix in order to make use of it as
1063
+ * an identifier of the chain.
1064
+ **/
1065
+ ss58Prefix: u16 & AugmentedConst<ApiType>;
1066
+ /**
1067
+ * Get the chain's in-code version.
1068
+ **/
1069
+ version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
1070
+ /**
1071
+ * Generic const
1072
+ **/
1073
+ [key: string]: Codec;
1074
+ };
1075
+ timestamp: {
1076
+ /**
1077
+ * The minimum period between blocks.
1078
+ *
1079
+ * Be aware that this is different to the *expected* period that the block production
1080
+ * apparatus provides. Your chosen consensus system will generally work with this to
1081
+ * determine a sensible block time. For example, in the Aura pallet it will be double this
1082
+ * period on default settings.
1083
+ **/
1084
+ minimumPeriod: u64 & AugmentedConst<ApiType>;
1085
+ /**
1086
+ * Generic const
1087
+ **/
1088
+ [key: string]: Codec;
1089
+ };
1090
+ transactionPayment: {
1091
+ /**
1092
+ * A fee multiplier for `Operational` extrinsics to compute "virtual tip" to boost their
1093
+ * `priority`
1094
+ *
1095
+ * This value is multiplied by the `final_fee` to obtain a "virtual tip" that is later
1096
+ * added to a tip component in regular `priority` calculations.
1097
+ * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
1098
+ * extrinsic (with no tip), by including a tip value greater than the virtual tip.
1099
+ *
1100
+ * ```rust,ignore
1101
+ * // For `Normal`
1102
+ * let priority = priority_calc(tip);
1103
+ *
1104
+ * // For `Operational`
1105
+ * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
1106
+ * let priority = priority_calc(tip + virtual_tip);
1107
+ * ```
1108
+ *
1109
+ * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
1110
+ * sent with the transaction. So, not only does the transaction get a priority bump based
1111
+ * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
1112
+ * transactions.
1113
+ **/
1114
+ operationalFeeMultiplier: u8 & AugmentedConst<ApiType>;
1115
+ /**
1116
+ * Generic const
1117
+ **/
1118
+ [key: string]: Codec;
1119
+ };
1120
+ treasury: {
1121
+ /**
1122
+ * Percentage of spare funds (if any) that are burnt per spend period.
1123
+ **/
1124
+ burn: Permill & AugmentedConst<ApiType>;
1125
+ /**
1126
+ * DEPRECATED: associated with `spend_local` call and will be removed in May 2025.
1127
+ * Refer to <https://github.com/paritytech/polkadot-sdk/pull/5961> for migration to `spend`.
1128
+ *
1129
+ * The maximum number of approvals that can wait in the spending queue.
1130
+ *
1131
+ * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
1132
+ **/
1133
+ maxApprovals: u32 & AugmentedConst<ApiType>;
1134
+ /**
1135
+ * The treasury's pallet id, used for deriving its sovereign account ID.
1136
+ **/
1137
+ palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
1138
+ /**
1139
+ * The period during which an approved treasury spend has to be claimed.
1140
+ **/
1141
+ payoutPeriod: u32 & AugmentedConst<ApiType>;
1142
+ /**
1143
+ * Gets this pallet's derived pot account.
1144
+ **/
1145
+ potAccount: AccountId32 & AugmentedConst<ApiType>;
1146
+ /**
1147
+ * Period between successive spends.
1148
+ **/
1149
+ spendPeriod: u32 & AugmentedConst<ApiType>;
1150
+ /**
1151
+ * Generic const
1152
+ **/
1153
+ [key: string]: Codec;
1154
+ };
1155
+ uniques: {
1156
+ /**
1157
+ * The basic amount of funds that must be reserved when adding an attribute to an item.
1158
+ **/
1159
+ attributeDepositBase: u128 & AugmentedConst<ApiType>;
1160
+ /**
1161
+ * The basic amount of funds that must be reserved for collection.
1162
+ **/
1163
+ collectionDeposit: u128 & AugmentedConst<ApiType>;
1164
+ /**
1165
+ * The additional funds that must be reserved for the number of bytes store in metadata,
1166
+ * either "normal" metadata or attribute metadata.
1167
+ **/
1168
+ depositPerByte: u128 & AugmentedConst<ApiType>;
1169
+ /**
1170
+ * The basic amount of funds that must be reserved for an item.
1171
+ **/
1172
+ itemDeposit: u128 & AugmentedConst<ApiType>;
1173
+ /**
1174
+ * The maximum length of an attribute key.
1175
+ **/
1176
+ keyLimit: u32 & AugmentedConst<ApiType>;
1177
+ /**
1178
+ * The basic amount of funds that must be reserved when adding metadata to your item.
1179
+ **/
1180
+ metadataDepositBase: u128 & AugmentedConst<ApiType>;
1181
+ /**
1182
+ * The maximum length of data stored on-chain.
1183
+ **/
1184
+ stringLimit: u32 & AugmentedConst<ApiType>;
1185
+ /**
1186
+ * The maximum length of an attribute value.
1187
+ **/
1188
+ valueLimit: u32 & AugmentedConst<ApiType>;
1189
+ /**
1190
+ * Generic const
1191
+ **/
1192
+ [key: string]: Codec;
1193
+ };
1194
+ utility: {
1195
+ /**
1196
+ * The limit on the number of batched calls.
1197
+ **/
1198
+ batchedCallsLimit: u32 & AugmentedConst<ApiType>;
1199
+ /**
1200
+ * Generic const
1201
+ **/
1202
+ [key: string]: Codec;
1203
+ };
1204
+ vesting: {
1205
+ maxVestingSchedules: u32 & AugmentedConst<ApiType>;
1206
+ /**
1207
+ * The minimum amount transferred to call `vested_transfer`.
1208
+ **/
1209
+ minVestedTransfer: u128 & AugmentedConst<ApiType>;
1210
+ /**
1211
+ * Generic const
1212
+ **/
1213
+ [key: string]: Codec;
1214
+ };
1215
+ voterList: {
1216
+ /**
1217
+ * The list of thresholds separating the various bags.
1218
+ *
1219
+ * Ids are separated into unsorted bags according to their score. This specifies the
1220
+ * thresholds separating the bags. An id's bag is the largest bag for which the id's score
1221
+ * is less than or equal to its upper threshold.
1222
+ *
1223
+ * When ids are iterated, higher bags are iterated completely before lower bags. This means
1224
+ * that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
1225
+ * score, but peer ids within a particular bag are sorted in insertion order.
1226
+ *
1227
+ * # Expressing the constant
1228
+ *
1229
+ * This constant must be sorted in strictly increasing order. Duplicate items are not
1230
+ * permitted.
1231
+ *
1232
+ * There is an implied upper limit of `Score::MAX`; that value does not need to be
1233
+ * specified within the bag. For any two threshold lists, if one ends with
1234
+ * `Score::MAX`, the other one does not, and they are otherwise equal, the two
1235
+ * lists will behave identically.
1236
+ *
1237
+ * # Calculation
1238
+ *
1239
+ * It is recommended to generate the set of thresholds in a geometric series, such that
1240
+ * there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
1241
+ * constant_ratio).max(threshold[k] + 1)` for all `k`.
1242
+ *
1243
+ * The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
1244
+ *
1245
+ * # Examples
1246
+ *
1247
+ * - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
1248
+ * iteration is strictly in insertion order.
1249
+ * - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
1250
+ * the procedure given above, then the constant ratio is equal to 2.
1251
+ * - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
1252
+ * the procedure given above, then the constant ratio is approximately equal to 1.248.
1253
+ * - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
1254
+ * into bag 0, an id with score 2 will fall into bag 1, etc.
1255
+ *
1256
+ * # Migration
1257
+ *
1258
+ * In the event that this list ever changes, a copy of the old bags list must be retained.
1259
+ * With that `List::migrate` can be called, which will perform the appropriate migration.
1260
+ **/
1261
+ bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
1262
+ /**
1263
+ * Maximum number of accounts that may be re-bagged automatically in `on_idle`.
1264
+ *
1265
+ * A value of `0` (obtained by configuring `type MaxAutoRebagPerBlock = ();`) disables
1266
+ * the feature.
1267
+ **/
1268
+ maxAutoRebagPerBlock: u32 & AugmentedConst<ApiType>;
1269
+ /**
1270
+ * Generic const
1271
+ **/
1272
+ [key: string]: Codec;
1273
+ };
1274
+ xcmpQueue: {
1275
+ /**
1276
+ * Maximal number of outbound XCMP channels that can have messages queued at the same time.
1277
+ *
1278
+ * If this is reached, then no further messages can be sent to channels that do not yet
1279
+ * have a message queued. This should be set to the expected maximum of outbound channels
1280
+ * which is determined by [`Self::ChannelInfo`]. It is important to set this large enough,
1281
+ * since otherwise the congestion control protocol will not work as intended and messages
1282
+ * may be dropped. This value increases the PoV and should therefore not be picked too
1283
+ * high. Governance needs to pay attention to not open more channels than this value.
1284
+ **/
1285
+ maxActiveOutboundChannels: u32 & AugmentedConst<ApiType>;
1286
+ /**
1287
+ * The maximum number of inbound XCMP channels that can be suspended simultaneously.
1288
+ *
1289
+ * Any further channel suspensions will fail and messages may get dropped without further
1290
+ * notice. Choosing a high value (1000) is okay; the trade-off that is described in
1291
+ * [`InboundXcmpSuspended`] still applies at that scale.
1292
+ **/
1293
+ maxInboundSuspended: u32 & AugmentedConst<ApiType>;
1294
+ /**
1295
+ * The maximal page size for HRMP message pages.
1296
+ *
1297
+ * A lower limit can be set dynamically, but this is the hard-limit for the PoV worst case
1298
+ * benchmarking. The limit for the size of a message is slightly below this, since some
1299
+ * overhead is incurred for encoding the format.
1300
+ **/
1301
+ maxPageSize: u32 & AugmentedConst<ApiType>;
1302
+ /**
1303
+ * Generic const
1304
+ **/
1305
+ [key: string]: Codec;
1306
+ };
1307
+ } // AugmentedConsts
1308
+ } // declare module