@dedot/chaintypes 0.0.1-alpha.25 → 0.0.1-alpha.26

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 (97) hide show
  1. package/aleph/consts.d.ts +595 -0
  2. package/aleph/errors.d.ts +985 -0
  3. package/aleph/events.d.ts +984 -0
  4. package/aleph/index.d.ts +22 -0
  5. package/aleph/query.d.ts +1480 -0
  6. package/aleph/rpc.d.ts +727 -0
  7. package/aleph/runtime.d.ts +545 -0
  8. package/aleph/tx.d.ts +2668 -0
  9. package/aleph/types.d.ts +3646 -0
  10. package/astar/consts.d.ts +758 -0
  11. package/astar/errors.d.ts +1580 -0
  12. package/astar/events.d.ts +1788 -0
  13. package/astar/index.d.ts +22 -0
  14. package/astar/query.d.ts +1759 -0
  15. package/astar/rpc.d.ts +974 -0
  16. package/astar/runtime.d.ts +314 -0
  17. package/astar/tx.d.ts +5478 -0
  18. package/astar/types.d.ts +9078 -0
  19. package/index.ts +10 -0
  20. package/kusama/consts.d.ts +1578 -0
  21. package/kusama/errors.d.ts +2999 -0
  22. package/kusama/events.d.ts +3233 -0
  23. package/kusama/index.d.ts +22 -0
  24. package/kusama/query.d.ts +3831 -0
  25. package/kusama/rpc.d.ts +904 -0
  26. package/kusama/runtime.d.ts +1134 -0
  27. package/kusama/tx.d.ts +7077 -0
  28. package/kusama/types.d.ts +10710 -0
  29. package/kusamaAssetHub/consts.d.ts +719 -0
  30. package/kusamaAssetHub/errors.d.ts +1409 -0
  31. package/kusamaAssetHub/events.d.ts +2251 -0
  32. package/kusamaAssetHub/index.d.ts +22 -0
  33. package/kusamaAssetHub/query.d.ts +1554 -0
  34. package/kusamaAssetHub/rpc.d.ts +746 -0
  35. package/kusamaAssetHub/runtime.d.ts +514 -0
  36. package/kusamaAssetHub/tx.d.ts +5055 -0
  37. package/kusamaAssetHub/types.d.ts +6385 -0
  38. package/moonbeam/consts.d.ts +1080 -0
  39. package/moonbeam/errors.d.ts +2135 -0
  40. package/moonbeam/events.d.ts +3091 -0
  41. package/moonbeam/index.d.ts +22 -0
  42. package/moonbeam/query.d.ts +2394 -0
  43. package/moonbeam/rpc.d.ts +1015 -0
  44. package/moonbeam/runtime.d.ts +669 -0
  45. package/moonbeam/tx.d.ts +6156 -0
  46. package/moonbeam/types.d.ts +8045 -0
  47. package/package.json +9 -8
  48. package/packageInfo.js +1 -1
  49. package/packageInfo.ts +3 -0
  50. package/polkadot/consts.d.ts +1277 -0
  51. package/polkadot/errors.d.ts +2424 -0
  52. package/polkadot/events.d.ts +2457 -0
  53. package/polkadot/index.d.ts +22 -0
  54. package/polkadot/query.d.ts +3322 -0
  55. package/polkadot/rpc.d.ts +904 -0
  56. package/polkadot/runtime.d.ts +1134 -0
  57. package/polkadot/tx.d.ts +5913 -0
  58. package/polkadot/types.d.ts +9181 -0
  59. package/polkadotAssetHub/consts.d.ts +591 -0
  60. package/polkadotAssetHub/errors.d.ts +1119 -0
  61. package/polkadotAssetHub/events.d.ts +1855 -0
  62. package/polkadotAssetHub/index.d.ts +22 -0
  63. package/polkadotAssetHub/query.d.ts +1460 -0
  64. package/polkadotAssetHub/rpc.d.ts +746 -0
  65. package/polkadotAssetHub/runtime.d.ts +451 -0
  66. package/polkadotAssetHub/tx.d.ts +4189 -0
  67. package/polkadotAssetHub/types.d.ts +5539 -0
  68. package/rococoAssetHub/consts.d.ts +750 -0
  69. package/rococoAssetHub/errors.d.ts +1494 -0
  70. package/rococoAssetHub/events.d.ts +2252 -0
  71. package/rococoAssetHub/index.d.ts +22 -0
  72. package/rococoAssetHub/query.d.ts +1516 -0
  73. package/rococoAssetHub/rpc.d.ts +746 -0
  74. package/rococoAssetHub/runtime.d.ts +542 -0
  75. package/rococoAssetHub/tx.d.ts +5169 -0
  76. package/rococoAssetHub/types.d.ts +6751 -0
  77. package/substrate/consts.d.ts +2223 -0
  78. package/substrate/errors.d.ts +4023 -0
  79. package/substrate/events.d.ts +5107 -0
  80. package/substrate/index.d.ts +22 -0
  81. package/substrate/query.d.ts +3890 -0
  82. package/substrate/rpc.d.ts +894 -0
  83. package/substrate/runtime.d.ts +941 -0
  84. package/substrate/tx.d.ts +10391 -0
  85. package/substrate/types.d.ts +13380 -0
  86. package/westendAssetHub/consts.d.ts +750 -0
  87. package/westendAssetHub/errors.d.ts +1494 -0
  88. package/westendAssetHub/events.d.ts +2252 -0
  89. package/westendAssetHub/index.d.ts +22 -0
  90. package/westendAssetHub/query.d.ts +1516 -0
  91. package/westendAssetHub/rpc.d.ts +746 -0
  92. package/westendAssetHub/runtime.d.ts +581 -0
  93. package/westendAssetHub/tx.d.ts +5169 -0
  94. package/westendAssetHub/types.d.ts +6750 -0
  95. package/cjs/index.js +0 -2
  96. package/cjs/package.json +0 -1
  97. package/cjs/packageInfo.js +0 -5
@@ -0,0 +1,1277 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericChainConsts } from '@dedot/types';
4
+ import type { RuntimeVersion, Permill, Bytes, Perbill } from '@dedot/codecs';
5
+ import type {
6
+ FrameSystemLimitsBlockWeights,
7
+ FrameSystemLimitsBlockLength,
8
+ SpWeightsRuntimeDbWeight,
9
+ SpWeightsWeightV2Weight,
10
+ FrameSupportPalletId,
11
+ PalletReferendaTrackInfo,
12
+ } from './types';
13
+
14
+ export interface ChainConsts extends GenericChainConsts {
15
+ /**
16
+ * Pallet `System`'s constants
17
+ **/
18
+ system: {
19
+ /**
20
+ * Block & extrinsics weights: base values and limits.
21
+ **/
22
+ blockWeights: FrameSystemLimitsBlockWeights;
23
+
24
+ /**
25
+ * The maximum length of a block (in bytes).
26
+ **/
27
+ blockLength: FrameSystemLimitsBlockLength;
28
+
29
+ /**
30
+ * Maximum number of block number to block hash mappings to keep (oldest pruned first).
31
+ **/
32
+ blockHashCount: number;
33
+
34
+ /**
35
+ * The weight of runtime database operations the runtime can invoke.
36
+ **/
37
+ dbWeight: SpWeightsRuntimeDbWeight;
38
+
39
+ /**
40
+ * Get the chain's current version.
41
+ **/
42
+ version: RuntimeVersion;
43
+
44
+ /**
45
+ * The designated SS58 prefix of this chain.
46
+ *
47
+ * This replaces the "ss58Format" property declared in the chain spec. Reason is
48
+ * that the runtime should know about the prefix in order to make use of it as
49
+ * an identifier of the chain.
50
+ **/
51
+ ss58Prefix: number;
52
+
53
+ /**
54
+ * Generic pallet constant
55
+ **/
56
+ [name: string]: any;
57
+ };
58
+ /**
59
+ * Pallet `Scheduler`'s constants
60
+ **/
61
+ scheduler: {
62
+ /**
63
+ * The maximum weight that may be scheduled per block for any dispatchables.
64
+ **/
65
+ maximumWeight: SpWeightsWeightV2Weight;
66
+
67
+ /**
68
+ * The maximum number of scheduled calls in the queue for a single block.
69
+ *
70
+ * NOTE:
71
+ * + Dependent pallets' benchmarks might require a higher limit for the setting. Set a
72
+ * higher limit under `runtime-benchmarks` feature.
73
+ **/
74
+ maxScheduledPerBlock: number;
75
+
76
+ /**
77
+ * Generic pallet constant
78
+ **/
79
+ [name: string]: any;
80
+ };
81
+ /**
82
+ * Pallet `Preimage`'s constants
83
+ **/
84
+ preimage: {
85
+ /**
86
+ * Generic pallet constant
87
+ **/
88
+ [name: string]: any;
89
+ };
90
+ /**
91
+ * Pallet `Babe`'s constants
92
+ **/
93
+ babe: {
94
+ /**
95
+ * The amount of time, in slots, that each epoch should last.
96
+ * NOTE: Currently it is not possible to change the epoch duration after
97
+ * the chain has started. Attempting to do so will brick block production.
98
+ **/
99
+ epochDuration: bigint;
100
+
101
+ /**
102
+ * The expected average block time at which BABE should be creating
103
+ * blocks. Since BABE is probabilistic it is not trivial to figure out
104
+ * what the expected average block time should be based on the slot
105
+ * duration and the security parameter `c` (where `1 - c` represents
106
+ * the probability of a slot being empty).
107
+ **/
108
+ expectedBlockTime: bigint;
109
+
110
+ /**
111
+ * Max number of authorities allowed
112
+ **/
113
+ maxAuthorities: number;
114
+
115
+ /**
116
+ * The maximum number of nominators for each validator.
117
+ **/
118
+ maxNominators: number;
119
+
120
+ /**
121
+ * Generic pallet constant
122
+ **/
123
+ [name: string]: any;
124
+ };
125
+ /**
126
+ * Pallet `Timestamp`'s constants
127
+ **/
128
+ timestamp: {
129
+ /**
130
+ * The minimum period between blocks.
131
+ *
132
+ * Be aware that this is different to the *expected* period that the block production
133
+ * apparatus provides. Your chosen consensus system will generally work with this to
134
+ * determine a sensible block time. For example, in the Aura pallet it will be double this
135
+ * period on default settings.
136
+ **/
137
+ minimumPeriod: bigint;
138
+
139
+ /**
140
+ * Generic pallet constant
141
+ **/
142
+ [name: string]: any;
143
+ };
144
+ /**
145
+ * Pallet `Indices`'s constants
146
+ **/
147
+ indices: {
148
+ /**
149
+ * The deposit needed for reserving an index.
150
+ **/
151
+ deposit: bigint;
152
+
153
+ /**
154
+ * Generic pallet constant
155
+ **/
156
+ [name: string]: any;
157
+ };
158
+ /**
159
+ * Pallet `Balances`'s constants
160
+ **/
161
+ balances: {
162
+ /**
163
+ * The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
164
+ *
165
+ * If you *really* need it to be zero, you can enable the feature `insecure_zero_ed` for
166
+ * this pallet. However, you do so at your own risk: this will open up a major DoS vector.
167
+ * In case you have multiple sources of provider references, you may also get unexpected
168
+ * behaviour if you set this to zero.
169
+ *
170
+ * Bottom line: Do yourself a favour and make it at least one!
171
+ **/
172
+ existentialDeposit: bigint;
173
+
174
+ /**
175
+ * The maximum number of locks that should exist on an account.
176
+ * Not strictly enforced, but used for weight estimation.
177
+ **/
178
+ maxLocks: number;
179
+
180
+ /**
181
+ * The maximum number of named reserves that can exist on an account.
182
+ **/
183
+ maxReserves: number;
184
+
185
+ /**
186
+ * The maximum number of holds that can exist on an account at any time.
187
+ **/
188
+ maxHolds: number;
189
+
190
+ /**
191
+ * The maximum number of individual freeze locks that can exist on an account at any time.
192
+ **/
193
+ maxFreezes: number;
194
+
195
+ /**
196
+ * Generic pallet constant
197
+ **/
198
+ [name: string]: any;
199
+ };
200
+ /**
201
+ * Pallet `TransactionPayment`'s constants
202
+ **/
203
+ transactionPayment: {
204
+ /**
205
+ * A fee mulitplier for `Operational` extrinsics to compute "virtual tip" to boost their
206
+ * `priority`
207
+ *
208
+ * This value is multipled by the `final_fee` to obtain a "virtual tip" that is later
209
+ * added to a tip component in regular `priority` calculations.
210
+ * It means that a `Normal` transaction can front-run a similarly-sized `Operational`
211
+ * extrinsic (with no tip), by including a tip value greater than the virtual tip.
212
+ *
213
+ * ```rust,ignore
214
+ * // For `Normal`
215
+ * let priority = priority_calc(tip);
216
+ *
217
+ * // For `Operational`
218
+ * let virtual_tip = (inclusion_fee + tip) * OperationalFeeMultiplier;
219
+ * let priority = priority_calc(tip + virtual_tip);
220
+ * ```
221
+ *
222
+ * Note that since we use `final_fee` the multiplier applies also to the regular `tip`
223
+ * sent with the transaction. So, not only does the transaction get a priority bump based
224
+ * on the `inclusion_fee`, but we also amplify the impact of tips applied to `Operational`
225
+ * transactions.
226
+ **/
227
+ operationalFeeMultiplier: number;
228
+
229
+ /**
230
+ * Generic pallet constant
231
+ **/
232
+ [name: string]: any;
233
+ };
234
+ /**
235
+ * Pallet `Authorship`'s constants
236
+ **/
237
+ authorship: {
238
+ /**
239
+ * Generic pallet constant
240
+ **/
241
+ [name: string]: any;
242
+ };
243
+ /**
244
+ * Pallet `Staking`'s constants
245
+ **/
246
+ staking: {
247
+ /**
248
+ * Number of eras to keep in history.
249
+ *
250
+ * Following information is kept for eras in `[current_era -
251
+ * HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
252
+ * `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
253
+ * `ErasTotalStake`, `ErasStartSessionIndex`,
254
+ * `StakingLedger.claimed_rewards`.
255
+ *
256
+ * Must be more than the number of eras delayed by session.
257
+ * I.e. active era must always be in history. I.e. `active_era >
258
+ * current_era - history_depth` must be guaranteed.
259
+ *
260
+ * If migrating an existing pallet from storage value to config value,
261
+ * this should be set to same value or greater as in storage.
262
+ *
263
+ * Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
264
+ * item `StakingLedger.claimed_rewards`. Setting this value lower than
265
+ * the existing value can lead to inconsistencies in the
266
+ * `StakingLedger` and will need to be handled properly in a migration.
267
+ * The test `reducing_history_depth_abrupt` shows this effect.
268
+ **/
269
+ historyDepth: number;
270
+
271
+ /**
272
+ * Number of sessions per era.
273
+ **/
274
+ sessionsPerEra: number;
275
+
276
+ /**
277
+ * Number of eras that staked funds must remain bonded for.
278
+ **/
279
+ bondingDuration: number;
280
+
281
+ /**
282
+ * Number of eras that slashes are deferred by, after computation.
283
+ *
284
+ * This should be less than the bonding duration. Set to 0 if slashes
285
+ * should be applied immediately, without opportunity for intervention.
286
+ **/
287
+ slashDeferDuration: number;
288
+
289
+ /**
290
+ * The maximum number of nominators rewarded for each validator.
291
+ *
292
+ * For each validator only the `$MaxNominatorRewardedPerValidator` biggest stakers can
293
+ * claim their reward. This used to limit the i/o cost for the nominator payout.
294
+ **/
295
+ maxNominatorRewardedPerValidator: number;
296
+
297
+ /**
298
+ * The maximum number of `unlocking` chunks a [`StakingLedger`] can
299
+ * have. Effectively determines how many unique eras a staker may be
300
+ * unbonding in.
301
+ *
302
+ * Note: `MaxUnlockingChunks` is used as the upper bound for the
303
+ * `BoundedVec` item `StakingLedger.unlocking`. Setting this value
304
+ * lower than the existing value can lead to inconsistencies in the
305
+ * `StakingLedger` and will need to be handled properly in a runtime
306
+ * migration. The test `reducing_max_unlocking_chunks_abrupt` shows
307
+ * this effect.
308
+ **/
309
+ maxUnlockingChunks: number;
310
+
311
+ /**
312
+ * Generic pallet constant
313
+ **/
314
+ [name: string]: any;
315
+ };
316
+ /**
317
+ * Pallet `Offences`'s constants
318
+ **/
319
+ offences: {
320
+ /**
321
+ * Generic pallet constant
322
+ **/
323
+ [name: string]: any;
324
+ };
325
+ /**
326
+ * Pallet `Historical`'s constants
327
+ **/
328
+ historical: {
329
+ /**
330
+ * Generic pallet constant
331
+ **/
332
+ [name: string]: any;
333
+ };
334
+ /**
335
+ * Pallet `Session`'s constants
336
+ **/
337
+ session: {
338
+ /**
339
+ * Generic pallet constant
340
+ **/
341
+ [name: string]: any;
342
+ };
343
+ /**
344
+ * Pallet `Grandpa`'s constants
345
+ **/
346
+ grandpa: {
347
+ /**
348
+ * Max Authorities in use
349
+ **/
350
+ maxAuthorities: number;
351
+
352
+ /**
353
+ * The maximum number of nominators for each validator.
354
+ **/
355
+ maxNominators: number;
356
+
357
+ /**
358
+ * The maximum number of entries to keep in the set id to session index mapping.
359
+ *
360
+ * Since the `SetIdSession` map is only used for validating equivocations this
361
+ * value should relate to the bonding duration of whatever staking system is
362
+ * being used (if any). If equivocation handling is not enabled then this value
363
+ * can be zero.
364
+ **/
365
+ maxSetIdSessionEntries: bigint;
366
+
367
+ /**
368
+ * Generic pallet constant
369
+ **/
370
+ [name: string]: any;
371
+ };
372
+ /**
373
+ * Pallet `ImOnline`'s constants
374
+ **/
375
+ imOnline: {
376
+ /**
377
+ * A configuration for base priority of unsigned transactions.
378
+ *
379
+ * This is exposed so that it can be tuned for particular runtime, when
380
+ * multiple pallets send unsigned transactions.
381
+ **/
382
+ unsignedPriority: bigint;
383
+
384
+ /**
385
+ * Generic pallet constant
386
+ **/
387
+ [name: string]: any;
388
+ };
389
+ /**
390
+ * Pallet `AuthorityDiscovery`'s constants
391
+ **/
392
+ authorityDiscovery: {
393
+ /**
394
+ * Generic pallet constant
395
+ **/
396
+ [name: string]: any;
397
+ };
398
+ /**
399
+ * Pallet `Treasury`'s constants
400
+ **/
401
+ treasury: {
402
+ /**
403
+ * Fraction of a proposal's value that should be bonded in order to place the proposal.
404
+ * An accepted proposal gets these back. A rejected proposal does not.
405
+ **/
406
+ proposalBond: Permill;
407
+
408
+ /**
409
+ * Minimum amount of funds that should be placed in a deposit for making a proposal.
410
+ **/
411
+ proposalBondMinimum: bigint;
412
+
413
+ /**
414
+ * Maximum amount of funds that should be placed in a deposit for making a proposal.
415
+ **/
416
+ proposalBondMaximum: bigint | undefined;
417
+
418
+ /**
419
+ * Period between successive spends.
420
+ **/
421
+ spendPeriod: number;
422
+
423
+ /**
424
+ * Percentage of spare funds (if any) that are burnt per spend period.
425
+ **/
426
+ burn: Permill;
427
+
428
+ /**
429
+ * The treasury's pallet id, used for deriving its sovereign account ID.
430
+ **/
431
+ palletId: FrameSupportPalletId;
432
+
433
+ /**
434
+ * The maximum number of approvals that can wait in the spending queue.
435
+ *
436
+ * NOTE: This parameter is also used within the Bounties Pallet extension if enabled.
437
+ **/
438
+ maxApprovals: number;
439
+
440
+ /**
441
+ * The period during which an approved treasury spend has to be claimed.
442
+ **/
443
+ payoutPeriod: number;
444
+
445
+ /**
446
+ * Generic pallet constant
447
+ **/
448
+ [name: string]: any;
449
+ };
450
+ /**
451
+ * Pallet `ConvictionVoting`'s constants
452
+ **/
453
+ convictionVoting: {
454
+ /**
455
+ * The maximum number of concurrent votes an account may have.
456
+ *
457
+ * Also used to compute weight, an overly large value can lead to extrinsics with large
458
+ * weight estimation: see `delegate` for instance.
459
+ **/
460
+ maxVotes: number;
461
+
462
+ /**
463
+ * The minimum period of vote locking.
464
+ *
465
+ * It should be no shorter than enactment period to ensure that in the case of an approval,
466
+ * those successful voters are locked into the consequences that their votes entail.
467
+ **/
468
+ voteLockingPeriod: number;
469
+
470
+ /**
471
+ * Generic pallet constant
472
+ **/
473
+ [name: string]: any;
474
+ };
475
+ /**
476
+ * Pallet `Referenda`'s constants
477
+ **/
478
+ referenda: {
479
+ /**
480
+ * The minimum amount to be used as a deposit for a public referendum proposal.
481
+ **/
482
+ submissionDeposit: bigint;
483
+
484
+ /**
485
+ * Maximum size of the referendum queue for a single track.
486
+ **/
487
+ maxQueued: number;
488
+
489
+ /**
490
+ * The number of blocks after submission that a referendum must begin being decided by.
491
+ * Once this passes, then anyone may cancel the referendum.
492
+ **/
493
+ undecidingTimeout: number;
494
+
495
+ /**
496
+ * Quantization level for the referendum wakeup scheduler. A higher number will result in
497
+ * fewer storage reads/writes needed for smaller voters, but also result in delays to the
498
+ * automatic referendum status changes. Explicit servicing instructions are unaffected.
499
+ **/
500
+ alarmInterval: number;
501
+
502
+ /**
503
+ * Information concerning the different referendum tracks.
504
+ **/
505
+ tracks: Array<[number, PalletReferendaTrackInfo]>;
506
+
507
+ /**
508
+ * Generic pallet constant
509
+ **/
510
+ [name: string]: any;
511
+ };
512
+ /**
513
+ * Pallet `Whitelist`'s constants
514
+ **/
515
+ whitelist: {
516
+ /**
517
+ * Generic pallet constant
518
+ **/
519
+ [name: string]: any;
520
+ };
521
+ /**
522
+ * Pallet `Claims`'s constants
523
+ **/
524
+ claims: {
525
+ prefix: Bytes;
526
+
527
+ /**
528
+ * Generic pallet constant
529
+ **/
530
+ [name: string]: any;
531
+ };
532
+ /**
533
+ * Pallet `Vesting`'s constants
534
+ **/
535
+ vesting: {
536
+ /**
537
+ * The minimum amount transferred to call `vested_transfer`.
538
+ **/
539
+ minVestedTransfer: bigint;
540
+ maxVestingSchedules: number;
541
+
542
+ /**
543
+ * Generic pallet constant
544
+ **/
545
+ [name: string]: any;
546
+ };
547
+ /**
548
+ * Pallet `Utility`'s constants
549
+ **/
550
+ utility: {
551
+ /**
552
+ * The limit on the number of batched calls.
553
+ **/
554
+ batchedCallsLimit: number;
555
+
556
+ /**
557
+ * Generic pallet constant
558
+ **/
559
+ [name: string]: any;
560
+ };
561
+ /**
562
+ * Pallet `Identity`'s constants
563
+ **/
564
+ identity: {
565
+ /**
566
+ * The amount held on deposit for a registered identity
567
+ **/
568
+ basicDeposit: bigint;
569
+
570
+ /**
571
+ * The amount held on deposit per additional field for a registered identity.
572
+ **/
573
+ fieldDeposit: bigint;
574
+
575
+ /**
576
+ * The amount held on deposit for a registered subaccount. This should account for the fact
577
+ * that one storage item's value will increase by the size of an account ID, and there will
578
+ * be another trie item whose value is the size of an account ID plus 32 bytes.
579
+ **/
580
+ subAccountDeposit: bigint;
581
+
582
+ /**
583
+ * The maximum number of sub-accounts allowed per identified account.
584
+ **/
585
+ maxSubAccounts: number;
586
+
587
+ /**
588
+ * Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O
589
+ * required to access an identity, but can be pretty high.
590
+ **/
591
+ maxAdditionalFields: number;
592
+
593
+ /**
594
+ * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
595
+ * of, e.g., updating judgements.
596
+ **/
597
+ maxRegistrars: number;
598
+
599
+ /**
600
+ * Generic pallet constant
601
+ **/
602
+ [name: string]: any;
603
+ };
604
+ /**
605
+ * Pallet `Proxy`'s constants
606
+ **/
607
+ proxy: {
608
+ /**
609
+ * The base amount of currency needed to reserve for creating a proxy.
610
+ *
611
+ * This is held for an additional storage item whose value size is
612
+ * `sizeof(Balance)` bytes and whose key size is `sizeof(AccountId)` bytes.
613
+ **/
614
+ proxyDepositBase: bigint;
615
+
616
+ /**
617
+ * The amount of currency needed per proxy added.
618
+ *
619
+ * This is held for adding 32 bytes plus an instance of `ProxyType` more into a
620
+ * pre-existing storage value. Thus, when configuring `ProxyDepositFactor` one should take
621
+ * into account `32 + proxy_type.encode().len()` bytes of data.
622
+ **/
623
+ proxyDepositFactor: bigint;
624
+
625
+ /**
626
+ * The maximum amount of proxies allowed for a single account.
627
+ **/
628
+ maxProxies: number;
629
+
630
+ /**
631
+ * The maximum amount of time-delayed announcements that are allowed to be pending.
632
+ **/
633
+ maxPending: number;
634
+
635
+ /**
636
+ * The base amount of currency needed to reserve for creating an announcement.
637
+ *
638
+ * This is held when a new storage item holding a `Balance` is created (typically 16
639
+ * bytes).
640
+ **/
641
+ announcementDepositBase: bigint;
642
+
643
+ /**
644
+ * The amount of currency needed per announcement made.
645
+ *
646
+ * This is held for adding an `AccountId`, `Hash` and `BlockNumber` (typically 68 bytes)
647
+ * into a pre-existing storage value.
648
+ **/
649
+ announcementDepositFactor: bigint;
650
+
651
+ /**
652
+ * Generic pallet constant
653
+ **/
654
+ [name: string]: any;
655
+ };
656
+ /**
657
+ * Pallet `Multisig`'s constants
658
+ **/
659
+ multisig: {
660
+ /**
661
+ * The base amount of currency needed to reserve for creating a multisig execution or to
662
+ * store a dispatch call for later.
663
+ *
664
+ * This is held for an additional storage item whose value size is
665
+ * `4 + sizeof((BlockNumber, Balance, AccountId))` bytes and whose key size is
666
+ * `32 + sizeof(AccountId)` bytes.
667
+ **/
668
+ depositBase: bigint;
669
+
670
+ /**
671
+ * The amount of currency needed per unit threshold when creating a multisig execution.
672
+ *
673
+ * This is held for adding 32 bytes more into a pre-existing storage value.
674
+ **/
675
+ depositFactor: bigint;
676
+
677
+ /**
678
+ * The maximum amount of signatories allowed in the multisig.
679
+ **/
680
+ maxSignatories: number;
681
+
682
+ /**
683
+ * Generic pallet constant
684
+ **/
685
+ [name: string]: any;
686
+ };
687
+ /**
688
+ * Pallet `Bounties`'s constants
689
+ **/
690
+ bounties: {
691
+ /**
692
+ * The amount held on deposit for placing a bounty proposal.
693
+ **/
694
+ bountyDepositBase: bigint;
695
+
696
+ /**
697
+ * The delay period for which a bounty beneficiary need to wait before claim the payout.
698
+ **/
699
+ bountyDepositPayoutDelay: number;
700
+
701
+ /**
702
+ * Bounty duration in blocks.
703
+ **/
704
+ bountyUpdatePeriod: number;
705
+
706
+ /**
707
+ * The curator deposit is calculated as a percentage of the curator fee.
708
+ *
709
+ * This deposit has optional upper and lower bounds with `CuratorDepositMax` and
710
+ * `CuratorDepositMin`.
711
+ **/
712
+ curatorDepositMultiplier: Permill;
713
+
714
+ /**
715
+ * Maximum amount of funds that should be placed in a deposit for making a proposal.
716
+ **/
717
+ curatorDepositMax: bigint | undefined;
718
+
719
+ /**
720
+ * Minimum amount of funds that should be placed in a deposit for making a proposal.
721
+ **/
722
+ curatorDepositMin: bigint | undefined;
723
+
724
+ /**
725
+ * Minimum value for a bounty.
726
+ **/
727
+ bountyValueMinimum: bigint;
728
+
729
+ /**
730
+ * The amount held on deposit per byte within the tip report reason or bounty description.
731
+ **/
732
+ dataDepositPerByte: bigint;
733
+
734
+ /**
735
+ * Maximum acceptable reason length.
736
+ *
737
+ * Benchmarks depend on this value, be sure to update weights file when changing this value
738
+ **/
739
+ maximumReasonLength: number;
740
+
741
+ /**
742
+ * Generic pallet constant
743
+ **/
744
+ [name: string]: any;
745
+ };
746
+ /**
747
+ * Pallet `ChildBounties`'s constants
748
+ **/
749
+ childBounties: {
750
+ /**
751
+ * Maximum number of child bounties that can be added to a parent bounty.
752
+ **/
753
+ maxActiveChildBountyCount: number;
754
+
755
+ /**
756
+ * Minimum value for a child-bounty.
757
+ **/
758
+ childBountyValueMinimum: bigint;
759
+
760
+ /**
761
+ * Generic pallet constant
762
+ **/
763
+ [name: string]: any;
764
+ };
765
+ /**
766
+ * Pallet `ElectionProviderMultiPhase`'s constants
767
+ **/
768
+ electionProviderMultiPhase: {
769
+ /**
770
+ * Duration of the unsigned phase.
771
+ **/
772
+ unsignedPhase: number;
773
+
774
+ /**
775
+ * Duration of the signed phase.
776
+ **/
777
+ signedPhase: number;
778
+
779
+ /**
780
+ * The minimum amount of improvement to the solution score that defines a solution as
781
+ * "better" in the Signed phase.
782
+ **/
783
+ betterSignedThreshold: Perbill;
784
+
785
+ /**
786
+ * The minimum amount of improvement to the solution score that defines a solution as
787
+ * "better" in the Unsigned phase.
788
+ **/
789
+ betterUnsignedThreshold: Perbill;
790
+
791
+ /**
792
+ * The repeat threshold of the offchain worker.
793
+ *
794
+ * For example, if it is 5, that means that at least 5 blocks will elapse between attempts
795
+ * to submit the worker's solution.
796
+ **/
797
+ offchainRepeat: number;
798
+
799
+ /**
800
+ * The priority of the unsigned transaction submitted in the unsigned-phase
801
+ **/
802
+ minerTxPriority: bigint;
803
+
804
+ /**
805
+ * Maximum number of signed submissions that can be queued.
806
+ *
807
+ * It is best to avoid adjusting this during an election, as it impacts downstream data
808
+ * structures. In particular, `SignedSubmissionIndices<T>` is bounded on this value. If you
809
+ * update this value during an election, you _must_ ensure that
810
+ * `SignedSubmissionIndices.len()` is less than or equal to the new value. Otherwise,
811
+ * attempts to submit new solutions may cause a runtime panic.
812
+ **/
813
+ signedMaxSubmissions: number;
814
+
815
+ /**
816
+ * Maximum weight of a signed solution.
817
+ *
818
+ * If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of
819
+ * this pallet), then [`MinerConfig::solution_weight`] is used to compare against
820
+ * this value.
821
+ **/
822
+ signedMaxWeight: SpWeightsWeightV2Weight;
823
+
824
+ /**
825
+ * The maximum amount of unchecked solutions to refund the call fee for.
826
+ **/
827
+ signedMaxRefunds: number;
828
+
829
+ /**
830
+ * Base reward for a signed solution
831
+ **/
832
+ signedRewardBase: bigint;
833
+
834
+ /**
835
+ * Per-byte deposit for a signed solution.
836
+ **/
837
+ signedDepositByte: bigint;
838
+
839
+ /**
840
+ * Per-weight deposit for a signed solution.
841
+ **/
842
+ signedDepositWeight: bigint;
843
+
844
+ /**
845
+ * The maximum number of winners that can be elected by this `ElectionProvider`
846
+ * implementation.
847
+ *
848
+ * Note: This must always be greater or equal to `T::DataProvider::desired_targets()`.
849
+ **/
850
+ maxWinners: number;
851
+ minerMaxLength: number;
852
+ minerMaxWeight: SpWeightsWeightV2Weight;
853
+ minerMaxVotesPerVoter: number;
854
+ minerMaxWinners: number;
855
+
856
+ /**
857
+ * Generic pallet constant
858
+ **/
859
+ [name: string]: any;
860
+ };
861
+ /**
862
+ * Pallet `VoterList`'s constants
863
+ **/
864
+ voterList: {
865
+ /**
866
+ * The list of thresholds separating the various bags.
867
+ *
868
+ * Ids are separated into unsorted bags according to their score. This specifies the
869
+ * thresholds separating the bags. An id's bag is the largest bag for which the id's score
870
+ * is less than or equal to its upper threshold.
871
+ *
872
+ * When ids are iterated, higher bags are iterated completely before lower bags. This means
873
+ * that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
874
+ * score, but peer ids within a particular bag are sorted in insertion order.
875
+ *
876
+ * # Expressing the constant
877
+ *
878
+ * This constant must be sorted in strictly increasing order. Duplicate items are not
879
+ * permitted.
880
+ *
881
+ * There is an implied upper limit of `Score::MAX`; that value does not need to be
882
+ * specified within the bag. For any two threshold lists, if one ends with
883
+ * `Score::MAX`, the other one does not, and they are otherwise equal, the two
884
+ * lists will behave identically.
885
+ *
886
+ * # Calculation
887
+ *
888
+ * It is recommended to generate the set of thresholds in a geometric series, such that
889
+ * there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
890
+ * constant_ratio).max(threshold[k] + 1)` for all `k`.
891
+ *
892
+ * The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
893
+ *
894
+ * # Examples
895
+ *
896
+ * - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
897
+ * iteration is strictly in insertion order.
898
+ * - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
899
+ * the procedure given above, then the constant ratio is equal to 2.
900
+ * - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
901
+ * the procedure given above, then the constant ratio is approximately equal to 1.248.
902
+ * - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
903
+ * into bag 0, an id with score 2 will fall into bag 1, etc.
904
+ *
905
+ * # Migration
906
+ *
907
+ * In the event that this list ever changes, a copy of the old bags list must be retained.
908
+ * With that `List::migrate` can be called, which will perform the appropriate migration.
909
+ **/
910
+ bagThresholds: Array<bigint>;
911
+
912
+ /**
913
+ * Generic pallet constant
914
+ **/
915
+ [name: string]: any;
916
+ };
917
+ /**
918
+ * Pallet `NominationPools`'s constants
919
+ **/
920
+ nominationPools: {
921
+ /**
922
+ * The nomination pool's pallet id.
923
+ **/
924
+ palletId: FrameSupportPalletId;
925
+
926
+ /**
927
+ * The maximum pool points-to-balance ratio that an `open` pool can have.
928
+ *
929
+ * This is important in the event slashing takes place and the pool's points-to-balance
930
+ * ratio becomes disproportional.
931
+ *
932
+ * Moreover, this relates to the `RewardCounter` type as well, as the arithmetic operations
933
+ * are a function of number of points, and by setting this value to e.g. 10, you ensure
934
+ * that the total number of points in the system are at most 10 times the total_issuance of
935
+ * the chain, in the absolute worse case.
936
+ *
937
+ * For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
938
+ * Such a scenario would also be the equivalent of the pool being 90% slashed.
939
+ **/
940
+ maxPointsToBalance: number;
941
+
942
+ /**
943
+ * Generic pallet constant
944
+ **/
945
+ [name: string]: any;
946
+ };
947
+ /**
948
+ * Pallet `FastUnstake`'s constants
949
+ **/
950
+ fastUnstake: {
951
+ /**
952
+ * Deposit to take for unstaking, to make sure we're able to slash the it in order to cover
953
+ * the costs of resources on unsuccessful unstake.
954
+ **/
955
+ deposit: bigint;
956
+
957
+ /**
958
+ * Generic pallet constant
959
+ **/
960
+ [name: string]: any;
961
+ };
962
+ /**
963
+ * Pallet `ParachainsOrigin`'s constants
964
+ **/
965
+ parachainsOrigin: {
966
+ /**
967
+ * Generic pallet constant
968
+ **/
969
+ [name: string]: any;
970
+ };
971
+ /**
972
+ * Pallet `Configuration`'s constants
973
+ **/
974
+ configuration: {
975
+ /**
976
+ * Generic pallet constant
977
+ **/
978
+ [name: string]: any;
979
+ };
980
+ /**
981
+ * Pallet `ParasShared`'s constants
982
+ **/
983
+ parasShared: {
984
+ /**
985
+ * Generic pallet constant
986
+ **/
987
+ [name: string]: any;
988
+ };
989
+ /**
990
+ * Pallet `ParaInclusion`'s constants
991
+ **/
992
+ paraInclusion: {
993
+ /**
994
+ * Generic pallet constant
995
+ **/
996
+ [name: string]: any;
997
+ };
998
+ /**
999
+ * Pallet `ParaInherent`'s constants
1000
+ **/
1001
+ paraInherent: {
1002
+ /**
1003
+ * Generic pallet constant
1004
+ **/
1005
+ [name: string]: any;
1006
+ };
1007
+ /**
1008
+ * Pallet `ParaScheduler`'s constants
1009
+ **/
1010
+ paraScheduler: {
1011
+ /**
1012
+ * Generic pallet constant
1013
+ **/
1014
+ [name: string]: any;
1015
+ };
1016
+ /**
1017
+ * Pallet `Paras`'s constants
1018
+ **/
1019
+ paras: {
1020
+ unsignedPriority: bigint;
1021
+
1022
+ /**
1023
+ * Generic pallet constant
1024
+ **/
1025
+ [name: string]: any;
1026
+ };
1027
+ /**
1028
+ * Pallet `Initializer`'s constants
1029
+ **/
1030
+ initializer: {
1031
+ /**
1032
+ * Generic pallet constant
1033
+ **/
1034
+ [name: string]: any;
1035
+ };
1036
+ /**
1037
+ * Pallet `Dmp`'s constants
1038
+ **/
1039
+ dmp: {
1040
+ /**
1041
+ * Generic pallet constant
1042
+ **/
1043
+ [name: string]: any;
1044
+ };
1045
+ /**
1046
+ * Pallet `Hrmp`'s constants
1047
+ **/
1048
+ hrmp: {
1049
+ /**
1050
+ * Generic pallet constant
1051
+ **/
1052
+ [name: string]: any;
1053
+ };
1054
+ /**
1055
+ * Pallet `ParaSessionInfo`'s constants
1056
+ **/
1057
+ paraSessionInfo: {
1058
+ /**
1059
+ * Generic pallet constant
1060
+ **/
1061
+ [name: string]: any;
1062
+ };
1063
+ /**
1064
+ * Pallet `ParasDisputes`'s constants
1065
+ **/
1066
+ parasDisputes: {
1067
+ /**
1068
+ * Generic pallet constant
1069
+ **/
1070
+ [name: string]: any;
1071
+ };
1072
+ /**
1073
+ * Pallet `ParasSlashing`'s constants
1074
+ **/
1075
+ parasSlashing: {
1076
+ /**
1077
+ * Generic pallet constant
1078
+ **/
1079
+ [name: string]: any;
1080
+ };
1081
+ /**
1082
+ * Pallet `ParaAssignmentProvider`'s constants
1083
+ **/
1084
+ paraAssignmentProvider: {
1085
+ /**
1086
+ * Generic pallet constant
1087
+ **/
1088
+ [name: string]: any;
1089
+ };
1090
+ /**
1091
+ * Pallet `Registrar`'s constants
1092
+ **/
1093
+ registrar: {
1094
+ /**
1095
+ * The deposit to be paid to run a on-demand parachain.
1096
+ * This should include the cost for storing the genesis head and validation code.
1097
+ **/
1098
+ paraDeposit: bigint;
1099
+
1100
+ /**
1101
+ * The deposit to be paid per byte stored on chain.
1102
+ **/
1103
+ dataDepositPerByte: bigint;
1104
+
1105
+ /**
1106
+ * Generic pallet constant
1107
+ **/
1108
+ [name: string]: any;
1109
+ };
1110
+ /**
1111
+ * Pallet `Slots`'s constants
1112
+ **/
1113
+ slots: {
1114
+ /**
1115
+ * The number of blocks over which a single period lasts.
1116
+ **/
1117
+ leasePeriod: number;
1118
+
1119
+ /**
1120
+ * The number of blocks to offset each lease period by.
1121
+ **/
1122
+ leaseOffset: number;
1123
+
1124
+ /**
1125
+ * Generic pallet constant
1126
+ **/
1127
+ [name: string]: any;
1128
+ };
1129
+ /**
1130
+ * Pallet `Auctions`'s constants
1131
+ **/
1132
+ auctions: {
1133
+ /**
1134
+ * The number of blocks over which an auction may be retroactively ended.
1135
+ **/
1136
+ endingPeriod: number;
1137
+
1138
+ /**
1139
+ * The length of each sample to take during the ending period.
1140
+ *
1141
+ * `EndingPeriod` / `SampleLength` = Total # of Samples
1142
+ **/
1143
+ sampleLength: number;
1144
+ slotRangeCount: number;
1145
+ leasePeriodsPerSlot: number;
1146
+
1147
+ /**
1148
+ * Generic pallet constant
1149
+ **/
1150
+ [name: string]: any;
1151
+ };
1152
+ /**
1153
+ * Pallet `Crowdloan`'s constants
1154
+ **/
1155
+ crowdloan: {
1156
+ /**
1157
+ * `PalletId` for the crowdloan pallet. An appropriate value could be
1158
+ * `PalletId(*b"py/cfund")`
1159
+ **/
1160
+ palletId: FrameSupportPalletId;
1161
+
1162
+ /**
1163
+ * The minimum amount that may be contributed into a crowdloan. Should almost certainly be
1164
+ * at least `ExistentialDeposit`.
1165
+ **/
1166
+ minContribution: bigint;
1167
+
1168
+ /**
1169
+ * Max number of storage keys to remove per extrinsic call.
1170
+ **/
1171
+ removeKeysLimit: number;
1172
+
1173
+ /**
1174
+ * Generic pallet constant
1175
+ **/
1176
+ [name: string]: any;
1177
+ };
1178
+ /**
1179
+ * Pallet `XcmPallet`'s constants
1180
+ **/
1181
+ xcmPallet: {
1182
+ /**
1183
+ * Generic pallet constant
1184
+ **/
1185
+ [name: string]: any;
1186
+ };
1187
+ /**
1188
+ * Pallet `MessageQueue`'s constants
1189
+ **/
1190
+ messageQueue: {
1191
+ /**
1192
+ * The size of the page; this implies the maximum message size which can be sent.
1193
+ *
1194
+ * A good value depends on the expected message sizes, their weights, the weight that is
1195
+ * available for processing them and the maximal needed message size. The maximal message
1196
+ * size is slightly lower than this as defined by [`MaxMessageLenOf`].
1197
+ **/
1198
+ heapSize: number;
1199
+
1200
+ /**
1201
+ * The maximum number of stale pages (i.e. of overweight messages) allowed before culling
1202
+ * can happen. Once there are more stale pages than this, then historical pages may be
1203
+ * dropped, even if they contain unprocessed overweight messages.
1204
+ **/
1205
+ maxStale: number;
1206
+
1207
+ /**
1208
+ * The amount of weight (if any) which should be provided to the message queue for
1209
+ * servicing enqueued items.
1210
+ *
1211
+ * This may be legitimately `None` in the case that you will call
1212
+ * `ServiceQueues::service_queues` manually.
1213
+ **/
1214
+ serviceWeight: SpWeightsWeightV2Weight | undefined;
1215
+
1216
+ /**
1217
+ * Generic pallet constant
1218
+ **/
1219
+ [name: string]: any;
1220
+ };
1221
+ /**
1222
+ * Pallet `AssetRate`'s constants
1223
+ **/
1224
+ assetRate: {
1225
+ /**
1226
+ * Generic pallet constant
1227
+ **/
1228
+ [name: string]: any;
1229
+ };
1230
+ /**
1231
+ * Pallet `Beefy`'s constants
1232
+ **/
1233
+ beefy: {
1234
+ /**
1235
+ * The maximum number of authorities that can be added.
1236
+ **/
1237
+ maxAuthorities: number;
1238
+
1239
+ /**
1240
+ * The maximum number of nominators for each validator.
1241
+ **/
1242
+ maxNominators: number;
1243
+
1244
+ /**
1245
+ * The maximum number of entries to keep in the set id to session index mapping.
1246
+ *
1247
+ * Since the `SetIdSession` map is only used for validating equivocations this
1248
+ * value should relate to the bonding duration of whatever staking system is
1249
+ * being used (if any). If equivocation handling is not enabled then this value
1250
+ * can be zero.
1251
+ **/
1252
+ maxSetIdSessionEntries: bigint;
1253
+
1254
+ /**
1255
+ * Generic pallet constant
1256
+ **/
1257
+ [name: string]: any;
1258
+ };
1259
+ /**
1260
+ * Pallet `Mmr`'s constants
1261
+ **/
1262
+ mmr: {
1263
+ /**
1264
+ * Generic pallet constant
1265
+ **/
1266
+ [name: string]: any;
1267
+ };
1268
+ /**
1269
+ * Pallet `BeefyMmrLeaf`'s constants
1270
+ **/
1271
+ beefyMmrLeaf: {
1272
+ /**
1273
+ * Generic pallet constant
1274
+ **/
1275
+ [name: string]: any;
1276
+ };
1277
+ }